:root {
    --primary: #1B5E20;      /* Deep Forest Green */
    --primary-light: #2E7D32;
    --accent: #FFC107;       /* Gold */
    --accent-hover: #FFB300;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--primary); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius); font-weight: 700;
    cursor: pointer; transition: var(--transition); border: none; font-size: 1rem;
}
.btn-lg { padding: 16px 32px; font-size: 1.125rem; }
.btn-primary { background-color: var(--accent); color: #000 !important; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background-color: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background-color: var(--accent); color: #fff !important; }
.btn-glass { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff !important; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn-call { background-color: var(--primary); color: #fff !important; border-radius: 30px; padding: 10px 20px; font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3); direction: ltr; }
.btn-call i { margin-right: 8px; color: var(--accent); font-size: 1.1rem; transform: scaleX(-1); display: inline-block; }
.btn-call:hover { background-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4); }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border); z-index: 1000; transition: var(--transition); padding: 15px 0;
}
.site-header.scrolled { padding: 10px 0; box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.95); }
.site-header .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: nowrap; }
.logo a { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; white-space: nowrap; }
.logo img { max-width: 160px; max-height: none; object-fit: contain; width: auto; height: auto; transition: var(--transition); }
.primary-nav { flex-grow: 1; display: flex; justify-content: center; }
.primary-nav ul { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; align-items: center; justify-content: center; flex-wrap: nowrap; }
.primary-nav li { position: relative; }
.primary-nav a { font-weight: 700; color: var(--primary); position: relative; display: block; font-size: 0.85rem; white-space: nowrap; padding: 4px 6px; }
.primary-nav > ul > li > a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background-color: var(--accent); transition: var(--transition); }
.primary-nav > ul > li > a:hover::after { width: 100%; }
.primary-nav .sub-menu { position: absolute; top: 100%; right: 0; min-width: 240px; background: var(--bg-main); box-shadow: var(--shadow-md); border-radius: 8px; padding: 10px 0; opacity: 0; visibility: hidden; transition: var(--transition); transform: translateY(15px); z-index: 100; flex-direction: column; gap: 0; }
.primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { padding: 12px 20px; color: var(--text-main); border-bottom: 1px solid rgba(0,0,0,0.05); transition: var(--transition); }
.primary-nav .sub-menu a:hover { background: rgba(245, 158, 11, 0.05); color: var(--accent); padding-right: 25px; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu .sub-menu { top: 0; right: 100%; }
.header-actions { display: flex; gap: 15px; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--primary); transition: var(--transition); }

/* Hero */
.hero-section {
    position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    padding-top: 120px; /* Offset for fixed header */
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-text { max-width: 800px; color: #fff; }
.hero-text .badge { display: inline-block; padding: 6px 12px; background: rgba(245, 158, 11, 0.2); border: 1px solid var(--accent); color: var(--accent); border-radius: 30px; font-size: 0.875rem; font-weight: 700; margin-bottom: 20px; }
.hero-text h1 { color: #fff; font-size: 3.5rem; margin-bottom: 20px; }
.hero-text p { font-size: 1.25rem; margin-bottom: 40px; color: rgba(255, 255, 255, 0.9); }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 50px; }
/* Testimonial Section */
.testimonial-card { padding: 30px; }
.testimonial-card i.fa-quote-right { color: var(--accent); font-size: 2rem; margin-bottom: 20px; opacity: 0.5; }
.testimonial-card p { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; color: var(--text-main); }
.testimonial-author { font-weight: 700; color: var(--primary); }
.testimonial-rating { color: var(--accent); margin-bottom: 15px; }

/* Readability Optimized Content */
.readability-optimized {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}
.readability-optimized p {
    margin-bottom: 25px;
}
.readability-optimized h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 40px 0 20px;
    padding-right: 15px;
    border-right: 4px solid var(--accent);
    line-height: 1.4;
}
.readability-optimized h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 35px 0 15px;
    line-height: 1.4;
    font-weight: 700;
}
.readability-optimized h4 {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin: 25px 0 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.readability-optimized h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}
.readability-optimized ul, .readability-optimized ol {
    margin-bottom: 25px;
    padding-right: 25px;
    background: #fdfdfd;
    padding: 20px 40px 20px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.03);
}
.readability-optimized li {
    margin-bottom: 12px;
    position: relative;
    line-height: 1.8;
}
.readability-optimized ul li::marker {
    color: var(--accent);
    font-size: 1.2em;
}
.readability-optimized img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 30px auto;
    height: auto;
    max-width: 100%;
    display: block;
}
.readability-optimized p:has(> a:only-child),
.readability-optimized p:has(> strong > a:only-child) {
    margin: 10px 0;
}
.readability-optimized p > a:only-child {
    display: inline-block;
    background: #f4f9f5;
    border: 1px solid #e0efe4;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}
.readability-optimized p > a:only-child:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.readability-optimized blockquote {
    background: #f9fdfa;
    border-right: 5px solid var(--primary);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.readability-optimized a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: var(--transition);
}
.readability-optimized a:hover {
    color: var(--accent);
}

.trust-bar { display: flex; gap: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 500; }
.trust-item i { color: var(--accent); font-size: 1.5rem; }

/* Panels & Cards */
.glass-panel {
    background: var(--bg-main); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0, 0, 0, 0.05); transition: var(--transition);
}
.glass-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Services */
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { text-align: center; }
.service-card .icon-box {
    width: 80px; height: 80px; margin: 0 auto 20px; background: rgba(245, 158, 11, 0.1);
    color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; transition: var(--transition);
}
.service-card:hover .icon-box { background: var(--accent); color: #fff; transform: scale(1.1); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; position: relative; }
.timeline-item { text-align: center; position: relative; }
.timeline-item::after { content: ''; position: absolute; top: 30px; left: -50%; width: 100%; height: 2px; background: var(--accent); opacity: 0.3; z-index: 0; }
.timeline-item:first-child::after { display: none; }
.step-number {
    width: 60px; height: 60px; margin: 0 auto 20px; background: var(--primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800;
    position: relative; z-index: 1; border: 4px solid var(--bg-light);
}

/* Locations */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.region-card { text-align: right; }
.region-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.region-header i { font-size: 2rem; color: var(--accent); }
.region-header h3 { margin: 0; font-size: 1.4rem; color: var(--primary); }
.city-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.city-links li a { display: block; padding: 8px 15px; border-radius: 8px; background: rgba(0,0,0,0.02); color: var(--text-main); font-weight: 500; transition: var(--transition); border: 1px solid transparent; }
.city-links li a:hover { background: var(--bg-main); border-color: var(--accent); color: var(--accent); transform: translateX(-5px); }
.city-links li a.main-city { background: rgba(245, 158, 11, 0.1); color: var(--primary); font-weight: 700; border-color: rgba(245, 158, 11, 0.3); }
.city-links li a.main-city:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.city-links .tag { font-size: 0.75rem; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 20px; float: left; margin-top: 2px; }

/* CTA */
.cta-section { position: relative; background-size: cover; background-position: center; background-attachment: fixed; } /* Background image is set via inline style in wp_head */
.cta-section::before { content: ''; position: absolute; inset: 0; background: rgba(10, 25, 47, 0.85); }
.cta-card { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.cta-card h2 { color: #fff; margin-bottom: 10px; }

/* Footer */
.site-footer { background-color: var(--primary); color: rgba(255, 255, 255, 0.7); padding: 80px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-widget h3 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.social-links a:hover { background: var(--accent); }
.links-widget ul, .contact-widget ul { list-style: none; }
.links-widget ul li { margin-bottom: 10px; }
.links-widget a { color: rgba(255, 255, 255, 0.7); }
.links-widget a:hover { color: var(--accent); padding-right: 5px; }
.contact-widget ul li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
.contact-widget i { color: var(--accent); margin-top: 5px; }
.contact-widget a { color: rgba(255, 255, 255, 0.7); }
.contact-widget a:hover { color: #fff; }
.footer-bottom { background: var(--primary-light); padding: 20px 0; text-align: center; }
.footer-bottom p { margin: 0; }

/* Floating WA */
.floating-whatsapp {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem;
    box-shadow: var(--shadow-lg); z-index: 1000; transition: var(--transition); animation: pulse 2s infinite;
}
.floating-whatsapp:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
}

/* Pagination Styles */
.pagination { margin-top: 60px; margin-bottom: 40px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex; justify-content: center; align-items: center;
    min-width: 45px; height: 45px; padding: 0 15px;
    background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 8px;
    color: var(--primary); font-weight: 700; font-size: 1.1rem;
    text-decoration: none; transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.pagination .page-numbers:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); pointer-events: none; }
.pagination .page-numbers.dots { background: transparent; border: none; box-shadow: none; color: #999; min-width: auto; padding: 0 5px; }
.pagination .screen-reader-text { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .trust-bar { flex-direction: column; gap: 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cta-card { flex-direction: column; text-align: center; gap: 30px; }
    .timeline-item::after { display: none; }
}
@media (max-width: 768px) {
    .primary-nav, .header-actions { display: none; }
    .mobile-menu-toggle { display: flex; }
    .footer-inner { grid-template-columns: 1fr; }
    .primary-nav.active { display: flex; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-main); flex-direction: column; padding: 20px; box-shadow: var(--shadow-md); max-height: 80vh; overflow-y: auto; }
    .primary-nav.active ul { flex-direction: column; gap: 15px; }
    .primary-nav .sub-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-right: 15px; margin-top: 10px; }
    .primary-nav li:hover > .sub-menu { display: flex; }
}

/* =========================================
   POST CONTENT IMAGES (RESPONSIVENESS)
   ========================================= */
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption {
    text-align: center;
    margin: 30px auto !important;
    width: 100% !important; /* OVERRIDE INLINE WP-CAPTION WIDTH */
    max-width: 100% !important;
}
.entry-content img,
.page-content img,
.post-content img,
.single-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 450px !important; /* Prevents giant vertical images */
    object-fit: contain;
    display: block !important;
    margin: 0 auto !important; /* Center the image */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.aligncenter {
    display: block;
    margin: 0 auto;
    text-align: center;
}
.alignnone,
.alignleft,
.alignright {
    /* Forcing all classic editor images to center */
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
}

/* =========================================
   AUTOMATIC TABLE OF CONTENTS (TOC)
   ========================================= */
.alsokour-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.alsokour-toc .toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    transition: var(--transition);
}
.alsokour-toc .toc-header:hover {
    opacity: 0.8;
}
.alsokour-toc .toc-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alsokour-toc .toc-list.active + .toc-header .toc-toggle,
.alsokour-toc .toc-header:has(+ .toc-list.active) .toc-toggle {
    transform: rotate(180deg);
}
.alsokour-toc .toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.alsokour-toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Responsive TOC: Hide by default on mobile */
@media (max-width: 768px) {
    .alsokour-toc .toc-list {
        max-height: 0;
        opacity: 0;
        margin-bottom: 0;
    }
    .alsokour-toc .toc-header {
        margin-bottom: 0;
        border-bottom: none;
    }
    .alsokour-toc .toc-list.active {
        max-height: 2000px; /* arbitrary large value for transition */
        opacity: 1;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
}
@media (min-width: 769px) {
    /* Show by default on Desktop */
    .alsokour-toc .toc-list {
        max-height: 2000px;
        opacity: 1;
    }
    /* If user clicks hide on desktop, it will hide */
    .alsokour-toc .toc-list.active {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}
.alsokour-toc .toc-list li {
    margin-bottom: 10px;
    position: relative;
}
.alsokour-toc .toc-list li a {
    color: #475569;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}
.alsokour-toc .toc-list li a:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}
.alsokour-toc .toc-list .toc-h2 {
    font-weight: 600;
    padding-right: 15px;
}
.alsokour-toc .toc-list .toc-h2::before {
    content: "\f104"; /* FontAwesome Angle Left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 3px;
    color: var(--secondary);
    font-size: 0.8rem;
}
.alsokour-toc .toc-list .toc-h3 {
    padding-right: 30px;
    font-size: 0.95rem;
}
.alsokour-toc .toc-list .toc-h3::before {
    content: "\f111"; /* Circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 7px;
    color: #94a3b8;
    font-size: 0.4rem;
}

/* SMOOTH SCROLL FOR TOC */
html {
    scroll-behavior: smooth;
}

/* =========================================
   CONTENT HTML TABLES (RESPONSIVE & STYLED)
   ========================================= */
.entry-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #cbd5e1; /* Clear outer border */
}

/* Header Styling (Works for <th> and first <tr> fallback) */
.entry-content table thead tr,
.page-content table thead tr,
.entry-content table tr:first-child,
.page-content table tr:first-child {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.entry-content table tr:first-child td,
.page-content table tr:first-child td,
.entry-content table th,
.page-content table th {
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
}

/* Cell Borders */
.entry-content table th,
.entry-content table td,
.page-content table th,
.page-content table td {
    padding: 15px 20px;
    border: 1px solid #cbd5e1; /* Clear inner borders (horizontal and vertical) */
    text-align: right;
}

.entry-content table tbody tr:nth-of-type(even),
.page-content table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}
.entry-content table tbody tr:hover,
.page-content table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Responsive Table Scroll for Mobile */
@media (max-width: 768px) {
    .entry-content table,
    .page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #cbd5e1;
    }
}

/* =========================================
   ENTRY CONTENT HEADINGS (H2, H3) - FRAMED UX
   ========================================= */
.entry-content h2,
.page-content h2,
.entry-content h3,
.page-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    background: #f8fafc; /* Light distinct background */
    border: 1px solid #e2e8f0; /* Subtle outer frame */
    border-right: 6px solid var(--accent); /* Strong RTL visual indicator */
    padding: 12px 25px 12px 20px;
    border-radius: 8px;
    margin-top: 45px;
    margin-bottom: 25px;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: block;
    width: fit-content; /* Shrink to fit text */
    max-width: 100%;
    clear: both;
}

/* Make H4 slightly smaller but still distinct if they use it */
.entry-content h4,
.page-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    padding-right: 15px;
    border-right: 4px solid var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* =========================================
   FAQ STATIC STYLING
   ========================================= */
.rank-math-faq-item,
.schema-faq-section,
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    overflow: hidden;
}
.rank-math-faq-item:hover,
.schema-faq-section:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}
.rank-math-question,
.schema-faq-question,
.faq-question {
    padding: 20px 25px;
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--primary) !important;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.rank-math-question::before,
.schema-faq-question::before {
    display: none !important;
}
.rank-math-answer,
.schema-faq-answer,
.faq-answer {
    padding: 20px 25px;
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
    background: #ffffff;
}
