/*
 * Home page only (loaded via $pageCss in index.php).
 */

/* Phones: a bit more space above "A journey of Discovery, Friendship and Fun"
   (theme default on phones: 2px). To revert, delete this block. */
@media (max-width: 767px) {
  .vs-about--section .overview-mobile-heading-wrap {
    margin-top: 24px;
  }
}

/* Phones: keep the 3 "Our School / Montessori Approach / Holistic Approach"
   tab buttons on ONE line (theme: 18px, wraps to 2 lines). To revert, delete this block. */
@media (max-width: 767px) {
  .vs-about--story__tab .nav-tabs {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }
  .vs-about--story__tab .nav-tabs button {
    font-size: 13px;
    /* side padding shrinks smoothly with the screen so the row always fits (10px max, 3px min) */
    padding: 9px clamp(3px, calc((100vw - 330px) / 6), 10px);
    white-space: nowrap;
  }
}

/* Very small/old phones (under 360px): keep 13px text; let the row swipe sideways instead of clipping */
@media (max-width: 359px) {
  .vs-about--story__tab .nav-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .vs-about--story__tab .nav-tabs::-webkit-scrollbar { display: none; }
}

/* =====================================================================
   MOBILE REVAMP, STAGE 1 (2026-10-08): Hero, Overview, About
   Phones only (below 768px). Content unchanged; layout/styling only.
   To revert stage 1: delete everything from this comment to
   "END MOBILE REVAMP STAGE 1", and restore index.php from
   ~/Downloads/cherrywood-backup-2026-10-08-before-mobile-stage1/
   ===================================================================== */
@media (max-width: 767px) {

  /* ---------- HERO: text first (left-aligned), picture below ---------- */
  .vs-hero--style8 .swiper-slide .row {
    flex-direction: column-reverse;
  }
  .vs-hero--style8 .vs-hero__content {
    text-align: left;
    padding: 34px 22px 6px;
  }
  .vs-hero--style8 .vs-hero__title--sub {
    justify-content: flex-start;
  }
  .vs-hero--style8 .vs-hero__title--main {
    font-size: 34px;
    line-height: 1.12;
    text-align: left;
    margin-bottom: 10px;
  }
  .vs-hero--style8 .vs-hero__title--main span {
    display: block;
    font-size: 25px;
    margin-top: 4px;
  }
  .vs-hero--style8 .vs-hero__desc {
    text-align: left;
    margin-bottom: 22px;
  }
  .vs-hero--style8 .vs-hero__btn {
    margin: 0;
  }
  .vs-hero--style8 .vs-hero__img-shape {
    padding: 8px 12px 0;
  }

  /* ---------- OVERVIEW: one card at a time, neighbours peeking ---------- */
  .vs-service--area .vs-carousel--service {
    width: 84%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    padding: 0;
  }
  .vs-service--area .vs-service__figure {
    border-radius: 20px;
    overflow: hidden;
  }
  .vs-service--area .vs-service__image {
    aspect-ratio: 4 / 3.1;
    object-fit: cover;
    width: 100%;
  }
  /* white label card overlapping the bottom of the photo: round icon + title on one row */
  .vs-service--area .vs-service__content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -46px 12px 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(37, 40, 62, 0.10);
    position: relative;
    z-index: 2;
  }
  .vs-service--area .vs-service__header {
    margin: 0;
    padding: 0;          /* theme padding made the card taller than needed */
    border: 0;
    flex: 0 0 auto;
    display: flex;
  }
  .vs-service--area .vs-service__icon {
    margin: 0;           /* theme: 22px bottom margin made the card taller */
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #E6EFEC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .vs-service--area .vs-service__icon img {
    width: 30px;
    height: auto;
  }
  .vs-service--area .vs-service__heading--link {
    flex: 1;
  }
  .vs-service--area .vs-service__heading {
    font-size: 18px;
    margin: 0;
  }
  .vs-service--area .vs-service__link {
    display: none; /* the title already links to the same page */
  }
  /* round arrows on the photo */
  .vs-service--area .nav-prev-1,
  .vs-service--area .nav-next-2 {
    position: absolute;
    top: 30%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(37, 40, 62, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vs-title-color);
    cursor: pointer;
    margin: 0;
    transform: none;
  }
  .vs-service--area .nav-prev-1 { left: 10%; }
  .vs-service--area .nav-next-2 { right: 10%; }
  .vs-service--area .nav-prev-1 svg,
  .vs-service--area .nav-next-2 svg {
    display: none;
  }
  .vs-service--area .nav-prev-1::before,
  .vs-service--area .nav-next-2::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
  }
  .vs-service--area .nav-prev-1::before { content: "\f053"; }
  .vs-service--area .nav-next-2::before { content: "\f054"; }
  /* dots under the slider */
  .vs-service--area .cwh-prog-dots {
    position: static;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    transform: none !important;
    width: 100% !important;
  }
  .vs-service--area .cwh-prog-dots .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    margin: 0 !important;
    border-radius: 50%;
    background: #D9D9D9;
    opacity: 1;
    transform: none !important;
    position: static !important;
    left: auto !important;
  }
  .vs-service--area .cwh-prog-dots .swiper-pagination-bullet i {
    display: none;
  }
  .vs-service--area .cwh-prog-dots .swiper-pagination-bullet-active {
    background: var(--vs-theme-color2);
  }

  /* ---------- ABOUT: overlapping photo collage with the 12+ badge ---------- */
  .vs-about--section .vs-about--image {
    position: relative;
    display: block;      /* theme: grid (stacks the photos) */
    min-height: 0;       /* theme: 607px */
    /* 90px row for the 12+ badge + the big photo (66% wide, 1:1.08) below it */
    height: calc(90px + (100vw - 24px) * 0.66 * 1.08);
    margin-bottom: 6px;
  }
  .vs-about--section .vs-about--image__figure1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 44%;
    z-index: 2;
  }
  .vs-about--section .vs-about--image__figure2 {
    position: absolute;
    top: 90px;           /* always just below the 12+ badge (theme: 146px) */
    left: auto;          /* theme: 145px */
    right: 0;
    bottom: auto;
    width: 66%;
    z-index: 1;
  }
  .vs-about--section .vs-about--image__figure1 img,
  .vs-about--section .vs-about--image__figure2 img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
  }
  .vs-about--section .vs-about--image__figure1 img { aspect-ratio: 1 / 0.85; }
  .vs-about--section .vs-about--image__figure2 img { aspect-ratio: 1 / 1.08; }
  .vs-about--section .vs-about--yoe {
    position: absolute;
    top: 6px;
    right: 0;
    left: auto;
    bottom: auto;
    width: 52%;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    margin: 0;
    padding: 0;          /* theme: 30px top padding */
  }
  .vs-about--section .vs-about--yoe__number {
    --size: 68px;        /* theme: 88px */
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    font-size: 24px;
  }
  .vs-about--section .vs-about--yoe__text {
    font-size: 15px;
    line-height: 1.2;
  }
  /* the page's existing plane + balloons doodles and soft circle (theme hides them on phones) */
  .vs-about--section .vs-about--image__ele3 {
    display: block;
    position: absolute;
    --circle-size: 170px;
    left: -60px;
    top: 150px;
    z-index: 0;
  }
  .vs-about--section .vs-about--image__ele1 {
    display: block;
    position: absolute;
    left: 2%;
    top: 58%;
    width: 30%;
    z-index: 1;
  }
  .vs-about--section .vs-about--image__ele2 {
    display: block;
    position: absolute;
    left: 22%;
    top: 80%;
    width: 13%;
    z-index: 1;
  }
  .vs-about--section .vs-about--image__ele1 img,
  .vs-about--section .vs-about--image__ele2 img {
    width: 100%;
  }
  .vs-about--section .vs-about--right .vs-title__main {
    font-size: 30px;
  }
}
/* ======================= END MOBILE REVAMP STAGE 1 ======================= */

/* =====================================================================
   MOBILE REVAMP, STAGE 2 (2026-10-08): Learning Hours, Curriculum, Family Feedback
   Phones only (below 768px). Content unchanged; layout/styling only.
   To revert stage 2: delete everything from this comment to
   "END MOBILE REVAMP STAGE 2" (or restore home.css from
   ~/Downloads/cherrywood-backup-2026-10-08-before-mobile-stage2/)
   ===================================================================== */
@media (max-width: 767px) {

  /* ---------- LEARNING HOURS: compact list rows ---------- */
  .vs-session--area .vs-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    height: auto;
    padding: 12px 14px 12px 18px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #fff;
    border: 2px dashed rgba(184, 55, 71, 0.28);
  }
  .vs-session--area .vs-session__bg {
    display: none;   /* the theme's white shape image; the row itself is now the white box */
  }
  .vs-session--area .vs-session__content {
    position: static;
    padding: 0;
    flex: 1;
    text-align: left;
  }
  .vs-session--area .vs-session__title {
    font-size: 18px;
    margin: 0 0 3px;
  }
  .vs-session--area .vs-session__time {
    font-size: 13px;
  }
  .vs-session--area .vs-session__icon {
    --icon-size: 52px;       /* theme: 77px */
    position: static;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    margin: 0;
    transform: none;
  }
  .vs-session--area .vs-session__icon img {
    width: 30px;
  }
  /* ---------- CURRICULUM: image first, then a 2 x 2 grid of cards ---------- */
  .vs-featureh3--area .row.align-items-center {
    row-gap: 14px;
  }
  .vs-featureh3--area .row.align-items-center > .col-lg-4:nth-child(2) {
    order: -1;               /* the A+ Results image goes above the cards */
    width: 100%;
  }
  .vs-featureh3--area .row.align-items-center > .col-lg-4:nth-child(1),
  .vs-featureh3--area .row.align-items-center > .col-lg-4:nth-child(3) {
    width: 50%;              /* left column: Practical Life + Mathematics, right: Sensorial + Language */
    padding-left: 6px;
    padding-right: 6px;
  }
  .vs-featureh3--area .vs-featureh3__image {
    margin: 4px 0 10px;
    text-align: center;
  }
  .vs-featureh3--area .vs-featureh3__image img {
    max-width: 88%;
  }
  .vs-featureh3--area .vs-featureh3,
  .vs-featureh3--area .vs-featureh3.flex-row-reverse {
    display: flex;
    flex-direction: column-reverse !important;   /* icon on top, then title + text (theme/Bootstrap use row-reverse !important) */
    align-items: center;
    text-align: center !important;
    gap: 10px;
    padding: 18px 10px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: #EEF3EE;
    min-height: 250px;       /* equal heights so both columns line up */
  }
  .vs-featureh3--area .vs-featureh3__content {
    text-align: center;
  }
  .vs-featureh3--area .vs-featureh3__heading {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .vs-featureh3--area .vs-featureh3__text {
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0;
  }
  .vs-featureh3--area .vs-featureh3__icon {
    margin: 0;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  /* ---------- FAMILY FEEDBACK: photo on top of a white testimonial card ---------- */
  #feedback .feedback-image,
  #feedback .feedback-image--right {
    display: none;   /* the same photo is shown inside the card below instead */
  }
  #feedback .feedback-block {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 0 18px 22px;
    text-align: left;
  }
  #feedback .feedback-block::before {
    content: "";
    grid-column: 1 / -1;
    height: 185px;
    margin: 0 -18px 16px;
    background: url("../../img/newhome/feedback.webp") center 30% / cover no-repeat;
  }
  #feedback .feedback-block__image {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 60px;
    height: 60px;
    margin: 0;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: var(--vs-title-color);   /* navy avatar circle */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #feedback .feedback-block__image > img {
    width: 60px;
    height: 60px;
    min-width: 0;            /* theme: 145px */
    max-height: 60px;
    object-fit: contain;
    filter: invert(1);       /* white person on the navy circle */
    padding: 10px;
  }
  #feedback .feedback-block__icon--quote {
    display: none;   /* replaced by the green quote mark before the text */
  }
  #feedback .feedback-block__content {
    display: contents;   /* lets the name/stars sit beside the avatar and the quote span the card */
  }
  #feedback .feedback-block__title {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    font-size: 18px;
    margin: 0;
    color: var(--vs-title-color);   /* theme: white (for the dark background) */
  }
  #feedback .feedback-block__rating {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin: 2px 0 0;
    justify-content: flex-start;
  }
  #feedback .feedback-block__desc {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: #4a4a5e;                  /* theme: white */
  }
  #feedback .feedback-block__desc::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--vs-theme-color2);
    font-size: 22px;
    margin-right: 10px;
    float: left;
    line-height: 1.2;
  }
}
/* ======================= END MOBILE REVAMP STAGE 2 ======================= */

/* =====================================================================
   MOBILE REVAMP, STAGE 3 (2026-10-08): final flow check, phones only.
   Curriculum kept the theme's 80px top/bottom padding on phones, leaving
   bigger blank gaps (after Gallery and before Our Facility) than anywhere
   else on the page. Tightened to match the rest.
   To revert: delete this block down to "END MOBILE REVAMP STAGE 3".
   ===================================================================== */
@media (max-width: 767px) {
  .vs-featureh3--area.space {
    padding-top: 40px;
    padding-bottom: 50px;
  }
}
/* ======================= END MOBILE REVAMP STAGE 3 ======================= */

/* =====================================================================
   "Our Facility" cards without the arrow button (2026-10-09), all screens.
   The arrow blocks were removed from index.php; the theme spaced the cards for a
   button hanging half below each card. Now: the card ends 22px below the text (same as
   its top/side padding), and the space under the cards is reduced by the button's
   former overhang so the gap to the next section looks the same as before.
   To revert: delete this block and restore index.php from
   ~/Downloads/cherrywood-backup-2026-10-09-before-facility-arrows/.
   ===================================================================== */
.vs-class--area .vs-class {
  padding-bottom: 0;
  margin-bottom: 39px;
}
/* ======================= END FACILITY CARDS (NO ARROW) ======================= */

/* =====================================================================
   Family Feedback: Google reviews (2026-10-09), all screens.
   - Google "G" logo on a white circle instead of the profile icon
   - small "Google review" label next to the stars
   - the slider's own one-dot-per-review row is hidden; assets/js/home-feedback.js
     shows max 4 dots instead (same look)
   To revert: delete this block, restore index.php from
   ~/Downloads/cherrywood-backup-2026-10-09-before-google-reviews/ and delete
   assets/js/home-feedback.js and assets/img/google-g.svg.
   ===================================================================== */
#feedback .feedback-block__image > img.cw-google-g {
  background: #ffffff;
  padding: 34px;              /* desktop circle 145px -> logo about 77px */
  object-fit: contain;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
#feedback .cw-google-label {
  margin-left: 12px;
  font-family: var(--vs-body-font, inherit);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);   /* desktop: on the dark background */
  white-space: nowrap;
}
#feedback .vs-feedback-pagination.cw-hidden-dots {
  display: none !important;
}
/* tablets/desktop (768px+): smaller logo circle (2026-10-09). Theme size was 145px with a
   77px quote badge and a 62px gap; phones keep their own 60px circle (below). */
@media (min-width: 768px) {
  #feedback .feedback-block {
    gap: 44px;
  }
  #feedback .feedback-block__image {
    --image-size: 96px;
  }
  #feedback .feedback-block__image > img.cw-google-g {
    padding: 22px;            /* logo about 52px inside the 96px circle */
  }
  #feedback .feedback-block__icon--quote {
    --icon-quote: 50px;
    bottom: -10px;
    right: -18px;
    border-width: 2px;
  }
  #feedback .feedback-block__icon--quote img {
    width: 24px;
    height: auto;
  }
}
@media (max-width: 767px) {
  /* phones: the review sits on a white card */
  #feedback .feedback-block__image {
    background: #ffffff;
    border: 1px solid #e6e6ee;
  }
  #feedback .feedback-block__image > img.cw-google-g {
    filter: none;             /* the old person icon was inverted to white */
    padding: 13px;
    box-shadow: none;
  }
  #feedback .cw-google-label {
    margin-left: 10px;
    font-size: 12px;
    color: #6b6b7b;
  }
}
/* ======================= END FAMILY FEEDBACK (GOOGLE) ======================= */

/* =====================================================================
   Hero: "Admissions Open for 2027-28!" line above the Apply Now button
   (2026-11-01), all screens. Warm yellow pill with navy text on the red banner.
   To revert: delete this block and the <p class="cw-hero-admissions"> in index.php.
   ===================================================================== */
.vs-hero--style8 .cw-hero-admissions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 9px 20px;
  border-radius: 999px;
  background: #F7B733;
  color: var(--vs-title-color);
  font-family: var(--vs-title-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.vs-hero--style8 .cw-hero-admissions i {
  font-size: 16px;
}
@media (max-width: 767px) {
  .vs-hero--style8 .cw-hero-admissions {
    font-size: 15px;
    padding: 8px 16px;
    margin-bottom: 22px;
  }
  .vs-hero--style8 .cw-hero-admissions i {
    font-size: 14px;
  }
}
/* ======================= END HERO ADMISSIONS LINE ======================= */
