/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.u-section-1 {
    min-height: 100vh;
}
.u-section-1 .u-sheet-1 {
    min-height: 957px;
}
.u-section-1 .u-text-1 {
    font-weight: 900;
    font-size: 3.75rem;
    margin: 30px 0 0;
}
.u-section-1 .u-text-2,
.u-section-1 .u-text-3 {
    margin: 21px 59px 0;
    filter: none;
    text-align: justify;
    font-family: 'Montserrat', sans-serif;
    color: #353948;
    line-height: 1.7;
}

/* ============================================================
   GOVERNANCE CHART WRAPPER
   ============================================================ */
.gov-chart {
    width: 100%;
    max-width: 1060px;
    margin: 48px auto 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
}

/* ============================================================
   ROWS
   ============================================================ */
.gc-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   ARROW ELEMENTS
   ============================================================ */
.gc-arrow-v {
    font-size: 1.5rem;
    color: #888;
    line-height: 1;
    margin: 4px 0;
    display: block;
    text-align: center;
}

.gc-arrow-lr {
    font-size: 1.3rem;
    color: #888;
    padding: 0 10px;
    flex-shrink: 0;
}

.gc-arrow-single {
    font-size: 1.3rem;
    color: #888;
    padding: 0 8px;
    flex-shrink: 0;
}

/* ============================================================
   BASE NODE
   ============================================================ */
.gc-node {
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

/* ============================================================
   LEVEL 1 — SHAREHOLDERS
   ============================================================ */
.gc-row--center {
    justify-content: center;
}

.gc-shareholders {
    background: #fff;
    border: 2px solid #aab;
    color: #1a2233;
    font-size: 0.95rem;
    padding: 12px 44px;
    letter-spacing: 0.06em;
}

/* ============================================================
   LEVEL 2 — BOARD OF DIRECTORS
   ============================================================ */
.gc-row--board {
    justify-content: center;
    gap: 0;
}

.gc-board-side {
    display: flex;
    align-items: center;
    flex: 1;
}

.gc-board-side--left {
    justify-content: flex-end;
}

.gc-board-side--right {
    justify-content: flex-start;
}

.gc-side-label {
    font-size: 0.75rem;
    color: #555;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

.gc-board {
    background: #f5a623;
    color: #fff;
    font-size: 1.05rem;
    padding: 14px 52px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.38);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   LEVEL 3 — COMMITTEES ROW
   ============================================================ */
.gc-row--committees {
    align-items: center;
    gap: 0;
}

/* Outside nodes (АЖЛЫН АЛБА / ДОТООД АУДИТЫН АЛБА) */
.gc-outside {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gc-outside--left {
    flex-direction: row;
}

.gc-outside--right {
    flex-direction: row;
}

.gc-side-dept {
    background: #fff;
    border: 2px solid #aab;
    color: #1a2233;
    font-size: 0.75rem;
    padding: 10px 12px;
    min-width: 76px;
    border-radius: 6px;
    line-height: 1.4;
}

/* ---- Oval container ---- */
.gc-oval {
    flex: 1;
    background: #edf0f5;
    border: 1.5px solid #c4cedb;
    border-radius: 40px;
    padding: 18px 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gc-oval-header {
    text-align: center;
    font-size: 0.75rem;
    color: #555;
    font-style: italic;
    padding-bottom: 10px;
    border-bottom: 1px dashed #bcc7d5;
}

/* ---- Committees inside oval ---- */
.gc-committees {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.gc-comm-divider {
    width: 1px;
    background: #c4cedb;
    flex-shrink: 0;
    margin: 0 8px;
}

.gc-committee {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gc-comm-title {
    font-weight: 800;
    font-size: 0.78rem;
    color: #1a2233;
    text-align: center;
    line-height: 1.3;
}

.gc-comm-desc {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    line-height: 1.45;
    font-weight: 400;
}

.gc-comm-footer {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    margin-top: auto;
    border-top: 1px solid #c4cedb;
    gap: 4px;
}

.gc-comm-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gc-flow-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.gc-comm-flow--down .gc-flow-arrow {
    color: #666;
}

.gc-comm-flow--up .gc-flow-arrow {
    color: #f5a623;
    font-weight: 700;
}

.gc-flow-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* ============================================================
   LEVEL 4 — EXECUTIVE MANAGEMENT
   ============================================================ */
.gc-row--exec {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.gc-exec-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gc-exec-title {
    font-weight: 900;
    font-size: 1rem;
    color: #1a2233;
    letter-spacing: 0.05em;
}

.gc-exec-sub {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.gc-exec-side {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
}

.gc-risk-node {
    background: #fff;
    border: 1.5px solid #aab;
    color: #1a2233;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px 12px;
    max-width: 130px;
    border-radius: 6px;
    line-height: 1.45;
    text-align: center;
}

/* ============================================================
   TREE CONNECTOR (Executive → Departments)
   ============================================================ */
.gc-tree-vline {
    width: 2px;
    height: 18px;
    background: #aab;
}

/* ============================================================
   LEVEL 5 — DEPARTMENTS
   ============================================================ */
.gc-row--depts {
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.gc-dept-col {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding-top: 20px; /* зай: хэвтээ зураас + босоо зураас */
}

/* Хэвтээ холбоос зураас — хоорондын зайг нөхөхийн тулд -3px (gap/2) */
.gc-dept-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    right: -3px;
    height: 2px;
    background: #aab;
}

/* Эхний баганад зүүн тал хасагдана */
.gc-dept-col:first-child::before {
    left: 50%;
    right: -3px;
}

/* Сүүлийн баганад баруун тал хасагдана */
.gc-dept-col:last-child::before {
    left: -3px;
    right: 50%;
}

/* Босоо унадаг зураас — хэвтээнээс хайрцаг руу */
.gc-dept-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #aab;
}

.gc-dept-node {
    background: #fff;
    border: 1.5px solid #aab;
    color: #1a2233;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 6px;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

/* ============================================================
   SHARED HEADING CLASS (used across all about pages)
   ============================================================ */
.about-page-h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #353948;
    text-align: center;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .u-section-1 .u-text-1 { font-size: 3rem; }
    .u-section-1 .u-text-2, .u-section-1 .u-text-3 { margin-left: 0; margin-right: 0; }

    .gc-board { font-size: 0.92rem; padding: 12px 36px; }
    .gc-oval { padding: 14px 16px 12px; }
}

@media (max-width: 991px) {
    .gc-board-side { display: none; }
    .gc-outside { display: none; }

    .gc-committees { flex-direction: column; gap: 10px; }
    .gc-comm-divider { width: 100%; height: 1px; margin: 0; }

    .gc-oval { border-radius: 24px; }


    .gc-row--depts { flex-wrap: wrap; }
    .gc-dept-col { flex: 0 0 calc(33.33% - 6px); }
}

@media (max-width: 767px) {
    .u-section-1 .u-text-1 { font-size: 2.25rem; }
    .about-page-h2 { font-size: 1.8rem; }

    .gc-shareholders { font-size: 0.78rem; padding: 10px 20px; }
    .gc-board { font-size: 0.8rem; padding: 10px 24px; }

    .gc-dept-col { flex: 0 0 calc(50% - 6px); }
}

@media (max-width: 575px) {
    .about-page-h2 { font-size: 1.5rem; }
    .gc-dept-col { flex: 0 0 100%; }
}
@media (max-width: 480px) {
    .about-page-h2 { font-size: 1.3rem; padding: 0 0.5rem; }
}
