/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #212121;
  background-color: #f8f9fa;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Navigation Styles */
.navbar {
  position: fixed;
  background: #006769;
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 0 0 50px;
  box-shadow: 0 6px 15px rgba(26, 35, 50, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 12px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

.hamburger {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 8px 16px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 12.8px;
  font-size: 13.6px;
  font-weight: 550;
  text-transform: uppercase;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.nav-link:hover { background-color: rgba(255, 255, 255, 0.1); border-radius: 6px;}

/* Underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Hover effect */
.nav-link:hover::after {
  width: 85%;
}

.nav-p {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 12.8px;
  font-size: 13.6px;
  font-weight: 550;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background-color: #006769;
  list-style: none;
  padding: 8px 0;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  color: #f5f5f5;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 13.6px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  /* use viewport-based sizing so the background carousel fills the section
     while keeping the content vertically centered and responsive */
  min-height: 60vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #D2DCB6;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding-top: 72px; /* avoid being hidden behind the fixed navbar on small screens */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.2) saturate(1.15);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  /* backdrop-filter: blur(2px); */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 20px;
}

/* Hero Carousel (background) */
.hero-carousel {
  /* make the carousel act as a true background layer that fills the whole hero */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* make Splide track fill container */
.hero-carousel .splide,
.hero-carousel .splide__track,
.hero-carousel .splide__list,
.hero-carousel .splide__slide {
  height: 100%;
}

.splide__slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hero-title {
  font-family: 'Inter', serif;
  font-size: 35.2px;
  font-weight: 900;
  margin-bottom: 16px;
  margin-top: 0;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Inter', serif;
  font-size: 25.6px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-location {
  font-family: 'Inter', serif;
  font-size: 22.4px;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-date {
  font-family: 'Inter', serif;
  font-size: 19.2px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #dc3545;
  color: #fff;
  width: 200px;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid #dc3545;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: #af0919;
  border-color: #bd2130;
}

/* Countdown Timer */
.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

/* group wraps the two digit cards + label */
.countdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

.count-label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.colon {
  font-size: 44px;
  line-height: 1;
  color: #D9E9CF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transform: translateY(-12px);
  /* visually center with digits */
}

/* Improved flip card: full-height front/back and 3D flip animation */
.flip-card {
  position: relative;
  width: 50px;
  height: 80px;
  perspective: 600px;
  font-size: 40px;
  /* smaller so digits fit inside */
  color: #222;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.4, .2, .2, 1);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
  font-weight: 700;
  /* visible card border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.flip-card-front {
  background-color: #ddd;
}

.flip-card-back {
  background-color: #eee;
  transform: rotateX(180deg);
  color: #333;
}

/* When .flip is toggled the inner element rotates to reveal the back */
.flip-card.flip .flip-card-inner {
  transform: rotateX(-180deg);
}

/* Marquee Section */
.marquee-section {
  background-color: #f8f9fa;
  padding: 8px 0;
  overflow: hidden;
}

.marquee-text {
  font-family: 'Inter', sans-serif;
  font-size: 22.4px;
  text-align: center;
  font-weight: 700;
  color: #006769;
  animation: blink 2s linear infinite;
}

.text-blink{
  animation: blink 2s linear infinite;
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0.5;
  }
}

/* About & Announcements Section */
.about-announcements-section {
  padding: 80px 0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.two-column-grid>* {
  min-width: 0;
  /* prevent overflow on smaller screens */
}

.about-card,
.announcements-card {
  background-color: #004E4F;
  color: #f5f5f5;
  padding: 60px;
  border-radius: 20px;
  flex: 1;
  box-shadow: 0 4px 24px rgba(26, 35, 50, 0.1);
}

.gst-para{
  display: flex;
  margin: 20px auto 0 auto;
  max-width: 700px;
  color: red;
  text-align: center;
}

.announcement-item a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-title {
  font-family: 'Inter', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.section-year {
  font-family: 'Inter', serif;
  font-size: 32px;
  font-weight: 700;
  color: #9FE8E9;
  margin-bottom: 20px;
}

.about-text {
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 16px;
  text-align: justify;
}

.announcements-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.announcements-title {
  font-family: 'Inter', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.announcements-list {
  list-style: none;
  width: 100%;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.announcement-item {
  background-color: #006769;
  color: #fff;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 10px;
  border-left: 5px solid #9FE8E9;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.07);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Tablet: reduce gaps/padding and font sizes slightly */
@media (max-width: 992px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-card,
  .announcements-card {
    padding: 48px 36px;
  }

  .about-text {
    font-size: 15px;
  }

  .announcement-item {
    font-size: 15px;
    padding: 16px 18px;
    margin-bottom: 14px;
  }

  .nav-link:hover{
    background: #fff;
    color: #006769;
  }

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

/* Mobile: tighter spacing and readable text sizes */
@media (max-width: 768px) {
  .about-announcements-section {
    padding: 56px 0;
  }

  .title, .sub-title {
    font-size: 24px !important;
  }

  .about-card,
  .announcements-card {
    padding: 40px 28px;
  }

  .section-title,
  .section-year,
  .announcements-title {
    font-size: 24px;
  }

  .about-text {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .announcement-item {
    font-size: 14.5px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }
}

/* Small phones: compact layout */
@media (max-width: 576px) {

  .about-card,
  .announcements-card {
    padding: 30px 20px;
  }

  .about-text {
    font-size: 14px;
  }

  .announcement-item {
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
}

.announcements-list {
  list-style: none;
  width: 100%;
  margin-top: 24px;
}

.announcement-item {
  background-color: #006769;
  color: #fff;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 10px;
  border-left: 5px solid #9FE8E9;
  border-bottom: 5px solid #9FE8E9;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.07);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Important Dates Section */
#important-dates-section {
  padding: 60px 20px;
  background-color: #fff;
}

#important-dates-section h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  font-family: 'Inter';
  color: #006769;
}

.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}


.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ccc;
  transform: translateX(-50%);
}


.timeline-progress {
  position: absolute;
  top: 0;
  width: 100%;
  height: 0%;
  background-color: #4FB8B9;
  transition: height 8s ease-out;
}


.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 45%;
}


.timeline-item:nth-child(even) {
  margin-left: 55%;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
}

.content {
  margin-left: 32px;
}

.dot {
  position: absolute;
  top: 5px;
  height: 14px;
  width: 14px;
  background-color: #4FB8B9;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .dot {
  right: -10px;
}

.timeline-item:nth-child(even) .dot {
  left: -10px;
}


.animate-progress .timeline-progress {
  height: 100%;
}

.cut{
  /* text-decoration: line-through red 2px !important; */
  color: grey;
  font-size: small;
  display: inline-block;
  position: relative;
}

.cut::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: red;
}

/* ===== Authors Guidelines ===== */

.author-guidelines-section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 12px;
  background: #fff;
  border: 6px solid #1a8c8d;
  border-radius: 12px;
}

.author-guidelines-section .author-guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 20px;
}

.author-guidelines-list {
  margin-top: 0.5rem;
  list-style: none;
  padding-left: 0;
}

.author-guidelines-list li {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.9rem 1rem 0.9rem 2.1rem;
  line-height: 1.7;
}

.author-guidelines-list li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #006769;
  top: 45%;
}

.author-guidelines-list li::marker {
  content: "";
}

.author-guidelines-list a {
  color: #2d5a87;
  font-weight: 600;
  word-break: break-word;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .author-guidelines-section {
    padding: 0 16px;
  }
}


/* Organizing committee section */
.committee-section {
  padding: 70px 40px 0;
  background: #f8fcfc;
  font-family: Arial, sans-serif;
}


.title,
.sub-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  font-family: "Inter";
  color: #006769;
  margin: 20px;
}


.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}


.committee-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-left: 8px solid #006769;
  border-bottom: 8px solid #006769;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.committee-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.committee-card p{
  padding: 6px 0 0;
}

.committee-card h3 {
  margin-top: 0;
  color: #006769;
  font-size: 20px;
  font-family: "Inter";
}

.committee-card, .secretary-grid span {
  font-weight: 400;
  font-size: 16px;
}


.committee-wide-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-left: 8px solid #1a8c8d;
  border-bottom: 8px solid #1a8c8d;
  margin-bottom: 60px;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
  align-items: start;
  font-family: "Inter";
}

.committee-wide-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.committee-column {
  display: flex;
  flex-direction: column;
}

.committee-column > h3 {
  margin: 0 0 6px 0;
  color: #006769;
  font-size: 20px;
  line-height: 1.2;
}

.committee-column .secretary-grid {
  display: flex;
  flex-direction: column;
}

.secretary-grid p {
  margin: 0;
  background: transparent;
  padding: 6px 0;
  color: #333;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 60px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-left: 8px solid #4fb8b9;
  border-bottom: 8px solid #4fb8b9;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.program-grid:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.program-column {
  padding: 8px 12px;
}

.program-column span{
  font-weight: 400;
}

.program-column li{
  margin-bottom: 8px;
}

.program-column-title {
  margin: 0 0 10px;
  color: #006769;
  font-size: 20px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

/* responsive: 2 columns on medium screens, 1 column on small screens */
@media (max-width: 992px) {
  .committee-wide-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .committee-wide-card {
    grid-template-columns: 1fr;
  }

  .committee-column > h3 {
    font-size: 16px;
  }

  .secretary-grid p {
    font-size: 14px;
  }
}

/* Fees section */
.fees-section {
  padding: 70px 40px;
  background: #f8fcfc;
  font-family: Arial, sans-serif;
}


.fees-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #006769;
  margin-bottom: 40px;
}


.fees-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 6px solid #1a8c8d;
  max-width: 1200px;
  margin: auto;
}


.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}


.fees-table thead th {
  background: #006769;
  color: #ffffff;
  padding: 14px;
  font-weight: 700;
  text-align: left;
  border-bottom: 3px solid #004e4f;
}


.fees-table tbody tr {
  border-bottom: 1px solid #d5eaea;
}


.fees-table td {
  padding: 12px;
  color: #004e4f;
}


.fees-table tbody tr:hover {
  background: #e9f7f7;
  transition: 0.3s ease-in-out;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #004E4F 0%, #006769 100%);
  color: #ffffff;
  padding: 40px 0 24px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #1a8c8d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.footer-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.footer-subtitle {
  font-size: 14px;
  color: #d9f1f2;
  margin-top: 2px;
}

.footer-desc {
  margin: 12px 0 16px;
  color: #eaf6f6;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.footer-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.footer-contact {
  margin-top: 8px;
  font-size: 14px;
  color: #eaf6f6;
}

.footer-map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border: 6px solid #1a8c8d;
  background: #ffffff;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.footer-bottom {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  text-align: center;
}

.footer-text{
  font-size: medium;
  margin-bottom: 12px;
  color: #9bf2f3;
}

.footer-counter {
  margin: 0 0 10px;
  color: #d9f1f2;
  font-size: 15px;
}

.footer-contact a{
  color: white;
  text-decoration: none;
}

/* Responsive footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .map-iframe {
    height: 240px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 28px 0 18px;
  }

  .footer-title {
    font-size: 20px;
  }

  .footer-subtitle {
    font-size: 13px;
  }

  .footer-desc {
    font-size: 14px;
  }

  .footer-link {
    font-size: 13px;
    padding: 7px 10px;
  }

  .map-iframe {
    height: 220px;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .dates-content {
    padding-left: 100px;
  }
}

@media (max-width: 992px) {
  .navbar {
    right: 0;
    left: 0;
    border-radius: 0 0 20px 20px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 73px;
    left: -100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #006769;
    width: 100%;
    gap: 0;
    padding: 20px;
    transition: left 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 73px);
    overflow-y: auto;
  }

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

  .nav-item {
    margin: 8px 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .dates-content {
    padding-left: 20px;
  }

  .sponsors-grid .sponsor-card {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .sponsors-grid.financial-sponsors .sponsor-card {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-location {
    font-size: 18px;
  }

  .hero-date {
    font-size: 16px;
  }
}

@media (max-width: 768px) {

  .about-card,
  .announcements-card {
    padding: 40px 30px;
  }

  .section-title,
  .section-year,
  .announcements-title {
    font-size: 24px;
  }

  .dates-title {
    font-size: 32px;
  }

  .sponsors-main-title {
    font-size: 32px;
  }

  .sponsors-subtitle {
    font-size: 24px;
  }

  .countdown-timer {
    transform: scale(0.8);
  }

  .hero-section {
    min-height: 600px;
    height: 700px;
  }
}

@media (max-width: 576px) {

  .sponsors-grid .sponsor-card,
  .sponsors-grid.financial-sponsors .sponsor-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .about-card,
  .announcements-card {
    padding: 30px 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .countdown-timer {
    transform: scale(0.6);
  }

  .marquee-text {
    font-size: 16px;
  }
}

/* mobile-centered image in navbar (hidden on desktop) */
.nav-center-image {
  display: none;
}

.nav-center-image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* show the centered image on mobile and place it above nav menu */
@media (max-width: 992px) {
  .nav-center-image {
    display: block;
    position: absolute;
    right: 10%;
    top: 16px;
    z-index: 1100;
    pointer-events: none;
    /* avoid interfering with toggle button */
  }

  .hero-content {
    max-width: 325px;
  }

  /* push the mobile nav menu down so the centered logo doesn't overlap content */
  .nav-menu {
    top: 86px;
    /* increased to clear centered logo */
  }

  .navbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* hide the inline logo in nav-menu for a cleaner mobile center logo */
  .nav-menu>.nav-item:first-child img {
    display: none;
  }
}

/* reduce flip-card and timer scaling on very small screens */
@media (max-width: 576px) {
  .flip-card {
    width: 34px;
    height: 56px;
    font-size: 22px;
  }

  .colon {
    font-size: 28px;
    transform: translateY(-6px);
  }

  .nav-center-image img {
    width: 36px;
    height: 36px;
  }
}

/* Sponsors Section */
.sponsors-section {
  padding: 60px 20px;
  background: #fff;
}

.sponsors-section .title {
  text-align: center;
  margin-bottom: 24px;
  color: #006769;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.sponsor-card {
  background: transparent;
  padding: 16px;
  border-radius: 12px;
  border: 4px solid #1a8c8d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.5s ease, transform 0.5s ease !important;
}

.sponsor-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px) !important;
}

.sponsor-card img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 576px) {
  .sponsor-card img {
    height: 80px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 12px;
  border: 6px solid #1a8c8d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 24px 20px;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #006769;
  margin: 0 0 8px;
  text-align: center;
}

.modal-message {
  font-size: 16px;
  color: #333;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #1a8c8d;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.05);
  background: #157a7b;
}

@media (max-width: 576px) {
  .modal {
    padding: 18px 16px;
    max-width: 440px;
  }

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

  .modal-message {
    font-size: 14px;
  }
}

.modal-image {
  display: flex;
  margin: 0 auto;
}

/* Photo Carousel Section */
.photo-carousel-section {
  padding: 60px 20px;
  background-color: #fff;
}

.photo-carousel-section .title {
  margin-bottom: 24px;
}

.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 6px solid #1a8c8d;
  background: #f3f7f7;
}

/* Sliding track */
.carousel .slides {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  /* fallback */
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption overlay at bottom */
.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.0));
  text-align: center;
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

/* Responsive tweaks for carousel */
@media (max-width: 768px) {
  .photo-carousel-section {
    padding: 40px 16px;
  }

  .caption {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .carousel .slides {
    aspect-ratio: 4 / 3;
  }

  .caption {
    font-size: 13px;
    padding: 10px 12px;
  }
}
