﻿:root {
    --gov-navy: #0b3f6d;
    --gov-navy-dark: #08345b;
    --gov-blue: #1676c5;
    --gov-blue-dark: #0f5fa6;
    --gov-light-blue: #4ba2d4;
    --gov-soft-blue: #eef6fc;
    --gov-yellow: #f4b400;
    --gov-text: #17324d;
    --gov-muted: #66788a;
    --gov-border: #dce8f3;
    --gov-bg: #f5f8fc;
    --gov-white: #ffffff;
}

/* =========================================
   HERO
========================================= */

.inner-page-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient( 105deg, #0b3f6d 0%, #0d5d91 55%, #1676c5 100% );
}

    .inner-page-hero::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 118px;
        opacity: 0.14;
        background: url("../images/electricity-city-line.svg") center bottom / cover no-repeat;
        pointer-events: none;
    }

    .inner-page-hero::after {
        content: "";
        position: absolute;
        top: -180px;
        left: -110px;
        width: 450px;
        height: 450px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.024), 0 0 0 110px rgba(255, 255, 255, 0.017);
    }

.inner-page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding:150px 0 72px;
}

    .inner-page-hero-content > span {
        display: block;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 13px;
        font-weight: 700;
    }

.inner-page-hero h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.35;
    font-weight: 800;
}

.inner-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

    .inner-breadcrumb a {
        color: #ffffff;
        font-weight: 600;
    }

        .inner-breadcrumb a:hover {
            color: var(--gov-yellow);
        }

    .inner-breadcrumb i {
        font-size: 9px;
    }

/* =========================================
   LAYOUT
========================================= */

.governance-section {
    padding: 0 0 28px;
    background: var(--gov-bg);
}

.governance-layout {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    transform: translateY(-30px);
}

.governance-main {
    min-width: 0;
}

/* =========================================
   SIDEBAR
========================================= */

.governance-sidebar {
    display: grid;
    gap: 16px;
}

.governance-sidebar-card {
    overflow: hidden;
    border: 1px solid var(--gov-border);
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(11, 63, 109, 0.09);
}

.governance-sidebar-title {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--gov-navy), var(--gov-blue) );
}

    .governance-sidebar-title > span {
        width: 45px;
        height: 45px;
        flex: 0 0 45px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.15);
        font-size: 20px;
    }

    .governance-sidebar-title small {
        display: block;
        margin-bottom: 3px;
        color: rgba(255, 255, 255, 0.76);
        font-size: 11px;
    }

    .governance-sidebar-title h2 {
        margin: 0;
        color: #ffffff;
        font-size: 17px;
    }

.governance-side-menu {
    padding: 9px;
}

    .governance-side-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 11px;
        padding: 11px 13px;
        border-bottom: 1px solid #edf2f6;
        border-radius: 8px;
        color: #40566b;
        font-size: 12px;
        font-weight: 600;
    }

        .governance-side-menu a:last-child {
            border-bottom: 0;
        }

        .governance-side-menu a > span {
            display: flex;
            align-items: center;
            gap: 9px;
        }

            .governance-side-menu a > span i {
                width: 20px;
                color: var(--gov-blue);
                text-align: center;
                font-size: 15px;
            }

        .governance-side-menu a > i {
            color: #a3b0bc;
            font-size: 9px;
        }

        .governance-side-menu a:hover,
        .governance-side-menu a.active {
            color: #ffffff;
            background: linear-gradient( 90deg, var(--gov-blue-dark), var(--gov-blue) );
        }

            .governance-side-menu a:hover i,
            .governance-side-menu a.active i {
                color: #ffffff;
            }

/* =========================================
   HELP
========================================= */

.governance-contact-box {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient( 145deg, var(--gov-navy), var(--gov-blue-dark) );
    box-shadow: 0 14px 32px rgba(11, 63, 109, 0.2);
}

    .governance-contact-box::before {
        content: "";
        position: absolute;
        left: -18px;
        bottom: -26px;
        width: 100px;
        height: 100px;
        border: 5px dotted rgba(255, 255, 255, 0.14);
        border-radius: 50%;
    }

.governance-contact-icon {
    position: relative;
    z-index: 2;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    margin-right: auto;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 21px;
}

.governance-contact-box h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.governance-contact-box p {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    line-height: 1.8;
}

.governance-contact-box a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 17px;
    border-radius: 30px;
    background: var(--gov-yellow);
    color: var(--gov-navy-dark);
    font-size: 12px;
    font-weight: 800;
}

/* =========================================
   MAIN CARD
========================================= */

.governance-card {
    padding: 35px;
    border: 1px solid var(--gov-border);
    border-radius: 21px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(11, 63, 109, 0.09);
}

.governance-card-header {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 25px;
}

.governance-card-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--gov-soft-blue);
    color: var(--gov-blue);
    font-size: 26px;
}

.governance-label {
    display: block;
    margin-bottom: 5px;
    color: var(--gov-blue);
    font-size: 12px;
    font-weight: 800;
}

.governance-card-header h2 {
    margin: 0 0 7px;
    color: var(--gov-navy);
    font-size: 29px;
    font-weight: 800;
}

.governance-card-header p {
    margin: 0;
    color: var(--gov-muted);
    font-size: 13px;
    line-height: 1.8;
}

.governance-intro {
    margin-bottom: 24px;
    padding: 20px;
    border-right: 4px solid var(--gov-yellow);
    border-radius: 13px;
    background: #fffaf0;
}

    .governance-intro p {
        margin: 0 0 12px;
        color: #556a7d;
        font-size: 13px;
        line-height: 2;
    }

        .governance-intro p:last-child {
            margin-bottom: 0;
        }

    .governance-intro strong {
        color: var(--gov-navy);
    }

/* =========================================
   MAIN FILE
========================================= */

.governance-main-file {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--gov-border);
    border-radius: 16px;
    background: linear-gradient( 135deg, #ffffff, #f4f9fd );
    box-shadow: 0 7px 20px rgba(7, 63, 105, 0.055);
}

.governance-main-file-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff0f0;
    color: #d94343;
    font-size: 30px;
}

.governance-main-file-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .governance-main-file-content small {
        color: var(--gov-blue);
        font-size: 11px;
        font-weight: 800;
    }

    .governance-main-file-content strong {
        color: var(--gov-navy);
        font-size: 17px;
    }

    .governance-main-file-content span {
        color: var(--gov-muted);
        font-size: 12px;
    }

.governance-main-file-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 9px;
    background: var(--gov-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

/* =========================================
   FILES
========================================= */

.governance-section-heading {
    margin-bottom: 18px;
}

    .governance-section-heading span {
        display: block;
        margin-bottom: 4px;
        color: var(--gov-blue);
        font-size: 11px;
        font-weight: 800;
    }

    .governance-section-heading h3 {
        margin: 0;
        color: var(--gov-navy);
        font-size: 21px;
    }

.governance-files-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.governance-file-card {
    position: relative;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--gov-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(7, 63, 105, 0.055);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .governance-file-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient( 180deg, var(--gov-blue), var(--gov-light-blue) );
    }

    .governance-file-card:hover {
        transform: translateY(-4px);
        border-color: #b9d8ec;
        box-shadow: 0 13px 28px rgba(7, 63, 105, 0.1);
    }

.governance-file-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff0f0;
    color: #d94343;
    font-size: 25px;
}

.governance-file-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--gov-blue);
    font-size: 10px;
    font-weight: 800;
}

.governance-file-card h4 {
    margin: 0 0 7px;
    color: var(--gov-navy);
    font-size: 16px;
    line-height: 1.55;
}

.governance-file-card p {
    margin: 0 0 14px;
    color: var(--gov-muted);
    font-size: 12px;
    line-height: 1.8;
}

.governance-file-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--gov-blue);
    font-size: 12px;
    font-weight: 800;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {
    .governance-layout {
        grid-template-columns: 1fr;
    }

    .governance-sidebar {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .governance-main {
        order: 1;
    }
}

@media (max-width: 700px) {
    .inner-page-hero {
        min-height: 205px;
    }

    .inner-page-hero-content {
        padding: 150px 0 55px;
    }

    .inner-page-hero h1 {
        font-size: 30px;
    }

    .governance-layout {
        transform: translateY(-22px);
    }

    .governance-card {
        padding: 25px 18px;
        border-radius: 17px;
    }

    .governance-card-header {
        align-items: center;
    }

    .governance-card-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 22px;
    }

    .governance-card-header h2 {
        font-size: 23px;
    }

    .governance-main-file {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .governance-main-file-icon {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }

    .governance-main-file-action {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .governance-files-grid {
        grid-template-columns: 1fr;
    }

    .governance-file-card {
        min-height: auto;
    }

    .governance-sidebar {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   BOARD PAGE
========================================= */

.board-page-card {
    overflow: hidden;
}

.board-election-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 17px 19px;
    border-right: 4px solid var(--gov-yellow);
    border-radius: 12px;
    background: #fffaf0;
}

    .board-election-note i {
        margin-top: 3px;
        color: #c98d09;
        font-size: 18px;
    }

    .board-election-note p {
        margin: 0;
        color: #5d6e7c;
        font-size: 13px;
        line-height: 1.9;
    }

/* الرئيس ونائب الرئيس */

.board-leadership {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 30px;
}

.board-leader-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 155px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--gov-border);
    border-radius: 18px;
    background: linear-gradient( 135deg, #ffffff, #f4f9fd );
    box-shadow: 0 8px 23px rgba(7, 63, 105, 0.07);
}

    .board-leader-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient( 180deg, var(--gov-blue), var(--gov-light-blue) );
    }

.board-chairman {
    border-color: #e8d49a;
    background: linear-gradient( 135deg, #fffdf7, #fff8df );
}

    .board-chairman::before {
        background: linear-gradient( 180deg, #d59b0c, var(--gov-yellow) );
    }

.board-role-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf5fc;
    color: var(--gov-blue);
    font-size: 10px;
    font-weight: 800;
}

.board-chairman .board-role-badge {
    background: #fff0be;
    color: #9a6b00;
}

.board-member-avatar {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    display: grid;
    place-items: center;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #e5f2fb;
    color: var(--gov-blue);
    font-size: 34px;
    box-shadow: 0 8px 20px rgba(7, 63, 105, 0.12);
}

.board-chairman .board-member-avatar {
    background: #fff1c7;
    color: #b27a00;
}

.board-member-content {
    min-width: 0;
    padding-top: 22px;
}

    .board-member-content > span {
        display: block;
        margin-bottom: 4px;
        color: var(--gov-blue);
        font-size: 11px;
        font-weight: 800;
    }

    .board-member-content h3 {
        margin: 0 0 7px;
        color: var(--gov-navy);
        font-size: 18px;
        line-height: 1.55;
    }

    .board-member-content p {
        margin: 0;
        color: var(--gov-muted);
        font-size: 12px;
    }

/* باقي الأعضاء */

.board-members-section {
    padding-top: 3px;
}

.board-members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.board-member-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 115px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--gov-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(7, 63, 105, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .board-member-card:hover {
        transform: translateY(-3px);
        border-color: #b9d8ec;
        box-shadow: 0 12px 25px rgba(7, 63, 105, 0.09);
    }

.board-member-number {
    position: absolute;
    top: 9px;
    left: 11px;
    color: #a5b5c2;
    font-size: 10px;
    font-weight: 800;
    direction: ltr;
}

.board-small-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--gov-soft-blue);
    color: var(--gov-blue);
    font-size: 22px;
}

.board-member-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--gov-blue);
    font-size: 10px;
    font-weight: 700;
}

.board-member-card h4 {
    margin: 0 0 5px;
    color: var(--gov-navy);
    font-size: 14px;
    line-height: 1.55;
}

.board-member-card div > span {
    color: var(--gov-muted);
    font-size: 11px;
}

/* Responsive */

@media (max-width: 800px) {
    .board-leadership,
    .board-members-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .board-leader-card {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 54px;
    }

    .board-member-content {
        padding-top: 0;
    }

    .board-member-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .board-member-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .board-small-avatar {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
}
/* =========================================
   COMMITTEES
========================================= */

.committees-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.committee-card {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--gov-border);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(7, 63, 105, 0.055);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .committee-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient( 180deg, var(--gov-blue), var(--gov-light-blue) );
    }

    .committee-card:hover {
        transform: translateY(-4px);
        border-color: #b9d8ec;
        box-shadow: 0 13px 28px rgba(7, 63, 105, 0.1);
    }

.committee-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 14px;
    background: var(--gov-soft-blue);
    color: var(--gov-blue);
    font-size: 23px;
}

.committee-card-content {
    flex: 1;
}

.committee-label {
    display: block;
    margin-bottom: 5px;
    color: var(--gov-blue);
    font-size: 10px;
    font-weight: 800;
}

.committee-card h3 {
    margin: 0 0 8px;
    color: var(--gov-navy);
    font-size: 17px;
    line-height: 1.55;
}

.committee-card p {
    margin: 0 0 15px;
    color: var(--gov-muted);
    font-size: 12px;
    line-height: 1.85;
}

.committee-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--gov-blue);
    font-size: 12px;
    font-weight: 800;
}

    .committee-link i {
        transition: transform 0.2s ease;
    }

.committee-card:hover .committee-link i {
    transform: translateX(-4px);
}

/* Committee details */

.committee-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 27px;
}

    .committee-summary > div {
        display: grid;
        grid-template-columns: 44px auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 12px;
        padding: 17px;
        border: 1px solid var(--gov-border);
        border-radius: 14px;
        background: #f8fbfe;
    }

    .committee-summary i {
        grid-row: 1 / 3;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: var(--gov-soft-blue);
        color: var(--gov-blue);
        font-size: 19px;
    }

    .committee-summary strong {
        color: var(--gov-navy);
        font-size: 20px;
    }

    .committee-summary span {
        color: var(--gov-muted);
        font-size: 11px;
    }

.committee-members-list {
    display: grid;
    gap: 11px;
}

.committee-member-row {
    display: grid;
    grid-template-columns: 35px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid var(--gov-border);
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .committee-member-row:hover {
        transform: translateY(-2px);
        border-color: #bfdbea;
        box-shadow: 0 9px 22px rgba(7, 63, 105, 0.07);
    }

.committee-member-order {
    color: #9aabb8;
    font-size: 11px;
    font-weight: 800;
    direction: ltr;
}

.committee-member-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--gov-soft-blue);
    color: var(--gov-blue);
    font-size: 22px;
}

.committee-member-info {
    min-width: 0;
}

    .committee-member-info h4 {
        margin: 0 0 5px;
        color: var(--gov-navy);
        font-size: 14px;
        line-height: 1.55;
    }

    .committee-member-info span {
        color: var(--gov-muted);
        font-size: 11px;
    }

.committee-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #edf5fb;
    color: var(--gov-blue);
    font-size: 10px;
    font-weight: 800;
}

.leadership-position {
    background: #fff1c2;
    color: #996a00;
}

.committee-no-data {
    padding: 55px 20px;
    text-align: center;
}

    .committee-no-data i {
        display: block;
        margin-bottom: 12px;
        color: var(--gov-blue);
        font-size: 38px;
    }

    .committee-no-data h3 {
        margin: 0 0 7px;
        color: var(--gov-navy);
    }

    .committee-no-data p {
        margin: 0;
        color: var(--gov-muted);
        font-size: 12px;
    }

/* Responsive */

@media (max-width: 750px) {
    .committees-grid,
    .committee-summary {
        grid-template-columns: 1fr;
    }

    .committee-card {
        min-height: auto;
    }

    .committee-member-row {
        grid-template-columns: 35px 45px minmax(0, 1fr);
    }

    .committee-position-badge {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .committee-member-row {
        grid-template-columns: 35px minmax(0, 1fr);
    }

    .committee-member-avatar {
        display: none;
    }

    .committee-position-badge {
        grid-column: 2;
    }
}