/*
Theme Name: Clean House Theme 2
Theme URI: https://www.clean-hoouse.com/
Author: رعاية السعودية
Author URI: https://riayaksa.com
Description: قالب مخصص لشركة رعاية السعودية (نسخة الإصدار الثاني - تتجاوز مشاكل الاستضافة). تصميم ملائكي، تأثيرات زجاجية، حركة انسيابية، وتجربة مستخدم عالمية.
Version: 2.0.0
*/

/* Fonts are enqueued via functions.php to avoid render-blocking @import */
:root {
    --primary: #0A2540; /* كحلي ملكي */
    --accent: #D4AF37; /* ذهبي فخم */
    --angelic-blue: #E0F2FE; /* أزرق ملائكي فاتح */
    --angelic-glow: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Alexandria', sans-serif;
    background-color: #FAFAFA;
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.8;
}

a { text-decoration: none; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* --- 1. The Angelic Video/Animated Slider (Hero) --- */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* خلفية متحركة تشبه الفيديو (فلاش) - ألوان ملائكية هادئة */
.angelic-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #bae6fd, #fdf4ff);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.6;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 37, 64, 0.3), rgba(10, 37, 64, 0.8));
    z-index: 3;
}

/* محتوى الواجهة (Glassmorphism) */
.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    max-width: 800px;
    animation: floatUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #FFF;
    margin-bottom: 20px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(120deg, #D4AF37, #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.4rem;
    color: #E2E8F0;
    font-weight: 400;
    margin-bottom: 40px;
}

/* --- 2. Premium Buttons --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--primary);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.btn-premium:hover::before { left: 100%; }

.btn-outline-glass {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.5);
    color: #FFF;
    backdrop-filter: blur(10px);
}
.btn-outline-glass:hover {
    background: #FFF;
    color: var(--primary);
    transform: translateY(-5px);
}

/* --- 3. Floating Glass Menu --- */
.header-wrapper {
    position: fixed;
    width: 100%;
    top: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.glass-menu {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95); /* Opaque white glass for Google contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-menu.scrolled {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(10, 37, 64, 0.2);
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.site-title { margin: 0; font-size: 1.6rem; }
.glass-menu .site-title a,
.glass-menu .main-navigation a {
    color: #000; /* Darker more vibrant black for high contrast */
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.glass-menu.scrolled .site-title a,
.glass-menu.scrolled .main-navigation a,
.glass-menu.scrolled .menu-toggle {
    color: #FFF !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Fix desktop sub-menu colors when header is scrolled */
@media (min-width: 993px) {
    .glass-menu.scrolled .main-navigation ul ul.sub-menu {
        background: var(--primary);
        border: 1px solid rgba(255,255,255,0.1);
    }
    .glass-menu.scrolled .main-navigation ul ul.sub-menu li a {
        color: #FFF !important;
    }
    .glass-menu.scrolled .main-navigation ul ul.sub-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--accent) !important;
    }
}

.main-navigation ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { font-size: 1.05rem; position: relative; padding: 10px 0; }
.main-navigation a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; right: 0;
    background: var(--accent); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px;
}
.main-navigation a:hover::after { width: 100%; }

.btn-premium-small {
    background: linear-gradient(135deg, var(--accent), #FDE047);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: none !important;
}
.btn-premium-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

/* --- Premium Footer --- */
.site-footer {
    background: var(--primary);
    color: #FFF;
    padding: 80px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--angelic-blue), var(--accent));
}
.footer-navigation ul {
    display: flex; justify-content: center; gap: 30px; list-style: none; margin: 30px 0; padding: 0;
}
.footer-navigation a {
    color: var(--angelic-blue);
    font-weight: 600;
}
.footer-navigation a:hover {
    color: var(--accent);
}
.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* --- 4. Services (Angelic Cards) --- */
.services-section { padding: 120px 0; background: #FFF; position: relative; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 3rem; font-weight: 900; color: var(--primary); }
.section-title p { font-size: 1.2rem; color: #64748B; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.service-card {
    background: #FFF;
    border-radius: 40px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 40px; background: linear-gradient(135deg, #E0F2FE, #FFF);
    z-index: -1; opacity: 0; transition: 0.5s;
}
.service-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(10, 37, 64, 0.08); }
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 100px; height: 100px;
    background: var(--angelic-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 30px; font-size: 40px;
    box-shadow: 0 15px 30px rgba(224, 242, 254, 0.8);
    transition: 0.5s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); background: var(--accent); color: #FFF; }
.service-card h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; color: var(--primary); }
.service-card p { font-size: 1.1rem; color: #475569; }

/* --- Animations --- */
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(50px); } 100% { opacity: 1; transform: translateY(0); } }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 40px; left: 40px; width: 70px; height: 70px;
    background: #25D366; color: #FFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 35px;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999; transition: 0.4s;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(-10deg); }

/* --- 5. Advanced Single Post Typography & SEO Features --- */
.entry-content {
    font-size: 1.25rem;
    line-height: 2.2;
    color: #334155;
    margin-top: 40px;
}
.entry-content h1 { color: var(--h1-color, var(--primary)); font-size: var(--h1-size, 2.5rem); margin-top: 40px; margin-bottom: 20px; font-weight: 900; }
.entry-content h2 { color: var(--h2-color, var(--primary)); font-size: var(--h2-size, 2.0rem); margin-top: 40px; margin-bottom: 20px; font-weight: 800; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 10px; }
.entry-content h3 { color: var(--h3-color, var(--accent)); font-size: var(--h3-size, 1.6rem); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
.entry-content h4 { color: var(--h4-color, #334155); font-size: var(--h4-size, 1.4rem); margin-top: 25px; margin-bottom: 15px; font-weight: 700; }
.entry-content h5 { color: var(--h5-color, #334155); font-size: var(--h5-size, 1.2rem); margin-top: 20px; margin-bottom: 10px; font-weight: 600; }
.entry-content h6 { color: var(--h6-color, #334155); font-size: var(--h6-size, 1.0rem); margin-top: 20px; margin-bottom: 10px; font-weight: 600; }
.entry-content p { margin-bottom: 25px; text-align: justify; }
.entry-content img { border-radius: 20px; max-width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 30px 0; }

/* Breadcrumbs */
.riaya-breadcrumbs {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 30px;
    display: inline-block;
}
.riaya-breadcrumbs a { color: var(--primary); font-weight: bold; }
.riaya-breadcrumbs a:hover { color: var(--accent); }
.riaya-breadcrumbs .current { color: #94A3B8; }

/* Sidebar Layout Grid */
.content-sidebar-wrap {
    display: grid;
    gap: 40px;
    align-items: start;
}
.content-sidebar-wrap.right-sidebar { grid-template-columns: 1fr 3fr; }
.content-sidebar-wrap.left-sidebar { grid-template-columns: 3fr 1fr; }
.content-sidebar-wrap.full-width { grid-template-columns: 1fr; }
@media (max-width: 992px) {
    .content-sidebar-wrap.right-sidebar,
    .content-sidebar-wrap.left-sidebar { 
        display: flex !important;
        flex-direction: column-reverse !important;
    }
}

/* Star Rating System */
.riaya-star-rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F8FAFC;
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 30px;
    border: 1px solid #E2E8F0;
}
.riaya-stars {
    display: flex;
    flex-direction: row-reverse; /* For RTL logic in CSS hover */
    gap: 5px;
}
.riaya-stars input { display: none; }
.riaya-stars label {
    font-size: 2rem;
    color: #CBD5E1;
    cursor: pointer;
    transition: 0.2s;
}
.riaya-stars label:hover,
.riaya-stars label:hover ~ label,
.riaya-stars input:checked ~ label {
    color: #F59E0B; /* Golden Yellow */
    transform: scale(1.1);
}
.rating-text { font-size: 1.1rem; font-weight: bold; color: var(--primary); }

/* Author Box */
.riaya-author-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #FFF;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    margin-top: 60px;
    border-right: 5px solid var(--accent);
}
.riaya-author-avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.riaya-author-info h3 { margin: 0 0 10px 0; color: var(--primary); font-size: 1.8rem; }
.riaya-author-info p { margin: 0; color: #64748B; font-size: 1.1rem; line-height: 1.8; }

/* Related Posts */
.related-posts-section { margin-top: 80px; padding-top: 50px; border-top: 1px solid #E2E8F0; }
.related-posts-section h3 { font-size: 2rem; color: var(--primary); margin-bottom: 40px; text-align: center; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.related-card {
    background: #FFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.related-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.related-card img { width: 100%; height: 200px; object-fit: cover; }
.related-card-content { padding: 25px; }
.related-card h4 { margin: 0 0 15px 0; font-size: 1.3rem; }
.related-card h4 a { color: var(--primary); }
.related-card h4 a:hover { color: var(--accent); }

/* --- Premium Footer --- */
.premium-footer {
    background-color: var(--primary);
    color: #FFF;
    padding: 60px 0 20px;
    margin-top: -10px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
.footer-brand .footer-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}
.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a4a7b; /* Solid color for perfect contrast ratio */
    border-radius: 50%;
    color: #FFF;
    font-size: 1.1rem;
    transition: 0.3s;
    text-decoration: none;
}
.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}
.footer-widgets {
    display: contents; /* Makes children participate in .footer-top grid directly */
}
.footer-widget-title {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}
.footer-widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 5px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 15px;
}
.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.footer-widget ul li a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}
.footer-bottom-links a:hover {
    color: var(--accent);
}
@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}


/* --- Simple Static Footer Columns --- */
.widget-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
}

/* --- Dynamic Category Colors --- */
a[rel="category tag"], .post-categories a, .cat-links a {
    color: var(--category-color, var(--accent)) !important;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

/* Breadcrumbs Safety */
.riaya-breadcrumbs {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}
a[rel="category tag"]:hover, .post-categories a:hover, .cat-links a:hover {
    filter: brightness(1.2);
}


/* --- Advanced Sidebar Beautification (Glassmorphism & 3D) --- */
#secondary .widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

#secondary .widget::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.6s;
    z-index: 1;
}

#secondary .widget:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

#secondary .widget:hover::before {
    left: 150%;
}

#secondary .widget-title {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-weight: 800;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

#secondary .widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

#secondary .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

#secondary .widget ul li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    transition: 0.3s;
}

#secondary .widget ul li:last-child {
    border-bottom: none;
}

#secondary .widget ul li a {
    color: #475569;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

#secondary .widget ul li a::before {
    content: "\2022";
    color: var(--accent);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: 5px;
    transition: 0.3s;
}

#secondary .widget ul li:hover {
    padding-right: 10px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
}

#secondary .widget ul li a:hover {
    color: var(--primary);
    font-weight: 600;
}

#secondary .widget ul li a:hover::before {
    transform: scale(1.5);
}

/* ==========================================================================
   القوائم المنسدلة للكمبيوتر (Desktop Sub-menus)
   ========================================================================== */
.main-navigation ul li {
    position: relative;
}
.main-navigation ul ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px); /* Reduced gap to fix hover dropout */
    transition: all 0.3s ease;
    z-index: 99;
    flex-direction: column !important;
    display: flex !important;
}
.main-navigation ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation ul ul.sub-menu li {
    width: 100%;
    margin: 0 !important;
}
.main-navigation ul ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary);
    font-size: 0.95rem;
    transition: 0.3s;
}
.main-navigation ul ul.sub-menu li a:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--accent);
    padding-right: 25px;
}

/* ==========================================================================
   الاستجابة للشاشات (Responsive Design - Mobile & Tablets)
   ========================================================================== */

/* أجهزة التابلت (Tablets) و الهواتف */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .hero-content h2, .hero-h2 {
        font-size: 3rem !important;
    }
    
    .header-inner {
        flex-wrap: wrap;
        position: relative;
    }
    .glass-menu {
        padding: 10px 0;
        height: auto;
    }
    .site-branding {
        margin-bottom: 0;
    }
    .site-title {
        font-size: 1.6rem !important;
    }
    .site-title span {
        font-size: 1.6rem !important;
    }
    .menu-toggle {
        display: block !important;
        margin-right: auto;
    }
    .main-navigation {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0 0 15px 15px;
        padding: 20px 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        margin-top: 10px;
        z-index: 9999;
    }
    .main-navigation.toggled {
        display: flex !important;
    }
    .main-navigation ul {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .main-navigation ul li {
        width: 100%;
        margin: 5px 0 !important;
        position: relative;
    }
    
    /* إصلاح لون الخط في القائمة المنسدلة للجوال (حتى لا يصبح أبيض على أبيض) */
    .glass-menu.scrolled .main-navigation a {
        color: var(--primary) !important;
    }
    /* القوائم الفرعية في الموبايل */
    .main-navigation ul ul.sub-menu {
        display: flex !important;
        position: static !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.03) !important;
        padding: 10px 20px 10px 0 !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    .main-navigation ul ul.sub-menu li a {
        font-size: 0.95rem !important;
        color: #475569 !important;
    }

    /* ترتيب الشريط الجانبي في الموبايل */
    .content-sidebar-wrap {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    /* توسيط المقالات في الموبايل وضبط المسافات */
    .service-card {
        padding: 30px 20px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    .entry-content, .entry-content p, .entry-content h1, .entry-content h2, .entry-content h3 {
        text-align: center !important;
    }
    .entry-content * {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
    
    /* تأكيد أن الشريط الجانبي والمقال يأخذان العرض بالكامل */
    .content-sidebar-wrap > article, .content-sidebar-wrap > main, #secondary {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .hero-content h1, .hero-content h2, .hero-h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
        padding: 0 15px;
    }
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-col {
        margin: 0;
    }
    .widget-area {
        padding: 20px;
    }
    /* تحسين عرض المقالات على الموبايل */
    .post-card {
        flex-direction: column;
        height: auto;
    }
    .post-thumbnail {
        width: 100%;
        height: 250px;
    }
    .post-info {
        width: 100%;
    }
}

/* الهواتف الصغيرة جداً (Small Mobile) */
@media (max-width: 480px) {
    .hero-content h2, .hero-h2 {
        font-size: 2rem !important;
    }
    .btn-premium {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
