/* === features/public-layout.css — shared chrome, hero, stats-strip, and
 * typography for all 8 public pages. Combined from layout_mock2.css +
 * page_hero.css + public_content.css during public-layout-css-webpack-migration.
 * Imported from each page's own {page}_public.css — see css-styling skill's
 * feature-CSS convention. */

/* ─────────────────────────────────────────────────────────────────────────
 * Section 1 — from css/layout_mock2.css (chrome: topbar, header, nav, footer)
 * ───────────────────────────────────────────────────────────────────────── */


:root {
    --navy-dark:  #0f1d3a;
    --navy:       #1b2a52;
    --navy-light: #2d4080;
    --red:        #c1272d;
    --red-hover:  #a01f23;
    --white:      #ffffff;
    --gray-bg:    #f5f7fa;
    --gray-border:#e2e8f0;
    --text-dark:  #1a2035;
    --text-mid:   #4a5568;
    --font-h:     'Exo 2', sans-serif;
    --font-b:     'Mulish', sans-serif;
}

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

html { overflow-x: hidden; }

body {
    font-family: var(--font-b);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ── Top contact bar ─────────────────────────────────────────────────────── */
.lm-topbar {
    background: var(--navy-dark);
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    padding: 5px 0;
}

.lm-topbar a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .2s;
}
.lm-topbar a:hover { color: var(--white); }

/* Contact items — spacing + separator + icon size */
.lm-topbar-contacts {
    gap: 1.25rem;
}
.lm-topbar-contacts .bi {
    font-size: 1.14rem;
}
.lm-topbar-contacts > span + span {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lm-topbar-inner {
    padding: 0 32px;
}

/* N!NEXUS brand block — topbar */
.lm-nexus-of {
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    font-family: var(--font-b);
    white-space: nowrap;
}

.lm-nexus-name {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
}
.lm-nexus-name em {
    font-style: normal;
    color: var(--red);
}

.lm-nexus-tagline {
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    font-family: var(--font-b);
    white-space: nowrap;
}

/* B2B button — brand overrides only; Bootstrap btn btn-danger handles base styles */
.lm-btn-b2b {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
    padding: 6px 18px;
    background: var(--red);
    border-color: var(--red);
}
.lm-btn-b2b:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
}

/* ── Main header ─────────────────────────────────────────────────────────── */

/* sticky-top, bg-white, border-bottom come from Bootstrap classes on the element.
 * !important needed to beat default.css (.navbar { height:50px; padding:0 25px !important }) */
.lm-header {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 0 !important;
    box-shadow: 0 2px 12px rgba(15,29,58,.07);
}

.lm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
}

.lm-brand img { height: 62px; width: auto; }

.lm-brand-name {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy);
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.15;
}

.lm-brand-sub {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.35;
    max-width: 240px;
}

/* ── Navigation (desktop, ≥1400px) ──────────────────────────────────────── */
.lm-nav {
    gap: clamp(0.25rem, 0.5vw, 0.75rem);
}

.lm-nav a {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: clamp(1rem, 0.45vw + 0.75rem, 1.25rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 3px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.lm-nav a:hover {
    color: var(--navy);
    background: var(--gray-bg);
}
.lm-nav a.active {
    color: var(--navy);
    background: rgba(27, 42, 82, 0.06);
}

.lm-nav-search {
    font-size: 1.05rem;
    color: var(--text-mid);
    padding: 8px 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: color .2s, background .2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.lm-nav-search:hover {
    color: var(--navy);
    background: var(--gray-bg);
}

/* ── Hamburger — shown at <1400px via navbar-expand-xxl ─────────────────── */
.lm-mobile-toggle {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 32, 65, 0.18);
    border-radius: 0.5rem;
    background-color: var(--white);
    color: var(--navy-dark);
    cursor: pointer;
    flex-shrink: 0;
}
.lm-mobile-toggle .mdi {
    font-size: 1.75rem;
    line-height: 1;
}
/* Suppress Bootstrap's default toggler focus ring */
.lm-mobile-toggle:focus {
    box-shadow: none;
    outline: none;
}

/* ── Offcanvas navigation (mobile/tablet <1400px) ───────────────────────── */
.offcanvas-nav .nav-link {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(15, 32, 65, 0.08);
    transition: color .2s;
}
.offcanvas-nav .nav-link:hover { color: var(--navy); }
.offcanvas-nav .nav-link.active { color: var(--navy); }
.offcanvas-nav li:last-child .nav-link { border-bottom: none; }

/* ── Responsive header ───────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .lm-topbar-right { flex: 1; justify-content: space-between; }
    .lm-header { padding: 10px 0 !important; }
    .lm-brand img { height: 46px; }
    .lm-mobile-toggle {
        width: 3.25rem;
        height: 3.25rem;
        min-width: 3.25rem;
    }
    .lm-mobile-toggle .mdi { font-size: 2rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lm-footer {
    background: #0d1424;
    color: rgba(255,255,255,.7);
    padding: 48px 0 20px;
    overflow-x: hidden;
}

/* Cap content width to 1200px — Bootstrap container goes to 1320px at xxl */
.lm-footer .container {
    max-width: 1200px;
}

.lm-footer-col-title {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.929rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    line-height: 1.3;
}

.lm-footer-company-name {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.lm-footer p {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,.6);
}

.lm-footer a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.55;
    display: block;
    margin-bottom: 0;
    transition: color .2s;
}
.lm-footer a:hover { color: var(--white); }

/* Social icon circles */
.lm-footer-social {
    gap: 10px;
    margin-top: 24px;
}
.lm-footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.2);
    font-size: .9rem;
    transition: border-color .2s, color .2s;
}
.lm-footer-social a:hover {
    border-color: rgba(255,255,255,.7);
    color: var(--white);
}

/* Contact items column */
.lm-footer-contacts {
    gap: 14px;
}
.lm-footer-contact-item {
    gap: 12px;
    font-size: 1rem;
    color: rgba(255,255,255,.6);
}
.lm-footer-contact-item i {
    color: rgba(255,255,255,.35);
    font-size: .9rem;
    flex-shrink: 0;
}

/* Footer N!NEXUS — d-flex beats .lm-footer a { display:block } (Bootstrap !important) */
.lm-footer .lm-footer-nexus {
    margin-bottom: 0;
    padding-top: 0;
}
.lm-nexus-name--lg {
    font-size: 1.45rem;
    letter-spacing: .04em;
}
.lm-footer-nexus .lm-nexus-of {
    font-size: 0.786rem;
    letter-spacing: 0.12em;
}
.lm-footer-nexus .lm-nexus-of,
.lm-footer-nexus .lm-nexus-tagline {
    color: rgba(255,255,255,.4);
    white-space: normal;
}

.lm-footer-hr {
    border-top: 1px solid rgba(255,255,255,.18);
    /* margin via Bootstrap my-3; opacity via opacity-100 */
}

/* ── Footer bottom row ──────────────────────────────────────────────────── */
.lm-footer-bottom-inner {
    font-size: 0.857rem;
    color: rgba(255,255,255,.45);
}
.lm-footer-bottom-inner a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: 0.857rem;
    display: inline;
    margin-bottom: 0;
    transition: color .2s;
}
.lm-footer-bottom-inner a:hover { color: rgba(255,255,255,.85); }

@media (max-width: 767.98px) {
    .lm-footer { padding: 36px 0 20px; }
}

/* ─────────────────────────────────────────────────────────────────────────
 * Section 2 — from css/page_hero.css (hero component + stats strip)
 * ───────────────────────────────────────────────────────────────────────── */


.page-hero {
    position: relative;
    min-height: clamp(28rem, 34vw, 34rem);
    max-height: clamp(28rem, 34vw, 34rem);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Gradient overlay — left-to-right white fade */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.98)  0%,
        rgba(255,255,255,0.92) 28%,
        rgba(255,255,255,0.55) 46%,
        rgba(255,255,255,0.08) 68%,
        rgba(255,255,255,0)   100%
    );
}

.page-hero .container-xxl,
.page-hero .row {
    min-height: inherit;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-hero__text {
    max-width: 36rem;
    padding-top: clamp(5rem, 7vw, 7.5rem);
}

/* Font-size comes from .hero-title in public_content.css */
.page-hero__title {
    color: #142653;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

/* Font-size comes from .hero-text in public_content.css */
.page-hero__description {
    max-width: 40rem;
    line-height: 1.7;
    color: #41506a;
}

/* ── Hero CTA button — extends btn btn-danger btn-lg ─────────────────────── */
.page-hero .page-hero__button {
    padding: .9rem 2.2rem;
    border-radius: .5rem;
    font-weight: 600;
    min-width: 220px;
    min-height: 3.25rem;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0.5rem 1.25rem rgba(201, 35, 45, 0.18);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.page-hero .page-hero__button:hover {
    background-color: #b91f28;
    border-color: #b91f28;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.5rem rgba(201, 35, 45, 0.24);
}

.page-hero .page-hero__button:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 0.25rem rgba(201, 35, 45, 0.22),
        0 0.5rem 1.25rem rgba(201, 35, 45, 0.18);
}

.page-hero .page-hero__button:active {
    background-color: #a91c24;
    border-color: #a91c24;
    color: #ffffff;
    transform: translateY(0);
    box-shadow: 0 0.25rem 0.75rem rgba(201, 35, 45, 0.18);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1399.98px) {
    .page-hero__text {
        padding-top: 5.75rem;
    }
}

@media (max-width: 1199.98px) {
    .page-hero {
        min-height: 30rem;
        max-height: 30rem;
    }
    .page-hero__text {
        padding-top: 5rem;
        max-width: 34rem;
    }
}

@media (max-width: 991.98px) {
    .page-hero {
        min-height: 28rem;
        max-height: 28rem;
    }
    .page-hero__text {
        padding-top: 4.5rem;
        max-width: 32rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        min-height: 30rem;
        max-height: 30rem;
    }
    .page-hero__text {
        padding-top: 4rem;
        max-width: 30rem;
    }
    .page-hero__title {
        max-width: 28rem;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        min-height: 32rem;
        max-height: 32rem;
    }
    .page-hero__text {
        padding-top: 3.5rem;
        max-width: 100%;
    }
    .page-hero__title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    .page-hero__description {
        font-size: 1rem;
        line-height: 1.6;
    }
    .page-hero .page-hero__button {
        min-height: 3rem;
        min-width: 11rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ── Statistics strip — shared across public pages that include _stats_strip.php ── */
.lm-stats {
    background: var(--gray-bg);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    padding: 40px 32px;
}

.lm-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Horizontal: large icon on left, number+label on right */
.lm-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
}

.lm-stat-item + .lm-stat-item {
    border-left: 1px solid var(--gray-border);
}

/* PNG icons from img/shared/ — mix-blend-mode removes white background */
.lm-stat-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.lm-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lm-stat-number {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--navy);
    line-height: 1;
}

.lm-stat-label {
    font-size: .8rem;
    color: var(--text-mid);
    line-height: 1.45;
}

/* 4th stat label (no number) — slightly larger text */
.lm-stat-label--lg {
    font-size: .85rem;
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 991px) {
    .lm-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .lm-stat-item:nth-child(3) { border-left: none; }
    .lm-stat-item:nth-child(3),
    .lm-stat-item:nth-child(4) { border-top: 1px solid var(--gray-border); }
}

@media (max-width: 575px) {
    .lm-stats-inner { grid-template-columns: 1fr; }
    .lm-stat-item + .lm-stat-item { border-left: none; border-top: 1px solid var(--gray-border); }
    .lm-stat-item:nth-child(3) { border-left: none; }
    .lm-stat-img { width: 54px; height: 54px; }
}

/* ─────────────────────────────────────────────────────────────────────────
 * Section 3 — from css/public_content.css (shared typography system)
 * ───────────────────────────────────────────────────────────────────────── */

/* ── Typography scale variables ──────────────────────────────────────────── */
:root {
    --font-size-hero-title:    clamp(2.8rem, 2vw + 2rem, 3.75rem);
    --font-size-hero-text:     clamp(1.1rem, .3vw + 1rem, 1.35rem);
    --font-size-section-title: clamp(1.8rem, .5vw + 1.5rem, 2.3rem);
    --font-size-card-title:    1.35rem;
    --font-size-body:          1rem;
    --font-size-meta:          .95rem;
    --line-height-body:        1.7;
}

/* ── Hero typography ─────────────────────────────────────────────────────── */
.lm-public .hero-title {
    font-size: var(--font-size-hero-title);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lm-public .hero-text {
    font-size: var(--font-size-hero-text);
    line-height: var(--line-height-body);
    color: var(--text-mid, #4a5568);
    max-width: 40rem;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.lm-public .section-title {
    font-size: var(--font-size-section-title);
    font-weight: 700;
    line-height: 1.25;
    color: var(--bs-dark);
    margin-bottom: 1.5rem;
}

.lm-public .section-subtitle {
    font-size: clamp(1rem, .3vw + 0.9rem, 1.15rem);
    line-height: var(--line-height-body);
    color: var(--bs-secondary-color);
}

/* ── Card titles ─────────────────────────────────────────────────────────── */
/* BS5 .card-title only sets margin-bottom — adding font-size/weight here is safe */
.lm-public .card-title {
    font-size: var(--font-size-card-title);
    font-weight: 700;
    line-height: 1.35;
}

/* ── Body / card text ────────────────────────────────────────────────────── */
.lm-public .content-text,
.lm-public .card-text,
.lm-public .section-text {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--bs-secondary-color);
}

/* ── Form titles ─────────────────────────────────────────────────────────── */
.lm-public .form-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bs-dark);
    margin-bottom: 1.25rem;
}

/* ── Metadata / secondary text ───────────────────────────────────────────── */
.lm-public .meta-text,
.lm-public .text-meta {
    font-size: var(--font-size-meta);
    line-height: 1.5;
}

/* ── Small text ──────────────────────────────────────────────────────────── */
.lm-public .small-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ── Bootstrap class overrides ───────────────────────────────────────────── */

/* font-size intentionally omitted — Bootstrap's 1rem default and btn-lg are correct */
.lm-public .btn {
    font-weight: 600;
}

.lm-public .btn-sm {
    font-size: var(--font-size-meta);
}

.lm-public .form-control,
.lm-public .form-select {
    font-size: var(--font-size-body);
    min-height: 2.9rem;
}

.lm-public .form-label {
    font-size: var(--font-size-meta);
    font-weight: 600;
}

/* ── Vacancy card font overrides (specificity 0,2,0 beats bundled 0,1,0) ── */
.lm-public .vac-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.lm-public .vac-card-meta {
    font-size: .875rem;
}

.lm-public .vac-card-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #4b5870;
}

/* ── Dept filter tab font overrides (+25%) ───────────────────────────────── */
.lm-public .vac-dept-tab-icon {
    font-size: 1.875rem;
}

.lm-public .vac-dept-tab-name {
    font-size: 1.1rem;
}

.lm-public .vac-dept-tab-cnt {
    font-size: .9rem;
}


/* ── Products Public page — pp- prefix ───────────────────────────────────── */

/* ── Directions section ───────────────────────────────────────────────────── */
.pp-directions {
    background: #f5f7fa;
    padding: 3.5rem 0;
}

.pp-directions .container {
    max-width: 1320px;
}

.pp-section-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* 5-column card grid — 10 cards ÷ 5 = 2 clean rows */
.pp-directions-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

/* ── Direction card ───────────────────────────────────────────────────────── */
.pp-dir-card {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    min-height: 260px;
    min-width: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.pp-dir-card:hover {
    border-color: rgba(27, 42, 82, 0.28);
    box-shadow: 0 12px 32px rgba(27, 42, 82, 0.12);
    transform: translateY(-2px);
}

.pp-dir-card:focus-visible {
    border-color: var(--navy, #1b2a52);
    box-shadow: 0 0 0 3px rgba(27, 42, 82, 0.22);
}

.pp-dir-card--active {
    border-color: var(--navy, #1b2a52) !important;
    box-shadow: 0 14px 36px rgba(27, 42, 82, 0.16) !important;
}

.pp-dir-card--dimmed {
    opacity: 0.55;
    transform: none !important;
}

/* Image container — flex-centered so PNGs sit proportionally */
.pp-dir-card-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.pp-dir-card-img img {
    max-height: 150px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.pp-dir-card:hover .pp-dir-card-img img {
    transform: scale(1.05);
}
/* hover has higher specificity and correctly wins when card is both active and hovered — intentional design */
/* stylelint-disable-next-line no-descending-specificity */
.pp-dir-card--active .pp-dir-card-img img {
    transform: scale(1.03);
}

/* Card footer row: icon · title · arrow */
.pp-dir-card-body {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1rem;
}

.pp-dir-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(27, 42, 82, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.pp-dir-card--active .pp-dir-card-icon {
    background: var(--navy, #1b2a52);
}

.pp-dir-card-icon .mdi {
    font-size: 20px;
    color: var(--navy, #1b2a52);
}

.pp-dir-card--active .pp-dir-card-icon .mdi {
    color: #fff;
}

.pp-dir-card-title {
    flex: 1;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: #0f172a;
    min-width: 0;
}

.pp-dir-card--active .pp-dir-card-title {
    color: var(--navy, #1b2a52);
}

.pp-dir-card-arrow {
    flex-shrink: 0;
    color: #9aaabb;
    transition:
        transform 0.25s ease,
        color 0.2s ease;
    line-height: 1;
}

.pp-dir-card--active .pp-dir-card-arrow {
    transform: rotate(180deg);
    color: var(--navy, #1b2a52);
}

/* .pp-dir-card-arrow vs .pp-dir-card--active .pp-dir-card-icon are different parent elements (arrow vs icon container) */
/* stylelint-disable-next-line no-descending-specificity */
.pp-dir-card-arrow .mdi {
    font-size: 1rem;
}

/* ── Direction detail panels ──────────────────────────────────────────────── */
.pp-direction-panels {
    background: #f5f7fa;
    padding: 0 1.5rem;
}

.pp-dir-detail {
    display: none;
}

.pp-dir-detail--visible {
    display: block;
    background: #f3f7fc;
    border-radius: 20px;
    padding: 32px;
    margin: 24px auto 40px;
    max-width: 1320px;
}

.pp-dir-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pp-dir-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy, #1b2a52);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* .pp-dir-detail-icon is a detail panel icon; .pp-dir-card-icon is a card icon — different page sections */
/* stylelint-disable-next-line no-descending-specificity */
.pp-dir-detail-icon .mdi {
    font-size: 1.55rem;
    color: #fff;
}

.pp-dir-detail-heading {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.pp-dir-detail-desc {
    color: #4a5a75;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Subcategory grid: 4 cols on desktop */
.pp-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 24px;
}

/* ── Subcategory card ─────────────────────────────────────────────────────── */
.pp-subcat-card {
    background: #fff;
    border: 1px solid #e5eaf0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    padding: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.pp-subcat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pp-subcat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(27, 42, 82, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* .pp-subcat-card-icon is a subcategory card icon; .pp-dir-card-icon is a directory card — different card types */
/* stylelint-disable-next-line no-descending-specificity */
.pp-subcat-card-icon .mdi {
    font-size: 28px;
    color: var(--navy, #1b2a52);
}

.pp-subcat-card-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0;
    padding-top: 0.2rem;
}

.pp-subcat-parts {
    font-size: 0.8rem;
    color: #5a6a80;
    line-height: 1.6;
    padding-left: 1rem;
    margin-bottom: 1rem;
    flex: 1;
}

.pp-subcat-parts li {
    margin-bottom: 0.2rem;
}

.pp-subcat-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f4f8;
    margin-top: auto;
}

/* .pp-subcat-brands holds brand logos; .pp-dir-card-img holds card images — different components */
/* stylelint-disable-next-line no-descending-specificity */
.pp-subcat-brands img {
    height: auto;
    width: auto;
    max-height: 32px;
    max-width: 110px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.85;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */
.pp-cta {
    background: #0f1d3a;
    padding: 4rem 0 1rem;
    text-align: center;
}

.pp-cta-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.pp-cta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Responsive — card grid tablet ───────────────────────────────────────── */
@media (max-width: 1199px) {
    .pp-directions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .pp-dir-card {
        min-height: 230px;
        padding: 20px 16px;
    }
    .pp-dir-card-img {
        height: 140px;
    }
    .pp-dir-card-img img {
        max-height: 120px;
    }
    .pp-dir-card-icon {
        width: 36px;
        height: 36px;
    }
    .pp-dir-card-icon .mdi {
        font-size: 18px;
    }
    .pp-dir-card-title {
        font-size: 15px;
    }

    .pp-dir-detail--visible {
        padding: 24px;
    }
    .pp-dir-detail-heading {
        font-size: 28px;
    }

    .pp-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }
    .pp-subcat-card {
        padding: 20px;
        min-height: 200px;
    }
    .pp-subcat-card-icon {
        width: 52px;
        height: 52px;
    }
    .pp-subcat-card-icon .mdi {
        font-size: 26px;
    }
    .pp-subcat-brands img {
        max-height: 28px;
    }
}

/* ── Responsive — mobile ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .pp-directions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .pp-dir-card {
        min-height: 190px;
        padding: 16px 14px;
    }
    .pp-dir-card-img {
        height: 100px;
    }
    .pp-dir-card-img img {
        max-height: 88px;
    }
    .pp-dir-card-icon {
        width: 34px;
        height: 34px;
    }
    .pp-dir-card-icon .mdi {
        font-size: 18px;
    }
    .pp-dir-card-title {
        font-size: 14px;
    }

    .pp-direction-panels {
        padding: 0 0.75rem;
    }
    .pp-dir-detail--visible {
        padding: 18px;
        border-radius: 16px;
        margin: 16px auto 28px;
    }
    .pp-dir-detail-heading {
        font-size: 26px;
    }

    .pp-subcat-grid {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }
    .pp-subcat-card {
        padding: 18px;
        min-height: auto;
    }
    .pp-subcat-card-icon {
        width: 48px;
        height: 48px;
    }
    .pp-subcat-card-icon .mdi {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .pp-hero {
        height: 220px;
    }
    .pp-hero-title {
        font-size: 1.65rem;
    }
    .pp-hero-text {
        width: 90%;
        padding: 1.5rem 1rem;
    }
    .pp-subcat-brands img {
        max-height: 24px;
    }
}

