/**
 * Home Page Styles - New Design 2026
 */

/* ===================================
   ABOUT US SECTION NEW
   =================================== */
.about-section-new {
    padding: 100px 0;
    background-color: var(--color-white);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Image Side */
.about-image-side {
    flex: 1;
    position: relative;
    z-index: 10;
}

.about-image-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: var(--color-white);
    padding: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--color-primary) 90deg,
            var(--color-secondary) 180deg,
            var(--color-primary) 270deg,
            transparent 360deg);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.about-image-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--color-white);
    border-radius: 36px;
    z-index: -1;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 50px 120px rgba(var(--color-primary-rgb), 0.15);
}

.about-image-card:hover::before {
    animation-duration: 2s;
}

.about-image-card img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

.about-experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 22px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.3);
    z-index: 20;
    border: 4px solid var(--color-white);
}

.about-experience-badge .number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.about-experience-badge .text {
    font-size: 14px;
    font-weight: 700;
}

/* Content Side */
.about-content-side {
    flex: 1.2;
}

.section-title-wrapper h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-title-new {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-desc-new {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 20px;
}

.about-features-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 35px 0;
}

.about-tag {
    background: var(--color-gray-50);
    padding: 15px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-100);
    text-align: center;
}

.about-tag:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.about-tag i {
    font-size: 20px;
    color: var(--color-primary);
}

.about-tag span {
    font-weight: 700;
    color: var(--color-gray-800);
    font-size: 15px;
}

.btn-about-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.2);
}

.btn-about-whatsapp {
    background: #25d366;
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

.about-actions-new {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Floating Contact Icons Over Image */
.about-contact-icons {
    position: absolute;
    bottom: -15px;
    left: -15px;
    display: flex;
    gap: 15px;
    z-index: 30;
}

.about-contact-icons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-contact-icons .icon-phone {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.about-contact-icons .icon-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.about-contact-icons a:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.btn-about-primary:hover,
.btn-about-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .about-wrapper {
        flex-direction: column;
        gap: 80px;
    }

    .about-image-side {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-features-tags {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .about-features-tags {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   HERO SECTION NEW
   =================================== */
.hero-new-slider {
    width: 100%;
    height: 100vh; /* Force height to match viewport */
    min-height: 600px; /* Minimum height for safety */
    position: relative;
    overflow: hidden;
}

.hero-new {
    position: relative;
    width: 100%;
    height: 100%; /* Match slider height */
    min-height: 100vh; /* Fallback */
    display: flex !important; /* Ensure flex is active even if Swiper touches it */
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-900);
    /* Use the icon pattern as background or an image */
    background-image: url('../images/hero_bg_pattern.png');
    /* Pattern generated to match user design */
    background-size: 400px;
    /* Adjust pattern scale */
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center;
    padding: 100px 0 160px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    margin-top: 0 !important;
    /* Ensure no gap above hero */
    box-sizing: border-box;
}

/* Swiper Slide Specific Fixes */
.hero-new-slider .swiper-slide {
    opacity: 0 !important;
    transition-property: opacity !important;
}

.hero-new-slider .swiper-slide-active {
    opacity: 1 !important;
    z-index: 2;
}

.hero-new[style*="background-image"] {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    /* Better for mobile images */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark blue semi-transparent overlay */
    background: radial-gradient(circle at center, rgba(var(--color-primary-rgb), 0.6) 0%, rgba(var(--color-text-dark-rgb), 0.95) 100%);
    z-index: 1;
}

.hero-new .container {
    position: relative;
    z-index: 2;
}

.hero-box {
    background: rgba(255, 255, 255, 0.1); /* Pure Glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px; /* Smooth rounded corners, no weird geometry */
    padding: 70px 50px;
    max-width: 900px;
    margin: 40px auto 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 
                inset 0 0 20px rgba(255, 255, 255, 0.05); /* Inner glow for luxury */
    animation: heroFloat 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.hero-title-new {
    font-size: clamp(32px, 5.5vw, 60px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff; /* Pure White */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Strong shadow for readability */
}

.hero-desc-new {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-btns-new {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 16px 45px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-white:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
    background-color: var(--color-gray-50);
}

.btn-hero-white i {
    --fa-primary-color: var(--color-primary);
    --fa-secondary-color: var(--color-secondary);
    --fa-secondary-opacity: 0.6;
    margin-left: 10px;
    font-size: 20px;
}

.btn-hero-blue {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 16px 45px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.3);
}

.btn-hero-blue:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(var(--color-secondary-rgb), 0.4);
    background: var(--color-secondary);
}

.btn-hero-blue i {
    --fa-primary-color: #ffffff;
    --fa-secondary-color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: transform 0.4s ease;
    color: #ffffff;
}

.btn-hero-blue:hover i {
    transform: translateX(-5px);
}

/* Dots Indicators (Swiper Integration) */
.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 100;
}

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.hero-dots .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 1;
    /* Override swiper default */
    margin: 0 !important;
}

.hero-dots .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.5);
    width: 45px;
    border-radius: 10px;
}

/* ===================================
   FEATURES BAR SECTION
   =================================== */
.features-bar-section {
    position: relative;
    margin-top: -100px;
    /* Half-overlap with hero */
    z-index: 100;
}

.features-bar {
    background-color: var(--color-white);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    padding: 10px;
}

.feature-item {
    padding: 50px 20px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-gray-200), transparent);
}

/* Magic Hover Effect */
.feature-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: -1;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-item:hover {
    transform: translateY(-15px);
}

.feature-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) translateY(-10px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;

    /* Duotone Coloring */
    --fa-primary-color: var(--color-primary);
    --fa-secondary-color: var(--color-secondary);
    --fa-secondary-opacity: 0.4;
}

.feature-item:hover .feature-icon {
    --fa-secondary-opacity: 0.8;
    --fa-primary-color: var(--color-secondary);
}

.feature-label {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-gray-800);
    display: block;
    transition: all 0.5s ease;
    letter-spacing: -0.5px;
}

.feature-item:hover .feature-label {
    color: var(--color-primary);
}

/* ===================================
   STICKY HEADER HOME OVERRIDES
   =================================== */
body.home .site-header {
    background: transparent;
    box-shadow: none;
}

body.home .site-header:not(.scrolled) .main-navigation ul li a,
body.home .site-header:not(.scrolled) .site-title a,
body.home .site-header:not(.scrolled) .mobile-menu-toggle {
    color: #fff;
}

body.home .site-header:not(.scrolled) .site-branding img {
    filter: brightness(0) invert(1);
}

body.home .site-header.scrolled {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.home .site-header.scrolled .main-navigation ul li a,
body.home .site-header.scrolled .site-title a,
body.home .site-header.scrolled .mobile-menu-toggle {
    color: var(--color-text-dark);
}

body.home .site-header.scrolled .site-branding img {
    filter: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .features-bar {
        grid-template-columns: repeat(5, 1fr);
        /* Stay 5 as long as possible */
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-label {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .features-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-item:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item::after {
        display: none !important;
    }

    .hero-box {
        padding: 50px 30px;
        border-radius: 30px;
    }

    .hero-new {
        min-height: auto;
        padding: 160px 0 120px;
    }
}

/* ===================================
   OTHER SERVICES SECTION - SECONDARY DARK LUXURY
   =================================== */
.services-grid-section {
    padding: 120px 0;
    /* Elegant Dark Gradient based on Primary/Dark Identity */
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* Add a subtle overlay pattern for texture */
.services-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Background Decorations using Brand Colors */
.service-decoration {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.deco-1 {
    top: -150px;
    right: -150px;
    background: var(--color-primary);
}

.deco-2 {
    bottom: -150px;
    left: -150px;
    background: var(--color-secondary);
}

.border-top-decoration {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

/* Other Services Section Optimization */
.services-grid-section .container {
    width: 85% !important;
    max-width: 1600px !important;
    margin: 0 auto;
}

.services-header {
    display: flex;
    flex-direction: row-reverse !important;
    /* Force first child (Buttons) to the LEFT */
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 50px;
    direction: rtl;
}

.services-header-left {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
}

.services-header-right {
    flex: 1;
    text-align: right;
}

.services-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 290px;
}

.btn-services-all,
.btn-services-request {
    display: flex;
    justify-content: space-between;
    /* Icon Left, Text Right */
    align-items: center;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-services-all {
    background: rgba(var(--color-primary-rgb), 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
}

.btn-services-request {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    box-shadow: 0 10px 25px rgba(var(--color-secondary-rgb), 0.3);
    border: none;
}

.btn-services-all:hover,
.btn-services-request:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Header Text Content */
.services-subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Enhanced Text Contrast for Dark Background */
.services-main-title {
    font-size: clamp(38px, 6vw, 52px);
    font-weight: 950;
    color: #ffffff; /* Pure White */
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Subtle shadow for lift */
}

.services-description {
    font-size: 19px;
    line-height: 1.9;
    color: #e2e8f0; /* Very Light Blue-Gray (Slate-200) */
    max-width: 850px;
    font-weight: 500;
}

/* Services Grid 4xN */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Service Card - Horizontal Layout (Side-by-Side) */
.service-card {
    position: relative;
    padding: 25px;
    background: rgba(30, 41, 59, 0.6); /* Semi-transparent dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.85);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-card-inner {
    display: flex;
    flex-direction: row; /* Horizontal Layout */
    align-items: flex-start;
    gap: 20px;
    text-align: right;
    direction: rtl;
    height: 100%;
}

/* Icon Wrapper */
.service-icon-wrapper {
    flex-shrink: 0;
    margin: 0; /* Remove bottom margin */
}

.service-icon-circle {
    width: 65px;
    height: 65px;
    background: rgba(var(--color-primary-rgb), 0.15);
    border-radius: 16px; /* Soft square */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    transition: all 0.4s ease;
    position: relative;
    top: auto; left: auto; opacity: 1; transform: none; /* Reset absolute positioning */
}

.service-card:hover .service-icon-circle {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.4);
}

.service-icon-circle i {
    font-size: 28px;
    color: var(--color-primary);
    --fa-primary-color: var(--color-primary);
    --fa-secondary-color: var(--color-secondary);
    --fa-secondary-opacity: 1;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-circle i {
    color: #ffffff;
    --fa-primary-color: #ffffff;
    --fa-secondary-color: rgba(255, 255, 255, 0.8);
}

/* Content Area */
.service-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.service-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0; /* Bright/Light Text */
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 400;
    display: block; /* Ensure it's not hidden */
}

/* Details Button */
.service-card-link {
    align-self: flex-start; /* Align right in RTL */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    width: auto; height: auto; /* Reset fixed sizes */
}

.service-card-link::before {
    content: 'تفاصيل الخدمة';
    display: inline-block;
}

.service-card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link {
    background: var(--color-primary);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
    transform: translateY(-2px);
    color: #fff;
    padding-right: 20px; /* Reset padding change */
}

.service-card:hover .service-card-link i {
    transform: translateX(-3px);
}

/* Reset old overrides - BUT keep h3 visible now */
.service-card p {
    display: none; /* Only hide old P if needed, but title must be visible */
}

.service-card h3 {
    display: block !important; /* Ensure H3 is visible */
    font-size: 20px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .services-grid {
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .services-header {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .services-header-right {
        width: 100%;
        justify-content: flex-end;
        margin-top: 30px;
    }

    .services-actions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-actions {
        flex-direction: column;
    }

    .btn-services-all,
    .btn-services-request {
        justify-content: center;
        width: 100%;
    }

    .services-grid-section {
        padding: 80px 0;
    }
}

/* ============================================================ 
   LOCATIONS SECTION - COMPACT & ELEGANT (RAIQ)
   ============================================================ */
.locations-grid-section {
    padding: 80px 0;
    background: #f8fafc; /* Very light gray background */
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.locations-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.locations-subtitle {
    display: block;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.locations-main-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.locations-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Compact Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    min-width: 0; /* Fix grid overflow */
}

.location-card-inner {
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.location-icon-wrapper {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    background: rgba(var(--color-primary-rgb), 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    transition: all 0.3s ease;
}

/* Hover Effect - Simple & Classy */
.location-card:hover .location-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.2);
    background: #ffffff;
}

.location-card:hover .location-icon-wrapper {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.location-card:hover .location-card-name {
    color: var(--color-primary);
}

/* Background Image Location Card Styles (Compact) */
.location-card-inner.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    height: 180px; /* Reduced height */
    padding: 0;
    overflow: hidden;
}

.location-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: all 0.3s ease;
}

.location-card:hover .location-card-overlay {
    background: linear-gradient(to bottom, rgba(var(--color-primary-rgb), 0.4), rgba(0, 0, 0, 0.8));
}

.location-card-inner.has-bg-image .location-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.location-card-inner.has-bg-image .location-card-name,
.location-card-inner.has-bg-image .location-card-name a {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.location-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 14px;
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .locations-main-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 cols for better mobile view */
        gap: 10px;
    }
    
    .location-card-inner {
        padding: 15px 10px;
    }
    
    .location-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .location-card-name {
        font-size: 14px;
    }
}


/* Better Swiper Pagination Dots */
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    text-align: center;
    padding: 20px 0;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(var(--color-primary-rgb), 0.3);
    border: 2px solid var(--color-primary);
    opacity: 1;
    margin: 0 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
    width: 40px !important;
    border-radius: 6px !important;
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(var(--color-primary-rgb), 0.5);
}

/* ===================================
   HOME POSTS WIDGET SECTION
   =================================== */
.home-posts-section {
    padding: 100px 0;
    background-color: var(--color-gray-50, #f8fafc);
    border-top: 1px solid rgba(0,0,0,0.05);
    direction: rtl;
}

.home-posts-section .section-header {
    text-align: right;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Force Right Alignment in RTL */
    width: 100%;
}

.home-posts-section .section-header.right-align {
    text-align: right;
    align-items: flex-start !important;
}

.home-posts-section .section-subtitle {
    display: inline-block;
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start; /* Ensure it stays at start/right */
    margin-right: 0;
    margin-left: auto; /* Push away from left if needed, though flex handles it */
}

.home-posts-section .section-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 950;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.home-posts-section .section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0;
    margin-right: 0;
    border-radius: 2px;
    margin-bottom: 15px;
}

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 Columns */
    gap: 30px;
}

.home-post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.post-card-image {
    position: relative;
    padding-top: 65%; /* Slightly taller */
    overflow: hidden;
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-date-badge {
    position: absolute;
    top: 15px;
    right: 15px; /* Moved to Right */
    left: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
    min-width: 50px;
}

.post-date-badge .day {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.post-date-badge .month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.post-meta {
    margin-bottom: 12px;
}

.post-cat {
    font-size: 12px;
    color: var(--color-secondary);
    font-weight: 700;
    background: rgba(var(--color-secondary-rgb), 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.post-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.post-read-more i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.home-post-card:hover .post-read-more {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.home-post-card:hover .post-read-more i {
    transform: translateX(-5px);
}

/* ===================================
   HOME POSTS WIDGET DARK SECTION
   =================================== */
.home-posts-section-dark {
    background-color: var(--color-text-dark, #0f172a) !important; /* Force dark background */
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%) !important;
    color: #fff;
    border-top: none;
    position: relative;
    padding: 100px 0;
}

/* Texture Overlay */
.home-posts-section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.home-posts-section-dark .container {
    position: relative;
    z-index: 1;
}

.home-posts-section-dark .section-title {
    color: #ffffff !important;
}

.home-posts-section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.home-posts-section-dark .home-post-card {
    background: rgba(30, 41, 59, 0.6) !important; /* Semi-transparent dark */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-posts-section-dark .home-post-card:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
}

.home-posts-section-dark .post-title a {
    color: #ffffff !important;
}

.home-posts-section-dark .post-title a:hover {
    color: var(--color-primary) !important;
}

.home-posts-section-dark .post-excerpt {
    color: rgba(255, 255, 255, 0.7) !important;
}

.home-posts-section-dark .post-date-badge {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.home-posts-section-dark .post-date-badge .day {
    color: #fff !important;
}

.home-posts-section-dark .post-date-badge .month {
    color: rgba(255, 255, 255, 0.6) !important;
}

.home-posts-section-dark .post-cat {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.home-posts-section-dark .post-read-more {
    color: #fff !important;
}

.home-posts-section-dark .home-post-card:hover .post-read-more {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary) !important;
}
.home-posts-section-dark .home-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* Force 4 columns for dark section too */
    gap: 30px;
}

/* ===================================
   STYLE 2: MODERN OVERLAY (FAKHAMA)
   =================================== */
.home-posts-grid.style-2 .home-post-card {
    height: 400px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-posts-grid.style-2 .post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    z-index: 1;
}

.home-posts-grid.style-2 .post-card-image img {
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-posts-grid.style-2 .home-post-card:hover .post-card-image img {
    transform: scale(1.1);
}

/* Gradient Overlay */
.home-posts-grid.style-2 .post-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.home-posts-grid.style-2 .home-post-card:hover .post-card-image::after {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 100%);
}

/* Date Badge Style 2 */
.home-posts-grid.style-2 .post-date-badge {
    background: var(--color-primary);
    color: #fff;
    border: none;
    top: 20px;
    right: 20px;
    left: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.home-posts-grid.style-2 .post-date-badge .day {
    color: #fff !important;
    font-size: 18px;
}

.home-posts-grid.style-2 .post-date-badge .month {
    color: rgba(255,255,255,0.8) !important;
}

/* Content Style 2 */
.home-posts-grid.style-2 .post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 30px;
    background: transparent;
    justify-content: flex-end;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-posts-grid.style-2 .post-cat {
    background: var(--color-secondary);
    color: #fff;
    margin-bottom: 10px;
    align-self: flex-start;
    padding: 4px 12px;
}

.home-posts-grid.style-2 .post-title a {
    color: #ffffff !important;
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.home-posts-grid.style-2 .post-title a:hover {
    color: var(--color-primary) !important;
}

/* Hide Excerpt initially, show on hover */
.home-posts-grid.style-2 .post-excerpt {
    color: rgba(255,255,255,0.8) !important;
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.home-posts-grid.style-2 .home-post-card:hover .post-excerpt {
    height: auto;
    opacity: 1;
    margin-bottom: 20px;
    transform: translateY(0);
}

.home-posts-grid.style-2 .post-read-more {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s; /* Delay */
}

.home-posts-grid.style-2 .home-post-card:hover .post-read-more {
    opacity: 1;
    transform: translateY(0);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.home-posts-grid.style-2 .home-post-card:hover .post-read-more:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

@media (max-width: 1200px) {
    .home-posts-grid,
    .home-posts-section-dark .home-posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .home-posts-grid,
    .home-posts-section-dark .home-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .home-posts-grid,
    .home-posts-section-dark .home-posts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .home-posts-section .section-header {
        align-items: center;
        text-align: center;
    }
    
    .home-posts-section .section-header.right-align {
        align-items: center;
        text-align: center;
    }
    
    .home-posts-section .section-line {
        margin: 0 auto;
    }
    
    .post-card-content {
        text-align: center;
    }
    
    .post-read-more {
        align-self: center;
    }
}
