@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:       #1B4FD8;
    --primary-light: #EEF2FF;
    --primary-dark:  #1239A6;
    --bg:            #F8FAFC;
    --surface:       #FFFFFF;
    --border:        #E2E8F0;
    --text-primary:  #0F172A;
    --text-secondary:#475569;
    --text-muted:    #94A3B8;
    --success:       #10B981;
    --radius:        12px;
    --radius-sm:     8px;
}

html {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    background: var(--bg);
    color: var(--text-primary);
    scroll-behavior: smooth;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
}
.logo-icon {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; }
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.navbar-nav a {
    font-size: 14px; font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s;
}
.navbar-nav a:hover,
.navbar-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}
.navbar-cta {
    background: var(--primary);
    color: white !important;
    padding: 7px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}
.navbar-cta:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, #1B4FD8 0%, #1239A6 100%);
    padding: 56px 40px 48px;
    text-align: center;
    color: white;
}
.page-hero .badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 12px; font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.page-hero p  { font-size: 15px; opacity: 0.85; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Content ── */
.content { max-width: 800px; margin: 0 auto; padding: 48px 24px 64px; flex: 1; }

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
}
.section-title {
    font-size: 17px; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.section-title .icon {
    width: 32px; height: 32px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}
.section p   { font-size: 14.5px; line-height: 1.85; color: var(--text-secondary); margin-bottom: 12px; }
.section p:last-child { margin-bottom: 0; }
.section ul  { padding-right: 20px; margin: 8px 0 12px; }
.section ul li {
    font-size: 14.5px; line-height: 1.8;
    color: var(--text-secondary); margin-bottom: 4px;
}
.section ul li::marker { color: var(--primary); }
.last-updated {
    font-size: 12.5px; color: var(--text-muted);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 6px;
}

/* ── Footer ── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 28px 40px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.footer-brand span { color: var(--primary); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
    font-size: 13px; color: var(--text-secondary);
    text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); text-decoration: none; }
.footer-copy {
    font-size: 12.5px; color: var(--text-muted);
    width: 100%; text-align: center;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px; text-align: center;
}
.contact-card .contact-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}
.contact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p  { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.contact-card a  { color: var(--primary); font-weight: 500; }

/* ── About values ── */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-item { background: var(--primary-light); border-radius: var(--radius-sm); padding: 16px; }
.value-item .val-icon { font-size: 22px; margin-bottom: 8px; }
.value-item h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.value-item p  { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── Homepage ── */
.hero {
    background: linear-gradient(135deg, #1B4FD8 0%, #0F2F8A 100%);
    padding: 80px 40px 72px;
    text-align: center; color: white;
}
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p  { font-size: 17px; opacity: 0.88; max-width: 560px; margin: 0 auto 32px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white {
    background: white; color: #1B4FD8;
    padding: 12px 28px; border-radius: 10px;
    font-size: 14px; font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none; transition: opacity 0.15s;
    display: inline-block;
}
.btn-white:hover { opacity: 0.9; text-decoration: none; color: #1B4FD8; }
.btn-outline {
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 12px 28px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none; transition: all 0.15s;
    display: inline-block;
}
.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.08);
    text-decoration: none; color: white;
}
.features { max-width: 1000px; margin: 0 auto; padding: 56px 24px 64px; }
.features h2  { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.features .sub { text-align: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 36px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    transition: box-shadow 0.15s;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.feature-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }
.links-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}
.links-section h2 { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.links-grid {
    max-width: 800px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.link-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s;
    display: flex; align-items: center; gap: 10px;
}
.link-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}
.link-card .licon { font-size: 20px; flex-shrink: 0; }
.ltitle { font-size: 13.5px; font-weight: 600; }
.lsub   { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.link-card:hover .lsub { color: var(--primary); opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .navbar-nav { display: none; }
    .hero h1 { font-size: 26px; }
    .hero { padding: 48px 20px 40px; }
    .page-hero { padding: 40px 20px 32px; }
    .page-hero h1 { font-size: 24px; }
    .content { padding: 28px 16px 48px; }
    .section { padding: 20px 18px; }
    .contact-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    footer { padding: 24px 20px; }
}
