:root {
    --akic-primary: #0F6A38;
    --akic-primary-dark: #0A4B2A;
    --akic-gold: #C8A951;
    --akic-white: #FFFFFF;
    --akic-bg: #F8FAFC;
    --akic-text: #1F2937;
    --akic-muted: #6B7280;
    --akic-border: #E5E7EB;
    --akic-success: #16A34A;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 14px 45px rgba(15, 106, 56, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--akic-text);
    background: radial-gradient(circle at top right, rgba(200, 169, 81, 0.12), transparent 50%), var(--akic-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, label, span, li {
    font-family: "Montserrat", sans-serif;
}

h1 {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.15;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    color: var(--akic-text);
}

.section-head {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--akic-text);
    margin-bottom: 10px;
}

p, li, a {
    font-size: 16px;
}

small {
    font-size: 14px;
}

a {
    color: var(--akic-primary);
    text-decoration: none;
}

a:hover {
    color: var(--akic-primary-dark);
}

.section-padding {
    padding: 90px 0;
}

.section-muted {
    background: var(--akic-white);
}

.akic-navbar {
    transition: all 0.28s ease;
    padding: 16px 0;
    background: transparent;
}

.akic-navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(8px);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-brand span {
    color: var(--akic-white);
    font-weight: 700;
}

.akic-navbar.scrolled .navbar-brand span,
.akic-navbar.scrolled .nav-link,
.akic-navbar.scrolled .search-trigger {
    color: var(--akic-text) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
    position: relative;
    padding: 10px 12px !important;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--akic-gold);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background: var(--akic-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

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

.akic-navbar .navbar-nav {
    flex-wrap: nowrap;
}

.akic-navbar .nav-link {
    white-space: nowrap;
}

.akic-nav-tools {
    margin-inline-start: 8px;
}

.akic-donate-btn {
    min-width: 132px;
}

.akic-dropdown-menu {
    border: 1px solid var(--akic-border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(15, 106, 56, 0.15);
    animation: menuSlideIn 0.18s ease;
    margin-top: 8px;
    min-width: 280px;
}

.akic-dropdown-menu li {
    list-style: none;
}

.akic-dropdown-menu--compact {
    width: min(360px, 84vw);
}

.akic-dropdown-menu--mega {
    width: min(780px, 74vw);
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 6px 8px;
}

.akic-dropdown-menu--mega .dropdown-item {
    min-height: 46px;
}

.akic-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 500;
}

.akic-dropdown-menu .dropdown-item i {
    color: var(--akic-primary);
    font-size: 16px;
}

.akic-dropdown-menu .dropdown-item:hover,
.akic-dropdown-menu .dropdown-item:focus-visible {
    background: rgba(15, 106, 56, 0.08);
}

@media (min-width: 992px) {
    .akic-navbar .nav-item.dropdown {
        position: relative;
    }

    .akic-navbar .nav-item.dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        pointer-events: none;
    }

    .akic-navbar .nav-item.dropdown:hover .dropdown-menu,
    .akic-navbar .nav-item.dropdown:focus-within .dropdown-menu,
    .akic-navbar .nav-item.dropdown .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .akic-navbar .dropdown-menu.dropdown-menu-end {
        left: auto;
        right: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .akic-dropdown-menu--mega {
        width: min(640px, 86vw);
        grid-template-columns: 1fr;
    }
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.akic-toggler {
    border: 0;
    color: var(--akic-white);
    font-size: 28px;
}

.akic-mobile-menu {
    width: min(92vw, 420px);
    border-left: 1px solid var(--akic-border);
}

.akic-mobile-menu .accordion-item {
    border: 1px solid var(--akic-border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.akic-mobile-menu .accordion-button {
    font-weight: 600;
    background: var(--akic-white);
}

.akic-mobile-menu .accordion-button:not(.collapsed) {
    color: var(--akic-primary-dark);
    background: rgba(15, 106, 56, 0.08);
    box-shadow: none;
}

.akic-mobile-menu .accordion-body a {
    color: var(--akic-text);
    font-weight: 500;
}

.akic-mobile-menu .accordion-body a:hover {
    color: var(--akic-primary);
}

.search-trigger {
    color: var(--akic-white);
    font-size: 20px;
}

.akic-btn-primary,
.akic-btn-outline,
.akic-btn-light,
.akic-filter-btn {
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.akic-btn-primary {
    background: linear-gradient(135deg, var(--akic-primary), var(--akic-primary-dark));
    color: var(--akic-white);
    border: 1px solid transparent;
}

.akic-btn-primary:hover,
.akic-btn-primary:focus-visible {
    color: var(--akic-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(10, 75, 42, 0.25);
}

.akic-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--akic-white);
}

.akic-btn-outline:hover {
    border-color: var(--akic-white);
    color: var(--akic-white);
    background: rgba(255, 255, 255, 0.08);
}

.akic-btn-light {
    border: 1px solid var(--akic-border);
    color: var(--akic-primary-dark);
    background: var(--akic-white);
}

.akic-btn-light:hover,
.akic-btn-light:focus-visible {
    border-color: var(--akic-primary);
    color: var(--akic-primary);
    transform: translateY(-2px);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 106, 56, 0.3), rgba(10, 75, 42, 0.4));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.02);
    filter: brightness(0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--akic-white);
    margin-top: 50px;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(36px, 7vw, 68px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    max-width: 700px;
    margin: 12px auto 40px;
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    z-index: 2;
    color: var(--akic-white);
    font-size: 28px;
    animation: floatY 2s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    border-color: var(--akic-white);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(7px); }
    100% { transform: translateY(0); }
}

.glass-card,
.service-card,
.stat-card,
.facility-card,
.leader-card,
.search-modal-content,
.timeline-item,
.org-node,
.gallery-item,
.map-wrap,
.breadcrumb-wrap,
.site-footer,
.toast {
    border: 1px solid var(--akic-border);
    border-radius: var(--radius-lg);
    background: var(--akic-white);
    box-shadow: var(--shadow-soft);
}

.glass-card,
.stat-card,
.timeline-item,
.org-node {
    padding: 24px;
}

.service-card,
.facility-card,
.leader-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card {
    padding: 24px;
    padding-left: 28px;
}

.facility-card,
.leader-card {
    padding-left: 0;
}

.facility-card > div,
.leader-card > div {
    padding: 20px 24px;
    padding-left: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover,
.facility-card:hover,
.leader-card:hover,
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(10, 75, 42, 0.15);
}

.service-image,
.facility-card img,
.leader-card img,
.gallery-thumb,
.gallery-item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(15, 106, 56, 0.14), rgba(15, 106, 56, 0.08));
    color: var(--akic-primary);
    font-size: 24px;
    margin-bottom: 12px;
    transition: all 0.24s ease;
}

.service-card:hover .icon-wrap {
    background: rgba(15, 106, 56, 0.18);
    transform: scale(1.1);
}

.stat-card i {
    font-size: 36px;
    color: var(--akic-primary);
    margin-bottom: 12px;
}

.counter {
    color: var(--akic-primary-dark);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 52px);
    margin-top: 8px;
    margin-bottom: 6px;
}

.stat-card p {
    font-weight: 600;
    font-size: 16px;
    color: var(--akic-text);
}

.gallery-thumb,
.gallery-item img {
    border-radius: var(--radius-md);
}

.gallery-masonry {
    columns: 3 300px;
    column-gap: 20px;
    row-gap: 0;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius-lg);
    background: var(--akic-white);
    border: 1px solid var(--akic-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 106, 56, 0.18);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 16px 18px;
    color: var(--akic-text);
    font-size: 15px;
    font-weight: 600;
    background: var(--akic-white);
    text-align: center;
    border-top: 1px solid var(--akic-border);
    margin-top: 0;
}

.partner-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.partner-item {
    min-width: 180px;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px dashed var(--akic-border);
    background: var(--akic-white);
}

.partner-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.donation-cta {
    background: linear-gradient(120deg, rgba(15, 106, 56, 0.95), rgba(10, 75, 42, 0.9));
    color: var(--akic-white);
}

.donation-cta .section-title,
.donation-cta p {
    color: var(--akic-white);
}

.breadcrumb-wrap {
    margin-top: 80px;
    border-radius: 0;
    border-inline: none;
}

.org-chart {
    text-align: center;
}

.org-arrow {
    font-size: 30px;
    margin: 8px 0;
}

.org-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline {
    border-left: 2px solid rgba(15, 106, 56, 0.2);
    margin-left: 12px;
    padding-left: 24px;
}

.timeline-item {
    margin-bottom: 18px;
}

.timeline-year {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--akic-primary);
}

.map-wrap {
    overflow: hidden;
    min-height: 360px;
}

.map-wrap iframe {
    border: 0;
    width: 100%;
    min-height: 360px;
}

.site-footer {
    background: #0E1A14;
    border: none;
    border-radius: 0;
    color: var(--akic-white);
}

.site-footer a,
.site-footer p,
.site-footer li,
.site-footer small,
.site-footer h5,
.site-footer h6 {
    color: rgba(255, 255, 255, 0.86);
}

.footer-links {
    padding: 0;
    list-style: none;
    margin: 0;
    display: grid;
    gap: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--akic-primary);
    color: var(--akic-white);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    border-bottom: 1px solid var(--akic-border);
    padding: 8px 0;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.skeleton-box {
    border-radius: var(--radius-md);
    height: 180px;
    background: linear-gradient(90deg, #edf2f7 25%, #f8fafc 50%, #edf2f7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.akic-filter-btn {
    border: 2px solid var(--akic-border);
    color: var(--akic-text);
    background: var(--akic-white);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.28s ease;
}

.akic-filter-btn.active,
.akic-filter-btn:hover {
    border-color: var(--akic-primary);
    background: var(--akic-primary);
    color: var(--akic-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 106, 56, 0.2);
}

.form-control:focus,
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--akic-gold);
    outline-offset: 2px;
    box-shadow: none;
}

.error-page {
    animation: fadeSlideIn 0.45s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 1rem !important;
}

html[dir="rtl"] .section-head,
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .form-label,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .search-result-item,
html[dir="rtl"] .site-footer {
    text-align: right;
}

html[dir="rtl"] .timeline {
    border-left: 0;
    border-right: 2px solid rgba(15, 106, 56, 0.2);
    margin-left: 0;
    margin-right: 12px;
    padding-left: 0;
    padding-right: 24px;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: 0.5rem;
}

html[dir="rtl"] .facility-card > div,
html[dir="rtl"] .leader-card > div,
html[dir="rtl"] .service-card {
    padding-left: 24px;
    padding-right: 28px;
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .toast-container {
    right: auto !important;
    left: 0;
}

html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

html[dir="rtl"] .nav-link::after {
    transform-origin: right;
}

html[dir="rtl"] .akic-dropdown-menu .dropdown-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .akic-navbar {
        background: rgba(14, 26, 20, 0.95);
    }

    .navbar-brand span,
    .search-trigger,
    .nav-link {
        color: var(--akic-white) !important;
    }

    .akic-toggler {
        color: var(--akic-white);
    }

    .section-padding {
        padding: 72px 0;
    }

    .gallery-masonry {
        columns: 2 260px;
    }
}

@media (min-width: 1200px) {
    .akic-mobile-menu {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-content {
        margin-top: 50px;
    }

    .gallery-masonry {
        columns: 1;
    }

    .gallery-item img {
        height: 240px;
    }

    .section-padding {
        padding: 58px 0;
    }
}
