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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background: #fffaf5;
  color: #2c2c2c;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 15px 10%;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(139, 0, 0, 0.95);
}

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

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

.logo img {
  height: 75px;
  border-radius: 50%;
  /* adjust as per your logo */
  width: auto;
  /* keeps aspect ratio */
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo img:hover {
  transform: scale(1.05);
}


nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #f5e9da;
}

.nav-btn1 {
  background: #f5e9da;
  color: #8b0000;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  /* stays on top */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.no-scroll {
  overflow: hidden;
}

/* Hamburger Animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}


/* ===== HERO ===== */
.vimarsh-hero {
  height: 100vh;
  background: url("https://res.cloudinary.com/dnwpgcx7i/image/upload/v1757593239/Collage_photo_for_Desktop_rq9z4e.png") center / cover no-repeat;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.vimarsh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(139, 0, 0, 0.75),
      /* deep maroon tint */
      rgba(176, 141, 87, 0.55)
      /* golden tint */
    );
  z-index: 0;
}

.vimarsh-hero h1,
.vimarsh-hero p,
.hero-buttons {
  position: relative;
  z-index: 1;
}

.vimarsh-hero h1 {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.vimarsh-hero p {
  margin-top: 10px;
  font-size: 1.3rem;
  color: #f5e9da;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background: #f5e9da;
  color: #8b0000;
}

.btn-primary:hover {
  background: #fff;
}

.btn-outline {
  border: 2px solid #f5e9da;
  color: #f5e9da;
}

.btn-outline:hover {
  background: #f5e9da;
  color: #8b0000;
}


/* ===== ABOUT ===== */
.about {
  padding: 80px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #8b0000;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.4s ease-out;
}

.about p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.6s ease-out;
}

/* Active state when visible */
.about.in-view h2,
.about.in-view p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SPEAKERS ===== */
.speakers {
  padding: 80px 10%;
  text-align: center;
  overflow: hidden;
}

.speakers h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #8b0000;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.speakers h2.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slider wrapper */
.speakers-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

/* Moving track */
.speakers-track {
  display: flex;
  gap: 30px;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* animation: scroll-left 40s linear infinite; */
}

/* Pause on hover */
.speakers-slider:hover .speakers-track {
  animation-play-state: paused;
}

/* Keyframes for auto scroll */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

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

/* Card with 3D flip */
.speaker-card {
  position: relative;
  flex: 0 0 280px;
  height: 360px;
  border-radius: 20px;
  perspective: 1200px;
  background: #fff;
  outline: none;
}

.speaker-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.speaker-front,
.speaker-back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  overflow: hidden;
}

.speaker-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.6s ease;
}

.speaker-card:hover .speaker-inner {
  transform: rotateY(180deg);
}

.speaker-card:hover .speaker-front img {
  transform: scale(1.08);
}

/* Back face */
.speaker-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.96), rgba(176, 141, 87, 0.92));
  color: #f5e9da;
  transform: rotateY(180deg);
  text-align: center;
}

.speaker-back h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.speaker-back p {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.95;
}

/* Accessibility focus */
.speaker-card:focus-visible {
  box-shadow: 0 0 0 3px #f5e9da, 0 0 0 6px #8b0000;
  outline: none;
}

/* ===== GALLERY BASE ===== */
.gallery {
  padding: 80px 8%;
  text-align: center;
}

.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #8b0000;
  font-weight: 700;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.gallery h2.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SLIDER ===== */
.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 16px;
}

.slider-track {
  display: flex;
  gap: 15px;
  animation: slide 25s linear infinite;
}

.slider-track img {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.slider-track img:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Infinite Sliding Keyframes ===== */
@keyframes slide {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* ===== Button ===== */
.gallery-btn {
  margin-top: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #8b0000;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

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



/* ===== ARCHIVES ===== */
.archives {
  padding: 80px 8%;
  text-align: center;
}

.archives h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: #8b0000;
  font-weight: 800;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.archives h2.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.archive-card {
  width: 100%;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.archive-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
  transform-style: preserve-3d;
}

.archive-card:hover .archive-inner {
  transform: rotateY(180deg);
}

.archive-front,
.archive-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.archive-front {
  background: rgba(139, 0, 0, 0.9);
  color: #fff;
}

.archive-front span {
  font-size: 2.5rem;
  font-weight: 800;
}

.archive-front::after {
  content: attr(data-year);
  position: absolute;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  top: 10px;
  right: 15px;
  pointer-events: none;
}

.archive-back {
  background: rgba(255, 255, 255, 0.95);
  color: #8b0000;
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 10px;
  font-size: 1.2rem;
}

.archive-back a {
  margin-top: 10px;
  padding: 8px 16px;
  background: #8b0000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.archive-back a:hover {
  background: #a10000;
}

/* Animation when in view */
.archive-card {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}

.archive-card.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== FOOTER ===== */
.vimarsh-footer {
  background: #1c1c1c;
  color: #e5e5e5;
  padding: 60px 8% 20px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  position: relative;
  font-family: "Poppins", sans-serif;
}

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

.footer-col h3,
.footer-col h4 {
  color: #f5e9da;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 10px 0;
  font-size: 0.95rem;
}

.footer-col ul li a {
  color: #e5e5e5;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #ff4d4d;
}

.footer-socials .social-icons {
  display: flex;
  gap: 15px;
}

.footer-socials .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2c2c2c;
  color: #f5e9da;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials .social-icons a:hover {
  background: #ff4d4d;
  color: #fff;
  transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  position: relative;
}

/* Registration */
/* ===== REGISTRATION FORM ===== */
.registration {
  position: relative;
  /* important so ::before works */
  padding: 80px 10%;
  text-align: center;
  background: url('https://res.cloudinary.com/dnwpgcx7i/image/upload/v1757593239/Collage_photo_for_Desktop_rq9z4e.png') no-repeat center center fixed;
  background-size: cover;
  /* make sure image covers full area */
  z-index: 1;
}

.registration::before {
  content: "";
  position: absolute;
  inset: 0;
  /* shorthand for top:0; right:0; bottom:0; left:0 */
  background: linear-gradient(rgba(139, 0, 0, 0.75),
      /* deep maroon */
      rgba(176, 141, 87, 0.55)
      /* golden */
    );
  z-index: -1;
  /* keeps gradient behind the content */
}


/* Heading style */
.registration h2 {
  font-size: 2.5rem;
  color: #8b0000;
  margin-bottom: 40px;
  opacity: 0;
  letter-spacing: -2px;
  /* start tighter */
  animation: fadeExpand 1s ease-out forwards;
}

@keyframes fadeExpand {
  0% {
    opacity: 0;
    letter-spacing: -2px;
  }

  100% {
    opacity: 1;
    letter-spacing: 2px;
    /* expands slightly */
  }
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group.full-width {
  flex: 1 1 100%;
}

.form-group label {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 6px;
  color: #8b0000;
}

.form-group label span {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border-radius: 12px;
  border: 2px solid #ccc;
  font-size: 1rem;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #8b0000;
  outline: none;
}

/* Custom style for native dropdown */
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 2px solid #ccc;
  font-size: 1rem;
  line-height: 1.4;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom arrow */
  background: #fff url("data:image/svg+xml;utf8,<svg fill='maroon' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center;
  background-size: 18px;
}

/* Dropdown options */
select option {
  white-space: normal;
  /* wrap long text */
  word-break: break-word;
  padding: 8px 10px;
  line-height: 1.4;
}


form button.btn-primary {
  width: 100%;
  padding: 14px 0;
  font-size: 1.1rem;
  border-radius: 30px;
  background: #8b0000;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

form button.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

form button.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.error-message {
  color: #e74c3c;
  font-size: 0.9em;
  margin-top: 5px;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
  animation: slideIn 0.5s ease-out;
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading-spinner i {
  font-size: 2em;
  color: #667eea;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.registration-fee {
  background: linear-gradient(135deg, #f5f7fa 0%, rgba(176, 141, 87, 0.55) 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.registration-fee h3 {
  color: #333;
  margin-bottom: 10px;
}

.fee-amount {
  font-size: 2em;
  color: rgba(139, 0, 0, 0.75);
  font-weight: bold;
  transition: all 0.3s ease;
}

.fee-amount.updated {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.modal-content.error i {
  color: #dc3545;
}

.modal-content.error h2 {
  color: #dc3545;
}

.modal-content i {
  font-size: 4em;
  color: #28a745;
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ===============popup============ */
/* ===== Brochure Popup Card ===== */
.brochure-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: transparent;
  z-index: 9999;
}

.brochure-popup .popup-content {
  background: #fffaf5;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 20px;
  max-width: 300px;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.brochure-popup h3 {
  font-size: 1.2rem;
  color: #8b0000;
  margin-bottom: 8px;
}

.brochure-popup p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.brochure-popup .download-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #8b0000;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.brochure-popup .download-btn:hover {
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ===== GALLERY SECTION (from Gallery.html) ===== */
.gallery {
  padding: 50px 5%;
  text-align: center;
}

.gallery h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #8b0000;
}

.gallery p {
  margin-bottom: 40px;
  color: #555;
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn,
.back-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: #f5e9da;
  margin: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  /* for <a> */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Filter button active state */
.filter-btn.active,
.filter-btn:hover {
  background: #8b0000;
  color: #fff;
}

/* Back button special styling */
.back-btn {
  background: #d9edf7;
  /* light blue */
  color: #003366;
  /* navy text */
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  background: #8b0000;
  /* matches hover accent */
  color: #fff;
}


/* ===== GALLERY GRID ===== */
.gallery {
  background: #fffaf5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item img {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item img.loaded {
  opacity: 1;
  transform: scale(1);
}




.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  background: #eee;
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: none;
}

.gallery-item:hover {
  transform: scale(1.03);
}


/* Caption Overlay */
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover::after {
  transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 2100;
  transition: transform 0.2s, color 0.2s;
}

#lightbox .close:hover {
  transform: scale(1.2);
  color: #f5e9da;
}

/* Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  z-index: 2100;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-arrow:hover {
  color: #f5e9da;
}

.lightbox-arrow.left {
  left: 30px;
}

.lightbox-arrow.right {
  right: 30px;
}


/* Know More */
/* --- BASE STYLES (DESKTOP-FIRST) --- */
/* Your original, unedited desktop-first styles are here. */
.brochure {
  height: 100vh;
  background: url("https://res.cloudinary.com/dnwpgcx7i/image/upload/v1757593239/Collage_photo_for_Desktop_rq9z4e.png") center / cover no-repeat;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.brochure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(139, 0, 0, 0.75), rgba(176, 141, 87, 0.55));
  z-index: 0;
}

/* ===== BOOK CONTAINER ===== */
.book {
  width: auto;
  height: 90vh;
  position: relative;
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.pages {
  height: 100%;
}

/* ===== SINGLE PAGE ===== */
.page {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  background: #752626;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: auto;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
  z-index: 10;
}

.page img {
  height: 100%;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  cursor: grab;
}

/* ===== NAV BUTTONS ===== */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 0, 0, 0.85);
  color: white;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 20;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
  background: #a10000;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 460px;
}

.next-btn {
  right: 460px;
}

/* ===== POPUP CARDS ===== */
.popup {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fff8e1, #fceabb);
  color: #5a3e1b;
  padding: 14px 20px;
  border-radius: 10px;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  font-size: 1rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 50;
  text-align: center;
}

.popup::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #d4af37 transparent;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-10px);
}

.last-popup {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffe0e0, #ffc1c1);
  color: #7a0f0f;
  padding: 14px 22px;
  border-radius: 12px;
  border: 2px solid #a10f1e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 60;
}

.last-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-12px);
}



/* Schedule */
:root {
  --accent: #8b0000;
  --accent-dark: #6d0000;
  --bg: #fffaf5;
  --muted: #555;
}

/* =========Schedule Page============ */
/* ===== SCHEDULE PAGE ===== */
.schedule {
  padding: 80px 10%;
  text-align: center;
  background: var(--bg);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

.schedule h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.schedule-sub {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--muted);
}

/* Filter buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 30px;
  flex-wrap: wrap;
}

.filter-buttons button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(139, 0, 0, 0.12);
  transition: transform .18s ease, background .18s ease;
}

.filter-buttons button:hover {
  transform: translateY(-3px);
}

.filter-buttons button.active {
  background: var(--accent-dark);
}

.schedule-table {
  overflow-x: auto;
  margin-top: 10px;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.schedule-table thead {
  background: var(--accent);
  color: #fff;
}

.schedule-table th,
.schedule-table td {
  padding: 15px 20px;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.schedule-table tr:nth-child(even) td {
  background: #fafafa;
}

.schedule-table tr:hover td {
  background: #ffeaea;
  transition: background 0.3s ease;
}

.small-muted {
  color: var(--muted);
  font-size: .9rem;
}

/* tidier long-speaker cells */
.speakers-cell {
  white-space: pre-line;
  line-height: 1.45;
}

/* Floating scroll buttons */
.scroll-buttons {
  position: fixed;
  right: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.scroll-buttons button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.scroll-buttons button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.scroll-buttons i {
  font-size: 1rem;
}

/* KNOW MORE PAGE COMMEN */

/* --- Desktop Navbar (Original) --- */
.year-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1200;
  display: flex;
  justify-content: center;
  padding: 15px 0;
  font-weight: 600;
  transition: transform 0.3s ease, left 0.3s ease;
}

.year-nav a {
  text-decoration: none;
  color: #444;
  transition: 0.3s ease;
  font-size: 1.1rem;
  position: relative;
  margin: 0 35px;
}

.year-nav a:hover,
.year-nav a.active {
  color: #8b0000;
}

.year-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #8b0000;
  border-radius: 2px;
  transition: width 0.3s ease;
  opacity: 0;
}

.year-nav a.active::after {
  width: 20px;
  opacity: 1;
}

.year-nav-links {
  display: flex;
  /* gap: 50px; */
  align-items: center;
}

/* Hide hamburger menu on desktop */
.hamburger-menu {
  display: none;
}



/* ===== KNOW MORE SECTIONS ===== */
.know-more {
  padding: 140px 10% 100px;
  /* extra padding for sticky nav */
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.km-section {
  display: flex;
  align-items: center;
  gap: 50px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.km-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.km-section:nth-child(even) {
  flex-direction: row-reverse;
}

.km-text {
  flex: 1;
}

.km-text h2 {
  font-size: 2.5rem;
  color: #8b0000;
  margin-bottom: 15px;
}

.km-text p {
  font-size: 1.1rem;
  color: #444;
}

a {
  pointer-events: auto !important;
  z-index: 9999;
}


.km-img {
  flex: 1;
  perspective: 1000px;
  /* enables 3D depth */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.km-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
  /* keep shadows smooth */
  will-change: transform;
  /* hint browser for GPU acceleration */
  
}

/* Shine layer */
.km-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.km-img:hover::after {
  left: 125%;
}


.custom-alert {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.custom-alert .alert-content {
  background: #fffaf5;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.4s ease;
}

.custom-alert h3 {
  margin-bottom: 10px;
  color: #8b0000;
}

.custom-alert button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #8b0000;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-alert button:hover {
  background: #a30000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}



