/* ========== Base + Theme ========== */
:root{
    --ink:#111;
    --muted:#667085;
    --bg:#ffffff;
    --alt:#f6f8fb;
    --line:#e6e9f0;
    --brand:#1e293b;     /* header background */
    --accent:#2b6cb0;    /* buttons / links */
    --radius:12px;
  }
  
  *{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0;
    font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--ink);
    background:#f9fafc;
    line-height:1.6;
  }
  a{color:var(--accent);text-decoration:none}
  a:hover{text-decoration:underline}
  .container{max-width:1100px;margin:0 auto;padding:0 20px}
  
  /* ========== Header ========== */
  .site-header{
    position:sticky; top:0; z-index:20;
    background:var(--brand); color:#fff;
    border-bottom:1px solid #0f172a33;
  }
  .site-header .container{
    display:flex; align-items:center; justify-content:space-between;
    height:68px;
  }
  .brand{display:flex;align-items:center;gap:10px}
  .logo{
    width:34px;height:34px;border-radius:50%;
    background:#fff;color:var(--brand);display:grid;place-items:center;
    font-weight:800; font-size:14px;
  }
  .brand-name{color:#fff;font-weight:700}
  .nav a{color:#e8edf7;margin-left:18px;padding:8px 10px;border-radius:8px}
  .nav a:hover{background:#0f172a; text-decoration:none}
  
  /* ========== Sections / Hero ========== */
  .section{padding:56px 0}
  .section.alt{background:var(--alt);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  
  .hero{
    background:#e6f2ff;
    text-align:center;
    padding:64px 0 56px;
    border-bottom:1px solid var(--line);
  }
  .hero h1{margin:0 0 10px; font-size:clamp(28px,5vw,46px)}
  .hero p{margin:8px 0 18px; color:var(--muted)}
  
  /* ========== Buttons ========== */
  .btn{
    display:inline-block;
    background:var(--accent); color:#fff;
    padding:12px 18px; border-radius:10px;
    border:1px solid var(--accent);
    font-weight:600;
  }
  .btn:hover{filter:brightness(.95); text-decoration:none}
  .btn.btn-outline{
    background:#fff; color:var(--accent);
    border:2px solid var(--accent);
  }
  
  /* ========== Calendly Embed ========== */
  .calendly-inline-widget{
    width:100%;
    min-height:650px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
  }
  
  /* ========== Resource & Course Grids ========== */
  .resource-card, .course-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  
    min-height: 250px;  /* forces all cards same height */
  }
  .resource-card .btn, .course-card .btn {
    align-self: center;   /* centers the button */
    width: auto;          /* prevents buttons from stretching */
    padding: 0.75rem 1.5rem;
  }
    /* NEW: equal heights */
    .resources-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* exactly 2 columns */
        gap: 2rem; /* spacing between cards */
        margin-top: 2rem;
      }
  
  .resource-card h3, .course-card h3{margin:0 0 8px}
  .resource-card p, .course-card p{margin:0 0 14px; color:var(--muted); font-size:15px}
  
  /* ========== Footer / Small text ========== */
  .site-footer{padding:28px 0; border-top:1px solid var(--line); background:#fff; color:var(--muted)}
  .tiny{font-size:12px}
  .muted{color:var(--muted)}
  @media (max-width: 768px) {
    .resources-grid { grid-template-columns: 1fr; }
  }
  /* Sub-resource dropdown inside cards */
.sub-resources {
    display: flex;           /* we’ll control visibility with [hidden] */
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .sub-resources[hidden] {
    display: none;
  }
  
  .sub-btn {
    background: #eef2ff;
    color: #333;
    border: 1px solid #d9e2ff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
  }
  /* Force a clean 2×2 grid for the resources */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* exactly 2 columns */
    gap: 2rem;
    align-items: stretch;
  }
  
  /* Make sure no child spans the full row */
  .resources-grid > .resource-card {
    grid-column: auto !important;   /* override any accidental span */
    min-width: 0;                    /* fixes overflow issues in grids */
    height: 100%;
    display: flex;
    flex-direction: column;          /* lets the button sit at the bottom */
    justify-content: space-between;  /* tidy vertical spacing */
  }
  
  /* Keep the “Download”/“View Options” buttons aligned nicely */
  .resource-card .btn {
    align-self: center;
  }
  
  /* Responsive: stack to 1 column on small screens */
  @media (max-width: 900px) {
    .resources-grid {
      grid-template-columns: 1fr;
    }
  }
  /* ======= About Section ======= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
  }
  
  .about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  }
  
  .about-copy h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .about-list {
    margin: 1rem 0 1.25rem;
    padding-left: 1.25rem;
  }
  .about-list li {
    margin: 0.35rem 0;
  }
  
  .about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
  }
  .badge {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .testimonial {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-left: 4px solid #0284c7; /* accent */
    border-radius: 8px;
    color: #334155;
    font-style: italic;
  }
  
  /* Responsive: stack on small screens */
  @media (max-width: 900px) {
    .about-grid {
      grid-template-columns: 1fr;
    }
    .about-photo {
      order: -1; /* photo first on mobile */
    }
  }
/* Logo Image */
.logo-img {
    height: 40px;      /* adjust size as needed */
    width: auto;       /* keeps proportions */
    border-radius: 50%; /* makes it circular if it's a photo */
    object-fit: cover;
}
/* ======== Pricing / Courses ======== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.25rem;
}

.price-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-card .badge {
  align-self: flex-start;
  background: #eef2ff;
  color: #3046c5;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.price-card h3 {
  margin: 0.25rem 0 0.25rem;
}

.price-card .subtitle {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.price-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.25rem 0 1rem;
  line-height: 1;
}

.price-card .price .currency {
  font-size: 1.15rem;
  vertical-align: super;
  margin-right: 2px;
}

.price-card .price .period {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  width: 100%;
  text-align: left;
}

.features li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e9f4d;
  font-weight: 800;
}

.fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-outline {
  background: #fff;
  color: var(--accent, #2b5fb8);
  border: 2px solid var(--accent, #2b5fb8);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* reuse your .chip style if you already have one */
.chip {
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #334155;
}

/* spacing helper */
.mt { margin-top: 2rem; }

/* Responsive */
@media (max-width: 1000px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Courses / Products ===== */
.product-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(280px, 1fr));
  gap:2rem;
  align-items:stretch;
}

@media (max-width: 900px){
  .product-grid{ grid-template-columns:1fr; }
}

.product-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.05);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.product-card img{
  width:100%;
  height:180px;           /* consistent image height */
  object-fit:cover;       /* crops nicely */
  display:block;
}

.product-body{
  padding:1.25rem 1.5rem;
  display:flex;
  flex-direction:column;
  gap:.75rem;
  flex:1 1 auto;          /* make all cards equal height */
  text-align:center;
}

.product-card h3{
  margin:0;
  font-size:1.1rem;
}

.product-card p{
  margin:0;
  color:var(--muted);
}

.price{
  font-weight:700;
  margin-top:auto;        /* push price & button to the bottom */
}

.old-price{
  text-decoration:line-through;
  color:#9aa3af;
  font-weight:400;
  margin-right:.5rem;
}

.product-card .btn{
  margin-top:.75rem;
  align-self:center;
}
/* ===== Pricing Grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  margin-top: 0;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.old-price {
  text-decoration: line-through;
  color: #9aa3af;
  margin-right: .5rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card ul li {
  margin: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card ul li::before {
  content: "✔";
  color: green;
  position: absolute;
  left: 0;
}

.pricing-card .btn {
  margin-top: auto;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #fff;
  font-size: 0.8rem;
  padding: .25rem .75rem;
  border-radius: 999px;
}
.booster-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:2rem 2.25rem;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  max-width:860px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:1.5rem;
}
.booster-card h3{ margin:0 0 .25rem 0; }
.booster-card .price{ font-size:2rem; font-weight:800; }
.booster-card .unit{ color:var(--muted); }
@media (max-width:900px){
  .booster-card{ grid-template-columns:1fr; text-align:center; }
}
.plan-details {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f5f8ff;
  border-left: 3px solid #4a6cf7;
  border-radius: 6px;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}
.plan-details {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: #f5f8ff;
  border-left: 3px solid #4a6cf7;
  border-radius: 8px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.plan-details ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.hidden { display: none; }
/* ===== Courses layout ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.plan-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a6cf7;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card h3 {
  margin: 0 0 0.75rem;
}

.price {
  font-weight: 800;
  font-size: 2rem;
  margin: 0.25rem 0 1rem;
}

.price .currency {
  font-weight: 700;
  margin-right: 2px;
}

.price small {
  font-weight: 500;
  color: #667085;
  margin-left: 6px;
}

.features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.features li {
  display: flex;
  align-items: start;
  gap: .5rem;
  margin: .45rem 0;
}

.features li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  background: #4a6cf7;
  color: #fff;
  border: 2px solid #4a6cf7;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #3f5de0;
  border-color: #3f5de0;
}

/* Monthly details panel */
.plan-details {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: #f5f8ff;
  border-left: 3px solid #4a6cf7;
  border-radius: 12px;
  line-height: 1.55;
}

.plan-details ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
}

.hidden { display: none; }

.footnote {
  margin-top: 1rem;
  color: #667085;
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 980px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}
.old-price {
  text-decoration: line-through;
  color: #888;
  font-weight: 500;
  margin-right: 8px;
  font-size: 1.1rem;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 0.5rem;
}
.toggle-desc {
  background: none;
  border: none;
  color: #4a5fdc; /* same blue as your buttons */
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.75rem;
  display: block;
}
.toggle-desc {
  background: transparent;
  border: 1px solid #4a5fdc;
  color: #4a5fdc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: all 0.2s ease-in-out;
}

.toggle-desc:hover {
  background: #4a5fdc;
  color: white;
}
.toggle-desc {
  background: none;
  border: none;
  color: #4a5fdc; /* same blue as your buttons */
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.75rem;
  display: block;
}
/* ===== Purple Button Styling ===== */
.btn {
  background-color: #6a0dad;   /* Purple */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #580a9c;   /* Darker purple on hover */
}
/* ===== Blue Button Styling ===== */
.btn {
  background-color: #3b57d9;   /* Blue */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #2f46b5;   /* Darker blue on hover */
}
.wave {
  position: relative;
  height: 100px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%23f9f9fb' d='M0,64L48,106.7C96,149,192,235,288,234.7C384,235,480,149,576,144C672,139,768,213,864,213.3C960,213,1056,139,1152,133.3C1248,128,1344,192,1392,224L1440,256V0H0Z'></path></svg>");
  background-size: cover;
}
.wave {
  position: relative;
  height: 100px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%23f9f9fb' d='M0,64L48,106.7C96,149,192,235,288,234.7C384,235,480,149,576,144C672,139,768,213,864,213.3C960,213,1056,139,1152,133.3C1248,128,1344,192,1392,224L1440,256V0H0Z'></path></svg>");
  background-size: cover;
}
.hero {
  position: relative;
  overflow: hidden;             /* ensures the wave sits cleanly at the bottom */
}

/* The SVG wave anchors to the bottom of the hero */
.hero .wave {
  position: absolute;
  left: 0;
  bottom: -1px;                 /* hides any seam */
  width: 100%;
  height: 110px;                /* tweak height to taste */
  display: block;
}

/* Optional: ensure the section after the hero matches the wave fill color */
.section.alt,                      /* if you use this class */
#about,                            /* or your next section id */
.about,                            /* adjust to your actual selector */
body {                             /* fallback if you're using body bg */
  background-color: #f9f9fb;       /* <-- keep in sync with the SVG fill */
}
.hidden {
  display: none;
}
.hidden {
  display: none;
}

.sub-resources {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resource-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
}
/* Make the cards display in 2 columns */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Style each resource card like a neat tile */
.resource-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
}
/* Make subject cards appear in 2 columns */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Style for each resource card */
.resource-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.resource-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
}
/* Layout: 2 columns */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Resource card style */
.resource-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a48e4;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
}

.btn:hover {
  background-color: #3835c7;
}

/* Toggleable sub-resources */
.sub-resources {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hidden {
  display: none;
}

/* Sub-buttons (Paper 1/2 links) */
.sub-btn {
  background-color: #eaeafa;
  color: #4a48e4;
  border: 1px solid #4a48e4;
}
/* Grid layout: force exactly 2 columns on larger screens */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* exactly 2 per row */
  gap: 2rem;
  justify-content: center;
}

/* Make each resource card the same size */
.resource-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  height: 320px; /* ✅ force same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a48e4;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
}

.btn:hover {
  background-color: #3835c7;
}

/* Sub-resource (Paper 1/2) buttons */
.sub-resources {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hidden {
  display: none;
}

.sub-btn {
  background-color: #eaeafa;
  color: #4a48e4;
  border: 1px solid #4a48e4;
}
@media (max-width: 600px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    height: auto; /* let height adjust on smaller screens */
  }
}
.hidden {
  display: none;
}
.nested-sub-resources {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #ddd;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-content: center;
}

.resource-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a48e4;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
}

.btn:hover {
  background-color: #3835c7;
}

.sub-resources {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nested-sub-resources {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #ddd;
}

.sub-btn {
  background-color: #eaeafa;
  color: #4a48e4;
  border: 1px solid #4a48e4;
}

.hidden {
  display: none;
}
/* Standardise all buttons */
.btn,
.sub-btn,
.sub-toggle {
  display: inline-block;
  width: 200px; /* Fixed width for consistency */
  padding: 10px 20px;
  text-align: center;
  background-color: #4a48e4;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin: 0 auto; /* Center */
}

/* Hover effect */
.btn:hover,
.sub-btn:hover,
.sub-toggle:hover {
  background-color: #3835c7;
}

/* Secondary buttons (e.g. Paper 1 topics) with outline look */
.sub-btn {
  background-color: transparent;
  color: #4a48e4;
  border: 2px solid #4a48e4;
}

/* Container for sub-resources */
.sub-resources,
.nested-sub-resources {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all buttons inside */
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Optional: Adjust nested topic box padding */
.nested-sub-resources {
  border-left: none; /* remove side line */
  padding-left: 0;
}
.hidden {
  display: none;
}
.btn,
.sub-btn,
.sub-toggle {
  display: block;
  width: 160px;
  margin: 8px auto;
  padding: 10px 15px;
  text-align: center;
  font-weight: bold;
  background-color: #5a3cf0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sub-btn {
  background-color: transparent;
  color: #5a3cf0;
  border: 2px solid #5a3cf0;
}

.btn:hover,
.sub-btn:hover,
.sub-toggle:hover {
  background-color: #432ad9;
  color: white;
}

.sub-btn:hover {
  background-color: #5a3cf0;
  color: white;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: start;
}
.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
/* Fix: Grid layout for 2 columns */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: start;
}

/* Fix: Consistent card size and appearance */
.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: start;
}

.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  margin-top: 2rem;
}

.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.sub-resources,
.nested-sub-resources {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sub-btn,
.sub-toggle {
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #5e3bee;
  color: #5e3bee;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  width: 80%;
  transition: background 0.3s ease;
}

.sub-btn:hover,
.sub-toggle:hover {
  background: #f0eaff;
}

.hidden {
  display: none;
}
/* Make the grid 3 columns for large screens */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.resource-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #4a4af4;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.sub-resources {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sub-btn {
  background: #eaeaea;
  color: #333;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.center-card {
  grid-column: 1 / -1;
  justify-self: center;
}
.section-heading {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 1rem; /* optional if you want it to align with cards */
}

.resources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.subgroup {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.subgroup a {
  background-color: #eee;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
}

.hidden {
  display: none;
}

.toggle-button {
  background-color: #dcdcdc;
  color: #333;
  padding: 8px 12px;
  border: none;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}
.hidden {
  display: none;
}

.subgroup {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.subgroup a {
  background-color: #eee;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
}

.toggle-button {
  background-color: #dcdcdc;
  color: #333;
  padding: 8px 12px;
  border: none;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}
.subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.subgroup.hidden {
  display: none;
}

.toggle-button {
  background: #f1f1f1;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-button:hover {
  background: #e3e3e3;
}
/* Hidden state for dropdowns */
.hidden {
  display: none;
}

/* Options container under "View Options" */
.options {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Buttons for papers */
.toggle-button {
  background: #f1f1f1;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-button:hover {
  background: #e3e3e3;
}

/* Links under each paper */
.subgroup a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  background: #fafafa;
  margin: 2px 0;
}

.subgroup a:hover {
  background: #e9e9e9;
}
.hidden {
  display: none;
}
.worksheet-preview {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.worksheet-preview:hover {
  transform: scale(1.01);
}
.worksheet-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.worksheet-gallery .worksheet-preview {
  width: 45%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.worksheet-gallery .worksheet-preview:hover {
  transform: scale(1.03);
}
.worksheet-gallery-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.worksheet-preview-small {
  width: 70%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.topic-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}

.worksheet-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.worksheet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.worksheet-gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.worksheet-preview {
  width: 45%;
  max-width: 220px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  background: #6d74e3;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #5b63c8;
}

.btn.primary {
  background: #4c52b9;
}
.zoomable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.zoomable:hover {
  transform: scale(1.03);
}

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.zoomed-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}

.worksheet-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.worksheet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

