:root {
    /* Brand Colors */
    --primary-color: #21336d;
    --secondary-color: #1e3a8a;
    --accent-color-1: #f5821f;
    --accent-color-2: #21336d;
    --muted-color: #667085;

    /* Neutral Colors */
    --black: #000000;
    --bg-light: #eef2f7;
    --bg-light-blue: #f8fbff;
    --bg-soft-blue: #eaf1fe;
    --bg-soft-green: #e6f7f7;
    --border-light: #e2e8f0;
    --border-medium: #c4cedb;

    /* Table */
    --table-head-text: var(--black);
    --table-head-bg: var(--bg-light);
    --table-tr-bg: var(--bg-soft-green);
    --table-border: var(--border-light);

    /* Card */
    --card-bg: var(--bg-light);
    --card-bg-1: var(--bg-light-blue);
    --card-border: var(--border-medium);
    --card-border-left: var(--primary-color);
    --card-border-left-2: var(--accent-color-1);

    /* Text */
    --text-color-1: var(--primary-color);
    --text-color-2: var(--secondary-color);
    --text-color-3: var(--muted-color);

    /* Badge */
    --batch-bg-1: var(--bg-soft-blue);
    --batch-bg-2: var(--secondary-color);
    --batch-bg-3: var(--primary-color);
    --batch-font-weight: 800;

    /* FAQ */
    --paper: #fafaf7;
    --surface: #ffffff;
    --ink: #16233b;
    --muted: var(--muted-color);
    --line: var(--border-light);
    --navy: var(--primary-color);
    --navy-soft: var(--bg-soft-blue);
    --green: #0e6b57;
    --green-soft: var(--bg-soft-green);
    --amber: #8a5a0b;
    --amber-soft: #fbf1de;

    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hidden-card {
    display: none !important;
}

.cg-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin: 0 6px 6px 0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Primary */
.cg-badge-primary {
    background: #e8edff;
    color: #21336d;
}

/* Success */
.cg-badge-success {
    background: #e6f7ef;
    color: #198754;
}

/* Warning */
.cg-badge-warning {
    background: #fff4d6;
    color: #b7791f;
}

/* Pink */
.cg-badge-pink {
    background: #fde7f1;
    color: #c2185b;
}

/* Teal */
.cg-badge-teal {
    background: #e0f7f4;
    color: #0f766e;
}

/* Indigo */
.cg-badge-indigo {
    background: #ece9ff;
    color: #4f46e5;
}

/* Purple */
.cg-badge-purple {
    background: #f1e8ff;
    color: #7e22ce;
}


/* ============================================================
   COMPLIANCE GUIDES INDEX PAGE
   ============================================================ */

.cg-section {
    padding: 48px 24px 70px;
    background: #f7f9fc;
    min-height: 70vh;
}

.cg-container {
    width: 85%;
    margin: 0 auto;
}


/* ============================================================
   COMPLIANCE GUIDES HERO
   ============================================================ */

.cg-hero {
    position: relative;
    padding: 40px;
    margin-bottom: 34px;
    border: 1px solid #ffd8b3;
    border-radius: 18px;
    background: #fff4e8;
    overflow: hidden;
}

.cg-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: rgba(245, 130, 31, 0.07);
}

.cg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.cg-hero h1 {
    max-width: none;
    margin: 0 0 12px;
    color: #d9680c;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
}

.cg-hero p {
    max-width: 680px;
    margin: 0;
    color: #8f5a2b;
    font-size: 16px;
    line-height: 1.7;
}


/* ============================================================
   COMPLIANCE GUIDES SEARCH
   ============================================================ */

.cg-search-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 620px;
    margin-top: 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(33, 51, 109, 0.18);
}

.cg-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    color: var(--muted-color);
    flex-shrink: 0;
}

.cg-search {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
}

.cg-search::placeholder {
    color: #98a2b3;
}


/* ============================================================
   COMPLIANCE GUIDES TOOLBAR
   ============================================================ */

.cg-toolbar {
    width: 100%;
    margin-bottom: 20px;
}

.cg-toolbar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cg-toolbar-content>div:first-child {
    flex: 0 0 auto;
}

.cg-toolbar-search {
    width: 520px;
    margin-left: auto;
    flex: 0 0 520px;
}

.cg-toolbar-search .cg-search-box {
    width: 100%;
    max-width: none;
    margin: 0;
}

.cg-toolbar h2 {
    margin: 0 0 4px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
}

.cg-toolbar p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
}


/* ============================================================
   COMPLIANCE GUIDES CARD
   ============================================================ */

.cg-card-col {
    display: flex;
}

.cg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.cg-card:hover {
    transform: translateY(-4px);
    border-color: #c6d2ea;
    box-shadow: 0 14px 35px rgba(33, 51, 109, 0.10);
}

.cg-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 0;
}

.cg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-soft-blue);
    color: var(--primary-color);
    font-size: 17px;
}


/* ============================================================
   COMPLIANCE GUIDES CARD CONTENT
   ============================================================ */

.cg-card-content {
    flex: 1;
    padding: 22px;
    overflow: hidden;
}

.cg-card-content h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cg-card-content p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   COMPLIANCE GUIDES CARD META
   ============================================================ */

.cg-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 22px 18px;
}

.cg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-color);
    font-size: 12px;
}

.cg-meta-item i {
    color: var(--accent-color-1);
    font-size: 12px;
}

.cg-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.cg-meta-badge i {
    font-size: 11px;
}


/* ============================================================
   COMPLIANCE GUIDES CARD FOOTER
   ============================================================ */

.cg-card-footer {
    border-top: 1px solid var(--border-light);
    background: #fbfcfe;
}

.cg-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 22px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.cg-link:hover {
    background: var(--bg-soft-blue);
    color: var(--primary-color);
    text-decoration: none;
}

.cg-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5821f;
    color: #ffffff;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.cg-link:hover .cg-arrow {
    transform: translateX(3px);
}


/* ============================================================
   COMPLIANCE GUIDES NO RESULT
   ============================================================ */

.cg-no-result {
    padding: 60px 20px;
    margin-top: 24px;
    text-align: center;
    border: 1px dashed var(--border-medium);
    border-radius: 14px;
    background: #ffffff;
}

.cg-no-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--bg-soft-blue);
    color: var(--primary-color);
    font-size: 18px;
}

.cg-no-result h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 17px;
}

.cg-no-result p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
}


/* ============================================================
   COMPLIANCE GUIDES RESPONSIVE
   ============================================================ */

/* ─── RESPONSIVE BREAKPOINTS ───
   Laptop       : 993px - 1199px
   Tablet       : 577px - 992px
   Mobile       : 391px - 576px
   Small Mobile : 390px and below
*/


/* ============================================================
   LAPTOP : 993px - 1199px
   ============================================================ */

@media (min-width: 993px) and (max-width: 1199px) {

    .cg-container {
        width: 90%;
    }

    .cg-section {
        padding: 42px 22px 60px;
    }

    .cg-hero {
        padding: 36px;
    }

    .cg-toolbar-content {
        gap: 20px;
    }

    .cg-toolbar-search {
        width: 440px;
        flex: 0 0 440px;
    }

    .cg-card-content {
        padding: 20px;
    }

    .cg-card-top {
        padding: 20px 20px 0;
    }

    .cg-card-footer .cg-link {
        padding: 15px 20px;
    }
}


/* ============================================================
   TABLET : 577px - 992px
   ============================================================ */

@media (min-width: 577px) and (max-width: 992px) {

    .cg-container {
        width: 92%;
    }

    .cg-section {
        padding: 36px 18px 54px;
    }

    .cg-hero {
        padding: 32px 28px;
        margin-bottom: 28px;
    }

    .cg-hero h1 {
        font-size: clamp(28px, 5vw, 38px);
    }

    .cg-toolbar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cg-toolbar-search {
        width: 100%;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .cg-toolbar-search .cg-search-box {
        width: 100%;
        max-width: none;
    }

    .cg-card-content {
        padding: 20px;
    }

    .cg-card-top {
        padding: 20px 20px 0;
    }

    .cg-link {
        padding: 15px 20px;
    }
}


/* ============================================================
   MOBILE : 391px - 576px
   ============================================================ */

@media (min-width: 391px) and (max-width: 576px) {

    .cg-container {
        width: 94%;
    }

    .cg-section {
        padding: 30px 14px 46px;
    }

    .cg-hero {
        padding: 26px 20px;
        margin-bottom: 24px;
        border-radius: 14px;
    }

    .cg-hero::after {
        width: 210px;
        height: 210px;
        right: -90px;
        top: -90px;
    }

    .cg-hero h1 {
        font-size: 28px;
    }

    .cg-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .cg-toolbar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cg-toolbar-search {
        width: 100%;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .cg-toolbar-search .cg-search-box {
        width: 100%;
        max-width: none;
    }

    .cg-search {
        height: 46px;
        font-size: 14px;
    }

    .cg-search-icon {
        width: 44px;
    }

    .cg-card {
        min-height: auto;
    }

    .cg-card-top {
        padding: 18px 18px 0;
    }

    .cg-card-content {
        padding: 18px;
    }

    .cg-card-content h2 {
        font-size: 18px;
    }

    .cg-card-content p {
        font-size: 13px;
    }

    .cg-link {
        padding: 14px 18px;
    }

    .cg-no-result {
        padding: 45px 18px;
    }
}


/* ============================================================
   SMALL MOBILE : 390px AND BELOW
   ============================================================ */

@media (max-width: 390px) {

    .cg-container {
        width: 100%;
    }

    .cg-section {
        padding: 24px 12px 40px;
    }

    .cg-hero {
        padding: 22px 16px;
        margin-bottom: 22px;
        border-radius: 12px;
    }

    .cg-hero::after {
        width: 180px;
        height: 180px;
        right: -85px;
        top: -80px;
    }

    .cg-hero h1 {
        margin-bottom: 10px;
        font-size: 25px;
    }

    .cg-hero p {
        font-size: 14px;
        line-height: 1.55;
    }

    .cg-toolbar {
        margin-bottom: 16px;
    }

    .cg-toolbar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cg-toolbar h2 {
        font-size: 20px;
    }

    .cg-toolbar p {
        font-size: 13px;
    }

    .cg-toolbar-search {
        width: 100%;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .cg-toolbar-search .cg-search-box {
        width: 100%;
        max-width: none;
    }

    .cg-search {
        height: 44px;
        padding-right: 12px;
        font-size: 13px;
    }

    .cg-search-icon {
        width: 42px;
    }

    .cg-card {
        min-height: auto;
        border-radius: 12px;
    }

    .cg-card-top {
        padding: 16px 16px 0;
    }

    .cg-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .cg-card-content {
        padding: 16px;
    }

    .cg-card-content h2 {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .cg-card-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .cg-tag-badge {
        padding: 5px 8px;
        font-size: 10px;
    }

    .cg-link {
        padding: 13px 16px;
        font-size: 13px;
    }

    .cg-arrow {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .cg-no-result {
        padding: 38px 14px;
    }

    .cg-no-result h3 {
        font-size: 16px;
    }

    .cg-no-result p {
        font-size: 13px;
    }
}