:root {
    --color-primary: #57B894; /* Green */
    --color-secondary: #377259; /* Darker Green */
    --color-accent: #FFC300; /* Yellow/Gold */
    --color-dark: #202020; /* Very Dark Text */
    --color-text: #4a4a4a; /* Standard Dark Grey Text */
    --color-background: #F8FBF8; /* Light Background */
    --color-light: #FFFFFF; /* White */
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08); 
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.20); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Almarai', sans-serif;
}


body {
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    background-color: var(--color-light);
    color: var(--color-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

section {
    padding: 100px 0;
}

/* --- HEADINGS AND SUBTITLES --- */

h2 {
    color: var(--color-secondary);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 50px; 
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px; 
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

h3 {
    color: var(--color-secondary);
    font-size: 26px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto 60px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s;
}

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


/* --- HEADER AND NAVIGATION --- */

header {
    background-color: var(--color-light);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
}

.logo img {
    height: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 700;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    bottom: -5px;
    right: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after,
nav ul li a.active-link:after {
    width: 100%;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
}


/* --- BUTTONS BASE STYLES --- */

.btn {
    /* Base style for all buttons */
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none; 
    display: inline-block; 
}

/* Primary Button Style (Used for 'احجز الآن' in header) */
.btn:not(.btn-secondary-hero, .btn-primary-hero) {
    background-color: var(--color-primary);
    color: var(--color-light) !important;
    box-shadow: 0 5px 15px rgba(87, 184, 148, 0.4);
}

.btn:not(.btn-secondary-hero, .btn-primary-hero):hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    color: var(--color-light) !important;
}


/* --- HERO SECTION (FULL WIDTH BANNER STYLE) --- */

.hero {
    /* استخدم لون الخلفية الأساسي كما كان سابقاً */
    background-color: var(--color-background); 
    padding-top: 150px; 
    padding-bottom: 100px;
    position: relative;
    overflow: hidden; 
    /* إزالة أي محاذاة سابقة ليتوسط المحتوى */
    text-align: center; 
}

.hero-content-wrapper {
    /* لا نحتاج لـ flex-direction أو justify-content بعد إزالة الصورة */
    display: flex;
    justify-content: center; /* توسيط المحتوى الأفقي */
    align-items: center;
    flex-wrap: wrap; 
}

/* 1. Content (Centered and constrained) */
.hero-content {
    /* تقييد العرض ليكون النص مقروءًا على سطرين أو ثلاثة */
    max-width: 800px; 
    /* إزالة flex-basis/flex-grow لأنها لم تعد ضرورية للتخطيط المقسم */
    flex-basis: auto; 
    flex-grow: 0;
    text-align: center; /* توسيط النص */
    z-index: 2; 
    margin: 0 auto; /* توسيط الكتلة النصية */
}

.hero-content h1 {
    color: var(--color-secondary); /* استخدام اللون الداكن ليتناسب مع الخلفية الفاتحة */
    font-size: 58px; 
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content h1 ** {
    color: var(--color-primary); 
}

.hero-content p {
    color: var(--color-dark); 
    font-size: 20px; 
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons Group */
.hero-buttons {
    display: flex;
    gap: 15px; 
    justify-content: center; /* توسيط الأزرار */
}
.hero-buttons .btn {
    font-size: 17px;
    padding: 14px 30px;
    min-width: 170px;
    box-shadow: none; 
}

/* Primary Hero Button (The one that was mistakenly blue) */
.btn-primary-hero {
    background-color: var(--color-light); 
    border: 2px solid var(--color-primary);
    color: var(--color-primary) !important; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}
.btn-primary-hero:hover {
    background-color: var(--color-background);
    color: var(--color-secondary) !important;
    transform: translateY(-2px);
}

/* Secondary Hero Button (Transparent/Outline) */
.btn-secondary-hero {
    background-color: transparent;
    border: 2px solid var(--color-primary); 
    color: var(--color-primary) !important; 
    box-shadow: none;
}
.btn-secondary-hero:hover {
    background-color: var(--color-primary);
    color: var(--color-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 184, 148, 0.4);
}


/* --- RESPONSIVENESS (Mobile/Tablet adjustments for the new Hero) --- */
@media (max-width: 992px) {
    /* ... (Existing general mobile styles remain) ... */

    /* Hero Section - Mobile Optimization */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .hero-content {
        max-width: 100%;
        margin-top: 0;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%; 
        min-width: unset;
    }
}
/* ... (Rest of style.css remains unchanged) ... */

/* --- VALUES SECTION --- */

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

.value-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-card i {
    font-size: 45px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 10px;
}

.value-card p {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 0;
}


/* --- SERVICES SECTION --- */

.services {
    background-color: var(--color-background);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-light);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border-right: 5px solid var(--color-primary);
    transition: all 0.3s;
}

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

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-card h3 i {
    color: var(--color-primary);
    margin-left: 15px;
    font-size: 30px;
}

.service-card p {
    color: var(--color-text);
    margin-bottom: 15px;
}

.service-card a {
    color: var(--color-secondary);
    font-weight: 700;
}

.service-card-sm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.service-card-sm {
    background-color: var(--color-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--color-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card-sm:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-light);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card-sm h3 {
    font-size: 20px;
    margin-bottom: 10px;
}


/* --- PROCESS SECTION --- */

.process {
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 50px 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background-color: var(--color-primary);
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.step-icon {
    z-index: 1;
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
    border: 8px solid var(--color-light);
    box-shadow: 0 0 0 4px var(--color-primary);
    transition: transform 0.3s;
}

.step:hover .step-icon {
    transform: scale(1.1);
}

.step h4 {
    color: var(--color-secondary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 0;
}


/* --- GALLERY SECTION --- */

.gallery {
    background-color: var(--color-background);
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.gallery-slide {
    display: none;
    animation: fade 4.0s;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- FOOTER STYLING (NEW AND REVISED) --- */
.main-footer {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 60px 0 0; 
}

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

.main-footer .logo {
    color: var(--color-light);
    margin-bottom: 10px;
}

.main-footer h3 {
    color: var(--color-accent);
    font-size: 20px;
    margin-bottom: 18px;
    position: relative;
}

.main-footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

/* Footer Links */
.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
}

.footer-list a:hover {
    color: var(--color-primary);
}

/* Footer Contact List */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-list li i {
    color: var(--color-primary);
    margin-left: 10px;
    margin-top: 5px;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-about .btn {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 10px 20px;
    box-shadow: none;
    margin-top: 20px;
    display: inline-block;
}

/* Social Icons */
.social-icons {
    margin-top: 25px;
}

.social-icons a {
    color: var(--color-light);
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent);
}

/* Copyright */
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Stagger Animation for Footer (Ensures it animates correctly) */
.main-footer .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.main-footer .stagger-item.active-reveal {
    opacity: 1;
    transform: translateY(0);
}
/* Team Section */

.team-section {
    background-color: var(--color-background);
    padding-top: 80px;
    padding-bottom: 100px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid var(--color-primary);
    box-shadow: 0 0 0 6px rgba(87, 184, 148, 0.2);
}

.team-member h4 {
    color: var(--color-secondary);
    font-size: 22px;
    margin-bottom: 5px;
}

.team-member p.role {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
}

.team-member p.bio {
    font-size: 16px;
    margin-bottom: 0;
}


/* --- BLOG MAIN SECTION (Modern Styles) --- */

.blog-main {
    padding-top: 150px; /* Space for the fixed header */
    background-color: var(--color-background);
}

.blog-main h1 {
    text-align: center;
    color: var(--color-secondary);
    font-size: 48px;
    font-weight: 800;
}

.blog-main h1 ** {
    color: var(--color-primary);
}

/* Filter Buttons */
.filter-buttons {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--color-light);
    color: var(--color-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid var(--color-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-light);
}

.filter-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: var(--shadow-hover);
}

.filter-btn.active {
    background-color: var(--color-secondary);
    color: var(--color-light);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(55, 114, 89, 0.4);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Blog Card */
.blog-card {
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--color-primary);
}

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

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

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover .card-content h3 {
    color: var(--color-primary);
}

.card-content p {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-text);
}

.card-meta i {
    color: var(--color-primary);
    margin-left: 5px;
}

.card-meta .read-more a {
    color: var(--color-primary);
    font-weight: 700;
}

.card-meta .read-more a:hover {
    color: var(--color-secondary);
}


/* --- POST DETAIL PAGE --- */

.post-detail-section {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: var(--color-light);
}

.post-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: start; /* Align items to the top */
}

.main-content {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    /* Initial state for reveal animation - Use reveal for a smooth entry, managed by JS */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.main-content.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-title {
    font-size: 44px;
    color: var(--color-secondary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta .meta-item i {
    color: var(--color-primary);
    margin-left: 5px;
}

.post-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
}

.post-body h3 {
    font-size: 28px;
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--color-secondary);
    border-right: 4px solid var(--color-primary);
    padding-right: 10px;
}

.post-body p {
    margin-bottom: 25px;
    color: var(--color-text);
    text-align: justify;
}

.post-body ul {
    list-style: disc;
    padding-right: 40px;
    margin-bottom: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

/* Sidebar for Recent Posts */
.sidebar {
    background-color: var(--color-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    /* Initial state for reveal animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* تفعيل الحركة عند التحميل */
.sidebar.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

.sidebar h3 {
    color: var(--color-secondary);
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.recent-post-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-item a {
    display: block;
    font-size: 18px;
    color: var(--color-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-item a:hover {
    color: var(--color-primary);
}

.recent-post-meta {
    font-size: 14px;
    color: var(--color-text);
    margin-top: 5px;
}

.recent-post-meta i {
    color: var(--color-primary);
    margin-left: 5px;
}


/* --- GENERIC PAGE HERO STYLES (For all subpages like About, Services, Blog, Contact) --- */

.page-hero, .contact-hero {
    background-color: var(--color-background);
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.page-hero h1, .contact-hero h1 {
    font-size: 56px; /* Large, prominent title */
    color: var(--color-secondary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-hero h1 ** {
    color: var(--color-primary);
}

.page-hero .section-subtitle, .contact-hero .section-subtitle {
    margin-bottom: 0;
}

.services-hero { /* Specific adjustment for services hero */
    padding-bottom: 50px;
}

/* --- CONTACT/ABOUT PAGE STYLES --- */

.contact-main {
    padding-top: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* 1. Contact Form Styling */

.contact-form-container {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--color-primary);
}

.contact-form-container h2 {
    text-align: right;
    margin-bottom: 30px;
    font-size: 32px;
    padding-bottom: 15px;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group label i {
    color: var(--color-primary);
    margin-left: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: var(--color-text);
    background-color: #fcfcfc;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 184, 148, 0.2);
}

.contact-form-container .btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
}

/* 2. Contact Info Styling */
.contact-info-container {
    padding-top: 30px;
}

.contact-info-container h2 {
    text-align: right;
    margin-bottom: 40px;
    font-size: 32px;
}


.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background-color: var(--color-background);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-right: 5px solid var(--color-secondary);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateX(-5px);
}

.info-card i {
    font-size: 30px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.info-card p {
    font-size: 16px;
    margin-bottom: 5px;
}

.info-card a {
    color: var(--color-secondary);
    font-weight: 700;
}


/* 3. Map Section */

.map-section {
    padding-bottom: 100px;
    padding-top: 50px;
    background-color: var(--color-background);
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.map-embed iframe {
    width: 100%;
    height: 450px;
    display: block;
}


/* --- RESERVATION/APPOINTMENT STYLES --- */

.reservation-main {
    padding-top: 50px;
    padding-bottom: 100px;
    background-color: var(--color-light);
}

.reservation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.calendar-card, 
.time-slots-wrapper, 
.reservation-summary {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    height: 100%;
    /* Stagger items will use the active-reveal class from script.js */
}

/* Calendar Control */
#calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
}

.calendar-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 10px;
    border-radius: 50%;
}

.calendar-nav-btn:hover {
    background-color: #f0fdf4;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.day-header {
    font-weight: 700;
    color: var(--color-dark);
    padding: 10px 0;
    font-size: 14px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.calendar-day {
    padding: 10px 5px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    user-select: none;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.available {
    color: var(--color-secondary);
    background-color: var(--color-light);
}

.calendar-day.available:hover {
    background-color: #e6faec; /* Lightest primary tone */
}

.calendar-day.available.selected {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: 0 4px 10px rgba(87, 184, 148, 0.4);
    transform: translateY(-2px);
    border: 1px solid var(--color-secondary);
}

.calendar-day.disabled {
    color: #ccc;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Time Slots */

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    background-color: var(--color-light);
    color: var(--color-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.time-slot.available:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.time-slot.selected {
    background-color: var(--color-secondary);
    color: var(--color-light);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 10px rgba(55, 114, 89, 0.4);
    transform: translateY(-2px);
}

.time-slot.unavailable {
    background-color: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

/* Summary Card */

.reservation-summary .summary-info {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--color-light);
    border: 1px solid #eee;
}

.reservation-summary .summary-info p {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-dark);
}

.reservation-summary .summary-info p:last-child {
    margin-bottom: 0;
}

.reservation-summary .summary-info strong {
    font-weight: 700;
    color: var(--color-secondary);
}

.reservation-summary .summary-info i {
    color: var(--color-primary);
    margin-left: 5px;
}

/* Form Groups in Summary (same as contact form) */


/* Message Box */
.message-box {
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s;
    font-weight: 700;
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
}

.message-box.danger {
    background-color: #f8d7da;
    color: #721c24;
}


/* --- RESPONSIVENESS (Blog-Specific Adjustments) --- */
/* This is placed here to ensure blog mobile styles are fully separated from general layout */

@media (max-width: 1200px) {
    /* Larger screens adjustments */
    .post-grid {
        grid-template-columns: 70% 30%;
    }
}

@media (max-width: 992px) {
    /* Tablet/General Mobile */
    section {
        padding: 60px 0;
    }
    h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .section-subtitle {
        margin-bottom: 40px;
        font-size: 16px;
    }

    /* Header & Nav */
    .nav-content {
        padding: 10px 15px;
    }
    nav {
        display: none;
        position: absolute;
        top: 65px;
        right: 0;
        width: 100%;
        background-color: var(--color-light);
        box-shadow: var(--shadow-light);
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    nav.active {
        display: block;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
    nav ul li a:after {
        right: 50%;
        transform: translateX(50%);
    }
    .menu-icon {
        display: block;
        position: relative; /* z-index only works on positioned elements */
        z-index: 1001; /* Must be higher than the header's 1000 */
        /* You may need to add padding/margin to give it a larger, easier-to-tap area */
        padding: 15px;
    }

    /* Process Section */
    .process-steps {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .process-steps::before {
        right: 50%;
        left: unset;
        width: 2px;
        height: 100%;
        transform: translateX(50%);
    }
    .step {
        width: 100%;
        padding: 40px 0;
        text-align: right;
    }
    .step-icon {
        margin: 0 0 15px 0;
        float: right;
        border: 8px solid var(--color-background);
        box-shadow: 0 0 0 4px var(--color-primary);
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-container {
        order: 2;
    }
    .contact-info-container {
        order: 1;
        padding-top: 0;
        margin-bottom: 30px;
    }

    /* Post Detail Page */
    .post-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Reservation Page */
    .reservation-grid {
        grid-template-columns: 1fr;
    }
    .calendar-day {
        height: 45px;
        font-size: 16px;
    }

    /* Blog */
    .blog-main h1 {
        font-size: 36px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile-Specific Adjustments */
    .container {
        padding: 0 15px;
    }
    
    .post-detail-section { 
        padding-top: 100px; 
    }
    
    .blog-main {
        /* 🚀🚀 الحل القاطع: تعيين قيمة عالية جدًا مع !important لضمان التغلب على أي نمط آخر 🚀🚀 */
        padding-top: 200px !important;
    }
    .blog-main .filter-buttons {
        gap: 10px;
    }
    .blog-main .filter-btn {
        font-size: 14px;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 38px;
    }
    .hero-content p {
        font-size: 18px;
    }
}

/* --- YIDM Timeline Styling (Horizontal Layout) - Fixed Specificity --- */
.yidm-model {
    padding: 80px 0;
}

.yidm-model .timeline-grid {
    display: flex; /* CRITICAL: Enables horizontal layout */
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* الخط الأفقي (Timeline Line) لسطح المكتب */
@media (min-width: 992px) {
    .yidm-model .timeline-grid::before {
        content: '';
        position: absolute;
        top: 65px; /* يحدد موقع الخط ليمر عبر منتصف الأيقونات */
        right: 0;
        left: 0;
        height: 2px;
        background-color: #e0e0e0;
        z-index: 1;
    }
}

.yidm-model .timeline-item {
    flex: 1; /* توزيع المساحة بالتساوي */
    text-align: center;
    padding: 0 10px;
    position: relative;
    z-index: 5; 
    max-width: 250px;
}

/* تنسيق الجوال/التابلت: عرض عمودي (Fallback) */
@media (max-width: 991px) {
    .yidm-model .timeline-grid {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    /* خط عمودي للجوال */
    .yidm-model .timeline-grid::before {
        right: auto;
        left: 20px;
        width: 2px;
        height: 100%;
        top: 0;
        bottom: 0;
    }
    .yidm-model .timeline-item {
        text-align: right;
        padding: 0 0 0 40px;
    }
}

.yidm-model .timeline-item .step-icon {
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-light);
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-dark);
    margin: 0 auto 15px; 
    position: relative;
    z-index: 10; 
    border: 5px solid var(--color-background); /* إطار لإخفاء تقاطع الخط */
}

/* تنسيق أيقونة الجوال */
@media (max-width: 991px) {
    .yidm-model .timeline-item .step-icon {
        margin: 0;
        position: absolute;
        right: auto;
        left: 0;
    }
}
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.stagger-item.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- APPOINTMENT STEP-BY-STEP STYLING (New Sequential Layout) --- */

/* إخفاء Grid القديم واستبداله بتخطيط الخطوات */
.reservation-grid {
    display: block; /* تغيير من grid إلى block */
}

/* حاوية الخطوات (للتوسيط والحجم الأقصى) */
.reservation-steps-wrapper {
    max-width: 900px; /* لتقييد حجم الخطوة */
    margin: 0 auto;
    position: relative;
}

/* تنسيق بطاقة الخطوة الداخلية */
.step-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

/* تنسيق كل خطوة (القواعد الأساسية) */
.booking-step {
    /* أساسيات الإخفاء والتوسيع */
    width: 100%; 
    opacity: 0;
    pointer-events: none; /* لمنع التفاعل مع الأزرار والعناصر المخفية */
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    /* حركة الانتقال عند الظهور/الاختفاء */
    transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
}

/* الحالة النشطة (الخطوة الظاهرة) */
.booking-step.active {
    opacity: 1;
    pointer-events: auto;
    height: auto; /* لاستعادة ارتفاعها الكامل */
}


/* تنسيق أوقات الحجز (Slots) */
.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.time-slot {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.2s;
    text-align: center;
    min-width: 100px;
}

.time-slot.available {
    background-color: #e0f2f1; /* Light primary background */
    color: var(--color-secondary);
}

.time-slot.available:hover,
.time-slot.selected {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-2px);
}

.time-slot.booked {
    background-color: #f7f7f7;
    color: #b0b0b0;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* تنسيق أزرار العودة */
.back-btn {
    background-color: #f0f0f0 !important;
    color: var(--color-dark) !important;
    margin-top: 20px;
    margin-left: 15px;
}

/* --- تعديل التباين لزر العودة (Back Button Contrast Fix) --- */
.back-btn {
    /* فرض خلفية خضراء داكنة (Secondary Color) */
    background-color: var(--color-secondary) !important; 
    
    /* فرض النص الأبيض (Light Color) لضمان التباين العالي */
    color: var(--color-light) !important;
    
    /* لإضفاء مظهر ثانوي، سنستخدم حداً أخضر أفتح (Primary Color) */
    border: 2px solid var(--color-primary); 
    
    margin-top: 20px;
    margin-left: 15px;
    transition: all 0.3s;
}

.back-btn:hover {
    /* عكس الألوان عند التمرير: خلفية خضراء أفتح ونص داكن */
    background-color: var(--color-primary) !important;
    color: var(--color-dark) !important;
    border-color: var(--color-secondary);
}

/* --- تعديلات زر الحجز في شريط التنقل --- */

/* 1. إخفاء زر الحجز داخل القائمة في وضع سطح المكتب */
.mobile-only-booking-btn {
    display: none;
}

/* 2. إظهار زر الحجز خارج القائمة في وضع سطح المكتب */
.desktop-only-btn {
    display: block;
}


/* --- Media Query للأجهزة المحمولة (Mobile Devices) --- */
@media (max-width: 992px) { 

    nav ul li a.active-link:after {
    width: 0%;
}
    
    /* 1. إظهار زر الحجز داخل القائمة في وضع الهاتف */
    .mobile-only-booking-btn {
        display: block;
        padding: 10px 0; /* مساحة داخل القائمة */
        text-align: center;
    }
    
    /* تنسيق زر الحجز (A) داخل قائمة الهاتف ليأخذ عرضاً كاملاً */
    .mobile-only-booking-btn .btn {
        width: 90%; 
        display: block;
        margin: 10px auto; /* توسيط الزر في القائمة */
        padding: 10px 15px;
    }

    /* 2. إخفاء زر الحجز خارج القائمة في وضع الهاتف */
    .desktop-only-btn {
        display: none;
    }
    
    /* تعديل إضافي: جعل روابط القائمة أوسع في الجوال (إذا لزم الأمر) */
    nav ul li a {
        display: block;
        padding: 10px 20px;
        text-align: right;
    }
    
}




/* End of file */