/*
Theme Name: Alsehly
Theme URI: https://alsehly.com.sa
Author: Alsehly Trading and Industry
Author URI: https://alsehly.com.sa
Description: Custom Arabic theme for Alsehly Trading and Industry.
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: sahly
Tags: custom-theme, arabic, rtl
*/

/* =========================================
   1. Variables & Reset
   ========================================= */
@font-face {
    font-family: 'Alexandria';
    src: url('assets/fonts/Alexandria.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Fonts */
    --font-primary: 'Alexandria', sans-serif;
    
    /* Brand Colors - Updated based on screenshot */
    --color-primary: #2E1A47;   /* Dark Purple/Blue (Base) */
    --color-secondary: #00c4cc; /* Cyan/Teal (Accent) */
    --color-accent: #f39c12;    /* Orange (Call to Action) */
    
    /* Neutrals */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    --color-border: #e9ecef;

    /* Layout */
    --header-height: 110px;
    --container-width: 88%; /* User requested 88% width */
    --border-radius: 50px; /* Pill Shape */
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
    background-color: #dcdcdc; /* Placeholder Grey BG to show white pill */
    color: var(--color-text);
    line-height: 1.6;
}

/* =========================================
   2. Typography & Elements
   ========================================= */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; /* Adjusted padding */
    width: 100%;
}

/* Hero Container Override */
.hero-section .container {
    max-width: 100%;
    padding: 0 50px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background-color: #2E1A47; /* Darker Orange */
    transform: translateY(-2px);
}

/* =========================================
   3. Header Styling
   ========================================= */
.site-header {
    background-color: transparent; /* Transparent background */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 96%;
}

/* Left Side: Actions */
.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Ensure CTA is a button by default on Desktop */
.header-left .header-cta {
    /* Inherits .btn .btn-primary styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    height: auto;
    padding: 12px 30px;
    border-radius: var(--border-radius);
}

.header-left .header-cta span {
    display: inline-block;
}

.header-left .header-cta i {
    font-size: 1rem;
}

.lang-switcher a {
    color: var(--color-white); /* White text as per screenshot */
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Shadow for readability */
}

/* Right Side: Navigation Pill */
.header-right {
    display: flex;
    align-items: center;
}

.nav-pill-container {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 5px 10px 5px 30px; /* Right padding less for logo, left padding more for menu */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Logo Inside Pill */
.site-branding {
    display: flex;
    align-items: center;
    margin-left: 40px; /* Space between logo and menu */
}

.custom-logo,
.custom-logo-fallback {
    max-height: 60px; /* Adjust based on pill height */
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top Level Menu */
.main-navigation > ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    font-weight: 500;
    color: var(--color-text-light); /* Grey text */
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px; /* Space for arrow */
}

/* Hover State */
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: var(--color-primary);
}

/* Hide Menu Toggle on Desktop */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* Dropdown Arrow - Increased Specificity */
.main-navigation .menu-item-has-children > a::after {
    content: '\f107'; /* Angle Down */
    font-family: "Font Awesome 7 Sharp Duotone";
    font-weight: 400;
    font-size: 11px;
    color: var(--color-primary);
    margin-right: 6px;
    transition: transform 0.3s ease;
    display: inline-block !important;
    opacity: 0.8;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Submenu Styling */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    min-width: 200px;
    padding: 15px;
    z-index: 999;
    flex-direction: column;
    margin-top: 15px; /* Offset from parent */
}

.main-navigation ul ul::before {
    content: ''; /* Little arrow tip */
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--color-white);
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.03);
}

.main-navigation ul ul::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.main-navigation ul li:hover > ul {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.main-navigation ul ul li a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--color-text);
    justify-content: flex-start; /* Align right in RTL */
}

.main-navigation ul ul li a:hover {
    background-color: var(--color-light-bg);
    color: var(--color-secondary);
}

.menu-item-has-children > a::before {
    display: none; /* Remove old arrow */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. Mobile Responsive & Overlay Menu
   ========================================= */
/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary); /* Dark Brand Color */
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    width: 100%;
}

/* Close Button Container */
.mobile-close-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mobile-footer-actions {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.mobile-lang {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    font-family: var(--font-primary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
}

.mobile-lang:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.mobile-menu-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: rotate(90deg);
}

/* Menu Content */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center align items */
    text-align: center;  /* Center text */
    padding-bottom: 20px;
    width: 100%;
}

.mobile-menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-menu-content ul li {
    margin-bottom: 15px; /* Spacing */
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-content ul li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delay */
.mobile-menu-overlay.active .mobile-menu-content ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-content ul li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-content ul li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-content ul li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-menu-content ul li:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu-content ul li a {
    font-size: 1.8rem; /* Reduced Font Size */
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    display: inline-block; /* Changed to inline-block for centering with arrow */
    transition: color 0.3s ease;
    position: relative;
}

/* Dropdown Arrow Styling */
.mobile-menu-content ul li.menu-item-has-children > a::after {
    content: '\f078'; /* Standard FontAwesome Chevron Down */
    font-family: "Font Awesome 7 Sharp Duotone"; /* Correct Font Family */
    font-weight: 400; /* Must be 400 for Sharp Duotone Regular */
    margin-right: 15px; /* Increased Space */
    font-size: 0.6em; /* Smaller, cleaner arrow */
    opacity: 0.8;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle; /* Align vertical */
    position: relative;
    top: -2px; /* Slight optical adjustment */
}

/* Sub-menu Styling */
.mobile-menu-content ul.sub-menu {
    display: none; /* Hidden by default, toggled via JS */
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}

.mobile-menu-content ul.sub-menu li {
    margin-bottom: 5px;
    opacity: 1; /* Reset opacity for sub-items */
    transform: none;
}

.mobile-menu-content ul.sub-menu li a {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Active State for Dropdown */
.mobile-menu-content ul li.menu-item-has-children.active > a::after {
    transform: rotate(180deg);
}

.mobile-menu-content ul li.menu-item-has-children.active > ul.sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-content ul li a:hover {
    color: var(--color-secondary);
}

/* Mobile Social Footer */
.mobile-social-footer {
    display: flex;
    justify-content: center; /* Center align */
    gap: 15px;
    padding-bottom: 40px;
}

.mobile-social-footer a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-social-footer a:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    /* Header Layout */
    .header-container {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .header-right {
        width: auto;
    }

    /* Restore Pill Look on Mobile */
    .nav-pill-container {
        background-color: var(--color-white);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 5px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 4px; /* Reduced gap */
        width: auto;
    }

    /* Constrain Header Width on Mobile */
    .header-container {
        width: 92%;
        margin: 0 auto;
        padding: 15px 0; /* Remove side padding, handled by width */
        justify-content: space-between;
    }

    .site-branding {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .custom-logo, .custom-logo-fallback {
        max-height: 40px; /* Smaller logo on mobile */
    }

    /* Menu Toggle Button - Dark Circle with Plus */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px; /* Increased Size */
        height: 60px; /* Increased Size */
        background-color: var(--color-primary);
        color: var(--color-white);
        border: none;
        border-radius: 50%; /* Circular button */
        font-size: 28px; /* Increased icon size */
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        background-color: var(--color-secondary);
        transform: rotate(90deg);
    }

    /* Hide Main Nav UL */
    .main-navigation ul {
        display: none; 
    }

    /* Restore Header Left for Mobile (Icon Only) */
    .header-left {
        display: flex;
        align-items: center;
    }

    /* Hide Lang Switcher */
    .header-left .lang-switcher {
        display: none;
    }

    /* CTA Icon Style */
    .header-left .header-cta span {
        display: none; /* Hide Text */
    }

    .header-left .header-cta {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-secondary);
        color: var(--color-white);
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(246, 142, 30, 0.3);
    }

    .header-left .header-cta i {
        margin: 0 !important;
        font-size: 1.2rem;
    }
}

/* =========================================
   5. Hero Section (Video Background)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary); /* Fallback */
    z-index: 1; /* Establish stacking context */
}

/* Video Background Wrapper */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest in stack */
    overflow: hidden;
    pointer-events: none;
}

/* Foreground to force Aspect Ratio */
.video-foreground,
.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Overlay for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 26, 71, 0.6) 0%, rgba(46, 26, 71, 0.3) 100%);
    z-index: 2; /* Middle in stack */
}

/* Hero Content */
.hero-content {
    text-align: right;
    color: var(--color-white);
    z-index: 3; /* Top in stack */
    position: absolute;
    bottom: 120px;
    right: 80px;
    max-width: 700px;
    padding-top: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: none;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Scroll Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    gap: 10px;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Header Overrides for Home */
body.home .site-header,
body.front-page .site-header {
    position: fixed; /* Fixed to stay on top while scrolling initially */
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
}

/* Scrolled State (Added by JS) */
.site-header.scrolled {
    position: fixed; /* Becomes fixed when scrolled past threshold */
    top: 0;
    background-color: transparent; /* Changed from white to transparent as per user request */
    backdrop-filter: none;
    box-shadow: none;
    animation: slideDown 0.3s ease;
    border-bottom: none;
}

.site-header.scrolled .lang-switcher a {
    color: var(--color-text); /* Switch text color on white bg */
    text-shadow: none;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section .hero-content {
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 30px;
        text-align: center;
        bottom: 25%; /* Move up slightly to be more visible */
    }

    .hero-title { 
        font-size: 2rem; /* Reduced from 2.5rem for better fit */
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .hero-subtitle { 
        font-size: 1rem;
        line-height: 1.8;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .video-foreground, .video-background iframe {
        height: 100vh; /* Force height on mobile to cover */
        width: 177.77vh; /* Aspect ratio */
    }
}

/* =========================================
   7. Desktop Scrolled State
   ========================================= */
/* Initially hide the toggle on Desktop Normal */
@media (min-width: 993px) {
    .menu-toggle {
        display: none;
    }
}

/* Scrolled State Styles */
.site-header.scrolled .header-container {
    padding: 10px 0; /* Compact */
    width: 92%;

}

/* Nav Pill Transformation */
.site-header.scrolled .nav-pill-container {
    padding: 5px; /* Minimal padding */
    gap: 10px;
    width: 92%;

}

/* Hide Text Menu on Scrolled */
.site-header.scrolled .main-navigation ul {
    display: none;
}

/* Show Toggle Button on Scrolled */
.site-header.scrolled .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary); /* Dark Background */
    color: var(--color-white); /* White Icon */
    border-radius: 50%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-header.scrolled .menu-toggle:hover {
    transform: rotate(90deg);
    background-color: var(--color-secondary);
}

/* CTA Transformation (Left Side) */
.site-header.scrolled .header-cta span {
    display: none; /* Hide Text */
}

.site-header.scrolled .header-cta {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
}

.site-header.scrolled .header-cta i {
    margin: 0 !important;
    font-size: 1.2rem;
}

/* Hide Lang Switcher on Scrolled */
.site-header.scrolled .lang-switcher {
    display: none;
}

/* Ensure Logo stays visible but maybe smaller */
.site-header.scrolled .custom-logo {
    max-height: 40px;
}

/* Stats Section */
.stats-section {
    position: relative;
    padding: 100px 0;
    margin-top: 0; /* Fixed from -50px or 0 to be safe */
    z-index: 10;
    background-color: var(--color-primary); /* Primary brand background */
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%),
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    overflow: hidden;
}

.stats-section .container {
    width: 82%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Magical Background Particles/Glow */
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    animation: rotateBackground 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.98); /* Slight transparency for lux feel */
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

/* Golden/Magical Hover Border */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, var(--color-secondary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    background-color: #fff;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--color-secondary); /* Gold/Secondary color for contrast */
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.3)); /* Magical glow */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.5));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary); /* Dark text for readability */
    margin-bottom: 10px;
    font-family: var(--font-primary);
    direction: ltr;
    letter-spacing: -2px;
    line-height: 1;
}

.stat-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.stat-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    max-width: 90%;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        margin-top: 0; /* Resetting negative margin to fix overlap */
    }
}

/* =========================================
   8. About Section (Luxury)
   ========================================= */
.about-section {
    padding: 120px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-section .container {
    width: 82%;
    max-width: 100%; /* Ensure it can span */
    padding: 0; /* Remove default padding to stick to 92% strictly if needed, or keep for spacing */
    margin: 0 auto;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
    z-index: 2;
}

.about-visual {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Badge */
.section-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.badge-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-accent); /* Gold/Orange */
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
}

/* Title */
.section-title {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--color-primary);
    font-weight: 800;
}

.highlight-text {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

/* Description */
.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 90%;
}

/* Features */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(46, 26, 71, 0.05) 0%, rgba(0, 196, 204, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

.feature-text h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--color-primary);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Luxury Button */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(46, 26, 71, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-luxury:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 196, 204, 0.3);
}

.btn-luxury i {
    transition: transform 0.3s ease;
}

.btn-luxury:hover i {
    transform: translateX(-5px); /* Move left for RTL */
}

/* Visual Wrapper */
.visual-wrapper {
    position: relative;
    padding-left: 30px; /* Space for elements */
}

.main-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    z-index: 2;
    height: 700px; /* Increased Height */
}

.main-image-container img {
    display: block;
    width: 100%;
    height: 100%; /* Fill container */
    object-fit: cover; /* Maintain Aspect Ratio */
    transition: transform 0.7s ease;
}

.visual-wrapper:hover .main-image-container img {
    transform: scale(1.05);
}

/* Floating Card */
.floating-card {
    position: absolute;
    bottom: 50px;
    right: -30px; /* Overlap right side */
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
    animation: floatCardLuxury 6s ease-in-out infinite; /* Slower, smoother animation */
    max-width: 250px;
}

@keyframes floatCardLuxury {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); } /* Slightly more movement */
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.card-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* Decorations */
.deco-pattern {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-secondary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 1;
}

.deco-circle-outline {
    position: absolute;
    bottom: -30px;
    right: 50px;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .about-visual {
        order: -1; /* Image first on mobile */
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-card {
        right: 0;
        bottom: 20px;
    }
    
    .visual-wrapper {
        padding-left: 0;
    }
}

/* 
========================================
   Portfolio/Works Section (Luxury)
========================================
*/
.portfolio-section {
    padding: 120px 0;
    background-color: #f9f9f9; /* Light grey for contrast */
    position: relative;
    overflow: hidden;
}

.portfolio-section .container {
    width: 82%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Center Badge specific for this section if needed */
.center-badge {
    justify-content: center;
    margin-bottom: 20px;
}

/* Header Row Layout */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centered Vertically */
    gap: 40px;
    margin-bottom: 60px;
}

.header-title-col {
    flex: 0 0 auto; /* Auto width based on content */
    width: auto;
    text-align: right;
}

.header-desc-col {
    flex: 1; /* Takes remaining space */
    max-width: 600px; /* Limit width for readability */
    padding-bottom: 0;
    margin-right: auto; /* Push to left */
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: justify; /* Justify text for clean block look */
}

/* Responsive Header */
@media (max-width: 992px) {
    .header-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    
    .header-title-col, .header-desc-col {
        width: 100%;
        max-width: 100%;
    }
    
    .section-subtitle {
        text-align: right;
    }
}

/* Coming Soon Card Styling */
.portfolio-item.coming-soon {
    border: 2px dashed rgba(46, 26, 71, 0.1);
    background: #fafafa;
}

.portfolio-image.blurred-img {
    background-color: #eee;
    position: relative;
}

.portfolio-image.blurred-img img {
    filter: blur(8px) grayscale(30%);
    transform: scale(1.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 26, 71, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.coming-soon-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    background: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    letter-spacing: 1px;
}

.icon-pulse i {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Portfolio Item Card */
.portfolio-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Image Area */
.portfolio-image {
    position: relative;
    height: 300px; /* Fixed height for consistency */
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Overlay with Link */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(46, 26, 71, 0.7), rgba(46, 26, 71, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.portfolio-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.portfolio-item:hover .portfolio-link {
    transform: translateY(0);
}

/* Content Area */
.portfolio-content {
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    background-color: #fff;
    z-index: 10; /* Increased to stay above overlay */
}

/* Floating Icon */
.portfolio-icon {
    position: absolute;
    top: -35px; /* Half overlapping */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 1.8rem;
    color: var(--color-secondary);
    border: 2px solid rgba(244, 162, 97, 0.1); /* Subtle secondary border */
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-icon {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateX(-50%) scale(1.1);
}

/* Title */
.portfolio-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 15px 0 0;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-title {
    color: var(--color-secondary);
}

.portfolio-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-top: 10px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 250px;
    }
}

/* =========================================
   Luxury Footer
   ========================================= */
.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    margin-top: 0;
}

.footer-widgets {
    padding: 80px 0 60px;
    position: relative;
    z-index: 2;
}

/* Background Pattern/Overlay for luxury feel */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 196, 204, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(243, 156, 18, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Column Styles */
.footer-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL */
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-menu a:hover {
    color: var(--color-white);
    transform: translateX(-5px); /* Move left for RTL */
}

.footer-menu a::before {
    content: '\f104'; /* FontAwesome Chevron Left */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--color-secondary);
    opacity: 0;
    transition: var(--transition);
    transform: translateX(10px);
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.social-link:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.newsletter-form .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 55px; /* Space for button */
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form input:focus {
    border-color: var(--color-secondary);
    background: rgba(255,255,255,0.1);
}

.newsletter-form .btn-newsletter {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: 45px;
    border-radius: 50%;
    border: none;
    background: var(--color-secondary);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form .btn-newsletter:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

/* Copyright Area */
.site-info {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.1);
}

.copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom-links .sep {
    color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .copyright-row {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   Partners & Testimonials (Luxury)
   ========================================= */
.partners-testimonials-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Partners Marquee */
.partners-marquee-wrapper {
    position: relative;
    margin-bottom: 80px;
    padding: 40px 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(248, 249, 250, 0.5), rgba(255,255,255,0));
    overflow: hidden;
}

.partners-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}

.partner-slide {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-slide:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* Adjust based on direction RTL/LTR */
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 30px;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-secondary);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--color-primary);
}

.client-details span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Latest News Section (Luxury)
   ========================================= */
.latest-news-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--color-secondary);
    color: #fff;
    padding: 8px 20px;
    border-top-left-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px;
}

.news-title a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--color-secondary);
}

.news-excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.news-link:hover {
    color: var(--color-secondary);
    gap: 15px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Single Page & Post Styling
   ========================================= */
.sahly-page-header {
    background-color: var(--color-primary);
    padding: 180px 0 80px; /* Account for fixed header */
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.sahly-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 196, 204, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(243, 156, 18, 0.1), transparent 50%);
    pointer-events: none;
}

.sahly-page-header .page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs (Redesigned) */
.sahly-breadcrumbs-wrapper {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

.breadcrumbs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--color-secondary);
}

.breadcrumbs .separator {
    margin: 0 12px;
    opacity: 0.5;
    font-size: 0.75em;
    color: #fff;
}

.breadcrumbs .bread-current {
    font-weight: 700;
    color: var(--color-secondary);
}

/* Single Post Content */
.sahly-single-post,
.sahly-single-page {
    background: #fff;
    border-radius: 30px;
    margin-bottom: 60px;

}

/* Table of Contents */
.sahly-toc-container {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    position: relative;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    cursor: pointer;
}

.toc-title {
    margin: 0 !important;
    font-size: 1.2rem !important;
    color: var(--color-primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sahly-toc-container.collapsed .toc-toggle {
    transform: rotate(180deg);
}

.sahly-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sahly-toc li {
    margin-bottom: 10px;
}

.sahly-toc li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: block;
    padding: 5px 0;
}

.sahly-toc li a:hover {
    color: var(--color-secondary);
    padding-right: 5px; /* RTL Slide */
}

.sahly-toc .toc-sub-item {
    margin-right: 20px; /* Indent for RTL */
    font-size: 0.9rem;
    border-right: 2px solid #ddd;
    padding-right: 15px;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-meta i {
    color: var(--color-secondary);
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin: 40px 0 20px;
}

.entry-content blockquote {
    border-right: 4px solid var(--color-secondary); /* RTL */
    margin: 40px 0;
    padding: 20px 30px;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
}

/* Post Navigation */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    width: 48%;
}

.nav-previous a, .nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-5px);
}

.nav-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Comments */
.comments-area {
    margin-top: 80px;
}

.comments-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 700;
    color: var(--color-primary);
}

.comment-metadata {
    font-size: 0.85rem;
    color: #999;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Comment Form */
.comment-respond {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    display: block;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.form-submit .submit {
    background: var(--color-primary);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit .submit:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}
