@charset "utf-8";
/* ============================================================
   Book7 – 2026 redesign  (חוברת חוגים)
   Desktop-first. Mobile pass comes in phase 2.
   ============================================================ */

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Bold.woff2') format('woff2'),
         url('../fonts/Assistant-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-ExtraBold.woff2') format('woff2'),
         url('../fonts/Assistant-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Medium.woff2') format('woff2'),
         url('../fonts/Assistant-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-Regular.woff2') format('woff2'),
         url('../fonts/Assistant-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('../fonts/Assistant-SemiBold.woff2') format('woff2'),
         url('../fonts/Assistant-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* brand gradient (right = pink/purple, left = blue) */
    --bk-blue: #1398E2;
    --bk-purple: #C609A2;
    /* Figma: magenta at the start (left/bottom) → blue at the end (right/top) */
    --bk-grad: linear-gradient(38deg, var(--bk-purple) 7.44%, var(--bk-blue) 94.15%);
    --bk-grad-v: linear-gradient(to bottom, var(--bk-blue) 0%, var(--bk-purple) 100%);
    /* headings: the brand gradient darkened by a 20% black layer (Figma) */
    --bk-grad-text: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)),
                    linear-gradient(38deg, var(--bk-purple) 7.44%, var(--bk-blue) 94.15%);

    --bk-primary: #2D7DC1;      /* links, icons */
    --bk-title-blue: #1278B4;   /* contact card titles */
    --bk-navy: #376FA0;         /* brand blue – menu, buttons, quote badges */
    --bk-btn-blue: #376FA0;     /* home CTA */
    --bk-text: #3F4C5E;         /* card detail text */
    --bk-headline: #2A3039;     /* card headline */
    --bk-text-light: #5A6472;
    --bk-line: #E4EDF5;
    --bk-hero-bg: #EAF3FA;
    --bk-white: #ffffff;

    --bk-radius: 22px;
    --bk-shadow: 0 10px 34px rgba(35, 94, 143, 0.10);
    --bk-shadow-soft: 0 6px 22px rgba(35, 94, 143, 0.08);

    --bk-font: 'Rubik', 'Assistant', sans-serif;
    /* Headings: Rubik One has NO Hebrew subset (latin/cyrillic only), so Hebrew
       would silently fall back to a regular weight. Rubik Black (900) carries
       Hebrew and matches Rubik One's weight. */
    --bk-font-heading: 'Rubik', 'Assistant', sans-serif;
    /* Latin-only display text (the year) – the real Rubik One */
    --bk-font-display: 'Rubik One', 'Rubik', sans-serif;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, a, ul, ol, li, h1, h2, h3, h4, h5, h6, p,
form, fieldset, label, input, select, textarea, button, article, header, footer, nav, section {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--bk-font);
    font-weight: 400;
    color: var(--bk-text);
    background: var(--bk-white);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.overflow-hidden { overflow: hidden; }

img { max-width: 100%; border: 0; display: inline-block; }
a { text-decoration: none; color: inherit; transition: all .25s ease; }
ul.unlisted, .bk-menu ul { list-style: none; }
#menu_box ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; background: none; cursor: pointer; }

::selection { color: #fff; background: var(--bk-primary); }

/* ---------- layout ---------- */

.bk-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden; /* clip corner decorations */
    padding-bottom: 64px; /* keep content off the page's bottom edge even when the load-more button is hidden */
}

.bk-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- decorative page backdrop ---------- */

/* fixed to the viewport so the pastel corners always hug the screen corners */
.bk-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url(../images/site/categories_background.png) center center / 100% 100% no-repeat;
}

/* ---------- header (logo + menu dots) ---------- */

.bk-header {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: 42px 0 10px;
}

.bk-header .bk-logo img {
    height: 92px;
    width: auto;
    display: block;
}

/* three-dots menu trigger */
#menu_icon {
    position: absolute;
    top: 34px;
    left: auto;
    right: 44px;
    z-index: 60;
    width: 44px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    border-radius: 12px;
}

#menu_icon span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1F5F94;
    transition: transform .2s ease;
}

#menu_icon:hover span { transform: scale(1.25); }

/* ---------- side menu (drawer) ---------- */

#menu_box {
    position: fixed;
    top: 0;
    right: -420px;
    width: 390px;
    max-width: 92vw;
    height: 100vh;
    /* white panel + vertical gradient bar painted on the far (left) edge */
    background: linear-gradient(to bottom, var(--bk-blue) 0%, var(--bk-purple) 100%) left top / 7px 100% no-repeat, #fff;
    z-index: 100;
    box-shadow: -18px 0 50px rgba(20, 60, 100, .16);
    transition: right .35s ease;
    overflow-y: auto;
    padding: 22px 34px 40px 40px;
}

#menu_box.menu-open { right: 0; }

#menu_box .close_menu {
    text-align: right;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bk-line);
}

#menu_box .close_menu .close_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 26px;
    font-weight: 500;
    color: #235E8F;
    border-radius: 10px;
}

#menu_box .close_menu .close_icon:hover { background: var(--bk-hero-bg); }

#menu_box .nav > li {
    border-bottom: 1px solid var(--bk-line);
}

#menu_box .nav > li > a {
    display: block;
    padding: 17px 6px;
    font-size: 19px;
    font-weight: 500;
    color: var(--bk-navy);
}

#menu_box .nav > li > a:hover { color: var(--bk-primary); }

/* accordion parent (קטגוריות) */
#menu_box .nav li.submenu_arrow > a {
    position: relative;
    padding-left: 30px;
}

#menu_box .nav li.submenu_arrow > a::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-left: 2px solid var(--bk-navy);
    border-bottom: 2px solid var(--bk-navy);
    transform: translateY(-70%) rotate(-45deg);
    transition: transform .25s ease;
}

#menu_box .nav li.submenu_arrow.active > a {
    background: #EFF6FC;
    border-radius: 10px;
    font-weight: 600;
}

#menu_box .nav li.submenu_arrow.active > a::after {
    transform: translateY(-30%) rotate(135deg);
}

#menu_box .submenu {
    display: none;
    padding: 2px 0 8px;
}

#menu_box .submenu li {
    border-bottom: 1px solid var(--bk-line);
    background: #F7FAFD;
}

#menu_box .submenu li:last-child { border-bottom: 0; }

#menu_box .submenu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 26px 13px 6px;
    font-size: 17px;
    color: var(--bk-navy);
}

#menu_box .submenu li a:hover { color: var(--bk-primary); }

/* item's own SVG icon, recolored to #376FA0 server-side (svgIcon.php) */
.bk-submenu-svg {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
}

/* raster item images render as small round thumbnails */
.bk-submenu-thumb {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
}

/* legacy Font Awesome submenu icons */
.bk-submenu-fa {
    flex: 0 0 auto;
    width: 22px;
    text-align: center;
    color: #376FA0;
    font-size: 17px;
}

/* ---------- headings ---------- */

/* Figma: Rubik One 40px, brand gradient + 20% black overlay */
.bk-title {
    font-family: var(--bk-font-heading);
    font-weight: 900;
    font-size: 40px;
    line-height: 1.25;
    text-align: center;
    background-image: var(--bk-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bk-purple);
}

.bk-title-bar {
    width: 214px;
    height: 3px;
    border-radius: 3px;
    background-image: var(--bk-grad);
    margin: 16px auto 0;
}

/* Figma: Rubik Light 22px black, letter-spacing -0.88px (single line on desktop) */
.bk-sub {
    max-width: 1160px;
    margin: 26px auto 0;
    text-align: center;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: #000;
}

/* ---------- scroll-down round button (gradiant_arrow.svg) ---------- */

.bk-scroll-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 46px auto 42px;
    filter: drop-shadow(0 10px 20px rgba(120, 55, 160, .35));
    transition: transform .25s ease;
}

.bk-scroll-btn:hover { transform: translateY(4px); }

.bk-scroll-btn img { width: 100%; height: 100%; display: block; }

/* ============================================================
   HOME (index.php)
   ============================================================ */

body.bk-home {
    background: #101820;
    overflow-x: hidden;
}

/* desktop home has no logo header / menu – they exist for mobile only */
@media (min-width: 768px) {
    body.bk-home .bk-header,
    body.bk-home #menu_icon,
    body.bk-home #menu_box { display: none; }
}

.bk-home-wrap {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.bk-home-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bk-home-bg img,
.bk-home-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* white blob card, top-right.
   The exported shape SVG (764x653) equals the visible region of the Figma
   frame at x:1156-1920, y:41-694 (design frame = 1920px). The card is placed
   exactly there and every element inside is absolutely positioned at its
   Figma coordinates, converted to percentages of the 764x653 box. */
.bk-home-card {
    position: absolute;
    z-index: 2;
    top: 2.14vw;        /* 41 / 1920 */
    right: 0;
    width: 39.79vw;     /* 764 / 1920 */
    min-width: 460px;
    aspect-ratio: 764 / 653;
    background: url(../images/site/BookLandingPageShape.svg) center center / 100% 100% no-repeat;
}

/* logo: right edge 106px from card right, y 99-183 (h 84) */
.bk-home-card .bk-home-logo {
    position: absolute;
    top: 15.2%;
    right: 13.9%;
    height: 12.9%;
    display: block;
}

.bk-home-card .bk-home-logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* title + year: 715px block spanning card x -58..657, centered text */
.bk-home-titles {
    position: absolute;
    top: 30.6%;
    left: -7.6%;
    right: 13.9%;
    text-align: center;
}

/* Figma: solid brand blue, Rubik Regular 50px, tracking -1px – NOT a gradient */
.bk-home-card h1 {
    font-family: var(--bk-font);
    font-weight: 400;
    font-size: clamp(26px, 2.6vw, 50px);    /* 50 @ 1920 */
    line-height: 1.12;                      /* 56px block */
    letter-spacing: -0.02em;
    color: #376FA0;
}

/* Figma: Rubik One 80px, gradient + 20% black overlay (digits = latin, so the
   real Rubik One applies here) */
.bk-home-card .bk-home-year {
    font-family: var(--bk-font-display);
    font-weight: 400;
    font-size: clamp(38px, 4.17vw, 80px);   /* 80 @ 1920 */
    line-height: 1.3;                       /* 104px block */
    direction: ltr;
    white-space: nowrap;
    background-image: var(--bk-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bk-purple);
}

/* divider + tagline: right-aligned at the same 13.9% right edge */
.bk-home-copy {
    position: absolute;
    top: 55.1%;
    right: 13.9%;
    width: 32.1%;      /* 245 / 764 */
    text-align: right;
}

.bk-home-card .bk-home-divider {
    width: 87%;        /* 214 / 245 */
    height: 3px;
    background: #376FA0;
    margin: 0 0 clamp(10px, 1.35vw, 26px) auto;
}

/* Figma: Rubik Regular 18px #376FA0, mercaz name in Rubik Black */
.bk-home-card .bk-home-tagline {
    font-size: clamp(12px, 0.94vw, 18px);
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: #376FA0;
}

.bk-home-card .bk-home-tagline strong { font-weight: 900; }

/* CTA: x 125-373, y 424-510 of the card (248x86 @ 1920) */
.bk-home-cta {
    position: absolute;
    left: 16.4%;
    top: 64.9%;
    height: 13.2%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1vw, 20px);
    padding: 0 clamp(20px, 1.9vw, 36px);
    border-radius: 61px;
    background: var(--bk-btn-blue);
    color: #fff;
    font-size: clamp(14px, 1.25vw, 24px);   /* 24 @ 1920 */
    font-weight: 400;
    letter-spacing: -0.02em;
    box-shadow: 0 14px 30px rgba(20, 60, 100, .30);
}

.bk-home-cta:hover { background: #275d80; }

.bk-home-cta .bk-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(22px, 1.64vw, 32px);
    height: clamp(22px, 1.64vw, 32px);
    flex: 0 0 auto;
}

.bk-home-cta .bk-cta-arrow img { width: 100%; height: 100%; }

/* ============================================================
   CATEGORIES  (catalog.php / subcategory.php)
   ============================================================ */

.bk-section-head { padding-top: 34px; }

/* Figma card: 393.39x491.24, radius 29.95, content top 281.56, inner gap 9.98
   (design frame = 1920px – sizes scale with the viewport below the maximums) */
.bk-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 2.1vw, 40px);
    max-width: min(1260px, 65.6vw);
    margin: 56px auto 0;
}

.bk-cat-card {
    --bk-cat-color: #2196F3;
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 393.39 / 491.24;
    background: #dfe9f2;
    box-shadow: var(--bk-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.bk-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(35, 94, 143, .20);
}

.bk-cat-card img.bk-cat-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Figma: colored block is 209.67/491.24 = 42.68% tall, anchored to the
   bottom, fading from solid (bottom half) to transparent at its top */
.bk-cat-card .bk-cat-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42.68%;
    background: linear-gradient(to top,
        var(--bk-cat-color) 0%,
        var(--bk-cat-color) 48%,
        transparent 100%);
}

/* content block = same 42.68% region.
   Figma: padding 29.95 vertical / 15.98 horizontal, inner gap 4.99,
   content bottom-aligned (justify-end). */
.bk-cat-card .bk-cat-info {
    position: absolute;
    left: 0;
    right: 0;
    top: 57.3%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 30px 16px;
    text-align: center;
    color: #fff;
}

.bk-cat-card .bk-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 3.12vw, 60px);   /* 59.9 @ 1920 */
    height: clamp(48px, 3.12vw, 60px);
    flex: 0 0 auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.bk-cat-card .bk-cat-icon svg {
    width: 32px;
    height: 32px;
}

/* circle icon shows the item's own image from the DB */
.bk-cat-card .bk-cat-icon img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    border-radius: 50%;
}

/* legacy Font Awesome category icons */
.bk-cat-card .bk-cat-icon i {
    font-size: clamp(20px, 1.5vw, 28px);
    line-height: 1;
}

/* card without a photo – solid colored card, same size as photo cards */
.bk-cat-card--noimg .bk-cat-overlay {
    top: 0;
    height: auto;
    background: linear-gradient(to top, var(--bk-cat-color) 0%, var(--bk-cat-color) 55%, rgba(255, 255, 255, .25) 160%),
                var(--bk-cat-color);
}

/* Figma: Rubik Bold 26px white / Rubik Regular 20px white */
.bk-cat-card h4 {
    font-size: clamp(19px, 1.35vw, 26px);
    font-weight: 700;
    line-height: 1.15;
}

.bk-cat-card .bk-cat-count {
    font-size: clamp(14px, 1.04vw, 20px);
    font-weight: 400;
    opacity: .95;
}

/* ---- outbound link (admin-entered address on a department / category) ----
   The badge sits in the photo area, away from the name, and is large enough to
   read at a glance – third-age visitors must see that the click leaves the
   booklet. Contrast comes from the solid white pill on the photo. */
.bk-cat-card--external .bk-external-mark {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #235E8F;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}

.bk-cat-card--external .bk-external-mark svg {
    width: 20px;
    height: 20px;
}

/* same marker inside the side menu, inline after the item name */
.bk-submenu .bk-external-mark,
.submenu .bk-external-mark {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 6px;
    color: #376FA0;
    vertical-align: middle;
}

.bk-submenu .bk-external-mark svg,
.submenu .bk-external-mark svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   CATEGORY / CLASS LIST  (class.php, subcategory tiles)
   ============================================================ */

.bk-hero {
    position: relative;
    max-width: 1130px;
    margin: 40px auto 0;
    padding: 58px 330px 58px 90px; /* image side = right (RTL) */
    background: var(--bk-hero-bg);
    border-radius: 60px;
    text-align: center;
}

.bk-hero.bk-hero--noimg { padding: 58px 90px; }

.bk-hero h1 {
    font-family: var(--bk-font-heading);
    font-weight: 900;
    font-size: 40px;
    line-height: 1.25;
    background-image: var(--bk-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bk-purple);
}

/* Figma: Rubik Light 22px black, tracking -0.88px */
.bk-hero p {
    max-width: 470px;
    margin: 18px auto 0;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: -0.04em;
    color: #000;
}

.bk-hero .bk-hero-img {
    position: absolute;
    right: 60px;
    left: auto;
    bottom: -14px;
    width: 250px;
    height: calc(100% + 44px);
    display: flex;
    align-items: center; /* keep regular (non-cutout) images centered on the cloud */
    justify-content: center;
    pointer-events: none;
}

/* light cloud blob behind the hero image (Figma: 472x377, rotated -50.39deg) */
.bk-hero .bk-hero-img::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 472px;
    height: 377px;
    margin: -188px 0 0 -236px;
    background: url(../images/site/cloud_background.png) center center / contain no-repeat;
    transform: rotate(-50.39deg);
    z-index: 0;
}

.bk-hero .bk-hero-img img {
    position: relative;
    z-index: 1;
    max-height: 82%;
    max-width: 92%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(35, 94, 143, .18));
}

/* back link */
.bk-back-row {
    max-width: 1130px;
    margin: 34px auto 0;
    display: flex;
    justify-content: flex-start;
}

/* Figma: Rubik Bold 18px #3F4C5E */
.bk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bk-text);
}

.bk-back-link:hover { color: var(--bk-primary); }

.bk-back-link .bk-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

/* gradiant_arrow.svg points down – rotate to point "back" (right in RTL) */
.bk-back-link .bk-back-icon img {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bk-back-link .bk-back-sep {
    color: #B9C7D4;
    font-weight: 400;
    margin-right: 6px;
}

/* age filter (class.php) */
.bk-age-filter {
    max-width: 1130px;
    margin: 34px auto 0;
    display: flex;
    justify-content: center;
}

.bk-age-filter form {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 999px;
    padding: 10px 24px;
    box-shadow: var(--bk-shadow-soft);
}

.bk-age-filter label {
    font-size: 18px;
    font-weight: 600;
    color: var(--bk-navy);
}

.bk-age-filter select {
    font-family: inherit;
    font-size: 17px;
    color: var(--bk-text);
    border: 0;
    background: transparent;
    padding: 6px 4px 6px 18px;
    outline: none;
    cursor: pointer;
}

.bk-age-filter input[type="submit"] {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--bk-grad-v);
    border-radius: 999px;
    padding: 9px 28px;
    cursor: pointer;
    transition: opacity .25s ease;
}

.bk-age-filter input[type="submit"]:hover { opacity: .88; }

/* hug cards grid */
.bk-hug-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 1130px;
    margin: 44px auto 0;
}

.bk-hug-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    padding: 16px 16px 24px;
    box-shadow: var(--bk-shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

.bk-hug-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(35, 94, 143, .16);
}

.bk-hug-card .bk-hug-img {
    height: 205px;
    border-radius: 14px;
    overflow: hidden;
    background: #EAF3FA;
}

.bk-hug-card .bk-hug-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Figma: Rubik Medium 20px #2A3039 */
.bk-hug-card h3 {
    margin: 18px 6px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--bk-headline);
}

.bk-hug-meta {
    list-style: none;
    margin: 12px 6px 0;
    flex: 1 1 auto;
}

/* Figma: Rubik Regular 18px #3F4C5E, 8px icon gap, 1.4 line-height */
.bk-hug-meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bk-text);
}

.bk-hug-meta li .bk-meta-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    display: inline-flex;
}

.bk-hug-meta li .bk-meta-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.bk-hug-meta .bk-meta-sep {
    color: #B9C7D4;
    margin: 0 6px;
}

/* Figma: white pill, 1px #376FA0 border, Rubik Regular 18px #3F4C5E */
.bk-hug-more {
    display: block;
    margin: 20px auto 0;
    width: 194px;
    max-width: 90%;
    padding: 16px 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bk-text);
    border: 1px solid #376FA0;
    border-radius: 61px;
    background: #fff;
}

.bk-hug-more:hover {
    background: var(--bk-primary);
    border-color: var(--bk-primary);
    color: #fff;
}

.bk-hug-card .bk-hug-whatsapp {
    display: block;
    margin: 12px auto 0;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #1EA952;
}

.bk-hug-card .bk-hug-whatsapp:hover { text-decoration: underline; }

/* subcategory tiles (text-only links) */
.bk-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 1130px;
    margin: 48px auto 0;
}

.bk-sub-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    background: #fff;
    border: 1px solid #EAF0FB;
    border-radius: 16px;
    box-shadow: var(--bk-shadow-soft);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--bk-title-blue);
    transition: transform .3s ease, box-shadow .3s ease;
}

.bk-sub-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(35, 94, 143, .16);
    color: var(--bk-primary);
}

/* ============================================================
   CONTENT PAGE (pagecontent.php)
   ============================================================ */

.bk-content-wrap {
    max-width: 880px;
    margin: 50px auto 60px;
}

/* decorative quote frame around the content */
.bk-quote { margin-bottom: 44px; }

.bk-quote .bk-quote-line {
    display: flex;
    align-items: center;
    max-width: 490px;   /* Figma: 442 line + 48 badge */
    margin: 0 auto;
    direction: ltr; /* fixed visual order: line + circle per the design */
}

.bk-quote .bk-quote-line .bk-line {
    flex: 1 1 auto;
    height: 3px;
    background: #376FA0;
    border-radius: 3px;
}

/* the quote SVGs are 182x48 with the circle at one end – crop to the circle */
.bk-quote .bk-quote-img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.bk-quote .bk-quote-img--start { object-position: right center; }
.bk-quote .bk-quote-img--end { object-position: left center; }

.bk-quote .bk-content-body { margin: 36px auto; }

/* Figma: Rubik Light 18px black, 800px column */
.bk-content-body {
    max-width: 800px;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.55;
    color: #000;
}

.bk-content-body p { margin-bottom: 14px; }

.bk-signature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
}

/* Figma: 80px avatar with a hairline border */
.bk-signature .bk-signature-img {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border: 0.615px solid #000;
    border-radius: 50%;
    overflow: hidden;
    order: 2;
}

.bk-signature .bk-signature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-signature .bk-signature-text {
    font-size: 18px;
    line-height: 1.5;
    color: var(--bk-text);
}

.bk-signature .bk-signature-text strong {
    display: block;
    font-weight: 700;
}

/* ============================================================
   CONTACT (contact-us.php)
   ============================================================ */

.bk-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1130px;
    margin: 70px auto 60px;
}

/* Figma: white, 1px #EAF0FB border, radius 16, soft shadow */
.bk-contact-card {
    display: block;
    background: #fff;
    border: 1px solid #EAF0FB;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(19, 63, 106, .08);
    padding: 0 24px 32px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.bk-contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(35, 94, 143, .18);
}

/* contactus_*.svg already includes the pastel circle background */
.bk-contact-card .bk-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.bk-contact-card .bk-contact-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Figma: Rubik Bold 26px #1278B4, tracking -1.04px */
.bk-contact-card h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--bk-title-blue);
    margin-bottom: 5px;
}

/* Figma: Rubik Regular 22px black, tracking -0.88px */
.bk-contact-card p {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: #000;
    overflow-wrap: break-word; /* long emails must not escape the card */
}

.bk-contact-card p a { color: inherit; }

/* ============================================================
   AGE TYPE (agetype.php)
   ============================================================ */

.bk-ages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 940px;
    margin: 56px auto 0;
}

.bk-ages-grid article { position: relative; }

.bk-ages-grid input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.bk-ages-grid article div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 20px 34px;
    background: #fff;
    border: 1.5px solid #A9C4DA;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 600;
    color: var(--bk-navy);
    box-shadow: var(--bk-shadow-soft);
    transition: all .25s ease;
}

.bk-ages-grid input[type="checkbox"]:checked + div {
    background: var(--bk-grad-v);
    border-color: transparent;
    color: #fff;
}

.bk-ages-actions {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin: 56px auto 60px;
}

.bk-ages-actions .bk-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 42px;
    border-radius: 999px;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.bk-ages-actions .bk-btn-next {
    background: var(--bk-btn-blue);
    color: #fff;
    border: 0;
}

.bk-ages-actions .bk-btn-next:hover { background: #275d80; }

.bk-ages-actions .bk-btn-back {
    background: #fff;
    color: var(--bk-navy);
    border: 1.5px solid #A9C4DA;
}

.bk-ages-actions .bk-btn-back:hover {
    border-color: var(--bk-primary);
    color: var(--bk-primary);
}

.bk-ages-actions svg { width: 16px; height: 16px; }

/* ---------- misc helpers ---------- */

.bk-empty {
    text-align: center;
    font-size: 20px;
    color: var(--bk-text-light);
    padding: 60px 0;
}

/* mobile-only "show more" pill (see media block below) */
.bk-show-more { display: none; }

/* grid items beyond the current "load more" batch */
.bk-more-hidden { display: none !important; }

/* ============================================================
   basic squeeze for small screens (full mobile pass = phase 2)
   ============================================================ */

@media (max-width: 1199px) {
    .bk-cats-grid, .bk-hug-grid, .bk-sub-grid, .bk-contact-grid { grid-template-columns: repeat(2, 1fr); }
    .bk-cats-grid { max-width: 820px; }
}

/* ============================================================
   MOBILE (Figma 375pt frames) – must not affect desktop
   ============================================================ */

@media (max-width: 767px) {

    /* ---- shared shell ---- */
    .bk-page { padding-bottom: 46px; }
    .bk-container { padding: 0 20px; }

    .bk-header { padding: 20px 0 8px; }
    .bk-header .bk-logo img { height: 58px; }

    #menu_icon {
        top: 16px;
        right: 12px;
        width: 38px;
        height: 48px;
        gap: 5px;
    }
    #menu_icon span { width: 6px; height: 6px; }

    /* backdrop: top + bottom strips so the corner waves keep their
       proportions on a tall narrow screen (full stretch would smear them) */
    .bk-decor {
        background:
            url(../images/site/categories_background_top.png) center top / 100% auto no-repeat,
            url(../images/site/categories_background_bottom.png) center bottom / 100% auto no-repeat;
    }

    .bk-title { font-size: 28px; line-height: 1.3; }
    .bk-title-bar { width: 150px; height: 3px; margin-top: 12px; }
    .bk-sub { font-size: 17px; margin-top: 18px; padding: 0 4px; }

    .bk-scroll-btn { display: none; }

    /* ---- home ---- */
    body.bk-home { background: #fff; }

    .bk-home-wrap { min-height: 0; padding-bottom: 40px; }

    /* white header floats above the photo, rounded bottom corners;
       the photo tucks 32px underneath so it peeks through the corner notches */
    body.bk-home .bk-header {
        position: relative;
        z-index: 3;
        background: #fff;
        border-radius: 0 0 32px 32px;
        padding: 20px 0 14px;
    }

    .bk-home-bg {
        position: relative;
        inset: auto;
        margin-top: -32px;
        height: calc(82vw + 32px);
        border-radius: 0 0 32px 32px; /* photo has no top radius – it runs behind the header */
        overflow: hidden;
    }

    .bk-home-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        aspect-ratio: auto;
        background: none;
        padding: 36px 22px 6px;
        text-align: center;
    }

    .bk-home-card .bk-home-logo { display: none; } /* the logo is in the page header */

    .bk-home-titles { position: static; text-align: center; }
    .bk-home-card h1 { font-size: 28px; }
    .bk-home-card .bk-home-year { font-size: 56px; margin-top: 6px; }

    .bk-home-copy {
        position: static;
        width: auto;
        margin-top: 20px;
        text-align: center;
    }

    .bk-home-card .bk-home-divider {
        width: 92px;
        height: 4px;
        border-radius: 4px;
        background: var(--bk-grad);
        margin: 0 auto 20px;
    }

    .bk-home-card .bk-home-tagline {
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
        font-size: 16px;
    }

    .bk-home-cta {
        position: static;
        height: auto;
        margin-top: 30px;
        padding: 16px 46px;
        font-size: 18px;
        gap: 14px;
    }
    .bk-home-cta .bk-cta-arrow { width: 26px; height: 26px; }

    /* ---- categories ---- */
    .bk-cats-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 22px;
        margin-top: 36px;
    }

    .bk-cat-card { aspect-ratio: 355 / 500; border-radius: 26px; }
    .bk-cat-card .bk-cat-icon { width: 58px; height: 58px; }
    .bk-cat-card h4 { font-size: 24px; font-weight: 700; }
    .bk-cat-card .bk-cat-count { font-size: 17px; }

    .bk-show-more {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: fit-content;
        margin: 30px auto 40px;
        padding: 12px 34px;
        border-radius: 999px;
        border: 0;
        background: var(--bk-btn-blue);
        color: #fff;
        font-family: inherit;
        font-size: 17px;
        font-weight: 500;
        cursor: pointer;
    }
    .bk-show-more.bk-hidden { display: none; }
    .bk-show-more .bk-show-more-icon { display: inline-flex; width: 18px; height: 18px; }
    .bk-show-more svg { width: 100%; height: 100%; }

    /* ---- class page (no mobile frame – consistent adaptation) ---- */
    .bk-hero { padding: 36px 24px; border-radius: 32px; margin-top: 26px; }
    .bk-hero.bk-hero--noimg { padding: 36px 24px; }
    .bk-hero h1 { font-size: 27px; }
    .bk-hero p { font-size: 17px; margin-top: 12px; }
    .bk-hero .bk-hero-img { display: none; }

    .bk-back-row { margin-top: 24px; }
    .bk-back-link { font-size: 16px; gap: 9px; }
    .bk-back-link .bk-back-icon { width: 28px; height: 28px; }

    .bk-age-filter form { flex-wrap: wrap; border-radius: 24px; padding: 12px 18px; }

    .bk-hug-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
    .bk-hug-card .bk-hug-img { height: 190px; }
    .bk-hug-card h3 { font-size: 20px; }
    .bk-hug-meta li { font-size: 16.5px; }
    .bk-hug-more { font-size: 17px; padding: 13px 10px; }

    .bk-sub-grid { grid-template-columns: 1fr; }

    /* ---- content page ---- */
    .bk-content-wrap { margin: 34px auto 40px; }
    .bk-quote .bk-quote-line { max-width: 100%; }
    .bk-quote .bk-content-body { margin: 26px auto; }
    .bk-content-body { font-size: 16px; line-height: 1.6; max-width: 100%; }

    .bk-signature {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        margin-top: 34px;
    }
    .bk-signature .bk-signature-img { width: 150px; height: 150px; order: 0; }

    /* ---- contact ---- */
    .bk-contact-grid { grid-template-columns: 1fr; gap: 24px; margin: 40px auto; }
    /* Figma stacking order: location, mail, phone (then whatsapp) */
    .bk-cc-location { order: 1; }
    .bk-cc-mail { order: 2; }
    .bk-cc-phone { order: 3; }
    .bk-cc-wa { order: 4; }
    .bk-contact-card { padding: 12px 20px 30px; }
    .bk-contact-card .bk-contact-icon { width: 180px; height: 180px; }
    .bk-contact-card h3 { font-size: 23px; }
    .bk-contact-card p { font-size: 18px; }

    /* ---- side menu ---- */
    #menu_box {
        width: 88vw;
        max-width: 420px;
        padding: 18px 24px 34px 30px;
    }
    #menu_box .nav > li > a { font-size: 18px; padding: 15px 6px; }
    #menu_box .submenu li a { font-size: 16px; }

    /* ---- age flow ---- */
    .bk-ages-grid { gap: 16px; margin-top: 36px; }
    .bk-ages-grid article div { min-width: 140px; padding: 14px 24px; font-size: 17px; }
    .bk-ages-actions { flex-wrap: wrap; gap: 16px; margin: 40px auto; }
}
