/**
 * 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: 780px;
    --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;
    -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;
}

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; }
}

/* 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;
}

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

.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);
}

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

.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: 1000;
    transition: var(--transition);
}

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

.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;
    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;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: white;
    padding: 0;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.mobile-logo {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

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

.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.05rem;
    transition: all 0.3s;
}

.mobile-menu .menu-item a:hover,
.mobile-menu .menu-item.current-menu-item a {
    background: #285070;
    color: white;
    padding-right: 35px;
}

.mobile-menu-cta {
    padding: 20px;
}

.mobile-menu-cta .header-cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--mirad-blue-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
}

.mobile-logo {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.125rem;
}

.mobile-language-switcher {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-language-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    min-width: 160px;
}

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

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

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

/* 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-image,
.hero-video,
.hero-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-youtube iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-video,
.hero-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.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;
}

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

.hero-title {
    font-size: clamp(2.75rem, 4vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 14px 30px rgba(15, 28, 38, 0.55);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    font-family: var(--font-secondary);
    color: var(--mirad-gold-2);
    letter-spacing: 0.08em;
}

.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 {
    text-align: right;
    align-items: flex-end;
}

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.5rem;
}

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

.mirad-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-family: var(--font-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.mirad-input,
.mirad-textarea,
.mirad-select {
    width: 100%;
    padding: 0.875rem 1rem;
    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.25);
}

.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: 10px;
    align-items: stretch;
}

.country-code-select {
    flex: 0 0 120px;
    padding: 0.875rem 0.5rem;
    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: white;
    cursor: pointer;
}

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

.phone-input-group .mirad-phone-input {
    flex: 1;
    margin-bottom: 0;
}

/* RTL Support for Phone Field */
body.rtl .phone-input-group {
    flex-direction: row-reverse;
}

.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-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;
}

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

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--grid-gap);
    text-align: center;
}

.stat-item {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(40, 80, 112, 0.08);
    box-shadow: 0 20px 35px rgba(40, 80, 112, 0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--mirad-blue-dark);
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-light);
}

/* 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(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.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(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    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(--color-primary);
    color: white;
    padding-top: var(--spacing-xl);
}

.footer-main {
    padding-bottom: var(--spacing-lg);
}

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

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-powered {
    font-size: 0.875rem;
    opacity: 0.8;
}

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

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social-icons .social-icon:hover {
    background: var(--color-gold);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===================================
   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,
body.rtl .footer-row {
    flex-direction: row-reverse;
}

body.rtl .main-menu,
body.rtl .header-actions {
    flex-direction: row-reverse;
}

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 {
    direction: rtl;
}

body.rtl .feature-card,
body.rtl .stat-item,
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;
}

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;
}

body.rtl .mobile-menu-close {
    right: auto;
    left: 15px;
}

body.rtl .mobile-menu .menu-item a:hover,
body.rtl .mobile-menu .menu-item.current-menu-item a {
    padding-left: 35px;
    padding-right: 25px;
}

body.rtl .project-card-location,
body.rtl .blog-card-link,
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;
    }
    
    /* 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;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* 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;
}

.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: 880px;
        --hero-padding-y: 200px;
        --section-padding-y: 150px;
        --card-padding: 36px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --hero-min-height: 540px;
        --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;
    }
    
    .mobile-menu-overlay.active {
        display: block !important;
    }
}

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
    :root {
        --hero-min-height: 780px;
        --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: 720px;
        --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: 640px;
        --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: 600px;
        --hero-padding-y: 100px;
        --section-padding-y: 90px;
    }
    
    .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: 420px;
        --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 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* 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: 360px;
        --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;
    }
}

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

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

