/* ========================= General Styles & Fonts ========================= */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal; /* 400 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold; /* 700 */
    font-style: normal;
    font-display: swap;
}

:root {
    /* Dark Mode Variables (پیش‌فرض) */
    --brand-blue: #A3D5FF;
    --brand-green: #A8E6CF;
    --brand-green-rgb: 168, 230, 207;
    --brand-blue-rgb: 163, 213, 255;

    --bg-primary: #12181f;
    --bg-secondary: #1a222c; /* این رنگ برای پس‌زمینه هدر استفاده خواهد شد */
    --bg-card: #1a222c;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.25);
    --hero-gradient-1: rgba(10, 38, 62, 0.5);
    --hero-gradient-2: rgba(18, 64, 46, 0.4);
    --navbar-toggler-icon-stroke: rgba(255, 255, 255, 0.8);
    --footer-bg: #0a0f14;
    --footer-border: rgba(255,255,255,0.05);
    --form-control-bg: rgba(255, 255, 255, 0.05);
    --form-control-focus-bg: rgba(255, 255, 255, 0.1);
    --form-control-placeholder-color: var(--text-secondary);
    --client-logo-filter: grayscale(100%) opacity(0.65);
    --client-logo-hover-filter: grayscale(0%) opacity(1);
    --header-height: 75px; /* متغیر برای ارتفاع هدر - مقدار را بر اساس ارتفاع واقعی هدر خود تنظیم کنید */
}

body {
    font-family: 'Vazirmatn', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode Variables and Styles */
body.light-mode {
    --brand-blue: #007bff;
    --brand-green: #28a745;
    --brand-green-rgb: 40, 167, 69;
    --brand-blue-rgb: 0, 123, 255;

    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff; /* پس‌زمینه هدر در حالت روشن */
    --bg-card: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hero-gradient-1: rgba(163, 213, 255, 0.3);
    --hero-gradient-2: rgba(168, 230, 207, 0.3);
    --navbar-toggler-icon-stroke: rgba(0, 0, 0, 0.7);
    --footer-bg: #e9ecef;
    --footer-border: rgba(0,0,0,0.08);
    --form-control-bg: #ffffff;
    --form-control-focus-bg: #f1f1f1;
    --form-control-placeholder-color: #6c757d;
    --client-logo-filter: grayscale(50%) opacity(0.8);
    --client-logo-hover-filter: grayscale(0%) opacity(1);
}


h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--brand-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-green);
}

.container {
    max-width: 1200px;
}

/* ========================= Header / Navbar ========================= */
.main-header .navbar {
    background-color: var(--bg-secondary); /* اعمال پس‌زمینه ثابت به هدر */
    padding-top: 0.75rem; /* کمی کاهش پدینگ برای کنترل بهتر ارتفاع */
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    min-height: var(--header-height);
    /* align-items: center;  این توسط .navbar-expand-lg مدیریت می‌شود */
}


/* کلاس .scrolled برای افکت تغییر پس‌زمینه هدر با اسکرول (اختیاری) */
/* این کد CSS تنها در صورتی کار می‌کند که کد JS مربوطه را هم به main.js اضافه کنید */
.main-header.scrolled .navbar {
    background-color: var(--bg-primary); /* یا یک رنگ کمی تیره‌تر/روشن‌تر */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
body.dark-mode .main-header.scrolled .navbar {
    background-color: color-mix(in srgb, var(--bg-secondary) 90%, black);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


.main-header .navbar-brand .brand-text-dark {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.main-header .navbar-brand .brand-domain-dark {
    font-size: 1.2rem;
    color: var(--brand-blue);
    font-weight: normal;
    transition: color 0.3s ease;
}

.main-header .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: var(--brand-green);
}

.main-header .custom-toggler {
    border-color: var(--border-color);
    transition: border-color 0.3s ease;
}

body.dark-mode .main-header .custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
body.light-mode .main-header .custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.btn-cta-green {
    background-color: var(--brand-green);
    color: var(--bg-primary) !important;
    font-weight: bold;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 0.9rem;
    border: 1px solid var(--brand-green);
}
body.light-mode .btn-cta-green {
    color: #fff !important;
}


.btn-cta-green:hover {
    background-color: color-mix(in srgb, var(--brand-green) 85%, black);
    border-color: color-mix(in srgb, var(--brand-green) 85%, black);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    /* display: flex; در HTML با کلاس d-flex اضافه شده */
    /* align-items: center; در HTML با کلاس d-flex اضافه شده */
    padding: 0.375rem 0.75rem; /* پدینگ استاندارد دکمه sm */
    line-height: 1.5; /* برای هم‌ترازی بهتر متن و آیکون */
}
.theme-toggle-btn:hover {
    color: var(--brand-green);
    border-color: var(--brand-green);
    background-color: transparent;
}

.theme-toggle-btn i {
    /* margin-left: 5px;  در HTML با کلاس me-1 اضافه شده (برای RTL، ms-1 صحیح‌تر است) */
    font-size: 0.9em;
    line-height: 1;
}

/* مدیریت نمایش آیکون‌ها با توجه به تم (که در HTML با style="display: none;" مدیریت اولیه شده) */
/* این کلاس‌ها توسط JS برای نمایش صحیح آیکون کنترل می‌شوند */
/*
body.dark-mode .theme-toggle-btn .fa-moon { display: none !important; }
body.dark-mode .theme-toggle-btn .fa-sun { display: inline-block !important; }

body.light-mode .theme-toggle-btn .fa-sun { display: none !important; }
body.light-mode .theme-toggle-btn .fa-moon { display: inline-block !important; }
*/
/* کد JS مسئول نمایش و عدم نمایش آیکون‌ها با تغییر style.display است */

.theme-toggle-text {
    font-size: 0.8rem;
    line-height: 1;
    margin-right: 0.25rem; /* کمی فاصله بین آیکون و متن */
}


/* ========================= Hero Section ========================= */
/* (کدهای بخش Hero بدون تغییر نسبت به نسخه قبلی شما) */
.hero-section-dark {
    min-height: 90vh;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 80%, var(--hero-gradient-1), var(--bg-primary) 60%),
                radial-gradient(circle at 80% 30%, var(--hero-gradient-2), var(--bg-primary) 70%),
                var(--bg-primary);
    transition: background 0.3s ease;
}

.hero-text-content {
    z-index: 2;
}

.hero-title-dark {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.highlight-green-dark {
    color: var(--brand-green);
    transition: color 0.3s ease;
}

.hero-subtitle-dark {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
    transition: color 0.3s ease;
}

.btn-cta-blue {
    background-color: var(--brand-blue);
    color: var(--bg-primary) !important;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--brand-blue);
}
body.light-mode .btn-cta-blue {
    color: #fff !important;
}

.btn-cta-blue:hover {
    background-color: color-mix(in srgb, var(--brand-blue) 85%, black);
    border-color: color-mix(in srgb, var(--brand-blue) 85%, black);
    transform: translateY(-2px);
}

.btn-outline-light-cta {
    border: 2px solid var(--brand-green);
    color: var(--brand-green) !important;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-outline-light-cta:hover {
    background-color: var(--brand-green);
    color: var(--bg-primary) !important;
    transform: translateY(-2px);
}

.hero-visual-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    z-index: 1;
    perspective: 2000px;
    overflow: visible;
}

.hero-logo-wrapper {
    position: relative;
    transform-style: preserve-3d;
    width: 75%;
    max-width: 500px;
    animation: floatMaster 12s infinite ease-in-out;
    will-change: transform;
}

.hero-logo-wrapper::before,
.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/b-logo-background.svg') center/contain no-repeat;
    opacity: 0.15;
    filter: blur(15px);
    transform: translateZ(-50px);
    animation: glowPulse 6s ease-in-out infinite alternate;
}

.hero-logo-wrapper::after {
    filter: blur(25px);
    opacity: 0.1;
    transform: translateZ(-100px);
    animation: glowPulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    0% {
        opacity: 0.08;
        filter: blur(15px) brightness(1);
        transform: translateZ(-50px) scale(0.95);
    }
    50% {
        opacity: 0.15;
        filter: blur(20px) brightness(1.3);
        transform: translateZ(-75px) scale(1.05);
    }
    100% {
        opacity: 0.12;
        filter: blur(25px) brightness(1.5);
        transform: translateZ(-100px) scale(1);
    }
}

.hero-bg-logo {
    width: 100%;
    height: auto;
    transform-style: preserve-3d;
    animation: heroLogo 15s infinite cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform-origin: center center;
    filter: drop-shadow(0 20px 30px rgba(var(--brand-blue-rgb), 0.3));
    transition: filter 0.5s ease;
}

@keyframes floatMaster {
    0%, 100% {
        transform: translateY(0) rotateX(10deg) rotateY(-10deg) translateZ(0);
    }
    25% {
        transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) translateZ(50px);
    }
    50% {
        transform: translateY(-30px) rotateX(15deg) rotateY(-15deg) translateZ(100px);
    }
    75% {
        transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) translateZ(50px);
    }
}

@keyframes heroLogo {
    0% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
        filter: drop-shadow(0 20px 30px rgba(var(--brand-blue-rgb), 0.3));
    }
    20% {
        transform: rotateY(15deg) rotateX(-8deg) translateZ(80px);
        filter: drop-shadow(-25px 35px 40px rgba(var(--brand-green-rgb), 0.4));
    }
    40% {
        transform: rotateY(-5deg) rotateX(12deg) translateZ(120px);
        filter: drop-shadow(25px 45px 45px rgba(var(--brand-blue-rgb), 0.35));
    }
    60% {
        transform: rotateY(-15deg) rotateX(-5deg) translateZ(90px);
        filter: drop-shadow(30px 35px 40px rgba(var(--brand-green-rgb), 0.45));
    }
    80% {
        transform: rotateY(10deg) rotateX(8deg) translateZ(60px);
        filter: drop-shadow(-20px 30px 35px rgba(var(--brand-blue-rgb), 0.4));
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
        filter: drop-shadow(0 20px 30px rgba(var(--brand-blue-rgb), 0.3));
    }
}

/* Add ambient light effect */
.hero-ambient-light {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(var(--brand-blue-rgb), 0.15) 0%,
        rgba(var(--brand-green-rgb), 0.1) 30%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    animation: ambientLight 10s infinite alternate;
    mix-blend-mode: screen;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

@keyframes ambientLight {
    0% {
        opacity: 0;
        transform: scale(0.8) translateZ(-100px) rotateX(20deg);
    }
    50% {
    opacity: 1;
        transform: scale(1.2) translateZ(0) rotateX(-10deg);
    }
    100% {
        opacity: 0.8;
        transform: scale(1) translateZ(50px) rotateX(10deg);
    }
}

/* Add hover effect with smooth transition */
.hero-visual-placeholder:hover .hero-bg-logo {
    animation-play-state: paused;
    filter: drop-shadow(0 30px 40px rgba(var(--brand-green-rgb), 0.5));
    transition: filter 0.5s ease;
}

.hero-visual-placeholder:hover .hero-logo-wrapper::before {
    animation-play-state: paused;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.hero-visual-placeholder:hover .hero-logo-wrapper::after {
    animation-play-state: paused;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.hero-visual-placeholder:hover .hero-ambient-light {
    animation-play-state: paused;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .hero-visual-placeholder {
        perspective: 1200px;
    }

    .hero-logo-wrapper {
        width: 85%;
    }

    @keyframes heroLogo {
        0%, 100% {
            transform: rotateY(0deg) rotateX(0deg) translateZ(0);
        }
        50% {
            transform: rotateY(0deg) rotateX(8deg) translateZ(40px);
        }
    }

    @keyframes floatMaster {
        0%, 100% {
            transform: translateY(0) rotateX(5deg) rotateY(-5deg);
        }
        50% {
            transform: translateY(-15px) rotateX(8deg) rotateY(-8deg) translateZ(30px);
        }
    }
}

/* Light mode adjustments */
body.light-mode .hero-logo-wrapper::before {
    opacity: 0.2;
}

body.light-mode .hero-logo-wrapper::after {
    opacity: 0.15;
}

body.light-mode .hero-bg-logo {
    filter: brightness(0.95) drop-shadow(0 20px 30px rgba(var(--brand-blue-rgb), 0.25));
}

body.light-mode .hero-ambient-light {
    mix-blend-mode: multiply;
    background: radial-gradient(
        circle at center,
        rgba(var(--brand-blue-rgb), 0.2) 0%,
        rgba(var(--brand-green-rgb), 0.15) 30%,
        transparent 70%
    );
}

/* ========================= New Services Section Styles ========================= */
/* (کدهای این بخش و بخش‌های بعدی مانند About, Clients, Footer, Contact Page, Service Detail Page, Why Choose Us بدون تغییر نسبت به نسخه قبلی شما) */
/* ... */
.new-services-section {
    background-color: var(--bg-primary);
    padding-top: 60px;
    padding-bottom: 80px;
    transition: background-color 0.3s ease;
}

.service-card-new {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card-new:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(var(--brand-green-rgb), 0.15);
}
body.light-mode .service-card-new:hover {
    box-shadow: 0 15px 40px rgba(var(--brand-green-rgb), 0.25);
}


.service-card-new-image-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: color-mix(in srgb, var(--bg-secondary) 90%, black);
    border-bottom: 3px solid var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-card-new-image-wrapper img.service-svg-icon {
    width: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.4s ease-out;
}

.service-card-new:hover .service-card-new-image-wrapper img.service-svg-icon {
    transform: scale(1.1);
}

.service-card-new-content {
    padding: 30px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-new-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card-new-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.service-card-new-link {
    color: var(--brand-green);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    align-self: center;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 20px;
}

.service-card-new-link:hover {
    color: var(--brand-blue);
    background-color: rgba(var(--brand-blue-rgb), 0.1);
    border-color: rgba(var(--brand-blue-rgb), 0.3);
}

.service-card-new-link i {
    margin-right: 6px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.service-card-new-link:hover i {
    transform: translateX(-4px);
}

/* ========================= About Us Section Styles ========================= */
.about-us-section {
    background-color: var(--bg-secondary);
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-us-image-placeholder {
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.about-us-image-placeholder .img-fluid {
    max-height: 380px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}

.about-us-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-us-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
}

.about-us-text strong {
    color: var(--brand-green);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* ========================= Clients Marquee Section Styles ========================= */
.clients-section-marquee {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.marquee-container-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    background: transparent;
}

.marquee-content-parent {
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
    background: transparent;
}

.client-logo-marquee {
    height: 60px;
    width: auto;
    margin: 0 2rem;
    filter: var(--client-logo-filter);
    transition: all 0.4s ease;
    flex-shrink: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.client-logo-marquee:hover {
    filter: var(--client-logo-hover-filter);
    transform: scale(1.1) translateZ(20px);
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-container-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    .client-logo-marquee {
        height: 45px;
        margin: 0 1.5rem;
    }
    
    .marquee-content {
        animation-duration: 30s linear infinite;
    }
}

@media (max-width: 576px) {
    .client-logo-marquee {
        height: 35px;
        margin: 0 1rem;
    }
    
    .marquee-content {
        animation-duration: 25s;
    }
}

@media (min-width: 1200px) {
    .client-logo-marquee {
        height: 70px;
        margin: 0 2.5rem;
    }
    
    .marquee-content {
        animation-duration: 50s;
    }
}

/* ========================= Footer Section Styles ========================= */
.main-footer-section {
    background-color: var(--footer-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--footer-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-widget .widget-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brand-green);
    transition: background-color 0.3s ease;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    opacity: 0.8;
    margin-left: 10px;
    transition: opacity 0.3s ease;
}
body.light-mode .footer-brand .footer-logo-img {
    opacity: 1;
}


.footer-brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand .footer-brand-text {
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.footer-brand .footer-brand-domain {
    font-size: 0.9rem;
    color: var(--brand-blue);
    font-weight: normal;
    transition: color 0.3s ease;
}

.footer-about-text {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: var(--text-secondary);
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-links li a:hover {
    color: var(--brand-green);
    padding-right: 5px;
}

.footer-contact li {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    color: var(--brand-green);
    margin-left: 10px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.footer-contact li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: var(--brand-blue);
}

.social-icons a {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--form-control-bg);
    color: var(--text-secondary);
    margin-left: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
    border: 1px solid var(--border-color);
}
body.light-mode .social-icons a {
    background-color: #e9ecef;
}


.social-icons a:hover {
    background-color: var(--brand-green);
    color: var(--bg-primary) !important;
    border-color: var(--brand-green);
    transform: translateY(-2px);
}
body.light-mode .social-icons a:hover {
    color: #fff !important;
}


.footer-newsletter-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.newsletter-form .form-control {
    background-color: var(--form-control-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.newsletter-form .form-control::placeholder {
    color: var(--form-control-placeholder-color);
    opacity: 0.7;
    transition: color 0.3s ease;
}

.newsletter-form .form-control:focus {
    background-color: var(--form-control-focus-bg);
    border-color: var(--brand-blue);
    box-shadow: none;
    color: var(--text-primary);
}

.footer-divider {
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
    transition: border-color 0.3s ease;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: color 0.3s ease;
}

/* ========================= Responsive Adjustments ========================= */
@media (max-width: 991.98px) {
    .hero-text-content { text-align: center; margin-bottom: 3rem; }
    .hero-subtitle-dark { margin-right: auto; margin-left: auto; }
    .hero-bg-logo { width: 90%; max-width: 400px; animation-duration: 12s; }
    body.light-mode .hero-bg-logo { animation-name: floatLogoLight; }


    .main-header .navbar-nav { align-items: flex-end !important; margin-top: 1rem; }
    .main-header .nav-item { margin-bottom: 0.5rem; }
    .main-header .nav-item .btn-cta-green{ width: 100%; text-align: center; }
    .main-header .theme-toggle-btn { margin-top: 0.5rem; width: 100%; }


    .footer-col { text-align: center; }
    .footer-widget .widget-title::after { right: 50%; transform: translateX(50%); }
    .footer-brand { justify-content: center; }
    .footer-brand .footer-logo-img { margin-left: 0; margin-right: 10px; }
    .social-icons { text-align: center; }
    .social-icons a { margin: 0 5px; }

    .client-logo-marquee { max-height: 45px; margin: 0 15px; }
    .marquee-container-wrapper { -webkit-mask-image: none; mask-image: none; }

    /* Service Detail Page Responsive */
    .service-detail-section .row.align-items-center > div:first-child {
        order: -1;
    }
     .service-detail-section .row.align-items-center.flex-lg-row-reverse > div:first-child {
        order: 0;
    }
    .service-detail-section .row.align-items-center.flex-lg-row-reverse > div:last-child {
        order: -1;
    }

    /* Portfolio Page Responsive */
    .portfolio-item-card {
        /* ممکن است بخواهید در اینجا هم تغییراتی اعمال کنید اگر لازم است */
    }

    /* Blog Page Responsive */
    .blog-list-section .col-lg-8,
    .blog-list-section .col-lg-4 {
        width: 100%; /* در موبایل سایدبار زیر مقالات بیاید */
    }
    .sidebar-blog {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .footer-col:not(:last-child) { margin-bottom: 2rem; }
    /* ... سایر استایل‌های ریسپانسیو برای این اندازه ... */
}

/* ========================= Contact Page Specific Styles ========================= */
/* (کدهای این بخش و بخش‌های بعدی مانند Service Detail Page، Why Choose Us بدون تغییر نسبت به نسخه قبلی شما) */
/* ... */
.page-header-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    transition: color 0.3s ease;
}
.contact-page-section {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}
.contact-info-wrapper,
.contact-form-wrapper {
    background-color: var(--bg-card);
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-info-title,
.contact-form-title {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--brand-green);
    padding-bottom: 0.75rem;
    display: inline-block;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-info-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.contact-details-list li {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.contact-details-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-details-list li a:hover {
    color: var(--brand-green);
}
.contact-details-list li i {
    color: var(--brand-blue);
    width: 25px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.social-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.social-icons-contact a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
}
body.light-mode .social-icons-contact a {
    background-color: rgba(var(--brand-blue-rgb), 0.15);
}
.social-icons-contact a:hover {
    background-color: var(--brand-blue);
    color: var(--bg-primary) !important;
    transform: scale(1.1);
}
body.light-mode .social-icons-contact a:hover {
    color: #fff !important;
}
.contact-form-wrapper .form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}
.contact-form-wrapper .form-control {
    background-color: var(--form-control-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form-wrapper .form-control::placeholder {
    color: var(--form-control-placeholder-color);
    opacity: 0.7;
    transition: color 0.3s ease;
}
.contact-form-wrapper .form-control:focus {
    background-color: var(--form-control-focus-bg);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-blue-rgb), 0.25);
    color: var(--text-primary);
}
.contact-form-wrapper .text-danger {
    color: #e74c3c !important;
}
.contact-form-wrapper .btn-cta-green {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1rem;
}

/* ========================= Service Detail Page Specific Styles ========================= */
.service-detail-section {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.service-detail-section.bg-alternate {
    background-color: var(--bg-secondary);
}
.service-detail-image-wrapper {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}
.service-detail-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}
.service-detail-section:hover .service-detail-image-wrapper img,
.service-detail-image-wrapper:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.service-tag {
    display: inline-block;
    background-color: rgba(var(--brand-green-rgb), 0.15);
    color: var(--brand-green);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.service-detail-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}
.service-detail-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
}
.service-features-list li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    transition: color 0.2s ease, transform 0.2s ease-out;
}
.service-features-list li:hover {
    transform: translateX(-5px);
    color: var(--brand-green);
}
.service-features-list li i.fa-check-circle {
    color: var(--brand-green);
    margin-left: 10px;
    margin-top: 5px;
    flex-shrink: 0;
    transition: transform 0.2s ease-out;
}
.service-features-list li:hover i.fa-check-circle {
    transform: scale(1.1);
}


/* ========================= Why Choose Us Section Styles ========================= */
.why-choose-us-section {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.why-choose-us-section.bg-alternate {
    background-color: var(--bg-secondary);
}
.feature-box {
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    height: 100%;
    padding: 25px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.feature-icon .fas,
.feature-icon .fab {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
    color: var(--brand-green);
    transition: color 0.3s ease, transform 0.3s ease;
}
.feature-box:hover .feature-icon i {
    transform: translateY(-5px) scale(1.1);
    color: var(--brand-blue);
}
.feature-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

/* ========================= Floating Action Button (FAB) Styles ========================= */
.fab-whatsapp,
.fab-phone {
    position: fixed !important;
    width: 60px;
    height: 60px;
    right: 30px !important;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fab-whatsapp {
    bottom: 30px !important;
    background-color: #25D366;
    color: #FFF !important;
    font-size: 30px;
}

.fab-phone {
    bottom: 100px !important;
    background-color: var(--brand-blue);
    color: var(--bg-primary) !important;
    font-size: 24px;
    border: 1px solid var(--brand-blue);
}

.fab-whatsapp:hover,
.fab-phone:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

.fab-whatsapp:hover {
    background-color: #1DAE52;
}

.fab-phone:hover {
    background-color: color-mix(in srgb, var(--brand-blue) 80%, black);
}

body.light-mode .fab-phone {
    color: #FFF !important;
    background-color: #007bff;
    border-color: #0069d9;
}

body.light-mode .fab-phone:hover {
    color: #FFF !important;
    background-color: #0056b3;
}

/* Responsive FAB */
@media (max-width: 767.98px) {
    .fab-whatsapp,
    .fab-phone {
        width: 50px;
        height: 50px;
        right: 20px !important;
    }
    
    .fab-whatsapp {
        bottom: 20px !important;
        font-size: 24px;
    }
    
    .fab-phone {
        bottom: 80px !important;
        font-size: 20px;
    }
}

/* ========================= Portfolio Page Specific Styles (Detailed Cards) ========================= */
.portfolio-grid-detailed-section {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.portfolio-item-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--brand-blue-rgb), 0.15);
}
body.light-mode .portfolio-item-card:hover {
    box-shadow: 0 15px 35px rgba(var(--brand-blue-rgb), 0.2);
}

.portfolio-item-image-link {
    display: block;
    position: relative;
}

.portfolio-item-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #2c3643;
    position: relative;
}
body.light-mode .portfolio-item-image-wrapper {
    background-color: #e9ecef;
}

.portfolio-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.portfolio-item-card:hover .portfolio-item-image-wrapper img {
    transform: scale(1.08);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--brand-green-rgb), 0.3); /* شفافیت کمتر برای افکت ظریف */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* کلیک به لینک زیرین منتقل شود */
}
body.light-mode .portfolio-item-overlay {
    background-color: rgba(var(--brand-green-rgb), 0.4);
}

.portfolio-item-card:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.portfolio-item-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.5;
}
.portfolio-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.portfolio-item-card:hover .portfolio-item-title a {
    color: var(--brand-green);
}

.portfolio-item-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem; /* کمی فاصله اگر دکمه‌ای زیرش نیست */
    font-weight: 500;
}

/* ========================= Blog Page Specific Styles ========================= */
.blog-list-section {
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-shadow: 0 6px 18px var(--shadow-color);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease-in-out,
                background-color 0.3s ease, 
                border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(var(--brand-blue-rgb), 0.12);
}
body.light-mode .blog-card:hover {
    box-shadow: 0 12px 30px rgba(var(--brand-blue-rgb), 0.2);
}

.blog-card-image-link {
    display: block;
}

.blog-card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #2c3643;
    position: relative;
}

.blog-card-image-wrapper img.wp-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-card-content {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        180deg,
        var(--bg-card) 0%,
        color-mix(in srgb, var(--bg-card) 97%, var(--brand-blue)) 100%
    );
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-card-meta .category-link {
    color: var(--brand-green);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 12px;
    transition: color 0.3s ease;
}

.blog-card-meta .category-link:hover {
    color: var(--brand-blue);
}

.blog-card-meta .category-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-excerpt p {
    margin-bottom: 0;
}

.blog-card-author-info {
    border-top: 1px dashed rgba(var(--text-secondary-rgb), 0.1);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-author-info .author-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--brand-green);
    padding: 2px;
    transition: transform 0.3s ease;
}

.blog-card-author-info .author-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-author-info .author-name:hover {
    color: var(--brand-green);
}

/* Sidebar Styles */
.sidebar-blog {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.widget:not(:last-child) { /* به جای .sidebar-blog .widget:not(:last-child) */
    margin-bottom: 2.5rem;
}

.widget-title { /* این کلاس عمومی‌تر از .footer-widget .widget-title است */
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
    position: relative;
}

/* Search Widget */
.widget-search .search-form {
    display: flex;
    position: relative;
}
.widget-search .search-form .form-control {
    background-color: var(--form-control-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
    padding-right: 15px;
    border-left: none;
}
.widget-search .search-form .form-control:focus {
    background-color: var(--form-control-focus-bg);
    border-color: var(--brand-blue);
    box-shadow: none;
}
.widget-search .search-form .btn {
    border-radius: 0 20px 20px 0;
    padding: 0.55rem 1rem;
    border-left: 1px solid var(--brand-green); /* برای تطابق با فیلد */
}

/* Categories & Recent Posts Widget */
.widget-categories ul li,
.widget-recent-posts ul li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
    transition: border-color 0.3s ease;
}
.widget-categories ul li:last-child,
.widget-recent-posts ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.widget-categories ul li a,
.widget-recent-posts ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease, transform 0.3s ease;
}
.widget-categories ul li a:hover,
.widget-recent-posts ul li a:hover {
    color: var(--brand-green);
    transform: translateX(-5px);
}
.widget-categories ul li a span {
    margin-right: auto;
    font-size: 0.8em;
    background-color: rgba(var(--brand-green-rgb), 0.1);
    color: var(--brand-green);
    padding: 2px 6px;
    border-radius: 4px;
}

.recent-post-item a {
    display: flex;
    align-items: center;
}
.recent-post-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 15px;
    flex-shrink: 0;
}
.recent-post-content {
    flex-grow: 1;
}
.recent-post-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.3s ease;
}
.widget-recent-posts ul li a:hover .recent-post-title {
    color: var(--brand-green);
}
.recent-post-date {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

/* Tags Widget */
.tagcloud .tag-cloud-link {
    display: inline-block;
    background-color: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
    padding: 5px 12px;
    margin: 0 5px 8px 0;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.tagcloud .tag-cloud-link:hover {
    background-color: var(--brand-blue);
    color: var(--bg-primary);
}
body.light-mode .tagcloud .tag-cloud-link:hover {
    color: #fff;
}

/* Pagination Styles */
.pagination .page-item .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
    margin: 0 3px;
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--bg-primary);
    z-index: 2;
}
body.light-mode .pagination .page-item.active .page-link,
body.light-mode .pagination .page-item .page-link:hover {
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Remove wave effect overlay */
.wave-3d::after {
    display: none;
}

/* Add subtle gradient background */
.clients-section-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        var(--bg-secondary) 0%,
        transparent 10%,
        transparent 90%,
        var(--bg-secondary) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* ========================= WordPress Blog Specific Styles ========================= */
.blog-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-shadow: 0 6px 18px var(--shadow-color);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease-in-out,
                background-color 0.3s ease, 
                border-color 0.3s ease;
}

/* WordPress Featured Image Support */
.blog-card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #2c3643;
    position: relative;
}

.blog-card-image-wrapper img.wp-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* WordPress Content Styles */
.blog-card-content {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        180deg,
        var(--bg-card) 0%,
        color-mix(in srgb, var(--bg-card) 97%, var(--brand-blue)) 100%
    );
}

/* WordPress Categories and Tags */
.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-card-meta .category-link {
    color: var(--brand-green);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 12px;
    transition: color 0.3s ease;
}

.blog-card-meta .category-link:hover {
    color: var(--brand-blue);
}

.blog-card-meta .category-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
}

/* WordPress Post Title */
.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
}

/* WordPress Excerpt */
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-excerpt p {
    margin-bottom: 0;
}

/* WordPress Author Box */
.blog-card-author-info {
    border-top: 1px dashed rgba(var(--text-secondary-rgb), 0.1);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-author-info .author-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--brand-green);
    padding: 2px;
    transition: transform 0.3s ease;
}

.blog-card-author-info .author-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-author-info .author-name:hover {
    color: var(--brand-green);
}

/* WordPress Sidebar Widgets */
.widget {
    margin-bottom: 2.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
    position: relative;
}

/* WordPress Search Widget */
.wp-block-search,
.widget_search {
    margin-bottom: 2rem;
}

.wp-block-search .wp-block-search__input,
.search-form .search-field {
    background-color: var(--form-control-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 25px;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
    transition: all 0.3s ease;
}

.wp-block-search .wp-block-search__button,
.search-form .search-submit {
    background-color: var(--brand-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* WordPress Categories Widget */
.widget_categories ul,
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li,
.widget_recent_entries li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
}

.widget_categories li:last-child,
.widget_recent_entries li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_categories a,
.widget_recent_entries a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease, transform 0.3s ease;
}

.widget_categories a:hover,
.widget_recent_entries a:hover {
    color: var(--brand-green);
    transform: translateX(-5px);
}

/* WordPress Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tag-cloud-link {
    display: inline-block;
    background-color: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tag-cloud-link:hover {
    background-color: var(--brand-blue);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* WordPress Pagination */
.navigation.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.navigation.pagination .nav-links {
    display: flex;
    gap: 5px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--bg-primary);
}

/* WordPress Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    background-color: var(--form-control-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"] {
    background-color: var(--brand-green);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* WordPress Editor Content */
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.wp-block-quote {
    border-right: 4px solid var(--brand-green);
    padding-right: 1.5rem;
    margin: 2rem 0;
}

.wp-block-code {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

 