
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
} 
/* --- Responsive: desktop vs mobile --- */
.desktop-only { display: flex; }

/* Burger button */
.burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 1rem;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #111;
  margin: 5px 0;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Mobile menu drawer */
.mobile-menu {
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
}

.mobile-nav a {
  text-decoration: none;
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: rgba(0,0,0,0.05);
}

.mobile-nav hr {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 6px 0;
}

.mobile-actions {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.mobile-cta {
  display: inline-block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
}

.mobile-login {
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
}

.mobile-lang {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(0,0,0,0.6);
}

/* Breakpoint: switch to burger */
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .burger { display: inline-block; }
  .nav-container { align-items: center; }
}


/* ===== NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-container {
  width: 100%;
  padding: 10px 30px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.logo img {
  display: block;
}

.logo {
  display: flex;
  align-items: center;
} 


/* Center the middle links */
.nav-links {
  justify-self: center;
}

.nav-links,
.TopButtonsMainMenu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem; 
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  color: #222;
  transition: color 0.2s ease;
} 

.nav-link:hover {
  color: #7c3aed;
}

/* Buttons */
.newlogin {
  font-weight: 400;
} 
/* subscribe button */
.btn_get_radious {
  background: #ff4f87;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 50px;
}

.btn_get_radious:hover {
  opacity: 0.9;
}

/* Layout for demo */
main {
  padding: 20px;
}
/* ===== DROPDOWN ===== */

.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 12px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
  display: none;
  list-style: none;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #222;
  font-size: 15px;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.genie-popup{
  position: fixed;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 660px;           /* adjust */
  height: auto;
  z-index: 2000;          /* above header */
  pointer-events: none;
  opacity: 0;

  animation: genieCenter 5s ease-in-out 0.4s forwards;
}



@keyframes fadeOut {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80%  { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes genieCenter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
  }
} 

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .genie-text{ animation: none; opacity: 1; }
}
/* Make sure the page layout allows footer to sit at bottom even on short pages */
html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer down */
}

/* Footer */
.site-footer {
  background: #0f172a;         /* deep navy */
  color: #e2e8f0;              /* slate-200 */
  padding: 40px 10px 10px 10px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

/* Brand section */
.footer-brand {
  max-width: 420px;
}

.footer-logo {
  width: 140px;
  height: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Columns */
.footer-cols {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  color: #f1f5f9;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* Form */
.footer-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.footer-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  outline: none;
}

.footer-form input:focus {
  border-color: #60a5fa;
}

.footer-form button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #60a5fa;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.footer-form button:hover {
  filter: brightness(1.05);
}

.footer-small {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Expandable section (details/summary) */
.footer-more {
  max-width: 1200px;
  margin: 18px auto 0;
  border-top: 1px solid #1f2937;
  padding-top: 14px;
}

.footer-more > summary {
  cursor: pointer;
  list-style: none;
  color: #e2e8f0;
  font-weight: 600;
  user-select: none;
}

.footer-more > summary::-webkit-details-marker {
  display: none;
}

.footer-more > summary::after {
  content: " ▾";
  color: #94a3b8;
  font-weight: 400;
}

.footer-more[open] > summary::after {
  content: " ▴";
}

.footer-more-inner {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

/* Pagination example */
.footer-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid #334155;
  color: #e2e8f0;
  text-decoration: none;
}

.page-btn:hover {
  border-color: #60a5fa;
}

.page-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
}

.footer-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Bottom row */
.footer-bottom {
  max-width: 1200px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive: widen columns on desktop */
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  .footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Utility: screen-reader-only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* ===== Genie widget (docked state) ===== */

.genie-widget {
  position: fixed;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 2000;
}

/* Remove default button styles */
.genie-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Docked (small, bottom-right corner) */
.genie-widget.docked {
  left: auto;
  top: auto;
  right: 20px;
  bottom: 20px;
  transform: none;
}

/* Smaller genie when docked */
.genie-widget.docked .genie-popup {
  width: 120px;
  opacity: 1;
  animation: none;
}

/* Hide text bubble when docked */
.genie-widget.docked .genie-text {
  display: none;
}

/* ===== RTL Overrides (Arabic) ===== */

html[dir="rtl"] body {
  direction: rtl;
}

/* Flip navbar grid */
html[dir="rtl"] .nav-container {
  grid-template-columns: auto 1fr auto;
}

/* Make nav links align properly */
html[dir="rtl"] .nav-links {
  justify-self: center;
}

/* Flip dropdown alignment */
html[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

/* Fix pink button margin */
html[dir="rtl"] .btn_get_radious {
  margin-right: 0;
  margin-left: 50px;
}

/* Flip footer bottom row */
html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}
.hero{
  text-align:center;
  padding:80px 20px;
  background:#f6f8fb;
}

.hero h2{
  font-size:2.2rem;
  margin-bottom:15px;
}

.hero p{
  max-width:650px;
  margin:auto;
  font-size:1.2rem;
  line-height:1.6;
}

.hero-buttons{
  margin-top:25px;
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}
/* Category Grid */
.category-grid {
    opacity: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  display: block;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.category-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 0.95rem;
  color: #555;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}
body.home {
  background-image: url("/images/doors.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* .site-footer {
  background-image: url("images/sand-dunes.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
} */
.arabic-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.arabic-letter {
  position: absolute;
  top: -50px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  animation: fall linear forwards;
}
@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(var(--rotation));
    opacity: 1;
  }

  70% {
    transform: translateY(95vh) translateX(calc(var(--driftX) * 0.1)) rotate(calc(var(--rotation) + var(--spin)));
    opacity: 1;
  }

  82% {
    transform: translateY(94vh) translateX(calc(var(--driftX) * 0.1)) rotate(calc(var(--rotation) + var(--spin)));
    opacity: 1;
  }

  100% {
    transform: translateY(82vh) translateX(var(--burstX)) rotate(calc(var(--rotation) + var(--spin) + 180deg)) scale(0.6);
  }
}
.arabic-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.arabic-letter {
  position: absolute;
  top: -60px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  will-change: transform, opacity;
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(var(--rotation)) scale(1);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  72% {
    transform:
      translateY(94vh)
      translateX(calc(var(--driftX) * 0.12))
      rotate(calc(var(--rotation) + var(--spin)))
      scale(1);
    opacity: 1;
  }

  82% {
    transform:
      translateY(96vh)
      translateX(calc(var(--driftX) * 0.12))
      rotate(calc(var(--rotation) + var(--spin)))
      scale(0.9);
    opacity: 0.95;
  }

  100% {
    transform:
      translateY(calc(96vh - var(--burstY)))
      translateX(var(--burstX))
      rotate(calc(var(--rotation) + var(--spin) + 160deg))
      scale(0.45);
    opacity: 0;
  }
}
.arabic-splash {
  position: absolute;
  bottom: 4vh;
  width: 10px;
  height: 6px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  opacity: 0.8;
  transform: translateX(-50%) scale(0.5);
  animation: splash 0.5s ease-out forwards;
}

@keyframes splash {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0.9;
  }

  50% {
    transform: translateX(-50%) scale(1.6) translateY(-6px);
    opacity: 0.6;
  }

  100% {
    transform: translateX(-50%) scale(0.3) translateY(-10px);
    opacity: 0;
  }
}
.arabic-letter {
  animation-name: fallToPile;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fallToPile {
  0% {
    transform: translateY(0) translateX(0) rotate(var(--rotation));
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  82% {
    transform: translateY(calc(100vh - 240px - var(--pileY, 0px) + 10px)) translateX(var(--pileX, 0px)) rotate(var(--rotation));
    opacity: 1;
  }

  90% {
    transform: translateY(calc(100vh - 240px - var(--pileY, 0px) - 6px)) translateX(var(--pileX, 0px)) rotate(var(--rotation));
    opacity: 1;
  }

  100% {
    transform: translateY(calc(100vh - 240px - var(--pileY, 0px))) translateX(var(--pileX, 0px)) rotate(var(--rotation));
    opacity: 1;
  }
}
.arabic-splash {
  position: fixed;
  bottom: 6vh;
  width: 22px;
  height: 10px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 12px rgba(255,255,255,0.35);
  animation: splashPop 0.45s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes splashPop {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }

  30% {
    transform: scale(1.4);
    opacity: 0.95;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes explode {
  0% {
    transform: translateY(calc(100vh - 150px - var(--pileY, 0px))) translateX(var(--pileX, 0px)) rotate(var(--rotation));
    opacity: 1;
  }

  100% {
  transform:
    translateY(calc(100vh -420px - var(--pileY, 0px)))
    translateX(calc(var(--burstX, 0px) * 1.5))
    rotate(calc(var(--rotation) + 360deg))
    scale(0.3);
  opacity: 0;
}
}
.arabic-rain.is-exploding::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: 110px;
  width: 40px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%) scale(1);
  filter: blur(6px);
  animation: pileFlash 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes pileFlash {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }

  25% {
    opacity: 0.9;
    transform: translateX(-50%) scale(4.5);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(7);
  }
}
/* make actve state visible */
.dropdown-item.active {
  background: #f0f0ff;
  color: #7c3aed;
  font-weight: 600;
}
/* content page styling
 .content-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}
content page headings 
.content-page h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #111;
}

.content-page p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.content-section.spaced {
  margin-top: 30px;
}
.content-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
} */

/* lesson card styling*/
.lesson-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

.lesson-card h3 {
  margin-bottom: 10px;
  color: #111;
}

.lesson-card p {
  color: #555;
  margin-bottom: 15px;
}

.lesson-card .btn {
  display: inline-block;
  padding: 8px 14px;
  background: #7c3aed;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.lesson-card .btn:hover {
  opacity: 0.9;
}

#lessonsContainer,
#resourcesContainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 10px auto 40px;
}
body.games-page #gamesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 28px;
  justify-content: start;
}
#lessonsContainer {
  align-items: stretch;
}
.lesson-card .btn {
  margin-top: auto;
}



.filters {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
}
 .lesson-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.filter-group {
  margin-bottom: 12px;
}

.filter-group summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}

.filter-group ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}
.pages main {
  padding: 0;
}

.pages .content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.pages .content-section {
  grid-area: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 20px 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pages .filters {
  background: #0f172a;
  color: #ffffff;
  padding: 24px 25px;
  border: none;
  border-radius: 0;
  text-align: left;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.pages #resourcesContainer,
.pages #lessonsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 10px 0 40px;
}

.pages .lesson-card h3 {
  margin: 0 0 10px;
}

.pages .lesson-card p {
  margin: 0 0 15px;
}
.filter-option {
  display: block;
  cursor: pointer;
}

.filter-option input {
  display: none;
}

.filter-option span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #243b7a;
  background: #353432;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.filter-option:hover span {
  background: #ca96b6;
}

.filter-option input:checked + span {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
}
/* responsive filter menu */
@media (max-width: 900px) {
.pages .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

.pages .filters {
    width: 100%;
  }

.pages #lessonsContainer {
    grid-template-columns: repeat(2, 1fr);
}
.pages .filters > *:not(.footer-art) {
  position: relative;
  z-index: 1;
}
}
body.games-page {
  background-image: url("/images/games.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.games-page .content-page {
  /* background: rgba(255, 255, 255, 0.9); */
  border-radius: 12px;
  padding: 24px;
}
body.games-page .lesson-card {
  background: rgba(218, 219, 179, 0.95);
  border: 2px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.games-page .lesson-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.worksheet-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.worksheet-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.worksheet-page > p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: #555;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.worksheet-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.worksheet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.worksheet-preview {
  aspect-ratio: 8.5 / 11;
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
}

.worksheet-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: white;
  pointer-events: none;
}

.worksheet-body {
  padding: 14px 14px 16px;
}

.worksheet-tag {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2e7d32;
}

.worksheet-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.worksheet-card p:last-child {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .worksheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .worksheet-page {
    padding: 28px 16px 40px;
  }

  .worksheet-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Listening & Speaking */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.resource-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.resource-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.resource-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.resource-card p {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.95rem;
}

.resource-card audio,
.resource-card video {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}
.pair-btn {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #7c3aed;
  background: white;
  color: #7c3aed;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pair-btn:hover {
  background: #f3f0ff;
}

.pair-btn.active {
  background: #7c3aed;
  color: white;
}
/* worksheets styles */
/* Worksheets search */
.worksheet-search-box {
  margin-top: 30px;
  max-width: 600px;
}

.worksheet-search {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.worksheet-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
}

.worksheet-search button {
  padding: 12px 18px;
  border-radius: 6px;
  border: none;
  background-color: #ff7a18; /* adjust if you have a brand color */
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.worksheet-search button:hover {
  opacity: 0.9;
}

.worksheet-suggestions {
  margin-top: 20px;
  color: white;
}

.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.suggestion-list a {
  background: rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.suggestion-list a:hover {
  background: rgba(255,255,255,0.2);
}

/* .footer-art {
  width: 90px;
  height: auto;
  display: block;
  margin-top: 20px;
}
} */
/*
@media (max-width: 900px) {
  .footer-art {
    width: 100px;
    opacity: 0.35;
  }
} 
/* body.reading-writing {
  background: url("../images/kufic.png");
  background-size: 25% auto;
  background-position: right center;
  background-repeat: no-repeat;
} */