/* ============================
   MINI MINDS LAND - LEARN PAGE CSS
   Page-specific styles only
============================ */

/* Page wrapper */
.page-learn {
  position: relative;
  background: url('../images/backgrounds/bg-learn-mobile.webp') no-repeat center top;
  background-size: cover;
  background-attachment: scroll; /* default fallback for mobile */
  background-color: #0f172a; /* fallback dark navy */
}

@media (min-width: 768px) {
  .page-learn {
    background-image: url("../images/backgrounds/bg-learn-desktop.webp");
    background-attachment: fixed;
  }
}

/* --------------------------------
   Hero Section
-------------------------------- */
.hero-title-box {
  background: rgba(0, 0, 0, 0.3); /* pastel white */
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  display: inline-block;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.learn-hero {
  padding: 24px 60px;
  text-align: center;
  min-height: 500px;
}

.hero-title {
  font-size: 2.5rem;
  color: #facc15;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  margin-top: 0.5rem;
}

/* --------------------------------
   Topic Filter Buttons
-------------------------------- */

.filter-buttons {
  margin-block: 32px;  
}

.filter-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.filter-btn img {
  height: 60px; /* or whatever size looks good */
  width: auto;
  margin-block: .2rem;
  display: block;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.filter-btn:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
.filter-btn img {
  height: 80px; /* or whatever size looks good */
}
}

/* --------------------------------
   Videos Section
-------------------------------- */
.learn-videos {
  padding: 60px 24px;
  min-height: 500px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: white;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;              /* ✅ but overridden by .hidden */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* --------------------------------
   Worksheets Section
-------------------------------- */
.learn-worksheets {
  padding: 60px 24px;
  min-height: 500px;
}

/* --------------------------------
   Card Grid (Shared by videos + worksheets)
-------------------------------- */
.card-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --------------------------------
   Video & Worksheet Cards
-------------------------------- */
.video-card,
.worksheet-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover,
.worksheet-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card-content {
  padding: 1rem;
  text-align: center;
}

.card-content h3 {
  font-size: 1.25rem;
  color: #3b82f6;
}

/* --------------------------------
   Worksheet Download Link
-------------------------------- */
.worksheet-card .card-content a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #2563eb;
  transition: color 0.2s;
}

.worksheet-card .card-content a:hover {
  color: #1d4ed8;
}

/* --------------------------------
   Sparkle Effect Overlay
-------------------------------- */
.sparkle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.sparkle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --------------------------------
   Footer
-------------------------------- */
.learn-footer {
  text-align: center;
  padding: 2rem;
  color: #555;
}
