/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #12002b, #3b0066);
  color: #ffffff;
  overflow-x: hidden;
  width: 100%;
}

.hidden {
  display: none;
}

/* ================= LOADING SCREEN ================= */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #050014;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 25px;
  background: linear-gradient(
    90deg,
    #ff0080,
    #ffcc00,
    #00e5ff,
    #7cff00
  );
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 2.5s linear infinite;
}

@keyframes textGlow {
  to { background-position: 300%; }
}

.loading-box {
  width: min(320px, 80%);
  height: 12px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
}

.loading-box-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    #ff0080,
    #ffcc00,
    #00e5ff,
    #7cff00
  );
  animation: fill 3s forwards;
}

@keyframes fill {
  to { width: 100%; }
}

/* ================= HERO ================= */
.hero-header {
  min-height: 100vh;
  background: url("main page.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
}

/* ================= TOP HEADER ================= */
.top-header {
  position: absolute;
  top: 0;
  width: 100%;
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(90deg, #12002b, #1a003d, #12002b);
  gap: 15px;
  z-index: 10;
}

.college-logo {
  width: 55px;
  height: auto;
}

.college-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.college-name.highlight {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,0.35);
  line-height: 1.2;
}

.college-accreditation {
  font-size: clamp(10px, 1.5vw, 13px);
  font-weight: 600;
  color: #6CFFB5;
  margin-top: 2px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.top-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 16px);
  white-space: nowrap;
}

/* ================= HERO TEXT ================= */
.hero-text-wrap {
  text-align: center;
  z-index: 3;
  padding: 20px;
  width: 100%;
}

.hero-title-animated {
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-weight: 900;
  letter-spacing: clamp(2px, 1vw, 6px);
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-title-animated .word {
  display: inline-block;
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorSlide 6s linear infinite;
}

.hero-title-animated .mittapalli {
  background-image: linear-gradient(
    90deg,
    #ff9f0a,
    #ffd60a,
    #ff9f0a
  );
}

.hero-title-animated .miracles {
  background-image: linear-gradient(
    90deg,
    #00e5ff,
    #7cff00,
    #00e5ff
  );
  margin-left: clamp(8px, 2vw, 16px);
}

.hero-title-animated .year {
  display: block;
  font-size: 0.75em;
  margin-top: 14px;
  background-image: linear-gradient(
    90deg,
    #ff0066,
    #8a2be2,
    #ff0066
  );
}

@keyframes colorSlide {
  to { background-position: 400%; }
}

.hero-date {
  margin-top: 26px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: clamp(2px, 1vw, 4px);
  color: #ffffff !important;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(255, 255, 255, 0.9);
}

.hero-subtext {
  margin-top: 14px;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: clamp(1.5px, 1vw, 3px);
  color: #ffffff !important;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

/* ================= EVENTS SCROLLER ================= */
.events-scroller {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin: 20px 0;
}

.scroller-track {
  display: flex;
  animation: scroll 18s linear infinite;
  min-width: max-content;
}

.scroller-track span {
  padding: 14px 20px;
  white-space: nowrap;
  font-size: clamp(12px, 2vw, 16px);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ================= EVENTS SECTION ================= */
.events-section {
  padding: clamp(50px, 8vw, 120px) 5%;
}

.events-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #6f7cff;
  margin-bottom: 15px;
}

.events-subtitle {
  opacity: 0.85;
  margin-bottom: 30px;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: #d4d4ff;
  max-width: 900px;
}

/* ================= EVENT CARDS ================= */
.events-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px;
  margin-top: 30px;
}

.event-card {
  min-height: 280px;
  border-radius: 26px;
  padding: 30px 20px;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
  transition: 0.4s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 100, 255, 0.55), transparent 70%);
  filter: blur(45px);
  opacity: 0;
  transition: 0.4s;
  z-index: 1;
}

.event-card:hover::before {
  opacity: 1;
}

.event-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.event-btn {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  border: 1.5px solid #fff;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
  margin-top: 20px;
}

.event-card.technical {
  background-image:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
    url("technical.jpg");
}

.event-card.sports {
  background-image:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
    url("sports.jpg");
}

.event-card.spot {
  background-image:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
    url("spot events.jpg");
}

/* ================= ACCOMMODATION ================= */
.accommodation-section {
  padding: clamp(50px, 8vw, 80px) 5%;
}

.accommodation-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(25px, 5vw, 45px) clamp(20px, 5vw, 50px);
  border: 1.5px solid rgba(74,222,128,0.6);
  border-radius: 18px;
  box-shadow:
    0 0 12px rgba(74,222,128,0.35),
    0 0 28px rgba(74,222,128,0.15);
}

.accommodation-label {
  display: inline-block;
  background: #4ade80;
  color: #000;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 20px;
}

.accommodation-points {
  margin: 0 0 25px 15px;
}

.accommodation-points li {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 10px;
}

.accommodation-group {
  margin-top: 25px;
}

.accommodation-group h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #86efac;
  margin-bottom: 8px;
}

.accommodation-group p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.accommodation-group span {
  font-weight: 700;
  color: #ffffff;
}

/* ================= TRANSPORTATION ================= */
.transportation-section {
  padding: clamp(50px, 8vw, 80px) 5%;
}

.transport-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.transport-content {
  width: 100%;
}

.transport-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 20px;
}

.transport-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 20px;
}

.transport-subtitle {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #ffcc00;
  margin: 25px 0 15px;
}

.transport-list {
  list-style: none;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 20px;
}

.transport-list li {
  margin-bottom: 10px;
}

.transport-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.transport-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  animation: busFloat 4s ease-in-out infinite;
}

@keyframes busFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* ================= CONTACT ================= */
.contact-section {
  padding: clamp(60px, 10vw, 90px) 5%;
  position: relative;
}

.contact-label {
  background: linear-gradient(90deg, #c084fc, #f472b6);
  color: #000;
  font-weight: 800;
  padding: 12px 25px;
  border-radius: 14px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.6);
  margin-bottom: 30px;
  display: inline-block;
}

.contact-box {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: clamp(30px, 5vw, 75px) clamp(20px, 5vw, 70px);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow:
    0 0 0 3px rgba(180, 0, 255, 0.75),
    0 0 45px rgba(180, 0, 255, 0.6),
    0 0 110px rgba(180, 0, 255, 0.45);
}

.contact-content h3 {
  color: #ff8cff;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 20px 0 10px;
}

.contact-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 8px;
}

.contact-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  max-width: min(400px, 100%);
  height: auto;
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0); }
}

/* ================= ROUTE MAP ================= */
.route-map-section {
  padding: clamp(50px, 8vw, 80px) 5%;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 30px;
  text-align: center;
}

.map-container {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  filter: invert(92%) hue-rotate(180deg) saturate(80%) contrast(90%);
}

/* ================= FOOTER ================= */
.footer {
  background: #000;
  padding: 25px 20px;
  text-align: center;
  color: #aaa;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

/* ================= EVENT DETAILS PAGE ================= */
.events-header {
  padding: 20px;
  background: linear-gradient(90deg, #12002b, #1a003d);
}

.back-home {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 999px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(
    90deg,
    #00c853,
    #00bfa5,
    #7c4dff,
    #8e24aa
  );
  box-shadow:
    0 6px 25px rgba(0, 200, 83, 0.45),
    0 0 35px rgba(124, 77, 255, 0.35);
  transition: transform 0.3s ease;
}

.back-home:hover {
  transform: translateY(-2px);
}

.events-page {
  padding: clamp(40px, 6vw, 60px) 5%;
}

.category-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 30px;
  text-align: center;
}

/* ================= EVENT DETAIL CARDS ================= */
.event-detail-card {
  max-width: 900px;
  margin: 25px auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 22px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.35);
  box-shadow:
    0 0 20px rgba(140,0,255,0.4),
    0 0 60px rgba(140,0,255,0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-detail-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 25px rgba(150, 90, 255, 0.45),
    0 0 50px rgba(90, 40, 200, 0.35);
}

.event-detail-card img {
  display: block;
  margin: 0 auto 20px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

.event-info {
  text-align: center;
}

.event-info h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 15px;
  color: #ffffff;
}

.event-info p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 10px;
  color: #e5ddff;
}

.event-info p strong {
  color: #ffffff;
}

/* ================= TECHNICAL EVENT CARDS ================= */
.technical-card {
  display: grid;
  grid-template-columns: 1fr;
  background: radial-gradient(
      circle at top,
      rgba(140, 82, 255, 0.25),
      transparent 40%
    ),
    linear-gradient(135deg, #120021, #2b0048, #120021);
  border-radius: 20px;
  overflow: hidden;
  margin: 30px auto;
  max-width: 1100px;
  box-shadow:
    inset 0 0 25px rgba(180, 120, 255, 0.25),
    0 0 40px rgba(120, 60, 255, 0.35);
  transition: transform 0.3s ease;
}

.technical-card:hover {
  transform: translateY(-4px);
}

.technical-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.technical-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.technical-content {
  padding: clamp(20px, 4vw, 40px);
  color: #ffffff;
}

.technical-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.technical-content p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 12px;
  color: #e5ddff;
}

.technical-content p strong {
  color: #ffffff;
}

.technical-footer {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.team {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.staff-block {
  text-align: right;
}

.staff {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  color: #86efac;
  margin-bottom: 5px;
}

.staff-name {
  font-size: clamp(0.95rem, 2vw, 1rem);
  font-weight: 600;
  color: #ffffff;
}

/* Hide Topics heading for Technical Quiz */
.technical-quiz h3 {
  display: none;
}

.quiz-title {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-top: 10px;
}

.rounds {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
}

/* ================= CERTIFICATE BOX ================= */
.certificate-box {
  max-width: 1100px;
  margin: 25px auto 40px;
  background: linear-gradient(135deg, #2a0a4d, #12001f);
  color: #ffffff;
  padding: clamp(20px, 4vw, 24px) clamp(20px, 4vw, 32px);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.certificate-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(120, 60, 200, 0.55);
}

.certificate-box h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.certificate-box ul {
  padding-left: 20px;
}

.certificate-box li {
  margin-bottom: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
}

/* ================= SPORTS EVENTS ================= */
.sports-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.sports-column {
  width: 100%;
}

.sports-pill {
  display: block;
  padding: clamp(12px, 3vw, 14px) clamp(25px, 5vw, 36px);
  margin: 30px auto;
  border-radius: 999px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-align: center;
  width: fit-content;
}

.boys-pill {
  background: linear-gradient(90deg, #00c853, #00bfa5, #7c4dff);
  box-shadow:
    0 8px 30px rgba(0, 200, 83, 0.45),
    0 0 40px rgba(124, 77, 255, 0.35);
}

.girls-pill {
  background: linear-gradient(90deg, #ff4081, #ff80ab, #b388ff);
  box-shadow:
    0 8px 30px rgba(255, 64, 129, 0.45),
    0 0 40px rgba(179, 136, 255, 0.35);
}

.sports-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 25px;
}

.sports-wrapper .event-detail-card {
  height: auto;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.sports-wrapper .event-detail-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
}

/* ================= MEDIA QUERIES FOR LARGER SCREENS ================= */
@media screen and (min-width: 768px) {
  .transport-wrapper {
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
  }

  .contact-box {
    grid-template-columns: 1.3fr 1fr;
  }

  .sports-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .technical-card {
    grid-template-columns: 320px 1fr;
  }

  .technical-img {
    height: auto;
  }

  .technical-img img {
    border-radius: 20px 0 0 20px;
  }
}

@media screen and (min-width: 1024px) {
  .top-header {
    padding: 0 40px;
    height: 70px;
  }

  .events-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .top-nav {
    gap: 45px;
  }
}

/* ================= UTILITY CLASSES ================= */
.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.full-width {
  width: 100%;
}

/* ================= PRINT STYLES ================= */
@media print {
  .loading-screen,
  .back-home,
  .event-btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .event-detail-card,
  .technical-card {
    break-inside: avoid;
  }
}
/* Remove underline from event card links */
.event-card {
  text-decoration: none !important;
}

/* Specifically remove underline from the button text */
.event-btn {
  text-decoration: none !important;
}

/* Remove underline on hover as well */
.event-card:hover .event-btn {
  text-decoration: none !important;
}