/**
 * Mirad Developer Theme Styles
 * 
 * Table of Contents:
 * 1. CSS Variables & Reset
 * 2. Typography
 * 3. Layout & Grid
 * 4. Header & Navigation
 * 5. Hero Sections
 * 6. Buttons & Forms
 * 7. Cards & Components
 * 8. Sections
 * 9. Footer
 * 10. Utilities
 * 11. RTL Support
 * 12. Responsive
 * 
 * @package Mirad_Developer
 */

/* ===================================
   1. CSS Variables & Reset
   =================================== */

:root {
    /* Brand Palette */
    --mirad-blue-dark: #285070;
    --mirad-blue-light: #88a5b9;
    --mirad-gold-1: #e5b869;
    --mirad-gold-2: #ebdbb5;
    --mirad-gold-3: #c29f6f;
    --mirad-white: #ffffff;
    --mirad-soft-blue-bg: #f5f8fa;
    --mirad-soft-gold-bg: #f6edd9;
    --color-primary: var(--mirad-blue-dark);
    --color-secondary: var(--mirad-blue-light);
    --color-gold: var(--mirad-gold-1);
    --color-bg-light: var(--mirad-soft-blue-bg);
    
    /* Text */
    --color-text: #1e2b36;
    --color-text-light: #5f6c7b;
    
    /* Derived tokens */
    --color-border: rgba(40, 80, 112, 0.14);
    --color-shadow: rgba(40, 80, 112, 0.08);
    
    /* Typography */
    --font-primary: "Montserrat", "GE Dinar Two", "Helvetica Neue", Arial, sans-serif;
    --font-primary-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-primary-ar: "GE Dinar Two", "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-secondary: "Adelle", Georgia, "Times New Roman", serif;
    --font-secondary-ar: "GE Dinar Two", "Adelle", Georgia, "Times New Roman", serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Responsive sizing tokens */
    --hero-min-height: 100vh;
    --hero-padding-y: 150px;
    --hero-content-width: 640px;
    --section-padding-y: 110px;
    --section-padding-sm-y: 70px;
    --grid-gap: 32px;
    --project-card-min: 320px;
    --feature-card-min: 250px;
    --news-card-min: 320px;
    --testimonial-card-min: 300px;
    --card-padding: 32px;
    --contact-grid-gap: 60px;
    
    /* Motion */
    --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary-en);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--mirad-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    -moz-osx-font-smoothing: grayscale;
}

body.lang-ar,
html[lang="ar"] body {
    font-family: var(--font-primary-ar);
}

body.lang-en,
html[lang="en"] body {
    font-family: var(--font-primary-en);
}

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

/* Main content - no gap after header */
.site-main,
main#main-content {
    margin-top: 0;
    padding-top: 0;
}

a {
    color: var(--mirad-blue-dark);
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* ===================================
   2. Typography
   =================================== */

/* ===================================
   Typography - Enhanced & RTL-friendly
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--mirad-blue-dark);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3rem;
    line-height: 1.2;
}

h2 { 
    font-size: 2.5rem;
    line-height: 1.25;
}

h3 { 
    font-size: 2rem;
    line-height: 1.3;
}

h4 { 
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Mobile typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Fix horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* English letter spacing */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
    letter-spacing: -0.5px;
}

html[lang="en"] p {
    letter-spacing: 0.3px;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: var(--font-primary-ar);
    letter-spacing: 0;
}

html[lang="ar"] .hero-subtitle,
html[lang="ar"] .section-lead,
html[lang="ar"] .section-subtitle {
    font-family: var(--font-primary-ar);
    letter-spacing: 0.04em;
}

html[lang="ar"] .hero-eyebrow,
html[lang="ar"] .hero-tagline {
    font-family: var(--font-secondary-ar);
    text-transform: none;
    letter-spacing: 0.08em;
}

html[lang="ar"] .tagline-serif,
html[lang="ar"] .mirad-btn {
    letter-spacing: 0.04em;
}
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

/* ===================================
   3. Layout & Grid
   =================================== */

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

.section-padding {
    padding: var(--section-padding-y) 0;
    clear: both;
    width: 100%;
    position: relative;
}

.section-padding-sm {
    padding: var(--section-padding-sm-y) 0;
    clear: both;
}

/* Section helpers */
.section-block {
    padding: calc(var(--section-padding-y) * 0.6) 0;
}

.section-block + .section-block {
    margin-top: var(--spacing-lg);
}

.section-block--light {
    background: var(--mirad-soft-blue-bg);
}

.section-block--gold {
    background: var(--mirad-soft-gold-bg);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--mirad-gold-1);
    margin: 20px auto;
    border-radius: 999px;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto var(--spacing-md);
}

/* Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

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

.split-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Card helpers */
.surface-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 45px var(--color-shadow);
    border: 1px solid rgba(40, 80, 112, 0.08);
    padding: 2.5rem;
}

.surface-card--border {
    border: 1px solid var(--color-border);
}

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

.surface-card--shadow {
    box-shadow: var(--shadow-lg);
}

.surface-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.surface-card__meta {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Home Page Sections - Prevent Overlap */
.home-page {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

body.home section,
.home-page section {
    clear: both;
    width: 100%;
    float: none;
    display: block;
    position: relative;
}

/* First hero section should have no top margin */
.home-page > .hero-section:first-child,
.home-page > .home-hero:first-child,
.home-page > section:first-child {
    margin-top: 0;
}

.home-page > section + section {
    margin-top: var(--spacing-lg);
}

.home-page > .hero-section,
.home-page > .page-hero {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

html[dir="rtl"] .section-header,
body.rtl .section-header {
    direction: rtl;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mirad-blue-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-align: center;
}

html[dir="rtl"] .section-title,
body.rtl .section-title {
    direction: rtl;
    letter-spacing: 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--mirad-soft-blue-bg);
}

/* ===================================
   4. Header & Navigation
   =================================== */

.site-header {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    direction: ltr;
}

html[dir="rtl"] .header-container,
body.rtl .header-container,
body.lang-ar .header-container {
    direction: rtl;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-menu a:hover,
.main-menu .current-menu-item a {
    color: var(--color-primary);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    background: var(--mirad-blue-dark);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--mirad-blue-dark);
    transition: var(--transition-base);
}

.header-cta-button:hover {
    background: #1f3f59;
    border-color: #1f3f59;
    box-shadow: 0 12px 28px rgba(229, 184, 105, 0.25);
    color: #fff;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.language-switcher .lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid rgba(40, 80, 112, 0.15);
    transition: var(--transition);
}

.language-switcher .lang-toggle:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100001;
    position: relative;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mirad-blue-dark, #285070);
    transition: all 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

/* Hamburger Animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Show mobile menu toggle on mobile/tablet */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* RTL Support */
html[dir="rtl"] .mobile-menu-content {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

html[dir="rtl"] .mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: var(--mirad-blue-dark);
    color: #fff;
}

html[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: 15px;
}

/* Mobile Logo */
.mobile-logo {
    padding: 25px 20px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
    margin-top: 50px;
}

.mobile-logo img {
    max-width: 140px;
    height: auto;
}

.mobile-logo a {
    display: inline-block;
}

/* Mobile Menu List */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu .menu-item a {
    display: block;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu .menu-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--mirad-gold-1);
    transition: width 0.3s ease;
}

.mobile-menu .menu-item a:hover,
.mobile-menu .menu-item.current-menu-item a {
    background: var(--mirad-blue-dark);
    color: white;
    padding-left: 35px;
}

.mobile-menu .menu-item a:hover::before,
.mobile-menu .menu-item.current-menu-item a::before {
    width: 4px;
}

/* RTL Menu Items */
html[dir="rtl"] .mobile-menu .menu-item a {
    text-align: right;
}

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

html[dir="rtl"] .mobile-menu .menu-item a:hover,
html[dir="rtl"] .mobile-menu .menu-item.current-menu-item a {
    padding-left: 25px;
    padding-right: 35px;
}

/* Mobile Menu CTA Button */
.mobile-menu-cta {
    padding: 25px 20px;
}

.mobile-menu-cta .header-cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    background: var(--mirad-blue-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.mobile-menu-cta .header-cta-button:hover {
    background: var(--mirad-gold-1);
    transform: translateY(-2px);
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.mobile-language-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--mirad-gold-1), var(--mirad-gold-3));
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    min-width: 160px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 184, 105, 0.3);
    text-decoration: none;
}

.mobile-language-switcher .lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 105, 0.4);
}

.mobile-language-switcher .lang-icon {
    font-size: 1.2rem;
}

/* Body state when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Mobile Only Elements */
.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 48px;
    border: 2px solid rgba(229, 184, 105, 0.6);
    border-radius: 20px;
    z-index: 100;
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

.scroll-indicator .scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--mirad-gold-1);
    border-radius: 4px;
    transform: translateX(-50%);
    animation: scrollDotBounce 2s ease-in-out infinite;
}

@keyframes scrollDotBounce {
    0%, 100% { 
        top: 8px; 
        opacity: 1;
        height: 8px;
    }
    50% { 
        top: 28px; 
        opacity: 0.3;
        height: 12px;
    }
}

/* Hide scroll indicator when scrolled */
.scrolled .scroll-indicator {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Ensure mobile menu toggle is visible and clickable */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 100000;
    }
    
    .header-nav,
    .desktop-lang-switcher {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    /* FIX: Ensure logo is visible on mobile - override animation */
    .header-logo,
    .header-logo[data-animate],
    .header-logo[data-animate="nav-logo"] {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
        z-index: 10;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .header-logo img,
    .header-logo .custom-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 40px;
        width: auto;
        height: auto;
    }
    
    .header-logo a {
        display: flex !important;
        align-items: center;
        opacity: 1 !important;
    }
    
    /* Override nav-logo animation on mobile */
    [data-animate="nav-logo"] {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }
    
    /* FIX: Remove gap between header and hero on mobile */
    .site-header {
        margin-bottom: 0 !important;
    }
    
    .site-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .home-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .home-page > .hero-section:first-child,
    .home-page > .home-hero:first-child,
    .site-main > .hero-section:first-child,
    .site-main > .home-hero:first-child {
        margin-top: 0 !important;
    }
}

/* ===================================
   5. Hero Sections
   =================================== */

/* ===================================
   Hero Sections - Enhanced
   =================================== */

.hero-section,
.page-hero,
.home-hero {
    position: relative;
    min-height: var(--hero-min-height);
    height: 100vh;
    width: 100%;
    padding: var(--hero-padding-y) 0;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure hero fills viewport on all devices */
.home-hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
}

/* Hero for mobile */
@media (max-width: 768px) {
    .hero-section,
    .page-hero,
    .home-hero {
        min-height: var(--hero-min-height);
        text-align: center;
        justify-content: center;
        padding: var(--hero-padding-y) 20px;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
        padding: 0 1rem;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Hero Background Image - Full Screen Cover */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ===================================
   Hero Video & YouTube Background
   Full screen cover with no YouTube branding
   =================================== */

/* Video Background (MP4) - Full Screen Cover */
/* Image Background for page heroes */
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Video Background Container */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* YouTube Background Container - Full Screen */
.hero-youtube-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background: #000;
}

/* YouTube iframe - Scaled to cover entire hero with overflow hidden */
.hero-youtube-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Use viewport units to ensure 16:9 video covers any screen orientation */
    width: max(100%, 178vh); /* 100vh * 16/9 = 177.78vh for portrait coverage */
    height: max(100%, 56.25vw); /* 100vw * 9/16 = 56.25vw for landscape coverage */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
    object-fit: cover;
}

/* Hide YouTube logo, title, and controls with gradient overlays */
.hero-youtube-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4) 0%,
        transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-youtube-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.4) 0%,
        transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Side covers removed - not needed */

/* Legacy class support */
.hero-video,
.hero-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    overflow: hidden;
}

.hero-youtube iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

/* Tablet - Video/YouTube adjustments */
@media (max-width: 1024px) {
    .hero-youtube-bg iframe,
    .hero-youtube iframe {
        width: max(100%, 178vh);
        height: max(100%, 56.25vw);
    }
    
    .hero-youtube-bg::before {
        height: 100px;
    }
    
    .hero-youtube-bg::after {
        height: 120px;
    }
}

/* Mobile Portrait - Video/YouTube Full Screen Coverage */
@media (max-width: 768px) {
    .hero-youtube-bg iframe,
    .hero-youtube iframe {
        /* For portrait: width based on viewport height to maintain 16:9 aspect */
        width: max(100%, 178dvh);
        height: max(100dvh, 56.25vw);
        min-width: 178dvh; /* 16:9 ratio ensures full width coverage in portrait */
        min-height: 100dvh;
    }
    
    .hero-youtube-bg::before {
        height: 80px;
    }
    
    .hero-youtube-bg::after {
        height: 100px;
    }
    
    /* Ensure hero fills mobile viewport properly */
    .home-hero,
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }
}

/* Small Mobile Portrait - ensure full coverage */
@media (max-width: 480px) and (orientation: portrait) {
    .hero-youtube-bg iframe,
    .hero-youtube iframe {
        width: 180dvh; /* Slightly larger for safety */
        height: 100dvh;
        min-width: 180dvh;
        min-height: 100dvh;
    }
    
    .hero-youtube-bg::before {
        height: 70px;
    }
    
    .hero-youtube-bg::after {
        height: 90px;
    }
}

/* Landscape Mobile - ensure full coverage */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-youtube-bg iframe,
    .hero-youtube iframe {
        width: 100vw;
        height: max(100vh, 56.25vw);
        min-width: 100vw;
        min-height: 56.25vw;
    }
    
    .home-hero,
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
}

/* Extra small devices portrait */
@media (max-width: 375px) and (orientation: portrait) {
    .hero-youtube-bg iframe,
    .hero-youtube iframe {
        width: 185dvh; /* Extra coverage for very tall narrow screens */
        height: 100dvh;
        min-width: 185dvh;
        min-height: 100dvh;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: var(--hero-content-width);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--mirad-gold-1);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 16px 40px rgba(15, 28, 38, 0.6);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    font-family: var(--font-secondary);
    color: var(--mirad-gold-2);
    letter-spacing: 0.08em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--mirad-gold-1);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

html[dir="rtl"] .hero-section,
html[dir="rtl"] .page-hero,
html[dir="rtl"] .home-hero {
    justify-content: flex-end;
    text-align: right;
}

html[dir="rtl"] .hero-content,
body.rtl .hero-content {
    text-align: center;
    align-items: center;
    direction: rtl;
}

html[dir="rtl"] .hero-eyebrow,
html[dir="rtl"] .hero-tagline {
    letter-spacing: 0.12em;
}

html[dir="rtl"] .hero-underline {
    margin-left: auto;
    margin-right: 0;
}

.page-hero.is-compact {
    min-height: 360px;
}

/* Project Hero */
.project-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
}

.project-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.project-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.project-location {
    font-size: 1.125rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* ===================================
   6. Buttons & Forms
   =================================== */

.mirad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.mirad-btn-primary {
    background: var(--mirad-blue-dark);
    color: #fff;
    border-color: var(--mirad-blue-dark);
    box-shadow: 0 12px 30px rgba(40, 80, 112, 0.18);
}

.mirad-btn-primary:hover {
    background: #1f3f59;
    border-color: #1f3f59;
    box-shadow: 0 18px 32px rgba(229, 184, 105, 0.25);
    transform: translateY(-2px);
}

.mirad-btn-secondary {
    background: transparent;
    color: var(--mirad-blue-dark);
    border-color: var(--mirad-gold-1);
}

.mirad-btn-secondary:hover {
    background: var(--mirad-gold-2);
    color: var(--mirad-blue-dark);
    box-shadow: inset 0 0 0 1px rgba(229, 184, 105, 0.2);
}

.mirad-btn-outline {
    background: transparent;
    border-color: var(--mirad-blue-dark);
    color: var(--mirad-blue-dark);
}

.mirad-btn-outline:hover {
    background: var(--mirad-blue-dark);
    color: #fff;
}

.mirad-btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.mirad-btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.mirad-btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.mirad-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mirad-form-row {
    margin-bottom: 1.75rem;
}

.mirad-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .mirad-form-row-2col {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.mirad-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--mirad-blue-dark);
    font-family: var(--font-primary);
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.required {
    color: var(--mirad-gold-1);
}

.mirad-input,
.mirad-textarea,
.mirad-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
    background: #fff;
}

.mirad-input:focus,
.mirad-textarea:focus,
.mirad-select:focus {
    outline: none;
    border-color: var(--mirad-gold-1);
    box-shadow: 0 0 0 3px rgba(229, 184, 105, 0.2);
}

html[dir="rtl"] .mirad-input,
html[dir="rtl"] .mirad-textarea,
html[dir="rtl"] .mirad-select,
body.rtl .mirad-input,
body.rtl .mirad-textarea,
body.rtl .mirad-select {
    text-align: right;
    direction: rtl;
}

.mirad-input.has-error,
.mirad-textarea.has-error,
.mirad-select.has-error {
    border-color: var(--mirad-gold-3);
}

/* Phone Field Styling */
.phone-field-wrapper {
    width: 100%;
}

.phone-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.mirad-phone-input {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

.country-code-select {
    flex: 0 0 100px;
    max-width: 100px;
    padding: 0.75rem 0.5rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
    background: #fff;
    cursor: pointer;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23285070' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

html[dir="rtl"] .country-code-select {
    background-position: left 8px center;
    padding-right: 0.5rem;
    padding-left: 24px;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--mirad-gold-1);
    box-shadow: 0 0 0 3px rgba(229, 184, 105, 0.2);
}

@media (max-width: 480px) {
    .country-code-select {
        flex: 0 0 85px;
        max-width: 85px;
        font-size: 0.8rem;
        padding: 0.65rem 0.4rem;
    }
}

/* RTL Support for Phone Field */
html[dir="rtl"] .phone-input-group,
body.rtl .phone-input-group,
body.lang-ar .phone-input-group {
    flex-direction: row-reverse;
}

html[dir="ltr"] .phone-input-group,
body.lang-en .phone-input-group {
    flex-direction: row;
}

.mirad-error {
    display: block;
    color: var(--mirad-gold-3);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

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

.mirad-form-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.mirad-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mirad-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Social Icons */
.mirad-form-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.social-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-primary);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.mirad-form-whatsapp-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   7. Cards & Components
   =================================== */

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--project-card-min), 1fr));
    gap: var(--grid-gap);
}

/* ===================================
   Project Cards - Enhanced Design + Responsive
   =================================== */

.project-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(40, 80, 112, 0.12);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s, border-color 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--mirad-gold-3);
    box-shadow: 0 32px 60px rgba(40, 80, 112, 0.18);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-light);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

/* Project Card with Header - adjust card structure */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-card .project-card-image {
    border-radius: 0;
}

/* When card has header, remove top border radius from image */
.project-card:has(.project-card-header) {
    border-radius: var(--card-radius);
    overflow: hidden;
}

.project-card:has(.project-card-header) .project-card-image {
    border-radius: 0;
}

.project-card-content {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    color: var(--mirad-blue-dark);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin: 0 0 12px;
    line-height: 1.3;
}

.project-card-location {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-card-price {
    color: var(--mirad-gold-1);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin: 12px 0;
}

.project-card-excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 12px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card-button {
    align-self: flex-start;
    margin-top: 1.5rem;
}

.project-card-location-badge {
    display: inline-block;
    background: var(--mirad-soft-blue-bg);
    color: var(--mirad-blue-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(40, 80, 112, 0.15);
}

/* Mobile adjustments for cards */
@media (max-width: 768px) {
    .project-card-button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .project-card-location-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .project-card-content {
        padding: 20px;
    }
    
    .project-card-title {
        font-size: 1.1rem;
    }
    
    .project-card-price {
        font-size: 1rem;
    }
}

.project-card-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-card-title a {
    color: inherit;
    transition: color var(--transition-base);
}

.project-card-title a:hover {
    color: var(--mirad-gold-1);
}

.project-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin-bottom: 15px;
}

.project-card-location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.project-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 15px;
    background: var(--mirad-soft-blue-bg);
    border-radius: 10px;
    border: 1px solid rgba(40, 80, 112, 0.05);
}

.project-card-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--mirad-blue-dark);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    margin-top: auto;
    box-shadow: 0 12px 24px rgba(40, 80, 112, 0.18);
}

.project-card-button:hover {
    background: #1f3f59;
    color: #fff;
    box-shadow: 0 18px 35px rgba(229, 184, 105, 0.25);
    transform: translateY(-2px);
}

html[dir="rtl"] .project-card-button:hover {
    transform: translateY(-2px);
}

.project-price,
.project-delivery {
    text-align: center;
}

.project-price small,
.project-delivery small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.project-price strong,
.project-delivery strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.125rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--feature-card-min), 1fr));
    gap: var(--grid-gap);
}

.feature-card {
    text-align: left;
    padding: 2.25rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(40, 80, 112, 0.1);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    border-color: var(--mirad-gold-3);
    transform: translateY(-6px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mirad-soft-gold-bg);
    border-radius: 16px;
    color: var(--mirad-blue-dark);
    border: 1px solid rgba(40, 80, 112, 0.08);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--mirad-blue-dark);
}

.feature-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--news-card-min), 1fr));
    gap: var(--grid-gap);
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: color 0.3s ease, gap 0.3s ease;
}

.blog-card-link:hover {
    color: var(--mirad-gold-1);
    gap: 0.75rem;
}

.blog-card-link svg {
    transition: transform 0.3s ease;
}

.blog-card-link:hover svg {
    transform: translateX(5px);
}

/* RTL - Blog Card Link */
html[dir="rtl"] .blog-card-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .blog-card-link svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .blog-card-link:hover svg {
    transform: scaleX(-1) translateX(5px);
}

/* ===================================
   8. Sections
   =================================== */

/* Stats Section */
.stats-section {
    background: var(--mirad-soft-blue-bg);
}

/* Featured Stat - Year of Establishment */
.stat-featured {
    background: linear-gradient(135deg, rgba(229, 184, 105, 0.15), rgba(255, 255, 255, 0.1));
    border: 3px solid var(--mirad-gold-1);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 184, 105, 0.1) 0%, transparent 70%);
    animation: featuredGlow 3s ease-in-out infinite;
}

@keyframes featuredGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-featured-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--mirad-gold-1);
    line-height: 1;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(229, 184, 105, 0.4);
    position: relative;
    z-index: 1;
}

.stat-featured-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .stat-featured {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-featured-number {
        font-size: 3.5rem;
    }
    
    .stat-featured-label {
        font-size: 1.1rem;
    }
}

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

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-item {
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(40, 80, 112, 0.08);
    box-shadow: 0 20px 35px rgba(40, 80, 112, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--mirad-blue-dark);
    line-height: 1;
    text-align: center;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--mirad-blue-dark);
    text-align: center;
    line-height: 1.4;
}

/* RTL centered stat label */
html[dir="rtl"] .stat-label,
body.rtl .stat-label {
    text-align: center !important;
    direction: rtl;
}

/* Force center all stats in RTL */
html[dir="rtl"] .stat-item,
html[dir="rtl"] .stat-number,
html[dir="rtl"] .stat-label,
html[dir="rtl"] .stat-featured,
html[dir="rtl"] .stat-featured-number,
html[dir="rtl"] .stat-featured-label,
body.rtl .stat-item,
body.rtl .stat-number,
body.rtl .stat-label,
body.rtl .stat-featured,
body.rtl .stat-featured-number,
body.rtl .stat-featured-label {
    text-align: center !important;
}

html[dir="rtl"] .stats-grid,
body.rtl .stats-grid {
    text-align: center !important;
}

/* Quick Info Bar */
.project-quick-info {
    background: var(--mirad-soft-gold-bg);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    padding: 2.5rem 0;
    border-top: 2px solid var(--mirad-gold-1);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(40,80,112,0.12);
    box-shadow: 0 20px 40px rgba(40,80,112,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(40,80,112,0.15);
}

.info-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mirad-blue-dark);
}

/* Project Content */
.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.content-section {
    margin-bottom: 3rem;
}

.section-heading {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-gold);
}

/* Video Embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.amenity-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.amenity-item svg {
    color: var(--color-primary);
}

/* ============================================
   PROJECT GALLERY - RESPONSIVE
   ============================================ */

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

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4 / 3;
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 80, 112, 0.85);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-item {
        aspect-ratio: 4 / 3;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .gallery-item {
        aspect-ratio: 1 / 1 !important;
    }
    
    .gallery-overlay {
        font-size: 2rem !important;
    }
    
    .gallery-section {
        padding: 25px 15px !important;
    }
}

/* Mobile Small (< 480px) */
@media (max-width: 480px) {
    .project-gallery {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .gallery-item {
        aspect-ratio: 16 / 9 !important;
    }
    
    .gallery-overlay {
        font-size: 1.8rem !important;
    }
    
    .content-section,
    .gallery-section {
        padding: 20px 15px !important;
        margin-top: 30px !important;
    }
    
    .section-heading {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }
}

/* Info highlight cards */
.project-info-highlight {
    margin-top: -60px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 30px rgba(40, 80, 112, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 5;
}

.project-info-highlight .info-item {
    text-align: center;
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(40, 80, 112, 0.08);
    background: linear-gradient(135deg, #fdfdfd, #f7f9fb);
}

.info-item__label {
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.info-item__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
}

.info-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 8px 24px rgba(40, 80, 112, 0.25);
}

/* Info Highlight Box Responsive */
@media (max-width: 991px) {
    .project-info-highlight {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 25px !important;
    }
}

@media (max-width: 768px) {
    .project-info-highlight {
        margin-top: 0 !important;
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }
    
    .info-item {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .project-info-highlight {
        padding: 15px !important;
    }
    
    .info-item div[style*="width: 70px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* Admin Gallery */
.mirad-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mirad-gallery-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
}

.mirad-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mirad-gallery-item .remove-gallery-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.mirad-gallery-item:hover .remove-gallery-image {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta-section p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .mirad-btn {
    background: #e5b869;
    color: #285070;
    padding: 15px 40px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(229, 184, 105, 0.3);
}

.cta-section .mirad-btn:hover {
    background: #d4a758;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 184, 105, 0.4);
}

/* Sidebar */
.content-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cta-widget {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.cta-widget .widget-title {
    color: white;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
}

/* Filters */
.filters-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 100px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ===================================
   9. Footer
   =================================== */

.site-footer {
    background: var(--mirad-blue-dark);
    color: rgba(255,255,255,0.9);
    padding-top: 4rem;
}

.footer-main {
    padding-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-heading {
    color: var(--mirad-gold-1);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-menu,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--mirad-gold-1);
    padding-left: 6px;
}

html[dir="rtl"] .footer-menu a:hover,
body.rtl .footer-menu a:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.footer-contact-list a,
.footer-contact-list span {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-contact-list a:hover {
    color: var(--mirad-gold-1);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    align-items: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icon:hover {
    background: var(--mirad-gold-1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229,184,105,0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright,
.footer-credit {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

.footer-credit a {
    color: var(--mirad-gold-1);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #fff;
}

/* ===================================
   10. Utilities
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
}

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

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
}

/* ===================================
   11. RTL Support
   =================================== */

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

body.rtl .header-container,
html[dir="rtl"] .header-container {
    direction: rtl;
}

body.rtl .header-container,
html[dir="rtl"] .header-container,
body.lang-ar .header-container {
    flex-direction: row-reverse;
}

body.rtl .header-actions,
html[dir="rtl"] .header-actions,
body.lang-ar .header-actions {
    flex-direction: row-reverse;
}

body.rtl .language-switcher,
html[dir="rtl"] .language-switcher {
    order: -1;
}

body.rtl .footer-row,
html[dir="rtl"] .footer-row {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .footer-grid,
body.rtl .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .footer-col,
body.rtl .footer-col {
    align-items: flex-end;
}

html[dir="rtl"] .footer-contact-list li,
body.rtl .footer-contact-list li {
    flex-direction: row-reverse;
}

body.rtl .main-menu,
html[dir="rtl"] .main-menu {
    flex-direction: row-reverse;
}

body.rtl .main-menu a::after,
html[dir="rtl"] .main-menu a::after {
    right: 0;
    left: auto;
}

body.rtl .section-header,
body.rtl .section-title,
body.rtl .section-subtitle,
body.rtl .section-lead {
    text-align: right;
}

body.rtl .features-grid,
body.rtl .stats-grid,
body.rtl .testimonials-grid,
body.rtl .blog-grid,
body.rtl .projects-grid,
html[dir="rtl"] .projects-grid,
body.rtl .features-grid,
html[dir="rtl"] .features-grid,
body.rtl .testimonials-grid,
html[dir="rtl"] .testimonials-grid,
body.rtl .news-grid,
html[dir="rtl"] .news-grid,
body.rtl .stats-grid,
html[dir="rtl"] .stats-grid {
    direction: rtl;
}

body.rtl .project-card,
html[dir="rtl"] .project-card,
body.rtl .feature-card,
html[dir="rtl"] .feature-card,
body.rtl .news-card,
html[dir="rtl"] .news-card {
    text-align: right;
}

body.rtl .project-card-content,
html[dir="rtl"] .project-card-content,
body.rtl .news-content,
html[dir="rtl"] .news-content,
body.rtl .feature-card,
html[dir="rtl"] .feature-card,
body.rtl .testimonial-card,
html[dir="rtl"] .testimonial-card {
    direction: rtl;
    text-align: center;
}

body.rtl .stat-item,
html[dir="rtl"] .stat-item {
    direction: rtl;
    text-align: center;
    align-items: center;
    justify-content: center;
}

body.rtl .section-title,
html[dir="rtl"] .section-title,
body.rtl .section-subtitle,
html[dir="rtl"] .section-subtitle {
    text-align: center;
    direction: rtl;
}

body.rtl .feature-card,
body.rtl .project-card,
body.rtl .news-card,
body.rtl .blog-card,
body.rtl .testimonial-card,
body.rtl .cta-content,
body.rtl .contact-card {
    text-align: right;
}

/* Stats items always centered */
body.rtl .stat-item {
    text-align: center !important;
}

body.rtl .project-card-meta,
body.rtl .project-card-location,
body.rtl .news-card-meta,
body.rtl .testimonial-rating {
    flex-direction: row-reverse;
}

body.rtl .project-card-location .icon,
body.rtl .news-card-meta span,
body.rtl .testimonial-rating .star {
    margin-left: 0.35rem;
    margin-right: 0;
}

body.rtl .mobile-menu-content {
    right: auto;
    left: 0;
}

/* RTL mobile menu handled above */

body.rtl .project-card-location,
body.rtl .footer-contact-list li {
    flex-direction: row-reverse;
}

body.rtl .main-menu a::after {
    left: auto;
    right: 0;
}

body.rtl .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body.rtl .back-to-top {
    right: auto;
    left: 30px;
}

body.rtl .lightbox-close {
    right: auto;
    left: 2rem;
}

/* ===================================
   12. Responsive
   =================================== */

@media (max-width: 992px) {
    /* Hide desktop navigation */
    .header-nav {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-nav {
        display: none !important;
    }
    
    .desktop-lang-switcher {
        display: none !important;
    }
    
    /* Projects grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Project content */
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        order: -1;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    /* Footer */
    .footer-row {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-year {
        flex: 0 0 auto;
    }
    
    body.rtl .timeline::before {
        left: auto;
        right: 20px;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .page-hero,
    .home-hero {
        min-height: 400px;
    }
    
    /* Projects grid */
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .mirad-form-row-2col {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Quick info */
    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Amenities */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Filters */
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    /* Back to top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    body.rtl .back-to-top {
        right: auto;
        left: 20px;
    }

body.rtl .mirad-form-row label {
    text-align: right;
}

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

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Spacing */
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Quick info */
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Additional Sections Styling
   =================================== */

/* Stats Section Icons */
.stat-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--color-gold);
}

.stat-icon .stat-emoji {
    font-size: 48px;
    display: inline-block;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--mirad-soft-gold-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--testimonial-card-min), 1fr));
    gap: var(--grid-gap);
    margin-top: 40px;
}

.testimonial-card {
    background: #fff;
    padding: var(--card-padding);
    border-radius: 14px;
    border: 1px solid rgba(40, 80, 112, 0.08);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--mirad-gold-3);
    box-shadow: 0 32px 60px rgba(40, 80, 112, 0.18);
}

.testimonial-avatar {
    margin-bottom: 20px;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mirad-gold-1);
}

.testimonial-quote {
    font-family: var(--font-secondary);
    color: var(--color-text-light);
    margin: 20px 0;
    line-height: 1.8;
    font-size: 1.2rem;
}

.testimonial-rating {
    margin: 15px 0;
}

.testimonial-rating .star {
    color: var(--mirad-gold-1);
    font-size: 18px;
    margin: 0 2px;
}

.testimonial-name {
    font-weight: 600;
    color: var(--mirad-blue-dark);
    margin: 10px 0 5px;
}

.testimonial-position {
    font-size: 14px;
    color: var(--color-text-light);
}

/* News/Blog Section */


.news-page-wrapper {
    background: var(--color-bg);
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
    align-items: start;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 20px 35px rgba(40, 80, 112, 0.08);
    border: 1px solid rgba(40, 80, 112, 0.08);
}

.sidebar-widget h3 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(40, 80, 112, 0.1);
}

.sidebar-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-widget li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--color-bg-light);
    color: var(--color-text);
    font-weight: 500;
}

.sidebar-widget li a span {
    background: var(--color-gold);
    color: white;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.latest-news {
    background: var(--mirad-soft-blue-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--news-card-min), 1fr));
    gap: var(--grid-gap);
    margin-top: 40px;
}

/* ===================================
   Blog/News Cards - Enhanced Design
   =================================== */

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(40, 80, 112, 0.08);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 60px rgba(40, 80, 112, 0.18);
    border-color: var(--mirad-gold-3);
}

.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    margin: 0 0 15px;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: var(--mirad-blue-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

.news-title a:hover {
    color: var(--mirad-gold-1);
}

.news-excerpt {
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.7;
    flex-grow: 1;
    line-height: 1.6;
}

.news-link {
    color: var(--mirad-blue-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: var(--mirad-gold-1);
    gap: 0.75rem;
}

.news-link svg,
.news-link .arrow {
    transition: transform 0.3s ease;
}

.news-link:hover svg,
.news-link:hover .arrow {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    position: relative;
    color: white;
    background: var(--mirad-blue-dark);
    overflow: hidden;
}

.cta-section.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(40, 80, 112, 0.9) 0%, rgba(16, 32, 45, 0.85) 60%, rgba(229, 184, 105, 0.35) 100%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.75rem;
    margin-bottom: 20px;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: var(--contact-grid-gap);
    align-items: flex-start;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    border: 1px solid rgba(40, 80, 112, 0.08);
    padding: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

html[dir="rtl"] .contact-item,
body.rtl .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

.contact-item .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mirad-soft-gold-bg);
    border: 1px solid rgba(229, 184, 105, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mirad-blue-dark);
    flex-shrink: 0;
}

.contact-item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--mirad-blue-dark);
}

.contact-item a {
    color: var(--color-text);
    font-weight: 600;
    word-break: break-word;
}

.contact-form-container {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 45px rgba(40, 80, 112, 0.08);
    border: 1px solid rgba(40, 80, 112, 0.08);
    padding: 2.5rem;
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map {
    margin: 0;
    padding: 0;
}

/* ===================================
   Responsive Design - Complete
   =================================== */

/* Extra Large Desktop (1600px+) */
@media (min-width: 1600px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 200px;
        --section-padding-y: 150px;
        --card-padding: 36px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 90px;
        --section-padding-y: 80px;
        --section-padding-sm-y: 50px;
        --grid-gap: 24px;
        --project-card-min: 280px;
        --news-card-min: 280px;
        --feature-card-min: 230px;
        --testimonial-card-min: 280px;
        --card-padding: 28px;
        --contact-grid-gap: 40px;
    }
    
    .desktop-only,
    .desktop-lang-switcher,
    .language-switcher {
        display: none !important;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
    
    .header-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-nav {
        display: none !important;
    }
    
    .desktop-lang-switcher {
        display: none !important;
    }
}

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 150px;
        --section-padding-y: 120px;
        --grid-gap: 32px;
        --card-padding: 32px;
    }
    
    .container {
        max-width: 1320px;
    }

    .footer-row {
        max-width: 1400px;
    }
}

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 130px;
        --section-padding-y: 110px;
        --grid-gap: 30px;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 110px;
        --section-padding-y: 95px;
        --grid-gap: 28px;
        --project-card-min: 300px;
        --news-card-min: 300px;
        --card-padding: 30px;
        --contact-grid-gap: 50px;
    }
    
    .container {
        padding: 0 30px;
        max-width: 960px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px;
    }
}

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 100px;
        --section-padding-y: 90px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
    
    .news-layout {
        grid-template-columns: 1fr !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 70px;
        --section-padding-y: 70px;
        --section-padding-sm-y: 45px;
        --grid-gap: 20px;
        --project-card-min: 260px;
        --news-card-min: 260px;
        --feature-card-min: 220px;
        --testimonial-card-min: 260px;
        --card-padding: 24px;
        --hero-content-width: 100%;
        --contact-grid-gap: 30px;
    }
    
    /* Layout */
    .container {
        padding: 0 20px;
    }
    
    /* All grids to 1 column */
    .projects-grid,
    .features-grid,
    .testimonials-grid,
    .news-grid,
    .stats-grid,
    .vm-grid,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .footer-col {
        align-items: center;
        text-align: center;
    }
    
    html[dir="rtl"] .footer-col,
    body.rtl .footer-col {
        align-items: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hero sections */
    .page-hero,
    .home-hero,
    .projects-hero,
    .about-hero,
    .contact-hero {
        min-height: var(--hero-min-height);
        padding: var(--hero-padding-y) 20px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Projects grid single column on mobile */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Blog grid */
    .blog-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .map-container-responsive {
        padding-bottom: 100% !important;
        min-height: 350px;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    /* Buttons */
    .mirad-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Small Mobile (≤575px) */
@media (max-width: 575px) {
    :root {
        --hero-min-height: 100vh;
        --hero-padding-y: 55px;
        --section-padding-y: 60px;
        --section-padding-sm-y: 40px;
        --grid-gap: 18px;
        --project-card-min: 240px;
        --feature-card-min: 200px;
        --news-card-min: 240px;
        --testimonial-card-min: 240px;
        --card-padding: 22px;
        --contact-grid-gap: 24px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Contact page mobile fixes */
    .contact-info-card,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    /* Form mobile fixes */
    .mirad-form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mirad-input,
    .mirad-textarea,
    .mirad-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .phone-input-group {
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .phone-input-group .country-code-select,
    .phone-input-group input {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    /* Map responsive */
    .map-responsive {
        padding-bottom: 100%;
        min-height: 300px;
    }
    
    .map-responsive iframe {
        width: 100%;
        height: 100%;
    }
    
    /* Section titles mobile */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle,
    .section-lead {
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile (≤400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .mirad-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact-info-card,
    .contact-form-container {
        padding: 1.25rem;
    }
    
    .project-card-content,
    .news-content {
        padding: 1rem;
    }
}

/* Post/Project Content Styling */
.entry-content,
.section-content {
    line-height: 1.9;
    font-size: 1.125rem;
    max-width: 900px;
    margin: 0 auto;
}

.entry-content p,
.section-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.section-heading {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

html[dir="rtl"] .entry-content,
html[dir="rtl"] .section-content,
body.rtl .entry-content,
body.rtl .section-content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .entry-content h2,
html[dir="rtl"] .entry-content h3,
html[dir="rtl"] .section-heading,
body.rtl .entry-content h2,
body.rtl .entry-content h3,
body.rtl .section-heading {
    text-align: center;
}

/* RTL Specific Adjustments */
html[dir="rtl"] .project-card-location svg {
    transform: scaleX(-1);
}

/* RTL News Link - flip arrow only */
html[dir="rtl"] .news-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .news-link svg,
html[dir="rtl"] .news-link .arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .news-link:hover svg,
html[dir="rtl"] .news-link:hover .arrow {
    transform: scaleX(-1) translateX(5px);
}

html[dir="rtl"] .features-grid,
html[dir="rtl"] .projects-grid {
    direction: rtl;
}

/* =============================================
   PREMIUM ANIMATION ENHANCEMENTS
   ============================================= */

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Text Reveal Animation */
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Image Loading States */
img.is-loading {
    filter: blur(10px);
    transform: scale(1.02);
}

img.is-loaded {
    filter: blur(0);
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Header Hidden State */
.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--mirad-blue-dark), var(--mirad-gold-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold Accent Line */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mirad-gold-1), var(--mirad-gold-3));
    border-radius: 999px;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(40, 80, 112, 0.15);
}

/* Animated Border */
.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mirad-gold-1), transparent);
    animation: borderSlide 3s linear infinite;
}

@keyframes borderSlide {
    to {
        left: 100%;
    }
}

/* Pulse Animation for Badges */
.pulse-badge {
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(229, 184, 105, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(229, 184, 105, 0);
    }
}

/* Floating Animation */
.floating {
    animation: floatingAnim 3s ease-in-out infinite;
}

@keyframes floatingAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shine Effect on Cards */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: none;
}

.shine-effect:hover::after {
    transform: translateX(100%) rotate(45deg);
    transition: transform 0.8s ease;
}

/* Project Image Container (for archive page) */
.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* Project Title ABOVE Card */
.project-card-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--mirad-blue-dark), #1a3a4d);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.project-card-top-title {
    margin: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

html[dir="rtl"] .project-card-top-title {
    text-align: right;
}

.project-card-top-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card-top-title a:hover {
    color: var(--mirad-gold-1);
}

/* Adjust image radius when header is present */
.project-card-header + .project-card-image,
.project-card-header + .project-image {
    border-radius: 0;
}

.project-card-header + .project-card-image img,
.project-card-header + .project-image img {
    border-radius: 0;
}

/* Hide the title in content when overlay is shown */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Status Badges */
.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* RTL - Status on left side */
html[dir="rtl"] .project-status {
    right: auto;
    left: 15px;
}

.status-upcoming {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-ongoing {
    background: linear-gradient(135deg, var(--mirad-gold-1), var(--mirad-gold-3));
    color: var(--mirad-blue-dark);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.status-completed {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
}

/* Premium Card Styles */
.premium-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(40, 80, 112, 0.08);
    box-shadow: 0 25px 50px rgba(40, 80, 112, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 60px rgba(40, 80, 112, 0.15);
    border-color: var(--mirad-gold-1);
}

/* Animated Gradient Background */
.gradient-bg {
    background: linear-gradient(
        -45deg,
        var(--mirad-blue-dark),
        #1a3a4d,
        var(--mirad-blue-dark),
        #3a6080
    );
    background-size: 400% 400%;
    animation: gradientBgAnim 15s ease infinite;
}

@keyframes gradientBgAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Section Fade In */
.section-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icon Hover Rotate */
.icon-rotate:hover svg,
.icon-rotate:hover .icon {
    transform: rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Link Arrow Animation */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow svg,
.link-arrow .arrow {
    transition: transform 0.3s ease;
}

.link-arrow:hover svg,
.link-arrow:hover .arrow {
    transform: translateX(5px);
}

html[dir="rtl"] .link-arrow:hover svg,
html[dir="rtl"] .link-arrow:hover .arrow {
    transform: translateX(-5px);
}

/* Stagger Grid Children */
.stagger-grid > * {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-grid.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-grid.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-grid.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-grid.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-grid.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-grid.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-grid.is-visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-grid.is-visible > *:nth-child(9) { transition-delay: 0.45s; }

.stagger-grid.is-visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--mirad-gold-1);
    outline-offset: 3px;
}

/* Smooth Page Transitions */
.page-entering {
    opacity: 0;
    transform: translateY(20px);
}

.page-entered {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* RTL Animation Mirrors */
html[dir="rtl"] .link-arrow svg,
html[dir="rtl"] .link-arrow .arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .animated-border::before {
    left: auto;
    right: -100%;
    animation: borderSlideRTL 3s linear infinite;
}

@keyframes borderSlideRTL {
    to {
        right: 100%;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(40, 80, 112, 0.1);
    border-top-color: var(--mirad-gold-1);
    border-radius: 50%;
    animation: spinnerAnim 0.8s linear infinite;
}

@keyframes spinnerAnim {
    to {
        transform: rotate(360deg);
    }
}

/* Success Checkmark */
.success-check {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #229954);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* =============================================
   FIX: Mobile Horizontal Overflow (White Space on Left)
   ============================================= */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
    
    .site-wrapper,
    .site-content,
    main,
    section,
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure hero sections don't cause overflow */
    .page-hero,
    .home-hero,
    .hero-section,
    .projects-hero,
    .about-hero,
    .contact-hero,
    .news-hero {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Fix YouTube iframe on mobile - use viewport units for proper coverage */
    .hero-youtube-bg iframe {
        width: max(100%, 178dvh);
        height: max(100dvh, 56.25vw);
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* Fix video backgrounds */
    .hero-video-bg,
    .hero-image-bg {
        width: 100%;
        max-width: 100vw;
    }
    
    /* Prevent any element from causing horizontal scroll */
    img, video, iframe, table, pre, code {
        max-width: 100%;
    }
    
    /* RTL specific fix */
    html[dir="rtl"] {
        overflow-x: hidden !important;
    }
    
    html[dir="rtl"] body {
        overflow-x: hidden !important;
    }
}

/* =============================================
   Typewriter Effect
   ============================================= */

.typewriter-text {
    min-height: 1.5em;
    position: relative;
}

.typewriter-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.typewriter-cursor::after {
    content: '|';
    display: inline-block;
    color: var(--mirad-gold-1);
    font-weight: 300;
    margin-left: 2px;
    animation: typewriter-blink 0.8s ease-in-out infinite;
}

html[dir="rtl"] .typewriter-cursor::after,
body.rtl .typewriter-cursor::after {
    margin-left: 0;
    margin-right: 2px;
}

.typewriter-done::after {
    display: none;
}

@keyframes typewriter-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Mission in Why Choose Us */
.section-mission {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 2;
    color: var(--mirad-text-light);
    max-width: 950px;
    margin: 2rem auto 0;
    min-height: 100px;
    font-family: var(--font-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

@media (max-width: 991px) {
    .section-mission {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        line-height: 1.9;
        min-height: 90px;
    }
}

@media (max-width: 767px) {
    .typewriter-text {
        min-height: auto;
    }
    .section-mission {
        font-size: 1.05rem;
        line-height: 1.85;
        min-height: 70px;
        margin: 1.5rem auto 0;
    }
}

@media (max-width: 480px) {
    .section-mission {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* =============================================
   Careers Page Styles
   ============================================= */

/* Careers Hero */
.careers-hero {
    min-height: 50vh;
}

/* Careers Introduction */
.careers-intro .intro-content {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.careers-intro .intro-content p {
    margin-bottom: 1rem;
}

/* Job Cards */
.job-card {
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.job-title {
    font-family: var(--font-primary);
}

.job-type {
    font-family: var(--font-primary);
}

.job-description {
    font-family: var(--font-primary);
}

/* Application Modal */
.mirad-modal {
    font-family: var(--font-primary);
}

.mirad-modal .modal-content {
    animation: modalSlideIn 0.3s ease;
}

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

.mirad-modal input:focus,
.mirad-modal textarea:focus {
    border-color: var(--mirad-gold-1) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 184, 105, 0.2);
}

.mirad-modal .file-upload-wrapper {
    transition: all 0.3s ease;
}

.mirad-modal .file-upload-wrapper:hover {
    border-color: var(--mirad-gold-1);
    background: var(--mirad-soft-gold-bg);
}

/* RTL Support for Careers */
html[dir="rtl"] .job-card,
body.rtl .job-card {
    text-align: right;
}

html[dir="rtl"] .job-meta,
body.rtl .job-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .job-meta span,
body.rtl .job-meta span {
    flex-direction: row-reverse;
}

html[dir="rtl"] .modal-close,
body.rtl .modal-close {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .mirad-modal input,
html[dir="rtl"] .mirad-modal textarea,
body.rtl .mirad-modal input,
body.rtl .mirad-modal textarea {
    text-align: right;
    direction: rtl;
}

/* Responsive Careers */
@media (max-width: 991px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .job-card {
        padding: 25px !important;
    }
}

@media (max-width: 767px) {
    .jobs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .careers-hero {
        min-height: 40vh;
    }
    
    .careers-intro .intro-content {
        font-size: 1rem;
    }
    
    .mirad-modal .modal-content {
        margin: 10px;
        border-radius: 16px;
        max-height: calc(100vh - 20px);
    }
    
    .mirad-modal .modal-content > div {
        padding: 25px !important;
    }
    
    .job-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 20px !important;
    }
    
    .job-type {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }
    
    .job-meta {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* ============================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================ */

/* Focus states for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #e5b869;
    outline-offset: 2px;
}

/* Project card focus */
.project-card:focus-within {
    box-shadow: 0 0 0 3px #e5b869, 0 10px 40px rgba(0,0,0,0.12);
}

.project-card a:focus-visible {
    outline-offset: 4px;
}

/* Testimonial card focus */
.testimonial-card:focus-within {
    box-shadow: 0 0 0 3px #e5b869;
}

/* News card focus */
.news-card a:focus-visible,
.blog-card a:focus-visible {
    outline-offset: 4px;
}

/* Gallery buttons focus */
.gallery-nav:focus-visible,
.gallery-thumb:focus-visible {
    outline: 3px solid #e5b869;
    outline-offset: 2px;
}

/* Filter form loading state */
.projects-filters.is-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.projects-filters.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #e0e0e0;
    border-top-color: #285070;
    border-radius: 50%;
    animation: mirad-filter-spin 0.8s linear infinite;
}

@keyframes mirad-filter-spin {
    to { transform: rotate(360deg); }
}

/* Reduced motion: disable continuous/decorative animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-ken-burns,
    .hero-particles,
    .floating-particles {
        animation: none !important;
    }
}

