:root {
    --navy: #071b35;
    --navy-soft: #0e2c52;
    --gold: #c9a227;
    --gold-soft: #f5df8d;
    --dark: #111827;
    --muted: #6b7280;
    --soft-bg: #f4f7fb;
    --white: #ffffff;
    --line: #e5e7eb;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--dark);
    background: #ffffff;
}

a {
    text-decoration: none;
}

.top-bar {
    background: var(--navy);
    color: #dbeafe;
    font-size: 14px;
    padding: 8px 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    font-weight: 800;
    color: var(--navy) !important;
    letter-spacing: -0.5px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--gold));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: 0 10px 25px rgba(7, 27, 53, 0.25);
}

.brand-tagline {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.nav-link {
    color: #1f2937 !important;
    font-weight: 700;
    font-size: 14px;
    margin: 0 2px;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    font-weight: 800;
    border-radius: 999px;
    padding: 11px 24px;
    box-shadow: 0 12px 30px rgba(201, 162, 39, 0.35);
    transition: 0.25s;
}

.btn-gold:hover {
    background: #b8901f;
    transform: translateY(-2px);
    color: var(--navy);
}

.scroll-top-space {
    scroll-margin-top: 110px;
}

.hero-panel {
    border-radius: 2rem;
    padding: 4rem 2rem;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(211, 166, 37, 0.35), transparent 24%), linear-gradient(135deg, #0a2342, #214f84);
}

.section-card,
.post-card,
.team-card,
.gallery-card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.08);
    overflow: hidden;
    height: 100%;
}

.news-header-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #f8fbff, #eef4fb);
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.08);
}

.news-search-form .input-group {
    box-shadow: 0 14px 35px rgba(10, 35, 66, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.news-search-form .input-group-text,
.news-search-form .form-control,
.news-search-form .btn {
    border: 0;
}

.news-search-form .input-group-text {
    background: #fff;
    color: var(--muted);
    padding-left: 1rem;
}

.news-search-form .form-control {
    padding: 0.95rem 0.5rem;
}

.news-search-form .form-control:focus {
    box-shadow: none;
}

.news-search-form .btn {
    padding-inline: 1.35rem;
}

.news-pagination .pagination {
    justify-content: center;
    gap: 0.45rem;
}

.news-pagination .page-link {
    border: 0;
    border-radius: 999px;
    color: var(--navy);
    padding: 0.7rem 1rem;
    box-shadow: 0 10px 28px rgba(10, 35, 66, 0.08);
}

.news-pagination .active > .page-link,
.news-pagination .page-link.active {
    background: var(--gold);
    color: var(--navy);
}

.placeholder-media {
    min-height: 220px;
    background: linear-gradient(135deg, #d8e3f0, #f8ecd2);
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

.rich-content {
    overflow-wrap: anywhere;
}

.article-slider {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #eff3f8;
    margin-bottom: 2rem;
    padding: 1rem;
}

.article-slider .carousel-item {
    background: linear-gradient(180deg, #f8fafc, #e8eef6);
    text-align: center;
}

.article-slider .carousel-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 75vh;
    display: block;
    margin: 0 auto;
}

.article-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.article-thumbs button {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(10, 35, 66, 0.12);
    cursor: pointer;
    opacity: 0.82;
    transition: 0.2s ease;
}

.article-thumbs button.active,
.article-thumbs button:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.article-thumbs img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    display: block;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.article-share-dropdown {
    margin-left: auto;
}

.article-share-dropdown .btn {
    border-radius: 999px;
}

.article-share-dropdown .dropdown-menu {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.14);
    padding: 0.5rem;
}

.article-share-dropdown .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
}

.article-sidebar {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.sidebar-card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(10, 35, 66, 0.08);
    overflow: hidden;
    background: #fff;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

.sidebar-info-list {
    display: grid;
    gap: 0.9rem;
}

.sidebar-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-info-list span {
    color: var(--muted);
    font-size: 0.92rem;
}

.sidebar-info-list strong {
    color: var(--dark);
    font-size: 0.95rem;
    text-align: right;
}

.sidebar-news-list {
    display: grid;
    gap: 0;
}

.sidebar-news-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    color: inherit;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    padding: 0.95rem 0;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-news-item:hover h3 {
    color: var(--gold);
}

.sidebar-news-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-news-item:first-child {
    padding-top: 0;
}

.sidebar-news-thumb {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    height: 72px;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #d8e3f0, #f8ecd2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
    border: 1px solid rgba(10, 35, 66, 0.06);
}

.sidebar-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-news-thumb i {
    font-size: 1.6rem;
}

.sidebar-news-item > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-news-item h3 {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.25rem;
    color: var(--navy);
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.sidebar-news-item span {
    color: var(--muted);
    font-size: 0.85rem;
    display: block;
    word-break: break-word;
}

.sidebar-card .card-body {
    overflow: hidden;
    padding: 1.5rem;
}

.org-chart-section {
    border-top: 1px solid #edf2f7;
    padding-top: 2.25rem;
}

.org-chart-header h2 {
    color: var(--navy);
    font-size: clamp(1.7rem, 2vw, 2.15rem);
    font-weight: 800;
}

.org-chart-shell {
    margin-top: 1.75rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
}

.org-chart-shell::-webkit-scrollbar {
    height: 10px;
}

.org-chart-shell::-webkit-scrollbar-thumb {
    background: #d6deea;
    border-radius: 999px;
}

.org-chart-shell::-webkit-scrollbar-track {
    background: #eef3f8;
    border-radius: 999px;
}

.org-chart-root,
.org-chart-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.org-chart-root {
    display: flex;
    justify-content: center;
    gap: 2rem;
    min-width: max-content;
    align-items: flex-start;
}

.org-chart-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.75rem;
}

.org-chart-children {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
}

.org-chart-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 1.35rem;
    background: linear-gradient(180deg, #d9e2ee, #c6d2e2);
    transform: translateX(-50%);
}

.org-chart-item > .org-chart-children::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100% - 7rem);
    height: 2px;
    background: linear-gradient(90deg, #d9e2ee, #c6d2e2);
    transform: translateX(-50%);
    border-radius: 999px;
}

.org-chart-children > .org-chart-item::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: 50%;
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, #d9e2ee, #c6d2e2);
    transform: translateX(-50%);
}

.org-card {
    width: 230px;
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at top, rgba(201, 162, 39, 0.1), transparent 38%),
        linear-gradient(180deg, #ffffff, #f9fbfd);
    border: 1px solid rgba(10, 35, 66, 0.07);
    box-shadow: 0 20px 44px rgba(10, 35, 66, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(10, 35, 66, 0.14);
}

.org-depth-0 > .org-card {
    width: 280px;
    border-radius: 1.8rem;
    box-shadow: 0 28px 60px rgba(10, 35, 66, 0.16);
}

.org-depth-0 > .org-card .org-card-photo {
    height: 205px;
}

.org-depth-0 > .org-card .org-card-body {
    padding: 1.2rem 1.2rem 1.3rem;
}

.org-depth-0 > .org-card .org-card-body h3 {
    font-size: 1.15rem;
}

.org-depth-0 > .org-card .org-card-body p {
    font-size: 0.95rem;
}

.org-depth-1 > .org-card {
    width: 240px;
}

.org-depth-2 > .org-card,
.org-depth-3 > .org-card,
.org-depth-4 > .org-card {
    width: 210px;
}

.org-card-photo {
    height: 170px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 28%),
        linear-gradient(135deg, #d8e3f0, #f8ecd2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

.org-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.org-card-photo i {
    font-size: 2.5rem;
}

.org-card-body {
    padding: 1.05rem 1rem 1.15rem;
}

.org-card-body h3 {
    margin: 0 0 0.35rem;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}

.org-card-body p {
    margin: 0;
    color: #8a6b12;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.org-depth-0 > .org-chart-children {
    margin-top: 2.4rem;
    padding-top: 2.25rem;
    gap: 1.75rem;
}

.org-depth-0 > .org-chart-children::before {
    height: 1.5rem;
}

.org-depth-0 > .org-chart-children > .org-chart-item::before {
    top: -2.25rem;
    height: 2.25rem;
}

.org-depth-0 > .org-chart-children::after {
    width: calc(100% - 9rem);
}

.org-depth-1 > .org-chart-children {
    gap: 1.1rem;
}

.org-depth-1 > .org-chart-children::after {
    width: calc(100% - 6.5rem);
}

.org-depth-2 > .org-chart-children,
.org-depth-3 > .org-chart-children {
    gap: 0.9rem;
}

.org-depth-2 > .org-chart-children::after,
.org-depth-3 > .org-chart-children::after {
    width: calc(100% - 5.75rem);
}

@media (max-width: 991px) {
    .sidebar-news-thumb {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        height: 68px;
    }

    .org-chart-root,
    .org-chart-children {
        gap: 1rem;
    }

    .org-card,
    .org-depth-1 > .org-card {
        width: 210px;
    }

    .org-depth-0 > .org-card {
        width: 250px;
    }

    .org-depth-0 > .org-card .org-card-photo {
        height: 185px;
    }
}

@media (max-width: 767px) {
    .article-share-dropdown {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .article-slider {
        padding: 0.75rem;
    }

    .article-slider .carousel-item img {
        max-height: 48vh;
    }

    .org-chart-root,
    .org-chart-children {
        flex-direction: column;
        align-items: center;
        min-width: 100%;
    }

    .org-chart-item {
        padding: 0;
    }

    .org-chart-item > .org-chart-children::after {
        display: none;
    }

    .org-card {
        width: min(100%, 280px);
    }

    .org-depth-0 > .org-card,
    .org-depth-1 > .org-card,
    .org-depth-2 > .org-card,
    .org-depth-3 > .org-card,
    .org-depth-4 > .org-card {
        width: min(100%, 280px);
    }
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loader-overlay.show {
    display: flex;
}

.footer {
    background: var(--navy);
    color: #d1d5db;
    padding: 70px 0 24px;
}

.footer h5,
.footer h6 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer p {
    line-height: 1.8;
    color: #cbd5e1;
}

.footer a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 10px;
    transition: 0.2s;
}

.footer a:hover {
    color: var(--gold-soft);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 40px;
    padding-top: 22px;
    color: #94a3b8;
    font-size: 14px;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    color: #fff !important;
    border-radius: 50%;
    margin-right: 8px;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--navy) !important;
    padding-left: 0 !important;
}

@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
}
