/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html{
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f4fc;
  color: #333;
}


/* Header */
.header {
  background: #4caf50;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.logo {
  font-size: 25px;
  font-weight: bold;
  color: black;
}

.nav-icons img {
  margin-left: 20px;
  font-size: 20px;
  object-fit: cover;
  cursor: pointer;
}
.icons {
  width: 25px;
  height: 25px;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.hero-text {
  position: absolute;
  width: 50%;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 10px;
  box-sizing: border-box;
}

.hero-text h1 {
  font-size: 25px;
  margin-bottom: 15px;
}

.hero-text input {
  padding: 10px;
  font-size: 16px;
  width: 300px;
  border: none;
  border-radius: 5px;
}

label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 500;
}

select,
button {
  padding: 12px 16px;
  width: 100%;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

button {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4caf50;
}

/*Responsive */
@media screen and (max-width: 768px) {
  .hero-text {
    width: 80%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 20px;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  .hero-text input {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .hero-text {
    width: 90%;
    top: 55%;
    transform: translate(-50%, -55%);
    padding: 14px 16px;
  }

  .hero-text h1 {
    font-size: 18px;
  }
}



/* Result Section */


#result {
  margin-top: 30px;
  text-align: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  color: #333;
}
p {
  text-align: left;
  font-size: 14px;
  
}

/* Metro Network Section
/* Layout for the entire section */
.network-section {

  padding: 20px 20px;
  text-align: center;
}
#network-para{
  font-size: 16px;
  margin-left: 20px;
  color: #555;
  text-align: left;
}

/* Grid wrapper */
.network-grid {

  display: grid;
  grid-template-rows:  repeat(auto-fit, minmax(250px, 1fr));

  gap: 20px;
  padding: 0 20px;
}

/* Card styling */
.network-card {

  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Section headings */
.section-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
  justify-content: center;
  display: flex;
}

/* Map image styling */
.map-image {
  width: 70%;
  height: 70%;
  object-fit: cover;
  border-radius: 8px;

}

/* Info grid layout */
.info-grid {

  display: grid;
  grid-template-columns:  repeat(auto-fit, minmax(300px, 1fr));

  gap: 20px;
  padding: 0 20px;
}

/* Individual info cards */
.info-card {

   background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  
}





/* Facts Section */
/* Rules Section */
.rules-section,
.facts-section {
  padding: 20px;
  background-color: #ffffff;
  margin: 20px;
  border-radius: 10px;
}

.rules-section h2,
.facts-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
}

.facts-grid,
.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.rules-list div,
.facts-grid div {
  background-color: #f8f8ff;
  padding: 15px;
  border-radius: 8px;
  border-left: 5px solid #4caf50;
}


/* Footer */

.custom-footer {
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-family: sans-serif;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-icon {
  width: 40px;
  height: 40px;
}

.footer-logo h2 {
  margin: 0;
  font-size: 24px;
}

.footer-logo p {
  margin: 0;
  font-size: 12px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #020202;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  margin: 20px 0;
}

.footer-social img {
  width: 32px;
  height: 32px;
  margin: 0 8px;
  vertical-align: middle;
}

.footer-note {
  font-size: 14px;
  color: #020202;
  margin-top: 20px;
  opacity: 0.8;
}

hr {
  border: none;
  border-top: 1px solid black;
  margin: 20px 0;
}

/* Dropdown Menu*/
.menu-popup {
  display: none;
  position: absolute;
  right: 25px; 
  top: 60px; 
  background-color: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-radius: 10px;
  width: 220px;
  z-index: 999;
  padding: 10px 0;
}

.menu-popup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-popup li {
  text-align: left;
}

.menu-popup li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.menu-popup li a:hover {
  background-color: #4caf50;
  border-radius: 6px;
}

