/* ======================================================
   GYAAN GOSHTHI — Unified Global Stylesheet
   Version: Refactored 2025-11 (safe for existing pages)
   ====================================================== */

/* ---------- Root Theme Variables ---------- */
:root {
  --saffron: #FF9933;
  --green: #138808;
  --navy: #004d99;
  --muted: #f7f7f7;
  --card: #ffffff;
  --accent: #ffd6a5;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0px;
  overflow-y: scroll; /* prevent layout shift */
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  background: var(--muted);
  color: #112;
  line-height: 1.45;
}

/* ======================================================
   PREMIUM ANIMATED HEADER (CURRENT LIVE VERSION)
   ====================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #240046, #5a189a, #7b2cbf, #3c096c, #240046);
  background-size: 500% 500%;
  animation: gradientMove 20s ease infinite;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.25);
  padding: 22px 20px;
}

/* Golden shimmer overlay */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    /* rgba(255, 215, 0, 0.25) 50%, */
	rgba(240, 200, 0, 0.25) 50%,
    transparent 60%
  );
  animation: shimmer 8s linear infinite;
}

/* Golden shimmer overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    /* rgba(255, 215, 0, 0.25) 50%, */
	rgba(240, 200, 0, 0.25) 50%,
    transparent 60%
  );
  animation: shimmer 8s linear infinite;
}

/* Layout inside header */
.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 86px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}
.brand h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #f8f8ff;
  letter-spacing: 1px;
}
.brand .tag {
  font-size: 18px;
  color: #ffd700;
  margin-top: 2px;
  font-weight: 500;
}

/* Navigation links */
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.nav a:hover {
  color: #ffd700;
  transform: scale(1.07);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ---------- UNIVERSAL DROPDOWN (Dark Theme) ---------- */

/* Ensure header containers don't clip dropdowns */
.header,
.header-inner,
.nav {
  overflow: visible !important;
  position: relative;
  z-index: 10;
}

/* Each dropdown controls its own positioning context */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Button style */
.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #ffffff;
  transition: color 0.2s, transform 0.2s, text-shadow 0.2s;
}

/* Dropdown menu panel */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;                  
  background: #001e3c;      
  min-width: 190px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  border-radius: 8px;
  z-index: 1000;
  flex-direction: column;
  padding: 6px 0;
  font-weight: 500;
  font-size: 12px;
}

/* Dropdown menu items */
.dropdown-menu a {
  color: #ffffff;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  border-radius: 4px;
  white-space: nowrap;
}

/* Hover glow inside dropdown */
.dropdown-menu a:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.03);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Main nav hover */
.nav a:hover,
.dropbtn:hover {
  color: #ffd700;
  transform: scale(1.07);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Responsive header/nav */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 8px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #001e3c;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-menu a {
    padding-left: 24px;
  }
}

/* ======================================================
   LAYOUT & CONTAINERS
   ====================================================== */
.container {
  max-width: 1250px;
  margin: 10px auto;
  padding: 0 12px;
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,153,51,0.06), rgba(19,136,8,0.03));
  border-radius: 12px;
}

.hero .left h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}
.hero .left p {
  margin: 10px 10px;
  font-size: 18px;
  color: #234;
}

.hero .left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.hero .right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.hero .right a.card {
  width: 120%;
}

/* CTA buttons */
.back-home, .cta {
  display: inline-block;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.back-home {
  background: #94d2bd;
  color: #001219;
  padding: 0.6rem 1rem;
}
.back-home:hover { background: #e9d8a6; }

.cta {
  /*background: var(--navy);*/
  background:#240046;
  border-radius:12px;

  border:#fff;
  transform: translateY(-3px);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  margin-top: 28px;
  max-width: fit-content;
}
.cta:hover {
  background: var(--green);
  transform: translateY(-3px);
}

.cta-row {
  display: flex;
  justify-content: space-between;
  width: 85%;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(-3px);
}

/* ======================================================
   CARD STYLES & HOVER-VIDEO
   ====================================================== */
.card,
.hero .card,
.card-grid .card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}

.card p.small {
  margin: 0;
  color: #333;
  font-size: 14px;
}

/* Card thumbnails + universal hover video */
.card-thumb {
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  object-fit: cover;
  aspect-ratio: 16/9;
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.thumb-img,
.thumb-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.thumb-img { opacity: 1; }
.thumb-video {
  opacity: 0;
  pointer-events: none;
}

.card:hover .thumb-img { opacity: 0; }
.card:hover .thumb-video { opacity: 1; }

/* ======================================================
   CARD GRID (common structure for all sections)
   ====================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 44px;
  justify-content: center;
  margin: 18px;
  margin-bottom: 130px;
}

/* ======================================================
   SECTION TITLES
   ====================================================== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  padding-top: 0;
}
.section-title h3 {
  margin: 4px;
  color: var(--navy);
}

/* ======================================================
   GALLERY & CHANNELS
   ====================================================== */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 20px;
  margin-top: 12px;
}

.gallery-item {
  flex: 1 1 240px;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s.ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.gallery-item .logo-header-size {
  height: 96px;
  width: auto;
  object-fit: contain;
}
.gallery-item .gallery-thumb {
  width: 70%;
  height: auto;
  display: block;
  margin: 10px auto 12px;
}

/* ======================================================
   FESTIVALS & STORY PAGES (shared styles)
   ====================================================== */

.festival-title {
  padding: 1rem 1rem;
  background: #fff8e1;
  text-align: center;
}

/* Hero Section for festival pages */
.festival-hero-page {
  text-align: center;
  background: linear-gradient(to bottom, #fff, #f2f6ff);
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.festival-hero-page img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.festival-hero-page h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-top: 20px;
}

.festival-hero-page p {
  font-size: 1.05rem;
  color: #333;
  max-width: 700px;
  margin: 10px auto 0;
  line-height: 1.6;
}

/* Unified activities / cards */
.festival-activities {
  padding: 60px 20px;
  background: #f9fbff;
}

.festival-activities .activity {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.festival-activities .activity:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.festival-activities .btn {
  background: var(--navy);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease, transform 0.1s ease;
}

.festival-activities .btn:hover {
  background: #00509e;
  transform: scale(1.04);
}

/* Video clip / intro section */
.festival-video {
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}
.festival-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #000;
}
.festival-video h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--navy);
  font-weight: 700;
}

/* Story content area */
.story-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 1.6;
}

/* Story navigation buttons */
.story-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding-bottom: 20px;
}
.story-nav .btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #03366a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.story-nav .btn:hover {
  background-color: #0558a0;
  transform: translateY(-2px);
}

/* Responsive adjustments for story nav */
@media (max-width: 600px) {
  .story-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .story-nav .btn {
    width: 80%;
    text-align: center;
  }
}

/* Center single-card festivals sections if needed */
#festival-card.single-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 120px;
}
#festival-card.single-center .card {
  width: 75%;
  max-width: 500px;
  text-align: center;
}
#festival-card.single-center .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: auto;
}
#festival-card.single-center h4 {
  margin-top: 14px;
  margin-bottom: 20px;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 16px;
  margin-top: 20px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media(max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .header-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .brand img {
    height: 80px;
  }
}
@media(max-width: 480px) {
  .card {
    width: 90%;
    margin: auto;
  }
  .gallery-item .logo-header-size {
    height: 80px;
  }
}

/* Scroll-button (if used elsewhere) */
.scroll-btn {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 24px;
  max-width: fit-content;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #0077cc, #00b894);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

/* ============================
   BACK TO TOP BUTTON
   ============================ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 99;
  font-size: 16px;
  background-color: var(--navy);
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}
#backToTop:hover {
  background-color: var(--green);
  transform: translateY(-3px);
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 9999;
}

.modal-card {
  padding: 28px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg,#3c096c,#7b2cbf,#240046);
  color: #fff;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0px 0px 25px rgba(255,215,0,0.35);
}

.modal-close-btn {
  background: #ffd700;
  color: #000;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 600;
  transition: .25s;
}
.modal-close-btn:hover { background: #05B709; }

.error-text {
  color: #e60000;
  font-size: 13px;
  margin-top: -6px;
  margin-bottom: 10px;
  display: none;
}

/* Other Sites Section */
.sister-websites {
  width: 90%;
  margin: 90px auto;
  text-align: center;
}
.sites-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-card {
  width: 260px;
  padding: 18px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: .25s;
}
.site-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 22px rgba(0,0,0,0.25);
}


/* ======================================================
   ANIMATIONS
   ====================================================== */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { left: -60%; }
  100% { left: 100%; }
}
