/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color: #1e1e1e;
  color: #fff;
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding-left: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s;
}

nav ul li a:hover {
  background-color: #333;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  background: url("../images/Cricket(3).jpg") no-repeat center center/cover;
  background-size: cover;
  color: #fff;
  padding: 50px 20px;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  text-align: center;
}

.hero-content h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.register-btn {
  padding: 15px 30px;
  background-color: #007BFF;
  color: white;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
}

.register-btn:hover {
  background-color: #0056b3;
}

/* Form Container */
.form-container {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background-color: #f8f8f8;
  padding: 30px;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-container label {
  font-weight: bold;
}

.form-container input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px 0;
  border: 1px solid #000;
  border-radius: 4px;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

.form-container button:hover {
  background-color: #0056b3;
}

/* News Section */
.news {
  padding: 60px 0;
  background-color: #fff;
}

.news h2 {
  text-align: center;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.news-grid article {
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 5px;
}

.news-grid img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.news-grid h3 {
  margin-bottom: 10px;
}

.news-grid p {
  font-size: 0.9em;
}

/* Testimonials */
.testimonials {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.testimonial-grid {
  margin-top: 30px;
}

.testimonial {
  background-color: #eaeaea;
  padding: 20px;
  border-radius: 8px;
  font-style: italic;
}

/* About Section */
.about {
  padding: 60px 0;
  background-color: #eaeaea;
  text-align: center;
}

.about h2 {
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1em;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .form-container,
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: row;  /* ✅ Keep horizontal */
    flex-wrap: wrap;      /* Allows wrapping if too long */
    justify-content: center;
    gap: 10px;
  }

  header h1, nav {
    float: none;
    text-align: center;
    margin: 10px 0;
  }

  .register-btn {
    width: 100%;
  }
}
