/* Typefaces, self-hosted (no external font service): Inter for text and the administration, Plus Jakarta Sans for headings. Both SIL OFL 1.1. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500 800;font-display:swap;src:url(../fonts/plusjakartasans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500 800;font-display:swap;src:url(../fonts/plusjakartasans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--jcdc-button-radius:9px;--dark-line:rgb(255 255 255 / 12%);--dark-control-line:#757779;--dark-page:#191a1b;--dark-panel:#1d1e1f;--dark-raised:#212223;--jcdc-blue:#0d7aa8;--jcdc-deep:#133e57;--bs-primary:#0d7aa8;--bs-primary-rgb:13,122,168;--bs-body-font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--jcdc-heading-font:"Plus Jakarta Sans",Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--bs-body-color:#526572;--bs-body-bg:#fff}html{scroll-behavior:smooth}body{font-size:1.0625rem;line-height:1.65}h1,h2,h3,h4,h5,h6{color:var(--jcdc-deep);font-weight:700;line-height:1.2;letter-spacing:-.02em}h1{font-size:clamp(2.3rem,4.2vw,4.5rem)}h2{font-size:clamp(1.65rem,2.6vw,2.7rem)}a,button[form="jcdc-post"]{color:rgb(var(--bs-link-color-rgb));text-decoration:none}a:hover,button[form="jcdc-post"]:hover{color:rgb(var(--bs-link-hover-color-rgb))}img{max-width:100%;height:auto}.btn{border-radius:var(--jcdc-button-radius);padding:.8rem 1.4rem;font-weight:650}.btn-primary{--bs-btn-bg:#0d7aa8;--bs-btn-border-color:#0d7aa8;--bs-btn-hover-bg:#087aa9;--bs-btn-hover-border-color:#087aa9}.btn-outline-primary{--bs-btn-color:#0d7aa8;--bs-btn-border-color:#0d7aa8;--bs-btn-hover-bg:#0d7aa8;--bs-btn-hover-border-color:#0d7aa8}.site-header{position:sticky;top:0;z-index:1030;background:var(--bs-body-bg);border-bottom:1px solid #a9c6d32b}.navbar-brand img{width:150px;height:67px;object-fit:contain}.navbar{padding-block:14px}.nav-link{font-size:.88rem;font-weight:650;color:var(--jcdc-deep)}.site-header .nav-link.active{color:var(--jcdc-blue)!important}.nav-tools{display:flex;align-items:center;gap:14px}.language-switch{font-size:.8rem;font-weight:750}.theme-switch,.nav-dropdown-toggle{border:0;background:transparent;color:inherit}.nav-item.dropdown{display:flex;align-items:center}.hero{position:relative;margin:0 0 64px;overflow:hidden;color:#fff;background:#143c50}.hero .carousel-item{height:min(760px,78vw);min-height:560px}.hero-image,.hero-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-shade{background:linear-gradient(90deg,#123951dc 0%,#12395188 43%,#12395108 100%)}.hero-copy{position:relative;padding-block:100px;color:white}.hero-copy h1{color:white;max-width:800px;margin:18px 0 28px;font-size:clamp(2.125rem,4.6vw,4.25rem);font-weight:700;letter-spacing:-.03em;line-height:1.07}.eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--jcdc-blue)}.hero-copy .eyebrow{color:#ace4f8}.hero-controls{position:absolute;bottom:30px;right:40px;z-index:2;display:flex;align-items:center;gap:18px;color:white;font-size:.8rem}.hero-controls button{border:1px solid #ffffff80;background:#ffffff16;color:white;border-radius:var(--jcdc-button-radius);width:44px;height:44px;font-size:22px}.page-intro{padding-block:66px 45px}.page-intro h1{max-width:1000px;font-size:clamp(2.125rem,3.9vw,3.375rem)}.jcdc-content{padding-block:20px}.jcdc-content>.container-xxl,.jcdc-content>.container-fluid{max-width:1320px;margin:auto}.jcdc-content h1,.jcdc-content h2{margin-top:.4rem}.jcdc-content h4{font-size:1.45rem}.jcdc-content .room-item{height:auto!important;padding-bottom:24px;background:var(--bs-tertiary-bg);box-shadow:none!important;border:1px solid #8bb9c426;border-radius:18px!important}.room-item img{width:100%;aspect-ratio:1.6;object-fit:cover}.jcdc-content img{border-radius:16px}.jcdc-content iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:16px}.jcdc-content .accordion-button{background:var(--bs-tertiary-bg);box-shadow:none;padding:24px;color:var(--jcdc-deep)}.jcdc-content .accordion-item{border:1px solid #91b6c12b;margin-bottom:12px;border-radius:14px;overflow:hidden}.jcdc-content .section-title{font-size:.85rem;letter-spacing:.08em}.jcdc-content .img-fluid{height:auto}.jcdc-content .wow{visibility:visible!important;animation:none!important}.jcdc-content .col-sm-4 .border{border:0!important}.jcdc-content .col-sm-4>.border{background:#f2f8fa;border-radius:18px}.jcdc-content .col-sm-4>.border img{height:110px;width:110px!important;object-fit:contain}.jcdc-content .row{row-gap:24px}.contact-card{padding:32px;background:var(--bs-tertiary-bg);border:1px solid #89abb633;border-radius:24px}.form-control{padding:.75rem;border-radius:10px}.site-footer{margin-top:80px;background:#eff7f9;padding:65px 0 20px;color:#547380}.footer-logo{object-fit:contain;margin-bottom:24px}.site-footer h2{font-size:2rem;max-width:360px}.site-footer h3{font-size:1.1rem;margin-bottom:24px}.site-footer p,.site-footer a,.site-footer button[form="jcdc-post"]{font-size:.92rem}.social-links{display:flex;gap:12px;margin-top:26px}.social-links a,.social-links button[form="jcdc-post"]{border:1px solid #bad4df;border-radius:var(--jcdc-button-radius);width:40px;height:40px;display:grid;place-items:center}.location-map{border:0;width:100%;height:230px;border-radius:18px}.footer-bottom{border-top:1px solid #abcbd655;margin-top:50px;padding-top:24px;display:flex;justify-content:space-between;gap:20px;font-size:.8rem}.whatsapp-float,.whatsapp-float:hover{display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:50% 50% 50% 12%;background:#128c4a;color:#fff;font-size:28px;line-height:1;box-shadow:0 4px 14px rgb(0 0 0 / 22%)}
.whatsapp-float:hover,.whatsapp-float:focus-visible{background:#096b37;color:#fff}.btn-3{display:inline-block;background:var(--jcdc-blue);color:#fff;padding:12px 24px;border-radius:var(--jcdc-button-radius)}.custom-block{padding-block:40px}.custom-copy{line-height:1.8}.custom-hero{border-radius:20px;margin:20px;overflow:hidden}.custom-hero img{object-fit:cover}.custom-gallery img{aspect-ratio:1.5;object-fit:cover}.custom-prose{max-width:900px}.custom-items article{border-radius:18px}.custom-items h3{font-size:1.3rem}[data-bs-theme=dark]{--jcdc-blue:#38bdf8;--jcdc-blue-text:#7dd3fc;--jcdc-deep:#d9eff8;--bs-primary:#38bdf8;--bs-primary-rgb:56,189,248;--bs-link-color:#38bdf8;--bs-link-hover-color:#7dd3fc;--bs-body-color:#cbd5e1;--bs-body-bg:var(--dark-page);--bs-secondary-color:#94a3b8;--bs-secondary-bg:var(--dark-panel);--bs-tertiary-bg:var(--dark-raised);--bs-border-color:rgba(255,255,255,.12);--bs-body-bg-rgb:25,26,27;--bs-secondary-bg-rgb:29,30,31;--bs-tertiary-bg-rgb:33,34,35}[data-bs-theme=dark] .site-footer,[data-bs-theme=dark] .jcdc-content .col-sm-4>.border{background:var(--dark-panel);color:#c2d4dc;border:1px solid rgba(255,255,255,.08)!important}[data-bs-theme=dark] .bg-white{background-color:var(--dark-panel)!important;color:#cbd5e1!important}[data-bs-theme=dark] .bg-white p{color:#cbd5e1!important}[data-bs-theme=dark] .bg-white h1,[data-bs-theme=dark] .bg-white h2,[data-bs-theme=dark] .bg-white h3,[data-bs-theme=dark] .bg-white h4,[data-bs-theme=dark] .bg-white h5,[data-bs-theme=dark] .bg-white h6{color:#f0f6fa!important}@media(max-width:1199px){.nav-tools{padding:20px 0 10px}.navbar-nav{padding-top:15px}.nav-link{padding-block:10px}.nav-item.dropdown{flex-wrap:wrap}.dropdown-menu{width:100%}}@media(max-width:767px){.hero{margin-bottom:30px}.hero .carousel-item{height:660px;min-height:0}.hero-copy{padding:70px 28px}.hero-controls{right:24px;bottom:24px}.hero-shade{background:linear-gradient(90deg,#123951db,#12395155)}.page-intro{padding-block:38px 20px}.jcdc-content{padding-block:14px}.jcdc-content h2{font-size:1.8rem}.footer-bottom{flex-direction:column}.site-footer{margin-top:45px;padding-top:40px}.contact-card{padding:22px}.navbar{padding-inline:20px}.navbar-brand img{width:126px;height:56px}}
.custom-page--editorial .jcdc-content>.container,.custom-page--editorial .jcdc-content>.container-xxl{width:min(1180px,calc(100% - 48px));max-width:none}.custom-page--wide .jcdc-content>.container,.custom-page--wide .jcdc-content>.container-xxl{max-width:1600px}

/* Bootstrap's important pill utility can remain on saved CMS buttons. */
.btn.rounded-pill { border-radius: var(--jcdc-button-radius) !important; }


/* The public page owns the single gap between its final section and the footer. */
.custom-page { padding-block-end: clamp(28px, 4vw, 56px); }
.custom-page > :is(.jcdc-content, .jcdc-about__feature):last-child,
.jcdc-services:last-child > .jcdc-content:last-child,
.post-reading-main > :is(.jcdc-content, .custom-block):last-child {
    padding-block-end: 0;
}
.post-reading-main > .jcdc-content:last-child > .article-container:last-child > .article-prose:last-child > :last-child {
    margin-block-end: 0;
}
.custom-page > .jcdc-content:last-child > .testimonial:last-child {
    margin-block-end: 0 !important;
}

/* Brand token used by the shared interaction standards (problem dialog, wait card); white text stays readable on it in both themes. */
:root { --brand-red: #133e57; }

/* Photo preview (blueprint §4.8): inset over a dark, blurred backdrop on wide screens, full screen on phones. */
.photo-preview-trigger { cursor: zoom-in; }
.photo-preview-trigger:focus-visible { outline: 3px solid var(--jcdc-blue); outline-offset: 3px; }
#image-dialog { position: fixed; padding: 14px 18px 20px; border: 0; border-radius: 14px; max-width: min(1100px, 94vw); overflow: hidden; overscroll-behavior: contain; background: var(--bs-body-bg); color: var(--bs-body-color); }
#image-dialog::backdrop { background: rgb(8 20 27 / 84%); backdrop-filter: blur(6px); }
.image-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.image-dialog__count { font-size: .85rem; letter-spacing: .06em; }
#image-dialog .dialog-close { min-width: 44px; min-height: 44px; border: 0; background: none; color: inherit; font-size: 2rem; line-height: 1; }
.image-dialog__figure { margin: 0; }
#image-dialog img { display: block; max-width: 100%; max-height: 76vh; max-height: 76dvh; margin: auto; object-fit: contain; }
#image-dialog figcaption { margin-top: 12px; text-align: center; }
.image-dialog__step { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid #c2d4dc; border-radius: var(--jcdc-button-radius); background: var(--bs-body-bg); color: var(--jcdc-deep); font-size: 1.3rem; box-shadow: 0 6px 20px #0003; }
.image-dialog__step:hover, .image-dialog__step:focus-visible { background: var(--jcdc-blue); color: #fff; }
.image-dialog__step--prev { left: 12px; }
.image-dialog__step--next { right: 12px; }
.image-dialog__step[hidden] { display: none; }
@media (max-width: 575.98px) {
    #image-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 10px 12px 16px; border-radius: 0; }
    #image-dialog img { max-height: calc(100dvh - 150px); }
    .image-dialog__step { top: auto; bottom: 14px; transform: none; }
}

/* The header is sticky: its open menu scrolls inside itself when it is taller than the screen (landscape phones), so every item stays reachable. */
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { max-height: calc(100dvh - 5.75rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* The floating WhatsApp button never covers the last line of the footer. */
.site-footer { padding-bottom: max(1.6rem, 5.75rem) !important; }

/* Brand blue used as text meets AA on light surfaces; skip links, footer links, outline buttons and the menu icon stay readable in the dark theme. */
:root {
 --jcdc-blue-text: #0a6a94;
 --jcdc-brand-blue: #1795d2;
 --jcdc-brand-gray: #414143;
 --jcdc-orange: #f58322;
 --jcdc-orange-hover: #ffb471;
 --jcdc-on-orange: #24160d;
 --gallery-tab-selected: #0a6a94;
 --gallery-tab-selected-hover: #085677;
 --gallery-tab-on-selected: #fff;
 --jcdc-orange-text: #8a3c0d;
 --jcdc-orange-tint: #fff0e2;
}
[data-bs-theme="dark"] {
 --gallery-tab-selected: #8bdaf3;
 --gallery-tab-selected-hover: #b3ecfb;
 --gallery-tab-on-selected: #103548;
 --jcdc-orange-text: #ffba7a;
 --jcdc-orange-tint: #38281f;
}
.eyebrow, .section-title { color: var(--jcdc-blue-text); }
.text-primary { color: var(--jcdc-blue-text) !important; }
.hero-copy .text-primary, .bg-dark .text-primary { color: #9ad8f0 !important; }
.btn-outline-primary { --bs-btn-color: var(--jcdc-blue-text); --bs-btn-border-color: var(--jcdc-blue-text); --bs-btn-hover-bg: var(--jcdc-blue-text); --bs-btn-hover-border-color: var(--jcdc-blue-text); }
.btn-info { --bs-btn-bg: #0a6a94; --bs-btn-border-color: #0a6a94; --bs-btn-color: #fff; --bs-btn-hover-bg: #085a7e; --bs-btn-hover-border-color: #085a7e; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #064a69; --bs-btn-active-border-color: #064a69; --bs-btn-active-color: #fff; }
.skip-link { color: #0d1f2a; }
[data-bs-theme="dark"] .eyebrow, [data-bs-theme="dark"] .section-title, [data-bs-theme="dark"] .text-primary { color: #7dd3fc !important; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-bg: #0369a1; --bs-btn-border-color: #0369a1; --bs-btn-hover-bg: #075985; --bs-btn-hover-border-color: #075985; --bs-btn-color: #ffffff; }
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #38bdf8; --bs-btn-border-color: #38bdf8; --bs-btn-hover-color: #06202b; --bs-btn-hover-bg: #38bdf8; --bs-btn-hover-border-color: #38bdf8; }
[data-bs-theme="dark"] .site-header { background: var(--dark-page); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
[data-bs-theme="dark"] .site-header .nav-link { color: #cbd5e1; }
[data-bs-theme="dark"] .site-header .nav-link:hover { color: #38bdf8; }
[data-bs-theme="dark"] .site-header .nav-link.active { color: #38bdf8 !important; }
[data-bs-theme="dark"] .language-switch { color: #7dd3fc; }
[data-bs-theme="dark"] .theme-switch { color: #fde047; }
[data-bs-theme="dark"] .dropdown-menu { background-color: var(--dark-panel); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
[data-bs-theme="dark"] .dropdown-item { color: #cbd5e1; }
[data-bs-theme="dark"] .dropdown-item:hover, [data-bs-theme="dark"] .dropdown-item:focus { background-color: var(--dark-raised); color: #ffffff; }
[data-bs-theme="dark"] .site-footer { background: var(--dark-page); border-top: 1px solid rgba(255, 255, 255, 0.08); color: #94a3b8; }
[data-bs-theme="dark"] .site-footer h2, [data-bs-theme="dark"] .site-footer h3 { color: #f0f6fa; }
[data-bs-theme="dark"] .site-footer p { color: #94a3b8; }
[data-bs-theme="dark"] .site-footer a ,
[data-bs-theme="dark"] .site-footer button[form="jcdc-post"] { color: #7dd3fc; }
[data-bs-theme="dark"] .site-footer a:hover ,
[data-bs-theme="dark"] .site-footer button[form="jcdc-post"]:hover { color: #bae6fd; }
[data-bs-theme="dark"] .social-links a ,
[data-bs-theme="dark"] .social-links button[form="jcdc-post"] { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); color: #7dd3fc; }
[data-bs-theme="dark"] .social-links a:hover ,
[data-bs-theme="dark"] .social-links button[form="jcdc-post"]:hover { border-color: #38bdf8; background: rgba(56, 189, 248, 0.15); color: #ffffff; }
[data-bs-theme="dark"] .footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); color: #94a3b8; }
[data-bs-theme="dark"] .footer-bottom a ,
[data-bs-theme="dark"] .footer-bottom button[form="jcdc-post"] { color: #7dd3fc; }
[data-bs-theme="dark"] .footer-bottom a:hover ,
[data-bs-theme="dark"] .footer-bottom button[form="jcdc-post"]:hover { color: #bae6fd; }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: var(--dark-raised); border-color: rgba(255, 255, 255, 0.15); color: #f0f6fa; }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { background-color: var(--dark-raised); border-color: #38bdf8; color: #ffffff; box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.2); }
[data-bs-theme="dark"] .form-control::placeholder, [data-bs-theme="dark"] textarea.form-control::placeholder { color: #8daec0; opacity: 0.85; }
[data-bs-theme="dark"] .form-select option { background-color: var(--dark-raised); color: #f0f6fa; }
[data-bs-theme="dark"] .form-label { color: #e2eff7; }
[data-bs-theme="dark"] .form-text, [data-bs-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-bs-theme="dark"] .form-check-label { color: #cbd5e1; }
[data-bs-theme="dark"] .form-check-input { background-color: var(--dark-raised); border-color: rgba(255, 255, 255, 0.25); }
[data-bs-theme="dark"] .form-check-input:checked { background-color: #0369a1; border-color: #0369a1; }
[data-bs-theme="dark"] .card { background-color: var(--dark-panel); border-color: rgba(255, 255, 255, 0.1); color: var(--bs-body-color); }
[data-bs-theme="dark"] .card-header, [data-bs-theme="dark"] .card-footer { background-color: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); }
[data-bs-theme="dark"] .bg-light { background-color: var(--dark-panel) !important; color: var(--bs-body-color) !important; }
[data-bs-theme="dark"] .accordion-item { background-color: var(--dark-panel); border-color: rgba(255, 255, 255, 0.08); }
[data-bs-theme="dark"] .accordion-button { background-color: var(--dark-raised); color: #f0f6fa; }
[data-bs-theme="dark"] .accordion-button:not(.collapsed) { background-color: var(--dark-raised); color: #7dd3fc; }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1) brightness(1.5); }
[data-bs-theme="dark"] .accordion-body { background-color: var(--dark-panel); color: #cbd5e1; }
[data-bs-theme="dark"] .contact-card { background: var(--dark-panel); border-color: rgba(255, 255, 255, 0.08); }
[data-bs-theme="dark"] .badge-primary-subtle, [data-bs-theme="dark"] .badge-secondary-subtle, [data-bs-theme="dark"] .badge-info-subtle { background: rgba(56, 189, 248, 0.15) !important; color: #7dd3fc !important; border: 1px solid rgba(56, 189, 248, 0.25); }
/* Links are an AA-safe blue on light surfaces and light blue on the dark theme and on dark panels (embedded social posts included). */
:root { --bs-link-color-rgb: 10, 106, 148; --bs-link-hover-color-rgb: 8, 90, 126; }
[data-bs-theme="dark"] { --bs-link-color-rgb: 56, 189, 248; --bs-link-hover-color-rgb: 125, 211, 252; }
.bg-dark { color: #e9ecef; }
.bg-dark a ,
.bg-dark button[form="jcdc-post"] { color: #9ad8f0; }
/* In light theme, white cards inside a dark panel and testimonial cards maintain high-contrast dark typography */
:root:not([data-bs-theme="dark"]) .bg-dark .bg-white,
:root:not([data-bs-theme="dark"]) .bg-dark .bg-light,
.testimonial-item {
    background-color: #ffffff;
    color: #1e293b !important;
}
:root:not([data-bs-theme="dark"]) .bg-dark .bg-white p,
:root:not([data-bs-theme="dark"]) .bg-dark .bg-light p,
.testimonial-item p {
    color: #334155 !important;
}
:root:not([data-bs-theme="dark"]) .bg-dark .bg-white .blockquote,
:root:not([data-bs-theme="dark"]) .bg-dark .bg-light .blockquote,
.testimonial-item .blockquote {
    color: #0f172a !important;
    font-weight: 700;
}
:root:not([data-bs-theme="dark"]) .bg-dark .bg-white a,
:root:not([data-bs-theme="dark"]) .bg-dark .bg-white button[form="jcdc-post"],
:root:not([data-bs-theme="dark"]) .bg-dark .bg-light a,
:root:not([data-bs-theme="dark"]) .bg-dark .bg-light button[form="jcdc-post"],
.testimonial-item a,
.testimonial-item button[form="jcdc-post"] {
    color: rgb(var(--bs-link-color-rgb));
}
:root:not([data-bs-theme="dark"]) .bg-dark .bg-white .text-primary,
:root:not([data-bs-theme="dark"]) .bg-dark .bg-light .text-primary,
.testimonial-item .text-primary,
.testimonial-item .fa-quote-right {
    color: var(--jcdc-blue) !important;
}

/* In dark theme, panels, white cards, and testimonial items maintain high-contrast light typography */
[data-bs-theme="dark"] .bg-dark { background-color: var(--dark-page) !important; border: 1px solid rgba(255, 255, 255, 0.08); }
[data-bs-theme="dark"] .bg-dark .bg-white,
[data-bs-theme="dark"] .bg-dark .bg-light,
[data-bs-theme="dark"] .testimonial-item { background-color: var(--dark-panel) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); color: #f1f5f9 !important; }
[data-bs-theme="dark"] .bg-dark .bg-white p,
[data-bs-theme="dark"] .bg-dark .bg-light p,
[data-bs-theme="dark"] .testimonial-item p { color: #cbd5e1 !important; }
[data-bs-theme="dark"] .bg-dark .bg-white .blockquote,
[data-bs-theme="dark"] .testimonial-item .blockquote { color: #f8fafc !important; font-weight: 700; }
[data-bs-theme="dark"] .bg-dark .bg-white a,
[data-bs-theme="dark"] .bg-dark .bg-white button[form="jcdc-post"],
[data-bs-theme="dark"] .bg-dark .bg-light a,
[data-bs-theme="dark"] .bg-dark .bg-light button[form="jcdc-post"],
[data-bs-theme="dark"] .testimonial-item a,
[data-bs-theme="dark"] .testimonial-item button[form="jcdc-post"] { color: #7dd3fc !important; }
[data-bs-theme="dark"] .bg-dark .bg-white .text-primary,
[data-bs-theme="dark"] .bg-dark .bg-light .text-primary,
[data-bs-theme="dark"] .testimonial-item .text-primary,
[data-bs-theme="dark"] .testimonial-item .fa-quote-right { color: #38bdf8 !important; opacity: 0.9; }
.bg-dark > .row { margin-inline: 0; padding-inline: .25rem; }
.testimonial-carousel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.testimonial-item { display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem 1.75rem 2.25rem; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); }
.testimonial-item p { line-height: 1.6; margin-bottom: 1.25rem; }
.testimonial-item .blockquote { margin: 0; margin-top: auto; padding-right: 3.5rem; font-size: 1rem; font-weight: 700; }

/* Content-height slides retain the full title and action at enlarged text. */
.hero .carousel-item{height:auto;max-height:none}.hero-copy,.hero-content{min-width:0;max-width:100%;height:auto}.hero h1,.hero h2,.hero .eyebrow,.hero-copy p,.hero-content p{overflow-wrap:anywhere}.hero-controls{position:relative;bottom:auto;right:auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:18px;padding:20px 28px}.hero-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;width:auto;height:auto;padding:.4em;line-height:1}.hero .btn,.hero .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:991px){.hero .carousel-item{height:auto;max-height:none;min-height:0}.hero-image{display:block;position:static;width:100%;height:clamp(180px,45vw,320px);object-fit:cover}.hero-shade{display:none}.hero-copy,.hero-content{padding-top:32px;padding-bottom:32px}.hero-controls{position:relative;bottom:auto;right:auto;padding:20px 24px}.hero h1,.hero h2{max-width:100%;overflow-wrap:anywhere}}

/* The WhatsApp button stays a fixed 52 px float on phones too (it was turned into an inline block after the footer). */
@media(max-width:991px){.hero-controls>span{min-width:0;overflow-wrap:anywhere}}

/* Published legacy cards recompose rather than crop at large mobile text. */
.jcdc-content,.site-footer{overflow-wrap:anywhere}.jcdc-content .row>*,.site-footer .row>*,.jcdc-content .d-flex>*{min-width:0}.jcdc-content .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}.jcdc-content .tiktok-embed{min-width:0!important;max-width:100%!important}.testimonial-item{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){.jcdc-content .room-item .d-flex{flex-wrap:wrap;gap:12px}.jcdc-content .room-item .position-relative>small.position-absolute{position:static!important;display:inline-block;transform:none!important;max-width:calc(100% - 48px);margin:16px 24px 0!important;white-space:normal}.jcdc-content .row,.site-footer .row{--bs-gutter-x:24px}.jcdc-content .room-item h4{max-width:100%;overflow-wrap:anywhere}}
.jcdc-content .row.g-0,.jcdc-content .row.gx-0{--bs-gutter-x:0}.jcdc-content>.row{margin-inline:0}@media(max-width:991.98px){.contact-section>.row{--bs-gutter-x:1.5rem}}

/* Home slider controls: edge arrows, clickable dots and a pause button (like KPM). */
.hero{overflow:hidden}
.hero-arrow{position:absolute;z-index:25;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgb(255 255 255 / 55%);border-radius:var(--jcdc-button-radius);background:rgb(20 60 80 / 45%);color:#fff;backdrop-filter:blur(4px);cursor:pointer;transition: background .2s,transform .2s, box-shadow .15s ease, translate .15s ease}
.hero-arrow > *{pointer-events:none}
.hero-arrow--prev{left:16px}
.hero-arrow--next{right:16px}
.hero-arrow:hover,.hero-arrow:focus-visible{background:var(--jcdc-blue);border-color:var(--jcdc-blue);color:#fff}
.hero-arrow:focus-visible,.hero-dots button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hero-nav{position:absolute;z-index:25;left:0;right:0;bottom:22px;display:flex;align-items:center;justify-content:center;gap:6px;pointer-events:none}
.hero-nav>*{pointer-events:auto}
.hero .hero-dots{position:static;display:flex;margin:0;padding:0;gap:0}
.hero .hero-dots button{box-sizing:border-box;flex:none;width:32px;height:32px;margin:0;padding:0;border:0;background:none;opacity:1;text-indent:0;position:relative;cursor:pointer}
.hero .hero-dots button::before{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:5px;background:rgb(255 255 255 / 60%);transform:translate(-50%,-50%);transition:width .25s,background .25s}
.hero .hero-dots button.active::before{width:28px;background:var(--jcdc-blue)}
.hero .hero-dots button:hover::before{background:#fff}
@media(min-width:992px){.hero-copy{padding-bottom:84px}.hero .hero-copy{max-width:1320px;padding-inline:clamp(30px,calc(84px - (100vw - 1320px)/2),84px)}}
@media(max-width:991px){
 .hero-arrow{top:calc(clamp(180px,45vw,320px)/2);width:40px;height:40px}
 .hero-arrow--prev{left:10px}.hero-arrow--next{right:10px}
 .hero-nav{position:static;padding:0 24px 20px;background:#143c50}
 .hero-copy{padding-bottom:12px}
}


/* Editorial Blog & News/Press-Release Layout */
.custom-page {
    --public-rail-width: 100%;
    --public-rail-limit: 1320px;
    --public-rail-inset: 30px;
}
.custom-page:has(> .gallery-page-container) {
    --public-rail-width: 82%;
    --public-rail-limit: 1400px;
    --public-rail-inset: 0px;
}
.custom-page:has(> .quiz-page-wrapper) {
    --public-rail-width: 82%;
    --public-rail-limit: 1240px;
    --public-rail-inset: 0px;
}
.custom-page:has(> .article-feed-wrapper) { --public-rail-width: 80%; --public-rail-limit: none; }
.custom-page:has(> .article-hero) {
    --public-rail-width: calc(100% - 48px);
    --public-rail-limit: 1180px;
    --public-rail-inset: 12px;
}
@media (max-width: 1199.98px) {
    .custom-page:has(> :is(.quiz-page-wrapper, .article-feed-wrapper, .article-hero)) {
        --public-rail-width: 90%;
        --public-rail-limit: none;
    }
}
@media (max-width: 767.98px) {
    .custom-page { --public-rail-inset: 22px; }
    .custom-page:has(> .quiz-page-wrapper) { --public-rail-width: 100%; --public-rail-inset: 18px; }
    .custom-page:has(> :is(.article-feed-wrapper, .article-hero)) {
        --public-rail-width: 100%;
        --public-rail-inset: 16px;
    }
}
.jcdc-breadcrumb, .career-page-wrapper, .gallery-page-container, .quiz-page-wrapper,
.jcdc-service-detail > .jcdc-content > :is(.container, .container-xxl, .container-fluid) {
    width: var(--public-rail-width);
    max-width: var(--public-rail-limit);
    margin-inline: auto;
    padding-inline: var(--public-rail-inset);
}
.jcdc-breadcrumb {
    padding-block: 6px;
    color: var(--bs-body-color);
    font-size: .9rem;
    line-height: 1.5;
}
.jcdc-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.jcdc-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-inline-size: 44px;
}
.jcdc-breadcrumb li + li:not([aria-current]) { min-inline-size: 58px; }
.jcdc-breadcrumb li + li::before {
    content: "";
    flex: 0 0 5px;
    height: 5px;
    border: solid currentColor;
    border-width: 1px 1px 0 0;
    rotate: 45deg;
}
.jcdc-breadcrumb a,
.jcdc-breadcrumb [aria-current="page"] > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-block: max(0px, calc(22px - .75em));
}
.jcdc-breadcrumb a {
    min-height: 44px;
    min-width: 44px;
    color: var(--jcdc-blue-text);
    font-weight: 650;
}
[data-bs-theme="dark"] .jcdc-breadcrumb a { color: var(--jcdc-blue); }
.jcdc-breadcrumb a:hover { color: var(--jcdc-deep); }
.jcdc-breadcrumb [aria-current="page"] {
    flex: 1 1 0;
    min-inline-size: min(32%, 7ch);
    font-weight: 600;
}
.jcdc-breadcrumb [aria-current="page"] > span { min-width: 0; }
main > .jcdc-breadcrumb + :is(.page-intro, .jcdc-about__intro, .article-hero),
main > .jcdc-breadcrumb + :is(.career-page-wrapper, .quiz-page-wrapper, .gallery-page-container, .appointment-page-wrapper),
main > .jcdc-breadcrumb + :is(.jcdc-services, .jcdc-service-detail) > .page-intro {
    padding-block-start: clamp(14px, 2vw, 26px);
}

.custom-page--editorial{background-color:var(--bs-body-bg)}
.custom-page--editorial .article-hero{width:var(--public-rail-width);max-width:var(--public-rail-limit);padding-inline:var(--public-rail-inset);margin-inline:auto;padding-top:clamp(36px,5vw,56px);padding-bottom:18px}
.custom-page--editorial .badge-article-category{display:inline-flex;align-items:center;gap:7px;padding:6px 15px;border-radius:999px;font-size:.875rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;background:rgba(13,122,168,.1);color:var(--jcdc-blue);border:1px solid rgba(13,122,168,.2);margin-bottom:18px}
.custom-page--editorial .article-headline{font-size:clamp(1.85rem,3.3vw,2.7rem);font-weight:750;line-height:1.2;letter-spacing:-.02em;color:var(--jcdc-deep);margin:0;max-width:min(100%,32em)}
.custom-page--editorial .jcdc-content{padding-top:0;padding-bottom:clamp(48px,6vw,84px)}
.custom-page--editorial .article-container{max-width:100%;margin-inline:auto}
.custom-page--editorial .article-meta-bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;padding:4px 0 20px;border-bottom:1px solid rgba(13,122,168,.16);margin-bottom:28px;font-size:.9rem;color:#617785}
.custom-page--editorial .article-meta-item{display:inline-flex;align-items:center;gap:8px}
.custom-page--editorial .article-meta-item i{color:var(--jcdc-blue)}
.custom-page--editorial .article-meta-link{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:6px;background:rgba(13,122,168,.08);color:var(--jcdc-blue);font-weight:600;font-size:.84rem;text-decoration:none;transition:background .15s ease,color .15s ease}
.custom-page--editorial .article-meta-link:hover{background:var(--jcdc-blue);color:#fff}
.custom-page--editorial .article-featured-media{margin:0 0 32px;overflow:hidden;border-radius:16px;background:#0f2736}
.custom-page--editorial .article-featured-image{width:100%;max-height:460px;object-fit:cover;display:block}
.custom-page--editorial .article-featured-placeholder{margin:0 0 36px;border-radius:20px;box-shadow:0 10px 30px rgba(19,62,87,.08);background:linear-gradient(135deg,#0d7aa8 0%,#10384f 100%);color:#fff;padding:clamp(28px,4.5vw,48px) clamp(24px,5vw,52px);position:relative;overflow:hidden;user-select:none;display:flex;flex-direction:column;justify-content:space-between;min-height:260px}
.custom-page--editorial .article-featured-placeholder::before{content:'';position:absolute;top:-40px;right:-40px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.16) 0%,transparent 70%);pointer-events:none}
.custom-page--editorial .article-featured-placeholder .placeholder-graphic{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2;margin-bottom:24px}
.custom-page--editorial .article-featured-placeholder .placeholder-brand{font-size:clamp(1.75rem,3.2vw,2.5rem);font-weight:900;letter-spacing:-.025em;color:#fff;opacity:.95}
.custom-page--editorial .article-featured-placeholder .placeholder-icon{font-size:clamp(2.4rem,4.2vw,3.6rem);color:#7dd3fc;filter:drop-shadow(0 4px 12px rgba(0,0,0,.28))}
.custom-page--editorial .article-featured-placeholder .placeholder-tag{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:6px 14px;border-radius:8px;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);color:#fff;border:1px solid rgba(255,255,255,.28);align-self:flex-start;position:relative;z-index:2}
.custom-page--editorial .article-prose{font-size:1.0625rem;line-height:1.8;font-weight:400;color:var(--bs-body-color)}
.custom-page--editorial .article-prose p{margin-bottom:1.5rem}
.custom-page--editorial .article-prose .article-lead{font-size:1.2rem;line-height:1.7;color:var(--jcdc-deep);font-weight:400}
.custom-page--editorial .article-prose h4{font-size:1.3rem;line-height:1.3;margin-top:2rem;margin-bottom:.8rem;color:var(--jcdc-deep);font-weight:700}
.custom-page--editorial .article-prose blockquote{position:relative;padding:24px 28px;margin:32px 0;border-left:4px solid var(--jcdc-blue);background:rgba(13,122,168,.06);border-radius:0 16px 16px 0;font-style:italic;font-size:1.12rem;color:var(--jcdc-deep)}
.custom-page--editorial .article-prose blockquote p:last-child{margin-bottom:0}
.custom-page--editorial .article-prose ol,.custom-page--editorial .article-prose ul{margin:1.5rem 0 2rem;padding-left:1.6rem}
.custom-page--editorial .article-prose li{margin-bottom:.75rem}
.custom-page--editorial .article-footer{margin-top:44px;padding-top:32px;border-top:1px solid rgba(13,122,168,.16)}
.custom-page--editorial .article-source-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#f2f8fa;border:1px solid rgba(13,122,168,.18);border-radius:16px;margin-bottom:32px}
.custom-page--editorial .article-source-info{display:flex;align-items:center;gap:12px;font-size:.94rem}
.custom-page--editorial .article-source-info i{font-size:1.3rem;color:var(--jcdc-blue)}
.custom-page--editorial .article-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.custom-page--editorial .article-consultation-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;margin-top:36px;padding:28px 32px;border-radius:20px;background:linear-gradient(135deg,#133e57 0%,#0d7aa8 100%);color:#fff}
.custom-page--editorial .article-consultation-banner h4{color:#fff;margin:0 0 6px;font-size:1.3rem}
.custom-page--editorial .article-consultation-banner p{color:#e0f2f8;margin:0;font-size:.95rem}
[data-bs-theme=dark] .custom-page--editorial{background-color:var(--bs-body-bg)}
[data-bs-theme=dark] .custom-page--editorial .article-headline,[data-bs-theme=dark] .custom-page--editorial .article-prose h3,[data-bs-theme=dark] .custom-page--editorial .article-prose h4,[data-bs-theme=dark] .custom-page--editorial .article-prose .article-lead{color:var(--jcdc-deep)}
[data-bs-theme=dark] .custom-page--editorial .article-meta-bar{border-bottom-color:rgba(255,255,255,.1);color:#8faec0}
[data-bs-theme=dark] .custom-page--editorial .article-prose blockquote{background:rgba(13,122,168,.14);color:#d9eff8}
[data-bs-theme=dark] .custom-page--editorial .article-source-card{background:var(--dark-panel);border-color:rgba(255,255,255,.08)}
[data-bs-theme=dark] .custom-page--editorial .article-footer{border-top-color:rgba(255,255,255,.1)}
[data-bs-theme=dark] .custom-page--editorial .article-featured-placeholder{background:linear-gradient(135deg,#094b68 0%,var(--dark-panel) 100%);border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 32px rgba(0,0,0,.35)}
[data-bs-theme=dark] .custom-page--editorial .article-featured-placeholder .placeholder-icon{color:#93c5fd}
@media(max-width:767px){
 .custom-page--editorial .article-meta-link{margin-left:0;width:100%;justify-content:center}
 .custom-page--editorial .article-source-card{flex-direction:column;align-items:flex-start}
 .custom-page--editorial .article-actions{flex-direction:column;align-items:stretch}
 .custom-page--editorial .article-actions .btn{text-align:center}
 .custom-page--editorial .article-consultation-banner{padding:22px;flex-direction:column;align-items:flex-start}
 .custom-page--editorial .article-consultation-banner .btn{width:100%;text-align:center}
}

/* 3-Column Reading Layout (adapted from hanungnugroho.com post-reading-layout) */
.post-reading-layout{display:grid;grid-template-columns:56px minmax(0,1fr) minmax(250px,300px);gap:clamp(24px,3vw,44px);align-items:start;margin-top:24px;width:var(--public-rail-width)!important;max-width:var(--public-rail-limit)!important;padding-inline:var(--public-rail-inset)!important;margin-inline:auto!important}
.post-share-rail{position:sticky;top:100px;display:grid;justify-items:center;gap:10px}
.post-share-rail>span{font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;color:var(--bs-secondary-color,#708492);font-weight:800}
.post-share-rail a,
.post-share-rail button[form="jcdc-post"],.post-share-rail button{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(13,122,168,.25);border-radius:var(--jcdc-button-radius);background:var(--bs-body-bg);color:var(--jcdc-deep);font-size:1rem;font-weight:800;padding:0;text-decoration:none;cursor:pointer;transition: border-color .2s,color .2s,background .2s,transform .2s, box-shadow .15s ease, translate .15s ease}
.post-share-rail a:hover,
.post-share-rail button[form="jcdc-post"]:hover,.post-share-rail button:hover,.post-share-rail a:focus-visible,.post-share-rail button[form="jcdc-post"]:focus-visible,.post-share-rail button:focus-visible{border-color:var(--jcdc-blue);color:#fff;background:var(--jcdc-blue);transform:translateY(-2px)}
.post-share-rail .share-btn-whatsapp{color:#25d366;border-color:rgba(37,211,102,.35)}
.post-share-rail .share-btn-whatsapp:hover,.post-share-rail .share-btn-whatsapp:focus-visible{background:#25d366;border-color:#25d366;color:#fff}
.post-share-rail .share-btn-linkedin{color:#0a66c2;border-color:rgba(10,102,194,.35)}
.post-share-rail .share-btn-linkedin:hover,.post-share-rail .share-btn-linkedin:focus-visible{background:#0a66c2;border-color:#0a66c2;color:#fff}
.post-share-rail i{font-size:1.05rem;line-height:1}
.post-reading-main{min-width:0;max-width:100%;width:100%}
.post-related-rail{position:sticky;top:100px;padding:24px;border-radius:16px;background:#f4f9fb;border:1px solid rgba(13,122,168,.16);color:var(--bs-body-color)}
.post-related-rail .rail-section+.rail-section{margin-top:24px;padding-top:24px;border-top:1px solid rgba(13,122,168,.16)}
.post-related-rail .rail-section .eyebrow{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--jcdc-blue);font-weight:800;margin-bottom:8px;display:block}
.post-related-rail .rail-section h2{font-size:1.3rem;line-height:1.2;color:var(--jcdc-deep);font-weight:700;margin-bottom:14px}
.post-related-rail ol{list-style:none;counter-reset:rail-counter;margin:0;padding:0}
.post-related-rail li{counter-increment:rail-counter;border-top:1px solid rgba(13,122,168,.14)}
.post-related-rail li a,
.post-related-rail li button[form="jcdc-post"]{display:grid;grid-template-columns:26px 1fr;gap:4px 10px;padding:12px 0;color:inherit;text-decoration:none;transition:color .2s}
.post-related-rail li a:before,
.post-related-rail li button[form="jcdc-post"]:before{content:counter(rail-counter,decimal-leading-zero);grid-row:1/3;color:var(--jcdc-blue);font-size:.78rem;font-weight:800;padding-top:2px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.post-related-rail li strong{font-size:.92rem;line-height:1.4;font-weight:650;color:var(--jcdc-deep);transition:color .2s}
.post-related-rail li small{font-size:.875rem;color:#617785;margin-top:2px}
.post-related-rail li a:hover strong,
.post-related-rail li button[form="jcdc-post"]:hover strong{color:var(--jcdc-blue)}
.post-related-rail .rail-all-stories{display:inline-flex;margin-top:18px;color:var(--jcdc-blue);font-size:.86rem;font-weight:700;text-decoration:none;transition:color .2s}
.post-related-rail .rail-all-stories:hover{color:var(--jcdc-deep)}
:where(.jcdc-content, .article-prose, .custom-copy) p a:not(.btn) { font-weight: 650; }

@media(max-width:1099px){
 .post-reading-layout{grid-template-columns:minmax(0,1fr);max-width:100%;margin-inline:auto}
 .post-share-rail{position:static;display:flex;justify-content:flex-start;gap:10px;margin-bottom:16px}
 .post-share-rail>span{align-self:center;margin-right:6px}
 .post-related-rail{position:static;margin-top:36px}
}

/* Articles Feed Header & Layout (adapted from hanungnugroho.com wj-journal-*) */
.article-feed-wrapper{width:var(--public-rail-width)!important;max-width:var(--public-rail-limit)!important;padding-inline:var(--public-rail-inset)!important;margin-inline:auto!important;padding-top:clamp(32px,5vw,56px)}
.article-feed-header{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:clamp(24px,4vw,60px);align-items:center;padding-bottom:38px;border-bottom:1px solid rgba(13,122,168,.16)}
.article-feed-intro .eyebrow{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--jcdc-blue);font-weight:800;display:flex;align-items:center;gap:8px;margin-bottom:16px}
.article-small-cross{font-size:1.25rem;line-height:1}
.article-feed-title{font-size:clamp(2.2rem,4.5vw,3.375rem);font-weight:800;line-height:1.06;letter-spacing:-.03em;color:var(--jcdc-deep);margin:0 0 18px}
.article-feed-lead-text{font-size:1.15rem;line-height:1.7;color:var(--bs-secondary-color,#506573);margin:0;max-width:640px}

/* Decorative Notebook Art */
.article-feed-art{position:relative;min-width:0;aspect-ratio:1.2;isolation:isolate}
.article-art-orbit{position:absolute;width:90%;aspect-ratio:1;border:1px solid rgba(13,122,168,.25);border-radius:50%;left:3%;top:-2%;transform:scaleY(.82)}
.article-art-orbit::before{content:'';position:absolute;inset:12%;border:1px dashed rgba(13,122,168,.2);border-radius:50%}
.article-art-sun{position:absolute;right:4%;top:0;font-size:75px;line-height:1;color:var(--jcdc-orange);animation:article-spark-turn 40s linear infinite}
.article-art-notebook{position:absolute;left:15%;top:12%;width:62%;height:80%;background:var(--bs-body-bg);border:1px solid rgba(13,122,168,.22);border-radius:4px 16px 16px 4px;padding:22px 20px 16px 26px;box-shadow:7px 8px 0 rgba(13,122,168,.1),0 16px 25px rgba(19,62,87,.08);transform:rotate(-8deg);display:flex;flex-direction:column}
.article-art-notebook::before{content:'';position:absolute;left:12px;top:0;bottom:0;border-left:1px solid rgba(13,122,168,.18)}
.article-notebook-label{font-size:.55rem;letter-spacing:.12em;text-transform:uppercase;color:var(--bs-secondary-color,#708492);font-weight:750}
.article-notebook-title{font-size:clamp(1.2rem,1.8vw,1.6rem);font-weight:800;letter-spacing:-.025em;line-height:1.1;color:var(--jcdc-deep);margin:16px 0 14px}
.article-notebook-lines{display:grid;gap:6px}
.article-notebook-lines i{width:85%;height:1px;background:rgba(13,122,168,.2)}
.article-notebook-lines i:nth-child(2){width:92%}
.article-notebook-lines i:last-child{width:60%}
.article-notebook-footer{display:flex;justify-content:space-between;align-items:center;font-size:1.15rem;font-weight:800;letter-spacing:-.03em;margin-top:auto;color:var(--jcdc-deep);line-height:1}
.article-notebook-footer>span{font-size:1.3rem;font-weight:400;color:var(--jcdc-blue)}
.article-art-scribble{position:absolute;left:-3%;bottom:3%;width:42%;color:var(--jcdc-blue);transform:rotate(-14deg)}
.article-art-note{position:absolute;right:0;bottom:6%;font-size:.78rem;line-height:1.35;letter-spacing:-.02em;color:var(--bs-secondary-color,#708492);transform:rotate(8deg)}
@keyframes article-spark-turn{to{transform:rotate(360deg)}}

/* Articles Toolbar (Category Filter + Live Search) */
.article-feed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 0;border-bottom:1px solid rgba(13,122,168,.16);flex-wrap:wrap}
.article-category-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.article-category-bar button{display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(13,122,168,.25);padding:9px 18px;border-radius:var(--jcdc-button-radius);background:var(--bs-body-bg);font-size:.85rem;font-weight:600;color:var(--bs-secondary-color,#506573);cursor:pointer;transition: border-color .2s,background .2s,color .2s, box-shadow .15s ease, translate .15s ease}
.article-category-bar button:hover{border-color:var(--jcdc-blue);color:var(--jcdc-blue)}
.article-category-bar button.active{background:var(--jcdc-deep);border-color:var(--jcdc-deep);color:#fff}
.article-category-bar .badge-dot{color:var(--jcdc-blue);font-size:1rem;line-height:1}
.article-category-bar button.active .badge-dot{color:#55c5ea}

.article-feed-search{width:min(360px,100%)}
.article-search-input-shell{display:flex;align-items:center;gap:10px;border:1px solid rgba(13,122,168,.25);border-radius:50px;background:var(--bs-body-bg);padding:4px 14px;transition:border-color .2s,box-shadow .2s}
.article-search-input-shell:focus-within{border-color:var(--jcdc-blue);box-shadow:0 0 0 3px rgba(13,122,168,.15)}
.article-search-input-shell .search-icon{color:var(--jcdc-blue);font-size:.9rem}
.article-search-input-shell input{border:0;background:none;color:inherit;font-size:.88rem;width:100%;outline:none;padding:6px 0}
.article-search-input-shell .search-clear-btn{border:0;background:none;color:var(--bs-secondary-color,#708492);font-size:1.2rem;line-height:1;cursor:pointer;padding:0}

/* Topic Notice Pill */
.article-topic-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-radius:12px;background:rgba(13,122,168,.08);border:1px solid rgba(13,122,168,.2);margin-top:20px;font-size:.88rem;color:var(--jcdc-deep)}
.article-topic-notice .btn-clear-topic{border:0;background:none;color:var(--jcdc-blue);font-weight:700;cursor:pointer}

/* Feed Status & Count */
.article-feed-status{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:32px 0 24px}
.article-feed-status .feed-status-heading{font-size:clamp(1.4rem,2.2vw,1.85rem);font-weight:750;letter-spacing:-.03em;color:var(--jcdc-deep);margin:0}
.article-feed-status .results-count{font-size:.84rem;color:var(--bs-secondary-color,#708492);margin:0;font-weight:600}

/* Feed Layout (Main Feed + Reading Rail) */
.article-feed-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(32px,4vw,64px);align-items:start}
.article-feed-main{min-width:0}

/* Story Cards */
.article-card{color:inherit;transition:transform .2s}
.article-card .story-image{display:block;border-radius:16px;overflow:hidden;position:relative;background:rgba(13,122,168,.06);text-decoration:none}
.article-card .story-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.article-card .story-image:hover img{transform:scale(1.04)}
.story-open-pill{position:absolute;bottom:14px;right:14px;width:36px;height:36px;display:grid;place-items:center;background:#fff;color:var(--jcdc-deep);border-radius:var(--jcdc-button-radius);font-size:.9rem;font-weight:800;box-shadow:0 6px 18px rgba(0,0,0,.15);opacity:0;transform:translateY(6px);transition: opacity .25s,transform .25s, box-shadow .15s ease, translate .15s ease}
.article-card .story-image:hover .story-open-pill,.article-card .story-image:focus-visible .story-open-pill{opacity:1;transform:translateY(0)}
.story-placeholder{display:grid;place-items:center;min-height:160px;width:100%;background:linear-gradient(135deg,#133e57,#0d7aa8);color:#fff;font-size:2rem;font-weight:800;position:relative;overflow:hidden}
.story-placeholder>span{position:relative;z-index:1;letter-spacing:-.03em}

.article-card .post-meta{display:flex;align-items:center;gap:12px;font-size:.78rem;font-weight:600;color:var(--bs-secondary-color,#708492);margin:16px 0 10px}
.article-card .category-tag{color:var(--jcdc-blue);text-transform:uppercase;letter-spacing:.08em;font-weight:800;font-size:.72rem}
.article-card .story-title{font-weight:750;letter-spacing:-.03em;margin:0 0 10px;line-height:1.24}
.article-card .story-title a,
.article-card .story-title button[form="jcdc-post"]{color:inherit;text-decoration:none;transition:color .2s}
.article-card .story-title a:hover,
.article-card .story-title button[form="jcdc-post"]:hover{color:var(--jcdc-blue)}
.article-card .story-excerpt{font-size:.94rem;line-height:1.65;color:var(--bs-secondary-color,#506573);margin:0 0 14px}
.article-card .story-read-link{display:inline-flex;align-items:center;gap:6px;font-size:.86rem;font-weight:700;color:var(--jcdc-blue);text-decoration:none;transition:gap .2s}
.article-card .story-read-link:hover{gap:10px}

/* Lead Story Card */

/* News Feed Rows */
.article-feed-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.article-feed-row{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto auto 1fr auto;column-gap:28px;align-items:start;padding:24px 0;border-bottom:1px solid rgba(13,122,168,.14)}
.article-feed-row .story-image{grid-column:1;grid-row:1/5;aspect-ratio:16/10;margin:0}
.article-feed-row .post-meta{grid-column:2;grid-row:1;margin:0 0 6px}
.article-feed-row .story-title{grid-column:2;grid-row:2;font-size:clamp(1.15rem,1.4vw,1.35rem);margin:0 0 8px}
.article-feed-row .story-excerpt{grid-column:2;grid-row:3;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-feed-row .story-read-link{grid-column:2;grid-row:4}

/* Empty State */
.article-empty-state{display:flex;gap:24px;align-items:center;padding:36px;border-radius:20px;border:1px solid rgba(13,122,168,.2);background:rgba(13,122,168,.04);margin:24px 0}
.article-empty-state .empty-symbol{font-size:3rem;line-height:1;color:var(--jcdc-blue)}
.article-empty-state h3{font-size:1.35rem;margin:0 0 6px;color:var(--jcdc-deep);font-weight:750}
.article-empty-state p{font-size:.92rem;color:var(--bs-secondary-color,#506573);margin:0 0 14px}

/* Sticky Reading Rail */
.article-reading-rail{position:sticky;top:100px;min-width:0}
.article-rail-note{padding:26px 24px;border-radius:20px;background:#133e57;color:#fff;position:relative;overflow:hidden}
.article-rail-note .eyebrow{font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:#55c5ea;font-weight:800;margin-bottom:28px;display:block}
.article-rail-note .rail-symbol{position:absolute;right:20px;top:20px;font-size:3.5rem;line-height:1;color:rgba(255,255,255,.15);font-weight:300}
.article-rail-note h2{font-size:1.55rem;line-height:1.14;letter-spacing:-.03em;color:#fff;margin:0 0 14px;font-weight:750}
.article-rail-note p{font-size:.88rem;line-height:1.65;color:#c0dbe9;margin:0 0 18px}
.article-rail-note .rail-action-link{display:inline-flex;align-items:center;gap:6px;font-size:.84rem;font-weight:700;color:#55c5ea;text-decoration:none;transition:gap .2s}
.article-rail-note .rail-action-link:hover{gap:10px;color:#fff}

.article-rail-threads{padding:26px 0;border-bottom:1px solid rgba(13,122,168,.16)}
.article-rail-threads .eyebrow,.article-reading-shelf .eyebrow{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--bs-secondary-color,#708492);font-weight:800;display:block;margin-bottom:14px}
.thread-pills{display:flex;flex-wrap:wrap;gap:8px}
.thread-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid rgba(13,122,168,.25);border-radius:6px;background:var(--bs-body-bg);color:var(--jcdc-deep);font-size:.78rem;font-weight:600;cursor:pointer;transition:border-color .2s,color .2s,background .2s}
.thread-pill:hover,.thread-pill.active{border-color:var(--jcdc-blue);color:var(--jcdc-blue);background:rgba(13,122,168,.08)}

.article-reading-shelf{padding-top:26px}
.shelf-list{list-style:none;counter-reset:shelf-counter;margin:0;padding:0}
.shelf-list li{counter-increment:shelf-counter;border-top:1px solid rgba(13,122,168,.14)}
.shelf-list li a,
.shelf-list li button[form="jcdc-post"]{display:grid;grid-template-columns:26px 1fr;gap:4px 10px;padding:14px 0;color:inherit;text-decoration:none}
.shelf-list li a:before,
.shelf-list li button[form="jcdc-post"]:before{content:counter(shelf-counter,decimal-leading-zero);grid-row:1/3;color:var(--jcdc-blue);font-size:.82rem;font-weight:800;padding-top:2px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.shelf-list li strong{font-size:.88rem;line-height:1.3;font-weight:700;color:var(--jcdc-deep);transition:color .2s}
.shelf-list li small{font-size:.72rem;color:var(--bs-secondary-color,#708492);margin-top:2px}
.shelf-list li a:hover strong,
.shelf-list li button[form="jcdc-post"]:hover strong{color:var(--jcdc-blue)}

/* Site Toast Notification */
.site-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 24px;border-radius:50px;background:var(--jcdc-deep);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.25);z-index:1090;font-size:.88rem;font-weight:600;display:flex;align-items:center;gap:10px;animation:toast-pop .25s ease-out}
.site-toast[hidden]{display:none!important}
@keyframes toast-pop{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}

/* Responsive Adaptations */
@media(max-width:991px){
 .article-feed-header{grid-template-columns:1fr;gap:20px}
 .article-feed-art{width:100%;max-width:320px;justify-self:start;margin-top:12px}
 .article-feed-layout{grid-template-columns:1fr}
 .article-reading-rail{position:static;margin-top:40px}
}
@media(max-width:640px){
 .article-feed-row{grid-template-columns:110px minmax(0,1fr);column-gap:14px;padding:18px 0}
 .article-feed-row .story-image{aspect-ratio:1;border-radius:10px}
 .article-feed-row .story-title{font-size:1rem;line-height:1.25}
 .article-feed-row .story-excerpt{font-size:.9375rem}
 .article-feed-row .story-read-link{display:none}
 .story-open-pill{display:none}
}

/* Dark Mode Support */
[data-bs-theme=dark] .article-feed-title,[data-bs-theme=dark] .feed-status-heading,[data-bs-theme=dark] .article-card .story-title,[data-bs-theme=dark] .shelf-list li strong,[data-bs-theme=dark] .article-empty-state h3{color:#f0f6fa}
[data-bs-theme=dark] .article-feed-lead-text,[data-bs-theme=dark] .article-card .story-excerpt,[data-bs-theme=dark] .article-empty-state p{color:#8daec0}
[data-bs-theme=dark] .article-art-notebook{background:var(--dark-panel);border-color:rgba(255,255,255,.1)}
[data-bs-theme=dark] .article-notebook-title,[data-bs-theme=dark] .article-notebook-footer{color:#fff}
[data-bs-theme=dark] .article-search-input-shell{background:var(--dark-raised);border-color:rgba(255,255,255,.15)}
[data-bs-theme=dark] .article-category-bar button{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#8daec0}
[data-bs-theme=dark] .article-category-bar button.active{background:var(--jcdc-blue);border-color:var(--jcdc-blue);color:#fff}
[data-bs-theme=dark] .thread-pill{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#e2eff7}
[data-bs-theme=dark] .post-share-rail a,
[data-bs-theme=dark] .post-share-rail button[form="jcdc-post"],[data-bs-theme=dark] .post-share-rail button{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#e2eff7}
[data-bs-theme=dark] .post-share-rail a:hover,
[data-bs-theme=dark] .post-share-rail button[form="jcdc-post"]:hover,[data-bs-theme=dark] .post-share-rail button:hover{background:var(--jcdc-blue);color:#fff}
[data-bs-theme=dark] .post-share-rail .share-btn-whatsapp{color:#25d366;border-color:rgba(37,211,102,.4)}
[data-bs-theme=dark] .post-share-rail .share-btn-whatsapp:hover{background:#25d366;color:#fff}
[data-bs-theme=dark] .post-share-rail .share-btn-linkedin{color:#3897f0;border-color:rgba(10,102,194,.4)}
[data-bs-theme=dark] .post-share-rail .share-btn-linkedin:hover{background:#0a66c2;color:#fff}
[data-bs-theme=dark] .post-related-rail{background:var(--dark-panel);border-color:rgba(255,255,255,.1);color:#d7e6ef}
[data-bs-theme=dark] .post-related-rail .rail-section+.rail-section,[data-bs-theme=dark] .post-related-rail li{border-top-color:rgba(255,255,255,.1)}
[data-bs-theme=dark] .post-related-rail .rail-section .eyebrow,[data-bs-theme=dark] .post-related-rail li a:before,[data-bs-theme=dark] .post-related-rail .rail-all-stories{color:#55c5ea}
[data-bs-theme=dark] .post-related-rail .rail-section h2,[data-bs-theme=dark] .post-related-rail li strong{color:#f1f7fb}
[data-bs-theme=dark] .post-related-rail li small{color:#9fbccd}
[data-bs-theme=dark] .post-related-rail li a:hover strong,[data-bs-theme=dark] .post-related-rail .rail-all-stories:hover{color:#55c5ea}
[data-bs-theme=dark] .site-toast{background:#0d7aa8;color:#fff}

/* Homepage Section Containers (Rounded edges & generous padding) */
.custom-page--standard .testimonial,
.custom-page--standard .bg-dark {
 border-radius: 26px !important;
 overflow: hidden;
}
.custom-page--standard .testimonial {
 padding: clamp(40px, 5vw, 68px) clamp(24px, 4vw, 56px) !important;
 margin-block: 3.5rem !important;
}
.custom-page--standard .bg-dark {
 padding: clamp(36px, 4.5vw, 60px) clamp(20px, 3.5vw, 44px) !important;
}
.custom-page--home > .custom-social > .container,
.custom-page--home > .jcdc-content > .testimonial {
 width: calc(min(var(--public-rail-width), var(--public-rail-limit)) - 2 * var(--public-rail-inset));
 margin-inline: auto;
}
.custom-page--home > .custom-social > .container {
 padding-inline: 0;
}
.custom-page--home > .custom-social:has(+ .jcdc-content > .testimonial) {
 padding-bottom: clamp(32px, 4vw, 56px);
}
.custom-page--home > .custom-social + .jcdc-content:has(> .testimonial) {
 padding-top: 0;
}
.custom-page--home > .custom-social + .jcdc-content > .testimonial {
 margin-top: 0 !important;
}
.custom-page--standard .jcdc-content .col-sm-4 > .border,
.custom-page--standard .jcdc-content .col-sm-4 .border {
 border-radius: 20px !important;
}

/* Homepage Featured Articles (Editorial List Format) */
.home-article-list {
 display: flex;
 flex-direction: column;
 width: 100%;
 margin-bottom: 24px;
}
.home-article-row {
 display: grid;
 grid-template-columns: 240px minmax(0, 1fr);
 column-gap: 30px;
 align-items: center;
 padding: 24px 0;
 border-bottom: 1px solid rgba(13, 122, 168, 0.14);
 text-decoration: none;
 transition: transform .2s ease;
}
.home-article-row:last-child {
 border-bottom: none;
}
.home-article-thumb {
 aspect-ratio: 16/10;
 border-radius: 18px;
 overflow: hidden;
 background: #eaf3f8;
 position: relative;
 flex-shrink: 0;
}
.home-article-thumb img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform .35s ease;
}
.home-article-row:hover .home-article-thumb img {
 transform: scale(1.05);
}
.home-article-content {
 display: flex;
 flex-direction: column;
 gap: 8px;
 min-width: 0;
}
.home-article-meta {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px;
 font-size: .8rem;
 color: var(--bs-secondary-color, #708492);
}
.home-article-meta .badge-article-category {
 display: inline-flex;
 align-items: center;
 padding: 3px 10px;
 border-radius: 999px;
 font-size: .75rem;
 font-weight: 700;
 letter-spacing: .03em;
 text-transform: uppercase;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue, #0d7aa8);
 border: 1px solid rgba(13, 122, 168, 0.2);
 margin-bottom: 0;
}
.home-article-pill {
 display: inline-block;
 padding: 3px 10px;
 border-radius: var(--jcdc-button-radius);
 font-size: .75rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: .04em;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue, #0d7aa8);
}
.home-article-source {
 font-weight: 600;
 color: #435b69;
}
.home-article-date {
 color: #708492;
}
.home-article-title {
 font-size: 1.25rem;
 font-weight: 700;
 line-height: 1.35;
 margin: 0;
}
.home-article-title a ,
.home-article-title button[form="jcdc-post"] {
 color: var(--jcdc-deep, #0b2230);
 text-decoration: none;
 transition: color .2s ease;
}
.home-article-row:hover .home-article-title a ,
.home-article-row:hover .home-article-title button[form="jcdc-post"] {
 color: var(--jcdc-blue, #0d7aa8);
}
.home-article-excerpt {
 font-size: .92rem;
 color: #536c7a;
 line-height: 1.5;
 margin: 0;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}
.home-article-link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-size: .88rem;
 font-weight: 700;
 color: var(--jcdc-blue, #0d7aa8);
 margin-top: 4px;
 text-decoration: none;
 transition: gap .2s ease;
}
.home-article-row:hover .home-article-link {
 gap: 10px;
}

/* Homepage responsive */
@media (max-width: 767.98px) {
 .home-article-row {
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
 }
 .home-article-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
 }
 .home-article-title {
  font-size: 1rem;
  line-height: 1.3;
 }
 .home-article-excerpt {
  display: none;
 }
 .home-article-link {
  display: none;
 }
}

/* Dark Mode Homepage Articles */
[data-bs-theme=dark] .home-article-title a ,

/* Dark Mode Homepage Articles */
[data-bs-theme=dark] .home-article-title button[form="jcdc-post"] {
 color: #f0f6fa;
}
[data-bs-theme=dark] .home-article-title a:hover ,
[data-bs-theme=dark] .home-article-title button[form="jcdc-post"]:hover {
 color: var(--jcdc-blue);
}
[data-bs-theme=dark] .home-article-excerpt,
[data-bs-theme=dark] .home-article-source {
 color: #8daec0;
}
[data-bs-theme=dark] .home-article-thumb {
 background: var(--dark-panel);
}
[data-bs-theme=dark] .home-article-pill {
 background: rgba(13, 122, 168, 0.25);
 color: #48b4e0;
}
[data-bs-theme=dark] .home-article-meta .badge-article-category {
 background: rgba(13, 122, 168, 0.25);
 color: #48b4e0;
 border-color: rgba(72, 180, 224, 0.3);
}
[data-bs-theme=dark] .home-article-row {
 border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Quiz / Child Development Pre-Assessment Onboarding Layout
   ========================================================================== */
.quiz-page-wrapper {
 padding-top: 36px;
}

.quiz-hero {
 margin-bottom: 36px;
}

.quiz-pill-badge {
 display: inline-flex;
 align-items: center;
 padding: 6px 18px;
 border-radius: 999px;
 font-size: .82rem;
 font-weight: 750;
 letter-spacing: .03em;
 text-transform: uppercase;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue, #0d7aa8);
 border: 1px solid rgba(13, 122, 168, 0.2);
 margin-bottom: 16px;
}

.quiz-hero-title {
 font-size: clamp(2rem, 3.2vw, 2.75rem);
 font-weight: 800;
 line-height: 1.25;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 14px;
}

.quiz-hero-lead {
 font-size: 1.1rem;
 color: #435b69;
 line-height: 1.65;
 max-width: 900px;
 margin-bottom: 32px;
}

/* Quick Metrics Bar */
.quiz-metrics-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 16px;
 margin-bottom: 40px;
}

.quiz-metric-item {
 display: flex;
 align-items: center;
 gap: 14px;
 background: #fff;
 border: 1px solid rgba(13, 122, 168, 0.14);
 border-radius: 18px;
 padding: 18px 20px;
 box-shadow: 0 4px 18px rgba(11, 34, 48, 0.04);
}

.quiz-metric-item .metric-icon {
 width: 44px;
 height: 44px;
 border-radius: 12px;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue, #0d7aa8);
 display: grid;
 place-items: center;
 font-size: 1.2rem;
 flex-shrink: 0;
}

.quiz-metric-item .metric-info strong {
 display: block;
 font-size: .95rem;
 font-weight: 750;
 color: var(--jcdc-deep, #0b2230);
 line-height: 1.25;
}

.quiz-metric-item .metric-info span {
 display: block;
 font-size: .78rem;
 color: #708492;
 margin-top: 3px;
}

/* Main Grid Layout */
.quiz-content-grid {
 display: grid;
 grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
 gap: 36px;
 align-items: start;
}

.quiz-main-column {
 min-width: 0;
}

/* Cards inside main column */
.quiz-card {
 background: #fff;
 border: 1px solid rgba(13, 122, 168, 0.12);
 border-radius: 24px;
 padding: clamp(28px, 3.5vw, 40px);
 margin-bottom: 28px;
 box-shadow: 0 6px 24px rgba(11, 34, 48, 0.03);
}

.quiz-page-wrapper h2.quiz-card-title {
 font-size: 1.35rem;
 font-weight: 750;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 12px;
 display: flex;
 align-items: center;
}

.quiz-card-desc {
 font-size: .95rem;
 color: #536c7a;
 line-height: 1.6;
 margin-bottom: 24px;
}

/* Points List */
.quiz-points-list {
 display: flex;
 flex-direction: column;
 gap: 20px;
}

.quiz-point-item {
 display: grid;
 grid-template-columns: 48px 1fr;
 gap: 18px;
 align-items: start;
 padding-bottom: 20px;
 border-bottom: 1px dashed rgba(13, 122, 168, 0.15);
}

.quiz-point-item:last-child {
 border-bottom: none;
 padding-bottom: 0;
}

.quiz-point-item .point-num {
 width: 44px;
 height: 44px;
 border-radius: 14px;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue, #0d7aa8);
 font-weight: 800;
 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
 display: grid;
 place-items: center;
 font-size: .95rem;
 flex-shrink: 0;
}

.quiz-point-item .point-text h3 {
 font-size: 1.05rem;
 font-weight: 700;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 4px;
}

.quiz-point-item .point-text p {
 font-size: .9rem;
 color: #536c7a;
 line-height: 1.55;
 margin: 0;
}

/* Tips Grid */
.quiz-tips-grid {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 16px;
}

.quiz-tip-box {
 background: #f8fbfe;
 border: 1px solid rgba(13, 122, 168, 0.08);
 border-radius: 18px;
 padding: 20px;
}

.quiz-tip-box .tip-icon {
 font-size: 1.25rem;
 margin-bottom: 10px;
}

.quiz-tip-box h4 {
 font-size: .98rem;
 font-weight: 700;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 6px;
}

.quiz-tip-box p {
 font-size: .84rem;
 color: #627b8a;
 line-height: 1.5;
 margin: 0;
}

/* Disclaimer & Notice Box */
.quiz-disclaimer-box {
 background: #fefcf6;
 border: 1px solid rgba(224, 159, 36, 0.35);
 border-radius: 22px;
 padding: 24px 28px;
 margin-bottom: 28px;
}

.quiz-disclaimer-box .disclaimer-header {
 display: flex;
 gap: 16px;
 align-items: flex-start;
 margin-bottom: 14px;
}

.quiz-disclaimer-box .disclaimer-header i {
 font-size: 1.5rem;
 color: #d97706 !important;
 margin-top: 2px;
}

.quiz-disclaimer-box .disclaimer-header h3 {
 font-size: 1.05rem;
 font-weight: 750;
 color: #78350f;
 margin-bottom: 3px;
}

.quiz-disclaimer-box .disclaimer-header p {
 font-size: .82rem;
 color: #92400e;
 margin: 0;
}

.quiz-disclaimer-box .disclaimer-body ul {
 margin: 0;
 padding-left: 20px;
 font-size: .88rem;
 color: #78350f;
 line-height: 1.6;
}

.quiz-disclaimer-box .disclaimer-body li {
 margin-bottom: 8px;
}

.quiz-disclaimer-box .disclaimer-body li:last-child {
 margin-bottom: 0;
}

/* Action & Launch Rail (Right) */
.quiz-action-column {
 position: sticky;
 top: 96px;
 display: flex;
 flex-direction: column;
 gap: 24px;
}

.quiz-action-card {
 background: linear-gradient(145deg, #0d7aa8 0%, #064b6b 100%);
 color: #fff;
 border-radius: 26px;
 padding: 32px 26px;
 box-shadow: 0 16px 36px rgba(13, 122, 168, 0.28);
 text-align: left;
 position: relative;
 overflow: hidden;
}

.action-card-badge {
 display: inline-flex;
 align-items: center;
 padding: 4px 12px;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.16);
 backdrop-filter: blur(4px);
 font-size: .74rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: .04em;
 color: #e2f3fc;
 margin-bottom: 14px;
}

.quiz-page-wrapper h2.action-card-title {
 font-size: 1.5rem;
 font-weight: 800;
 color: #fff;
 margin-bottom: 10px;
 line-height: 1.25;
}

.action-card-desc {
 font-size: .92rem;
 color: #e2eff7;
 line-height: 1.5;
 margin-bottom: 22px;
}

.quiz-start-btn {
 display: flex;
 align-items: center;
 gap: 14px;
 width: 100%;
 padding: 14px 20px;
 border-radius: var(--jcdc-button-radius);
 background: #fff;
 color: #0b2230;
 text-decoration: none;
 box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
 transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
 cursor: pointer;
 border: 2px solid #fff;
}

.quiz-start-btn:hover {
 transform: translateY(-2px);
 box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
 color: var(--jcdc-blue, #0d7aa8);
}

.quiz-start-btn .btn-icon {
 width: 38px;
 height: 38px;
 border-radius: 50%;
 background: var(--jcdc-blue, #0d7aa8);
 color: #fff;
 display: grid;
 place-items: center;
 font-size: .95rem;
 flex-shrink: 0;
}

.quiz-start-btn .btn-text {
 display: flex;
 flex-direction: column;
 text-align: left;
}

.quiz-start-btn .btn-text strong {
 font-size: 1.05rem;
 font-weight: 800;
 line-height: 1.2;
 color: inherit;
}

.quiz-start-btn .btn-text small {
 font-size: .74rem;
 color: #627b8a;
 font-weight: 600;
}

.action-card-trust {
 display: flex;
 flex-direction: column;
 gap: 6px;
 font-size: .78rem;
 color: #cfe5f2;
 margin-top: 18px;
}

/* Post-test card */
.quiz-nextsteps-card {
 background: #fff;
 border: 1px solid rgba(13, 122, 168, 0.14);
 border-radius: 24px;
 padding: 26px 22px;
 box-shadow: 0 6px 20px rgba(11, 34, 48, 0.04);
}

.nextsteps-eyebrow {
 display: block;
 font-size: .72rem;
 font-weight: 800;
 letter-spacing: .08em;
 text-transform: uppercase;
 color: var(--jcdc-blue, #0d7aa8);
 margin-bottom: 6px;
}

.quiz-nextsteps-card h3 {
 font-size: 1.15rem;
 font-weight: 750;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 16px;
}

.nextsteps-list {
 list-style: none;
 padding: 0;
 margin: 0 0 20px 0;
 display: flex;
 flex-direction: column;
 gap: 14px;
}

.nextsteps-list strong {
 display: block;
 font-size: .88rem;
 font-weight: 700;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 3px;
}

.nextsteps-list p {
 font-size: .9375rem;
 color: #536c7a;
 line-height: 1.45;
 margin: 0;
}

/* FAQ Section */
.quiz-faq-section h2 { font-size: clamp(1.5rem, 2.15vw, 2rem); }
.quiz-faq-section {
 margin-top: 56px;
 padding-top: 48px;
 border-top: 1px solid rgba(13, 122, 168, 0.14);
}

.quiz-faq-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 24px;
}

.quiz-faq-item {
 background: #fff;
 border: 1px solid rgba(13, 122, 168, 0.1);
 border-radius: 20px;
 padding: 24px 22px;
 box-shadow: 0 4px 16px rgba(11, 34, 48, 0.03);
}

.quiz-faq-item h3 {
 font-size: .98rem;
 font-weight: 700;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 10px;
 line-height: 1.4;
}

.quiz-faq-item p {
 font-size: 1rem;
 color: #536c7a;
 line-height: 1.55;
 margin: 0;
}

/* Modal Vendor */
.quiz-vendor-modal {
 border-radius: 24px;
 overflow: hidden;
 border: 1px solid rgba(13, 122, 168, 0.2);
 box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-partner-badge {
 display: inline-flex;
 align-items: center;
 padding: 3px 10px;
 border-radius: 999px;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue, #0d7aa8);
 font-size: .75rem;
 font-weight: 700;
}

.modal-callout {
 background: #f0f7fb;
 border-left: 3px solid var(--jcdc-blue, #0d7aa8);
}

/* Responsive */
@media (max-width: 991px) {
 .quiz-content-grid {
  grid-template-columns: 1fr;
 }
 .quiz-action-column {
  position: static;
  margin-top: 10px;
 }
 .quiz-metrics-grid {
  grid-template-columns: repeat(2, 1fr);
 }
 .quiz-faq-grid {
  grid-template-columns: 1fr;
 }
}

@media (max-width: 767.98px) {
 .quiz-page-wrapper { padding-top: 24px; }
 .quiz-tips-grid {
  grid-template-columns: 1fr;
 }
 .quiz-metrics-grid {
  grid-template-columns: 1fr;
 }
}

/* Dark Mode Support for Quiz */
[data-bs-theme=dark] .quiz-pill-badge {
 background: rgba(56, 189, 248, 0.12);
 color: #7dd3fc;
 border: 1px solid rgba(56, 189, 248, 0.25);
}

[data-bs-theme=dark] .quiz-card,
[data-bs-theme=dark] .quiz-metric-item,
[data-bs-theme=dark] .quiz-nextsteps-card,
[data-bs-theme=dark] .quiz-faq-item,
[data-bs-theme=dark] .quiz-vendor-modal {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme=dark] .quiz-hero-title,
[data-bs-theme=dark] .quiz-card-title,
[data-bs-theme=dark] .point-text h3,
[data-bs-theme=dark] .quiz-tip-box h4,
[data-bs-theme=dark] .quiz-nextsteps-card h3,
[data-bs-theme=dark] .nextsteps-list strong,
[data-bs-theme=dark] .quiz-faq-item h3,
[data-bs-theme=dark] .metric-info strong,
[data-bs-theme=dark] .modal-title {
 color: #f0f6fa;
}

[data-bs-theme=dark] .quiz-hero-lead,
[data-bs-theme=dark] .quiz-card-desc,
[data-bs-theme=dark] .point-text p,
[data-bs-theme=dark] .quiz-tip-box p,
[data-bs-theme=dark] .nextsteps-list p,
[data-bs-theme=dark] .quiz-faq-item p,
[data-bs-theme=dark] .metric-info span {
 color: #8daec0;
}

[data-bs-theme=dark] .quiz-metric-item .metric-icon {
 background: rgba(56, 189, 248, 0.12);
 color: #7dd3fc;
}

[data-bs-theme=dark] .quiz-point-item .point-num {
 background: rgba(56, 189, 248, 0.15);
 color: #7dd3fc;
}

[data-bs-theme=dark] .quiz-tip-box {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme=dark] .quiz-disclaimer-box {
 background: #242216;
 border-color: rgba(224, 159, 36, 0.3);
}

[data-bs-theme=dark] .quiz-disclaimer-box .disclaimer-header h3 {
 color: #fde68a;
}

[data-bs-theme=dark] .quiz-disclaimer-box .disclaimer-header p,
[data-bs-theme=dark] .quiz-disclaimer-box .disclaimer-body ul {
 color: #fcd34d;
}

[data-bs-theme=dark] .modal-callout {
 background: var(--dark-panel);
}

[data-bs-theme=dark] .quiz-action-card {
 background: linear-gradient(145deg, #0369a1 0%, #063950 100%);
}

[data-bs-theme=dark] .quiz-start-btn {
 background: #0369a1;
 border-color: #0369a1;
 color: #ffffff;
}

[data-bs-theme=dark] .quiz-start-btn:hover {
 background: #075985;
 border-color: #075985;
}

/* ==========================================================================
   Appointment & Consultation Request Layout (Equal Choice: Form or WhatsApp)
   ========================================================================== */
.appointment-page-wrapper {
 max-width: 1320px;
 padding-inline: 30px;
 padding-top: 28px;
}

.appointment-hero {
 margin-bottom: 24px;
}

.appointment-page-wrapper .appointment-hero-title {
 font-size: clamp(1.85rem, 3vw, 2.5rem);
 font-weight: 800;
 line-height: 1.2;
 color: var(--jcdc-deep, #133e57);
 margin-bottom: 10px;
}

.appointment-page-wrapper .appointment-hero-lead {
 font-size: 1rem;
 color: #435b69;
 line-height: 1.65;
 max-width: none;
 margin-bottom: 0;
}

/* Mobile Equal-Choice Path Switcher */
.appointment-mobile-switcher {
 display: none;
}

/* Balanced Two-Column Equal-Choice Grid */
.appointment-grid {
 display: grid;
 grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
 gap: 28px;
 align-items: start;
}

.appointment-form-column,
.appointment-sidebar {
 min-width: 0;
}

.appointment-sidebar {
 display: flex;
 flex-direction: column;
 gap: 20px;
}

.appointment-card,
.appointment-wa-card,
.appointment-process-card,
.appointment-info-card {
 background: #fff;
 border: 1px solid rgba(13, 122, 168, 0.16);
 border-radius: 22px;
 box-shadow: 0 6px 24px rgba(11, 34, 48, 0.04);
}

.appointment-card {
 padding: clamp(24px, 3vw, 36px);
 border-top: 4px solid var(--jcdc-blue, #0d7aa8);
}

.appointment-card-header {
 margin-bottom: 20px;
}

.appointment-card-meta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 8px 12px;
 margin-bottom: 10px;
}

.appointment-card .form-tag {
 display: inline-flex;
 align-items: center;
 padding: 4px 12px;
 border-radius: 999px;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue-text, #0a6a94);
 font-size: .74rem;
 font-weight: 750;
 letter-spacing: .04em;
 text-transform: uppercase;
}

.appointment-privacy-pill {
 font-size: .8rem;
 color: #435b69;
 font-weight: 600;
}

.appointment-privacy-pill i {
 color: var(--jcdc-blue-text, #0a6a94);
}

.card-title {
 float: none;
}

.appointment-page-wrapper .appointment-card .card-title,
.appointment-page-wrapper .appointment-card-title {
 float: none !important;
 clear: both !important;
 display: block !important;
 width: 100% !important;
 font-size: 1.38rem;
 font-weight: 800;
 color: var(--jcdc-deep, #133e57);
 margin-top: 0;
 margin-bottom: 6px;
 line-height: 1.3;
}

.appointment-page-wrapper .appointment-card .card-subtitle,
.appointment-page-wrapper .appointment-card-subtitle {
 float: none !important;
 clear: both !important;
 display: block !important;
 width: 100% !important;
 font-size: .94rem;
 line-height: 1.55;
 color: #4f6775;
 margin-top: 0;
 margin-bottom: 0;
}

/* Form Fieldset Grouping */
.appointment-form-group {
 border: 0;
 margin: 0 0 22px;
 padding: 0 0 20px;
 border-bottom: 1px solid rgba(13, 122, 168, 0.12);
}

.appointment-form-group:last-of-type {
 margin-bottom: 0;
 padding-bottom: 0;
 border-bottom: 0;
}

.appointment-group-legend {
 float: none;
 width: auto;
 font-size: .82rem;
 font-weight: 800;
 letter-spacing: .05em;
 text-transform: uppercase;
 color: var(--jcdc-blue-text, #0a6a94);
 margin-bottom: 14px;
 padding: 0;
}

.appointment-optional-tag {
 font-weight: 500;
 font-size: .84em;
 color: #5b7280;
}

/* Form Controls with Left Icons (anchored to input height so validation errors never shift the icon) */
.input-icon-wrapper {
 position: relative;
}

.input-icon-wrapper .input-icon {
 position: absolute;
 left: 16px;
 top: 24px;
 transform: translateY(-50%);
 color: #5b7280;
 pointer-events: none;
 z-index: 2;
 font-size: .95rem;
}

.input-icon-wrapper .form-control,
.input-icon-wrapper .form-select {
 padding-left: 44px;
 border-radius: 12px;
 min-height: 48px;
 font-size: .94rem;
 transition: border-color .2s, box-shadow .2s;
}

.input-icon-wrapper .form-control:focus,
.input-icon-wrapper .form-select:focus {
 box-shadow: 0 0 0 4px rgba(13, 122, 168, 0.15);
}

.appointment-booking-form textarea.form-control {
 border-radius: 12px;
 padding: 12px 14px;
 font-size: .94rem;
 transition: border-color .2s, box-shadow .2s;
}

.appointment-booking-form textarea.form-control:focus {
 box-shadow: 0 0 0 4px rgba(13, 122, 168, 0.15);
}

.custom-privacy-check {
 background: #f5f9fc;
 border: 1px solid rgba(13, 122, 168, 0.18);
 border-radius: 12px;
 padding: 13px 16px;
 display: flex;
 align-items: flex-start;
 gap: 12px;
 margin: 0;
 cursor: pointer;
 transition: background .2s ease, border-color .2s ease;
}

.custom-privacy-check:hover {
 background: #edf5fa;
 border-color: rgba(13, 122, 168, 0.3);
}

.custom-privacy-check .form-check-input {
 float: none !important;
 margin: 3px 0 0 0 !important;
 flex-shrink: 0;
 width: 1.15rem;
 height: 1.15rem;
 cursor: pointer;
}

.custom-privacy-check .custom-privacy-label,
.custom-privacy-check .form-check-label {
 margin: 0;
 padding: 0;
 font-size: .88rem;
 line-height: 1.5;
 color: #435b69;
 cursor: pointer;
}

.appointment-submit-btn {
 font-size: 1rem;
 letter-spacing: .01em;
}

.appointment-submit-note {
 font-size: .82rem;
 color: #4f6775;
 margin-top: 10px;
 display: flex;
 align-items: flex-start;
 justify-content: center;
 gap: 6px;
 line-height: 1.45;
 text-align: center;
}

.appointment-submit-note i {
 margin-top: 3px;
 flex-shrink: 0;
}

/* Structured Confirmation Panel */
.appointment-success-panel {
 text-align: center;
 padding: 18px 10px 6px;
}

.appointment-success-icon {
 width: 58px;
 height: 58px;
 margin: 0 auto 14px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 background: rgba(13, 110, 56, 0.12);
 color: #0d6e38;
 font-size: 1.75rem;
}

.appointment-success-title {
 font-size: 1.35rem;
 font-weight: 800;
 color: var(--jcdc-deep, #133e57);
 margin-bottom: 8px;
}

.appointment-page-wrapper .appointment-success-message {
 font-size: .96rem;
 line-height: 1.55;
 color: #435b69;
 max-width: 520px;
 margin: 0 auto 18px;
}

.appointment-success-steps {
 list-style: disc;
 text-align: left;
 max-width: 520px;
 margin: 0 auto 22px;
 padding: 16px 20px 16px 36px;
 border-radius: 14px;
 background: #f5f9fc;
 border: 1px solid rgba(13, 122, 168, 0.14);
 font-size: .88rem;
 color: #435b69;
}

.appointment-success-steps li + li {
 margin-top: 6px;
}

.appointment-success-actions {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 12px;
}

/* Option 2: Calm, Equal-Weight WhatsApp Card */
.appointment-wa-card {
 padding: clamp(24px, 2.8vw, 32px);
 border-top: 4px solid #0d6e38;
}

.wa-card-badge {
 display: inline-flex;
 align-items: center;
 padding: 4px 12px;
 border-radius: 999px;
 background: rgba(13, 110, 56, 0.1);
 color: #0d6e38;
 font-size: .74rem;
 font-weight: 750;
 letter-spacing: .04em;
 text-transform: uppercase;
}

.appointment-page-wrapper .wa-card-title {
 font-size: 1.38rem;
 font-weight: 800;
 color: var(--jcdc-deep, #133e57);
 margin-top: 0;
 margin-bottom: 6px;
 line-height: 1.3;
}

.appointment-page-wrapper .wa-card-desc {
 font-size: .94rem;
 color: #4f6775;
 line-height: 1.55;
 margin-bottom: 16px;
}

/* Live WhatsApp Draft Carry-Over Box */
.wa-draft-box {
 background: #f5faf7;
 border: 1px solid rgba(13, 110, 56, 0.22);
 border-radius: 14px;
 padding: 12px 14px;
 margin-bottom: 16px;
}

.wa-draft-header {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 6px;
 margin-bottom: 6px;
}

.wa-draft-label {
 font-size: .76rem;
 font-weight: 750;
 text-transform: uppercase;
 letter-spacing: .04em;
 color: #0d6e38;
}

.wa-draft-sync-badge {
 display: inline-flex;
 align-items: center;
 padding: 2px 9px;
 border-radius: 999px;
 background: #0d6e38;
 color: #fff;
 font-size: .72rem;
 font-weight: 700;
}

.appointment-page-wrapper .wa-draft-preview {
 font-size: .86rem;
 line-height: 1.55;
 color: #2f4856;
 white-space: pre-line;
 overflow-wrap: anywhere;
}

.wa-action-btn {
 background: #0d6e38;
 border: 1px solid #0d6e38;
 color: #fff !important;
 text-decoration: none;
 display: inline-flex;
 align-items: center;
 justify-content: center;
}

.wa-action-btn:hover,
.wa-action-btn:focus-visible {
 background: #09582c;
 border-color: #09582c;
 color: #fff !important;
}

.appointment-page-wrapper .wa-card-note {
 display: block;
 font-size: .82rem;
 line-height: 1.45;
 color: #4f6775;
 margin-top: 12px;
 text-align: center;
}

/* Compact Non-Interactive Process Card */
.appointment-process-card,
.appointment-info-card {
 padding: 22px 24px;
}

.info-eyebrow {
 display: block;
 font-size: .72rem;
 font-weight: 800;
 letter-spacing: .08em;
 text-transform: uppercase;
 color: var(--jcdc-blue-text, #0a6a94);
 margin-bottom: 4px;
}

.info-title {
 font-size: 1.1rem;
 font-weight: 750;
 color: var(--jcdc-deep, #133e57);
 margin-bottom: 14px;
}

.appointment-process-list {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 flex-direction: column;
 gap: 14px;
}

.appointment-process-list li {
 display: flex;
 align-items: flex-start;
 gap: 12px;
}

.appointment-process-list .process-num {
 width: 28px;
 height: 28px;
 border-radius: 50%;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue-text, #0a6a94);
 font-weight: 800;
 font-size: .82rem;
 display: grid;
 place-items: center;
 flex-shrink: 0;
 margin-top: 2px;
}

.appointment-process-list strong {
 display: block;
 font-size: .9rem;
 font-weight: 700;
 color: var(--jcdc-deep, #133e57);
 margin-bottom: 2px;
}

.appointment-process-list p {
 font-size: .84rem;
 color: #4f6775;
 line-height: 1.45;
 margin: 0;
}

/* Clinic Info Card */
.clinic-info-list {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 flex-direction: column;
 gap: 14px;
}

.clinic-info-list li {
 display: flex;
 gap: 12px;
 align-items: flex-start;
}

.clinic-info-list .info-icon {
 width: 34px;
 height: 34px;
 border-radius: 10px;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue-text, #0a6a94);
 display: grid;
 place-items: center;
 font-size: .9rem;
 flex-shrink: 0;
 margin-top: 2px;
}

.clinic-info-list strong {
 display: block;
 font-size: .88rem;
 font-weight: 700;
 color: var(--jcdc-deep, #133e57);
 margin-bottom: 2px;
}

.clinic-info-list p {
 font-size: .84rem;
 color: #4f6775;
 line-height: 1.45;
 margin: 0;
}

.appointment-closed-note {
 color: #b42318;
 font-weight: 600;
}

.clinic-info-list a,
.clinic-info-list button[form="jcdc-post"] {
 color: var(--jcdc-blue-text, #0a6a94);
 text-decoration: none;
}

.clinic-info-list a:hover,
.clinic-info-list button[form="jcdc-post"]:hover {
 color: var(--jcdc-deep, #133e57);
}

/* Compact Expandable FAQ Section */
.appointment-faq-section {
 margin-top: 48px;
 padding-top: 40px;
 border-top: 1px solid rgba(13, 122, 168, 0.14);
}

.appointment-page-wrapper .appointment-faq-section h2 {
 font-size: clamp(1.35rem, 2.2vw, 1.85rem);
 margin-bottom: 0;
}

.appointment-faq-list {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 16px;
}

.appointment-faq-item {
 background: #fff;
 border: 1px solid rgba(13, 122, 168, 0.14);
 border-radius: 16px;
 padding: 16px 20px;
}

.appointment-faq-item summary {
 font-size: .96rem;
 font-weight: 700;
 color: var(--jcdc-deep, #133e57);
 cursor: pointer;
 list-style: none;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
}

.appointment-faq-item summary::-webkit-details-marker {
 display: none;
}

.appointment-faq-item summary::after {
 content: "+";
 font-size: 1.2rem;
 font-weight: 600;
 color: var(--jcdc-blue-text, #0a6a94);
 flex-shrink: 0;
}

.appointment-faq-item[open] summary::after {
 content: "-";
}

.appointment-faq-item p {
 font-size:1rem;
 color: #4f6775;
 line-height: 1.6;
 margin: 10px 0 0;
}

/* Responsive */
@media (max-width: 991.98px) {
 .appointment-grid {
  grid-template-columns: 1fr;
  gap: 20px;
 }
 .appointment-mobile-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(13, 122, 168, 0.08);
  border: 1px solid rgba(13, 122, 168, 0.16);
 }
 .appointment-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--jcdc-deep, #133e57);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
 }
 .appointment-switch-btn.is-active {
  background: var(--jcdc-blue, #0d7aa8);
  color: #fff;
 }
 [data-appointment-page][data-switcher-ready="1"] [data-appointment-panel]:not(.is-panel-active) {
  display: none;
 }
 .appointment-faq-list {
  grid-template-columns: 1fr;
 }
}

@media (max-width: 767.98px) {
 .appointment-page-wrapper {
  padding-inline: 18px;
  padding-top: 20px;
 }
 .appointment-hero-title {
  font-size: 1.6rem;
 }
 .appointment-card,
 .appointment-wa-card {
  padding: 20px 18px;
 }
}

/* Dark Mode Support for Appointment */
[data-bs-theme=dark] .appointment-card,
[data-bs-theme=dark] .appointment-wa-card,
[data-bs-theme=dark] .appointment-process-card,
[data-bs-theme=dark] .appointment-info-card,
[data-bs-theme=dark] .appointment-faq-item {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .appointment-card {
 border-top-color: #38bdf8;
}

[data-bs-theme=dark] .appointment-wa-card {
 border-top-color: #22c55e;
}

[data-bs-theme=dark] .appointment-card .form-tag,
[data-bs-theme=dark] .appointment-process-list .process-num,
[data-bs-theme=dark] .clinic-info-list .info-icon {
 background: rgba(56, 189, 248, 0.14);
 color: #7dd3fc;
}

[data-bs-theme=dark] .appointment-group-legend,
[data-bs-theme=dark] .info-eyebrow,
[data-bs-theme=dark] .appointment-privacy-pill i,
[data-bs-theme=dark] .appointment-faq-item summary::after {
 color: #7dd3fc;
}

[data-bs-theme=dark] .appointment-hero-title,
[data-bs-theme=dark] .appointment-card-title,
[data-bs-theme=dark] .card-title,
[data-bs-theme=dark] .wa-card-title,
[data-bs-theme=dark] .info-title,
[data-bs-theme=dark] .appointment-process-list strong,
[data-bs-theme=dark] .clinic-info-list strong,
[data-bs-theme=dark] .appointment-faq-item summary,
[data-bs-theme=dark] .appointment-success-title {
 color: #f0f6fa;
}

[data-bs-theme=dark] .appointment-hero-lead,
[data-bs-theme=dark] .appointment-card-subtitle,
[data-bs-theme=dark] .card-subtitle,
[data-bs-theme=dark] .appointment-privacy-pill,
[data-bs-theme=dark] .appointment-optional-tag,
[data-bs-theme=dark] .wa-card-desc,
[data-bs-theme=dark] .wa-card-note,
[data-bs-theme=dark] .appointment-process-list p,
[data-bs-theme=dark] .clinic-info-list p,
[data-bs-theme=dark] .appointment-faq-item p,
[data-bs-theme=dark] .appointment-submit-note,
[data-bs-theme=dark] .appointment-success-message,
[data-bs-theme=dark] .appointment-success-steps {
 color: #b6c8d4;
}

[data-bs-theme=dark] .appointment-form-group {
 border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .custom-privacy-check,
[data-bs-theme=dark] .appointment-success-steps {
 background: var(--dark-raised);
 border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme=dark] .custom-privacy-check:hover {
 border-color: rgba(56, 189, 248, 0.35);
}

[data-bs-theme=dark] .custom-privacy-check .custom-privacy-label,
[data-bs-theme=dark] .custom-privacy-check .form-check-label {
 color: #d5e2eb;
}

[data-bs-theme=dark] .input-icon-wrapper .input-icon {
 color: #94aec0;
}

[data-bs-theme=dark] .input-icon-wrapper .form-control,
[data-bs-theme=dark] .input-icon-wrapper .form-select,
[data-bs-theme=dark] .appointment-booking-form textarea.form-control {
 background: var(--dark-raised);
 color: #f0f6fa;
}

[data-bs-theme=dark] .wa-card-badge {
 background: rgba(34, 197, 94, 0.16);
 color: #86efac;
}

[data-bs-theme=dark] .wa-draft-box {
 background: rgba(34, 197, 94, 0.08);
 border-color: rgba(34, 197, 94, 0.28);
}

[data-bs-theme=dark] .wa-draft-label {
 color: #86efac;
}

[data-bs-theme=dark] .wa-draft-preview {
 color: #e2edf4;
}

[data-bs-theme=dark] .wa-action-btn {
 background: #15803d;
 border-color: #15803d;
 color: #fff !important;
}

[data-bs-theme=dark] .wa-action-btn:hover,
[data-bs-theme=dark] .wa-action-btn:focus-visible {
 background: #166534;
 border-color: #166534;
}

[data-bs-theme=dark] .appointment-success-icon {
 background: rgba(34, 197, 94, 0.16);
 color: #86efac;
}

[data-bs-theme=dark] .appointment-closed-note {
 color: #fca5a5;
}

[data-bs-theme=dark] .clinic-info-list a,
[data-bs-theme=dark] .clinic-info-list button[form="jcdc-post"] {
 color: #7dd3fc;
}

[data-bs-theme=dark] .clinic-info-list a:hover,
[data-bs-theme=dark] .clinic-info-list button[form="jcdc-post"]:hover {
 color: #bae6fd;
}

[data-bs-theme=dark] .appointment-mobile-switcher {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme=dark] .appointment-switch-btn {
 color: #cbd5e1;
}

[data-bs-theme=dark] .appointment-switch-btn.is-active {
 background: #0369a1;
 color: #fff;
}

/* ==========================================================================
   Service Menu Interactive Cards (Clickable affordance & visual indicators)
   ========================================================================== */
.jcdc-service-detail > .page-intro {
    padding-block-end: clamp(20px, 2.5vw, 36px);
    overflow-wrap: anywhere;
}
.jcdc-service-detail > .page-intro p:last-child { margin-bottom: 0; }
.jcdc-service-detail > .jcdc-content { padding-block-end: clamp(24px, 3.3vw, 46px); }
.jcdc-service-details {
    padding-block-start: clamp(24px, 4vw, 56px);
    border-block-start: 1px solid var(--bs-border-color);
    overflow-wrap: anywhere;
}
.jcdc-service-details h2 { margin-block-end: clamp(18px, 2.6vw, 30px); }
.jcdc-service-details__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}
.jcdc-service-details__card {
    padding: clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--bs-border-color);
    border-radius: 18px;
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}
.jcdc-service-details__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 1.1vw, 15px);
    margin-bottom: 12px;
}
.jcdc-service-details__card h3 { margin: 0; font-size: clamp(1.12rem, 1.7vw, 1.4rem); color: var(--jcdc-deep); }
.jcdc-service-details__card p { margin: 0; }
.jcdc-service-details__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e1f1f6;
    color: #075d86;
    font-size: 1.2rem;
}
[data-bs-theme="dark"] .jcdc-service-details__icon {
    background: var(--dark-panel);
    color: #8bdaf3;
}
@media (max-width: 767.98px) {
    .jcdc-service-details__grid { grid-template-columns: minmax(0, 1fr); }
}

.jcdc-services:has(.service-menu-intro) > .page-intro {
    padding-bottom: clamp(20px, 2.5vw, 36px);
}
.jcdc-services:has(.service-menu-intro) > .page-intro p:last-child {
    margin-bottom: 0;
}

/* The imported intro and program menu share a CMS row in both languages. */
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    gap: clamp(24px, 4vw, 56px);
    margin: 0;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > :is(.col-lg-8, .col-lg-4, .col-lg-12) {
    width: 100%;
    margin: 0;
    padding: 0;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-8 {
    max-width: 62ch;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-8 > p:last-child {
    margin-bottom: 0 !important;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-12 {
    grid-column: 1 / -1;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-4 > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 16px);
    margin: 0;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-4 > .row > .col-6 {
    width: auto;
    margin: 0;
    padding: 0;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-4 > .row > .col-6:not(:has(> *)),
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-4:not(:has(img)) {
    display: none;
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro):not(:has(> .col-lg-4 img)) {
    grid-template-columns: minmax(0, 1fr);
}
.jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-4 img {
    display: block;
    width: 100% !important;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bs-tertiary-bg);
}
@media (max-width: 991.98px) {
    .jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) {
        grid-template-columns: minmax(0, 1fr);
    }
    .jcdc-services .row:has(> .col-lg-12 > .service-menu-intro) > .col-lg-4 {
        max-width: 34rem;
    }
}

.jcdc-services > .jcdc-content > .container-xxl:has(.service-menu-intro) {
    padding-inline: 0;
}

/* Share the lead grid with the CMS section without rearranging editorial markup. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 992px) {
        .jcdc-services:has(> .jcdc-content > .container-xxl > .container > .row > .col-lg-12 > .service-menu-intro):has(> .jcdc-content > .container-xxl > .container > .row > .col-lg-4 img) {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
            grid-template-rows: 1fr auto auto 1fr auto;
            column-gap: clamp(28px, 4vw, 56px);
            width: 100%;
            max-width: 1320px;
            margin-inline: auto;
            padding: clamp(36px, 4vw, 58px) 30px clamp(48px, 6vw, 84px);

            &:last-child { padding-block-end: 0; }

            & > .page-intro {
                z-index: 1;
                grid-area: 2 / 1;
                min-width: 0;
                padding: 0 0 clamp(16px, 2vw, 28px);
                margin: 0;
            }
            & > .jcdc-content {
                grid-area: 1 / 1 / -1 / -1;
                display: grid;
                grid-template: subgrid / subgrid;
                min-width: 0;
                padding: 0;
            }
            & > .jcdc-content > .container-xxl,
            & > .jcdc-content > .container-xxl > .container,
            & > .jcdc-content > .container-xxl > .container > .row {
                display: contents;
            }
            & > .jcdc-content > .container-xxl > .container > .row > .col-lg-8 {
                grid-area: 3 / 1;
            }
            & > .jcdc-content > .container-xxl > .container > .row > .col-lg-4 {
                grid-area: 1 / 2 / 5 / 3;
                align-self: center;
            }
            & > .jcdc-content > .container-xxl > .container > .row > .col-lg-12 {
                grid-area: 5 / 1 / 6 / 3;
                margin-top: clamp(30px, 4vw, 56px);
            }
        }
    }
}

.service-menu-intro {
 margin-bottom: 24px;
}

/* The section label is a real H2 for the page outline; keep it label-sized. */
.service-menu-intro .section-title {
 font-size: 1rem;
 line-height: 1.4;
 letter-spacing: .02em;
}

.service-menu-card {
 display: flex;
 flex-direction: column;
 height: 100%;
 border-radius: 22px;
 background: #fff;
 border: 2px solid rgba(13, 122, 168, 0.16);
 padding: 18px 16px 20px;
 text-decoration: none !important;
 transition: border-color .25s ease;
 box-shadow: 0 6px 20px rgba(11, 34, 48, 0.04);
 position: relative;
 overflow: hidden;
 text-align: center;
 cursor: pointer;
}

.service-menu-card:focus-visible {
 outline: 2px solid var(--jcdc-blue);
 outline-offset: 2px;
}

.service-thumb-wrapper {
 position: relative;
 border-radius: 16px;
 overflow: hidden;
 margin-bottom: 16px;
 aspect-ratio: 1;
 background: #f0f7fb;
}

.service-thumb-wrapper img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 border-radius: 16px !important;
}

.service-click-badge {
 position: absolute;
 top: 12px;
 right: 12px;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.94);
 backdrop-filter: blur(4px);
 color: var(--jcdc-blue, #0d7aa8);
 display: grid;
 place-items: center;
 font-size: .88rem;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
 z-index: 2;
}

.service-card-title {
 font-size: 1.15rem;
 font-weight: 750;
 color: var(--jcdc-deep, #0b2230);
 margin-bottom: 8px;
 line-height: 1.3;
}

.service-card-desc {
 font-size: .84rem;
 color: #536c7a;
 line-height: 1.5;
 margin-bottom: 16px;
 flex-grow: 1;
}

.service-card-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 padding: 8px 18px;
 border-radius: var(--jcdc-button-radius);
 background: rgba(13, 122, 168, 0.08);
 color: var(--jcdc-blue-text);
 font-size: .84rem;
 font-weight: 700;
 margin-top: auto;
}

/* Dark mode for service menu cards */
[data-bs-theme=dark] .service-menu-card {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.1);
 box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.service-menu-card:is(:hover, :focus-visible) {
 border-color: var(--jcdc-blue);
}

[data-bs-theme=dark] .service-card-title {
 color: #f0f6fa;
}

[data-bs-theme=dark] .service-card-desc {
 color: #8daec0;
}

[data-bs-theme=dark] .service-thumb-wrapper {
 background: var(--dark-panel);
}

[data-bs-theme=dark] .service-click-badge {
 background: rgba(17, 39, 51, 0.88);
 color: #48b4e0;
}

[data-bs-theme=dark] .service-card-btn {
 background: rgba(13, 122, 168, 0.25);
 color: #48b4e0;
}

/* ==========================================================================
   JCDC Gallery Architecture
   ========================================================================== */
.gallery-page-container {
 padding-top: clamp(28px, 4vw, 48px);
}


.gallery-hero {
 margin-bottom: clamp(22px, 3vw, 40px);
}
.gallery-hero-badge {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 6px 16px;
 border-radius: 999px;
 font-size: .82rem;
 font-weight: 750;
 letter-spacing: .06em;
 text-transform: uppercase;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue);
 border: 1px solid rgba(13, 122, 168, 0.22);
 margin-bottom: 18px;
}
.gallery-hero-headline {
 font-size:clamp(2.2rem,3.8vw,3.375rem);
 font-weight: 850;
 line-height: 1.2;
 letter-spacing: -.035em;
 color: var(--jcdc-deep);
 margin: 0 0 16px;
}
.gallery-hero-lead {
 font-size: 1.15rem;
 line-height: 1.8;
 color: var(--bs-body-color);
 margin-bottom: 0;
}

/* Featured Video Card */
.gallery-tour-section {
 margin-bottom: 56px;
}
.gallery-video-card {
 border-radius: 24px;
 padding: clamp(24px, 4vw, 40px);
 background: var(--bs-tertiary-bg);
 border: 1px solid rgba(13, 122, 168, 0.16);
 box-shadow: 0 8px 30px rgba(19, 62, 87, 0.05);
}
.gallery-video-pill {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 4px 12px;
 border-radius: 999px;
 background: rgba(13, 122, 168, 0.12);
 color: var(--jcdc-blue);
 font-size: .8rem;
 font-weight: 750;
 text-transform: uppercase;
 letter-spacing: .05em;
 margin-bottom: 12px;
}
.gallery-video-meta h2 {
 font-size: clamp(1.4rem, 2.2vw, 1.85rem);
 font-weight: 800;
 margin-bottom: 8px;
}
.gallery-video-wrapper {
 margin-top: 24px;
 border-radius: 18px;
 overflow: hidden;
 aspect-ratio: 16 / 9;
 box-shadow: 0 10px 30px rgba(19, 62, 87, 0.1);
 background: #000;
}
.gallery-video-wrapper iframe {
 width: 100%;
 height: 100%;
 border: 0;
 display: block;
}

/* Portfolio Header */
.gallery-portfolio-section {
 scroll-margin-top: 90px;
}
.gallery-portfolio-header {
 margin-bottom: 24px;
 text-align: start;
}
.gallery-section-eyebrow {
 font-size: .82rem;
 font-weight: 800;
 letter-spacing: .14em;
 text-transform: uppercase;
 color: var(--jcdc-blue);
 margin-bottom: 8px;
}
.gallery-portfolio-header h2 {
 font-size: clamp(1.75rem, 2.8vw, 2.4rem);
 font-weight: 800;
 margin-bottom: 10px;
}
.gallery-section-desc {
 font-size: 1.05rem;
 line-height: 1.7;
 color: var(--bs-secondary-color);
 max-width: 820px;
 margin: 0;
}

/* Filter & Tabs Navigation (Category Tabs) */
.gallery-tabs-scroll-wrap {
 overflow-x: auto;
 padding: 5px 4px 9px;
 scrollbar-width: thin;
}
.gallery-nav-tabs {
 border: 0;
 display: flex;
 flex-wrap: nowrap;
 gap: clamp(6px, .65vw, 10px);
 width: max-content;
 margin: 0;
}
.gallery-nav-tabs .gallery-tab-btn {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 min-height: 44px;
 padding: 5px clamp(9px, .8vw, 12px);
 border-radius: var(--jcdc-button-radius) !important;
 border: 1px solid var(--bs-border-color);
 background: var(--bs-tertiary-bg);
 color: var(--jcdc-deep);
 font-size:.875rem;
 font-weight: 700;
 cursor: pointer;
 white-space: nowrap;
 transition: all .2s ease;
}
.gallery-tab-btn:hover {
 border-color: var(--jcdc-blue);
 color: var(--jcdc-blue);
 background: rgba(13, 122, 168, 0.08);
}
.gallery-nav-tabs .gallery-tab-btn.active {
 background: var(--gallery-tab-selected);
 color: var(--gallery-tab-on-selected);
 border-color: var(--gallery-tab-selected);
}
.gallery-nav-tabs .gallery-tab-btn.active:hover {
 background: var(--gallery-tab-selected-hover);
}
.gallery-tab-badge {
 font-size: .72rem;
 padding: 2px 6px;
 border-radius: 999px;
 background: rgba(0, 0, 0, 0.08);
}
.gallery-tab-btn.active .gallery-tab-badge {
 background: rgba(0, 0, 0, 0.1);
 color: inherit;
}
.gallery-nav-tabs .gallery-tab-btn:focus-visible {
 outline: 2px solid var(--jcdc-deep);
 outline-offset: 2px;
}
@media (min-width: 1024px) {
 .gallery-nav-tabs { width: auto; }
 .gallery-nav-tabs > li { min-width: 0; }
 .gallery-nav-tabs .gallery-tab-btn {
  width: 100%;
  height: 100%;
  gap: 5px;
  padding-inline: 9px;
  line-height: 1.2;
  text-align: start;
  white-space: normal;
 }
 .gallery-nav-tabs .gallery-tab-btn > span:not(.gallery-tab-badge) {
  min-width: 0;
  overflow-wrap: anywhere;
 }
 .gallery-nav-tabs :is(i, .gallery-tab-badge) { flex: none; }
}

.gallery-tab-intro {
 margin-bottom: 30px;
 padding: 22px 26px;
 border-radius: 18px;
 background: rgba(13, 122, 168, 0.05);
 border-left: 4px solid var(--jcdc-blue);
}
.gallery-tab-intro h3 {
 font-size: clamp(1.3rem, 2vw, 1.65rem);
 font-weight: 800;
 color: var(--jcdc-deep);
 margin-bottom: 6px;
}
.gallery-tab-intro p {
 font-size: .98rem;
 line-height: 1.65;
 margin-bottom: 0;
}

/* Workshop & SpecialPreneurs Sub-groups */
.gallery-subgroup-section {
 margin-top: 48px;
 padding-top: 24px;
 border-top: 1px solid rgba(13, 122, 168, 0.12);
}
.gallery-subgroup-header {
 margin-bottom: 22px;
}
.gallery-subgroup-pill {
 display: inline-block;
 font-size: .75rem;
 font-weight: 800;
 letter-spacing: .08em;
 text-transform: uppercase;
 color: var(--jcdc-blue);
 margin-bottom: 6px;
}
.gallery-subgroup-header h4, .gallery-subgroup-header h5 {
 font-size: clamp(1.25rem, 1.8vw, 1.55rem);
 font-weight: 800;
 color: var(--jcdc-deep);
 margin-bottom: 6px;
}
.gallery-subgroup-desc {
 color: var(--bs-secondary-color);
 font-size: .95rem;
 line-height: 1.6;
 max-width: 840px;
 margin-bottom: 0;
}

/* Events Sectioning */
.gallery-year-container {
 margin-top: 42px;
 padding: clamp(24px, 4vw, 36px);
 border-radius: 26px;
 background: var(--bs-tertiary-bg);
 border: 1px solid rgba(13, 122, 168, 0.16);
 box-shadow: 0 8px 30px rgba(19, 62, 87, 0.04);
 margin-bottom: 40px;
}
.gallery-year-banner {
 margin-bottom: 30px;
 padding-bottom: 20px;
 border-bottom: 2px solid rgba(13, 122, 168, 0.14);
}
.gallery-year-tag {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 68px;
 height: 68px;
 border-radius: 18px;
 background: var(--jcdc-blue);
 color: #fff;
 font-size: 1.45rem;
 font-weight: 850;
 letter-spacing: -.02em;
 box-shadow: 0 6px 18px rgba(13, 122, 168, 0.35);
 flex-shrink: 0;
}
.gallery-year-heading {
 font-size: clamp(1.4rem, 2.2vw, 1.85rem);
 font-weight: 800;
 color: var(--jcdc-deep);
 margin-bottom: 4px;
}
.gallery-year-lead {
 font-size: .98rem;
 color: var(--bs-secondary-color);
}

.gallery-event-block {
 margin-top: 30px;
 padding: clamp(20px, 3vw, 28px);
 border-radius: 20px;
 background: var(--bs-body-bg);
 border: 1px solid rgba(13, 122, 168, 0.12);
 box-shadow: 0 6px 20px rgba(19, 62, 87, 0.04);
}
.gallery-event-heading-wrap {
 margin-bottom: 20px;
 padding-bottom: 14px;
 border-bottom: 1px solid rgba(13, 122, 168, 0.1);
}
.gallery-event-badge {
 display: inline-flex;
 align-items: center;
 padding: 4px 12px;
 border-radius: 999px;
 font-size: .74rem;
 font-weight: 800;
 letter-spacing: .06em;
 text-transform: uppercase;
 background: rgba(13, 122, 168, 0.1);
 color: var(--jcdc-blue);
 margin-bottom: 8px;
}
.gallery-event-title {
 font-size: clamp(1.2rem, 1.7vw, 1.45rem);
 font-weight: 800;
 color: var(--jcdc-deep);
 margin-bottom: 6px;
}
.gallery-event-desc {
 color: var(--bs-secondary-color);
 font-size: .94rem;
 line-height: 1.6;
 margin-bottom: 0;
 max-width: 820px;
}

/* Event Filter Bar & Controls */
.gallery-events-filter-bar {
 --gallery-filter-accent: #075d86;
 --gallery-filter-ink: #153649;
 --gallery-filter-muted: #4b6370;
 --gallery-filter-line: #7a929d;
 --gallery-filter-surface: #fff;
 --gallery-filter-panel: #eef7f9;
 background: var(--gallery-filter-panel);
 border: 1px solid var(--bs-border-color);
 border-radius: 16px;
 padding: clamp(16px, 2.5vw, 24px);
}
.gallery-events-filter-grid {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, .55fr);
 align-items: end;
 gap: 14px;
}
.gallery-events-filter-grid:has(#eventSortOrder) {
 grid-template-columns: minmax(0, 1fr) minmax(0, .55fr) minmax(0, .5fr);
}
.gallery-events-filter-grid label {
 display: block;
 margin-bottom: 6px;
 color: var(--gallery-filter-ink);
 font-size: .88rem;
 font-weight: 700;
}
.gallery-event-search,
.gallery-events-filter-bar .form-select {
 min-height: 48px;
 border: 1px solid var(--gallery-filter-line);
 border-radius: 12px;
 background-color: var(--gallery-filter-surface);
 color: var(--gallery-filter-ink);
 font-size: 1rem;
}
.gallery-event-search {
 display: flex;
 align-items: center;
 gap: 10px;
 padding-inline: 14px 3px;
}
.gallery-event-search > i { color: var(--gallery-filter-accent); }
.gallery-event-search input {
 flex: 1;
 min-width: 0;
 min-height: 46px;
 padding: 0;
 border: 0;
 background: transparent;
 color: inherit;
 font: inherit;
 appearance: none;
}
.gallery-event-search input::placeholder { color: var(--gallery-filter-muted); opacity: 1; }
.gallery-event-search input::-webkit-search-cancel-button { display: none; }
.gallery-event-search input:focus { outline: none; }
.gallery-event-search button {
 flex: 0 0 44px;
 min-height: 44px;
 padding: 0;
 border: 0;
 border-radius: 8px;
 background: transparent;
 color: var(--gallery-filter-accent);
}
.gallery-event-search button:hover { background: var(--gallery-filter-panel); }
.gallery-event-search:focus-within,
.gallery-events-filter-bar .form-select:focus {
 border-color: var(--gallery-filter-accent);
 outline: 2px solid var(--gallery-filter-accent);
 outline-offset: 2px;
 box-shadow: none;
}
.gallery-events-filter-summary {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 0 12px;
 margin-top: 14px;
 border-top: 1px solid var(--bs-border-color);
 color: var(--gallery-filter-muted);
 font-size: .9rem;
}
.gallery-events-filter-summary a {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 min-height: 44px;
 color: var(--gallery-filter-accent);
 font-weight: 700;
}
.gallery-events-filter-summary a:hover { color: var(--gallery-filter-ink); }
@media (max-width: 767.98px) {
 .gallery-events-filter-grid, .gallery-events-filter-grid:has(#eventSortOrder) {
  grid-template-columns: minmax(0, 1fr);
 }
}
.gallery-empty-state {
 background: var(--bs-body-bg);
 border: 2px dashed rgba(13, 122, 168, 0.2);
 border-radius: 20px;
 padding: 48px 24px;
}

/* Split Card Layout for Events (Image on left, Wording on right) */
.gallery-events-split-list {
 display: flex;
 flex-direction: column;
 gap: 32px;
}
.gallery-split-card {
 display: grid;
 grid-template-columns: 52% 48%;
 border-radius: 24px;
 overflow: hidden;
 background: var(--bs-body-bg);
 border: 1px solid rgba(13, 122, 168, 0.14);
 box-shadow: 0 10px 30px rgba(19, 62, 87, 0.06);
 transition: transform .25s ease, box-shadow .25s ease;
 min-width: 0;
}
.gallery-split-card:hover {
 box-shadow: 0 16px 40px rgba(19, 62, 87, 0.12);
}

.gallery-split-left {
 position: relative;
 min-width: 0;
 display: flex;
 flex-direction: column;
 background: #0b1c26;
 overflow: hidden;
}
.gallery-split-slider {
 position: relative;
 width: 100%;
 height: 100%;
 min-height: 100%;
}
.gallery-split-slider .carousel-inner {
 height: 100%;
}
.gallery-split-slider .carousel-item {
 height: 100%;
}
.gallery-split-slider .carousel-item.active,
.gallery-split-slider .carousel-item-next,
.gallery-split-slider .carousel-item-prev {
 display: flex;
 height: 100%;
}
.gallery-split-media-wrap {
 position: relative;
 width: 100%;
 height: 100%;
 min-height: 380px;
 aspect-ratio: 4 / 3;
 overflow: hidden;
 background: #0f2330;
 display: flex;
 align-items: center;
 justify-content: center;
}
.gallery-split-img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 cursor: pointer;
 border-radius: 0 !important;
 transition: transform .35s ease;
}
.gallery-split-media-wrap:hover .gallery-split-img {
 transform: scale(1.03);
}
.gallery-split-zoom-hint {
 position: absolute;
 top: 14px;
 right: 14px;
 z-index: 4;
 background: rgba(19, 62, 87, 0.85);
 backdrop-filter: blur(4px);
 color: #fff;
 font-size: .76rem;
 font-weight: 700;
 padding: 5px 12px;
 border-radius: 999px;
 pointer-events: none;
 opacity: 0;
 transform: translateY(-4px);
 transition: all .2s ease;
}
.gallery-split-media-wrap:hover .gallery-split-zoom-hint {
 opacity: 1;
 transform: translateY(0);
}

/* Explicit Slider Arrow Controls */
.gallery-split-slider .carousel-control-prev,
.gallery-split-slider .carousel-control-next,
.gallery-slider-arrow {
 position: absolute;
 top: 50%;
 bottom: auto;
 transform: translateY(-50%);
 width: 44px;
 height: 44px;
 border-radius: var(--jcdc-button-radius);
 background: rgba(19, 62, 87, 0.88);
 color: #fff;
 border: 1px solid rgba(255, 255, 255, 0.4);
 display: flex;
 align-items: center;
 justify-content: center;
 z-index: 10;
 opacity: .92;
 cursor: pointer;
 transition: all .2s ease;
 box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
 padding: 0;
}
.gallery-slider-arrow--prev {
 left: 14px;
 right: auto;
}
.gallery-slider-arrow--next {
 right: 14px;
 left: auto;
}
.gallery-slider-arrow:hover,
.gallery-slider-arrow:focus-visible {
 opacity: 1;
 background: var(--jcdc-blue);
 color: #fff;
 transform: translateY(-50%) scale(1.08);
}
.gallery-slider-arrow i {
 font-size: 1.1rem;
 pointer-events: none;
}
.gallery-slider-footer {
 position: absolute;
 bottom: 14px;
 left: 0;
 right: 0;
 display: flex;
 justify-content: center;
 pointer-events: none;
 z-index: 6;
}
.gallery-slider-counter {
 background: rgba(19, 62, 87, 0.85);
 backdrop-filter: blur(4px);
 color: #fff;
 font-size: .8rem;
 font-weight: 750;
 padding: 4px 14px;
 border-radius: 999px;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
 letter-spacing: .04em;
}

/* Right Side: Wording */
.gallery-split-right {
 padding: clamp(22px, 3.5vw, 36px);
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 min-width: 0;
}
.gallery-split-title {
 font-size: clamp(1.25rem, 1.8vw, 1.6rem);
 font-weight: 800;
 color: var(--jcdc-deep);
 line-height: 1.3;
 margin-bottom: 8px;
}
.gallery-split-lead {
 font-size: .94rem;
 line-height: 1.62;
 color: var(--bs-secondary-color);
 margin-bottom: 16px;
}
.gallery-split-caption-card {
 background: var(--bs-tertiary-bg);
 border: 1px solid rgba(13, 122, 168, 0.15);
 border-left: 4px solid var(--jcdc-blue);
 border-radius: 14px;
 padding: 14px 18px;
 margin-block: 10px 16px;
 transition: background .2s ease, border-color .2s ease;
}
.gallery-caption-label {
 font-size: .76rem;
 font-weight: 800;
 letter-spacing: .06em;
 text-transform: uppercase;
 color: var(--bs-secondary-color);
}
.gallery-caption-title {
 font-size: .98rem;
 font-weight: 750;
 color: var(--jcdc-deep);
 margin-top: 4px;
 margin-bottom: 4px;
}
.gallery-caption-desc {
 font-size: .88rem;
 line-height: 1.55;
 color: var(--bs-secondary-color);
 margin-bottom: 0;
}
.gallery-split-footer {
 border-top: 1px solid rgba(13, 122, 168, 0.1);
}

/* Responsive Viewport Fluidity */
@media (max-width: 991px) {
 .gallery-split-card {
  grid-template-columns: 1fr;
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
 }
 .gallery-split-left {
  width: 100%;
 }
 .gallery-split-media-wrap {
  min-height: 260px;
  height: auto;
  aspect-ratio: 16 / 10;
 }
 .gallery-split-right {
  padding: 22px 18px;
 }
 .gallery-slider-arrow {
  width: 42px;
  height: 42px;
 }
}
@media (max-width: 575px) {
 .gallery-year-container {
  padding: 18px 14px;
  border-radius: 18px;
  margin-top: 24px;
  margin-bottom: 24px;
 }
 .gallery-year-banner .d-flex {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 12px !important;
 }
 .gallery-year-tag {
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
  border-radius: 14px;
 }
 .gallery-split-card {
  border-radius: 16px;
 }
 .gallery-split-media-wrap {
  min-height: 220px;
  aspect-ratio: 4 / 3;
 }
 .gallery-split-right {
  padding: 16px 14px;
 }
 .gallery-split-actions .btn {
  width: 100%;
  text-align: center;
 }
 .gallery-slider-arrow--prev {
  left: 8px;
 }
 .gallery-slider-arrow--next {
  right: 8px;
 }
}

.gallery-card-desc {
 font-size: .88rem;
 line-height: 1.55;
 color: var(--bs-secondary-color);
 margin-bottom: 0;
 margin-top: 4px;
}

/* Legacy Filter Buttons Compatibility */
.gallery-filter-nav {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 padding-block: 22px 14px;
}
.gallery-filter-btn {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 padding: 10px 20px;
 border-radius: var(--jcdc-button-radius);
 border: 1px solid var(--bs-border-color);
 background: var(--bs-body-bg);
 color: var(--jcdc-deep);
 font-size: .92rem;
 font-weight: 650;
 cursor: pointer;
 transition: all .2s ease;
}
.gallery-filter-btn:hover {
 border-color: var(--jcdc-blue);
 color: var(--jcdc-blue);
 background: rgba(13, 122, 168, 0.05);
}
.gallery-filter-btn.is-active {
 background: var(--jcdc-blue) !important;
 color: #fff !important;
 border-color: var(--jcdc-blue) !important;
 box-shadow: 0 4px 14px rgba(13, 122, 168, 0.3);
}
.gallery-filter-badge {
 font-size: .78rem;
 padding: 2px 8px;
 border-radius: 999px;
 background: rgba(0, 0, 0, 0.07);
}
.gallery-filter-btn.is-active .gallery-filter-badge {
 background: rgba(255, 255, 255, 0.25);
 color: #fff;
}

.gallery-status-bar {
 font-size: .88rem;
 font-weight: 600;
 color: var(--bs-secondary-color);
 margin-bottom: 24px;
}

/* Responsive Card Grid */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
 gap: 26px;
}
@media (max-width: 575px) {
 .gallery-grid {
  grid-template-columns: 1fr;
 }
}

/* Gallery Figure Card */
.gallery-card {
 margin: 0;
 border: 1px solid rgba(13, 122, 168, 0.12);
 border-radius: 20px;
 overflow: hidden;
 background: var(--bs-body-bg);
 box-shadow: 0 8px 24px rgba(19, 62, 87, 0.05);
 transition: transform .25s ease, box-shadow .25s ease;
 display: flex;
 flex-direction: column;
}
.gallery-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 16px 36px rgba(19, 62, 87, 0.11);
}

.gallery-card-thumb-wrap {
 position: relative;
 aspect-ratio: 4 / 3;
 overflow: hidden;
 background: #eef4f7;
 cursor: pointer;
}
.gallery-thumbnail {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 border-radius: 0 !important;
 transition: transform .35s ease;
}
.gallery-card:hover .gallery-thumbnail {
 transform: scale(1.045);
}

.gallery-card-badge {
 position: absolute;
 top: 12px;
 left: 12px;
 z-index: 2;
 font-size: .74rem;
 font-weight: 750;
 padding: 4px 11px;
 border-radius: 999px;
 background: rgba(19, 62, 87, 0.86);
 color: #fff;
 backdrop-filter: blur(4px);
 pointer-events: none;
 box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.gallery-zoom-pill {
 position: absolute;
 bottom: 12px;
 right: 12px;
 z-index: 2;
 font-size: .75rem;
 font-weight: 700;
 padding: 5px 12px;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.94);
 color: var(--jcdc-deep);
 opacity: 0;
 transform: translateY(6px);
 transition: all .2s ease;
 pointer-events: none;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gallery-card:hover .gallery-zoom-pill {
 opacity: 1;
 transform: translateY(0);
}

.gallery-card-caption {
 padding: 18px 20px 20px;
 display: flex;
 flex-direction: column;
 gap: 6px;
 flex-grow: 1;
}
.gallery-card-title {
 font-size: 1.05rem;
 font-weight: 750;
 line-height: 1.35;
 color: var(--jcdc-deep);
 margin: 0;
}
.gallery-card-meta {
 margin-top: auto;
}
.gallery-card-sub {
 font-size: .84rem;
 font-weight: 550;
 color: #627787;
}

/* Bottom CTA Banner */
.gallery-bottom-cta {
 margin-top: 76px;
}
.gallery-cta-inner {
 display: grid;
 grid-template-columns: 1.35fr 1fr;
 gap: 36px;
 align-items: center;
 border-radius: 26px;
 padding: clamp(34px, 5vw, 56px);
 background: #133e57;
 color: #fff;
 box-shadow: 0 16px 44px rgba(19, 62, 87, 0.18);
}
@media (max-width: 991px) {
 .gallery-cta-inner {
  grid-template-columns: 1fr;
  gap: 26px;
 }
}
.gallery-cta-eyebrow {
 font-size: .82rem;
 font-weight: 800;
 letter-spacing: .14em;
 text-transform: uppercase;
 color: #ace4f8;
 margin-bottom: 12px;
}
.gallery-cta-copy h2 {
 font-size: clamp(1.8rem, 2.8vw, 2.35rem);
 font-weight: 800;
 line-height: 1.25;
 color: #fff;
 margin-bottom: 14px;
}
.gallery-cta-copy p {
 color: #d0e3ed;
 font-size: 1.05rem;
 line-height: 1.7;
 margin-bottom: 0;
}
.gallery-cta-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 14px;
 justify-content: flex-end;
}
.gallery-whatsapp-btn {
 --bs-btn-bg: #25d366;
 --bs-btn-border-color: var(--bs-btn-bg);
 --bs-btn-color: #09261a;
 --bs-btn-hover-bg: #5be58e;
 --bs-btn-hover-border-color: var(--bs-btn-hover-bg);
 --bs-btn-hover-color: var(--bs-btn-color);
 --bs-btn-active-bg: #1fbc5d;
 --bs-btn-active-border-color: var(--bs-btn-active-bg);
 --bs-btn-active-color: var(--bs-btn-color);
}
.gallery-whatsapp-btn:focus-visible {
 outline: 2px solid #fff;
 outline-offset: 3px;
}
@media (max-width: 991px) {
 .gallery-cta-actions {
  justify-content: flex-start;
 }
}

/* Dark Theme Overrides for Gallery */
[data-bs-theme=dark] .gallery-card {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
[data-bs-theme=dark] .gallery-card-thumb-wrap {
 background: var(--dark-page);
}
[data-bs-theme=dark] .gallery-card-title {
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-card-sub {
 color: #94a3b8;
}
[data-bs-theme=dark] .gallery-filter-btn {
 background: var(--dark-raised);
 border-color: rgb(255 255 255 / 12%);
 color: #e2e8f0;
}
[data-bs-theme=dark] .gallery-filter-btn:hover {
 border-color: #38bdf8;
 color: #7dd3fc;
 background: rgba(56, 189, 248, 0.15);
}
[data-bs-theme=dark] .gallery-filter-btn.active {
 background: #0369a1 !important;
 border-color: #0369a1 !important;
 color: #ffffff !important;
 box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}
[data-bs-theme=dark] .gallery-filter-badge {
 background: rgba(255, 255, 255, 0.1);
 color: #cbd5e1;
}
[data-bs-theme=dark] .gallery-video-card {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme=dark] .gallery-video-pill {
 background: rgba(56, 189, 248, 0.12);
 border: 1px solid rgba(56, 189, 248, 0.25);
 color: #7dd3fc;
}
[data-bs-theme=dark] .gallery-hero-headline {
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-hero-badge {
 background: rgba(56, 189, 248, 0.12);
 border-color: rgba(56, 189, 248, 0.3);
 color: #7dd3fc;
}
[data-bs-theme=dark] .gallery-zoom-pill {
 background: rgba(23, 36, 48, 0.94);
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-tab-btn {
 background: var(--dark-raised);
 border-color: rgb(255 255 255 / 12%);
 color: #e2e8f0;
}
[data-bs-theme=dark] .gallery-tab-btn:hover {
 border-color: #38bdf8;
 color: #7dd3fc;
 background: rgba(56, 189, 248, 0.15);
}
[data-bs-theme=dark] .gallery-tab-intro {
 background: rgba(56, 189, 248, 0.12);
 border: 1px solid rgba(56, 189, 248, 0.2);
}
[data-bs-theme=dark] .gallery-year-container {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme=dark] .gallery-year-banner {
 border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme=dark] .gallery-year-heading {
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-event-block {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme=dark] .gallery-event-title,
[data-bs-theme=dark] .gallery-subgroup-header h4,
[data-bs-theme=dark] .gallery-subgroup-header h5 {
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-events-filter-bar {
 --gallery-filter-accent: #8bdaf3;
 --gallery-filter-ink: #eaf5f9;
 --gallery-filter-muted: #bacdd5;
 --gallery-filter-line: #879da8;
 --gallery-filter-surface: var(--dark-panel);
 --gallery-filter-panel: var(--dark-panel);
}
[data-bs-theme=dark] .gallery-events-filter-bar .form-select option {
 background-color: var(--gallery-filter-surface);
 color: var(--gallery-filter-ink);
}
[data-bs-theme=dark] .gallery-empty-state {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme=dark] .gallery-split-card {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
[data-bs-theme=dark] .gallery-split-card:hover {
 box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
[data-bs-theme=dark] .gallery-split-left {
 background: var(--dark-page);
}
[data-bs-theme=dark] .gallery-split-media-wrap {
 background: var(--dark-page);
}
[data-bs-theme=dark] .gallery-slider-arrow {
 background: rgba(15, 28, 36, 0.9);
 border-color: rgba(255, 255, 255, 0.2);
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-slider-arrow:hover,
[data-bs-theme=dark] .gallery-slider-arrow:focus-visible {
 background: #0369a1;
 border-color: #0369a1;
 color: #ffffff;
}
[data-bs-theme=dark] .gallery-split-title {
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-split-lead {
 color: #94a3b8;
}
[data-bs-theme=dark] .gallery-split-caption-card {
 background: var(--dark-panel);
 border-color: rgba(255, 255, 255, 0.08);
 border-left-color: #38bdf8;
}
[data-bs-theme=dark] .gallery-caption-title {
 color: #f1f5f9;
}
[data-bs-theme=dark] .gallery-caption-desc {
 color: #cbd5e1;
}
[data-bs-theme=dark] .gallery-split-footer {
 border-top-color: rgba(255, 255, 255, 0.08);
}









/* Articles list: category links, search submit, active-filter chips and pagination (server-side parameters). */
.article-category-bar a,
.article-category-bar button[form="jcdc-post"]{display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(13,122,168,.25);padding:9px 18px;border-radius:var(--jcdc-button-radius);background:var(--bs-body-bg);font-size:.85rem;font-weight:600;color:var(--bs-secondary-color,#506573);text-decoration:none;transition: border-color .2s,background .2s,color .2s, box-shadow .15s ease, translate .15s ease}
.article-category-bar a:hover,
.article-category-bar button[form="jcdc-post"]:hover,.article-category-bar a:focus-visible,.article-category-bar button[form="jcdc-post"]:focus-visible{border-color:var(--jcdc-blue);color:var(--jcdc-blue)}
.article-category-bar a.active,
.article-category-bar button[form="jcdc-post"].active{background:var(--jcdc-deep);border-color:var(--jcdc-deep);color:#fff}
.article-category-bar .cat-count{display:inline-grid;place-items:center;min-width:1.45rem;height:1.45rem;padding:0 .35rem;border-radius:999px;background:rgba(13,122,168,.12);color:var(--jcdc-blue);font-size:.72rem;font-weight:700;line-height:1}
.article-category-bar a.active .cat-count,
.article-category-bar button[form="jcdc-post"].active .cat-count{background:rgba(255,255,255,.2);color:#fff}
.article-search-input-shell .search-clear-btn{display:grid;place-items:center;width:1.6rem;height:1.6rem;text-decoration:none}
.article-search-input-shell .search-submit{flex:0 0 auto;border:0;border-radius:var(--jcdc-button-radius);background:var(--jcdc-blue);color:#fff;font-size:.875rem;font-weight:700;padding:.4rem 1rem;cursor:pointer;transition: background .2s, box-shadow .15s ease, translate .15s ease}
.article-search-input-shell .search-submit:hover,.article-search-input-shell .search-submit:focus-visible{background:var(--jcdc-deep)}
.article-active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:18px}
.filter-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid rgba(13,122,168,.3);border-radius:var(--jcdc-button-radius);background:rgba(13,122,168,.08);color:var(--jcdc-deep);font-size:.82rem;font-weight:600;text-decoration:none}
.filter-chip:hover,.filter-chip:focus-visible{border-color:var(--jcdc-blue);color:var(--jcdc-blue)}
.filter-clear{margin-left:4px;color:var(--jcdc-blue);font-size:.82rem;font-weight:700;text-decoration:none}
.filter-clear:hover,.filter-clear:focus-visible{color:var(--jcdc-deep);text-decoration:none}
.thread-pill{text-decoration:none}
.article-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(13,122,168,.14)}
.article-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0}
.article-pager-meta{display:flex;align-items:center;gap:12px;margin-left:auto;font-size:.84rem;color:var(--bs-secondary-color,#506573)}
.page-size{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid rgba(13,122,168,.18);border-radius:10px;background:var(--bs-body-bg)}
.page-size-label{padding:0 .55rem;font-size:.8rem;font-weight:600;color:var(--bs-secondary-color,#506573)}
.page-size a,
.page-size button[form="jcdc-post"]{display:inline-grid;place-items:center;min-width:2rem;height:2rem;padding:0 .45rem;border-radius:var(--jcdc-button-radius);color:var(--jcdc-deep);font-size:.84rem;font-weight:650;text-decoration:none;transition:background .15s ease,color .15s ease}
.page-size a:hover,
.page-size button[form="jcdc-post"]:hover,.page-size a:focus-visible,.page-size button[form="jcdc-post"]:focus-visible{background:rgba(13,122,168,.1);color:var(--jcdc-blue-text,#0a6a94)}
.page-size a.active,
.page-size button[form="jcdc-post"].active{background:rgba(13,122,168,.14);color:var(--jcdc-blue-text,#0a6a94);font-weight:800}
[data-bs-theme=dark] .article-pager{border-top-color:rgba(255,255,255,.1)}
[data-bs-theme=dark] .page-size{background:var(--dark-raised);border-color:rgba(255,255,255,.14)}
[data-bs-theme=dark] .page-size-label{color:#94a3b8}
[data-bs-theme=dark] .page-size a,
[data-bs-theme=dark] .page-size button[form="jcdc-post"]{color:#cbd5e1}
[data-bs-theme=dark] .page-size a.active,
[data-bs-theme=dark] .page-size button[form="jcdc-post"].active{background:rgba(56,189,248,.18);color:#7dd3fc}
.article-pagination ol{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.article-pagination ol a,
.article-pagination ol button[form="jcdc-post"],
.article-pagination ol .page-current,
.article-pagination .page-gap,
.article-pagination .page-step{display:inline-grid;place-items:center;min-width:2.5rem;height:2.5rem;padding:0 .5rem;border-radius:var(--jcdc-button-radius);font-size:.9rem;font-weight:700;text-decoration:none}
.article-pagination ol a,
.article-pagination ol button[form="jcdc-post"],
.article-pagination .page-step{border:1px solid rgba(13,122,168,.22);background:var(--bs-body-bg);color:var(--jcdc-deep);transition:border-color .2s,background .2s,color .2s,box-shadow .15s ease,translate .15s ease}
.article-pagination ol a:hover,
.article-pagination ol button[form="jcdc-post"]:hover,.article-pagination ol a:focus-visible,.article-pagination ol button[form="jcdc-post"]:focus-visible,
.article-pagination a.page-step:hover,
.article-pagination button[form="jcdc-post"].page-step:hover,.article-pagination a.page-step:focus-visible,.article-pagination button[form="jcdc-post"].page-step:focus-visible{border-color:var(--jcdc-blue);background:rgba(13,122,168,.08);color:var(--jcdc-blue-text,#0a6a94)}
.article-pagination ol a.active,
.article-pagination ol button[form="jcdc-post"].active,
.article-pagination ol .page-current{background:var(--jcdc-deep);border:1px solid var(--jcdc-deep);color:#fff}
.article-pagination .page-gap{min-width:1.75rem;color:var(--bs-secondary-color,#708492)}
.article-pagination .page-step{font-size:.82rem}
.article-pagination .page-step.is-disabled{border-color:rgba(13,122,168,.12);background:transparent;color:#94a3b8;cursor:not-allowed;box-shadow:none}
[data-bs-theme=dark] .article-category-bar a,
[data-bs-theme=dark] .article-category-bar button[form="jcdc-post"]{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#8daec0}
[data-bs-theme=dark] .article-category-bar a.active,
[data-bs-theme=dark] .article-category-bar button[form="jcdc-post"].active{background:var(--jcdc-blue);border-color:var(--jcdc-blue);color:#fff}
[data-bs-theme=dark] .article-category-bar .cat-count{background:rgba(255,255,255,.12);color:#9fdcf5}
[data-bs-theme=dark] .filter-chip{background:var(--dark-raised);border-color:rgba(255,255,255,.18);color:#e2eff7}
[data-bs-theme=dark] .article-pagination ol a,
[data-bs-theme=dark] .article-pagination ol button[form="jcdc-post"],[data-bs-theme=dark] .article-pagination .page-step{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#e2eff7}
[data-bs-theme=dark] .article-pagination .page-step.is-disabled{background:transparent;border-color:rgba(255,255,255,.1);color:#64748b}
[data-bs-theme=dark] .article-pagination ol a.active,
[data-bs-theme=dark] .article-pagination ol button[form="jcdc-post"].active,
[data-bs-theme=dark] .article-pagination ol .page-current{background:#0369a1;border-color:#0369a1;color:#fff}
@media(max-width:575.98px){.article-pager{justify-content:center}.article-pagination{justify-content:center;width:100%}.article-pager-meta{margin-left:0;justify-content:center}.article-search-input-shell .search-submit{padding:.4rem .75rem}}
.nav-tools a.language-switch,
.nav-tools button[form="jcdc-post"].language-switch{display:inline-flex;align-items:center;gap:.45rem}

/* ==========================================================================
   JCDC Overhauled Career Page Styles
   Includes hero highlights, retained responsive culture carousel, values & perks,
   filterable job listings, staff resources, video showcase, and full dark-mode support.
   ========================================================================== */
.career-title-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.career-badge-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 38px 20px 25px;
  overflow: hidden;
}
.career-team-pass {
  position: relative;
  display: grid;
  width: min(100%, 238px);
  border: 1px solid var(--color-border, #8fbed2);
  border-radius: 16px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: 5px 6px 0 rgba(13,122,168,.16);
  transform: rotate(5deg);
}
.career-pass-slot {
  width: 40px;
  height: 7px;
  margin: 14px auto;
  border-radius: 4px;
  background: #48606c;
}
.career-pass-slot::before {
  content: '';
  position: absolute;
  top: -38px;
  left: calc(50% - 7px);
  width: 14px;
  height: 56px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--jcdc-brand-blue) 50%, var(--jcdc-orange) 50%);
}
.career-pass-brand, .career-pass-title, .career-pass-icon { margin-inline: 22px; }
.career-pass-brand { color: var(--jcdc-blue); font-weight: 800; letter-spacing: .12em; }
.career-pass-title { margin-top: 8px; font-size: 1.5rem; font-weight: 750; line-height: 1.12; }
.career-pass-icon { margin-block: 20px; font-size: 2rem; color: var(--jcdc-blue); }
.career-pass-openings {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 0 0 15px 15px;
  background: var(--jcdc-orange);
  color: var(--jcdc-on-orange);
  font-weight: 700;
}
.career-pass-openings:is(:hover,:focus-visible) {
  background: var(--jcdc-orange-hover);
  color: var(--jcdc-on-orange);
  text-decoration: underline;
}
@media (max-width: 767px) {
  .career-title-layout { grid-template-columns: minmax(0,1fr); }
  .career-badge-art { width: min(100%, 340px); justify-self: center; }
}
.career-title-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.career-hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--jcdc-brand-gray);
  margin: 0;
}
.career-hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
  text-align: left;
}
.career-highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.15));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease;
}
.career-highlight-card:hover {
  border-color: var(--jcdc-blue, #0d7aa8);
}
.career-highlight-card i {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.career-highlight-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-heading, #153243);
}
.career-highlight-info small {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted, #64748b);
  line-height: 1.35;
}
/* Section Header Styles */
.career-section-header {
  margin-bottom: 2.25rem;
  text-align: start;
}
.career-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--jcdc-orange-tint);
  color: var(--jcdc-orange-text);
  border: 1px solid currentColor;
  margin-bottom: 0.75rem;
}
.career-section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 750;
  color: var(--color-heading, #153243);
  margin-bottom: 0.65rem;
}
.career-section-desc {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--color-muted, #506573);
  max-width: 760px;
  margin: 0;
}
.career-jobs-section .career-section-desc {
  max-width: none;
}

/* Work-culture photos and their captions share a stable frame. */
.career-slider-section, .career-jobs-section { scroll-margin-block-start: 7rem; }
.career-slider-section { margin-block-end: clamp(48px, 6vw, 80px); }
.career-slider-section .career-section-header { margin-bottom: 1rem; }
.career-slider-box {
  overflow: hidden;
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.2));
  border-radius: 18px;
  background: var(--bs-body-bg);
}
.career-slider-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  color: var(--bs-body-color);
  font-size: .82rem;
  font-weight: 650;
}
.career-slider-counter { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.career-carousel-inner { display: grid; }
.career-carousel-inner .carousel-item {
  display: block;
  grid-area: 1 / 1;
  float: none;
  margin: 0;
  min-width: 0;
  visibility: hidden;
}
.career-carousel-inner :is(.active, .carousel-item-next, .carousel-item-prev) { visibility: visible; }
.career-slide-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bs-tertiary-bg);
}
.career-slide-caption { padding: 14px clamp(14px, 2vw, 24px); }
.career-slide-title {
  margin: 0 0 4px;
  color: var(--jcdc-deep);
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.35;
}
.career-slider-section .career-slide-desc {
  margin: 0;
  color: var(--bs-body-color);
  font-size: .92rem;
  line-height: 1.55;
}
.career-slider-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  padding: 6px clamp(8px, 1.7vw, 16px);
  border-top: 1px solid var(--bs-border-color);
}
.career-carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--jcdc-button-radius);
  background: var(--bs-body-bg);
  color: var(--jcdc-deep);
}
.career-carousel-btn:hover { background: var(--bs-tertiary-bg); }
.career-slider-indicators.carousel-indicators {
  position: static;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}
.career-slider-indicators.carousel-indicators button {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 8px solid transparent;
  border-radius: 50%;
  background: var(--bs-body-color);
  background-clip: padding-box;
  opacity: .65;
}
.career-slider-indicators.carousel-indicators button.active {
  background-color: var(--jcdc-blue-text, var(--jcdc-blue));
  opacity: 1;
}
.career-slider-controls button:focus-visible {
  outline: 2px solid var(--jcdc-blue-text, var(--jcdc-blue));
  outline-offset: 1px;
}


/* Values & Perks Section */
.career-values-section {
  margin-bottom: 5rem;
}
.career-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.career-value-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.15));
  border-radius: 20px;
  padding: 26px 22px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 12px 14px;
  overflow-wrap: anywhere;
}
.career-value-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(13, 122, 168, 0.35);
}
.career-value-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(13, 122, 168, 0.1);
  color: var(--jcdc-blue, #0d7aa8);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.career-value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading, #153243);
  margin: 0;
  line-height: 1.35;
}
.career-value-card p {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-muted, #506573);
  margin: 0;
}

/* Jobs Section */
.career-jobs-section {
  margin-bottom: 5rem;
}
.career-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 1.5rem;
}
.career-filter-pill {
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.25));
  padding: 8px 18px;
  border-radius: var(--jcdc-button-radius);
  background: var(--bs-body-bg, #fff);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-muted, #506573);
  cursor: pointer;
  transition: all 0.2s ease;
}
.career-filter-pill:hover {
  border-color: var(--jcdc-blue, #0d7aa8);
  color: var(--jcdc-blue, #0d7aa8);
}
.career-filter-pill.active {
  background: var(--jcdc-blue, #0d7aa8);
  border-color: var(--jcdc-blue, #0d7aa8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 122, 168, 0.25);
}
.career-jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 2.25rem;
}
.career-job-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.18));
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.career-job-card:is(:hover, :focus-visible) {
  box-shadow: 0 14px 32px rgba(15, 45, 60, 0.09);
  border-color: var(--jcdc-blue, #0d7aa8);
}
.career-job-card:focus-visible {
  outline: 2px solid var(--jcdc-blue, #0d7aa8);
  outline-offset: 2px;
}
.career-job-card.is-hidden {
  display: none !important;
}
.career-job-header {
  margin-bottom: 18px;
}
.career-job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.career-job-dept-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(13, 122, 168, 0.1);
  color: var(--jcdc-blue, #0d7aa8);
}
.career-job-type-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
.career-job-title {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--color-heading, #153243);
  margin: 0 0 8px;
  line-height: 1.3;
}
.career-job-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--color-muted, #64748b);
}
.career-job-body {
  margin-bottom: 22px;
  flex-grow: 1;
}
.career-job-summary {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-muted, #506573);
  margin-bottom: 18px;
}
.career-job-requirements h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-heading, #153243);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.career-job-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.career-job-requirements li {
  display: flex;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-muted, #506573);
}
.career-job-requirements li i {
  margin-top: 4px;
  flex-shrink: 0;
}
.career-job-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border, rgba(13, 122, 168, 0.12));
}
.career-apply-btn {
  flex: 1 1 auto;
}
.career-wa-btn {
  display: inline-flex;
  align-items: center;
}

/* Resources & Notices Section (Scalable Architecture) */
.career-resources-section {
  margin-bottom: 5rem;
}

/* 1. Full-Width SOP & Policy Action Banner */
/* 2. Scalable Clinic Notice Hub (Article Page Style Feed) */
.career-notices-feed {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.18));
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 0 10px 28px rgba(15, 45, 60, 0.05);
}
.career-notices-feed-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border, rgba(13, 122, 168, 0.12));
}
.career-notice-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.career-notice-cat-pill {
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.25));
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bs-body-bg, #fff);
  font-size:.875rem;
  font-weight: 600;
  color: var(--color-muted, #506573);
  cursor: pointer;
  transition: all 0.2s ease;
}
.career-notice-cat-pill:hover {
  border-color: var(--jcdc-blue, #0d7aa8);
  color: var(--jcdc-blue, #0d7aa8);
}
.career-notice-cat-pill.active {
  background: var(--jcdc-blue, #0d7aa8);
  border-color: var(--jcdc-blue, #0d7aa8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 122, 168, 0.25);
}
.career-notices-count-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Notice Rows (Matching Article Feed Row Layout) */
.career-notice-rows {
  display: flex;
  flex-direction: column;
}
.career-notice-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border, rgba(13, 122, 168, 0.14));
  transition: background-color 0.2s ease;
}
.career-notice-row:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}
.career-notice-row.is-hidden {
  display: none !important;
}

/* Thumbnail & Default Placeholder (Matches .story-image & .story-placeholder) */
.career-notice-media {
  display: block;
  text-decoration: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(13, 122, 168, 0.06);
  flex-shrink: 0;
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.15));
}
.career-notice-media:focus-visible {
  outline: 2px solid var(--jcdc-blue, #0d7aa8);
  outline-offset: 2px;
}
.career-notice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Default Placeholder when no thumbnail is present */
.career-notice-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 150px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0d7aa8 0%, #153243 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.career-notice-placeholder::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.placeholder-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.placeholder-brand {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0.92;
}
.placeholder-arrow {
  font-size: 1rem;
  font-weight: 700;
  color: #7dd3fc;
}
.placeholder-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.placeholder-icon {
  font-size: 2.2rem;
  color: #7dd3fc;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
.placeholder-bottom-row {
  position: relative;
  z-index: 2;
}
.placeholder-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Notice Meta & Content (Matching Article Card Typography) */
.career-notice-details {
  display: flex;
  flex-direction: column;
}
.career-notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted, #708492);
  margin-bottom: 8px;
}
.career-notice-category-badge {
  color: var(--jcdc-blue, #0d7aa8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.72rem;
}
.career-notice-meta .meta-dot {
  color: var(--color-border, #cbd5e1);
}
.career-notice-title {
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.32;
  color: var(--color-heading, #153243);
  transition: color 0.2s ease;
}
.career-notice-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.career-notice-title-link:hover,
.career-notice-title-link:focus-visible {
  color: var(--jcdc-blue, #0d7aa8);
  text-decoration: none;
}
.career-notice-row:hover .career-notice-title,
.career-notice-row:hover .career-notice-title-link {
  color: var(--jcdc-blue, #0d7aa8);
}
.career-notice-excerpt {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--color-muted, #506573);
  margin: 0 0 12px;
}
.career-notice-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--jcdc-blue, #0d7aa8);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.career-notice-action:hover {
  gap: 10px;
  color: var(--jcdc-deep, #074763);
}

/* Expand / Collapse Section */
.career-notices-feed-expand {
  text-align: start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border, rgba(13, 122, 168, 0.12));
}

/* Video Showcase Section */
.career-video-section {
  margin-bottom: 5rem;
}
.career-video-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--color-border, rgba(13, 122, 168, 0.18));
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(15, 45, 60, 0.06);
}
.career-video-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 750;
  color: var(--color-heading, #153243);
  margin: 0.75rem 0 1rem;
}
.career-video-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--color-muted, #506573);
  margin-bottom: 1.5rem;
}
.career-video-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.career-video-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading, #153243);
}
.career-video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.career-video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bottom Open Application CTA */
.career-cta-card {
  background: linear-gradient(135deg, #0d7aa8 0%, #074763 100%);
  border-radius: 24px;
  padding: 48px 40px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  box-shadow: 0 16px 40px rgba(13, 122, 168, 0.25);
}
.career-cta-content {
  max-width: 650px;
}
.career-cta-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.career-cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}
.career-cta-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2f2fc;
  margin: 0;
}
.career-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 260px;
}

/* ==========================================================================
   Dark Mode Overrides for Career Page
   ========================================================================== */
[data-bs-theme=dark] .career-section-title,
[data-bs-theme=dark] .career-value-card h3,
[data-bs-theme=dark] .career-job-title,
[data-bs-theme=dark] .career-notices-top h3,
[data-bs-theme=dark] .career-notice-title,
[data-bs-theme=dark] .career-video-title {
  color: #f1f5f9;
}
[data-bs-theme=dark] .career-hero-lead,
[data-bs-theme=dark] .career-section-desc,
[data-bs-theme=dark] .career-value-card p,
[data-bs-theme=dark] .career-job-summary,
[data-bs-theme=dark] .career-job-requirements li,
[data-bs-theme=dark] .career-notices-top p,
[data-bs-theme=dark] .career-notice-content,
[data-bs-theme=dark] .career-video-desc {
  color: #cbd5e1;
}
[data-bs-theme=dark] .career-highlight-card,
[data-bs-theme=dark] .career-value-card,
[data-bs-theme=dark] .career-job-card,
[data-bs-theme=dark] .career-notices-feed,
[data-bs-theme=dark] .career-video-card {
  background: var(--dark-panel);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
[data-bs-theme=dark] .career-notice-placeholder {
  background: linear-gradient(135deg, var(--dark-panel) 0%, #0d7aa8 100%);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme=dark] .career-notice-title {
  color: #f1f5f9;
}
[data-bs-theme=dark] .career-notice-row:hover .career-notice-title {
  color: #38bdf8;
}
[data-bs-theme=dark] .career-notice-excerpt {
  color: #cbd5e1;
}
[data-bs-theme=dark] .career-notice-category-badge {
  color: #38bdf8;
}
[data-bs-theme=dark] .career-notice-action {
  color: #38bdf8;
}
[data-bs-theme=dark] .career-notice-action:hover {
  color: #7dd3fc;
}
[data-bs-theme=dark] .career-notice-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme=dark] .career-notices-feed-top,
[data-bs-theme=dark] .career-notices-feed-expand {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme=dark] .career-notice-cat-pill {
  background: var(--dark-raised);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
[data-bs-theme=dark] .career-notice-cat-pill.active {
  background: var(--jcdc-blue, #0d7aa8);
  color: #fff;
  border-color: var(--jcdc-blue, #0d7aa8);
}
[data-bs-theme=dark] .career-highlight-info strong,
[data-bs-theme=dark] .career-video-feat {
  color: #f8fafc;
}
[data-bs-theme=dark] .career-highlight-info small,
[data-bs-theme=dark] .career-job-submeta {
  color: #94a3b8;
}
[data-bs-theme=dark] .career-filter-pill {
  background: var(--dark-raised);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
[data-bs-theme=dark] .career-filter-pill.active {
  background: var(--jcdc-blue, #0d7aa8);
  color: #fff;
  border-color: var(--jcdc-blue, #0d7aa8);
}
[data-bs-theme=dark] .career-job-dept-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}
[data-bs-theme=dark] .career-job-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme=dark] .career-job-requirements h4 {
  color: #e2e8f0;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
  .career-hero-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .career-jobs-grid {
    grid-template-columns: 1fr;
  }
  .career-video-card {
    grid-template-columns: 1fr;
  }
  .career-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }
  .career-cta-actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .career-notice-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }
  .career-notice-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  .career-hero-highlights {
    grid-template-columns: 1fr;
  }
  .career-values-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .career-job-card {
    padding: 20px;
  }
  .career-job-footer {
    flex-direction: column;
  }
  .career-job-footer .btn {
    width: 100%;
  }
  .career-notices-feed {
    padding: 22px 18px;
  }
  .career-notices-feed-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Home slider (the same layout and behavior as KPM): full width; every slide shares one cell and cross-fades, so the box keeps the height of the tallest slide and never jumps. */
.hero .carousel-inner{display:grid}
.hero .carousel-item{display:block;grid-area:1/1;float:none;margin:0;width:100%;height:auto;min-height:clamp(560px,50vw,720px);transform:none!important;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s .6s}
.hero .carousel-item.active,.hero .carousel-item-next.carousel-item-start,.hero .carousel-item-prev.carousel-item-end{opacity:1;visibility:visible;transition:opacity .6s ease}
.hero .carousel-item.active.carousel-item-start,.hero .carousel-item.active.carousel-item-end{opacity:0;visibility:visible}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:inherit}
@media(max-width:991px){.hero .carousel-item{min-height:0}.hero-copy{min-height:0}}
@media(max-width:991px){.hero h1,.hero h2,.hero-copy h1{font-size:clamp(2.125rem,4.6vw,3rem);line-height:1.2}}

/* Clean addresses (blueprint §4.1): the article list's filters, pages and page sizes are buttons of its view form (a POST, never a
   query); they keep the look of the links they replace. */
:where(.article-feed-wrapper) :where(button[name="state"]){-webkit-appearance:none;appearance:none;margin:0;border:0;background:none;padding:0;font:inherit;color:inherit;text-align:inherit;cursor:pointer}
.article-category-bar button{display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(13,122,168,.25);padding:9px 18px;border-radius:var(--jcdc-button-radius);background:var(--bs-body-bg);font-size:.85rem;font-weight:600;color:var(--bs-secondary-color,#506573);text-decoration:none;transition: border-color .2s,background .2s,color .2s, box-shadow .15s ease, translate .15s ease}
.article-category-bar button:hover,.article-category-bar button:focus-visible{border-color:var(--jcdc-blue);color:var(--jcdc-blue)}
.article-category-bar button.active{background:var(--jcdc-deep);border-color:var(--jcdc-deep);color:#fff}
.page-size button{display:inline-grid;place-items:center;min-width:2.1rem;height:2.1rem;border-radius:var(--jcdc-button-radius);color:var(--jcdc-deep);font-weight:700;text-decoration:none}
.page-size button:hover,.page-size button:focus-visible{background:rgba(13,122,168,.1);color:var(--jcdc-blue)}
.page-size button.active{background:var(--jcdc-deep);color:#fff}
[data-bs-theme=dark] .page-size button{color:#e2eff7}
[data-bs-theme=dark] .page-size button.active{background:var(--jcdc-blue);color:#fff}
.article-pagination ol button{display:inline-grid;place-items:center;min-width:2.5rem;height:2.5rem;border-radius:var(--jcdc-button-radius);font-size:.9rem;font-weight:700}
.article-pagination ol button{border:1px solid rgba(13,122,168,.25);background:var(--bs-body-bg);color:var(--jcdc-deep);text-decoration:none;transition: border-color .2s,background .2s,color .2s, box-shadow .15s ease, translate .15s ease}
.article-pagination ol button:hover,.article-pagination ol button:focus-visible{border-color:var(--jcdc-blue);color:var(--jcdc-blue)}
.article-pagination ol button.active{background:var(--jcdc-deep);border-color:var(--jcdc-deep);color:#fff}
.article-pagination button.page-step:hover,.article-pagination button.page-step:focus-visible{border-color:var(--jcdc-blue);background:rgba(13,122,168,.08)}
[data-bs-theme=dark] .article-category-bar button{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#8daec0}
[data-bs-theme=dark] .article-category-bar button.active{background:var(--jcdc-blue);border-color:var(--jcdc-blue);color:#fff}
[data-bs-theme=dark] .article-pagination ol button{background:var(--dark-raised);border-color:rgba(255,255,255,.15);color:#e2eff7}
[data-bs-theme=dark] .article-pagination ol button.active{background:var(--jcdc-blue);border-color:var(--jcdc-blue);color:#fff}

/* Career cards: a compact card that opens its full description in a dialog. */
.career-job-card.is-openable { cursor: pointer; }
.career-job-footer--card { justify-content: flex-start; }
.career-job-dialog { width: min(680px, 94vw); max-height: 90vh; max-height: 90dvh; overflow: auto; padding: 26px 28px; border: 0; border-radius: 18px; background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #1d2b36); box-shadow: 0 24px 70px rgb(0 0 0 / 35%); }
.career-job-dialog::backdrop { background: rgb(8 20 27 / 72%); backdrop-filter: blur(5px); }
.career-job-dialog[open] { animation: career-dialog-in .22s ease-out; }
@keyframes career-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.career-job-dialog__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.career-job-dialog__close { flex: none; min-width: 44px; min-height: 44px; border: 0; background: none; color: inherit; font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 10px; }
.career-job-dialog__close:hover, .career-job-dialog__close:focus-visible { background: rgb(127 127 127 / 18%); }
.career-job-dialog .career-job-summary { margin: 14px 0; }
.career-job-dialog .career-job-footer { margin-top: 18px; }

/* Image placeholder: the JCDC logo alone, centred on the same blue gradient as the careers call-to-action card. The logo is drawn
   in white (its own dark lettering would vanish on blue); the placeholder is a picture, so it carries no text and no controls. */
.career-notice-placeholder, .story-placeholder, [data-bs-theme=dark] .career-notice-placeholder { display: grid; place-items: center; padding: 0; background: linear-gradient(135deg, #0d7aa8 0%, #074763 100%); color: #fff; border-color: rgba(255, 255, 255, .12); }
.career-notice-placeholder::before { display: none; }
.placeholder-logo { display: block; width: min(62%, 170px); aspect-ratio: 1920 / 1009; }
.placeholder-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; }
.placeholder-logo--small { width: 84%; }
.story-placeholder .placeholder-logo { width: min(50%, 190px); }
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6{font-family:var(--jcdc-heading-font)}

/* Dark palette (blueprint "Dark theme palette"): surfaces are only about four brightness units apart, so panels are separated by thin neutral borders and form controls carry a 3:1 border. */
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select, [data-bs-theme="dark"] .form-check-input:not(:checked) { border-color: var(--dark-control-line); }

/* Article blocks, intro and "On this page" (blueprint 4.3): the typed blocks read like the article prose, light and dark. */
.article-intro{margin:0 0 clamp(20px,3vw,32px)}
.article-intro .article-featured-media{margin:0 0 24px}
.article-intro .article-prose{margin:0}
.article-intro .article-lead{font-size:1.2rem;line-height:1.7;color:var(--jcdc-deep);margin:0}
.article-toc{margin:0 0 32px;border:1px solid rgba(13,122,168,.18);border-radius:16px;background:#f4f9fb;color:var(--bs-body-color)}
.article-toc summary{display:flex;align-items:center;min-height:44px;padding:10px 20px;font-weight:750;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;color:var(--jcdc-blue);cursor:pointer}
.article-toc ol{list-style:none;margin:0;padding:0 20px 14px;counter-reset:toc}
.article-toc__item{counter-increment:toc}
.article-toc__item a{display:block;padding:9px 0;min-height:44px;color:inherit;text-decoration:none;line-height:1.4;overflow-wrap:anywhere;border-top:1px solid rgba(13,122,168,.12)}
.article-toc__item a:hover,.article-toc__item a:focus-visible{color:var(--jcdc-blue)}
.article-toc__item--h3 a{padding-left:20px;font-size:.94rem}
.article-heading,.article-quote,.article-callout,.article-list,.article-figure{max-width:100%;overflow-wrap:anywhere}
.article-heading,.custom-page--editorial .article-prose :is(h2,h3){position:relative;scroll-margin-top:110px;color:var(--jcdc-deep);font-weight:700;line-height:1.25;letter-spacing:-.01em;margin:2.6rem 0 1rem}
.article-heading--h2,.custom-page--editorial .article-prose h2{font-size:clamp(1.375rem,2.2vw,1.875rem)}
.article-heading--h3,.custom-page--editorial .article-prose h3{font-size:clamp(1.1875rem,1.8vw,1.5rem);margin-top:2.2rem}
h3[id]{scroll-margin-top:110px}
.article-anchor{display:inline-grid;place-items:center;min-width:44px;min-height:44px;margin-left:.15rem;vertical-align:middle;color:var(--jcdc-blue);text-decoration:none;font-size:.9em;opacity:.55}
.article-heading:hover .article-anchor,.article-anchor:focus-visible{opacity:1}
.article-quote{margin:2rem 0}
.article-quote blockquote{position:relative;margin:0;padding:24px 28px;border-left:4px solid var(--jcdc-blue);border-radius:0 16px 16px 0;background:rgba(13,122,168,.06);font-style:italic;font-size:1.12rem;line-height:1.7}
.article-quote blockquote p:last-child{margin-bottom:0}
.article-quote figcaption{margin-top:10px;padding-left:32px;font-size:.92rem;color:var(--bs-secondary-color)}
.article-quote figcaption::before{content:"\2014\00a0"}
.article-callout{display:flex;gap:14px;align-items:flex-start;margin:1.8rem 0;padding:18px 20px;border:1px solid;border-radius:14px}
.article-callout__icon{flex:0 0 auto;margin-top:3px;font-size:1.15rem}
.article-callout__body{min-width:0;flex:1 1 auto}
.article-callout__title{margin:0 0 4px;font-weight:750}
.article-callout__text{line-height:1.7}
.article-callout__text :last-child{margin-bottom:0}
.article-callout--info{background:#eaf5fb;border-color:#9fd0e6;color:#133e57}
.article-callout--info .article-callout__icon{color:#0d6a92}
.article-callout--warning{background:#fff4e1;border-color:#e9b768;color:#5a3a05}
.article-callout--warning .article-callout__icon{color:#9a5b00}
.article-callout--tip{background:#e8f6ee;border-color:#8fcfa8;color:#14472b}
.article-callout--tip .article-callout__icon{color:#1b7a46}
.article-list{margin:1.5rem 0 2rem;padding-left:1.6rem;line-height:1.75}
.article-list li{margin-bottom:.6rem}
.article-figure{margin:2rem 0}
.article-figure img{display:block;width:100%;height:auto;border-radius:14px;background:rgba(13,122,168,.08)}
.article-figure figcaption{margin-top:10px;font-size:.9rem;line-height:1.5;color:var(--bs-secondary-color)}
.post-reading-main .custom-block{padding-block:24px}
.post-reading-main .custom-block>.container,.post-reading-main>.container{width:100%;max-width:100%;padding-inline:0}
.post-reading-main .custom-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:12px}
.post-reading-main .custom-gallery img{width:100%;height:auto;border-radius:12px}
.post-reading-main img,.post-reading-main iframe{max-width:100%}
[data-bs-theme=dark] .article-intro .article-lead,[data-bs-theme=dark] .article-heading{color:#e6f2f8}
[data-bs-theme=dark] .article-toc{background:var(--dark-panel);border-color:rgba(255,255,255,.1)}
[data-bs-theme=dark] .article-toc summary,[data-bs-theme=dark] .article-anchor{color:#55c5ea}
[data-bs-theme=dark] .article-toc__item a{border-top-color:rgba(255,255,255,.1)}
[data-bs-theme=dark] .article-toc__item a:hover{color:#55c5ea}
[data-bs-theme=dark] .article-quote blockquote{background:rgba(13,122,168,.14);color:#d9eff8}
[data-bs-theme=dark] .article-quote figcaption,[data-bs-theme=dark] .article-figure figcaption{color:#9db6c4}
[data-bs-theme=dark] .article-callout--info{background:rgba(13,122,168,.18);border-color:#2f6f8d;color:#d6eef8}
[data-bs-theme=dark] .article-callout--info .article-callout__icon{color:#6cc6ec}
[data-bs-theme=dark] .article-callout--warning{background:#3a2c10;border-color:#8a6420;color:#fbe6bd}
[data-bs-theme=dark] .article-callout--warning .article-callout__icon{color:#f5b84a}
[data-bs-theme=dark] .article-callout--tip{background:rgba(34,160,90,.16);border-color:#2c7a4a;color:#d3f0de}
[data-bs-theme=dark] .article-callout--tip .article-callout__icon{color:#5fd08c}
[data-bs-theme=dark] .article-figure img{background:rgba(255,255,255,.06)}
@media(max-width:575.98px){.article-callout{padding:14px}.article-quote blockquote{padding:18px 18px}}
.post-reading-main,.post-reading-main .custom-copy,.post-reading-main .custom-prose{overflow-wrap:anywhere;word-break:normal}.post-reading-main .custom-prose>h2:empty{display:none}

.custom-page--editorial .article-hero,.custom-page--editorial .article-headline,.custom-page--editorial .badge-article-category,.post-related-rail li strong,.post-related-rail li small{overflow-wrap:anywhere;min-width:0}
.post-related-rail li a,.post-related-rail li button[form="jcdc-post"]{grid-template-columns:26px minmax(0,1fr)}
.custom-page--editorial .badge-article-category{max-width:100%;white-space:normal}
/* Interaction states (pressed, focus, checked) use the product's brand colours; Bootstrap's default blue never shows (public pages). Bootstrap 5.3 keeps its own blue wherever only the resting colours are overridden, so the active, focus-ring and checked variables are set here for light and dark. */
:root, [data-bs-theme="light"] { --interaction-rgb: 13 122 168; --interaction-solid: #0d7aa8; --interaction-pressed: #065d82; --interaction-knob: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%230d7aa8'/%3e%3c/svg%3e"); }
[data-bs-theme="dark"] { --interaction-rgb: 120 205 235; --interaction-knob: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2378cdeb'/%3e%3c/svg%3e"); }
.btn-primary, .btn-outline-primary, .btn-outline-secondary, .btn-link { --bs-btn-focus-shadow-rgb: 13,122,168; }
[data-bs-theme="dark"] :is(.btn-primary, .btn-outline-primary, .btn-outline-secondary, .btn-link) { --bs-btn-focus-shadow-rgb: 120,205,235; }
.btn-outline-primary { --bs-btn-active-bg: var(--interaction-pressed); --bs-btn-active-border-color: var(--interaction-pressed); --bs-btn-active-color: #fff; }
.btn-close { --bs-btn-close-focus-shadow: 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); }
.btn-close:focus { box-shadow: 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); }
.nav-link:focus-visible { box-shadow: 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--interaction-pressed); --bs-dropdown-link-active-color: #fff; }
.pagination, .page-link { --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); --bs-pagination-active-bg: var(--interaction-solid); --bs-pagination-active-border-color: var(--interaction-solid); --bs-pagination-active-color: #fff; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--interaction-solid); --bs-nav-pills-link-active-color: #fff; }
.list-group { --bs-list-group-active-bg: var(--interaction-solid); --bs-list-group-active-border-color: var(--interaction-solid); --bs-list-group-active-color: #fff; }
.accordion { --bs-accordion-btn-focus-border-color: rgb(var(--interaction-rgb)); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); --bs-accordion-active-bg: rgb(var(--interaction-rgb) / 12%); --bs-accordion-active-color: var(--bs-body-color); }
.form-check-input:focus { border-color: rgb(var(--interaction-rgb)); box-shadow: 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); }
.form-check-input:checked, .form-check-input[type="checkbox"]:indeterminate { background-color: var(--interaction-solid); border-color: var(--interaction-solid); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: var(--interaction-knob); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--bs-body-bg), 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); }
.form-range:focus::-moz-range-thumb { box-shadow: 0 0 0 1px var(--bs-body-bg), 0 0 0 .25rem rgb(var(--interaction-rgb) / 25%); }
.form-range::-webkit-slider-thumb { background-color: var(--interaction-solid); }
.form-range::-moz-range-thumb { background-color: var(--interaction-solid); }
.form-range:active::-webkit-slider-thumb { background-color: var(--interaction-pressed); }
.form-range:active::-moz-range-thumb { background-color: var(--interaction-pressed); }
.form-control:focus, .form-select:focus { border-color: rgb(var(--interaction-rgb)); box-shadow: 0 0 0 .2rem rgb(var(--interaction-rgb) / 25%); }
.btn-primary { --bs-btn-active-bg: #065d82; --bs-btn-active-border-color: #065d82; --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-active-bg: #064a6e; --bs-btn-active-border-color: #064a6e; --bs-btn-active-color: #fff; }
.btn-link { --bs-btn-color: rgb(var(--bs-link-color-rgb)); --bs-btn-hover-color: rgb(var(--bs-link-hover-color-rgb)); --bs-btn-active-color: rgb(var(--bs-link-hover-color-rgb)); }

/* At an effective 160–200 CSS px (phone zoom), stack controls without reducing text or touch targets. */
@media (max-width: 279.98px) {
    .custom-page { overflow-wrap: anywhere; }
    .custom-page :is(.badge, .btn, .category-tag, .article-category-bar button) { max-width: 100%; white-space: normal; }
    .hero .hero-dots { flex-wrap: wrap; }
    .article-feed-status, .article-feed-toolbar, .article-search-input-shell { flex-wrap: wrap; }
    .article-feed-layout, .article-feed-header, .article-feed-row, .quiz-content-grid, .appointment-mobile-switcher {
        grid-template-columns: minmax(0, 1fr);
    }
    .article-feed-row > * { grid-column: 1; grid-row: auto; }
    .article-feed-art, .career-badge-art { max-width: 100%; min-width: 0; }
    .career-team-pass { transform: none; }
    .quiz-card { padding-inline: .65rem; }
    .quiz-pill-badge, .gallery-hero-badge { max-width: 100%; white-space: normal; }
    .appointment-switch-btn { min-width: 0; flex-wrap: wrap; }
    .home-article-row { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; }
    .home-article-row > * { grid-column: 1; grid-row: auto; }
    .jcdc-breadcrumb ol, .article-pager-meta { flex-wrap: wrap; }
    .jcdc-breadcrumb li { max-width: 100%; }
    .article-feed-art { overflow: clip; }
}
