/* 
 * Brand Guidelines Implementation
 * Based on FINAL BRAND BOOK.pdf
 * 
 * Brand Colors:
 * - Primary Yellow: #FEC417
 * - Primary Red: #ED512D
 * - Primary Purple: #92599E
 * - Primary Blue: #408DEB
 * 
 * Typography:
 * - Arabic: Rawasi Display itf (fallback: Cairo)
 * - English/Swedish: Montserrat (fallback: Arial/sans-serif)
 */

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

:root {
    /* Brand Colors from Brand Book */
    --primary-yellow: #FEC417;
    --primary-red: #ED512D;
    --primary-purple: #92599E;
    --primary-blue: #408DEB;
    
    /* Gold variations (using B8870F) */
    --gold: #B8870F;
    --gold-light: #c99a2a;
    --gold-dark: #9a6f0c;
    --gold-darker: #7a5809;
    --gold-glow: rgba(184, 135, 15, 0.3);
    
    /* Black & White */
    --black: #000000;
    --black-soft: #1a1a1a;
    --black-medium: #2d2d2d;
    --white: #ffffff;
    --white-off: #fafafa;
    --white-warm: #f5f5f5;
    
    /* Grays for text and backgrounds */
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #999999;
    --gray-lighter: #cccccc;
    --gray-bg: #f8f9fa;
    --gray-border: #e5e5e5;
    
    /* Shadows */
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --shadow-gold: rgba(184, 135, 15, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Brand Typography: Montserrat for English/Swedish */
    font-family: 'Montserrat', 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--black-soft);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mobile text size adjustment */
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.rtl {
    /* Brand Typography: Rawasi Display itf for Arabic (fallback to Cairo) */
    font-family: 'Cairo', 'Arial', 'Tahoma', sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Mobile-first optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

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

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}


.header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--gray-medium);
    background: var(--white);
    border: 2px solid var(--gray-border);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 12px;
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
}

.header-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.header-social-link i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.header-social-link:hover {
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 135, 15, 0.35);
}

.header-social-link:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Book Consultation Button */
.btn-consultation {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--gold);
    color: var(--black);
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--gold);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(184, 135, 15, 0.2);
}

.btn-consultation i {
    font-size: 1rem;
}

.btn-consultation:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 135, 15, 0.4);
    color: var(--black);
}

.btn-consultation-text {
    display: inline-block;
}

/* Language Switcher */
.language-switcher-nav {
    position: relative;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white-off);
    border: 2px solid var(--gray-border);
    color: var(--black);
    padding: 0.625rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 100px;
    justify-content: space-between;
    font-family: inherit;
}

.lang-dropdown-toggle:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 135, 15, 0.2);
}

.lang-dropdown-toggle.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(184, 135, 15, 0.2);
}

.lang-current {
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-dropdown-toggle.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-md);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 0.5rem;
}

body.rtl .lang-dropdown-menu {
    right: auto;
    left: 0;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--black);
    font-size: 0.95rem;
    font-family: inherit;
    border-radius: 8px;
    position: relative;
}

body.rtl .lang-option {
    text-align: right;
}

.lang-option:hover {
    background: linear-gradient(135deg, rgba(184, 135, 15, 0.1) 0%, rgba(184, 135, 15, 0.05) 100%);
    color: var(--gold-dark);
    transform: translateX(-3px);
}

body.rtl .lang-option:hover {
    transform: translateX(3px);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(184, 135, 15, 0.15) 0%, rgba(184, 135, 15, 0.1) 100%);
    color: var(--gold-dark);
    font-weight: 700;
}

.lang-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}

body.rtl .lang-option.active::before {
    left: auto;
    right: 0;
    border-radius: 2px 0 0 2px;
}

.lang-flag {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.lang-name {
    flex: 1;
    font-weight: 500;
}

.lang-check {
    color: var(--gold-dark);
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.lang-option.active .lang-check {
    opacity: 1;
}


/* Hero Section */
.hero {
    background: var(--white);
    padding: 7rem 0;
    text-align: center;
    color: var(--black);
    position: relative;
    overflow: hidden;
    margin-top: -3px; /* Smooth connection with spacer */
}


.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: -0.01em;
    text-align: center;
    width: 100%;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--gray-dark);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}


/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--white-off) 100%);
}

.section-title {
    font-size: 2.75rem;
    color: var(--black);
    margin-bottom: 3.5rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    box-shadow: 0 2px 8px var(--shadow-gold);
}

body.rtl .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

/* First 4 cards - each spans 3 columns (12/4 = 3) */
.services-grid .service-card:nth-child(1) {
    grid-column: 1 / 4;
}

.services-grid .service-card:nth-child(2) {
    grid-column: 4 / 7;
}

.services-grid .service-card:nth-child(3) {
    grid-column: 7 / 10;
}

.services-grid .service-card:nth-child(4) {
    grid-column: 10 / 13;
}

/* Last 3 cards - each spans 4 columns (12/3 = 4) to align edges with top row */
.services-grid .service-card:nth-child(5) {
    grid-column: 1 / 5;
}

.services-grid .service-card:nth-child(6) {
    grid-column: 5 / 9;
}

.services-grid .service-card:nth-child(7) {
    grid-column: 9 / 13;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-border);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 135, 15, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 50px var(--shadow-md), 0 0 0 2px var(--gold);
    border-color: var(--gold);
    background: var(--white-off);
}

.service-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(184, 135, 15, 0.1) 0%, rgba(184, 135, 15, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(184, 135, 15, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    transition: var(--transition);
    display: block;
}

.service-card:hover .service-icon {
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--black);
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.service-card:hover h3 {
    color: var(--gold-dark);
}

/* About & Sheikh Sections */
.about,
.sheikh {
    padding: 6rem 0;
}

.about {
    background: var(--white);
    padding: 5rem 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: var(--white-off);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    padding: 1rem 0;
}

.about-text h2 {
    color: var(--black);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
}

body.rtl .about-content {
    direction: rtl;
}

.sheikh {
    background: linear-gradient(180deg, var(--white-off) 0%, var(--white) 100%);
}

.sheikh h2 {
    color: var(--black);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.sheikh p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--white) 0%, var(--white-off) 50%, var(--white-warm) 100%);
    color: var(--black);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(184, 135, 15, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(184, 135, 15, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--black);
}

/* Mobile responsive for CTA */
@media (max-width: 768px) {
    .cta {
        padding: 3rem 0;
    }
    
    .cta .container {
        padding: 0 1rem;
    }
    
    .cta h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .cta p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .cta .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .cta {
        padding: 2.5rem 0;
    }
    
    .cta h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .cta p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .cta .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
    }
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-medium);
    line-height: 1.9;
}

.btn {
    display: inline-block;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin: 0 auto;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 6px 25px rgba(184, 135, 15, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(184, 135, 15, 0.4);
    border-color: var(--gold-light);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--white) 0%, var(--white-off) 100%);
    color: var(--black);
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--gold);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.footer-tagline {
    color: var(--gray-medium);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

body.rtl .footer-section h4::after {
    left: auto;
    right: 0;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-medium);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-contact-info i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-info a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-info a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.social-links-footer {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--gray-medium);
    background: var(--white);
    border: 2px solid var(--gray-border);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 12px;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-link-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-link-footer i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
    color: var(--gray-medium);
}

.social-link-footer:hover {
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(184, 135, 15, 0.4);
}

.social-link-footer:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.social-link-footer:hover i {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-border);
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* Page Content */
.page-header {
    background: var(--white);
    color: var(--black);
    padding: 3rem 0 2rem;
    position: relative;
    border-bottom: 1px solid var(--gray-border);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-header h1 {
    font-size: 2.75rem;
    margin: 0;
    font-weight: 700;
    color: var(--black);
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    width: fit-content;
}

.breadcrumb {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-medium);
    font-weight: 500;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold-dark);
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb span {
    color: var(--gray-light);
}

.page-content {
    padding: 4rem 0;
    background: var(--white);
}

.page-content section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--white-off);
    border-radius: 16px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px var(--shadow-sm);
    transition: var(--transition);
}

.page-content section:hover {
    box-shadow: 0 8px 30px var(--shadow);
    transform: translateY(-2px);
}

body.rtl .page-content section {
    border-left: none;
    border-right: 4px solid var(--gold);
}

.page-content h2 {
    color: var(--black);
    margin: 0 0 1.5rem 0;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-content h3 {
    color: var(--black-soft);
    margin: 1.5rem 0 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.25rem;
    line-height: 1.9;
    color: var(--gray-medium);
    font-size: 1.05rem;
}

.page-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

body.rtl .page-content ul {
    padding-left: 0;
    padding-right: 1.5rem;
    list-style-position: outside;
}

.page-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    position: relative;
    padding-right: 0;
    padding-left: 0.5rem;
    font-size: 1.05rem;
}

body.rtl .page-content ul li {
    padding-right: 0.5rem;
    padding-left: 0;
}

.page-content ul li::before {
    content: '';
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-form {
    background: var(--white-off);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    border: 2px solid var(--gray-border);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 135, 15, 0.15);
    background: var(--white);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white-off);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid var(--gray-border);
}

.contact-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px var(--shadow-sm);
    transform: translateY(-2px);
}

.contact-item svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item h3 {
    color: var(--black);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Fatawa Accordion */
.fatawa-list {
    margin: 2.5rem 0;
}

.fatawa-item {
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--shadow-sm);
}

.fatawa-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px var(--shadow-sm);
    transform: translateY(-2px);
}

.fatawa-item.active {
    border-color: var(--gold);
    box-shadow: 0 6px 30px var(--shadow-md);
    background: var(--white-off);
}

.fatawa-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    color: var(--black);
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    text-align: left;
}

body.rtl .fatawa-question {
    text-align: right;
    flex-direction: row-reverse;
}

body:not(.rtl) .fatawa-question {
    text-align: left;
}

.fatawa-question:hover {
    background-color: var(--white-off);
    color: var(--gold-dark);
}

.fatawa-question span:last-child {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    transition: var(--transition);
    min-width: 24px;
    text-align: center;
}

.fatawa-item.active .fatawa-question span:last-child {
    transform: rotate(45deg);
}

.fatawa-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-medium);
    display: none;
    line-height: 1.8;
    font-size: 1.05rem;
    animation: fadeIn 0.3s ease;
}

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

.fatawa-item.active .fatawa-answer {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    /* Base mobile optimizations */
    html {
        font-size: 14px;
    }
    
    .nav {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .nav-left,
    .nav-center,
    .nav-right {
        justify-content: center;
    }
    
    .nav-left {
        order: 1;
    }
    
    .nav-center {
        order: 2;
    }
    
    .nav-right {
        order: 3;
    }

    .header-social {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .header-social-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    .lang-dropdown-toggle {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .btn-consultation {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .btn-consultation i {
        font-size: 0.9rem;
    }
    
    .btn-consultation-text {
        display: inline-block;
    }
    
    .nav-right {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .services {
        padding: 3rem 0;
    }

    .services {
        padding: 2.5rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    /* Reset grid column spans on mobile */
    .services-grid .service-card {
        grid-column: 1 / -1 !important;
    }

    .service-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
        border-radius: 16px;
    }

    .service-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .service-icon {
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-wrapper {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    .about,
    .sheikh {
        padding: 2.5rem 0;
    }


    .page-content {
        padding: 2rem 0;
    }

    .page-content section {
        padding: 1.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
        padding-bottom: 0.75rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    /* Touch-friendly targets */
    .btn,
    button,
    .service-card,
    .header-social-link,
    .lang-dropdown-toggle,
    .social-link-footer,
    .btn-consultation {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better form inputs for mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
        min-height: 44px;
    }
    
    /* Improved spacing */
    .hero {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improved header on mobile */
    .header {
        padding: 0.75rem 0;
    }
    
    .header-social-link {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
    
    /* Better service cards */
    .service-card {
        padding: 2rem 1.25rem;
    }
    
    
    /* Services on small mobile */
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 0.875rem;
    }
    
    .service-icon {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    /* Sheikh on small mobile */
    .sheikh-image-wrapper {
        max-width: 240px;
    }
    
    .sheikh-text h2 {
        font-size: 1.5rem;
    }
    
    .sheikh-text p {
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        height: 60px;
        margin: 0 auto 1rem;
    }

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

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    body.rtl .footer-section h4::after {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    .footer-contact-info {
        align-items: center;
    }

    .social-links-footer {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .social-link-footer {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* RTL Specific Styles */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .service-card {
    text-align: right;
}

body.rtl .hero-content {
    text-align: right;
}

body.rtl .cta {
    text-align: right;
}

body.rtl .page-content {
    text-align: right;
}

body.rtl .contact-form {
    text-align: right;
}

body.rtl .form-group input,
body.rtl .form-group select,
body.rtl .form-group textarea {
    text-align: right;
}


/* Sheikh Section Styles */
.sheikh-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .sheikh-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.sheikh-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px var(--shadow-md);
    background: var(--white-off);
    border: 3px solid var(--gold);
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .sheikh-image-wrapper {
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 480px) {
    .sheikh-image-wrapper {
        max-width: 240px;
    }
}

.sheikh-image {
    width: 100%;
    height: auto;
    display: block;
}

.sheikh-text {
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .sheikh-text {
        padding: 0;
    }
}

.sheikh-text h2 {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .sheikh-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .sheikh-text h2 {
        font-size: 1.5rem;
    }
}

.sheikh-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-medium);
}

@media (max-width: 768px) {
    .sheikh-text p {
        font-size: 1rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .sheikh-text p {
        font-size: 0.95rem;
        padding: 0;
    }
    
    .btn-consultation {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .btn-consultation i {
        font-size: 0.85rem;
    }
}

.about p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-medium);
    max-width: 900px;
    margin: 0 auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin-top: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        left: 15px;
    }
}
