/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fffbe6; /* light yellow */
  color: #333; /* soft dark gray for readability */
  line-height: 1.5;
}

/* Reset header/nav spacing */
header, nav {
  margin: 0;
  padding: 0;
}

.hero-banner {
  margin: 0;
  padding: 0;
  background: url('images/intense-banner.png') no-repeat center center;
  background-size: cover;  /* fill box, no gaps */
  height: 300px;
  width: 100%;
}

.navbar {
  position: relative;
  margin: 0;
  padding: 12px 0;
  background-color: rgba(139, 0, 0, 0.9); /* your dark red bar */
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
}


.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.books-grid h1 {
  text-align: center;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
  margin: 10px 0;   /* <-- space above and below each card */
}

.card:hover {
  transform: translateY(-5px); /* subtle hover lift */
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.category-section {
  margin-bottom: 40px;
}
.book-category {
  border-top: 3px solid #e63946; /* red divider line */
  padding-top: 40px;             /* space after divider */
  margin-top: 50px;              /* separation between sections */
}

.book-category h2 {
  font-size: 1.8rem;
  margin: 0 auto 20px;
  padding: 12px 20px;
  text-align: center;
  color: #333;
  background: #f5f5f5; /* light background block */
  border-radius: 8px;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.15),
              inset -2px -2px 5px rgba(255,255,255,0.7); 
  font-weight: bold;
  display: inline-block; /* keeps background just around the text */
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
/* General card videos — same size as covers */
.card-video {
  width: 100%;
  height: 250px;        /* lock video height like images */
  object-fit: cover;    /* crop to fill, no distortion */
  border-radius: 6px;
  margin-bottom: 10px;
  display: block;
}

/* Featured book video */
.featured-video {
  width: 100%;
  max-height: 350px;   /* adjust height as you like */
  object-fit: contain; /* keeps the whole video visible */
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.books-grid .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 20px;
}

.card-video {
  width: 100%;
  aspect-ratio: 16 / 9;   /* or 1 / 1 for square */
  object-fit: cover;       /* use 'contain' if you prefer letterboxing */
  border-radius: 8px;
  display: block;
}

/* Make video cards stand out */
.video-card {
  border: 2px solid #e63946; /* subtle highlight */
  position: relative;
}
/* Tidy text */
.card h2 { margin: 12px 0 6px; font-size: clamp(16px, 3.8vw, 20px); }
.card p  { margin: 6px 0; line-height: 1.5; }

/* On touch devices, tone down hover lift (no jumpiness) */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
}

.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e63946;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}
.download-btn {
  background-color: #e63946;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.download-btn:hover {
  background-color: #c92d3d;
}


/* Base download button */
.download-btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 15px;
  color: #fff;
  transition: background 0.3s ease;
}

/* Teacher: Professional Blue */
.btn-teacher {
  background: #2c3e50; /* dark blue */
}
.btn-teacher:hover {
  background: #1a242f;
}

/* Parent: Playful Orange */
.btn-parent {
  background: #f39c12; /* bright orange */
}
.btn-parent:hover {
  background: #d35400;
}

/* Course: Bold Green */
.btn-course {
  background: #27ae60; /* green */
}
.btn-course:hover {
  background: #1e8449;
}


/* If you want a full view of the video without cropping (optional) */
.card-video--contain {
  object-fit: contain;  /* show entire video, may add padding bars */
  background: #fff;     /* replaces black bars with white (or match card bg) */
}
.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2em;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2c3e50;
}

.card-description {
  font-size: 0.9em;
  color: #555555;
  flex-grow: 1;
}

/* Glassy cards */
.card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.card-link {
  text-decoration: none;
  color: inherit;     /* keeps your normal text color */
  display: block;     /* makes the whole card clickable */
}

.card-link h2,
.card-link p {
  color: inherit;     /* override blue link color */
}


.card-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.item-availability {
  margin-top: 6px;
  font-size: 0.8em;
  color: #777777;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  nav {
    gap: 10px;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.signup {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.signup input, .signup button {
  padding: 10px;
  margin-top: 10px;
  width: 90%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.signup button {
  background: #e63946;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.signup button:hover {
  background: #c53030;
}

footer {
  background-color: #2c3e50; /* dark gray-blue for contrast */
  color: #fff;              /* white text */
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;         /* space above footer */
  font-size: 0.9rem;
}
/* --- Mobile Rescue (put at end of style.css) --- */

/* Prevent images/videos from blowing out layout */
img, video { max-width: 100%; height: auto; }

/* Container breathing room on small screens */
.container { padding-inline: min(5vw, 24px); }

/* Headings scale a bit smaller on phones */
h1 { font-size: clamp(22px, 6vw, 42px); }
h2 { font-size: clamp(18px, 4.6vw, 28px); }

/* Make any generic grid responsive */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Base navbar cleanup */
.navbar { position: sticky; top: 0; z-index: 1000; background: #e63946; }
.navbar ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 12px 16px; justify-content: center; }
.navbar a { color: #fff; text-decoration: none; font-weight: 700; }

/* Toggle button hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,.8);
  color: #fff; font-weight: 800; border-radius: 8px;
  padding: 6px 10px; margin: 8px 12px;
}
.sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Phone layout: show button, stack menu */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .navbar ul {
    display: none;                /* hidden by default */
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 12px;
    background: #e63946;
  }
  .navbar ul.open { display: flex; }
  .navbar li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.15); }
  .navbar li:first-child { border-top: 0; }
}
/* ---------- HOMEPAGE TIDY-UP ---------- */

/* Keep content column narrower so things feel lighter */
.container { max-width: 1100px; }

/* Hero/banner smaller */
.hero-banner {
  height: 200px;        /* was 300+ */
  background-size: cover;   /* fills width nicely */
  background-position: center;
}

/* Headings scale based on screen width */
h1, .page-title {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 12px 0 16px;
}
h2 { font-size: clamp(18px, 2.2vw, 26px); }

/* Section spacing a bit tighter */
section { margin-block: 24px; }

/* Cards a touch smaller on desktop */
.card { padding: 14px; }
.grid { gap: 16px; }

/* ----- Business card / promo image ----- */
.promo-card {
  max-width: 640px;               /* caps the width */
  margin: 12px auto 20px;         /* center it */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.promo-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* If that promo is in a 2-column row with text, give it room on small screens */
@media (max-width: 900px) {
  .promo-row { display: block; }
  .promo-row > * { width: 100% !important; }
}

/* ----- NAV: hide the hamburger on desktop ----- */
/* If you added a nav toggle button, only show it on small screens */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: transparent;
    color: #fff;
  }
  /* collapse the desktop ul by default on mobile */
  .navbar ul { display: none; }
  /* when navbar gets .open (via small JS), show the menu vertically */
  .navbar.open ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,.85);
    padding: 12px;
    border-radius: 10px;
  }
}

/* Optional: hide the literal "Menu" text label on desktop if it's in the button */
.nav-toggle .label { display: none; }
@media (max-width: 900px) { .nav-toggle .label { display: inline; } }
.qr-card {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-card img {
  max-width: 150px;
  height: auto;
}
.qr-card {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-card img {
  max-width: 150px;
  height: auto;
}
/* ---- Section rhythm ---- */
section { margin-block: 20px; }

/* ---- 3-piece intro row: photo • blurb • QR ---- */
.identity {
  display: grid;
  grid-template-columns: 140px minmax(280px, 1fr) 140px;
  gap: 24px;
  align-items: center;
  justify-items: center;   /* centers the photo + QR */
  max-width: 980px;
  margin: 22px auto 8px;   /* <break> above the headline */
}

.identity .me, .identity .qr {
  width: 140px; height: 140px;
  border-radius: 14px; overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
}
.identity .me img, .identity .qr img { width: 100%; height: 100%; object-fit: cover; }
.identity .qr img { object-fit: contain; padding: 8px; background:#fff; }

.identity .blurb {
  text-align: center;          /* center the paragraph */
  line-height: 1.5;
}

/* ---- Centered value line ---- */
.value-line h1 {
  text-align: center;
  margin: 8px 0 4px;           /* tight above cards */
  font-size: clamp(24px, 3vw, 36px);
}

/* ---- Mini cards spacing tweak ---- */
.mini-grid { margin-top: 10px; margin-bottom: 24px; }

/* ---- Footer compact ---- */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 10px 0;             /* slim footer */
  font-size: 14px;
}
/* ===== Spacing scale (nice, even rhythm) ===== */
:root{
  --space-xxs: 6px;
  --space-xs: 10px;
  --space-s: 14px;
  --space-m: 20px;
  --space-l: 28px;
  --space-xl: 38px;
}

/* Contained width + safe side padding */
.container{ max-width:1100px; margin-inline:auto; padding-inline:16px; }

/* ===== Intro (photo • blurb • QR) — more breathing room ===== */
.identity{
  display:grid;
  grid-template-columns: 160px minmax(360px, 1fr) 160px; /* a bit larger */
  gap: 28px;
  align-items:center;
  justify-items:center;
  margin: var(--space-l) auto var(--space-s);
  padding-block: 8px; /* subtle top/bottom cushion */
}
.identity .me, .identity .qr{
  width:160px; height:160px;
  border-radius:16px; overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.15);
}
.identity .me img, .identity .qr img{ width:100%; height:100%; object-fit:cover; }
.identity .qr img{ object-fit:contain; padding:10px; background:#fff; }
.identity .blurb{ text-align:center; line-height:1.55; }

/* ===== Value line centered with space around ===== */
.value-line{ margin: var(--space-m) auto var(--space-s); }
.value-line h1{
  text-align:center;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
}

/* ===== Mini cards grid — give them air ===== */
.mini-grid{
  display:grid;
  gap: 20px;                           /* more gap between cards */
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  align-items:stretch;
  margin: var(--space-m) auto var(--space-l);
}
@media (max-width:1100px){
  .mini-grid{ grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
}

/* ===== Truly translucent cards + subtle float ===== */
.mini-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,0.45);        /* translucent */
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(8px);                 /* glassy */
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
  transform: translateY(0);
  animation: float 7s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mini-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.16);
  background: rgba(255,255,255,0.6);
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-7px); }
}

.mini-card a{
  display:grid;
  grid-template-rows: 1fr auto; /* media | label */
  text-decoration:none;
  color:inherit;
  height:100%;
}

.mini-media{
  position:relative;
  aspect-ratio: 4/3;                      /* keeps them half-height-ish */
  overflow:hidden;
  background:#f5f5f5;
}
.mini-media img, .mini-media video{
  width:100%; height:100%; object-fit:cover; display:block;
}

.mini-label{
  text-align:center;
  font-weight:800;
  letter-spacing:.02em;
  font-size: clamp(13px, 1.6vw, 16px);
  padding: 10px 6px 12px;
  background: rgba(255,255,255,0.9);       /* light plate for the word */
  border-top: 1px solid rgba(0,0,0,.06);
}

/* ===== Footer — slim it down ===== */
footer{
  background:#1a1a1a;
  color:#fff;
  padding: 6px 0;            /* was tall — now compact */
  font-size:13px;
  margin-top: var(--space-m);
}
footer p{ margin:0; }
/* ===== Spacing scale (nice, even rhythm) ===== */
:root{
  --space-xxs: 6px;
  --space-xs: 10px;
  --space-s: 14px;
  --space-m: 20px;
  --space-l: 28px;
  --space-xl: 38px;
}

/* Contained width + safe side padding */
.container{ max-width:1100px; margin-inline:auto; padding-inline:16px; }

/* ===== Intro (photo • blurb • QR) — more breathing room ===== */
.identity{
  display:grid;
  grid-template-columns: 160px minmax(360px, 1fr) 160px; /* a bit larger */
  gap: 28px;
  align-items:center;
  justify-items:center;
  margin: var(--space-l) auto var(--space-s);
  padding-block: 8px; /* subtle top/bottom cushion */
}
.identity .me, .identity .qr{
  width:160px; height:160px;
  border-radius:16px; overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.15);
}
.identity .me img, .identity .qr img{ width:100%; height:100%; object-fit:cover; }
.identity .qr img{ object-fit:contain; padding:10px; background:#fff; }
.identity .blurb{ text-align:center; line-height:1.55; }

/* ===== Value line centered with space around ===== */
.value-line{ margin: var(--space-m) auto var(--space-s); }
.value-line h1{
  text-align:center;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
}

/* ===== Mini cards grid — give them air ===== */
.mini-grid{
  display:grid;
  gap: 20px;                           /* more gap between cards */
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  align-items:stretch;
  margin: var(--space-m) auto var(--space-l);
}
@media (max-width:1100px){
  .mini-grid{ grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
}

/* ===== Truly translucent cards + subtle float ===== */
.mini-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,0.45);        /* translucent */
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(8px);                 /* glassy */
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
  transform: translateY(0);
  animation: float 7s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mini-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.16);
  background: rgba(255,255,255,0.6);
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-7px); }
}

.mini-card a{
  display:grid;
  grid-template-rows: 1fr auto; /* media | label */
  text-decoration:none;
  color:inherit;
  height:100%;
}

.mini-media{
  position:relative;
  aspect-ratio: 4/3;                      /* keeps them half-height-ish */
  overflow:hidden;
  background:#f5f5f5;
}
.mini-media img, .mini-media video{
  width:100%; height:100%; object-fit:cover; display:block;
}

.mini-label{
  text-align:center;
  font-weight:800;
  letter-spacing:.02em;
  font-size: clamp(13px, 1.6vw, 16px);
  padding: 10px 6px 12px;
  background: rgba(255,255,255,0.9);       /* light plate for the word */
  border-top: 1px solid rgba(0,0,0,.06);
}

/* ===== Footer — slim it down ===== */
footer{
  background:#1a1a1a;
  color:#fff;
  padding: 6px 0;            /* was tall — now compact */
  font-size:13px;
  margin-top: var(--space-m);
}
footer p{ margin:0; }
