/* ============================================
   ESCL - Engineering Students Cricket League
   Centralized Stylesheet
   ============================================ */

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.text-white {
  color: #fff;
}

body {
  background: #0c1b33;
  color: #fff;
  line-height: 1.6;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav .logo-container img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

nav h2 {
  color: #f4c430;
  font-size: 24px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

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

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

/* ===== NAVBAR REGISTER BUTTON ===== */
.nav-register-button {
  margin: 0 20px;
  text-align: left;
}

.nav-register-button a {
  background: #c62828;
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  animation: blink-flash 1.5s ease-in-out infinite;
  text-align: left;
}

.nav-register-button a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== HOME BANNER ===== */
.home-banner {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ===== HEADER / HERO SECTIONS ===== */
header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1593766827228-8737b4534aa6") center/cover;
  padding: 80px 20px;
  text-align: center;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1540747913346-19e32dc3e97e") center/cover;
  padding: 80px 20px;
  text-align: center;
}

.header {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("https://images.unsplash.com/photo-1507537297725-24a1c029d3ca") center/cover;
  padding: 80px 20px;
  text-align: center;
}

/* Schedule page specific header background */
body.schedule-page .header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1521412644187-c49fa049e84d") center/cover;
}

header h1,
.hero h1,
.header h1 {
  font-size: 38px;
  font-weight: 700;
  color: #f4c430;
  margin-bottom: 10px;
}

header p,
.hero p,
.header p {
  font-size: 18px;
  margin-top: 10px;
  color: #ddd;
}

.hero h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
}

/* ===== HIGHLIGHTS ===== */
.highlights {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
}

.highlight-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

/* ===== CONTAINER & CONTENT ===== */
.container {
  display: flex;
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.content {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.content h2 {
  color: #f4c430;
  margin-bottom: 15px;
  font-size: 32px;
}

.content p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 16px;
}

.content .highlight-text {
  margin-top: 30px;
  font-weight: 600;
  color: #f4c430;
  font-size: 20px;
}

.content .feature-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.content .feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  line-height: 1.6;
}

.content .feature-list li:last-child {
  border-bottom: none;
}

.content .feature-list li strong {
  color: #f4c430;
}

.content .closing-text {
  margin-top: 30px;
  font-style: italic;
  font-size: 18px;
  color: #f4c430;
}

.content .register-section {
  margin-top: 40px;
  text-align: center;
}

.content .registration-fee {
  margin-bottom: 15px;
  color: #f4c430;
  font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about {
  flex: 1;
  min-width: 300px;
}

.about h2 {
  color: #f4c430;
  margin-bottom: 10px;
  font-size: 28px;
}

.about p {
  line-height: 1.6;
  color: #ddd;
  font-size: 16px;
}

/* ===== FORMS ===== */
.form-box,
.contact-form {
  background: #fff;
  color: #000;
  padding: 25px;
  border-radius: 10px;
  width: 350px;
}

.contact-form {
  flex: 1;
  min-width: 280px;
  padding: 30px;
  border-radius: 12px;
}

.contact-form h2 {
  background: #c62828;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* ===== REGISTER NOW BUTTON (Independent Styling) ===== */
.register-button {
  background: #c62828;
  color: #fff;
  text-align: center;
  padding: 10px 30px;
  border-radius: 6px;
  margin: 0 auto 15px;
  position: relative;
  overflow: hidden;
  animation: blink-flash 1.5s ease-in-out infinite;
  display: inline-block;
  width: 100%;
}

.register-button-about {
  max-width: 300px;
}

.register-button a {
  color: #fff;
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.register-button a:hover {
  opacity: 0.9;
}

/* Blinking/Flashing animation for Register Now button */
@keyframes blink-flash {
  0%, 100% {
    background: #c62828;
    box-shadow: 0 0 0 rgba(198, 40, 40, 0);
  }
  50% {
    background: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.8), 0 0 40px rgba(255, 68, 68, 0.6);
  }
}

.contact-form h2 {
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

textarea {
  resize: none;
  height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 5px rgba(198, 40, 40, 0.3);
}

.fee {
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
  color: #fff;
}

button {
  width: 100%;
  padding: 12px;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #a81f1f;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* ===== FEATURES ===== */
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-box {
  background: #12284a;
  padding: 25px;
  width: 260px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-box h3 {
  margin-top: 10px;
  color: #f4c430;
  font-size: 20px;
}

.feature-box p {
  color: #ccc;
  margin-top: 10px;
  line-height: 1.6;
}

/* ===== FEE BOX ===== */
.fee-box {
  margin-top: 50px;
  background: #f4c430;
  color: #000;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.fee-box:hover {
  transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  color: #f4c430;
  margin-bottom: 15px;
  font-size: 28px;
}

.info-box {
  background: #12284a;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-box p {
  margin: 5px 0;
  color: #ddd;
  line-height: 1.6;
}

.social a {
  margin-right: 10px;
  text-decoration: none;
  color: #f4c430;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== SCHEDULE SECTION ===== */
.schedule {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
}

.teams-section {
  margin: 40px 0;
  padding: 30px 0;
}

.teams-title {
  color: #f4c430;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.team-item {
  background: #12284a;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.team-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(244, 196, 48, 0.3);
  border-color: #f4c430;
  background: #1a3458;
}

.day-title {
  color: #f4c430;
  margin: 30px 0 15px;
  font-size: 24px;
  border-left: 5px solid #f4c430;
  padding-left: 10px;
  font-weight: 600;
}

.match {
  background: #12284a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.teams {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.team-names {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.match-note {
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
  line-height: 1.6;
  margin-top: 8px;
}

.details {
  text-align: right;
  color: #ccc;
  font-size: 14px;
}

.badge {
  background: #f4c430;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
  display: inline-block;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.gallery-overlay p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: #f4c430;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #08162a 0%, #0a1f3a 100%);
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 60px;
  color: #ccc;
  border-top: 2px solid rgba(244, 196, 48, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  margin-bottom: 15px;
}

.footer-copyright {
  color: #f4c430;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-contact {
  color: #ddd;
  font-size: 14px;
  line-height: 1.8;
}

.footer-powered {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-powered p {
  color: #999;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  nav .logo-container img {
    height: 40px;
  }

  nav ul {
    gap: 15px;
    font-size: 14px;
  }

  .nav-register-button {
    margin: 0 10px;
  }

  .nav-register-button a {
    padding: 6px 15px;
    font-size: 12px;
  }

  header h1,
  .hero h1,
  .header h1 {
    font-size: 28px;
  }

  .container {
    padding: 20px;
    justify-content: center;
  }

  .form-box {
    width: 100%;
    max-width: 400px;
  }

  .contact {
    flex-direction: column;
  }

  .details {
    text-align: left;
    margin-top: 10px;
  }

  .match {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-names {
    font-size: 16px;
  }

  .match-note {
    font-size: 11px;
    margin-top: 6px;
  }

  .teams-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .team-item {
    padding: 12px 15px;
    font-size: 14px;
  }

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

  .content h2 {
    font-size: 24px;
  }

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

  .home-banner {
    height: 60vh;
    min-height: 300px;
  }

  footer {
    padding: 25px 15px;
  }

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

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

  .footer-powered p {
    font-size: 12px;
  }

  /* .home-banner img {
    object-fit: contain;
  } */
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-register-button {
    margin: 10px 0;
    order: 3;
  }

  .nav-register-button a {
    padding: 8px 18px;
    font-size: 13px;
  }

  header,
  .hero,
  .header {
    padding: 40px 15px;
  }

  header h1,
  .hero h1,
  .header h1 {
    font-size: 24px;
  }

  .highlights {
    gap: 15px;
  }

  .highlight-box {
    padding: 12px 20px;
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

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

  .home-banner {
    height: 50vh;
    min-height: 250px;
  }

  footer {
    padding: 20px 10px;
  }

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

  .footer-contact {
    font-size: 12px;
    line-height: 1.6;
  }

  .footer-powered {
    margin-top: 15px;
    padding-top: 15px;
  }

  .footer-powered p {
    font-size: 11px;
  }

  /* .home-banner img {
    object-fit: contain;
  } */
}

