/* 
   Sri Dinnepati Basireddy’s VIKAS U.P. School & Coaching Center
   Main Stylesheet - Production Ready
   Colors: Blue, Yellow, Red, Pink (Poster Style)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  /* Poster Palette */
  --vikas-blue: #0b3c8c;
  /* Deep Royal Blue */
  --vikas-yellow: #ffcc00;
  /* Bright Poster Yellow */
  --vikas-red: #d32f2f;
  /* Strong Red */
  --vikas-pink: #e91e63;
  /* Vibrant Pink/Lotus Color */

  /* Neutrals */
  --white: #ffffff;
  --light-gray: #f4f6f8;
  --dark-text: #222222;
  --gray-text: #555555;

  /* UI Variables */
  --header-height: 80px;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--vikas-blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
  display: block;
  /* Changed from inline-block to block */
  margin-left: auto;
  margin-right: auto;
  /* Standard centering */
  width: fit-content;
  /* Only take up necessary width */
  max-width: 100%;
  /* Prevent overflow */
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--vikas-yellow);
  margin: 10px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  background: var(--vikas-red);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--vikas-blue);
  box-shadow: 0 4px 10px rgba(11, 60, 140, 0.3);
}

.btn-secondary:hover {
  background: #082d6e;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--vikas-red);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 20px;
}

/* --- Header --- */
.header {
  background: var(--white);
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 80px;
  /* Increased from 60px for better visibility */
  width: auto;
  /* Maintain aspect ratio */
  object-fit: contain;
  /* Ensure the whole logo is visible */
}

.logo-text {
  display: none;
  /* Hide old text logo if present */
}

/* Header Banner Slider */
.header-banner-slider {
  position: relative;
  width: 450px;
  /* Reduced for better logo styling */
  max-width: 100%;
  height: 70px;
  /* Reduced height to minimize overlap */
  overflow: hidden;
  border-radius: 4px;
}

.header-banner-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Keep entire banner visible */
  opacity: 0;
  animation: bannerFade 8s infinite;
}

/* Second image delay */
.header-banner-slider img:nth-child(2) {
  animation-delay: 4s;
}

@keyframes bannerFade {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  55% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .header-banner-slider {
    width: 250px;
    /* Adjusted for mobile logo */
    height: 50px;
    /* Reduced height for mobile */
  }

  .logo img {
    display: none;
    /* Hide static logo image */
  }
}

.logo-main {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vikas-blue);
  line-height: 1;
}

.logo-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vikas-pink);
  letter-spacing: 1px;
}

/* --- Navigation --- */
.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 600;
  color: var(--vikas-blue);
  font-size: 1.05rem;
  padding: 5px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--vikas-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vikas-yellow);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--vikas-blue);
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: var(--vikas-blue);
  color: var(--white);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  font-size: 1.2rem;
  color: var(--vikas-yellow);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer p,
.footer ul li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer-links li a:hover {
  color: var(--vikas-yellow);
  padding-left: 5px;
}

.copyright {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.youtube-float {
  position: fixed;
  bottom: 230px;
  right: 20px;
  background: #FF0000;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.facebook-float {
  position: fixed;
  bottom: 160px;
  right: 20px;
  background: #1877F2;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.instagram-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #E1306C;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.instagram-float:hover {
  transform: scale(1.1);
  background: #C13584;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
}

/* --- Refactored Styles (Lint Fixes) --- */

/* Page Headers */
.page-header-about,
.page-header-school,
.page-header-coaching,
.page-header-syllabus,
.page-header-results,
.page-header-gallery,
.page-header-contact {
  background: linear-gradient(rgba(11, 60, 140, 0.85), rgba(11, 60, 140, 0.75)), url('../images/about_hero_pattern.png') center/cover no-repeat;
  padding: 120px 0;
  text-align: center;
  color: white;
}

.page-header-about h1,
.page-header-school h1,
.page-header-coaching h1,
.page-header-syllabus h1,
.page-header-results h1,
.page-header-gallery h1,
.page-header-contact h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.page-header-about p,
.page-header-school p,
.page-header-coaching p,
.page-header-syllabus p,
.page-header-results p,
.page-header-gallery p,
.page-header-contact p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Sections */
.section-padding {
  padding: 80px 15px;
}

/* About Grid */
.about-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  align-items: center;
}

.about-img-styled {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-title {
  color: var(--vikas-blue);
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Feature Boxes */
.feature-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.feature-title-red {
  color: var(--vikas-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list {
  list-style-type: none;
  margin-top: 15px;
  padding-left: 0;
}

.feature-list i {
  color: var(--vikas-blue);
}

/* Founder Section */
.founder-wrapper {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.founder-img-container {
  flex: 1;
  max-width: 350px;
}

.founder-img-style {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.founder-txt-container {
  flex: 1.5;
  min-width: 300px;
}

.founder-badge {
  background: var(--vikas-yellow);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.founder-quote {
  border-left: 4px solid var(--vikas-red);
  padding-left: 20px;
  font-style: italic;
  color: #555;
}

/* Footer Refactor */
.footer-dark {
  background: #1a1a1a;
  color: #aaa;
  padding: 60px 0 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-social-link {
  color: white;
  background: #333;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.footer-section-header {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 2px solid;
  display: inline-block;
  padding-bottom: 5px;
}

.border-red {
  border-color: var(--vikas-red);
}

.border-yellow {
  border-color: var(--vikas-yellow);
}

.border-blue {
  border-color: var(--vikas-blue);
}

/* Additional Helpers */
.text-link-none {
  text-decoration: none;
  transition: 0.3s;
  color: #aaa;
}

.text-link-none:hover {
  color: white;
}

/* --- Syllabus & Module Papers --- */
.syllabus-section {
  padding: 80px 0;
}

.syllabus-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  margin-bottom: 40px;
  border-top: 5px solid var(--vikas-blue);
}

.syllabus-card h2 {
  color: var(--vikas-blue);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.syllabus-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: var(--border-radius);
}

.syllabus-item h4 {
  color: var(--vikas-red);
  margin-bottom: 10px;
}

.info-box {
  background: #fff9e6;
  border-left: 5px solid var(--vikas-yellow);
  padding: 20px;
  margin-top: 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h5 {
  color: #856404;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Tabs UI */
.tabs-container {
  margin-top: 30px;
}

.tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  background: var(--light-gray);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--vikas-blue);
  color: var(--white);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: var(--vikas-blue);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Module Papers */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.paper-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid #eee;
  text-align: center;
  transition: var(--transition);
}

.paper-card:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-5px);
}

.paper-card.locked {
  position: relative;
  overflow: hidden;
}

.paper-card.locked .lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.lock-icon {
  font-size: 2rem;
  color: var(--vikas-red);
  margin-bottom: 10px;
}

.paper-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.tag-free {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-locked {
  background: #ffebee;
  color: #c62828;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--light-gray);
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--vikas-blue);
}

.breadcrumbs span {
  margin: 0 10px;
  color: var(--gray-text);
}

/* Modal for Contact Form */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Print Styles */
@media print {

  .top-bar,
  .header,
  .social-links,
  .syllabus-card {
    box-shadow: none;
    border: 1px solid #eee;
    margin-bottom: 20px;
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
  }
}

/* --- Winners Marquee/Auto-Scroll --- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 auto;
  width: 250px;
  transition: transform 0.3s ease;
}

.marquee-item:hover {
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Flash News / Winners Ticker --- */
.flash-news-container {
  background: var(--vikas-red);
  color: var(--white);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.flash-news-content {
  display: inline-block;
  padding-left: 100%;
  animation: flash-scroll 20s linear infinite;
}

@keyframes flash-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}/* Responsive Styles */

@media (max-width: 992px) {
    .header .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .founder-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .founder-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar .container {
        flex-direction: column;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 500px;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-main {
        font-size: 1.4rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .logo img {
        height: 40px;
    }

    .btn,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .hero-content div {
        width: 100%;
    }
}

/* Prevent Horizontal Scroll Globally */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Global Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
}

table {
    display: block;
    overflow-x: auto;
    width: 100%;
}

iframe {
    max-width: 100%;
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .social-links {
        justify-content: center;
    }
.marquee-item:hover {
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Flash News / Winners Ticker --- */
.flash-news-container {
  background: var(--vikas-red);
  color: var(--white);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.flash-news-content {
  display: inline-block;
  padding-left: 100%;
  animation: flash-scroll 20s linear infinite;
}

@keyframes flash-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}/* Responsive Styles */

@media (max-width: 992px) {
    .header .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .founder-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .founder-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar .container {
        flex-direction: column;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 500px;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo-main {
        font-size: 1.4rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .logo img {
        height: 40px;
    }

    .btn,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .hero-content div {
        width: 100%;
    }
}

/* Prevent Horizontal Scroll Globally */
html {
    overflow-x: hidden;
    width: 100%;
}
body {
    overflow-x: hidden;
    width: 100%;
    /* NOTE: Do NOT add position:relative here — it breaks position:fixed on child elements */
}

/* Global Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
}

table {
    display: block;
    overflow-x: auto;
    width: 100%;
}

iframe {
    max-width: 100%;
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .social-links {
        justify-content: center;
    }

    .stat-item h3 {
        font-size: 2rem !important;
    }
}
/* --- Video Popup (Bottom-Left Float) --- */
.video-popup-container {
    /* Hidden by default — JS adds .video-popup-visible on first visit */
    display: none;
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 320px;
    background: #111;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 99999 !important;
    overflow: hidden;
    animation: none;
}

.video-popup-container.video-popup-visible {
    display: block;
    animation: videoSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.video-popup-container.video-popup-hidden {
    display: none;
}

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

/* Header bar with YouTube red gradient */
.video-popup-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #FF0000, #c00000);
    padding: 9px 12px;
}

.video-popup-label {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.video-popup-label i {
    font-size: 1.1rem;
}

/* Close (X) button inside header */
.close-video-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.15);
}

/* Video body — 16:9 aspect ratio */
.video-popup-body {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-popup-body iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
    max-width: none !important;
}

@media (max-width: 480px) {
    .video-popup-container {
        width: calc(100vw - 30px) !important;
        left: 15px !important;
        bottom: 15px !important;
    }
}
