/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

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

/* Header */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    height: 60px;
    width: auto;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Buttons */
.donate-btn,
.cta-main {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.donate-btn:hover,
.cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Hero Section */
.hero-banner {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-logo {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}


/* Stats Section */
.stats-section {
    padding: 4rem 0;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
}

/* Services Section */
.home-services {
    padding: 4rem 0;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Service Card Links */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

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

.service-card-link:hover .service-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Activities Section */
.home-activities {
    padding: 4rem 0;
}

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

.activity-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-card span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.activity-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Kafala Types */
.kafala-types {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.kafala-types li {
    background: #f8f9fa;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: background 0.3s ease;
}

.kafala-types li:hover {
    background: #e9ecef;
}

/* Process Steps */
.kafala-process {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 2rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.step-number {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.step h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Project Support */
.project-support {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-support h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Seasonal Services */
.seasonal-services {
    padding: 2rem 0;
}

.service-section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-section h2 {
    color: #4facfe;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4facfe;
}

.special-events,
.community-support {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Events Grid */
.events-grid,
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.event-item,
.community-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-item:hover,
.community-item:hover {
    transform: translateY(-3px);
}

.event-item h3,
.community-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-item p,
.community-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-social {
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-block;
    margin: 0 0.5rem;
}

.footer-social img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.2);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
        gap: 1rem;
    }

    .language-switcher {
        margin: 1rem 0;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

    .stats-flex {
        flex-direction: column;
    }

    .donate-flex {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }

    .service-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .kafala-process {
        padding: 1.5rem 0;
    }

    .team-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Service Pages Styles */
.service-hero {
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.service-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.service-details {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.service-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.service-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.service-info ul {
    list-style: none;
    padding: 0;
}

.service-info li {
    padding: 0.5rem 0;
    padding-right: 2rem;
    position: relative;
    color: #555;
}

.service-info li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #667eea;
    font-weight: bold;
}

.service-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-card span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
}

.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.donate-content {
    text-align: center;
    color: white;
}

.donate-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.donate-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.donate-option h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.donate-option p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Activity Pages Styles */
.activity-hero {
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.activity-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.activity-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.activity-details {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.activity-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.activity-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.activity-info ul {
    list-style: none;
    padding: 0;
}

.activity-info li {
    padding: 0.5rem 0;
    padding-right: 2rem;
    position: relative;
    color: #555;
}

.activity-info li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #667eea;
    font-weight: bold;
}

.activity-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-impact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.impact-stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.impact-stat .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.impact-stat .stat-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* Kafala Specific Styles */
.kafala-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.kafala-type-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid #ffc107;
}

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

.kafala-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.kafala-type-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.kafala-type-card p {
    color: #666;
    line-height: 1.6;
}

/* Process Steps for Kafala */
.kafala-process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.process-step {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
}

.step-number {
    background: #ffc107;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #ffc107;
}

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

.benefit-item h3 {
    color: #ffc107;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-item p {
    color: #666;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
}

.contact-section h2 {
    color: white;
    border-bottom: 2px solid white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.contact-item h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Support Service Styles */
.goals-grid,
.beneficiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.goal-item,
.beneficiary-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #28a745;
}

.goal-item:hover,
.beneficiary-item:hover {
    transform: translateY(-5px);
}

.goal-item h3,
.beneficiary-item h3 {
    color: #28a745;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.goal-item p,
.beneficiary-item p {
    color: #666;
    line-height: 1.5;
}

.subjects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.subjects-list li {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: background 0.3s ease;
}

.subjects-list li:hover {
    background: #e9ecef;
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.schedule-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #28a745;
}

.schedule-item h3 {
    color: #28a745;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.schedule-item p {
    color: #666;
    font-size: 1rem;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .kafala-types-grid {
        grid-template-columns: 1fr;
    }

    .kafala-process-steps {
        gap: 1rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 0 1rem 0;
    }

    .benefits-grid,
    .goals-grid,
    .beneficiaries-grid {
        grid-template-columns: 1fr;
    }

    .subjects-list {
        grid-template-columns: 1fr;
    }

    .schedule-info,
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* --- تصميم عصري لبطاقات الخدمات والأنشطة --- */
.fancy-section {
    padding: 4rem 0 4rem 0;
}

.fancy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.2rem;
    margin-bottom: 1.5rem;
}

.fancy-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(80, 80, 180, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
    text-align: center;
    padding: 2.2rem 1.2rem 1.5rem 1.2rem;
    text-decoration: none;
    color: #222;
    transition: transform 0.22s cubic-bezier(.4, 2, .6, 1), box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}

.fancy-card:hover {
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 12px 40px rgba(80, 80, 180, 0.18), 0 2px 8px rgba(0, 0, 0, 0.07);
    z-index: 2;
}

.fancy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.1rem auto;
    border-radius: 50%;
    font-size: 2.3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    border: 3px solid #fff;
    transition: box-shadow 0.22s;
}

.fancy-card:hover .fancy-icon {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.fancy-card h3,
.fancy-card h4 {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.5rem 0 0 0;
    letter-spacing: 0.5px;
    color: #222;
}

@media (max-width: 600px) {
    .fancy-cards {
        grid-template-columns: 1fr;
    }

    .fancy-section {
        padding: 2rem 0;
    }

    .fancy-card {
        padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    }

    .fancy-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
}

/* نافذة منبثقة للخدمات والأنشطة */
#details-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#details-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 60, 0.45);
    backdrop-filter: blur(2px);
}

#details-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(80, 80, 180, 0.18);
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    min-width: 320px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

#details-modal .modal-close {
    position: absolute;
    top: 12px;
    left: 18px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

#details-modal .modal-close:hover {
    color: #d32f2f;
}

#details-modal .modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    color: #1976d2;
}

#details-modal .modal-body {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 1.2rem;
    line-height: 2.1;
    text-align: right;
    direction: rtl;
}

#details-modal .modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

#details-modal .modal-img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

@media (max-width: 600px) {
    #details-modal .modal-content {
        min-width: 90vw;
        padding: 1.2rem 0.3rem;
    }

    #details-modal .modal-title {
        font-size: 1.1rem;
    }

    #details-modal .modal-img {
        max-width: 90px;
        max-height: 90px;
    }
}

/* Team Section Styles */
.team-section {
    padding: 4rem 0;
    background: #ffffff;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #0077c8;
    transition: transform 0.3s ease;
}

.team-photo:hover {
    transform: scale(1.05);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    color: #0077c8;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.team-card p:first-of-type {
    color: #666;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-card p:last-child {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive design for team section */
@media (max-width: 768px) {
    .team-cards {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 350px;
    }

    .team-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .team-card {
        padding: 1.5rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }

    .team-card h3 {
        font-size: 1.2rem;
    }
}

.hero-title {
    text-align: center;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0, 119, 200, 0.08);
}

.hero-title .line-ar {
    font-size: 2.7em;
    font-weight: 700;
    color: #234a91;
    font-family: 'MasadMaghribi', 'Scheherazade New', 'Aref Ruqaa', 'Amiri', 'Cairo', Tahoma, Arial, sans-serif;
}

.hero-title .line-ar .hl {
    color: #ff9800;
    font-family: inherit;
    font-weight: 700;
}

.hero-title .line-fr-1 {
    font-size: 1.8em;
    font-weight: 800;
    color: #234a91;
    margin-top: 10px;
}

.hero-title .line-fr-1 .hl {
    color: #ff9800;
}

.hero-title .line-fr-2 {
    font-size: 1.8em;
    font-weight: 800;
    color: #234a91;
    margin-top: 10px;
}

.hero-tag {
    margin: 8px auto 4px auto;
    font-size: 1.35em;
    font-weight: 700;
    color: #234a91;
    font-family: 'MasadMaghribi', 'Scheherazade New', 'Aref Ruqaa', 'Amiri', 'Cairo', Tahoma, Arial, sans-serif;
}

@media (max-width: 768px) {
    .hero-tag {
        font-size: 1.25em;
    }
}

.hero-tag .hl {
    color: #ff9800;
}

@media (max-width: 768px) {
    .hero-title .line-ar {
        font-size: 2.1em;
    }

    .hero-title .line-fr-1 {
        font-size: 1.3em;
    }

    .hero-title .line-fr-2 {
        font-size: 1.4em;
    }
}

@font-face {
    font-family: 'MasadMaghribi';
    src: url('../assets/fonts/masad-maghribi.woff2') format('woff2'),
        url('../assets/fonts/masad-maghribi.woff') format('woff');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  /* Control hero banner height & image */
  .hero-banner {
    min-height: 220px;
    background-size: cover;
    background-position: center top;
  }
}


/* Tablets and smaller */
@media (max-width: 992px) {
  .hero-title {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.2;
  }
}

/* Phones */
@media (max-width: 768px) {
  .hero-title {
    padding: 0.25rem 0;    /* minimal vertical space */
    font-size: 0.85rem;
    line-height: 1.1;
  }

  .hero-title span,
  .hero-title .line-ar,
  .hero-title .line-fr-1,
  .hero-title .line-fr-2,
  .hero-title .hero-tag {
    font-size: 0.8rem;
  }

  /* Control hero banner height & image */
  .hero-banner {
    min-height: 220px;
    background-size: cover;
    background-position: center top;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-title {
    padding: 0.15rem 0;    /* very short */
    line-height: 1;        /* tight lines */
  }

  .hero-title span,
  .hero-title .line-ar,
  .hero-title .line-fr-1,
  .hero-title .line-fr-2,
  .hero-title .hero-tag {
    font-size: 0.75rem;
  }
}
