:root {
    --primary-color: #dba435;
    /* Gold/Bronze from reference */
    --secondary-color: #000000;
    /* Black */
    --accent-color: #c28e28;
    /* Darker Gold for hover */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    /* Cairo is a great match for modern Arabic sites */
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

.logo span {
    white-space: nowrap; /* Prevent wrapping of logo text */
}

.nav-links {
    display: flex;
    gap: 20px; /* Reduced gap */
    align-items: center;
}

.nav-links li {
    white-space: nowrap; /* Prevent wrapping */
}

.nav-links a {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem; /* Slightly reduced font size to fit better */
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Underline effect for links */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 4px;
    /* Squarer buttons like reference */
    font-weight: bold;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.navbar .btn-primary {
    white-space: nowrap !important;
    padding: 8px 25px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Hero Section Redesign */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Text Styling */
.hero-content {
    text-align: center;
    z-index: 2;
}

.sub-title {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
}

.specialty-title {
    font-size: 1.4rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #777;
    line-height: 1.8;
    max-width: 500px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    /* Pill shape for modern look */
    box-shadow: 0 10px 20px rgba(219, 164, 53, 0.3);
    /* Gold echo shadow */
}

.btn-secondary {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Image Section with Blob Effect */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background-color: rgba(219, 164, 53, 0.08);
    /* Very light gold */
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-img-main {
    position: relative;
    z-index: 2;
    width: 380px;
    /* Optimal width for portrait */
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: 200px 200px 20px 20px;
    /* Pill shape arch */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(10px, -10px);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        text-align: center;
        order: 2;
        /* Image first on mobile? Or text first. Let's keep Text first for H1 importance, or Image for visuals. Common pattern: Image top. */
        order: 2;
    }

    .hero-image-container {
        order: 1;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons, .hero-buttons-new {
        align-items: center !important;
    }

    .hero-img-main {
        width: 300px;
        height: 400px;
    }

    .hero-blob {
        width: 350px;
        height: 350px;
    }
}

/* Hero Features (Red Cards) */
.hero-features {
    margin-top: -80px;
    /* Overlap the hero section */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}


.btn-secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
    margin-right: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-images-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    gap: 15px;
    align-items: center;
}

.about-images-wrapper img {
    width: 100%;
    border-radius: 30px;
    /* Matched to Hero Section style */
    box-shadow: var(--shadow);
    transition: var(--transition);
    object-fit: cover;
    height: 400px;
    /* Fixed height for consistency */
}

/* Make one image slightly pushed down or styled differently for effect */
.about-images-wrapper img:nth-child(2) {
    transform: translateY(30px);
    /* Stagger effect */
    border: 3px solid var(--white);
}

.about-images-wrapper img:hover {
    transform: scale(1.02);
    z-index: 2;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
}

.about-text p {
    color: #666;
    margin-bottom: 20px;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #444;
}

.check-list li i {
    color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Services Card Redesign (Matching Team Card Style EXACTLY) */
.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-img {
    height: 300px;
    /* Slightly adjusted for service context */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    border: none;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 25px;
    background: #fff;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Overlay & Button - EXACTLY like Team Card */
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.view-service-btn {
    background: var(--white);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover .view-service-btn {
    transform: translateY(0);
}

/* Hide legacy elements */
.service-icon,
.service-card::after {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
}

.animate-on-scroll.show {
    visibility: visible;
}

.animate-on-scroll.fade-up.show, .animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-on-scroll.zoom.show, .animate-zoom {
    animation: zoomIn 0.8s ease-out forwards;
    opacity: 0;
}

/* Delay classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}


/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
    /* Ensure all items in a row have equal height */
}

.location-card {
    background: var(--white);
    padding: 0;
    /* Clear padding to handle internal layout */
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    /* Use flexbox */
    flex-direction: column;
    /* Stack children vertically */
    height: 100%;
    /* Fill the grid cell height */
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.location-card-body {
    padding: 30px;
    flex-grow: 1;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 0;
    border: none;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.location-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
    width: 20px;
    /* Fixed width for better alignment */
    text-align: center;
}

/* Footer strip for cards */
.location-footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    font-weight: bold;
    transition: var(--transition);
    display: block;
}

.location-footer:hover {
    background: var(--accent-color);
}

/* Footer */
/* Footer Redesign - Orange Theme */
footer {
    background-color: var(--primary-color) !important;
    /* Orange/Gold Background */
    color: #fff;
    padding: 70px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: center;
}

/* Col 1: Brand */
.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 100px;
    /* Reduced from 120px */
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
    /* Reduced from 20px */
    display: block;
    margin-top: 0;
}

.footer-bio {
    line-height: 1.6;
    /* Slight reduction for compactness */
    margin-bottom: 15px;
    /* Reduced from 25px */
    color: #fff;
    text-align: justify;
    /* Justify text alignment */
    text-justify: inter-word;
}

/* Social Icons */
.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    /* Transparent White */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Headings */
.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #fff;
}

/* Links */
.footer-links {
    text-align: center;
}

.footer-links ul li {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.footer-links ul li a {
    color: #fff;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a::before {
    content: '\f104';
    /* Left Arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: #fff;
}

.footer-links ul li a:hover {
    color: #000;
    padding-right: 5px;
}

/* Articles (No Images) */
.footer-article-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.footer-article-item:last-child {
    border-bottom: none;
}

.footer-article-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: var(--transition);
    cursor: pointer;
}

.footer-article-info h4:hover {
    color: #000;
}

.footer-article-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    /* Centered meta */
}

/* Contact */
.footer-contact-col {
    text-align: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: center;
    /* Center Horizontally */
    gap: 15px;
    margin-bottom: 18px;
    color: #fff;
}

.footer-contact-item a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: #000;
}

.footer-contact-item i {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 5px;
    min-width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .btn-desktop {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Articles Section */
.articles-section {
    background-color: var(--white);
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.article-content {
    padding: 25px;
}

.article-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.article-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
    /* Slide effect */
}

/* Videos Section */
.videos-section {
    background-color: var(--light-bg);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--primary-color);
    /* Changed to Orange/Gold */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------
   SINGLE ARTICLE PAGE STYLES (ADDED FOR PROFESSIONAL LOOK)
------------------------------------------------------------------- */
/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #666;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 5px;
    color: #ccc;
}

/* Page Layout (Sidebar + Content) */
.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Content, 1/3 Sidebar */
    gap: 40px;
    margin-top: 40px;
}

/* Tablet/Mobile Responsive */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    /* Order sidebar below content on mobile */
    .article-sidebar {
        order: 2;
    }
}

/* Typography & Content */
.article-content {
    background: #fff;
    padding: 0;
    /* Clean look, no box initially */
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta i {
    color: var(--primary-color);
    margin-left: 5px;
}

.article-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.article-body h2 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul {
    margin-bottom: 20px;
    padding-right: 20px;
}

.article-body ul li {
    margin-bottom: 10px;
    position: relative;
}

.article-body ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Share Buttons */
.share-buttons {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.share-buttons h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .linkedin {
    background-color: #0077b5;
}

.social-share .whatsapp {
    background-color: #25d366;
}

/* -------------------------------------------------------------------
   SIDEBAR WIDGETS
------------------------------------------------------------------- */
.sidebar-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--secondary-color);
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.search-form button {
    padding: 10px 15px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-color);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #666;
    transition: var(--transition);
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.categories-list span {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #888;
}

/* Recent Articles Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.recent-post-info h4 a:hover {
    color: var(--primary-color);
}

.recent-post-info span {
    font-size: 0.8rem;
    color: #999;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--secondary-color), #000);
    color: #fff;
    text-align: center;
}

.cta-widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-widget p {
    margin-bottom: 25px;
    color: #ddd;
}

.cta-widget .btn-primary {
    width: 100%;
}

/* Testimonials Ticker - FIXED */
.testimonials-section {
    background: #fff;
    padding: 50px 0;
    overflow: hidden;
    border-top: 1px solid #eee;
    direction: ltr !important;
}

.testimonials-wrapper {
    display: flex;
    /* gap: 20px; Removed for seamless math */
    animation: scrollTicker 60s linear infinite;
    width: max-content;
}

.testimonials-wrapper:hover {
    animation-play-state: paused;
}

.testimonial-card-mini {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    min-width: 300px;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
    text-align: right;
    flex-shrink: 0;
    margin-right: 20px;
    /* Added for seamless loop math */
}

.testimonial-card-mini .fa-quote-right {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Service Detail Updates */
.service-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.sub-service-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.3s ease;
}

.sub-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.sub-service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.sub-service-card h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.sub-service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Service Page Title Enhanced */
.page-title {
    position: relative;
    z-index: 1;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay for text readability */
    z-index: -1;
}

/* Global Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 3fr;
    /* Image Left, Content Right */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
    }
}

.modal-img {
    height: 100%;
    min-height: 400px;
    position: relative;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .modal-img {
        height: 250px;
        min-height: auto;
    }
}

.modal-details {
    padding: 40px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-details {
        padding: 25px;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.1);
}

.modal-details h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.modal-details h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.modal-bio {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.modal-skills h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-right: 4px solid var(--primary-color);
    padding-right: 10px;
    font-weight: 700;
}

.modal-skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-skills li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.modal-skills li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 1.5s infinite;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    color: #FFF;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 85px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* Inline Pulsing WhatsApp Button */
.pulsing-whatsapp-inline {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 1.5s infinite;
    transition: 0.3s;
}

.pulsing-whatsapp-inline:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}