/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0D1B2A;
  color: #ece9e0;
  font-family: "PT Sans", sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== ТИПОГРАФИКА ========== */
h1, h2, h3 {
  font-family: "Tinos", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: 'Tinos', serif;
  font-weight: 400;
  font-size: 32px;
  color: #E8D5A3;
  margin-bottom: 32px;
  text-align: left;
 
}

/* ========== ГЕРОЙ С ОВЕРЛЕЕМ ========== */
.hero-wrapper {
  background-image: url('../image/Navarino.webp');
  background-blend-mode: overlay;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 33, 0.65);
  z-index: 1;
  pointer-events: none;
}

.hero-wrapper .container {
  position: relative;
  z-index: 2;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 2px solid #C9A84C;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-direction: row;
  color: #c9a84c;
  font-size: 1.2rem;
  font-family: "Tinos", serif;
  text-decoration: none;
  transition: 0.2s;
}

.back-link:hover {
  color: #e0c58f;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  font-family: 'Tinos', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #F5F0F9;
  transition: color 0.2s ease;
}

.logo-img {
  height: 24px;
  width: auto;
  display: block;
  border-radius: 18px;
}

.logo-text {
  font-family: 'Tinos', sans-serif;
  font-weight: 400;
  font-size: 20px;
    white-space: nowrap;
    line-height: 1.2;
}

.logo-link {
  font-family: 'Tinos', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: inherit;              
  text-decoration: none;
  transition: color 0.2s ease;
}
.logo-link:hover {
    color: #C9A84C;            
}

/* ========== HERO СЕКЦИЯ ========== */
.hero {
  padding: 60px 0 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #2c3e3f, #1a2a2b);
  border-radius: 24px;
  border: 2px solid #c9a84c;
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-text h1 {
  font-size: 3.2rem;
  color: #e8d09c;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.date {
  font-size: 1.2rem;
  color: #E8E7E3;
  margin-bottom: 1.2rem;
  display: inline-block;
  padding-bottom: 4px;
}

.desc {
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 2rem;
  color: #E8E7E3;
}

.quote {
  margin-top: 2rem;
  padding: 1.2rem 1.8rem;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  color: #E8E7E3;
  text-align: right;
}

/* Новый блок цитаты в герое */
.hero-quote {
  margin-top: 2rem;
  padding: 0 0 0 1.8rem;      /* небольшой отступ слева для воздуха */
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  color: #E8E7E3;
  text-align: right;           /* ← выравнивание вправо */
  border: none;
  quotes: none;
}

.hero-quote p {
  margin-bottom: 0.5rem;
}

.hero-quote-author {
  font-family: 'Tinos', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #E8D5A3;
  letter-spacing: 1px;
  text-align: right;
  margin-top: 0.5rem;
  font-style: normal;
}

/* Скрываем старый .quote, если он где-то остался */
.quote {
  display: none;
}

/* Убираем лишнюю сетку */
.hero-grid {
  display: block;
}

/* ========== СТАТИСТИКА ========== */
.stats {
  display: flex;
  gap: 24px;
  margin: 70px auto 80px;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  background: #102433;
  padding: 32px 20px;
  text-align: center;
  border-top: 2px solid #C9A84C;
  border-bottom: 2px solid #C9A84C;
  transition: transform 0.2s;
}

.stat span {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Philosopher", serif;
  display: block;
  margin-bottom: 12px;
  color: white;
}

.stat p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: white;
}

/* ========== ЛЕНТА ВРЕМЕНИ ========== */
.timeline-section {
  margin: 40px auto 80px;
}

.timeline {
  position: relative;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.timeline-intro {
    font-family: 'PT Sans', serif;
    font-size: 24px;
    margin-bottom: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: #c9a84c;
  opacity: 0.6;
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 58px;
  position: relative;
  z-index: 1;
}

.circle {
  width: 26px;
  height: 26px;
  background: #0a1424;
  border: 2px solid #c9a84c;
  border-radius: 50%;
  box-shadow: 0 0 8px #e0b75a;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.timeline-item:first-child .circle {
  margin-top: 0;
  position: relative;
  top: -4px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.content {
  flex: 1;
}

.content span {
  color: #e0b75a;
  font-family: "Tinos", serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
}

.content h3 {
  font-size: 1.9rem;
  margin: 8px 0 12px;
  color: #f2e2bb;
}

.content p {
  font-size: 1.05rem;
  color: #cfd8e6;
  max-width: 100%;
}



/* ========== ГЛАВНОКОМАНДУЮЩИЕ ========== */

.commanders-wrapper {
  max-width: 1216px; 
  width: 100%;
  margin: 0 auto;
  padding: 0;      
}

.commanders-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.commanders-column {
  flex: 0 0 auto;     
  width: 592px;
  max-width: 100%;   
}


.column-title {
  font-family: 'Tinos', serif;
  font-weight: 400;
  font-size: 20px;
  color: #E8D5A3;
  margin-bottom: 24px; }


.commander-card {
  display: block;
  width: 100%;
  height: 289px;
  background: #132B45;
  border: solid #C9A84C;
  border-width: 2px 1px 1px 1px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 32px;  
  box-sizing: border-box;
}

.commander-card:last-child {
  margin-bottom: 0;
}

.commander-card .event-info {
  padding: 24px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.commander-card .event-name {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #ffffff;
}

.commander-card .event-years {
font-family: 'Philosopher', sans-serif;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.commander-card .event-country {
  font-family: 'Philosopher', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #C9A84C;
  margin-bottom: 12px;
 
}

.commander-card .event-desc {
font-family: 'PT Sans', serif;
  font-size: 20px;
  line-height: 1.5;
  color: #cfd8e6;
  margin: 0;
}



/* ========== ПРАВАЯ КОЛОНКА (ВРАГ) ========== */
.commanders-column--enemy .column-title {
  color: #C94C4C;
  border-bottom-color: #C94C4C;
}

.commanders-column--enemy .commander-card {
  border-color: #C94C4C;  
  border-width: 2px 1px 1px 1px; 
  border-style: solid;
}


.commanders-column--enemy .commander-card:hover {
  border-color: #d65c5c; 
}

/* Адаптация для экранов меньше 1248px (две колонки не влезают) */
@media (max-width: 1248px) {
  .commanders-wrapper {
    max-width: 100%;
    padding: 0 20px;  /* боковые отступы как у .container */
  }
  .commanders-grid {
    justify-content: center;
  }
  .commanders-column {
    width: 100%;
    max-width: 592px;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .commanders-wrapper {
    padding: 0 16px;
  }
  .commanders-column {
    max-width: 100%;
  }
  .commander-card {
    height: auto;
    min-height: 289px;
  }
  .commander-card .event-name {
    font-size: 24px;
  }
  .commander-card .event-years,
  .commander-card .event-country {
    font-size: 14px;
  }
  .commander-card .event-desc {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .commander-card .event-info {
    padding: 20px 16px;
  }
  .commander-card .event-name {
    font-size: 22px;
  }
}

/* ========== КАРТА СРАЖЕНИЯ (БОЛЬШАЯ КАРТОЧКА) ========== */
.battle-map-wrapper {
  max-width: 1210px;
  width: 100%;
  margin: 0 auto;
}

.battle-map-card {
  background: #132B45;
  border: solid #C9A84C;
  border-width: 4px;  /* верхняя рамка 2px, остальные 1px */
  overflow: hidden;
  border-radius: 0;
}

.battle-map-image {
  width: 100%;
  line-height: 0;  /* убирает лишний отступ у изображения */
}

.battle-map-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;  /* изображение заполнит контейнер, сохраняя пропорции */
}

.battle-map-caption {
  padding: 20px 24px;
  background: #102433;  /* немного темнее для отделения */
  border-top: 1px solid #C9A84C;
}

.battle-map-caption p {
  font-family: 'PT Sans', sans-serif;
  font-size: 18px;
  color: #E8E7E3;
  margin: 0;
  text-align: center;
}

/* Адаптация */
@media (max-width: 1248px) {
  .battle-map-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .battle-map-caption p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .battle-map-caption {
    padding: 16px 12px;
  }
  .battle-map-caption p {
    font-size: 14px;
  }
}

/* ========== ТАБЛИЦА СИЛ СТОРОН ========== */
.table-wrapper {
  max-width: 1210px;
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}

.battle-table {
  width: 100%;
  border-collapse: collapse;
  background: #132B45;
  color: #E8E7E3;
  font-family: 'PT Sans', sans-serif;
  border: 0.5px solid #C9A84C; 
}

.battle-table th,
.battle-table td {
  border: none;
}

.battle-table thead th {
  padding: 20px 16px;
  font-family: 'Tinos', serif;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  vertical-align: bottom;
  background: #132B45;
}

.allies-header {
  color: #C9A84C;
  font-family: 'Tinos', serif;
  font-size: 20px;
  font-weight: 400;
}

.enemy-header {
  color: #C94C4C;
  font-family: 'Tinos', serif;
  font-size: 20px;
  font-weight: 400;
}

.table-subheader {
  display: block;
  font-family: 'Tinos', serif;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  margin-top: 6px;
  letter-spacing: 1px;
}

.battle-table tbody th {
  padding: 14px 20px;
  font-family: 'Tinos', serif;
  font-weight: 400;
  font-size: 20px;
  color: #E8D5A3;
  text-align: left;
  background: #132B45;
}

.battle-table tbody td {
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  background: #132B45;
  color: #ffffff;
  font-family: 'PT Sans', sans-serif;
}

.battle-table tbody tr {
  border-bottom: 0.5px solid #C9A84C;
}

.battle-table thead tr {
  border-bottom: 0.5px solid #C9A84C;
}

.battle-table tbody tr:nth-child(6) td:last-child,
.battle-table tbody tr:nth-child(7) td:last-child {
  color: #C94C4C;
  font-weight: 700;
}

.battle-table tbody tr:hover {
  background: #1a3347;
}
.battle-table tbody tr:hover th,
.battle-table tbody tr:hover td {
  background: transparent;
}

@media (max-width: 768px) {
  .battle-table thead th {
    font-size: 18px;
    padding: 16px 12px;
  }
  .battle-table tbody th {
    font-size: 18px;
    padding: 12px 10px;
  }
  .battle-table tbody td {
    padding: 12px 10px;
    font-size: 16px;
  }
  .table-subheader {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .battle-table thead th {
    font-size: 16px;
  }
  .battle-table tbody th {
    font-size: 16px;
  }
  .battle-table tbody td {
    font-size: 14px;
  }
}

.battle-table tbody tr:nth-child(1) td:nth-child(2),
.battle-table tbody tr:nth-child(2) td:nth-child(2),
.battle-table tbody tr:nth-child(3) td:nth-child(2),
.battle-table tbody tr:nth-child(6) td:nth-child(2),
.battle-table tbody tr:nth-child(7) td:nth-child(2) {
  color: #C9A84C;
  font-weight: 700;
}


.battle-table tbody tr:nth-child(1) td:nth-child(3),
.battle-table tbody tr:nth-child(3) td:nth-child(3),
.battle-table tbody tr:nth-child(4) td:nth-child(3),
.battle-table tbody tr:nth-child(6) td:nth-child(3),
.battle-table tbody tr:nth-child(7) td:nth-child(3) {
  color: #C94C4C;
  font-weight: 700;
}

/* ========== ЦИТАТА ========== */
.quote-section {
  margin: 60px auto;
}

.quote-card {
  background: #102133;
  border-left: 5px solid #C9A84C;
  padding: 40px 48px;
  text-align: left;
}

.quote-text {
  font-family: 'Tinos', serif;
  font-weight: 500;
  font-size: 24px;
  color: #E8E7E3;
  line-height: 1.4;
  margin-bottom: 20px;
}

.quote-author {
  font-family: 'Tinos', serif;
  font-weight: 500;
  font-size: 16px;
  color: #E8D5A3;
  letter-spacing: 1px;
}

.link {
    text-decoration: none;
    color: #E8D5A3;
}

.link:hover {
    color: #C9A84C;
}

/* ========== ФУТЕР ========== */
.footer {
  background-image: url('../image/index.webp');
  background-blend-mode: overlay;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 33, 0.6);
  z-index: 1;
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 32px 40px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 18px;
}

.footer-logo-text {
  font-family: 'Tinos', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #F5F0F9;
  transition: color 0.2s ease;
  line-height: 1;
}

.footer-logo-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-logo-link:hover {
    color: #C9A84C;         
}

.footer-right {
  display: flex;
}

.footer-nav-horizontal {
  display: flex;
  gap: 48px;
}

.footer-link {
  font-family: 'Tinos', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #F5F0F9;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #E0C58F;
}

.footer-bottom {
  text-align: center;
  border-top: 2px solid #E0C58F;
  padding-top: 30px;
}

.footer-copyright {
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #F5F0F9;
  letter-spacing: 0.2px;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-img-placeholder {
    max-width: 360px;
    margin: 0 auto;
  }
  .stats {
    flex-direction: column;
  }
  .content p {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .desc, .quote {
    font-size: 1.1rem;
  }
  .hero {
    padding: 40px 0 60px;
  }
  .timeline::before {
    left: 10px;
  }
  .circle {
    width: 22px;
    height: 22px;
  }
  .content h3 {
    font-size: 1.5rem;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 50px 20px 30px 20px;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav-horizontal {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .timeline::before {
    left: 9px;
  }
  .circle {
    width: 20px;
    height: 20px;
  }
  .faith-timeline::before {
    right: 10px;
  }
  .faith-circle {
    width: 20px;
    height: 20px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .event-card {
    flex-direction: column;
    height: auto;
  }
  .event-image {
    padding: 16px 16px 0 16px;
    justify-content: center;
  }
  .event-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }
  .event-info {
    padding: 20px 24px 32px 24px;
  }
  .event-name {
    font-size: 28px;
  }
  .event-desc {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .logo-text {
    font-size: 13px;
  }
  .logo-link {
    font-size: 14px;
  }
  .desc {
    font-size: 1rem;
  }
  .quote {
    font-size: 1rem;
  }
  .stat span {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 24px;
    letter-spacing: 1px;
  }
  .content h3 {
    font-size: 1.3rem;
  }
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 8px;
  }
  .circle {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  .timeline-item:first-child .circle {
    top: -2px;
  }
  .faith-timeline::before {
    right: 9px;
  }
  .faith-circle {
    width: 18px;
    height: 18px;
  }
  .faith-content h3 {
    font-size: 1.3rem;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-nav-horizontal {
    flex-direction: column;
    gap: 14px;
  }
  .event-name {
    font-size: 24px;
  }
  .event-years {
    font-size: 14px;
  }
  .event-desc {
    font-size: 16px;
  }
  .event-info {
    padding: 16px 20px 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .date {
    font-size: 1rem;
  }
  .desc, .quote {
    font-size: 0.95rem;
  }
  .stat span {
    font-size: 2rem;
  }
  .stat p {
    font-size: 0.8rem;
  }
  .footer-logo-text {
    font-size: 18px;
  }
  .footer-link {
    font-size: 16px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .back-link {
    font-size: 1rem;
  }
  .logo {
    font-size: 18px;
  }
  .footer-nav-horizontal {
    flex-direction: column;
    gap: 12px;
  }
  .timeline::before {
    left: 7px;
  }
  .circle {
    width: 16px;
    height: 16px;
  }
  .faith-timeline::before {
    right: 8px;
  }
  .faith-circle {
    width: 16px;
    height: 16px;
  }
  .faith-content h3 {
    font-size: 1.2rem;
  }
  .faith-content span {
    font-size: 1rem;
  }
  .faith-content p {
    font-size: 0.95rem;
  }
  .event-name {
    font-size: 22px;
  }
  .event-desc {
    font-size: 15px;
  }
  .event-years {
    font-size: 13px;
  }
  .events-title {
    font-size: 28px;
  }
}



/* Animations */

.event-card {
  transition: all 0.35s ease;
  position: relative;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: #e0c58f;
}

.event-image img {
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.08);
}

.stat {
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  background: #16344d;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.hero-text h1 {
  transition: text-shadow 0.3s ease;
}

.hero-text h1:hover {
  text-shadow: 0 0 15px rgba(201,168,76,0.6);
}

.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Кнопка «Наверх» */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color:#0D1B2A;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid #C9A84C;
    border-radius: 50%;
    color: #C9A84C;
    font-family: 'Tinos', serif;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s, border-color 0.2s;
    z-index: 9999;
    padding: 0;
    outline: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #C9A84C;
    border-color: #E8D5A3;
    color: #0D1B2A;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}