:root {
    --primary-color: #0169b5;
    --primary-hover: #014f8a;
    --secondary-color: #228e57;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.text-white {
    color: var(--white);
}

.text-dark {
    color: var(--text-main);
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--dark-bg);
}

h2 {
    font-size: 2.25rem;
    color: var(--dark-bg);
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(1, 105, 181, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 105, 181, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary.lg,
.btn-secondary.lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 4px 0;
}

.navbar.scrolled {
    padding: 1px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.site-logo {
    height: 55px;
    margin-top: 13px;
    margin-bottom: 14px;
    max-width: 280px;
    width: auto;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.founder {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.nav-links>a,
.nav-links .dropdown-toggle {
    font-weight: 500;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--text-main);
    background-color: transparent;
}

.nav-links>a:hover,
.nav-links .dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    background: rgba(70, 70, 70, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Dropdown Menu */
.dropdown-menu::-webkit-scrollbar {
    width: 4px; /* Ultra-thin scrollbar */
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent; /* Invisible track */
    margin: 10px 0; /* Add margin so it doesn't touch the borders */
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); /* Subtle glass thumb */
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6); /* brighter on hover */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.3s ease, padding-right 0.3s ease;
}

.dropdown-menu a::after {
    display: none;
    /* Hide hover line for dropdown items */
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding-right: 32px;
    /* Slight indent on hover */
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    border-radius: 3px;
    transition: var(--transition);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--white);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 142, 87, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text .badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(1, 105, 181, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

/* Graphics */
.hero-graphics {
    position: relative;
    height: 400px;
}

/* Network Animation */
.network-animation {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.center-globe {
    width: 140px;
    height: 140px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(1, 105, 181, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    grid-area: 1 / 1;
    animation: pulse-globe 3s infinite alternate;
    border: 3px solid rgba(1, 105, 181, 0.1);
}

.center-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.orbit-ring {
    border-radius: 50%;
    border: 1.5px dashed rgba(1, 105, 181, 0.2);
    grid-area: 1 / 1;
    z-index: 1;
}

.ring-inner {
    width: 220px;
    height: 220px;
    animation: spin-ring 20s linear infinite;
}

.ring-outer {
    width: 340px;
    height: 340px;
    animation: spin-ring 30s linear infinite reverse;
}

.orbiting-circle {
    grid-area: 1 / 1;
    z-index: 5;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: -25px auto 0 auto;
    z-index: 2;
    border: 2px solid var(--light-bg);
}

.orbit-1 {
    width: 220px;
    height: 220px;
    animation: spin 15s linear infinite;
}

.orbit-1 .icon-wrapper {
    animation: anti-spin 15s linear infinite;
    color: #f59e0b;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    animation: spin 15s linear infinite;
    animation-delay: -7.5s;
}

.orbit-2 .icon-wrapper {
    animation: anti-spin 15s linear infinite;
    animation-delay: -7.5s;
    color: var(--secondary-color);
}

.orbit-3 {
    width: 340px;
    height: 340px;
    animation: spin 25s linear infinite;
}

.orbit-3 .icon-wrapper {
    animation: anti-spin 25s linear infinite;
    color: #3b82f6;
}

.orbit-4 {
    width: 340px;
    height: 340px;
    animation: spin 25s linear infinite;
    animation-delay: -12.5s;
}

.orbit-4 .icon-wrapper {
    animation: anti-spin 25s linear infinite;
    animation-delay: -12.5s;
    color: #ef4444;
}

@keyframes pulse-globe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(1, 105, 181, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(1, 105, 181, 0.25), 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes anti-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.align-center {
    align-items: center;
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-5 {
    margin-top: 3rem;
}

/* Modern About Section */
.about-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.about-section .section-header {
    margin-bottom: 3rem;
}

.about-section .badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(34, 142, 87, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
}

.modern-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.modern-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.about-content-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    opacity: 0;
}

.more-content.expanded {
    max-height: 1200px;
    opacity: 1;
    margin-top: 1.5rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 105, 181, 0.2);
}

.btn-read-more .btn-icon {
    transition: transform 0.3s ease;
}

.btn-read-more.active .btn-icon {
    transform: rotate(180deg);
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.modern-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-card .card-icon-wrapper {
    background: rgba(1, 105, 181, 0.1);
}

.mission-card .card-icon-wrapper {
    background: rgba(34, 142, 87, 0.1);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.modern-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modern-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Values Grid */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.value-item {
    background: var(--light-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid rgba(1, 105, 181, 0.2);
}

.feature-list {
    list-style: none;
    padding-right: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: 'ط·آ£ط¢آ¢ط£آ¢أ¢â‚¬ع‘ط¢آ¬ط·آ¢ط¢آ¢';
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -5px;
}

.feature-list-white {
    list-style: none;
    padding-right: 0;
}

.feature-list-white li {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
    position: relative;
}

.feature-list-white li::before {
    content: 'ط·آ£ط¢آ¢ط£آ¢أ¢â‚¬ع‘ط¢آ¬ط·آ¢ط¢آ¢';
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -5px;
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 105, 181, 0.1);
}

.benefits-list .benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.benefit .check {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* News Ticker */
.news-ticker {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--secondary-color);
}

.ticker-item .date {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 10px;
}

.ticker-item .title {
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f5f5f5 0%, #bebebe 100%);
    color: var(--text-main);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 2rem;
}

.footer h3,
.footer h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer p,
.footer a {
    color: var(--text-main);
    margin-bottom: 1rem;
    display: block;
    line-height: 1.5;
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    margin-bottom: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (min-width: 769px) and (max-width: 992px) {

    /* Prevent navbar overlap for all sections */
    .section,
    .membership-section,
    .news-section,
    .about-section {
        scroll-margin-top: 100px !important;
        padding: 4rem 0 !important;
    }

    /* Stack all grids nicely for tablet */
    .grid-2,
    .grid-3,
    .footer-grid,
    .membership-cards,
    .news-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .hero {
        display: block !important;
        padding-top: 180px !important;
        min-height: auto !important;
        padding-bottom: 4rem !important;
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    .hero-text h1 {
        font-size: 2.2rem !important;
        line-height: 1.4 !important;
    }

    .hero-text p {
        font-size: 1.15rem !important;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    .hero-actions a {
        flex: 1 1 auto !important;
        min-width: 200px !important;
        max-width: 300px !important;
    }

    .hero-graphics {
        margin-top: 2rem !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .network-animation {
        transform: scale(0.85) !important;
        transform-origin: top center !important;
        margin-bottom: -30px !important;
    }

    .about-cards-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .about-content-box {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 1024px) {

    .nav-links,
    .navbar .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar.menu-active {
        background: var(--white);
        box-shadow: var(--shadow-sm);
    }

    .navbar.menu-active .container {
        flex-wrap: wrap;
    }

    .navbar.menu-active .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding-top: 1rem;
        gap: 0;
    }

    .navbar.menu-active .nav-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        order: 4;
        padding: 1rem 0 1.5rem;
    }

    .navbar.menu-active .nav-links a,
    .navbar.menu-active .dropdown-toggle {
        padding: 10px 0;
        justify-content: center;
    }

    .navbar.menu-active .dropdown-menu {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        display: none;
    }

    .navbar.menu-active .dropdown:hover .dropdown-menu {
        display: block;
    }

    .navbar.menu-active .dropdown-menu a {
        padding: 10px;
    }
}

@media (max-width: 768px) {

    /* 1. Eliminate horizontal overflow */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 2. Stacking: Convert horizontal elements into vertical stacks */
    .grid-2,
    .grid-3,
    .footer-grid,
    .about-cards-grid,
    .membership-cards,
    .news-grid,
    .hero-content {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        display: contents;
        /* Unbox hero-text children into hero-content */
    }

    .hero-text>span {
        order: 1;
    }

    .hero-text>h1 {
        order: 2;
    }

    .hero-text>p {
        order: 3;
    }

    .hero-graphics {
        order: 4;
        margin: 2rem 0;
    }

    .hero-actions {
        order: 5;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    /* 3. Spacing: Reduce large paddings, margins, and font sizes */
    .section,
    .membership-section,
    .news-section,
    .about-section {
        padding: 3rem 0 !important;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    .hero-text h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    .hero-text span {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }

    .network-animation {
        transform: scale(0.75);
        transform-origin: top center;
        margin-bottom: -50px;
    }

    /* 4. Flexible Containers: Ensure containers shrink or wrap gracefully */
    img {
        max-width: 100%;
        height: auto;
    }

    .about-content-box {
        padding: 1.5rem;
    }

    .btn-primary.lg,
    .btn-secondary.lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Membership Section Styles */
.membership-section {
    background-color: var(--white);
    padding: 6rem 0;
    scroll-margin-top: 80px;
}

.membership-info {
    text-align: right;
}

.membership-cards {
    display: flex;
    flex-direction: column;
}

.benefits-list-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.check-icon-primary {
    background: rgba(1, 105, 181, 0.1);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.9rem;
}

.conditions-list-dark {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conditions-list-dark li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.conditions-list-dark li::before {
    content: "\2022";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.ticker-item .title {
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f5f5f5 0%, #bebebe 100%);
    color: var(--text-main);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 2rem;
}

.footer h3,
.footer h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer p,
.footer a {
    color: var(--text-main);
    margin-bottom: 1rem;
    display: block;
    line-height: 1.5;
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    margin-bottom: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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



/* Membership Section Styles */
.membership-section {
    background-color: var(--white);
    padding: 6rem 0;
    scroll-margin-top: 80px;
}

.membership-info {
    text-align: right;
}

.membership-cards {
    display: flex;
    flex-direction: column;
}

.benefits-list-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.check-icon-primary {
    background: rgba(1, 105, 181, 0.1);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.9rem;
}

.conditions-list-dark {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conditions-list-dark li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.conditions-list-dark li::before {
    content: "\2022";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* News Slider Section */
.news-section {
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.news-section .container {
    width: 100%;
}

.news-card {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: right;
    justify-content: space-between;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.style-1 {
    background: linear-gradient(135deg, #0169b5 0%, #014f8a 100%);
}

.news-card.style-2 {
    background: linear-gradient(135deg, #228e57 0%, #176a40 100%);
}

.news-card.style-3 {
    background: linear-gradient(135deg, #828282 0%, #bebebe 100%);
}

.news-category {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: block;
}

.news-card .news-title {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-weight: 700;
    color: white;
}

.news-card .news-link {
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.news-card .news-link:hover {
    opacity: 1;
}









/* Nav Actions & Chatbot */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-text-link {
    font-weight: 500;
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-text-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.nav-icon-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-actions .btn-primary {
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    height: 40px;
}

.chat-bot-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px 0 rgba(1, 105, 181, 0.39);
    z-index: 1000;
    transition: var(--transition);
}

.chat-bot-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(1, 105, 181, 0.5);
    color: var(--white);
}
/* Login Page */
.login-section {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 2rem 4rem 2rem;
    background: linear-gradient(135deg, rgba(234, 241, 248, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(1, 105, 181, 0.1);
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    text-align: right;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fbfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(1, 105, 181, 0.1);
    background: var(--white);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.login-options a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-options a:hover {
    color: var(--secondary-color);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.register-link {
    margin-top: 2rem;
    color: var(--text-light);
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.register-link a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
}

html[dir="ltr"] .form-group {
    text-align: left;
}


/* Unified Modern Narrative Template Styles */
body {
    background-color: #ffffff;
}

/* Modern Header Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-top: 90px;
    padding: 45px 0;
    text-align: right;
    color: white;
}

.page-banner h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.page-banner p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
}

/* Clean Reading Container */
.narrative-container {
    max-width: 1000px;
    margin: 4rem auto 5rem;
    padding: 0 2rem;
}

/* Typography for the Narrative */
.narrative-content {
    font-family: 'Tajawal', sans-serif;
    text-align: right;
    direction: rtl;
}

.narrative-content p {
    font-size: 1.25rem;
    line-height: 2;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: right;
    display: flex;
    align-items: flex-start;
}

.point-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    margin-left: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .narrative-container {
        padding: 0 1.5rem;
        margin-top: 2rem;
    }
    .page-banner {
        padding: 100px 0 40px;
    }
    .page-banner h1 {
        font-size: 2rem;
    }
    .narrative-content p {
        font-size: 1.1rem;
        text-align: right !important;
    }
}

.point-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    margin-left: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Enhanced list styling for narrative content */
.narrative-content ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 35px;
    margin-right: 51px; /* Align with text after number badge */
}

.narrative-content ul li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 15px;
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
}

.narrative-content ul li::before {
    content: "•"; /* Standard dot */
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1.2;
    top: 2px;
}

/* Chatbot UI Styles */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 360px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Tajawal', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.chatbot-header .close-btn {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chatbot-header .close-btn:hover {
    opacity: 1;
}

.chatbot-body {
    padding: 20px;
    background: #f8fafc;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}
.chatbot-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

.chat-bot {
    align-self: flex-start;
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.chat-user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(1, 105, 181, 0.2);
}

.chatbot-options {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.chatbot-options::-webkit-scrollbar {
    width: 6px;
}
.chatbot-options::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.chatbot-option-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
    width: 100%;
}

.chatbot-option-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(-4px);
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    height: 30px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 1; }
}

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

.chatbot-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.chatbot-link:hover {
    color: var(--secondary-color);
}
