:root {
    --primary-color: #1a1a1a;
    --primary-rgb: 26, 26, 26;
    --accent-color: #e63946;
    --accent-rgb: 230, 57, 70;
    --bg-light: #f8f9fa;
    --text-color: #333;
    --bg-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --blur-amount: 16px;
    --font-main: 'Inter', sans-serif;
    /* Assumption: Font loaded or system fallback */
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #f4f4f4;
    /* Subtle off-white for depth */
    overflow-x: hidden;
}

/* Reset basics */
h1,
h2,
h3,
p {
    margin: 0 0 1rem 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky Glass Header */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1100px;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Admin Bar Adjustments */
body.admin-bar .site-header {
    top: 70px;
    /* 32px (WP Bar) + 20px (Margin) */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 70px;
        /* 46px (WP Bar Mobile) + 20px */
    }
}

/* Scrolled State */
.site-header.scrolled {
    top: 10px !important;
    /* Force tighter top */
}

body.admin-bar .site-header.scrolled {
    top: 42px !important;
    /* Adjust for Admin Bar when scrolled (32px bar + 10px margin) */
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header.scrolled {
        top: 56px !important;
        /* Mobile Bar + 10px */
    }
}

.header-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

/* Constrain Header Logo */
.site-branding img,
.custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}

.header-container h1 {
    margin: 0;
}

.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.main-navigation a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {

    /* Header Alignment */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: 20px;
    }

    /* BURGER Button (Opener) */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        padding: 5px;
        z-index: 100;
        cursor: pointer;
    }

    /* Hide Desktop specific items */
    .desktop-text,
    .desktop-only,
    .main-navigation {
        display: none !important;
    }

    /* Mobile CTA Icon in Header */
    .mobile-icon {
        display: block !important;
        font-size: 1.2rem;
        line-height: 1;
        color: #fff;
    }

    .header-actions .btn-sm {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--primary-color);
        flex-shrink: 0;
    }

    /* =========================================
       MOBILE POPUP MENU (Overlay)
       ========================================= */
    .mobile-menu-popup {
        position: fixed;
        inset: 0;
        /* Top, Right, Bottom, Left: 0 */
        background-color: #fff;
        z-index: 20000;
        /* Highest z-index */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        transform: scale(1.05);
        /* Effect zoom out */
    }

    .mobile-menu-popup.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    /* Close Button (Cross) */
    .popup-header {
        position: absolute;
        top: 50px;
        right: 50px;
    }

    .close-menu {
        background: transparent;
        border: none;
        width: 40px;
        height: 40px;
        cursor: pointer;
        position: relative;
    }

    .close-menu .icon-bar {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 25px;
        height: 2px;
        background-color: #000;
        display: block;
    }

    .close-menu .icon-bar:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .close-menu .icon-bar:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* Navigation Content */
    .popup-content {
        width: 100%;
        max-width: 400px;
        padding: 40px;
        text-align: center;
    }

    .mobile-navigation ul {
        list-style: none;
        padding: 0;
        margin: 0 0 40px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-navigation a {
        font-size: 20px;
        color: #111;
        text-decoration: none;
        transition: color 0.3s;
    }

    .mobile-navigation a.btn {
        color: #fff;
        font-weight: normal;
        font-size: 20px;
    }

    .mobile-navigation a:hover {
        color: var(--primary-color);
    }

    /* Mobile CTA inside menu */
    .mobile-cta {
        display: inline-flex;
        padding: 15px 40px;
        font-size: 1.1rem;
        background: var(--primary-color);
        color: #fff;
        border-radius: 50px;
        margin-top: 20px;
    }

    /* Prevent body scroll */
    body.menu-open {
        overflow: hidden;
    }
}

.header-actions {
    margin-left: 20px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Fill the section height */
    min-height: 80vh;
    /* Ensure it takes at least 80vh if parent constraints fail */
    padding-top: 100px;
    /* Offset for top spacing */
    padding-bottom: 40px;
    box-sizing: border-box;
}

.hero-main-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Dynamic Tech Grid Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* Abstract Animated Shapes */
.shape {
    position: absolute;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
    animation: floatShape 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    top: -15%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    /* Purple */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.shape-3 {
    top: 20%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
    /* Pink */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 20px) rotate(8deg);
    }
}

@keyframes bgPulse {

    /* Keeping explicitly if used elsewhere, else redefined above */
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .highlight,
.cta-title .highlight {
    background: linear-gradient(135deg, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 0;
    /* Reset margins as flex handles spacing */
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: row;
    /* Icon left */
    align-items: center;
    gap: 10px;
    color: #444;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.6);
}

.feature-icon-small svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: var(--accent-color);
}

.feature-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Bottom Group (CTA + Badge) */
.hero-bottom-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.codeur-note {
    opacity: 0.9;
    transition: opacity 0.3s;
}

.codeur-note:hover {
    opacity: 1;
}

/* Trust Section & Social Proof */
.trust-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    z-index: 10;
}

.social-proof-highlight {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    gap: 30px;
}

.proof-badge {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.proof-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.highlight-text {
    color: #3b82f6;
}

.proof-content p {
    color: #666;
    margin-bottom: 5px;
}

.proof-widget {
    margin-left: auto;
    /* Push to the right */
    flex-shrink: 0;
}

.proof-widget img {
    display: block;
    max-height: 80px;
    /* Reasonable height constraint */
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.link-arrow svg {
    transition: transform 0.3s;
}

.link-arrow:hover svg {
    transform: translateX(5px);
}

/* Static Logos */
.trust-logos-static {
    padding-bottom: 80px;
    text-align: center;
    /* Fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 80px;
    /* Generous spacing */
}

.logo-item {
    opacity: 0.4;
    /* Subtle default state */
    transition: all 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-item img {
    height: 32px;
    /* Elegant size */
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Services Section - White Premium */
.services-section {
    padding: 0 0 120px;
    /* Symmetric padding top/bottom */
    background: #ffffff;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Fix container height & bleeding */
}

/* Subtle Animated Mesh Gradient Background */
.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(100px);
    z-index: 0;
    animation: pulseGradient 10s infinite alternate;
}

@keyframes pulseGradient {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.services-grid {
    display: grid;
    /* Force 4 columns on large screens to avoid the 3+1 orphan */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 0;
    /* Remove top margin to avoid padding confusion */
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 in a row on desktop */
    }
}

.service-card {
    box-sizing: border-box;
    /* SAFETY FIX */
    background: #fff;
    padding: 50px 40px 60px;
    /* More bottom padding for the CTA */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    /* Subtle Border by default */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    /* height: 100%; REMOVED to let Grid handle stretch properly without overflow */
}

/* Animated Gradient Border via pseudo-element */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(45deg, #FF3D77, #338AFF, #8E00FF);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Soft color wash on hover */
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.02), transparent 40%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

/* Icon Design - Floating with distinctive shadow */
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f4f6f8;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.12);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
    letter-spacing: -0.02em;
}

.service-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Link Arrow Animation - Simple Text */
.service-link {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    /* Removed padding */
    background: transparent;
    /* Removed bg */
    border-radius: 0;
    /* Removed radius */
    align-self: flex-start;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-link::after {
    content: "→";
    display: inline-block;
    transition: transform 0.3s;
}

.service-card:hover .service-link {
    background: transparent;
    color: var(--accent-color);
    gap: 12px;
    transform: translateX(0);
    /* Removed block translation */
}

.service-card:hover .service-link::after {
    transform: translateX(5px);
}

/* Services Page Styles Refined V2 */
.page-services {
    padding-top: 0;
}

/* Hero Refined (Light with Home Shapes) */
.services-hero-refined {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: transparent;
    /* Let .hero-bg handle the background */
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.services-hero-refined .hero-bg {
    /* No opacity override - use original home style */
}

.services-hero-refined .hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    min-height: inherit;
}

.services-hero-refined .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
    /* Black text */
}

.services-hero-refined .hero-subtitle {
    font-size: 1.25rem;
    color: #000;
    /* Pure black subtitle */
    max-width: 650px;
    margin: 0 auto 30px;
    font-weight: 500;
}

/* Service Detail Sections */
.service-detail-section {
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
}

.service-detail-section.alt-bg {
    background: #f8f9fa;
}

.service-detail-row {
    display: flex;
    align-items: center;
    gap: 100px;
}

.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1.2;
    /* Slightly more space for text */
}

.service-visual {
    flex: 0.8;
    position: relative;
}

/* Typography & Content */
.service-icon-lg {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    width: 80px;
    height: 80px;
    background: rgba(var(--accent-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.service-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-text .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.service-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* List Alignment Fix */
.service-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.service-features li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
    /* Space for the absolute/relative icon */
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.85em;
    position: absolute;
    left: 0;
    top: 6px;
}

.service-features strong {
    color: #111;
    font-weight: 700;
}

/* Visual Cards (Images & Placeholders) */
.visual-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.visual-card:hover {
    transform: translateY(-10px);
}

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

/* Placeholders */
.placeholder-visual {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    gap: 20px;
}

.placeholder-visual i {
    font-size: 4rem;
    opacity: 0.8;
}

.gradient-design {
    background: linear-gradient(135deg, #FF3D77, #8E00FF);
}

.gradient-dev {
    background: linear-gradient(135deg, #338AFF, #3b82f6);
}

.gradient-security {
    background: linear-gradient(135deg, #00C9A7, #008E9B);
}


/* Responsive */
@media (max-width: 991px) {

    .service-detail-row,
    .service-detail-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .service-features li {
        justify-content: center;
    }

    .service-icon-lg {
        margin: 0 auto 30px;
    }
}

/* Contact Page Styles */

.contact-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: #fff;
}

.contact-hero .page-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-hero .page-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.contact-content-section {
    padding: 120px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}



/* Contact Info Box */
.contact-info {
    padding: 40px;
    background: #111;
    color: #fff;
    border-radius: 30px;
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.contact-info .info-intro {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.info-item .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s;
}

.info-item .value:hover {
    color: var(--accent-color);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    padding: 50px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info {
    position: sticky;
    top: 100px;
}

.admin-bar .contact-info {
    top: 132px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* CF7 Custom Styling */
.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-submit {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.wpcf7-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* CF7 Spinner & Response */
.wpcf7-spinner {
    position: absolute;
    margin-top: 25px;
    margin-left: 15px;
}

.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 15px 20px !important;
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Portfolio Section Styles */
.portfolio-section {
    padding: 100px 0;
    background: #111;
    /* Dark contrasting background */
    color: #fff;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.section-subtitle.black {
    color: #000;
}

.portfolio-grid {
    display: none;
    /* Remove legacy grid */
}

/* Sticky Stack Styles */
.portfolio-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Space between cards in flow */
    padding-bottom: 100px;
}

.sticky-card {
    position: sticky;
    top: calc(100px + (var(--card-index) * 20px));
    /* Staggered sticky top */
    background: #1a1a1a;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    /* Shadow projecting upwards */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: center top;
    transition: transform 0.5s ease;
}

.card-inner {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.project-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.project-visual {
    flex: 1.5;
    background: #222;
    position: relative;
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-card:hover .project-visual img {
    transform: scale(1.05);
}

.project-cat {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.project-desc {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
}

.project-stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

/* Specific Card Colors for variation if needed, or keep uniform dark */
.sticky-card:nth-child(1) {
    background: #1a1a1a;
}

.sticky-card:nth-child(2) {
    background: #1f1f1f;
}

.sticky-card:nth-child(3) {
    background: #242424;
}

@media (max-width: 900px) {
    .card-inner {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .project-visual {
        height: 300px;
        flex: none;
    }

    .project-content {
        padding: 40px 30px;
    }

    .project-title {
        font-size: 2rem;
    }

    .sticky-card {
        top: calc(80px + (var(--card-index) * 10px));
    }
}

/* Glassy Team Section */
.team-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.team-section .section-subtitle {
    color: #666;
    /* Fix visibility on light background */
}

/* Background blob for fun */
.team-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.team-glass-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.glass-profile {
    position: relative;
    flex: 1;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-profile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.glass-profile:hover .profile-img {
    transform: scale(1.1);
}

.profile-overlay-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.profile-info-glass {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 20px;
    color: #fff;
    transform: translateY(0);
}

.profile-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .team-glass-container {
        flex-direction: column;
        height: auto;
    }

    .left-profile {
        margin-top: 0;
    }

    .glass-profile {
        height: 400px;
    }
}

/* CTA Closer Section */
.cta-closer-section {
    padding: 160px 0;
    background: #ffffff;
    color: #111;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle modern background design */
.cta-closer-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-closer-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

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

.cta-title {
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111;
    background: none;
    /* Reset gradient */
    -webkit-text-fill-color: initial;
    letter-spacing: -2px;
}

.cta-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 60px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.magnetic-btn {
    display: inline-block;
    position: relative;
    padding: 25px 60px;
    background: #111;
    /* Dark button on light bg */
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.magnetic-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.btn-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000;
    /* Slightly darker on hover or accent */
    z-index: -1;
    transition: width 0.4s ease;
}

.magnetic-btn:hover .btn-fill {
    width: 100%;
}

.magnetic-btn:hover {
    color: #fff;
}

/* Luxury Footer */
.site-footer-luxury {
    background: #0a0a0a;
    color: #fff;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    /*grid-template-columns: 2fr 1fr 1fr 1.5fr;*/
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    text-align: center;
    justify-content: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-custom-logo {
    max-height: 40px;
    /* Constrain height */
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #444;
    margin-bottom: 30px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-text {
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-email {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.legal-links a {
    color: #444;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

.footer-watermark {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cta-title {
        font-size: 3rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        margin-top: 10px;
    }

    .legal-links a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .social-proof-highlight {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .site-header {
        width: calc(100% - 20px);
        top: 10px;
    }

    .header-container {
        padding: 10px 15px;
    }
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-sticky:visited {
    color: #fff;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    background-color: #20b857;
    /* Slightly darker on hover */
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-sticky i {
    margin-top: 2px;
    /* Optical adjustment */
}

/* Tooltip on Hover */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-sticky:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (min-width: 901px) {
    .mobile-menu-popup {
        display: none;
    }
}

@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .whatsapp-tooltip {
        display: none;
        /* Hide tooltip on mobile */
    }

    .contact-content-section {
        padding: 50px 0;
    }

    .contact-info {
        position: relative;
        top: inherit;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .admin-bar .contact-info {
        top: inherit;
    }

    .simple-content-section.section-padding {
        padding: 60px 0;
    }

    .footer-col.brand-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Simple Page Content Style */
.simple-content-section.section-padding {
    padding: 120px 0;
}

.glass-panel {
    /*background: var(--glass-bg, rgba(255, 255, 255, 0.65));*/
    backdrop-filter: blur(var(--blur-amount, 16px));
    -webkit-backdrop-filter: blur(var(--blur-amount, 16px));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.3));
    border-radius: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-accordion .faq-item {
    background: #fff;
    border-radius: 24px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.faq-accordion .faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, #FF3D77, #338AFF, #8E00FF);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.faq-accordion .faq-item:hover,
.faq-accordion .faq-item.active {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.faq-accordion .faq-item:hover::before,
.faq-accordion .faq-item.active::before {
    opacity: 1;
}

.faq-question {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    position: relative;
    z-index: 2;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    padding-right: 20px;
    line-height: 1.4;
    transition: color 0.3s;
}

.faq-accordion .faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f4f6f8;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.faq-accordion .faq-item:hover .faq-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.12);
}

.faq-accordion .faq-item.active .faq-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.12);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
    z-index: 2;
}

.faq-answer-inner {
    padding: 0 40px 35px;
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 25px 30px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
    }

    .faq-answer-inner {
        padding: 0 30px 25px;
    }
}

/* =========================================
   SINGLE ARTICLE (BLOG POST) 
   ========================================= */
.article-main {
    background: #fdfdfd;
}

/* Hero Article */
.article-header {
    position: relative;
    padding: 180px 0 100px;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #111;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 10s ease;
}

.article-header:hover .article-hero-img {
    transform: scale(1.05);
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.4) 50%, rgba(17, 17, 17, 0.1) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.article-category-badge {
    background: linear-gradient(135deg, #FF3D77, #8E00FF);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 61, 119, 0.3);
}

.article-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.author-name strong {
    color: #fff;
}

/* Article Content */
.article-content-wrapper {
    background: #fff;
    border-radius: 24px;
    padding: 60px 80px;
    margin: -60px auto 100px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    max-width: 1060px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
    .article-content-wrapper {
        padding: 40px 30px;
        margin-top: -30px;
    }

    .article-title {
        font-size: 2.2rem;
    }
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.article-content h2,
.article-content h3 {
    color: #111;
    font-weight: 800;
    margin: 2em 0 1em;
    letter-spacing: -0.01em;
}

.article-content h2 {
    font-size: 2rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2em 0;
}

.article-content blockquote {
    margin: 2em 0;
    padding: 30px 40px;
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: #333;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

/* Related Articles Grid */
.related-articles-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.related-articles-section .section-header {
    text-align: left;
    margin-bottom: 50px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.related-article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.related-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

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

.related-article-card:hover .card-img {
    transform: scale(1.08);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111, #333);
}

.card-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
    line-height: 1.3;
}

.card-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-read-more {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.card-read-more i,
.card-read-more svg {
    transition: transform 0.3s ease;
}

.related-article-card:hover .card-read-more {
    color: var(--accent-color);
}

.related-article-card:hover .card-read-more i,
.related-article-card:hover .card-read-more svg {
    transform: translateX(5px);
}

/* ==================== */
/* Blog Article - Visual Blocks */
/* ==================== */

.sqai-media-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 0;
    background: none;
    border: none;
}

.sqai-media-block--reversed {
    flex-direction: row-reverse;
}

.sqai-media-block__image {
    flex: 0 0 45%;
    max-width: 45%;
}

.sqai-media-block__image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.sqai-media-block__content {
    flex: 1;
}

.sqai-media-block__content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.sqai-media-block__content p {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0 0 10px 0;
}

.sqai-media-block__content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.sqai-media-block__content li {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin-bottom: 6px;
}

/* Highlight block (chiffre clé, stat, citation) */
.sqai-highlight {
    margin: 35px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-color), #2d2d2d);
    border-radius: 14px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sqai-highlight::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.15;
}

.sqai-highlight__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}

.sqai-highlight p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Comparison table */
.sqai-table-wrapper {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sqai-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.sqai-table-wrapper thead {
    background: var(--primary-color);
}

.sqai-table-wrapper th {
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.sqai-table-wrapper td {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #444;
}

.sqai-table-wrapper tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* CTA inline */
.sqai-cta-inline {
    margin: 35px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fef3f3, #fff);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
}

.sqai-cta-inline p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.sqai-cta-inline a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.sqai-cta-inline a:hover {
    background: #c62e3a;
}

/* Placeholder images (avant génération) */
.sqai-media-block__image img[src="#"],
.sqai-media-block__image img[src=""] {
    background: linear-gradient(135deg, #f0f0f1, #e4e4e4);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .sqai-media-block {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .sqai-media-block--reversed {
        flex-direction: column;
    }

    .sqai-media-block__image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .sqai-media-block__image img {
        height: 200px;
    }

    .sqai-highlight__number {
        font-size: 2rem;
    }
}

/* ==================== */
/* Home - Blog Section  */
/* ==================== */

.home-blog-section {
    padding: 80px 0;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.home-blog-cta {
    text-align: center;
}

@media (max-width: 900px) {
    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==================== */
/* Blog Page Template   */
/* ==================== */

.blog-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
    background: var(--primary-color);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filtres catégories */
.blog-filters {
    padding: 30px 0 0;
    background: #fff;
    position: sticky;
    top: 70px;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.blog-filter-item {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.blog-filter-item:hover {
    color: var(--primary-color);
    background: #eee;
}

.blog-filter-item.active {
    background: var(--primary-color);
    color: #fff;
}

/* Article mis en avant */
.blog-featured {
    padding: 50px 0 20px;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.blog-featured-image {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

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

.blog-featured-card:hover .featured-img {
    transform: scale(1.05);
}

.blog-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
}

.blog-featured-content {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.blog-category-badge {
    background: var(--accent-color);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
}

.blog-featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 14px;
}

.blog-featured-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: gap 0.3s ease;
}

.blog-featured-card:hover .blog-read-more {
    gap: 14px;
}

/* Grille d'articles */
.blog-grid-section {
    padding: 40px 0 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 24px 28px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card-date,
.blog-card-reading {
    font-size: 0.8rem;
    color: #999;
}

.blog-card-reading {
    position: relative;
    padding-left: 14px;
}

.blog-card-reading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-link {
    gap: 12px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 50px 0 20px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover {
    background: #eee;
    color: var(--primary-color);
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.blog-pagination .prev,
.blog-pagination .next {
    background: none;
}

.blog-pagination .prev:hover,
.blog-pagination .next:hover {
    background: #f5f5f5;
}

/* État vide */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-empty p {
    color: #666;
    margin-bottom: 24px;
}

/* CTA Section */
.blog-cta-section {
    padding: 40px 0 80px;
}

.blog-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color), #2d2d2d);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
}

.blog-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta .btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-hero {
        padding: 120px 0 50px;
    }

    .blog-hero-title {
        font-size: 2.2rem;
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 240px;
    }

    .blog-featured-content {
        padding: 28px 24px;
    }

    .blog-featured-title {
        font-size: 1.4rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-filters {
        top: 60px;
    }

    .blog-filter-bar {
        gap: 6px;
    }

    .blog-cta {
        padding: 40px 24px;
    }

    .blog-cta h2 {
        font-size: 1.5rem;
    }
}
}