/* =========================
   A DAY AT TINY BIRDS
========================= */

.aday-section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
  background: #f9fdff;
}

/* BACKGROUND IMAGE */
.aday-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aday-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.aday-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.aday-title {
  font-size: 32px;
  font-weight: 700;
  color: #0b3c5d;
  margin-bottom: 60px;
}

/* CARDS WRAPPER */
.aday-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =========================
   CARD BASE
========================= */
.aday-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 0 24px 36px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.aday-card:hover {
  transform: translateY(-6px);
}

/* =========================
   IMAGE AREA (FIXED HEIGHT)
========================= */
.card-image {
  margin: 0 -24px 24px;
  padding: 24px;
  height: 260px;               /* ✅ FIXED HEIGHT */
  display: flex;
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center */
  border-radius: 28px 28px 0 0;
}

/* IMAGE – UNIFORM SIZE */
.card-image img {
  width: 200px;                /* ✅ FIXED WIDTH */
  height: 200px;               /* ✅ FIXED HEIGHT */
  object-fit: contain;         /* ✅ keeps aspect ratio */
}

/* IMAGE BACKGROUND COLORS */
.card-yellow .card-image {
  background: #FFDB7B;
}

.card-blue .card-image {
  background: #9EC5FF;
}

.card-orange .card-image {
  background: #FFB566;
}

/* =========================
   CARD CONTENT
========================= */
.aday-card h3 {
  font-size: 29px;
  font-weight: 700;
  color: #003D58;
  margin-bottom: 16px;
}

.aday-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.aday-card ul li {
  font-size: 16px;
  color: #003D58;
  margin-bottom: 10px;
}

/* BUTTON */
.card-btn {
  display: inline-block;
  padding: 10px 42px;
  background: #51AAF9;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .aday-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aday-title {
    font-size: 26px;
  }

  .card-image {
    height: 220px;
  }

  .card-image img {
    width: 180px;
    height: 180px;
  }
}

/* =========================
   POPUP + FLOATING (UNCHANGED)
========================= */

.aday-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.aday-popup {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 24px;
  padding: 40px 40px 0;
  animation: popupScale 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

@keyframes popupScale {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

.popup-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ff8c42;
}

.popup-content ul {
  padding-left: 20px;
}

.popup-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.popup-border img {
  width: 100%;
  display: block;
}

/* FLOATING DECOR */
.float {
  position: absolute;
  animation: floatMove 4s ease-in-out infinite;
  opacity: 0.9;
}

.cloud1 { top: -30px; left: -40px; width: 120px; }
.bird1 { top: 40px; right: -30px; width: 80px; }
.spark1 { bottom: 160px; left: 40px; width: 40px; }

@keyframes floatMove {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
