:root {
    --primary-gold: #f1b42f;
    --dark-bg: #2a2a2a;
    --text-gray: #555;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'El Messiri', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* --- HEADER LOGIC --- */
.mobile-only-header { display: flex; }
.desktop-header { display: none; }

header.mobile-only-header {
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mobile specific elements */
.menu-trigger {
    background: var(--primary-gold);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    cursor: pointer; gap: 4px;
}
.menu-trigger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* Navigation Menu Mobile Drawer */
#side-menu {
    position: fixed; top: 0; right: -100%;
    width: 80%; height: 100%;
    background: var(--primary-gold);
    z-index: 2000; transition: 0.3s ease-in-out;
    padding: 20px; display: flex; flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#side-menu.active { right: 0; }
.nav-item { padding: 15px 10px; color: #000; text-decoration: none; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.2); display: block; width: 100%; }
.nav-item-heading {
    margin-top: 8px;
    background: transparent;
    color: #000;
    border-radius: 26px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}
.nav-item-heading:hover,
.nav-item-heading:focus {
    background: #111;
    color: #fff;
}
.nav-subitem {
    padding-right: 22px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    width: 100%;
}
.mobile-menu-group {
    margin-top: 6px;
}
.mobile-menu-group > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.mobile-menu-group > summary::-webkit-details-marker {
    display: none;
}
.mobile-menu-caret {
    font-size: 14px;
    transition: transform 0.2s ease;
}
.mobile-menu-group[open] .mobile-menu-caret {
    transform: rotate(180deg);
}
.mobile-submenu-list {
    margin-top: 4px;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    display: block;
}

/* Hero & Social */
/* --- Hero Container --- */
.hero {
position: relative;
overflow: hidden;
height: 350px; /* Mobile height */
}

@media (min-width: 992px) {
.hero { height: 550px; }
}

/* --- Slider Engine --- */
.hero-slider {
position: absolute;
width: 100%;
height: 100%;
}

.slide {
position: absolute;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
display: flex;
align-items: flex-end; /* Keeps card at the bottom */
opacity: 0;
visibility: hidden;
animation: autoScroll 15s infinite;
}

/* Staggered starts */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

/* --- Keyframes --- */
@keyframes autoScroll {
0% { opacity: 0; visibility: hidden; }
5% { opacity: 1; visibility: visible; }  /* Fade in */
33% { opacity: 1; visibility: visible; } /* Stay visible */
38% { opacity: 0; visibility: hidden; }  /* Fade out */
100% { opacity: 0; visibility: hidden; }
}

/* --- Card Placement --- */
.hero-card {
background: rgba(0,0,0,0.6);
color: #fff;
margin: 0 15px 30px; /* Mobile spacing */
padding: 20px;
border-radius: 12px;
backdrop-filter: blur(4px);
z-index: 10;
}

@media (min-width: 992px) {
.hero-card {
margin-right: 8%; /* Align with desktop brand bar */
width: 450px;
padding: 40px;
}
}

.floating-social {
    position: fixed; left: 10px; top: 50%;
    transform: translateY(-50%); display: flex;
    flex-direction: column; gap: 8px; z-index: 1500;
}
.social-btn { width: 42px; height: 42px; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: #fff; text-decoration: none; }
.phone { background: #4285F4; }
.whatsapp { background: #25D366; }
.tiktok { background: #000; }
.snapchat { background: #FFFC00; color: #000; }

.bottom-actions {
    position: fixed; bottom: 15px; left: 5%;
    width: 90%; height: 55px;
    background: var(--primary-gold); border-radius: 30px;
    display: flex; justify-content: center; align-items: center; z-index: 1100;
}

/* =========================================
   DESKTOP UPDATES (Matches target design)
   ========================================= */
@media (min-width: 992px) {
    .mobile-only-header, .bottom-actions { display: none !important; }
    .desktop-header { display: block; }
    body { padding-bottom: 0; }

    .top-bar {
        background: #2a2a2a; color: #fff;
        padding: 10px 8%; display: flex;
        justify-content: space-between; font-size: 14px;
    }

    .brand-bar {
        display: flex; justify-content: space-between;
        align-items: center; padding: 25px 8%; background: #fff;
    }
    .contact-boxes { display: flex; gap: 40px; }
    .c-box { display: flex; align-items: center; gap: 12px; }
    .c-icon { 
        width: 50px; height: 50px; border-radius: 50%; border: 1px solid #f0f0f0;
        display: flex; justify-content: center; align-items: center; color: var(--primary-gold); font-size: 20px;
    }
    .c-text span { display: block; font-size: 12px; color: #888; text-align: right; }
    .c-text strong { font-size: 16px; color: #333; }
    .main-logo img { height: 100px; }

    .nav-container {
        max-width: 1200px; margin: -25px auto 0;
        position: relative; z-index: 1100; padding: 0 20px;
    }
    .nav-pill {
        background: #2a2a2a; border-radius: 50px;
        display: flex; justify-content: space-between;
        align-items: center; padding: 8px 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    .nav-list { display: flex; list-style: none; gap: 25px; align-items: center; }
    .nav-list a { color: #fff; text-decoration: none; font-weight: bold; font-size: 15px; }
    .nav-list .active-btn { background: var(--primary-gold); color: #000; padding: 10px 25px; border-radius: 30px; }
    .nav-dropdown { position: relative; }
    .nav-submenu {
        list-style: none;
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 280px;
        max-height: 420px;
        overflow-y: auto;
        background: #1f1f1f;
        border-radius: 12px;
        padding: 8px 0;
        margin-top: 8px;
        display: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    .nav-dropdown:hover .nav-submenu { display: block; }
    .nav-submenu li { width: 100%; }
    .nav-submenu a {
        display: block;
        padding: 10px 14px;
        font-size: 14px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-submenu li:last-child a { border-bottom: 0; }
    .nav-submenu-title {
        padding: 8px 14px 6px;
        color: var(--primary-gold);
        font-size: 12px;
        font-weight: 700;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
        margin-top: 4px;
    }
    
    .wa-contact-btn {
        background: var(--primary-gold); color: #000;
        padding: 10px 25px; border-radius: 30px;
        text-decoration: none; font-weight: bold; font-size: 14px;
    }

    .hero { height: 550px; margin-top: -30px; }
    .hero-card { margin-right: 8%; width: 400px; padding: 40px; }
    .hero-card h1 { font-size: 32px; }
}



.services-header {
text-align: center;
padding: 40px 20px;
background-color: #fff;
font-family: 'Arial', sans-serif; /* Use your project's Arabic font */
}

/* Layered "Services" Text Effect */
.header-title-container {
position: relative;
margin-bottom: 30px;
}

.bg-text {
font-size: 60px;
color: #fdf5e6; /* Very light gold/cream */
font-weight: bold;
opacity: 0.5;
}

.main-title {
font-size: 36px;
color: #000;
font-weight: bold;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -20%);
width: 100%;
}

.main-title::after {
content: "";
display: block;
width: 40px;
height: 3px;
background-color: #f1b427;
margin: 5px auto;
}

/* Text Paragraph */
.description {
color: #666;
line-height: 1.8;
max-width: 600px;
margin: 0 auto 20px;
font-size: 16px;
}

.sub-info h2 {
font-size: 22px;
color: #000;
margin: 5px 0;
font-weight: bold;
}

/* The Exact Button Style */
.btn-best-service {
display: inline-flex;
align-items: center;
background-color: #f1b427;
color: #000;
padding: 12px 35px;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
margin-top: 20px;
box-shadow: 0 4px 15px rgba(241, 180, 39, 0.3);
}

.btn-best-service i {
margin-left: 10px; /* Space for the icon */
font-size: 18px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
.bg-text { font-size: 45px; }
.main-title { font-size: 28px; }
.description { font-size: 14px; }
}



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

/* Apply to all cards */
.service-card {
animation: fadeInUp 0.8s ease-out forwards;
opacity: 0; /* Starts hidden until animation triggers */
}

/* Add a slight delay for each card to create a "wave" effect */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* General Setup */
.services-container {
font-family: 'Arial', sans-serif;
direction: rtl;
background-color: #fff;
overflow-x: hidden;
}

/* Header Styles */
.services-header {
text-align: center;
padding: 60px 20px;
}

.header-title-container {
position: relative;
margin-bottom: 40px;
}

.bg-text {
font-size: 70px;
color: #fdf5e6;
font-weight: bold;
opacity: 0.6;
}

.main-title {
font-size: 38px;
color: #000;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -10%);
width: 100%;
}

.main-title::after {
content: "";
display: block;
width: 50px;
height: 3px;
background-color: #f1b427;
margin: 8px auto;
}

.description {
color: #777;
max-width: 700px;
margin: 0 auto 30px;
line-height: 1.8;
}

.btn-best-service {
display: inline-flex;
align-items: center;
background-color: #f1b427;
color: #000;
padding: 14px 40px;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
box-shadow: 0 4px 15px rgba(241, 180, 39, 0.3);
}

/* Grid & Cards */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 60px 30px;
padding: 20px;
max-width: 1200px;
margin: 0 auto 100px;
}

.service-card {
position: relative;
animation: fadeInUp 0.8s ease-out forwards;
opacity: 0;
}

.card-image {
overflow: hidden;
border-radius: 20px;
}

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

.card-content {
background: #fff;
width: 85%;
margin: -70px auto 0;
padding: 25px;
border-radius: 15px;
text-align: center;
position: relative;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
z-index: 2;
transition: all 0.4s ease;
}

.btn-more {
display: inline-block;
padding: 10px 35px;
background: linear-gradient(to right, #ffcc33, #f1b427);
color: #000;
text-decoration: none;
border-radius: 25px;
font-weight: bold;
}

/* Animations & Hover */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}

.service-card:hover .card-image img { transform: scale(1.1); }
.service-card:hover .card-content { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

/* Sticky Mobile Bar */
.bottom-actions {
position: fixed;
bottom: 0; left: 0; right: 0;
height: 75px;
background-color: #f1b427;
display: flex;
justify-content: space-around;
align-items: center;
border-radius: 25px 25px 0 0;
z-index: 1000;
}

.action-item {
text-decoration: none; color: #000; font-weight: bold;
display: flex; flex-direction: column; align-items: center;
}

/* Responsive: Hide Bar on Desktop */
@media (min-width: 992px) {
.bottom-actions { display: none !important; }
}
.contracting-container {
padding: 80px 20px;
direction: rtl;
background-color: #fff;
max-width: 1200px;
margin: 0 auto;
font-family: 'Arial', sans-serif;
}

/* Header Styling */
.contracting-header {
text-align: center;
margin-bottom: 60px;
}

.header-bg-wrapper {
position: relative;
margin-bottom: 15px;
}

.ghost-text {
font-size: 80px;
color: #fdf5e6;
font-weight: bold;
opacity: 0.7;
}

.main-title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -10%);
width: 100%;
font-size: 34px;
color: #000;
font-weight: bold;
}

.main-title .highlight {
color: #f1b427;
}

.sub-description {
color: #888;
font-size: 16px;
}

/* Body Content Layout */
.contracting-body {
display: flex;
flex-wrap: wrap;
gap: 50px;
align-items: start;
}

/* Feature Items with Numbers */
.features-grid {
flex: 1.3;
min-width: 380px;
display: grid;
grid-template-columns: repeat(2, minmax(220px, 1fr));
gap: 34px 28px;
align-items: start;
}

.feature-card {
display: flex;
align-items: flex-start;
margin-bottom: 0;
position: relative;
transition: transform 0.3s ease;
min-height: 118px;
}

.feature-card:hover {
transform: translateX(-10px);
}

.large-num {
font-size: 64px;
font-weight: bold;
color: #f1b427;
opacity: 0.15;
line-height: 1;
margin-left: 20px;
min-width: 60px;
}

.feature-text h3 {
font-size: 19px;
color: #000;
margin-bottom: 8px;
font-weight: bold;
}

.feature-text p {
font-size: 14px;
color: #666;
line-height: 1.7;
}

/* Character & List Column */
.specialist-showcase {
flex: 1;
min-width: 360px;
display: flex;
flex-direction: column;
align-items: center;
}

.showcase-content {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 30px;
width: 100%;
max-width: 460px;
aspect-ratio: 512 / 700;
}

.character-img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
display: block;
}

.specialist-ul {
list-style: none;
padding: 0;
margin: 0;
}

.specialist-ul li {
font-size: 18px;
font-weight: bold;
color: #000;
margin-bottom: 6px;
padding-right: 5px;
}

/* Bottom Gold Bar */
.commitment-bar {
margin-top: 40px;
background-color: #f1b427;
padding: 18px 25px;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 15px rgba(241, 180, 39, 0.2);
width: min(100%, 520px);
min-height: 86px;
}

.commitment-bar p {
font-weight: bold;
color: #000;
margin: 0;
font-size: 16px;
line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
.contracting-body {
flex-direction: column;
}
.features-grid {
grid-template-columns: 1fr;
min-width: 100%;
gap: 20px;
}
.showcase-content {
flex-direction: column;
align-items: center;
text-align: center;
}
.ghost-text {
font-size: 60px;
}
.main-title {
font-size: 26px;
}
.character-img {
width: min(100%, 360px);
height: auto;
}
}


 /* Styling matching the provided image */
 .blog-container {
    padding: 60px 20px;
    background-color: #fff;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    overflow: hidden;
}

/* Centered Header with Ghost Text */
.blog-header-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.blog-header-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    margin: 0;
    position: relative;
    z-index: 2;
}

.blog-header-wrapper::before {
    content: "مقالاتنا"; /* Ghost text matching image style */
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.05);
    font-weight: 900;
    z-index: 1;
}

/* Slider Track */
.blog-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    padding: 10px;
}

/* Blog Card Style */
.blog-item {
    min-width: 100%; /* Single card visible at a time as per image dots */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.blog-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark Overlay from Image */
.blog-overlay {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 5%;
    right: 5%;
    background: rgba(45, 34, 27, 0.85); /* Deep brown-tinted dark overlay */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.blog-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.p-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.p-dot.active {
    background: #000;
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .blog-item { min-width: 45%; } /* Show nearly two cards on desktop */
}



:root {
    --brand-gold: #eeb433; /* Exact gold from image_6497a4.jpg */
    --brand-dark: #1a1a1a;
}

.blog-automated {
    background-color: var(--brand-gold);
    padding: 60px 5%;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
}

/* Header Layout from image_6497a4.jpg */
.blog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.blog-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.header-line {
    width: 80px;
    height: 4px;
    background-color: #000;
}

/* Slider Container */
.blog-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none; /* Hide scrollbar */
    scrollbar-width: none;
}

.blog-slider-container::-webkit-scrollbar {
    display: none;
}

/* Blog Card Style from image_b1b8e6.jpg */
.blog-post-card {
    min-width: 350px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 20px;
    text-align: right;
}

.blog-post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
}

/* Mobile Style for image_6494a1.png */
@media (max-width: 768px) {
    .blog-post-card {
        min-width: 85%;
    }
}

.keyword-cloud-container {
    background-color: #2b2b2b; /* Exact dark grey from image */
    padding: 40px 20px;
    border-radius: 10px;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    margin: 20px 20px;
}

.cloud-title {
    color: #eeb433; /* Brand gold */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cloud-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    position: relative;
}

/* Small gold underline effect */
.cloud-divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 40px;
    height: 3px;
    background: #eeb433;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag-link {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #eeb433;
}

/* Featured gold tag matching the image */
.tag-link.featured {
    background-color: #eeb433;
    color: #000;
    font-weight: 700;
    border: none;
}


 /* Main Footer Styling */
 .site-footer {
    background-color: #2b2b2b;
    color: #ffffff;
    padding: 60px 20px 20px;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: right;
}

/* Keep all footer sections in one row on desktop */
@media (min-width: 1200px) {
    .footer-wrapper {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Section Headers */
.footer-title {
    color: #eeb433;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.footer-hr {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: relative;
    border: none;
}

.footer-hr::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: #eeb433;
}

/* Column Content */
.footer-text { font-size: 0.95rem; line-height: 1.8; color: #ccc; }

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 12px; font-size: 0.95rem; }

.contact-link { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.gold-icon { color: #eeb433; width: 20px; text-align: center; }

/* Working Hours Styling */
.hours-highlight { color: #eeb433; font-weight: 700; display: block; margin-top: 5px; }

/* Bottom Bar */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.dev-by a { color: #eeb433; text-decoration: none; font-weight: 600; }

/* Responsiveness */
@media (max-width: 768px) {
    .footer-wrapper { text-align: center; }
    .footer-hr::after { right: 50%; transform: translateX(50%); }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ===== Inner Pages (Services/Blog) ===== */
.inner-page-hero {
    background: linear-gradient(120deg, #2b2b2b 0%, #1f1f1f 100%);
    color: #fff;
    text-align: center;
    padding: 70px 20px 50px;
}

.inner-page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.inner-page-hero p {
    color: #d8d8d8;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

.inner-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.service-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-page-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.service-page-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.service-page-content {
    padding: 18px;
    text-align: right;
}

.service-page-content h3 {
    margin-bottom: 10px;
    color: #111;
}

.service-page-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-details-layout,
.blog-details-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.details-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.details-card img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.details-card h2 {
    margin-bottom: 14px;
    color: #111;
}

.details-card p,
.details-card li {
    color: #555;
    line-height: 1.9;
}

.details-card ul {
    margin: 15px 20px 0 0;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    margin-bottom: 12px;
    color: #111;
}

.sidebar-card a {
    display: block;
    text-decoration: none;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.sidebar-card a:last-child { border-bottom: 0; }

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

.blog-page-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-page-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-page-content {
    padding: 18px;
}

.blog-page-content h3 {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-page-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 14px;
}

.meta-text {
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .service-details-layout,
    .blog-details-layout {
        grid-template-columns: 1fr;
    }
}

.page-tools {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 18px;
    margin-bottom: 22px;
}

.page-tools-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #222;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(241, 180, 39, 0.2);
}

.tools-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.result-count {
    color: #555;
    font-weight: 700;
}

.helper-text {
    color: #888;
    font-size: 0.9rem;
}

.comment-section {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.comment-section h3 {
    margin-bottom: 14px;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.comment-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px 14px;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.comment-head strong {
    color: #222;
}

.comment-head span {
    color: #888;
    font-size: 0.88rem;
}

.comment-item p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form textarea.form-control {
    height: 130px;
    padding: 12px;
    resize: vertical;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 900px) {
    .page-tools-row {
        grid-template-columns: 1fr;
    }

    .comment-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== WYSIHTML5 Frontend Default Styles ===== */
.details-card .article-content {
    color: #444;
    line-height: 1.95;
    font-size: 1rem;
}

.details-card .article-content h1,
.details-card .article-content h2,
.details-card .article-content h3 {
    color: #111;
    line-height: 1.5;
    margin: 14px 0 10px;
}

.details-card .article-content h1 { font-size: 1.9rem; }
.details-card .article-content h2 { font-size: 1.55rem; }
.details-card .article-content h3 { font-size: 1.25rem; }

.details-card .article-content p {
    margin: 0 0 12px;
}

.details-card .article-content ul,
.details-card .article-content ol {
    margin: 0 20px 14px 0;
    padding: 0;
}

.details-card .article-content li {
    margin-bottom: 8px;
}

.details-card .article-content a {
    color: #1f6fb2;
    text-decoration: underline;
}

.details-card .article-content figure.image {
    margin: 18px 0;
    background: #fafafa;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #efefef;
}

.details-card .article-content figure.image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.details-card .article-content figure.image figcaption {
    color: #777;
    font-size: 0.92rem;
    margin-top: 8px;
    text-align: center;
}

.details-card .article-content figure.align-left {
    float: left;
    width: min(46%, 360px);
    margin: 8px 0 12px 14px;
}

.details-card .article-content figure.align-right {
    float: right;
    width: min(46%, 360px);
    margin: 8px 14px 12px 0;
}

.details-card .article-content figure.align-center {
    float: none;
    width: min(100%, 760px);
    margin-inline: auto;
}

.details-card .article-content::after {
    content: "";
    display: block;
    clear: both;
}

/* Mobile bottom call/whatsapp bar (match primary design) */
.bottom-actions {
    position: fixed;
    bottom: 14px;
    left: 5%;
    width: 90%;
    height: 58px;
    background: var(--primary-gold);
    border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.bottom-actions-link {
    flex: 1;
    color: #111;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-direction: column;
}

.bottom-actions-icon {
    width: 18px;
    height: 18px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-actions-divider {
    width: 1px;
    height: 26px;
    background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .details-card .article-content {
        font-size: 0.97rem;
    }

    .details-card .article-content h1 { font-size: 1.6rem; }
    .details-card .article-content h2 { font-size: 1.35rem; }
    .details-card .article-content h3 { font-size: 1.15rem; }

    .details-card .article-content figure.align-left,
    .details-card .article-content figure.align-right,
    .details-card .article-content figure.align-center {
        float: none;
        width: 100%;
        margin: 12px 0;
    }
}