﻿/*
Theme Name: Chepauk Super Gillies
Theme URI: https://csgcric.in/
Author: CSG
Description: Exact replica of csgcric.in as a WordPress theme.
Version: 1.0
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}
/* ===========================
   display none Styles
=========================== */

/* ===========================

   Navbar
=========================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  color: white;
  position: relative;
}

.logo img {
  height: 90px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #d84343;
  font-weight: bold;
  font-size: 14px;
  font-family: 'Inter Tight', sans-serif;

}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: black;
  margin: 4px 0;
  border-radius: 2px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 2px;
    background-color: #222;
    flex-direction: column;
    width: 200px;
    padding: 10px 0;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav-links li {
    padding: 10px 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* ===========================
   Hero Section
=========================== */

.carousel-container {
      position: relative;
      overflow: hidden;
      width: 100%;
      height: 90vh;
    }
    .carousel-track {
      display: flex;
      transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
      height: 100%;
    }
    .hero-slide {
      min-width: 100%;
      height: 100%;
    }
    .hero-section {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 60px 80px;
      height: 100%;
      background-size: cover;
      background-position: center;
      flex-wrap: wrap;
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
    }
    .hero-content {
      background-origin:blured(5px);
      background-color: rgb(51 51 51 / 24%);
      padding: 20px 30px;
      position: relative;
      z-index: 2;
      max-width: 55%;
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 1s ease, transform 1s ease;
    }
    .hero-content.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .hero-content h1 {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.2;
      color: #ffffff;
      
    }
    .hero-content p {
      margin: 20px 0;
      font-size: 1.1rem;
      color: #e6e2e2;
    }
    .hero-content .btn {
      background-color: #e53935;
      color: white;
      padding: 12px 30px;
      border: none;
      border-radius: 30px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    .hero-content .btn:hover {
      background-color: #c62828;
    }
   
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 2rem;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 10px;
      cursor: pointer;
      z-index: 10;
      border-radius: 50%;
    }
    .carousel-btn.prev {
      left: 10px;
    }
    .carousel-btn.next {
      right: 10px;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .hero-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
      }
      .hero-content {
        max-width: 100%;
      }
      
    }
    .hero-content {
    top: 24vh;
}
    @media (max-width: 600px) {
      .recent-post {
        display: none;
      }
    }

    @media (max-width: 768px) {
      .hero-content {
    top: 33vh;
}
      .logo img {
  height: 70px;
}
      .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
      }
      .hero-content,
      .recent-post {
        max-width: 100%;
        margin: 0 auto;
        opacity: 1 !important;
        transform: translateY(0) !important;
      }
      .recent-post {
        margin-top: 30px;
      }
    }
    @media (max-width: 480px) {
      .hero-content h1 {
        font-size: 1.8rem;
      }
      .hero-content p {
        font-size: 0.95rem;
      }
      .hero-content .btn {
        font-size: 0.85rem;
        padding: 8px 20px;
      }
      .recent-post {
        padding: 15px;
      }
      .recent-post .meta,
      .recent-post .title {
        font-size: 0.9rem;
      }
      .recent-post h3 {
        font-size: 1.1rem;
      }
    }

/* ===========================
   Sponsors Section
=========================== */
.sponsor-rows img.vasanth-logo {
    height: 97% !important;
}

    .sponsors {
      padding: 60px 20px;
      background: linear-gradient(to bottom right, #fcd770, #e32d2d);
      text-align: center;
    }

    .sponsors h2 {
     color: #000;
     text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);      font-size: 40px;
      margin-bottom: 40px;
      font-weight: 700;
    }

    .main-sponsor {
      max-width: 700px;
      width: 100%;
      margin: 0 auto 50px;
    }
    .main-sponsor img {
    width: 100%;
    height: 100%

}

    .main-sponsor img,.principal-sponsor img {
      width: 100%;
      height: auto;
      background-color: #f2c94c;
      padding: 2px;
      border-radius: 16px;
      box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
      object-fit: contain;
    }
      .principal-sponsor {
      max-width: 500px;
      width: 100%;
      margin: 0 auto 50px;
    }
    
    .sponsor-rows {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
      max-width: 900px;
      margin: 0 auto;
      padding: 0 10px;
    }

    .sponsor-rows img {
      background-color: #f2c94c;
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .sponsor-rows img:hover,
    .sponsor-rows img:focus {
      transform: scale(1.05);
      outline: 2px solid white;
      outline-offset: 4px;
      cursor: pointer;
    }

    @media (max-width: 768px) {
      .main-sponsor {
        max-width: 100%;
      }

      .main-sponsor img {
        padding: 1px;
        max-height: 200px;
      }

      .sponsor-rows {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
      }

      .sponsors {
        padding: 40px 15px;
      }

      .sponsors h2 {
        font-size: 32px;
        margin-bottom: 30px;
      }
    }

    @media (max-width: 480px) {
      .main-sponsor img {
        padding: 1px;
        max-height: 150px;
      }

      .sponsor-rows {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }

      .sponsors h2 {
        font-size: 24px;
        margin-bottom: 20px;
      }
    }

/* ===========================
   Stats Section
=========================== */
.stats-section {
  display: flex;
  /* display: flex; */
  justify-content: space-around;
  align-items: center;
  padding: 35px 20px;
  background-color: #f2f2f2;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.stat-card {
  display: none;
  flex: 1 1 200px;
  text-align: center;
  margin: 20px 10px;
}

.stat-value {
  font-size: 48px;
  font-weight: bold;
  color: black;
}

.stat-label {
  font-size: 18px;
  color: black;
  margin-top: 10px;
}

/* ===========================
   Match Results
=========================== */
.match-results {
    padding: 35px 95px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    background: #dedede;
}

    .match-card {
      display: none;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      flex: 1 1 calc(25% - 20px);
      max-width: calc(25% - 20px);
      padding: 20px;
      text-align: center;
      transition: transform 0.3s ease;
    }

    .match-card:hover {
      transform: translateY(-5px);
    }

    .match-date,
    .match-league,
    .match-location {
      font-size: 14px;
      color: #666;
      margin-bottom: 8px;
    }

    .match-score {
      font-size: 24px;
      font-weight: bold;
      margin: 15px 0;
      color: #333;
    }

    .match-card img {
      width: 60px;
      height: 60px;
      object-fit: contain;
    }

    .team-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    @media (max-width: 1024px) {
      .match-card {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
      }
    }

    @media (max-width: 768px) {
      .match-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
      }
      .team-wrapper {
        flex-direction:row;
      }
      .match-results {
    padding: 35px 30px;
    }
  }

    @media (max-width: 500px) {
      .match-card {
        flex: 1 1 100%;
        max-width: 100%;
      }

      .team-wrapper {
        flex-direction: row;
      }

      .match-score {
        margin: 10px 0;
      }
    }
 

/* ===========================
   Team Section
=========================== */

    .team-section {
      background: #151A19;
      padding: 60px 10px;
      text-align: center;
    }

    .section-subtitle {
      font-size: 14px;
      color: #ccc;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .section-title {
      color: #f2f2f2;
      font-size: 42px;
      font-weight: 700;
      margin-bottom: 30px;
    }

    .tabs {
      display: flex;
      justify-content: center;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .tab-button {
      padding: 10px 30px;
      border: 1px solid #f4f4f4;
      background-color: #fff;
      color: #000;
      width: 45%;
      font-weight: bold;
      cursor: pointer;
      margin: 5px 0.75px;
    }

    .tab-button.active {
      background-color: #d4a73d;
      color: #000;
    }

    .team-grid {
      display: grid;
      gap: 40px 20px;
      justify-items: center;
      margin: 0px 10%;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
          grid-template-columns: repeat(4, 1fr);

      max-width: 1200px;
    }
    @media (max-width: 599px) {
      .player-card{
        max-width: 200px !important
      }
    .team-grid {
      margin: 0px 1%;
        grid-template-columns: repeat(2, 1fr);
    }
}
  

    .player-card {
      text-align: center;
      max-width: 240px;
    }

    .player-photo {
      width: 100%;
      aspect-ratio: 3 / 4;
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      border: 4px solid #d4a73d;
      transition: transform 0.4s ease;
    }

    .player-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 4px;
      transition: transform 1.4s ease-in-out;
    }

    .player-photo:hover img {
      transform: scale(1.1);
    }

    .jersey-number {
      position: absolute;
      top: 10px;
      left: 10px;
      font-size: 20px;
      font-weight: bold;
      color: white;
      background: rgba(0, 0, 0, 0.5);
      padding: 4px 8px;
      border-radius: 4px;
    }

    .player-name {
      color: #f2f2f2;
      margin-top: 12px;
      font-size: 17px;
      font-weight: 600;
    }

    .player-role {
      font-size: 14px;
      color: #aaa;
      margin-top: 8px;
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    @media (max-width: 768px) {
       .team-grid {
      margin: 0px 1%;
    }
      .tab-button {
        width: 100%;
        max-width: 45%;
      }
    }


    @media (max-width: 599px) {
  .player-card {
    max-width: 200px !important;
  }
 .team-grid {
    margin: 0px 1%;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .team-grid {
    margin: 0px 5%;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
 .tab-button {
    width: 100%;
    max-width: 45%;
  }
}

/* ABOUT SECTION */


    .about-section {
      position: relative;
      width: 100%;
      height: 100vh;
      background: url('images/Jaggi_1.JPG') no-repeat center center/cover;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0 5%;
    }

    .about-section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background-color: rgba(0, 0, 0, 0.4);
      z-index: 1;
    }

    .about-content {
      position: relative;
      z-index: 2;
      max-width: 600px;
      color: #fff;
    }

    .about-content h5 {
      font-size: 16px;
      letter-spacing: 1px;
      font-weight: 500;
      text-transform: uppercase;
      margin-bottom: 12px;
      color: #ffffffcc;
    }

    .about-content h1 {
      font-size: 48px;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 30px;
    }

    .about-content h1 span {
      display: block;
    }

    .about-content .btn {
      display: inline-block;
      padding: 14px 30px;
      background-color: #e63920;
      color: #fff;
      font-size: 16px;
      border-radius: 40px;
      text-decoration: none;
      transition: background 0.3s ease;
    }

    .about-content .btn:hover {
      background-color: #bf2c18;
    }

    @media (max-width: 768px) {
      .about-content h1 {
        font-size: 36px;
      }

      .about-content .btn {
        padding: 12px 24px;
        font-size: 15px;
      }
    }

    @media (max-width: 480px) {
      .about-section {
        justify-content: center;
        text-align: center;
        padding: 0 20px;
      }

      .about-content h1 {
        font-size: 28px;
      }

      .about-content h5 {
        font-size: 14px;
      }
    }
  



/* video section */

    .video-section {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      background: url('images/Aparajith_1.jpg') no-repeat center center/cover;
    }

    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 100px;
      border: 2px solid white;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 18px;
      cursor: grab;
      z-index: 2;
      transition: opacity 0.3s ease;
      user-select: none;
    }

    .play-button h1 {
      color: red;
      font-weight: 800;
      font-size: 16px;
    }

    .video-container {
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 3;
      width: 100%;
      height: 100%;
      pointer-events: auto;
    }

    .video-container iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    #backButton {
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 4;
      padding: 10px 15px;
      background-color: rgba(255, 0, 0, 0.9);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    #backButton:hover {
      transform: scale(1.05);
      box-shadow: 0 0 15px rgba(255, 0, 0, 1);
    }

    .footer {
      background-color: #212121;
      color: white;
      text-align: center;
      padding: 15px 20px;
    }

    @media screen and (min-width: 1024px) {
      .recent-post.visible h3 {
        margin-bottom: 1rem;
      }
    }  
/* ===========================
   CONTACK US
=========================== */



    .contact-container-chepauk {
      display: flex;
      flex-direction: row;
      min-height: 60vh;
      background-color: #fff;
    }

    .left-address, .right-map {
      flex: 1;
      padding: 20px 60px;
    }

    .left-address {
      display: flex;
      flex-direction: column;
      justify-content: start;
      background-color: #fff;
      border-right: 1px solid #eee;
    }

    .left-address h1 {
      font-size: 2rem;
      margin-bottom: 20px;
    }

    .left-address p {
      font-size: 1.1rem;
      line-height: 1.8;
    }

    .left-address a {
      color: #007bff;
      text-decoration: none;
      word-break: break-word;
    }

    .left-address a:hover {
      text-decoration: underline;
    }

    .right-map iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    @media (max-width: 1024px) {
      .left-address, .right-map {
        padding: 40px;
      }
    }

    @media (max-width: 768px) {
      .contact-container-chepauk {
        flex-direction: column;
      }

      .left-address, .right-map {
        padding: 30px 20px;
      }

      .right-map iframe {
        height: 300px;
      }

      .left-address h1 {
        font-size: 1.5rem;
      }

      .left-address p {
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      .left-address, .right-map {
        padding: 20px 15px;
      }

      .left-address h1 {
        font-size: 1.3rem;
      }

      .left-address p {
        font-size: 0.95rem;
      }
    }
/* social share */
.social-icons {
  display: flex;
  gap: 5px;
}

.social-icons a {
  color: #444;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #007bff;
}

.social-icons svg {
  width: 30px;
  height: 30px;
}
@media (max-width: 768px) {
  .social-icons svg {
    justify-content: center;
  width: 35px;
  height: 35px;

  }
}
/* updated css for spounsors */
  .sponsor-rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.sponsor-rows a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22%; 
  min-width: 120px;
}

.sponsor-rows img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


@media (max-width: 768px) {
  .sponsor-rows a {
    width: 30%; 
  }
}


@media (max-width: 480px) {
  .sponsor-rows a {
    width: 45%;
  }
}




/* Local fix: dark fallback behind hero slides so transitions and
   missing/loading slide images never flash white */
.carousel-container,
.hero-slide,
.hero-section {
  background-color: #14161a;
}


/* Fix: stat cards were display:none, leaving .stats-section as an empty
   gray band above the SQUAD section. Show them - values are now real. */
.stat-card {
  display: block;
}


/* ===== Design polish (items 1-5) ===== */

/* 5: smooth anchor scrolling for TEAM / CONTACT nav jumps */
html { scroll-behavior: smooth; }

/* 1: hero caption - bottom-up gradient + text shadow instead of gray box */
.hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0) 65%);
}
.hero-content {
  background-color: transparent;
}
.hero-content h1 {
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}

/* 2: carousel slide indicator dots */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dots .dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* 3: player card hover - lift + gold glow (photo already has a transform transition) */
.player-card:hover .player-photo {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(212, 167, 61, 0.45);
}


/* ===== Design polish (items 6-9) ===== */

/* 7: Inter Tight typography site-wide (font already loaded in head) */
body {
  font-family: 'Inter Tight', Arial, sans-serif;
}

/* 8: sticky navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
body.admin-bar .navbar {
  top: 32px;
}

/* 6: circular play button with pulse ring (replaces draggable "Play" text) */
.play-button {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.45);
}
.play-button .play-icon {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  margin-left: 6px;
}
.play-button::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: csg-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes csg-pulse {
  0%   { transform: scale(1);    opacity: 0.9; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.play-button:hover {
  background-color: rgba(229, 57, 53, 0.85);
}

/* 9: richer footer */
.footer {
  padding: 0;
  text-align: left;
  background-color: #151A19;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 30px;
}
.footer-brand { max-width: 300px; }
.footer-brand img { height: 74px; margin-bottom: 12px; }
.footer-brand p { color: #b9bdb9; font-size: 0.92rem; line-height: 1.6; }
.footer h4 {
  color: #d4a73d;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: #e8e8e4;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: #d4a73d; }
.footer-contact p { color: #b9bdb9; font-size: 0.92rem; line-height: 1.7; margin-bottom: 8px; }
.footer-contact a { color: #e8e8e4; text-decoration: none; font-size: 0.92rem; }
.footer-contact a:hover { color: #d4a73d; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { color: #e8e8e4; transition: color 0.25s ease; }
.footer-social a:hover { color: #d4a73d; }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 14px 20px;
}
.footer-bottom p { color: #8e938e; font-size: 0.85rem; }
@media (max-width: 768px) {
  .footer-main { flex-direction: column; gap: 28px; }
}



/* ===== Shrink header on scroll ===== */
.navbar {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.logo img {
  transition: height 0.3s ease;
}
.navbar.navbar-scrolled {
  padding-top: 2px;
  padding-bottom: 2px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
}
.navbar.navbar-scrolled .logo img {
  height: 54px;
}
@media (max-width: 768px) {
  .navbar.navbar-scrolled .logo img {
    height: 46px;
  }
}


/* ===== Design polish round 3: scroll-top, scrollspy, reveals ===== */

/* 1: floating scroll-to-top button */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: #d84343;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background-color: #b71c1c;
}

/* 2: active nav link highlighting */
.nav-links li a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav-links li a.nav-active {
  color: #b71c1c;
  border-bottom-color: #d84343;
}

/* 3: section reveal on scroll */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-init.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
