:root {
    --yaei-green: #16302B;
    --yaei-light-green: #23473f;
    --yaei-beige: #F0EBE1;
    --yaei-dark-beige: #EAE4D8;
    --yaei-white: #ffffff;
    --text-dark: #16302B;
    --text-light: #ffffff;
}

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

body {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--yaei-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto; /* Ensure default cursor is visible */
}

/* English Typography Enforcement (Removed, using Cairo globally) */
html[lang="en"] body,
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6,
html[lang="en"] .hero-title, html[lang="en"] .section-title, html[lang="en"] .btn-primary, html[lang="en"] .nav-link,
html[lang="en"] input, html[lang="en"] select, html[lang="en"] textarea, html[lang="en"] button {
    font-family: 'Cairo', sans-serif !important;
}

html[dir="ltr"] body {
    font-family: 'Cairo', sans-serif !important;
}

a {
    text-decoration: none;
}

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

/* Typography */
.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--yaei-green);
}

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

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

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--yaei-green);
    margin-bottom: 30px;
}

.divider.center-block {
    margin: 0 auto 40px auto;
    background-color: var(--yaei-beige);
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.site-header.sticky {
    position: fixed;
    background: rgba(22, 48, 43, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--yaei-white);
}

.logo-text span {
    font-size: 10px;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 2px;
    color: var(--yaei-white);
    opacity: 0.8;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--yaei-white);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--yaei-beige);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--yaei-white);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    display: flex;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.lang-btn span { opacity: 0.5; transition: opacity 0.3s; }
.lang-btn span.active { opacity: 1; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.2); }

.btn-primary {
    background: var(--yaei-beige);
    color: var(--yaei-green);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--yaei-white);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    color: var(--yaei-white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(22, 48, 43, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--yaei-white);
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-labels {
    width: 80%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: -30px;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
}

.hero-title-en {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: 5px;
    opacity: 0.9;
}

.script-subtitle {
    font-family: 'Great Vibes', cursive !important;
    font-size: 60px;
    font-weight: 400;
    color: var(--yaei-white);
    transform: rotate(-2deg);
    margin-top: -20px;
}

.hero-subtitle {
    font-size: 24px;
    margin: 20px 0 40px;
    font-weight: 600;
}

.btn-hero {
    padding: 14px 36px;
    font-size: 16px;
}

/* About Section */
.about-section {
    background-color: var(--yaei-beige);
    padding: 100px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-lead {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.7;
}

.highlight-box {
    background: rgba(22, 48, 43, 0.05);
    padding: 25px;
    border-inline-end: 4px solid var(--yaei-green);
    border-radius: 12px;
    margin-bottom: 25px;
}

.highlight-box h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--yaei-green);
}

.highlight-box p {
    font-size: 16px;
    color: #444;
}

.vision-box {
    margin-bottom: 30px;
}

.vision-box h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--yaei-green);
}

.btn-tag {
    background: var(--yaei-green);
    color: var(--yaei-white);
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: default;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Section */
.services-section {
    background-color: var(--yaei-green);
    padding: 100px 0;
}

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

.service-card {
    background: var(--yaei-beige);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 1px solid var(--yaei-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--yaei-green);
}

.service-card h3 {
    color: var(--yaei-green);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 800;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: right;
}

.service-card ul li {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    padding-inline-start: 15px;
}

.service-card ul li::before {
    content: "•";
    color: var(--yaei-green);
    position: absolute;
    inset-inline-start: 0;
    font-size: 18px;
}

/* Why Yaei Values */
.values-section {
    background-color: var(--yaei-white);
    padding: 100px 0;
}

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

.value-card {
    background: var(--yaei-dark-beige);
    padding: 30px 20px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
}

.value-icon {
    font-size: 36px;
    color: var(--yaei-green);
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--yaei-green);
}

.value-card p {
    font-size: 14px;
    color: #555;
}

/* Projects */
.projects-section {
    background-color: var(--yaei-green);
    padding: 100px 0;
    color: var(--yaei-white);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Stats Section */
.stats-section {
    background-color: var(--yaei-dark-beige);
    padding: 80px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 50px;
    font-weight: 800;
    color: var(--yaei-green);
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
}

.stat-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--yaei-green);
}

/* Footer & Contact Section */
.footer-section {
    background-color: var(--yaei-green);
    padding: 80px 0 30px;
    color: var(--yaei-white);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 60px;
    /* Removed flex-direction: row-reverse so it naturally aligns RTL and LTR */
}

.footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-logo-text {
    text-align: start;
    /* margin-top removed since it's a row now */
}

.footer-logo-text strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.footer-logo-text span {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
}

.contact-details h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--yaei-white);
}

.contact-details p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-form {
    flex: 1.2;
}

.form-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--yaei-white);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.form-input:focus {
    outline: none;
    border-color: var(--yaei-beige);
}

select.form-input {
    appearance: none;
    cursor: pointer;
}

select.form-input option {
    background: var(--yaei-green);
    color: var(--yaei-white);
}

.select-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    background: var(--yaei-beige);
    color: var(--yaei-green);
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--yaei-white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 13px;
    opacity: 0.6;
}

/* WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.wa-box {
    background: var(--yaei-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 320px;
    margin-bottom: 20px;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.wa-box.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.wa-header {
    background: #075E54;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header-text h4 { font-size: 16px; margin-bottom: 4px; }
.wa-header-text p { font-size: 12px; opacity: 0.8; }
.wa-header-icon { font-size: 30px; }

.wa-body { padding: 20px; background: #e5ddd5; }
.wa-reply-time { font-size: 12px; color: #666; margin-bottom: 15px; text-align: center; }

.wa-footer-branding {
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #ddd;
}

.wa-member {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.3s;
}

.wa-member:hover { background: #f9f9f9; }
.wa-member-wa-icon { color: #25D366; font-size: 24px; }
.wa-member-info { flex: 1; }
.wa-member-info strong { display: block; font-size: 14px; }
.wa-member-info span { font-size: 12px; color: #888; }

.wa-member-icon {
    width: 40px;
    height: 40px;
    background: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wa-member-icon svg {
    width: 25px;
    height: auto;
}

.wa-button-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-tooltip {
    background: var(--yaei-white);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 700;
    pointer-events: auto;
}

.wa-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    animation: pulse-wa 2s infinite;
    pointer-events: auto;
}

.wa-button:hover { transform: scale(1.1) rotate(-10deg); }
.wa-button i.hidden { display: none; }

/* Mobile Nav Overlay */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    background: var(--yaei-green);
    z-index: 1000;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 24px;
    color: var(--yaei-white);
    cursor: pointer;
}

.mobile-nav-links {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m-nav-link {
    color: var(--yaei-white);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container { flex-direction: column; }
    .footer-container { flex-direction: column-reverse; gap: 50px; }
    .footer-info { align-items: center; text-align: center; }
    .footer-section { padding-bottom: 110px; }
}

@media (max-width: 768px) {
    .desktop-nav, .client-portal-btn { display: none; }
    .mobile-nav-toggle { display: block; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 18px; }
    .stats-container { flex-direction: column; gap: 40px; }
    .top-labels { display: none; }

    /* Force all grids to 2 columns on mobile */
    .services-grid, 
    .values-grid, 
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* Adjust Services Card for Mobile */
    .service-card { padding: 15px 10px; }
    .service-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 15px; }
    .service-card h3 { font-size: 14px; margin-bottom: 10px; }
    .service-card ul li { font-size: 11px; margin-bottom: 8px; padding-inline-start: 10px; line-height: 1.4; }
    .service-card ul li::before { font-size: 14px; }

    /* Adjust Values Card for Mobile */
    .value-card { padding: 15px 10px; }
    .value-icon { font-size: 24px; margin-bottom: 10px; }
    .value-card h3 { font-size: 14px; margin-bottom: 8px; }
    .value-card p { font-size: 11px; line-height: 1.4; }

    /* Adjust Projects Card for Mobile */
    .project-img { height: 120px; }
    .project-info { padding: 15px 10px; }
    .project-info h3 { font-size: 14px; margin-bottom: 5px; }
    .project-info p { font-size: 11px; margin-bottom: 0; line-height: 1.4; }
}
/* Basic Security & Anti-Copy Measures */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
img {
    pointer-events: none;
}

/* --- Premium Motion Effects --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Ensure the hero background is fixed for a simple CSS parallax behind the JS parallax */
.hero-section {
    background-attachment: fixed;
}
@media (max-width: 768px) {
    /* Disable fixed background attachment on mobile for performance */
    .hero-section { background-attachment: scroll; }
}

/* --- Custom Cursor & Interactive Parallax --- */
body {
    /* cursor: none; Removed by request so default cursor is visible */
}
.cursor-dot, .cursor-outline {
    display: none !important; /* Hide custom cursor */
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(162, 137, 83, 1);
}
.cursor-outline {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(162, 137, 83, 0.7); /* Gold */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, left 0.15s ease-out, top 0.15s ease-out;
}
/* Hover effect for buttons and links */
body.cursor-hover .cursor-outline {
    width: 55px;
    height: 55px;
    background-color: rgba(162, 137, 83, 0.1);
    border-color: rgba(162, 137, 83, 0.9);
}

/* Decorative Parallax Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.shape-1 {
    width: 50vw;
    height: 50vw;
    background: rgba(162, 137, 83, 0.2); /* Soft Gold */
    top: -20vh;
    right: -20vw;
}
.shape-2 {
    width: 60vw;
    height: 60vw;
    background: rgba(22, 48, 43, 0.15); /* Soft Green */
    bottom: -30vh;
    left: -20vw;
}

/* Disable custom cursor and animations on touch devices */
@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none !important; }
    .bg-shape { transition: none; opacity: 0.2; } /* Static subtle background on mobile */
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* App Install Modal */
.app-install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647 !important; /* Max z-index to cover Chatbase */
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

body.modal-open iframe {
    opacity: 0 !important;
    pointer-events: none !important;
}

.app-install-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-install-card {
    background: var(--yaei-white);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-install-overlay.hidden .app-install-card {
    transform: translateY(50px) scale(0.95);
}

.app-install-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: var(--yaei-green);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(22, 48, 43, 0.3);
}

.app-install-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-install-card h3 {
    font-size: 24px;
    color: var(--yaei-green);
    margin-bottom: 15px;
    font-weight: 800;
}

.app-install-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.app-install-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border-radius: 14px;
}

.skip-btn {
    background: transparent;
    border: none;
    color: #888;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    font-weight: 600;
    transition: color 0.3s;
}

.skip-btn:hover {
    color: #333;
}

/* --- Latest Blog Section --- */
.blog-section {
    padding: 80px 0 100px 0;
    background-color: var(--yaei-dark-beige);
    position: relative;
}
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}
.blog-card {
    background: var(--yaei-beige);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 380px;
    width: 100%;
}
.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-medium);
}
.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--yaei-beige);
    z-index: 2;
    align-items: center;
    text-align: center;
}
.blog-card-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.blog-card-title {
    font-size: 1.25rem;
    color: var(--yaei-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}
.blog-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.blog-card-readmore {
    font-weight: 600;
    color: var(--yaei-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}
.blog-card:hover .blog-card-readmore {
    color: var(--yaei-gold);
    gap: 12px;
}
.blog-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

/* Green Button for Blog Section */
.btn-green {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--yaei-green);
    color: var(--yaei-beige);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-fast);
    border: 2px solid var(--yaei-green);
}
.btn-green:hover {
    background-color: transparent;
    color: var(--yaei-green);
}

/* --- Floating Hero Slider (Desktop Only) --- */
.hero-floating-slider {
    display: none;
}

@media (min-width: 992px) {
    .hero-section {
        position: relative;
    }
    
    html[dir="rtl"] .hero-content {
        align-items: flex-start;
        text-align: right;
        margin-right: 5%;
        margin-left: auto;
        max-width: 50%;
        padding-top: 50px;
    }
    
    html[dir="ltr"] .hero-content {
        align-items: flex-start;
        text-align: left;
        margin-left: 5%;
        margin-right: auto;
        max-width: 50%;
        padding-top: 50px;
    }

    /* Move top labels to match the new text alignment */
    html[dir="rtl"] .hero-content .top-labels,
    html[dir="ltr"] .hero-content .top-labels {
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
    }
    
    html[dir="rtl"] .hero-floating-slider {
        left: 8%;
    }
    
    html[dir="ltr"] .hero-floating-slider {
        right: 8%;
    }
    
    .hero-floating-slider {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: auto;
        bottom: 8%;
        width: 320px;
        height: 480px;
        z-index: 10;
        perspective: 1000px;
    }
    
    .slider-cards-container {
        position: relative;
        width: 100%;
        height: 420px;
        margin-bottom: 20px;
    }
    
    .floating-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #111;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.1);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        text-decoration: none;
        color: #fff;
    }
    
    .floating-card::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
        z-index: 1;
    }
    
    .floating-card-image {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    
    .floating-card-content {
        position: relative;
        z-index: 2;
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .floating-card-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #fff;
        line-height: 1.4;
    }
    
    .floating-card-date {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.7);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .floating-card-btn {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        align-self: center; /* Centered */
        backdrop-filter: blur(5px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        margin-top: 15px;
        transition: 0.3s;
    }
    
    .floating-card:hover .floating-card-btn {
        background: var(--yaei-gold, #A28953);
        color: #111;
        transform: translateX(-5px);
    }
    html[dir="ltr"] .floating-card-btn {
        align-self: center; /* Centered */
    }
    html[dir="ltr"] .floating-card:hover .floating-card-btn {
        transform: translateX(5px);
    }
    
    /* Active Card */
    .floating-card.active {
        opacity: 1;
        visibility: visible;
        transform: translateZ(0) scale(1);
        z-index: 3;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }
    
    /* Next Card (Behind) */
    .floating-card.next {
        opacity: 0.5;
        visibility: visible;
        transform: translateZ(-50px) translateX(40px) scale(0.9);
        z-index: 2;
    }
    html[dir="ltr"] .floating-card.next {
        transform: translateZ(-50px) translateX(-40px) scale(0.9);
    }
    
    /* Previous Card (Hidden behind) */
    .floating-card.prev {
        opacity: 0;
        visibility: hidden;
        transform: translateZ(-100px) scale(0.8);
        z-index: 1;
    }
    
    /* Controls */
    .slider-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding-left: 20px;
    }
    
    .slider-counter {
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        margin-left: 10px;
        margin-right: 10px;
        font-family: monospace;
    }
    html[dir="ltr"] .slider-controls {
        padding-left: 0;
        padding-right: 20px;
        justify-content: flex-end;
        align-self: flex-start; /* Right in LTR */
    }
    
    .slider-btn {
        background: transparent;
        border: none;
        color: rgba(255,255,255,0.6);
        font-size: 1.2rem;
        cursor: pointer;
        transition: 0.3s;
    }
    
    .slider-btn:hover {
        color: #fff;
        transform: scale(1.1);
    }

    .slider-browse-all {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: 0.3s;
        margin-right: auto; /* Push it to the far left in RTL */
    }
    html[dir="ltr"] .slider-browse-all {
        margin-right: 0;
        margin-left: auto; /* Push it to the far right in LTR */
    }
    
    .slider-browse-all .arrow-icon {
        font-size: 0.85rem;
        opacity: 0;
        transform: translateX(10px);
        transition: 0.3s;
        display: none;
    }
    html[dir="ltr"] .slider-browse-all .arrow-icon {
        transform: translateX(-10px);
    }
    
    .slider-browse-all:hover {
        color: #fff;
    }
    
    .slider-browse-all:hover .text {
        display: none;
    }
    
    .slider-browse-all:hover .arrow-icon {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }


    /* Fix hero text spacing */
    html[dir="rtl"] .hero-content .top-labels,
    html[dir="ltr"] .hero-content .top-labels {
        margin-bottom: 20px;
        justify-content: flex-start;
    }
    html[dir="rtl"] .hero-content .script-subtitle,
    html[dir="ltr"] .hero-content .script-subtitle {
        margin-top: 10px;
    }
    html[dir="rtl"] .hero-content .hero-subtitle,
    html[dir="ltr"] .hero-content .hero-subtitle {
        margin-top: 20px;
    }

}

/* Explicit Footer Alignment for RTL/LTR */
html[dir="rtl"] .footer-info,
html[dir="rtl"] .contact-details h4,
html[dir="rtl"] .contact-details p,
html[dir="rtl"] .footer-logo-text {
    text-align: right !important;
}
html[dir="ltr"] .footer-info,
html[dir="ltr"] .contact-details h4,
html[dir="ltr"] .contact-details p,
html[dir="ltr"] .footer-logo-text {
    text-align: left !important;
}

.footer-logo-text strong, .footer-logo-text span {
    white-space: nowrap;
}
