/* =========================================
   ROOT
========================================= */

:root {
  --navy: #162a72;
  --blue: #223fae;
  --gold: #d6a73c;
  --yellow: #f8d33b;
  --cream: #fff8e5;
  --white: #ffffff;
  --text: #2a2a2a;
  --soft-gray: #f5f6f8;
  --border: rgba(22, 42, 114, 0.12);
}


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  padding: 0;

  font-family: "Inter", sans-serif;

  color: var(--text);

  background: var(--white);
}


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


a {
  text-decoration: none;
  color: inherit;
}


button {
  font: inherit;
}


section {
  position: relative;
}


/* =========================================
   CONTAINER
========================================= */

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}


.narrow {
  width: min(850px, calc(100% - 40px));
}


.section {
  padding: 90px 0;
}


/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}


h2 {
  margin: 0;

  color: var(--navy);

  font-size: clamp(30px, 4vw, 46px);

  line-height: 1.15;
}


.eyebrow {
  margin: 0 0 12px;

  color: var(--gold);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 3px;

  text-transform: uppercase;
}


.section-heading {
  text-align: center;

  max-width: 760px;

  margin: 0 auto 50px;
}


.section-heading > p:last-child {
  margin: 16px auto 0;

  color: #666;

  font-size: 14px;

  line-height: 1.7;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 5000;

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(22, 42, 114, 0.08);
}


.header-inner {
  height: 78px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}


.brand img {
  width: 145px;

  height: auto;
}


.main-nav {
  display: flex;

  align-items: center;

  gap: 24px;
}


.main-nav a {
  color: var(--navy);

  font-size: 12px;

  font-weight: 600;

  transition: 0.25s ease;
}


.main-nav a:hover {
  color: var(--gold);
}


.header-cta {
  padding: 11px 20px;

  border-radius: 30px;

  background: var(--navy);

  color: var(--white);

  font-size: 12px;

  font-weight: 700;

  transition: 0.25s ease;
}


.header-cta:hover {
  background: var(--blue);

  transform: translateY(-2px);
}


.menu-toggle {
  display: none;

  border: none;

  background: transparent;

  color: var(--navy);

  font-size: 26px;

  cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
  width: 100%;

  min-height: 500px;

  background-image: url("images/hero-krishna.png");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;
}


/* =========================================
   INTRO
========================================= */

.intro {
  text-align: center;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      #fff9ea,
      #ffffff
    );
}


.intro p:not(.eyebrow) {
  max-width: 780px;

  margin: 18px auto;

  color: #666;

  font-size: 15px;

  line-height: 1.9;
}


.gold-rule {
  width: 70px;

  height: 2px;

  margin: 24px auto;

  background: var(--gold);
}


/* =========================================
   STATS
========================================= */

.stats {
  background: var(--navy);

  color: var(--white);
}


.stats-grid {
  min-height: 115px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  align-items: center;
}


.stats-grid > div {
  position: relative;

  text-align: center;
}


.stats-grid > div:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;

  top: 50%;

  width: 1px;

  height: 42px;

  background: rgba(255, 255, 255, 0.15);

  transform: translateY(-50%);
}


.stats strong {
  display: block;

  color: var(--yellow);

  font-size: 22px;
}


.stats span {
  display: block;

  margin-top: 6px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 10px;
}


/* =========================================
   EVENTS
========================================= */

.events {
  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f7f8fb
    );
}


.events-coverflow {
  position: relative;

  width: 100%;

  margin-top: 40px;
}


.coverflow-viewport {
  position: relative;

  width: 100%;

  height: 510px;

  overflow: hidden;

  perspective: 1500px;

  touch-action: pan-y;

  user-select: none;
}


.coverflow-track {
  position: relative;

  width: 100%;

  height: 100%;

  transform-style: preserve-3d;
}


/* =========================================
   EVENT CARD
========================================= */

.coverflow-card {
  position: absolute;

  top: 20px;

  left: 50%;

  width: 290px;

  min-height: 430px;

  background: var(--white);

  border: 1px solid rgba(214, 167, 60, 0.28);

  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 18px 50px rgba(20, 35, 70, 0.14);

  transform-style: preserve-3d;

  transition:
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.55s ease,
    filter 0.55s ease;

  will-change:
    transform,
    opacity;

  cursor: pointer;
}


.coverflow-image {
  width: 100%;

  height: 215px;

  overflow: hidden;

  background: #f4efe5;
}


.coverflow-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  pointer-events: none;
}


/* =========================================
   EVENT CONTENT
========================================= */

.coverflow-content {
  padding: 20px;
}


.coverflow-content .event-number {
  display: block;

  margin-bottom: 8px;

  color: var(--gold);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}


.coverflow-content h3 {
  margin: 0 0 10px;

  color: var(--navy);

  font-size: 21px;

  line-height: 1.25;
}


.coverflow-content p {
  margin: 0;

  color: #666;

  font-size: 12px;

  line-height: 1.65;
}


/* =========================================
   EVENT ACTIONS
========================================= */

.event-actions {
  display: flex;

  gap: 10px;

  margin-top: 18px;
}


.event-register-btn,
.event-guideline-btn {
  flex: 1;

  min-height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 10px 12px;

  border-radius: 8px;

  font-family: "Inter", sans-serif;

  font-size: 12px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s ease;
}


/* REGISTER BUTTON */

.event-register-btn {
  border: 1px solid var(--navy);

  background: var(--navy);

  color: var(--white);
}


.event-register-btn:hover {
  background: var(--blue);

  border-color: var(--blue);

  color: var(--white);

  transform: translateY(-2px);
}


/* GUIDELINE BUTTON */

.event-guideline-btn {
  position: relative;

  overflow: hidden;

  border: 1px solid var(--gold);

  background:
    linear-gradient(
      135deg,
      #fffdf7,
      #fff4cb
    );

  color: var(--navy);

  box-shadow:
    0 4px 14px rgba(214, 167, 60, 0.15);
}


.event-guideline-btn::before {
  content: "⌁";

  margin-right: 6px;

  color: var(--gold);

  font-size: 15px;

  line-height: 1;
}


.event-guideline-btn:hover {
  background: var(--gold);

  color: var(--white);

  border-color: var(--gold);

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(214, 167, 60, 0.3);
}


.event-guideline-btn:hover::before {
  color: var(--white);
}


/* =========================================
   CAROUSEL ARROWS
========================================= */

.coverflow-arrow {
  position: absolute;

  top: 50%;

  z-index: 1000;

  width: 48px;

  height: 48px;

  border-radius: 50%;

  border: 1px solid rgba(214, 167, 60, 0.45);

  background: var(--white);

  color: var(--navy);

  font-size: 30px;

  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 8px 25px rgba(20, 35, 70, 0.15);

  transform: translateY(-50%);

  transition: 0.25s ease;
}


.coverflow-arrow:hover {
  background: var(--navy);

  color: var(--white);

  border-color: var(--navy);

  transform:
    translateY(-50%)
    scale(1.08);
}


.coverflow-prev {
  left: -20px;
}


.coverflow-next {
  right: -20px;
}


/* =========================================
   CAROUSEL DOTS
========================================= */

.coverflow-dots {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  margin-top: 10px;
}


.coverflow-dot {
  width: 8px;

  height: 8px;

  padding: 0;

  border: none;

  border-radius: 50%;

  background: rgba(22, 42, 114, 0.25);

  cursor: pointer;

  transition: 0.3s ease;
}


.coverflow-dot.active {
  width: 25px;

  border-radius: 10px;

  background: var(--gold);
}


/* =========================================
   GENERAL VENUE GUIDELINES
========================================= */

.guidelines {
  background:
    linear-gradient(
      135deg,
      #fffdf8,
      #fff5d9,
      #ffffff
    );
}


.venue-guidelines-card {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;

  max-width: 900px;

  margin: 0 auto;
}


.venue-guideline-item {
  padding: 28px;

  background: rgba(255, 255, 255, 0.82);

  border: 1px solid rgba(214, 167, 60, 0.28);

  border-radius: 14px;

  box-shadow:
    0 10px 35px rgba(22, 42, 114, 0.06);

  transition: 0.25s ease;
}


.venue-guideline-item:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 45px rgba(22, 42, 114, 0.12);
}


.venue-guideline-item h3 {
  margin: 0 0 12px;

  color: var(--navy);

  font-size: 20px;
}


.venue-guideline-item p {
  margin: 0;

  color: #666;

  font-size: 14px;

  line-height: 1.8;
}


/* =========================================
   IMPORTANT DATES
========================================= */

.dates {
  background: var(--soft-gray);
}


.timeline {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  max-width: 850px;

  margin: 0 auto;

  border-radius: 12px;

  overflow: hidden;

  background: var(--white);

  box-shadow:
    0 12px 35px rgba(22, 42, 114, 0.08);
}


.timeline-item {
  min-height: 95px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  border-right: 1px solid rgba(22, 42, 114, 0.1);
}


.timeline-item:last-child {
  border-right: none;
}


.timeline-item strong {
  color: var(--navy);

  font-size: 17px;
}


.timeline-item span {
  margin-top: 8px;

  color: #777;

  font-size: 11px;
}


.timeline-item.active {
  background: var(--navy);
}


.timeline-item.active strong {
  color: var(--yellow);
}


.timeline-item.active span {
  color: rgba(255, 255, 255, 0.8);
}


/* =========================================
   VENUE
========================================= */

.venue {
  background:
    linear-gradient(
      90deg,
      #ffffff,
      #fff8e6,
      #ffffff
    );
}


.venue-grid {
  display: grid;

  grid-template-columns: 1.4fr 1fr;

  align-items: center;

  gap: 80px;
}


.venue h2 {
  margin-bottom: 12px;
}


.venue > .container p {
  color: #666;

  line-height: 1.7;
}


.venue-card {
  padding: 32px;

  text-align: center;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(214, 167, 60, 0.3);

  border-radius: 15px;

  box-shadow:
    0 15px 40px rgba(22, 42, 114, 0.1);
}


.venue-card strong {
  display: block;

  color: var(--navy);

  font-family: "Playfair Display", serif;

  font-size: 20px;
}


.venue-card span {
  display: block;

  margin-top: 10px;

  color: var(--gold);

  font-weight: 700;
}


.venue-card small {
  display: block;

  margin-top: 12px;

  color: #777;

  line-height: 1.5;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin-top: 20px;

  min-height: 44px;

  padding: 12px 22px;

  border-radius: 8px;

  font-size: 12px;

  font-weight: 700;

  transition: 0.25s ease;
}


.btn-primary {
  background: var(--navy);

  color: var(--white);
}


.btn-primary:hover {
  background: var(--blue);

  transform: translateY(-2px);
}


.btn-light {
  background: var(--white);

  color: var(--navy);
}


/* =========================================
   FAQ
========================================= */

.faq {
  background: var(--white);
}


.faq-list {
  border-top: 1px solid rgba(22, 42, 114, 0.12);
}


.faq-list details {
  border-bottom: 1px solid rgba(22, 42, 114, 0.12);

  padding: 0;
}


.faq-list summary {
  position: relative;

  padding: 19px 35px 19px 0;

  color: var(--navy);

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  list-style: none;
}


.faq-list summary::-webkit-details-marker {
  display: none;
}


.faq-list summary::after {
  content: "+";

  position: absolute;

  right: 0;

  color: var(--gold);

  font-size: 20px;
}


.faq-list details[open] summary::after {
  content: "−";
}


.faq-list details p {
  margin: 0 0 20px;

  color: #666;

  font-size: 14px;

  line-height: 1.8;
}


/* =========================================
   FINAL CTA
========================================= */

.final-cta {
  padding: 90px 0;

  text-align: center;

  background: var(--navy);

  color: var(--white);
}


.final-cta h2 {
  color: var(--white);
}


.final-cta p:not(.eyebrow) {
  margin: 18px auto 0;

  color: rgba(255, 255, 255, 0.75);

  font-size: 14px;
}


.final-cta .btn {
  background: var(--white);

  color: var(--navy);
}


.final-cta .btn:hover {
  background: var(--yellow);

  transform: translateY(-2px);
}


/* =========================================
   GUIDELINE MODAL
========================================= */

.guideline-modal {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 30px;
}


.guideline-modal.active {
  display: flex;
}


.guideline-modal-overlay {
  position: absolute;

  inset: 0;

  background: rgba(10, 20, 45, 0.82);

  backdrop-filter: blur(6px);
}


.guideline-modal-content {
  position: relative;

  z-index: 2;

  width: min(90vw, 650px);

  max-height: 90vh;

  overflow-y: auto;

  border-radius: 16px;

  background: var(--white);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4);
}


.guideline-modal-header {
  position: sticky;

  top: 0;

  z-index: 5;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 18px 22px;

  background: var(--white);

  border-bottom: 1px solid rgba(22, 42, 114, 0.1);
}


.guideline-modal-title {
  margin: 0;

  color: var(--navy);

  font-size: 24px;
}


.guideline-modal-close {
  width: 40px;

  height: 40px;

  flex-shrink: 0;

  border: none;

  border-radius: 50%;

  background: var(--navy);

  color: var(--white);

  font-size: 27px;

  line-height: 1;

  cursor: pointer;

  transition: 0.25s ease;
}


.guideline-modal-close:hover {
  background: var(--gold);

  transform: rotate(90deg);
}


.guideline-modal-image {
  display: block;

  width: 100%;

  height: auto;

  background: var(--white);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  background: #101d48;

  color: rgba(255, 255, 255, 0.75);
}


.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 60px;

  padding: 60px 0 40px;
}


.footer-brand img {
  width: 145px;

  margin-bottom: 18px;
}


.footer-brand p {
  margin: 0 0 8px;

  color: var(--white);

  font-size: 13px;
}


.footer-brand span {
  font-size: 11px;

  color: rgba(255, 255, 255, 0.55);
}


.site-footer h3 {
  margin: 0 0 18px;

  color: var(--white);

  font-size: 17px;
}


.site-footer a {
  display: block;

  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 12px;
}


.site-footer a:hover {
  color: var(--yellow);
}


.site-footer p {
  margin: 0;

  font-size: 12px;

  line-height: 1.8;
}


.footer-bottom {
  padding: 22px 20px;

  text-align: center;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.45);

  font-size: 10px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .main-nav {
    gap: 15px;
  }


  .venue-grid {
    gap: 40px;
  }


  .footer-grid {
    gap: 35px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {


  .section {
    padding: 65px 0;
  }


  /* HEADER */

  .header-inner {
    height: 68px;
  }


  .brand img {
    width: 125px;
  }


  .menu-toggle {
    display: block;
  }


  .header-cta {
    display: none;
  }


  .main-nav {
    position: absolute;

    top: 68px;

    left: 0;

    width: 100%;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 15px 20px 25px;

    background: var(--white);

    border-top: 1px solid rgba(22, 42, 114, 0.08);

    box-shadow:
      0 15px 30px rgba(22, 42, 114, 0.08);
  }


  .main-nav.active {
    display: flex;
  }


  .main-nav a {
    padding: 13px 0;
  }


  /* HERO */

  .hero {
    min-height: 280px;

    background-position: center;
  }


  /* STATS */

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);

    padding: 20px 0;

    gap: 20px;
  }


  .stats-grid > div:nth-child(2)::after {
    display: none;
  }


  /* CAROUSEL */

  .coverflow-viewport {
    height: 480px;
  }


  .coverflow-card {
    width: 255px;

    min-height: 410px;
  }


  .coverflow-image {
    height: 185px;
  }


  .coverflow-content {
    padding: 17px;
  }


  .coverflow-content h3 {
    font-size: 18px;
  }


  .coverflow-content p {
    font-size: 11px;
  }


  .coverflow-arrow {
    width: 40px;

    height: 40px;

    font-size: 25px;
  }


  .coverflow-prev {
    left: 4px;
  }


  .coverflow-next {
    right: 4px;
  }


  /* GUIDELINES */

  .venue-guidelines-card {
    grid-template-columns: 1fr;
  }


  .venue-guideline-item {
    padding: 23px;
  }


  .venue-guideline-item h3 {
    font-size: 18px;
  }


  /* DATES */

  .timeline {
    grid-template-columns: 1fr;
  }


  .timeline-item {
    min-height: 85px;

    border-right: none;

    border-bottom: 1px solid rgba(22, 42, 114, 0.1);
  }


  .timeline-item:last-child {
    border-bottom: none;
  }


  /* VENUE */

  .venue-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }


  /* MODAL */

  .guideline-modal {
    padding: 12px;
  }


  .guideline-modal-content {
    width: 100%;

    max-height: 92vh;
  }


  .guideline-modal-header {
    padding: 14px 16px;
  }


  .guideline-modal-title {
    font-size: 18px;
  }


  .guideline-modal-close {
    width: 36px;

    height: 36px;

    font-size: 24px;
  }


  /* FOOTER */

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 50px 0 35px;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .container {
    width: min(100% - 28px, 1120px);
  }


  .narrow {
    width: min(100% - 28px, 850px);
  }


  .section-heading {
    margin-bottom: 35px;
  }


  .event-actions {
    gap: 8px;
  }


  .event-register-btn,
  .event-guideline-btn {
    min-height: 39px;

    padding: 8px;

    font-size: 10px;
  }


  .venue-guideline-item {
    padding: 20px;
  }

}

/* =========================================
   FINAL FUNCTIONALITY FIXES
========================================= */

.timeline.timeline-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 620px;
}

.guideline-modal[aria-hidden="false"] {
  display: flex;
}

.guideline-modal-content {
  isolation: isolate;
}

.guideline-modal-image.is-loading {
  min-height: 260px;
}

@media (max-width: 768px) {
  .timeline.timeline-two {
    grid-template-columns: 1fr;
  }
}
