:root {
    --primary: #1f2563;
    --primary-dark: #161b4a;
    --accent: #f3ad1b;
    --text: #20223a;
    --muted: #6b6f82;
    --surface: #ffffff;
    --background: #f4f6fb;
    --border: rgba(17, 21, 46, 0.1);
    --shadow: 0 20px 45px rgba(23, 30, 84, 0.08);
}

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

body {
    margin: 0;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
}

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

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

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Header / Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 20, 56, 0.04);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.2rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand img {
    width: 64px;
}

.brand .brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand .brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.brand .brand-tagline {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--muted);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
    border-color: var(--accent);
}

.nav-cta {
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #2a2e43;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(243, 173, 27, 0.25);
}

/* Hero */
.hero {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(243, 173, 27, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
}

.hero-text {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.hero-image,
.hero-media {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(14, 18, 52, 0.18);
}

.hero-image::after,
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, rgba(31,37,99,0.35) 0%, rgba(31,37,99,0.05) 100%);
}

.hero-image img,
.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media video {
    display: block;
}

/* Sections */
.section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-header {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    color: var(--primary-dark);
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    max-width: 540px;
}

.insights-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.insights-feature {
    background: linear-gradient(140deg, rgba(31, 37, 99, 0.92), rgba(31, 37, 99, 0.75));
    color: #fff;
    border-radius: 28px;
    padding: clamp(1.8rem, 4vw, 2.4rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 30px 60px rgba(17, 23, 64, 0.25);
}

.insights-feature h3 {
    margin: 0;
    font-size: 1.7rem;
}

.insights-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li {
    position: relative;
    padding-inline-start: 1.4rem;
    font-weight: 600;
}

.feature-list li::before {
    content: '\2022';
    position: absolute;
    inset-inline-start: 0;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
}

.insights-feature .btn {
    align-self: flex-start;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.insights-feature .btn:hover {
    background: #fff;
    color: var(--primary-dark);
}

.insights-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 15px 35px rgba(19, 22, 53, 0.08);
}

.insight-card h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.insight-card p {
    margin: 0;
    color: var(--muted);
}

.insight-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(31, 37, 99, 0.08);
    color: var(--primary);
    font-size: 1.4rem;
}

.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(31, 37, 99, 0.06);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-card .btn {
    align-self: flex-start;
}

.news-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-card {
    padding: 0;
    overflow: hidden;
}

.news-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.news-card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.news-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.news-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.news-link i {
    transition: transform 0.2s ease;
}

[dir="ltr"] .news-link:hover i {
    transform: translateX(4px);
}

[dir="rtl"] .news-link:hover i {
    transform: translateX(-4px);
}

.empty-state {
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    background: rgba(31, 37, 99, 0.03);
    border: 1px dashed var(--border);
    border-radius: 18px;
    padding: 1.8rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 18px 40px rgba(24, 29, 73, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card.company-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.card.company-card.small {
    padding: 1.2rem;
    text-decoration: none;
    gap: 0.6rem;
}

.card.company-card.small strong {
    font-size: 1rem;
    color: var(--primary);
}

.card.company-card.small span {
    color: var(--muted);
    font-size: 0.9rem;
}

.card-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary);
}

.card-text {
    margin: 0;
    color: var(--muted);
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.list-bullet::before {
    content: '•';
    color: var(--accent);
    margin-inline-start: 0.5rem;
    font-weight: 900;
}

.timeline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.4rem, 4vw, 2rem);
    position: relative;
}

.timeline-gallery::after {
    content: '';
    position: absolute;
    inset-inline: 10%;
    top: 50%;
    height: 4px;
    background: linear-gradient(90deg, rgba(31, 37, 99, 0.18), rgba(243, 173, 27, 0.25), rgba(31, 37, 99, 0.18));
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.8;
}

.timeline-glow-card {
    position: relative;
    background: var(--surface);
    border-radius: 28px;
    padding: 2rem 1.8rem 1.8rem;
    border: 1px solid rgba(31, 37, 99, 0.12);
    box-shadow: 0 25px 45px rgba(18, 23, 58, 0.12);
    overflow: hidden;
}

.timeline-glow-card::before {
    content: '';
    position: absolute;
    inset: -40% 40% auto -40%;
    height: 70%;
    background: radial-gradient(circle, rgba(243, 173, 27, 0.22), transparent 60%);
    opacity: 0.85;
}

.timeline-glow-card h3,
.timeline-glow-card p,
.timeline-tag {
    position: relative;
    z-index: 1;
}

.timeline-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 37, 99, 0.9), rgba(31, 37, 99, 0.65));
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 12px 24px rgba(18, 23, 60, 0.25);
    margin-bottom: 1rem;
}

.timeline-glow-card h3 {
    margin: 0 0 0.8rem 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.timeline-glow-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.timeline-footnote {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
}

.about-history-gallery {
    margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

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

.team-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.2rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(18, 22, 58, 0.12);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.team-card strong {
    font-size: 1.05rem;
    color: var(--primary);
}

.team-card span {
    color: var(--muted);
    font-weight: 600;
}
.team-card-bio {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    text-align: center;
    display: none;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.team-card.is-expanded .team-card-bio {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.team-read-more {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    padding-inline: 1.2rem;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.highlight-banner {
    background: linear-gradient(135deg, rgba(243, 173, 27, 0.12), rgba(31, 37, 99, 0.12));
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 3rem);
    display: grid;
    gap: 1rem;
    text-align: center;
}

.highlight-banner h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.highlight-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.logo-section .section-header,
.products-section .section-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.logo-section .section-subtitle,
.products-section .section-subtitle {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.logo-marquee,
.product-marquee {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 0;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(31, 37, 99, 0.04), rgba(31, 37, 99, 0));
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}

.logo-marquee::before {
    inset-inline-start: 0;
    background: linear-gradient(to right, var(--surface), transparent);
}

.logo-marquee::after {
    inset-inline-end: 0;
    background: linear-gradient(to left, var(--surface), transparent);
}

.logo-marquee-track {
    display: block;
    white-space: nowrap;
    animation: marquee-slide 22s linear infinite;
    will-change: transform;
}

.logo-marquee-row {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 2.2rem;
    padding-inline: 1rem;
}

.logo-marquee[data-dir="rtl"] .logo-marquee-track {
    animation-direction: reverse;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(31, 37, 99, 0.12);
    box-shadow: 0 12px 22px rgba(17, 21, 46, 0.08);
}

.logo-chip img {
    max-height: 60px;
    width: auto;
    filter: grayscale(0.2);
    opacity: 0.9;
}

.logo-chip span {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

@keyframes marquee-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track {
        animation: none;
    }
}

.social-buttons {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

.activities-products-section .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.activities-products-section .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.activities-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.activities-product-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(18, 22, 58, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.activities-product-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 0.2rem;
}

.activities-product-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary);
}

.company-hero {
    padding: clamp(2rem, 6vw, 4rem) 0;
    background: linear-gradient(135deg, rgba(31, 37, 99, 0.05), rgba(243, 173, 27, 0.08));
}

.company-hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    gap: 2rem;
}

.company-hero-text h1 {
    margin: 1rem 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary);
}

.company-hero-text p {
    margin: 0 0 1.5rem 0;
    color: var(--muted);
    line-height: 1.9;
}

.company-hero-media img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 45px rgba(18, 22, 58, 0.15);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 16px 30px rgba(31, 37, 99, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn i {
    font-size: 1.1rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(31, 37, 99, 0.16);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0f5bc0);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0a66c2, #084b8a);
}

.social-btn span {
    display: inline-block;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.88);
    padding: clamp(3rem, 6vw, 4rem) 0 1.5rem;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 520px;
}

.footer-brand img {
    width: 72px;
}

.footer-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    color: #fff;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-note {
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-cta {
        margin-top: 0.5rem;
    }

    .insights-layout {
        grid-template-columns: 1fr;
    }

    .insights-feature .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline-rail {
        gap: 1.2rem;
    }

    .timeline-unit {
        min-width: 220px;
    }

    .timeline-bullet {
        width: 80px;
        height: 80px;
        font-size: 1.05rem;
    }

    .timeline-pane {
        min-height: auto;
        padding: 1.2rem;
    }

    .timeline-gallery {
        grid-template-columns: 1fr;
    }

    .timeline-gallery::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .social-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .social-btn {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 3rem;
    }

    .navbar {
        padding: 1rem 0;
    }
}
