﻿:root {
    --font-family-main: "Cairo", "Segoe UI", sans-serif;
    --bg-page: #eef4f7;
    --bg-card: #ffffff;
    --bg-card-soft: #f6fafc;
    --text-main: #173728;
    --text-muted: #5f7b69;
    --brand-primary: #16a34a;
    --brand-primary-dark: #15803d;
    --brand-secondary: #14532d;
    --brand-accent: #84cc16;
    --border-soft: #d8e7ef;
    --shadow-soft: 0 12px 32px rgba(14, 30, 37, 0.08);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --header-height: 84px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-main);
    background: radial-gradient(circle at top right, #e0f4f8 0%, var(--bg-page) 40%, #edf3f8 100%);
    color: var(--text-main);
}

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 16px 24px;
    background: rgba(239, 246, 250, 0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
}

.landing-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary), #22c55e);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.24);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-nav-link {
    border: 1px solid var(--border-soft);
    background: #ffffff;
    color: var(--text-main);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.landing-nav-link:hover {
    transform: translateY(-1px);
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
}

.landing-nav-link.highlighted {
    border-color: transparent;
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #ffffff;
}

.landing-main {
    padding: 20px 18px 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
}

.hero-section {
    max-width: 1240px;
    margin: 0 auto 22px;
    background: linear-gradient(125deg, #14532d 0%, #166534 45%, #15803d 100%);
    border-radius: var(--radius-lg);
    color: #ffffff;
    padding: clamp(24px, 5vw, 50px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::before {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.24) 0%, rgba(34, 197, 94, 0) 65%);
    top: -140px;
    left: -120px;
}

.hero-section::after {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.24) 0%, rgba(132, 204, 22, 0) 65%);
    bottom: -110px;
    right: -80px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    display: grid;
    gap: 14px;
}

.hero-kicker {
    margin: 0;
    font-weight: 700;
    color: #93f6ff;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    line-height: 1.22;
}

.hero-description {
    margin: 0;
    font-size: clamp(1rem, 2.3vw, 1.2rem);
    color: rgba(234, 248, 255, 0.95);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(140deg, #ffffff, #ecfdf3);
    color: #166534;
    box-shadow: 0 10px 20px rgba(6, 95, 70, 0.2);
}

.btn-secondary {
    background: rgba(12, 61, 33, 0.72);
    color: #ffffff;
    border: 1px solid rgba(187, 247, 208, 0.4);
}

.hero-actions .btn:hover {
    box-shadow: 0 14px 26px rgba(6, 95, 70, 0.24);
}

.slider-section {
    max-width: 1240px;
    margin: 0 auto 24px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #041f14;
    box-shadow: var(--shadow-soft);
}

.slider-track {
    position: relative;
    min-height: clamp(220px, 38vw, 420px);
}

.slider-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

.slider-item.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slider-item img {
    width: 100%;
    height: clamp(220px, 38vw, 420px);
    object-fit: contain;
    object-position: center;
    background: #041f14;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 21, 31, 0.72) 0%, rgba(4, 36, 53, 0.28) 60%, rgba(4, 36, 53, 0.14) 100%);
}

.slider-caption {
    position: absolute;
    right: 28px;
    left: 28px;
    bottom: 22px;
    color: #ffffff;
    z-index: 2;
    max-width: 760px;
    animation: fadeInUp 0.5s ease;
}

.slider-caption h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.slider-caption p {
    margin: 0;
    line-height: 1.8;
    color: rgba(244, 252, 255, 0.95);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(4, 33, 45, 0.62);
    color: #ffffff;
    z-index: 3;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(22, 163, 74, 0.95);
}

.slider-arrow-next {
    left: 14px;
}

.slider-arrow-prev {
    right: 14px;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.slider-dot.is-active {
    width: 28px;
    border-radius: 10px;
    background: #16a34a;
}

.section-block {
    padding: 56px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 680px;
}

.section-block.alt-bg {
    background: linear-gradient(180deg, #f6fbfd 0%, #eff6fa 100%);
    border-radius: 24px;
    padding-inline: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.section-header p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.feature-grid,
.department-grid,
.news-grid,
.testimonial-grid {
    display: grid;
    gap: 16px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary), #22c55e);
}

.feature-card h3 {
    margin: 14px 0 8px;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.department-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.department-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 238px;
    box-shadow: var(--shadow-soft);
}

.department-card img,
.department-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 238px;
    object-fit: cover;
}

.department-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #daeef8, #f2f9fd);
    color: #6f8ea1;
    font-size: 2rem;
}

.department-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 15, 24, 0) 0%, rgba(3, 15, 24, 0.86) 100%);
}

.department-overlay h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.department-overlay p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.95);
}

.stats-strip {
    margin: 10px 0;
    padding: 24px 0 18px;
    background: transparent;
    content-visibility: auto;
    contain-intrinsic-size: 1px 220px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d8e3ef;
    border-radius: 18px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #c4d8ea;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.stat-item strong {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 6px;
    color: #0f2f46;
    font-weight: 800;
}

.stat-item span {
    color: #5f7385;
    font-weight: 700;
    font-size: 0.92rem;
}

.news-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card,
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 16px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0071a8;
    font-size: 0.9rem;
}

.news-content h3 {
    margin: 10px 0 8px;
}

.news-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.testimonial-card {
    padding: 22px;
    text-align: center;
}

.testimonial-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
}

.testimonial-avatar.placeholder {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.testimonial-stars {
    margin: 12px 0 10px;
    color: var(--brand-accent);
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-card p {
    margin: 0 0 10px;
    line-height: 1.8;
    color: var(--text-muted);
}

.testimonial-card h4 {
    margin: 0;
}

.testimonial-card span {
    color: #15803d;
    font-weight: 700;
}

.branch-logo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.branch-logo-card {
    position: relative;
}

.branch-logo-item {
    min-height: 92px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.branch-logo-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    max-width: 210px;
    width: max-content;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #ffffff;
    background: rgba(2, 26, 39, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.branch-logo-card:hover::after {
    opacity: 1;
}

.branch-logo-item img {
    max-height: 62px;
    width: auto;
    object-fit: contain;
}

.branch-logo-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #ecfeff);
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
}

.branch-logo-caption {
    text-align: center;
    margin-top: 8px;
    display: grid;
    gap: 2px;
}

.branch-logo-name {
    font-size: 0.92rem;
    color: #14532d;
    font-weight: 800;
    line-height: 1.35;
}

.branch-logo-group {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.landing-footer {
    margin-top: 22px;
    padding: 20px 16px 28px;
    text-align: center;
    color: var(--text-muted);
}

.landing-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.landing-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    color: #15803d;
}

.mobile-sticky-cta {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 44;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(12, 41, 28, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(4, 20, 14, 0.3);
}

.mobile-sticky-cta a {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
}

.mobile-sticky-cta .cta-register {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
}

.mobile-sticky-cta .cta-portal {
    background: #f8fffb;
    color: #14532d;
    border-color: #cfead9;
}

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

@media (max-width: 1024px) {
    .feature-grid,
    .department-grid,
    .news-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .hero-content h1 {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 82px;
    }

    .landing-header {
        padding: 12px;
    }

    .landing-header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-nav {
        justify-content: center;
    }

    .landing-nav-link.nav-register,
    .landing-nav-link.nav-portal {
        display: none;
    }

    .landing-main {
        padding: 12px 10px 0;
    }

    .hero-actions {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(1.1rem, 5.2vw, 1.4rem);
        line-height: 1.35;
    }

    .slider-caption {
        right: 16px;
        left: 16px;
        bottom: 14px;
    }

    .slider-caption h2 {
        font-size: clamp(1.05rem, 4.8vw, 1.3rem);
    }

    .slider-caption p {
        font-size: 0.92rem;
    }

    .slider-arrow {
        display: none;
    }

    .section-block {
        padding: 40px 0;
    }

    .feature-grid,
    .department-grid,
    .news-grid,
    .testimonial-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .branch-logo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-sticky-cta {
        display: grid;
    }
}

@media (max-width: 420px) {
    .landing-nav-link {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 20px;
    }

    .branch-logo-strip {
        grid-template-columns: 1fr;
    }

    .slider-track {
        min-height: 200px;
    }

    .slider-item img {
        height: 200px;
    }
}

