/* =========================================================
   Policy page stylesheet
   Imports the global design system then adds page-specific
   sections: page-hero, policy layout, sticky TOC, and
   definition lists for policy content.
   ========================================================= */

@import url("style.css");
@import url("components.css");

/* =========================================================
   Page Hero
   ========================================================= */

.page-hero {
    height: 70vh !important;
    min-height: 380px;
    /* max-height: 520px; */
    background: url("/assets/hero/hero-accreditation2.webp") no-repeat center center / cover !important;
}

.page-hero .hero-overlay {
    padding: calc(var(--nav-height) + 2.5rem) 0 4rem;
    display: flex;
    align-items: center;
}

.page-hero .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, .85);
    transition: color .2s ease;
}

.page-hero .breadcrumb a:hover {
    color: #fff;
}

.page-hero .crumb-sep { opacity: .5; }
.page-hero .crumb-current { color: #fff; font-weight: 600; }

.page-hero .text-em { color: var(--c-red); }


/* =========================================================
   Policy layout
   ========================================================= */

.policy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
}

/* Sticky sidebar navigation */
.policy-nav {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-line);
    padding: 28px 24px;
    overflow: hidden;
}

.policy-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-red) 0 33%, var(--c-blue) 33% 66%, var(--c-green) 66% 100%);
}

.policy-nav h6 {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-secondary-mute);
    margin-bottom: 18px;
}

.policy-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.policy-nav-list a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--c-secondary-soft);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.policy-nav-list a:hover,
.policy-nav-list a.active {
    background: var(--c-primary);
    color: var(--c-secondary);
    transform: translateX(3px);
}

.policy-nav-list a.active {
    font-weight: 600;
    color: var(--c-red-deep);
}


/* =========================================================
   Policy content
   ========================================================= */

.policy-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.policy-section {
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.policy-section h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--c-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
}

.policy-section h3 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-red);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.policy-section h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--c-secondary);
}

.policy-section p,
.policy-section li {
    color: var(--c-secondary-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.policy-section ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.policy-section li {
    margin-bottom: 10px;
}

.policy-section li::marker {
    color: var(--c-red);
}

/* Definition / method cards (assessment methods etc.) */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.method-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-line);
}

.method-card .method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.method-card .method-icon.icon-red   { background: rgba(218, 60, 59, .1); color: var(--c-red-deep); }
.method-card .method-icon.icon-blue  { background: rgba(55, 141, 187, .1); color: var(--c-blue-deep); }
.method-card .method-icon.icon-green { background: rgba(140, 187, 78, .12); color: var(--c-green-deep); }
.method-card .method-icon.icon-dark  { background: rgba(0, 0, 0, .06); color: var(--c-secondary); }

.method-card h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--c-secondary);
}

.method-card p {
    color: var(--c-secondary-soft);
    font-size: .92rem;
    line-height: 1.65;
    margin: 0;
}

/* Highlight box */
.policy-box {
    background: var(--c-primary);
    border-left: 4px solid var(--c-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 22px 26px;
    margin: 24px 0;
}

.policy-box p {
    margin: 0;
    color: var(--c-secondary-soft);
    font-size: .95rem;
}

.policy-box strong {
    color: var(--c-secondary);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .policy-nav {
        position: relative;
        top: auto;
        display: flex;
        flex-direction: column;
    }

    .policy-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .policy-nav-list a {
        white-space: nowrap;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        height: auto;
        min-height: 320px;
        max-height: none;
    }

    .page-hero .hero-overlay {
        padding: calc(var(--nav-height) + 1.5rem) 0 3rem;
    }

    .policy-section h3 .section-num {
        width: 32px;
        height: 32px;
        font-size: .82rem;
    }
}



@media (max-height: 1000px) {
    
    .page-hero .hero-overlay {
        padding: calc(var(--nav-height) + 1.5rem) 0 2.5rem;
    }
    .page-hero h1 {
        font-size: clamp(1.9rem, 2.5rem + 1.6vw, 3.4rem);
    }
    .hero-meta-row {
        margin-top: 18px;
    }
}

@media (max-height: 720px) {
    .page-hero{
        height: 75vh !important;
    }
    .page-hero h1 {
        font-size: clamp(1.9rem, 2.5rem + 1.6vw, 2.8rem);
    }
}