/**
 * IUESR Main Stylesheet
 * International Union for Education and Scientific Research
 */

/* ==================================================
   CSS VARIABLES & DESIGN TOKENS
================================================== */
:root {
    /* Primary Colors */
    --navy: #0A2342;
    --gold: #C9A44A;
    --white: #FFFFFF;

    /* Secondary Colors */
    --slate: #3A4A63;
    --royal-mist: #E8ECF3;
    --classic-red: #BE1E2D;
    --ivory: #F2E5C0;

    /* Neutrals */
    --charcoal: #1A1A1A;
    --deep-grey: #555555;
    --mid-grey: #A3A9B3;
    --light-grey: #D3D7DC;
    --ultra-light: #F7F8FA;

    /* Status Colors */
    --success: #4CAF50;
    --warning: #E6A817;
    --error: #D64545;
    --info: #2D7DD2;

    /* Shadows */
    --shadow-card: 0px 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-header: 0px 2px 8px rgba(10, 35, 66, 0.2);
    --shadow-button: 0px 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0px 8px 24px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-primary: 'Segoe UI', 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* iOS 26 Glass Effect */
    --glass-shimmer-color: rgba(255, 255, 255, 0.4);
    --glass-shimmer-width: 200px;
}

/* ==================================================
   iOS 26 GLASS SHIMMER ANIMATION
================================================== */
@keyframes glassShimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(400%) skewX(-15deg);
    }
}

@keyframes glassShimmerRTL {
    0% {
        transform: translateX(100%) skewX(15deg);
    }

    100% {
        transform: translateX(-400%) skewX(15deg);
    }
}

/* Glass Shimmer Base Class */
.glass-shimmer,
.card,
.service-card,
.vmv-card,
.value-card,
.stat-card,
.why-card,
.objective-card,
.legal-card,
.cta-card,
.content-card,
.sidebar-card,
.info-card,
.contact-info-card,
.contact-form-card,
.trustee-card,
.consultant-card,
.event-card,
.membership-card,
.talent-card,
.feature-card,
.benefit-card,
.step-card,
.price-card,
.testimonial-card,
.news-card,
.gallery-item,
.intro-feature,
.service-feature,
[class*="-card"],
[class*="-item"]:not(nav *):not(.breadcrumb *):not(ul *):not(ol *) {
    position: relative;
    overflow: hidden;
}

.glass-shimmer::before,
.card::before,
.service-card::before,
.vmv-card::before,
.value-card::before,
.stat-card::before,
.why-card::before,
.objective-card::before,
.legal-card::before,
.cta-card::before,
.content-card::before,
.sidebar-card::before,
.info-card::before,
.contact-info-card::before,
.contact-form-card::before,
.trustee-card::before,
.consultant-card::before,
.event-card::before,
.membership-card::before,
.talent-card::before,
.feature-card::before,
.benefit-card::before,
.step-card::before,
.price-card::before,
.testimonial-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--glass-shimmer-width);
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--glass-shimmer-color) 50%,
            transparent 100%);
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Trigger shimmer on hover */
.glass-shimmer:hover::before,
.card:hover::before,
.service-card:hover::before,
.vmv-card:hover::before,
.value-card:hover::before,
.stat-card:hover::before,
.why-card:hover::before,
.objective-card:hover::before,
.legal-card:hover::before,
.cta-card:hover::before,
.content-card:hover::before,
.sidebar-card:hover::before,
.info-card:hover::before,
.contact-info-card:hover::before,
.contact-form-card:hover::before,
.trustee-card:hover::before,
.consultant-card:hover::before,
.event-card:hover::before,
.membership-card:hover::before,
.talent-card:hover::before,
.feature-card:hover::before,
.benefit-card:hover::before,
.step-card:hover::before,
.price-card:hover::before,
.testimonial-card:hover::before,
.news-card:hover::before {
    opacity: 1;
    animation: glassShimmer 1.2s ease-in-out;
}

/* RTL Support for Shimmer */
html[dir="rtl"] .glass-shimmer::before,
html[dir="rtl"] .card::before,
html[dir="rtl"] .service-card::before,
html[dir="rtl"] .vmv-card::before,
html[dir="rtl"] .value-card::before,
html[dir="rtl"] .stat-card::before,
html[dir="rtl"] .why-card::before,
html[dir="rtl"] .objective-card::before,
html[dir="rtl"] .legal-card::before,
html[dir="rtl"] .cta-card::before,
html[dir="rtl"] .content-card::before,
html[dir="rtl"] .sidebar-card::before,
html[dir="rtl"] .info-card::before,
html[dir="rtl"] .contact-info-card::before,
html[dir="rtl"] .contact-form-card::before,
html[dir="rtl"] .trustee-card::before,
html[dir="rtl"] .consultant-card::before,
html[dir="rtl"] .event-card::before,
html[dir="rtl"] .membership-card::before,
html[dir="rtl"] .talent-card::before,
html[dir="rtl"] .feature-card::before,
html[dir="rtl"] .benefit-card::before,
html[dir="rtl"] .step-card::before,
html[dir="rtl"] .price-card::before,
html[dir="rtl"] .testimonial-card::before,
html[dir="rtl"] .news-card::before {
    left: auto;
    right: 0;
    transform: translateX(100%) skewX(15deg);
}

html[dir="rtl"] .glass-shimmer:hover::before,
html[dir="rtl"] .card:hover::before,
html[dir="rtl"] .service-card:hover::before,
html[dir="rtl"] .vmv-card:hover::before,
html[dir="rtl"] .value-card:hover::before,
html[dir="rtl"] .stat-card:hover::before,
html[dir="rtl"] .why-card:hover::before,
html[dir="rtl"] .objective-card:hover::before,
html[dir="rtl"] .legal-card:hover::before,
html[dir="rtl"] .cta-card:hover::before,
html[dir="rtl"] .content-card:hover::before,
html[dir="rtl"] .sidebar-card:hover::before,
html[dir="rtl"] .info-card:hover::before,
html[dir="rtl"] .contact-info-card:hover::before,
html[dir="rtl"] .contact-form-card:hover::before,
html[dir="rtl"] .trustee-card:hover::before,
html[dir="rtl"] .consultant-card:hover::before,
html[dir="rtl"] .event-card:hover::before,
html[dir="rtl"] .membership-card:hover::before,
html[dir="rtl"] .talent-card:hover::before,
html[dir="rtl"] .feature-card:hover::before,
html[dir="rtl"] .benefit-card:hover::before,
html[dir="rtl"] .step-card:hover::before,
html[dir="rtl"] .price-card:hover::before,
html[dir="rtl"] .testimonial-card:hover::before,
html[dir="rtl"] .news-card:hover::before {
    animation: glassShimmerRTL 1.2s ease-in-out;
}

/* Auto-shimmer effect for featured/highlighted cards */
.glass-shimmer-auto::before,
.featured-card::before,
.highlight-card::before,
.hero-card::before {
    animation: glassShimmer 3s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0.7;
}

html[dir="rtl"] .glass-shimmer-auto::before,
html[dir="rtl"] .featured-card::before,
html[dir="rtl"] .highlight-card::before,
html[dir="rtl"] .hero-card::before {
    animation: glassShimmerRTL 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .glass-shimmer::before,
    .card::before,
    .service-card::before,
    .vmv-card::before,
    .value-card::before,
    .stat-card::before,
    .why-card::before,
    .objective-card::before,
    [class*="-card"]::before {
        animation: none !important;
        opacity: 0 !important;
    }
}

/* ==================================================
   RESET & BASE STYLES
================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: var(--font-arabic);
}

/* Links */
a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* Lists */
ul,
ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Form Elements */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-md);
}

/* ==================================================
   UTILITY CLASSES
================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

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

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

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

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

/* Justified text for main content areas */
main p,
.page-content p,
.content-section p,
.card-text,
.card-description,
.info-text,
.about-text,
.service-description,
.trustee-bio,
.membership-description,
.contact-description,
.verification-info,
section.py-5 p,
section.py-6 p,
.intro-text p,
.description p,
/* Home page - Why Join Us / Membership section */
.req-card-desc,
.req-section-content,
.membership-req-subtitle,
.membership-section-header p,
/* About page */
.hero-subtitle,
.intro-content p,
.vmv-card p,
.value-card p,
.objective-content p,
.legal-card p,
/* Membership page */
.benefit-desc,
.term-desc,
.step-desc,
.section-subtitle {
    text-align: justify;
}

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

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

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

.text-grey {
    color: var(--deep-grey);
}

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

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

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

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

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

.d-flex {
    display: flex;
}

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

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

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

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.py-1 {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.py-2 {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.py-3 {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.py-4 {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.py-5 {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.py-6 {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

/* ==================================================
   BUTTONS
================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

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

.btn-secondary {
    background-color: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background-color: #b8933f;
    border-color: #b8933f;
    color: var(--navy);
}

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

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

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

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================================================
   FORMS
================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--charcoal);
}

.form-label.required::after {
    content: ' *';
    color: var(--error);
}

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-md);
    background-color: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 164, 74, 0.2);
}

.form-control::placeholder {
    color: var(--mid-grey);
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-valid {
    border-color: var(--success);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left var(--space-md) center;
    padding-left: var(--space-2xl);
}

html[dir="ltr"] .form-select {
    background-position: right var(--space-md) center;
    padding-left: var(--space-md);
    padding-right: var(--space-2xl);
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.form-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--mid-grey);
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

/* ==================================================
   CARDS
================================================== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

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

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--deep-grey);
    margin-bottom: var(--space-md);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--ultra-light);
    border-top: 1px solid var(--light-grey);
}

/* Service Card */
.service-card {
    text-align: center;
    padding: var(--space-xl);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--royal-mist);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: var(--text-3xl);
}

/* Profile Card */
.profile-card {
    text-align: center;
}

.profile-card .card-img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    margin: var(--space-lg) auto;
    object-fit: cover;
    border: 4px solid var(--gold);
}

/* ==================================================
   ALERTS
================================================== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(214, 69, 69, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-warning {
    background-color: rgba(230, 168, 23, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(45, 125, 210, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ==================================================
   ENHANCED FLASH NOTIFICATIONS
================================================== */
.flash-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    animation: flashSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

@keyframes flashSlideIn {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-notification.flash-hiding {
    animation: flashSlideOut 0.4s ease-in forwards;
}

@keyframes flashSlideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.flash-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

.flash-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.flash-message {
    flex: 1;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.4;
}

.flash-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
    flex-shrink: 0;
}

.flash-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.flash-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    animation: flashProgress 5s linear forwards;
}

@keyframes flashProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Success Flash */
.flash-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.flash-success .flash-icon {
    color: #ffffff;
}

.flash-success .flash-progress {
    background: rgba(255, 255, 255, 0.4);
}

/* Error Flash */
.flash-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.flash-error .flash-icon {
    color: #ffffff;
}

/* Warning Flash */
.flash-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.flash-warning .flash-icon {
    color: #ffffff;
}

/* Info Flash */
.flash-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.flash-info .flash-icon {
    color: #ffffff;
}

/* RTL Support for Flash */
html[dir="rtl"] .flash-content {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-content {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }
    
    .flash-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .flash-message {
        font-size: var(--text-sm);
    }
    
    .flash-close {
        width: 32px;
        height: 32px;
    }
}

/* ==================================================
   HEADER & NAVIGATION
================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--navy);
    box-shadow: var(--shadow-header);
    overflow: visible;
}

.header-top {
    background-color: var(--slate);
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
}

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

.header-top-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-top-links a {
    color: var(--light-grey);
}

.header-top-links a:hover {
    color: var(--gold);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.lang-switcher a {
    color: var(--light-grey);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.lang-switcher a.active {
    background-color: var(--gold);
    color: var(--navy);
}

.header-main {
    padding: var(--space-sm) 0;
    overflow: visible;
}

.header-main .container,
.header-main .header-flex {
    max-width: 100%;
    padding: 0 var(--space-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--white);
    font-size: var(--text-xl);
    font-weight: 700;
}

.logo img {
    height: 40px;
}

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

.logo-text span:first-child {
    font-size: var(--text-lg);
    font-weight: 700;
}

.logo-text span:last-child {
    font-size: var(--text-xs);
    color: var(--gold);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: var(--space-xs) 6px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

html[dir="ltr"] .nav-dropdown {
    right: auto;
    left: 0;
}

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

.nav-dropdown a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--charcoal);
    border-bottom: 1px solid var(--ultra-light);
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    background-color: var(--ultra-light);
    color: var(--gold);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: background 0.25s ease;
    z-index: 1002;
}

.nav-toggle:hover {
    background: rgba(170, 60, 60, 0.1);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
    transform-origin: center;
}

/* Body when nav is open - prevent scroll */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-menu .btn {
    padding: var(--space-xs) var(--space-md);
}

/* Header User Dropdown */
.header-user-dropdown {
    position: relative;
    z-index: 9999;
}

.header-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.header-user-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--navy);
    font-size: 0.9rem;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-name {
    font-weight: 500;
    font-size: 0.95rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-toggle .fa-chevron-down {
    font-size: 0.7rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.header-user-dropdown.active .header-user-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.header-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999;
}

[dir="rtl"] .header-user-menu {
    right: auto;
    left: 0;
}

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

.header-user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.header-user-menu a:hover {
    background: var(--ultra-light);
    color: var(--navy);
}

.header-user-menu a i {
    width: 18px;
    color: var(--mid-grey);
    font-size: 1rem;
}

.header-user-menu a:hover i {
    color: var(--gold);
}

.header-user-menu .logout-link {
    color: var(--error);
}

.header-user-menu .logout-link i {
    color: var(--error);
}

.header-user-divider {
    height: 1px;
    background: var(--light-grey);
    margin: 8px 0;
}

/* ==================================================
   HEADER RESPONSIVE LAYOUT
================================================== */

/* Header Flex Container - distributes brand, nav, auth */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    max-width: 100%;
    padding: 0 var(--space-lg);
}

/* Brand Block: Logo + Site Name */
.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    max-width: 320px;
}

.header-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-site-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

/* LTR: brand to far left */
html[dir="ltr"] .header-brand {
    margin-right: auto;
}

/* RTL: brand to far right */
html[dir="rtl"] .header-brand {
    flex-direction: row;
    margin-left: auto;
}

/* Desktop: Compact layout */
@media (min-width: 992px) {
    .header-main {
        padding: var(--space-sm) 0;
    }

    .header-flex {
        gap: var(--space-md);
        padding: 0 var(--space-xl);
    }

    .header-brand {
        max-width: 320px;
    }

    .header-logo-img {
        height: 58px;
    }

    .header-site-name {
        font-size: 0.85rem;
    }

    .main-nav {
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .nav-menu>li>a {
        padding: 6px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* RTL nav */
    html[dir="rtl"] .nav-menu {
        justify-content: center;
        gap: 0;
    }

    html[dir="rtl"] .nav-menu>li>a {
        padding: 6px 8px;
    }

    /* LTR: login button to far right */
    .user-menu.desktop-only {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }

    /* RTL: login button to far left */
    html[dir="rtl"] .user-menu.desktop-only {
        margin-left: 0;
        margin-right: auto;
    }

    /* Hide mobile-only elements on desktop */
    .header-mobile-right {
        display: none;
    }
}

/* Large Desktop (1200px+) - a bit more room */
@media (min-width: 1200px) {
    .header-brand {
        max-width: 380px;
    }

    .header-logo-img {
        height: 65px;
    }

    .header-site-name {
        font-size: 0.95rem;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-menu>li>a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    html[dir="rtl"] .nav-menu>li>a {
        padding: 6px 10px;
    }
}

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .header-brand {
        max-width: 380px;
    }

    .header-site-name {
        font-size: 0.95rem;
    }

    .nav-menu>li>a {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Tablet: tighter spacing, keep single row */
@media (min-width: 768px) and (max-width: 991px) {
    .header-main {
        padding: var(--space-sm) 0;
    }

    .header-flex {
        gap: var(--space-sm);
        padding: 0 var(--space-md);
    }

    .header-logo-img {
        height: 36px;
    }

    .header-site-name {
        font-size: 0.85rem;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-menu>li>a {
        padding: var(--space-xs) 6px;
        font-size: 0.8rem;
    }

    /* Hide mobile-right, show desktop auth */
    .header-mobile-right {
        display: none;
    }

    .user-menu.desktop-only {
        display: flex;
    }

    .user-menu.desktop-only .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
}

/* Mobile: brand left, hamburger + auth right */
@media (max-width: 767px) {
    .header-main {
        padding: var(--space-xs) 0;
    }

    .header-flex {
        gap: var(--space-sm);
        padding: var(--space-xs) var(--space-md);
    }

    .header-logo-img {
        height: 34px;
    }

    .header-site-name {
        font-size: 0.8rem;
        max-width: 140px;
        white-space: normal;
        line-height: 1.1;
    }

    /* Mobile right area: auth btn + hamburger */
    .header-mobile-right {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    .header-auth-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    .header-auth-btn .btn-text {
        display: none;
        /* Hide text, show icon only on small screens */
    }

    /* Hide desktop-only user menu */
    .user-menu.desktop-only {
        display: none !important;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .header-site-name {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .header-logo-img {
        height: 30px;
    }
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
    background: linear-gradient(180deg, #0A2342 0%, #071a32 100%);
    color: var(--light-grey);
    margin-top: auto;
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: var(--space-2xl);
}

.footer-col {
    text-align: start;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--space-sm);
}

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

html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-col p {
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

/* About Column */
.footer-about-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: start;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
    padding: 4px 0;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-links a::before {
    content: '›';
    font-size: 1.2em;
    color: var(--gold);
    transition: transform 0.25s ease;
}

html[dir="rtl"] .footer-links a::before {
    content: '‹';
}

.footer-links a:hover {
    color: var(--gold);
    padding-inline-start: 8px;
}

.footer-links a:hover::before {
    transform: translateX(4px);
}

html[dir="rtl"] .footer-links a:hover::before {
    transform: translateX(-4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-contact-item i {
    color: var(--gold);
    margin-top: 4px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease;
}

.footer-contact-item a:hover {
    color: var(--gold);
}

/* Footer Social Section */
.footer-social {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h5 {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 164, 74, 0.35);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.newsletter-form input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    padding: var(--space-md) var(--space-lg);
    background: var(--gold);
    color: var(--navy);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-form button:hover {
    background: #d4b35a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 164, 74, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .footer-col-about {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-col-about {
        grid-column: span 1;
    }

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

    html[dir="rtl"] .footer-col h4::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-inline-start: 0;
    }

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

    .footer-contact-item {
        justify-content: center;
    }

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

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

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 300px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================================================
   HERO SECTION
================================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.95), rgba(58, 74, 99, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-xl);
    background-color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.hero-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.hero-title {
    color: var(--white);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gold);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================================================
   SECTIONS
================================================== */
.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--deep-grey);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Stats Section */
.stats-section {
    background-color: var(--navy);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--text-lg);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.event-card .event-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--mid-grey);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.event-card .event-type {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--royal-mist);
    color: var(--navy);
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Consultant Grid */
.consultants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* ==================================================
   PAGE HEADER
================================================== */
.page-header {
    background-color: var(--navy);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
}

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

.breadcrumb span {
    color: var(--mid-grey);
}

/* ==================================================
   TABS
================================================== */
.tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--light-grey);
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    color: var(--deep-grey);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================================================
   MODAL
================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    font-size: var(--text-2xl);
    color: var(--mid-grey);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--light-grey);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* ==================================================
   PAGINATION
================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination-link,
.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);
    color: var(--charcoal);
    transition: all var(--transition-fast);
}

.pagination-link:hover,
.pagination-prev:hover,
.pagination-next:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination-link.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* ==================================================
   TABLES
================================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: start;
    border-bottom: 1px solid var(--light-grey);
}

.table th {
    background-color: var(--ultra-light);
    font-weight: 600;
    color: var(--navy);
}

.table tr:hover {
    background-color: var(--ultra-light);
}

/* ==================================================
   BADGES
================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-success {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(230, 168, 23, 0.15);
    color: var(--warning);
}

.badge-error {
    background-color: rgba(214, 69, 69, 0.15);
    color: var(--error);
}

.badge-info {
    background-color: rgba(45, 125, 210, 0.15);
    color: var(--info);
}

.badge-primary {
    background-color: var(--navy);
    color: var(--white);
}

/* ==================================================
   FILTERS
================================================== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background-color: var(--ultra-light);
    border-radius: var(--radius-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.filter-group label {
    font-size: var(--text-sm);
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    min-width: 200px;
}

/* ==================================================
   GALLERY
================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition-fast);
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

/* ==================================================
   LIGHTBOX
================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--white);
    font-size: var(--text-3xl);
    cursor: pointer;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: var(--space-lg);
}

/* ==================================================
   TIMELINE
================================================== */
.timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 2px;
    background-color: var(--gold);
    transform: translateX(50%);
}

html[dir="ltr"] .timeline::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-lg) var(--space-xl);
}

.timeline-item:nth-child(odd) {
    padding-right: var(--space-3xl);
    text-align: end;
}

.timeline-item:nth-child(even) {
    margin-right: 50%;
    padding-left: var(--space-3xl);
}

html[dir="ltr"] .timeline-item:nth-child(odd) {
    padding-right: var(--space-xl);
    padding-left: var(--space-3xl);
    text-align: start;
}

html[dir="ltr"] .timeline-item:nth-child(even) {
    margin-right: 0;
    margin-left: 50%;
    padding-left: var(--space-xl);
    padding-right: var(--space-3xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: var(--space-lg);
    left: -8px;
    width: 16px;
    height: 16px;
    background-color: var(--gold);
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-card);
}

.timeline-item:nth-child(odd)::before {
    left: auto;
    right: -8px;
}

html[dir="ltr"] .timeline-item::before {
    left: auto;
    right: -8px;
}

html[dir="ltr"] .timeline-item:nth-child(even)::before {
    right: auto;
    left: -8px;
}

.timeline-date {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--navy);
    color: var(--white);
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.timeline-content {
    background-color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 1024px) {

    .services-grid,
    .events-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consultants-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(180deg, #0A2342 0%, #0d2840 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--space-lg) var(--space-xl);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }

    html[dir="ltr"] .main-nav {
        right: auto;
        left: -100%;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        right: 0;
    }

    html[dir="ltr"] .main-nav.active {
        right: auto;
        left: 0;
    }

    /* Mobile Menu Overlay - behind menu, above page content */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Show auth button inside mobile menu as well */
    .main-nav .user-menu.desktop-only {
        display: flex !important;
        width: 100%;
        margin-top: var(--space-lg);
        padding-top: var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .main-nav .user-menu.desktop-only .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;
        font-size: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-menu>li {
        width: 100%;
    }

    .nav-menu>li>a {
        padding: 16px 20px;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        display: flex;
        align-items: center;
        gap: 12px;
        color: #ffffff !important;
        transition: all 0.25s ease;
        min-height: 54px;
        text-decoration: none;
        position: relative;
    }

    .nav-menu>li>a:hover,
    .nav-menu>li>a:active,
    .nav-menu>li>a.active {
        background: rgba(201, 164, 74, 0.2);
        color: var(--gold) !important;
        padding-inline-start: 24px;
    }

    .nav-menu>li>a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--gold);
        transition: width 0.25s ease;
    }

    html[dir="rtl"] .nav-menu>li>a::before {
        left: auto;
        right: 0;
    }

    .nav-menu>li>a:hover::before,
    .nav-menu>li>a.active::before {
        width: 4px;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
        border-radius: 0;
        margin: 0;
        padding: 8px 0;
    }

    .nav-menu>li.dropdown-open .nav-dropdown {
        display: block;
    }

    .nav-dropdown a {
        color: #e0e0e0 !important;
        padding: 12px 20px 12px 40px;
        font-size: 0.95rem;
        border-bottom: none;
        min-height: 48px;
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .nav-dropdown a:hover {
        color: var(--gold);
        background: rgba(201, 164, 74, 0.1);
    }

    html[dir="ltr"] .nav-dropdown a {
        padding-right: 20px;
        padding-left: 40px;
    }

    html[dir="rtl"] .nav-dropdown a {
        padding-left: 20px;
        padding-right: 40px;
    }

    /* Mobile Menu User Section */
    .main-nav .header-user-dropdown {
        width: 100%;
        margin-top: var(--space-lg);
        padding-top: var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .main-nav .header-user-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        min-height: 60px;
    }

    .main-nav .header-user-menu {
        position: static;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        margin-top: 8px;
        box-shadow: none;
    }

    .main-nav .header-user-menu a {
        padding: 14px 20px;
        min-height: 50px;
    }

    /* Mobile Nav Toggle Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Adjustments */
    .hero-content {
        padding: var(--space-xl) var(--space-md);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid,
    .events-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .consultants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: var(--space-xl);
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        right: var(--space-md);
        transform: none;
    }

    html[dir="ltr"] .timeline::before {
        left: var(--space-md);
        right: auto;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding: var(--space-md);
        padding-right: var(--space-3xl);
        margin-right: 0;
        text-align: start;
    }

    html[dir="ltr"] .timeline-item,
    html[dir="ltr"] .timeline-item:nth-child(odd),
    html[dir="ltr"] .timeline-item:nth-child(even) {
        padding-right: var(--space-md);
        padding-left: var(--space-3xl);
    }

    .timeline-item::before,
    .timeline-item:nth-child(odd)::before {
        right: var(--space-md);
        left: auto;
        transform: translateX(50%);
    }

    html[dir="ltr"] .timeline-item::before,
    html[dir="ltr"] .timeline-item:nth-child(odd)::before,
    html[dir="ltr"] .timeline-item:nth-child(even)::before {
        left: var(--space-md);
        right: auto;
        transform: translateX(-50%);
    }

    .filters {
        flex-direction: column;
    }

    .filter-group select,
    .filter-group input {
        min-width: auto;
        width: 100%;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .consultants-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .btn {
        width: 100%;
    }
}

/* ==================================================
   AUTH MODAL STYLES
================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 420px;
    margin: var(--space-md);
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-content.auth-modal {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, var(--slate) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    z-index: 1010;
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: var(--space-sm);
}

.modal-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 7px;
}

.auth-logo-text {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.auth-logo-sub {
    font-size: var(--text-xs);
    color: var(--mid-grey);
    margin-top: 2px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-sm);
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--mid-grey);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-md);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: calc(var(--space-md) * -1 - 1px);
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.auth-tab:hover {
    color: var(--white);
}

.auth-tab.active {
    color: var(--white);
}

.auth-tab.active::after {
    transform: scaleX(1);
}

/* Auth Tab Content */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

/* Auth Form */
.auth-form .form-group {
    margin-bottom: var(--space-sm);
}

.auth-form .form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.auth-form .form-control::placeholder {
    color: var(--mid-grey);
}

.auth-form .form-control:hover,
.auth-form .form-control:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.auth-form .form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.auth-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--mid-grey);
    font-size: var(--text-sm);
    cursor: pointer;
}

.auth-form .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

.auth-form .forgot-link {
    color: var(--mid-grey);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.auth-form .forgot-link:hover {
    color: var(--gold);
}

.auth-form .btn-block {
    width: 100%;
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    border-radius: 50px;
}

.auth-form .btn-gold {
    background: linear-gradient(135deg, var(--gold), #d4af5a);
    color: var(--navy);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 164, 74, 0.4);
    transition: var(--transition-normal);
}

.auth-form .btn-gold:hover {
    background: linear-gradient(135deg, #d4af5a, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 164, 74, 0.5);
}

/* Sign In / Join Button in Header */
.signin-join-btn {
    background: linear-gradient(135deg, var(--gold), #d4af5a);
    color: var(--navy);
    border: none;
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.signin-join-btn:hover {
    background: linear-gradient(135deg, #d4af5a, var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 164, 74, 0.4);
}

/* Modal Responsive */
@media (max-width: 480px) {
    .modal-content.auth-modal {
        padding: var(--space-md);
        max-height: 85vh;
    }

    .modal-close {
        top: var(--space-xs);
        right: var(--space-xs);
    }

    html[dir="rtl"] .modal-close {
        right: auto;
        left: var(--space-xs);
    }

    .auth-logo-text {
        font-size: var(--text-2xl);
    }

    .auth-logo-sub {
        font-size: 0.7rem;
    }

    .auth-tabs {
        gap: 0;
    }

    .auth-tab {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    .auth-form .form-control {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    .auth-form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================================================
   GLOBAL MOBILE ENHANCEMENTS
   Mobile-first optimizations for all pages
================================================== */

/* Medium Mobile Devices - 768px */
@media (max-width: 768px) {

    /* Global container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Section spacing */
    .section {
        padding: 2.5rem 0;
    }

    /* Section titles */
    .section-title h2,
    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-title p,
    .section-header p {
        font-size: 0.9rem;
    }

    /* Cards - improved touch targets */
    .card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    /* Buttons - touch-friendly sizing */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Grid systems */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Hero sections universal */
    .hero-title,
    .contact-hero-title,
    .events-hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-subtitle,
    .contact-hero-desc,
    .events-hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Form improvements */
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="url"],
    select,
    textarea {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    textarea {
        min-height: 100px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .footer-contact-item {
        justify-content: center;
    }

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

    /* Breadcrumbs */
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Tables responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Image containers */
    .card-image,
    .event-card-image {
        height: 200px;
    }
}

/* Small Mobile Devices - 480px */
@media (max-width: 480px) {

    /* Tighter container */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Section spacing reduced */
    .section {
        padding: 2rem 0;
    }

    /* Smaller headings */
    .section-title h2,
    .section-header h2 {
        font-size: 1.35rem;
    }

    .hero-title,
    .contact-hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle,
    .contact-hero-desc {
        font-size: 0.9rem;
    }

    /* Card compact */
    .card {
        padding: 1rem;
        border-radius: 14px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.85rem;
    }

    /* Compact buttons */
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* Touch-friendly spacing */
    .btn+.btn {
        margin-top: 0.5rem;
    }

    /* Form compact */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        padding: 0.65rem 0.875rem;
    }

    /* Footer compact */
    .footer-main {
        padding: 2rem 0;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Image heights reduced */
    .card-image,
    .event-card-image {
        height: 180px;
    }

    /* Stats on mobile */
    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices - 360px */
@media (max-width: 360px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .section-title h2,
    .section-header h2 {
        font-size: 1.2rem;
    }

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

    .btn {
        padding: 0.6rem 0.875rem;
        font-size: 0.8rem;
    }

    .card {
        padding: 0.875rem;
    }
}

/* Mobile language toggle - hidden by default, shown on mobile */
.mobile-lang-toggle {
    display: none;
}

/* ===== MOBILE HEADER ENHANCEMENTS ===== */
@media (max-width: 768px) {

    /* Hide top bar on mobile for more space */
    .header-top {
        display: none;
    }

    /* Mobile Language Toggle Button */
    .mobile-lang-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 8px 12px;
        background: var(--gold);
        color: var(--navy);
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-lang-toggle:hover {
        background: #e0b84d;
        color: var(--navy);
    }

    .mobile-lang-toggle i {
        font-size: 1rem;
    }

    /* Compact main header */
    .header-main {
        padding: 10px 0;
    }

    .header-flex {
        gap: 10px;
    }

    /* Smaller logo on mobile */
    .header-brand {
        gap: 10px;
    }

    .header-logo-img {
        height: 40px;
    }

    .header-site-name {
        font-size: 0.75rem;
        max-width: 120px;
        line-height: 1.3;
    }

    /* Mobile right section */
    .header-mobile-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Compact user avatar in header */
    .header-mobile-right .header-user-toggle {
        padding: 6px 10px;
        gap: 6px;
    }

    .header-mobile-right .header-user-avatar {
        width: 32px;
        height: 32px;
    }

    .header-mobile-right .header-user-name {
        font-size: 0.85rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-mobile-right .header-user-toggle i.fa-chevron-down {
        font-size: 0.65rem;
    }

    /* Hide auth button text on very small screens, keep icon */
    .header-auth-btn .btn-text {
        display: none;
    }

    .header-auth-btn {
        padding: 10px 12px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .header-logo-img {
        height: 36px;
    }

    .header-site-name {
        font-size: 0.7rem;
        max-width: 100px;
    }

    .header-mobile-right .header-user-name {
        display: none;
    }

    .header-mobile-right .header-user-toggle {
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    .header-logo-img {
        height: 32px;
    }

    .header-site-name {
        font-size: 0.65rem;
        max-width: 85px;
    }

    .nav-toggle {
        padding: 10px;
    }

    .nav-toggle span {
        width: 22px;
    }
}

/* ===== MOBILE NAVIGATION OVERRIDE - MUST BE LAST ===== */
@media (max-width: 768px) {

    /* Ensure menu is above everything */
    .main-nav {
        z-index: 10000 !important;
        pointer-events: auto !important;
    }

    .main-nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Force bright white text in mobile menu */
    .main-nav .nav-menu>li>a {
        color: #ffffff !important;
        opacity: 1 !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        padding: 18px 20px !important;
        display: block !important;
        width: 100% !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10001 !important;
        -webkit-tap-highlight-color: rgba(201, 164, 74, 0.3) !important;
    }

    .main-nav .nav-menu>li>a:hover,
    .main-nav .nav-menu>li>a:focus,
    .main-nav .nav-menu>li>a:active,
    .main-nav .nav-menu>li>a.active {
        color: #C9A44A !important;
        background: rgba(201, 164, 74, 0.15) !important;
    }

    /* Dropdown links */
    .main-nav .nav-dropdown a {
        color: #eeeeee !important;
        font-size: 1rem !important;
        padding: 14px 20px 14px 35px !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        display: block !important;
        width: 100% !important;
        -webkit-tap-highlight-color: rgba(201, 164, 74, 0.3) !important;
    }

    .main-nav .nav-dropdown a:hover,
    .main-nav .nav-dropdown a:active {
        color: #C9A44A !important;
        background: rgba(201, 164, 74, 0.1) !important;
    }

    /* Login button */
    .main-nav .user-menu .btn,
    .main-nav .btn {
        color: #0a2342 !important;
        background: #C9A44A !important;
        font-weight: 600 !important;
        pointer-events: auto !important;
    }

    /* Ensure nav-menu items are clickable */
    .main-nav .nav-menu,
    .main-nav .nav-menu>li {
        pointer-events: auto !important;
        position: relative !important;
        width: 100% !important;
    }
}
