/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0a6e3a;
    --primary-dark: #064d28;
    --primary-light: #0d8a49;
    --primary-gradient: linear-gradient(135deg, #0a6e3a 0%, #0d8a49 50%, #10a85a 100%);
    --secondary: #1a1a2e;
    --secondary-light: #2d2d44;
    --accent: #f4a623;
    --accent-light: #ffd166;
    --gold: #d4a843;
    --gold-light: #e8c872;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-light: #7a7a8a;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f9fb;
    --bg-dark: #0f1923;
    --bg-darker: #0a1018;
    --border: #e2e5ea;
    --border-light: #f0f1f3;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --font-secondary: 'Tajawal', 'Cairo', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Force images inside ARTICLE CONTENT ONLY to respect screen width */
.article-content img,
.article-content img[width],
.article-content img[style*="width"],
.entry-content img,
.entry-content img[width],
.entry-content img[style*="width"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

.article-content figure,
.article-content .wp-block-image,
.article-content .wp-caption,
.entry-content figure,
.entry-content .wp-block-image {
    max-width: 100% !important;
    overflow: hidden;
}

.article-content iframe,
.article-content video,
.article-content embed,
.article-content object,
.entry-content iframe {
    max-width: 100% !important;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ===== HEADER - DARK PROFESSIONAL ===== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: #111827 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    background: #0d1117 !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

/* Logo + Name */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img {
    height: 48px;
    width: 48px;
    border-radius: 10px;
    object-fit: contain;
    transition: var(--transition);
}

/* Force WordPress custom logo to proper size */
.custom-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-wrap a {
    display: flex;
}

.custom-logo-wrap img,
.custom-logo-link img,
.custom-logo {
    height: 48px !important;
    width: 48px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    max-width: 48px !important;
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.site-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.site-tagline {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

/* Dropdown */
.nav-list > li > .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: #1f2937;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    padding: 8px;
    z-index: 100;
}

.nav-list > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sub-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #10b981;
    padding-right: 22px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.search-toggle:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* CTA Button - icon only */
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #10b981;
    color: #fff;
    font-size: 15px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-cta:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hide mobile-only elements on desktop */
.mobile-menu-header,
.mobile-menu-cta,
.menu-overlay {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    transform: translateY(-30px);
    transition: var(--transition);
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-overlay form {
    position: relative;
}

.search-overlay input[type="search"] {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 20px;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
    outline: none;
    direction: rtl;
}

.search-overlay button[type="submit"] {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
}

.search-overlay .search-close {
    position: absolute;
    top: -60px;
    left: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-overlay .search-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== HERO SECTION - HOMEPAGE ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2027 0%, #0a6e3a 50%, #064d28 100%);
    overflow: hidden;
    margin-top: 72px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23p)'/%3E%3C/svg%3E");
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,48C1248,53,1344,75,1392,85.3L1440,96L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: 2;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: white;
}

.hero-shape:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 10%;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 30%;
    right: -60px;
    animation: floatShape 18s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title span {
    color: var(--accent-light);
    position: relative;
}

.hero-description {
    font-size: 18px;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 540px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 16px;
    font-weight: 800;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 6px 25px rgba(244, 166, 35, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(244, 166, 35, 0.45);
    background: var(--accent-light);
    color: var(--secondary);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-light);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 6px;
    font-weight: 500;
}

/* Hero image side */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-card:nth-child(2) {
    bottom: 30px;
    right: -30px;
    animation-delay: 1s;
}

.hero-floating-card:nth-child(3) {
    top: 30px;
    left: -30px;
    animation-delay: 2s;
}

.hero-floating-card .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(10, 110, 58, 0.1);
    color: var(--primary);
    font-size: 20px;
}

.hero-floating-card .card-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hero-floating-card .card-info p {
    font-size: 12px;
    color: var(--text-light);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO - ARTICLE/SINGLE PAGE ===== */
.hero-article {
    position: relative;
    padding: 60px 0 40px;
    margin-top: 72px;
    background: linear-gradient(135deg, #f0f7f3 0%, #e8f5ec 50%, #f8f9fb 100%);
    overflow: hidden;
}

.hero-article::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,32L80,37.3C160,43,320,53,480,53.3C640,53,800,43,960,37.3C1120,32,1280,32,1360,32L1440,32L1440,60L1360,60C1280,60,1120,60,960,60C800,60,640,60,480,60C320,60,160,60,80,60L0,60Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-article-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
}

.hero-article-text h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 16px;
}

.hero-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.hero-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-article-meta i {
    color: var(--primary);
}

.hero-article-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

.hero-article-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-article-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 0;
    margin-bottom: 10px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    opacity: 0.5;
}

.breadcrumbs-list li a {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumbs-list li a:hover {
    text-decoration: underline;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
    margin: 16px auto 0;
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 110, 58, 0.08);
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SERVICES GRID ===== */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
}

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

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

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.service-card-body {
    padding: 24px;
}

.service-card-body h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card-body h3 a:hover {
    color: var(--primary);
}

.service-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.service-card-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ===== TABLE OF CONTENTS ===== */
.toc-container {
    background: linear-gradient(135deg, #f0f7f3 0%, #e8f5ec 100%);
    border: 1px solid rgba(10, 110, 58, 0.12);
    border-radius: var(--radius-lg);
    margin: 30px 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.toc-header:hover {
    background: rgba(10, 110, 58, 0.04);
}

.toc-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.toc-title i {
    font-size: 16px;
    color: var(--primary);
}

.toc-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toc-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Default: collapsed */
.toc-body {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.35s ease;
}

/* Expanded state */
.toc-body.expanded {
    max-height: 800px;
    padding: 0 24px 20px;
    opacity: 1;
    overflow-y: auto;
}

.toc-list {
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 4px;
}

.toc-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.toc-list li a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--bg-white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.toc-list li a:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border-right-color: var(--primary);
    padding-right: 20px;
}

.toc-list li a:hover::before {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.toc-list li.toc-sub-item a {
    padding-right: 40px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 0;
    overflow: hidden; /* prevent images from exceeding container */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 40px 0 16px;
    padding-right: 20px;
    border-right: 4px solid var(--primary);
}

.article-content h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 17px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-right: 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.article-content ol {
    list-style: arabic-indic;
}

.article-content img {
    max-width: 500px;
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin: 24px auto;
    box-shadow: var(--shadow-sm);
    display: block;
    background: #f8f9fb;
}

/* Force override inline width/height on old article images */
.article-content img[width],
.article-content img[style*="width"],
.article-content img[style*="height"],
.entry-content img[width],
.entry-content img[style*="width"] {
    max-width: 500px !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    background: #f8f9fb !important;
}

.article-content figure,
.article-content .wp-block-image {
    max-width: 100%;
    overflow: hidden;
    margin: 24px 0;
}

.article-content iframe,
.article-content video,
.article-content embed {
    max-width: 100%;
}

.article-content table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.article-content a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(10, 110, 58, 0.2);
}

.article-content a:hover {
    border-bottom-color: var(--primary);
}

.article-content blockquote {
    margin: 24px 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #f0f7f3 0%, #e8f5ec 100%);
    border-right: 5px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--primary-dark);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #0a6e3a 0%, #064d28 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    transition: var(--transition);
}

.btn-cta-primary {
    background: var(--accent);
    color: var(--secondary);
    box-shadow: 0 6px 25px rgba(244, 166, 35, 0.35);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(244, 166, 35, 0.5);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.8;
    margin: 16px 0 24px;
    max-width: 320px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 17px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 6px;
}

.footer-links a:hover::before {
    opacity: 1;
    color: var(--primary-light);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 110, 58, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-size: 16px;
    flex-shrink: 0;
}

.footer-contact-item .info h5 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.footer-contact-item .info p,
.footer-contact-item .info a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    direction: ltr;
    text-align: right;
}

.footer-contact-item .info a:hover {
    color: var(--primary-light);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.6;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.phone-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(10, 110, 58, 0.3);
    transition: var(--transition);
}

.phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(10, 110, 58, 0.4);
    color: white;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-article-inner {
        grid-template-columns: 1fr;
    }
    
    .hero-article-image {
        max-width: 500px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }
    
    .site-name {
        font-size: 15px;
    }
    
    .site-tagline {
        font-size: 10px;
    }
    
    .site-logo img {
        height: 42px;
        width: 42px;
    }
    
    .custom-logo-wrap img,
    .custom-logo-link img,
    .custom-logo {
        height: 42px !important;
        width: 42px !important;
        max-width: 42px !important;
    }
    
    .mobile-toggle {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: #111827;
        z-index: 9999;
        padding: 0;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
        display: block !important;
        flex-direction: column;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        backdrop-filter: blur(4px);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.03);
    }
    
    .mobile-menu-header .menu-title {
        font-size: 18px;
        font-weight: 800;
        color: #ffffff;
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.06);
        border-radius: 50%;
        font-size: 16px;
        color: rgba(255,255,255,0.7);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .mobile-menu-close:hover {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
    }
    
    .nav-list > li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .main-nav.active .nav-list > li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .main-nav.active .nav-list > li:nth-child(1) { transition-delay: 0.08s; }
    .main-nav.active .nav-list > li:nth-child(2) { transition-delay: 0.12s; }
    .main-nav.active .nav-list > li:nth-child(3) { transition-delay: 0.16s; }
    .main-nav.active .nav-list > li:nth-child(4) { transition-delay: 0.20s; }
    .main-nav.active .nav-list > li:nth-child(5) { transition-delay: 0.24s; }
    .main-nav.active .nav-list > li:nth-child(6) { transition-delay: 0.28s; }
    .main-nav.active .nav-list > li:nth-child(7) { transition-delay: 0.32s; }
    .main-nav.active .nav-list > li:nth-child(8) { transition-delay: 0.36s; }
    
    .nav-list > li > a {
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
        width: 100%;
        color: rgba(255,255,255,0.8);
    }
    
    .nav-list > li > a:hover,
    .nav-list > li.current-menu-item > a {
        background: rgba(255,255,255,0.05);
        color: #10b981;
    }
    
    .nav-list > li > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 4px 16px 8px;
        background: rgba(255,255,255,0.03);
        border-radius: 0;
        margin: 0;
        min-width: auto;
    }
    
    .sub-menu li a {
        color: rgba(255,255,255,0.55);
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .sub-menu li a:hover {
        color: #10b981;
        background: rgba(255,255,255,0.05);
    }
    
    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 24px;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 12px;
    }
    
    .mobile-menu-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px;
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 700;
    }
    
    .mobile-cta-phone {
        background: #10b981;
        color: white !important;
    }
    
    .mobile-cta-whatsapp {
        background: #25d366;
        color: white !important;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--bg-white);
        z-index: 9999;
        padding: 0;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        display: block !important;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Dark overlay behind menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Menu header inside nav */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-light);
        background: linear-gradient(135deg, #f0f7f3 0%, #e8f5ec 100%);
    }
    
    .mobile-menu-header .menu-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--primary-dark);
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: rgba(10, 110, 58, 0.1);
        border-radius: 50%;
        font-size: 16px;
        color: var(--primary);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .mobile-menu-close:hover {
        background: var(--primary);
        color: white;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
    }
    
    .nav-list > li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .main-nav.active .nav-list > li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for each menu item */
    .main-nav.active .nav-list > li:nth-child(1) { transition-delay: 0.08s; }
    .main-nav.active .nav-list > li:nth-child(2) { transition-delay: 0.12s; }
    .main-nav.active .nav-list > li:nth-child(3) { transition-delay: 0.16s; }
    .main-nav.active .nav-list > li:nth-child(4) { transition-delay: 0.20s; }
    .main-nav.active .nav-list > li:nth-child(5) { transition-delay: 0.24s; }
    .main-nav.active .nav-list > li:nth-child(6) { transition-delay: 0.28s; }
    .main-nav.active .nav-list > li:nth-child(7) { transition-delay: 0.32s; }
    .main-nav.active .nav-list > li:nth-child(8) { transition-delay: 0.36s; }
    
    .nav-list > li > a {
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 700;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
        width: 100%;
        color: var(--text-primary);
    }
    
    .nav-list > li > a i {
        color: var(--primary);
    }
    
    .nav-list > li > a:hover,
    .nav-list > li.current-menu-item > a {
        background: rgba(10, 110, 58, 0.05);
        color: var(--primary);
        padding-right: 30px;
    }
    
    .nav-list > li > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 4px 16px 8px;
        background: var(--bg-light);
        border-radius: 0;
        margin: 0;
    }
    
    .sub-menu li a {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: var(--radius-sm);
    }
    
    /* Mobile menu CTA at bottom */
    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 24px;
        border-top: 1px solid var(--border-light);
        margin-top: 12px;
    }
    
    .mobile-menu-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px;
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 700;
    }
    
    .mobile-cta-phone {
        background: var(--primary-gradient);
        color: white !important;
    }
    
    .mobile-cta-whatsapp {
        background: #25d366;
        color: white !important;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0 80px;
        margin-top: 64px;
    }
    
    .hero-article {
        margin-top: 64px;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-btn {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    
    .phone-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content p {
        font-size: 16px;
    }
    
    /* === FIX: صور المقالات 500x200 === */
    .article-content img,
    .article-content .wp-block-image img,
    .article-content figure img,
    .entry-content img,
    .post-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: 200px !important;
        object-fit: contain !important;
        display: block;
        margin: 16px auto;
        border-radius: 12px;
        background: #f8f9fb !important;
    }
    
    .article-content iframe,
    .article-content video,
    .article-content embed,
    .article-content object {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .article-content figure,
    .article-content .wp-block-image {
        max-width: 100% !important;
        overflow: hidden;
    }
    
    /* Fix WordPress inline width/height on images */
    .article-content img[style],
    .entry-content img[style] {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .hero-article-image img {
        height: 200px;
    }
    
    .service-card-image {
        height: 180px;
    }
    
    .service-card-image img {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat-number {
        font-size: 28px;
    }
    
    .btn-hero-primary, .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.trust-item i {
    color: var(--primary);
    font-size: 16px;
}

/* ===== MAIN SERVICES GRID ===== */
.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.main-service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.main-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: height 0.4s ease;
    border-radius: 0 0 4px 0;
}

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

.main-service-card:hover::before {
    height: 100%;
}

.main-service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10,110,58,0.08) 0%, rgba(10,110,58,0.15) 100%);
    border-radius: var(--radius-md);
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.main-service-card:hover .main-service-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.08) rotate(-3deg);
}

.main-service-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.main-service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

.main-service-cities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-service-cities a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: rgba(10, 110, 58, 0.06);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(10, 110, 58, 0.12);
    transition: var(--transition);
}

.main-service-cities a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 60px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 15px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
}

.testimonial-author h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== PAGINATION ===== */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== WORDPRESS CORE STYLES ===== */
.wp-block-image {
    margin: 24px 0;
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: right;
    margin: 0 0 20px 20px;
}

.alignright {
    float: left;
    margin: 0 20px 20px 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 1024px) {
    .main-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trust-bar-inner {
        gap: 16px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .trust-bar-inner::-webkit-scrollbar {
        display: none;
    }
    
    .main-services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .services-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header, .site-footer, .whatsapp-float, .toc-container {
        display: none !important;
    }
    
    .article-content {
        max-width: 100%;
    }
}
