.real-time-weather-page {
  padding: 0px 20px;
  min-height: 60vh;

  background-image: url('../assets/real-time-weather/bg2.jpg'); /* ← Your background */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  background-repeat: no-repeat;
  /* border-radius: 12px; */
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.85);
overflow-x: hidden;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 40px;
  padding-top: 40px;
  color: #222;
  letter-spacing: 1px;
}

/* === Initial Cards Section === */
.weather-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;

  /* background: rgba(255, 255, 255, 0.6); */
  /* backdrop-filter: blur(6px); */
  border-radius: 15px;
  padding: 10px 20px;
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); */
}

.weather-card {
  background: #3866ace1; /* Solid white */
  color: white;
  border-radius: 16px;
  width: 280px;
  height: 70px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: sans-serif;
  /* font-size: 10rem; */
  padding: 25px 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}


.weather-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card-icon {
  height: 65px;
  margin-bottom: 20px;
}

.weather-card h2 {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.808);
}

/* === Sub-content Section (Pastweek/Monsoon Layout) === */
.content-section {
  /* background: rgba(255, 255, 255, 0.25); */
  width: 100%;
  margin: auto;
    min-height: 60vh;
  backdrop-filter: blur(1px);
  /* border-radius: 15px; */
  padding: 30px;
  /* margin-top: 40px; */
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); */
  animation: fadeIn 0.5s ease-in-out;
}

.radio-group {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0 20px;
  flex-wrap: wrap;
}

.radio-group label {
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  color: #333;
}

.radio-group input {
  margin-right: 8px;
  transform: scale(1.1);
}

/* === Map/Image Containers === */
.image-preview{
    text-align: center;
    margin: auto;
  margin-top: -5px;
  padding: 10px;
  width: 1122px;
  background-color: rgb(255, 255, 255);
}
.monsoon-image {
  text-align: center;
  margin-top: 20px;
  padding: 10px;
}

.image-preview img,
.monsoon-image img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  border-radius: 12px;
  /* box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15); */
  object-fit: contain;
}

/* === Monsoon Layout === */
.monsoon-card-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
  text-align: center;
}

.monsoon-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  /* width: fit-content; */
  padding: 20px;
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.monsoon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.monsoon-card img {
  width: 170px;
  height: 130px;
  margin-bottom: 10px;
}

.monsoon-card h3 {
  font-size: 1.1rem;
  color: #1f2d3d;
}


/* === Back Button === */
.back-btn {
  background: #07148a;
  color: #fff;
  width: 200px;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.back-btn:hover {
    background: #061066;

}

/* === Utility === */
.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .weather-card-container {
    flex-direction: column;
    align-items: center;
  }

  .monsoon-layout {
    flex-direction: column;
  }

  .monsoon-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .monsoon-sidebar button {
    flex: 1 1 40%;
    margin: 5px;
  }

  .monsoon-image img {
    width: 100%;
  }
}
