:root {
  --primary: #3a0ca3;
  --secondary: #f72585;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gold: #ffd700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

a {
  color: var(--gold);
}

nav {
  padding: 1rem;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li {
  list-style: none;
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
}

nav ul li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--gold);
  display: block;
  margin: auto;
  transition: 1s;
}

nav ul li:hover::after {
  width: 100%;
}

nav ul li a {
  font-size: 20px;
  padding: 10px;
  color: var(--gold);
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(58, 12, 163, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  gap: 20px;
  margin: 2rem 0;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  min-width: 100px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid var(--gold);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--gold);
  text-align: center;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: 1fr;
  }
}

.details-list {
  list-style: none;
}

.details-list li {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.details-list i {
  color: var(--gold);
  margin-right: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-item:hover img {
  opacity: 0.8;
}

.map {
  height: 400px;
  margin: 3rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact {
  padding: 100px;
}

footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: var(--light);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--gold);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* SPONSORS PAGE SPECIFIC STYLES */
#sponsors-head {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

#sponsors-head h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#sponsors-head p {
  font-size: 1.1rem;
  line-height: 1.6;
}

#sponsors {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#sponsors table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

#sponsors tr:not(:first-child) {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

#sponsors tr.element {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

#sponsors td {
  padding: 1rem;
  text-align: center;
  vertical-align: top;
}

#sponsors td[colspan='3'] {
  padding: 2rem 0 1rem;
}

#sponsors td[colspan='3'] h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
}

.enhanced-details {
  align-items: center;
}

.details-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.details-list li {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--light);
  display: flex;
  align-items: center;
}

.details-list i {
  color: var(--gold);
  font-size: 1.4rem;
  margin-right: 1rem;
  min-width: 24px;
}

.details-list a {
  color: var(--gold);
  text-decoration: underline;
}

.enhanced-gallery {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .countdown {
    display: block;
  }
  .enhanced-details {
    flex-direction: column;
  }

  .details-box {
    width: 100%;
  }

  .enhanced-gallery {
    width: 100%;
  }
}

.sponsor-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.sponsor-card {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.sponsor-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-card p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--light);
}

.sponsor-card a:hover img {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--gold);
}

.sponsor-card a:hover p {
  color: var(--gold);
}

.sponsor-category {
  flex: 0 0 100%;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 2rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.5rem;
}

@media (max-width: 480px) {
  #sponsors-head h2 {
    font-size: 1.5rem;
  }

  #sponsors-head p {
    font-size: 1rem;
  }

  #sponsors img {
    max-width: 140px;
  }

  #sponsors p {
    font-size: 0.9rem;
  }
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  color: var(--gold);
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    text-align: center;
    gap: 1rem;
    display: none;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

.school-detail {
  display: block;
  padding: 0 10%;
}

.school-detail h3 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 25px;
  text-align: center;
}

.school-detail p {
  margin-bottom: 20px;
  font-size: 18px;
  text-align: justify;
}

hr {
  color: #ffd700;
}

textarea {
  resize: none;
}

.gap p {
  margin-top: 1rem;
}

.margin {
  margin: 100px;
}

#jsch .container {
  text-align: center;
}

.logo-icon {
  height: 50px;
  width: 300px;
}

.gallery-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--gold);
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.image-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.05);
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.event-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
  padding: 20px 15px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-btn:hover {
  background: #ffed4e;
  transform: scale(1.05);
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 10px;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold);
  color: var(--light);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--gold);
  color: var(--dark);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
}

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
}

.pagination-number.active {
  background: var(--gold);
  color: var(--dark);
  font-weight: bold;
}

.pagination-number:not(.active):hover {
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .pagination-numbers {
    display: none;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
  color: var(--gold);
  padding: 15px 10px 10px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(2px);
}
