/* Variables & Design System - Premium Professional */
:root {
    /* Primary Color Palette - Trust & Authority */
    --primary-color: #002c5f;
    /* Deep Navy Blue */
    --secondary-color: #0056b3;
    /* Vibrante Blue */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #bfa030;

    /* Neutrals */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #596275;

    /* Backgrounds */
    --bg-body: #f8f9fa;
    --white: #ffffff;
    --bg-off-white: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Editorial System Tokens */
    --article-font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    /* 18px to 20px fluid */
    --article-line-height: 1.85;
    --article-max-width: 75ch;
    --article-spacing-y: 2rem;
    --color-surface: #ffffff;
    --color-text-main: #2d3748;
    --color-text-muted: #718096;
    --color-accent-soft: rgba(212, 175, 55, 0.1);

    /* Effects */
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother transition */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.8rem, 8vw, 3.2rem);
}

h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
}

p {
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: clamp(2rem, 8vw, 4rem) 0;
}

.text-center {
    text-align: center;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 1.5rem;
    /* Space between columns */
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        /* Stack columns on smaller screens */
    }
}

/* Header & Navigation - Trust & Security Theme */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
    height: 60px;
    /* Slim Fixed Height */
    display: flex;
    align-items: center;
}

/* Remove Scrolled Logic (Reverting Transparency) */
/* Text Colors: Dark (Default) */
.nav-link {
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 51, 102, 0.05);
    /* Subtle hover */
}

.logo {
    color: var(--primary-color);
}

.mobile-menu-btn {
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Styles - Stacked */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 0.9;
    /* Tight spacing */
    text-transform: uppercase;
}

.logo span {
    display: block;
}

.logo-accent {
    color: var(--accent-color);
    font-size: 0.8em;
    /* Slightly smaller for the bottom line if desired, or same */
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    /* Significantly reduced */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

/* Hide nav links sooner to prevent broken layout on smaller laptops */
@media (max-width: 1250px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        padding: 30px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 999;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a.nav-link {
        font-size: 1rem;
        padding: 15px 20px;
        display: block;
        letter-spacing: 0.5px;
    }

    /* Highlight Phone Number on Mobile */
    .nav-links a[href^="tel"] {
        background-color: #f8f9fa;
        color: var(--primary-color);
        font-weight: 800 !important;
        border-radius: 50px;
        margin: 0 auto;
        width: fit-content;
        padding: 12px 24px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .btn-nav-primary {
        margin: 10px auto;
        width: fit-content;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        margin-right: 1rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* Reduced from 3rem */
    }

    h2 {
        font-size: 2rem;
        /* Reduced from 2.25rem */
    }

    .section-padding {
        padding: 3rem 0;
        /* Compact padding */
    }
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.75rem;
    /* Reduced significantly */
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 8px;
    /* Reduced padding */
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
    /* CRITICAL: Force single line */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 51, 102, 0.05);
    /* Subtle active state background */
}

.highlight-text {
    color: var(--primary-color) !important;
}

/* Agent Access Button - Solid Pill for Authority */
.btn-nav-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    /* Solid Blue */
    /* Solid Blue */
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    /* Reduced vertical padding */
    border-radius: 4px;
    font-weight: 600 !important;
    font-size: 0.75rem;
    /* Slightly smaller text */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
    margin-left: 10px;
    white-space: nowrap;
    /* Prevent text wrap */
    height: 36px;
    /* Fixed height for consistency */
}

.btn-nav-primary:hover {
    background-color: #002244;
    /* Darker blue on hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
}

.btn-nav-primary i {
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.6rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-btn:active {
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Section - Redesigned */
.hero {
    background: linear-gradient(135deg, rgba(0, 44, 95, 0.9) 0%, rgba(0, 31, 63, 0.85) 100%), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: clamp(3rem, 10vw, 5rem) 0;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
}

@media (max-width: 768px) {
    .hero {
        clip-path: none;
        /* Remove clip-path on mobile for cleaner look */
        padding: 4rem 0 3rem;
    }
}

/* Enhanced overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 44, 95, 0.92) 0%,
            rgba(0, 31, 63, 0.88) 50%,
            rgba(0, 44, 95, 0.90) 100%);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    /* Optimized: Reduced from 4rem */
    position: relative;
    z-index: 2;
}

/* Hero Text */
.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero h1 {
    color: var(--text-light);
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-badges {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero-badges span {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.hero-badges span i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Enhanced CTA Styles for Better Conversion */
.hero-cta-group .btn-secondary {
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: none;
}

.hero-cta-group .btn-secondary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.hero-cta-group .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-cta-group .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Form - Glassmorphism */
.hero-form-wrapper {
    flex: 0 1 550px;
    /* Changed to flex-shrink:1 and max-width below */
    z-index: 10;
    max-width: 100%;
    margin: 0 auto;
}



.hero-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1rem, 3vw, 2rem);
    /* Fluid padding */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-form-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.hero-form-card p {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Hero Form Compact Grid */
.form-row {
    display: flex;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.form-row .input-group {
    flex: 1;
}

.form-row .input-group {
    flex: 1;
}



/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 1rem;
    /* Reduced margin */
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.5;
    font-size: 1.1rem;
    pointer-events: none;
}

.hero-form-card input,
.hero-form-card select {
    width: 100%;
    box-sizing: border-box;
    /* Prevent padding from increasing width */
    padding: 10px 10px 10px 45px;
    /* Compact Padding */
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.95rem;
    /* Slightly smaller text */
    height: 44px;
    /* Explicit compact height */
    background: #f8f9fa;
    transition: var(--transition);
    color: var(--text-dark);
    font-family: var(--font-main);
}

.hero-form-card input:focus,
.hero-form-card select:focus {
    background: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-height: 48px;
    /* Professional touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 44, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 44, 95, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   HERO SECTION SYSTEM - PROFESSIONAL & CONSISTENT
   ============================================ */

/* Service Hero & Page Hero - Unified System */
.service-hero,
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 0;
    /* Consistent with homepage hero */
    color: var(--text-light);
    display: flex;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
}

/* Dark Overlay for Maximum Readability - Applied to ALL heroes */
.service-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 31, 63, 0.92) 0%,
            rgba(0, 44, 95, 0.88) 100%);
    /* Professional dark overlay with subtle gradient for depth */
    z-index: 1;
}

/* Content Above Overlay */
.service-hero .container,
.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Typography Hierarchy - White text for maximum contrast */
.service-hero h1,
.page-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.service-hero p,
.page-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.6;
}

/* CTA Button in Service Hero */
.service-hero .btn,
.page-hero .btn {
    margin-top: 1rem;
}

/* Responsive Service Hero */
@media (max-width: 768px) {

    .service-hero,
    .page-hero {
        padding: 3.5rem 0;
        min-height: 320px;
    }

    .service-hero h1,
    .page-hero h1 {
        font-size: 2.25rem;
    }

    .service-hero p,
    .page-hero p {
        font-size: 1.1rem;
    }
}

/* ============================================ */
/* PROFESSIONAL EDITORIAL SYSTEM (PROSE)        */
/* ============================================ */

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
        /* Main Content | TOC Sidebar */
    }
}

.prose-container {
    background: var(--color-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: clamp(1.5rem, 5vw, 4rem);
    max-width: 100%;
}

.prose {
    font-size: var(--article-font-size);
    line-height: var(--article-line-height);
    color: var(--color-text-main);
    max-width: var(--article-max-width);
    margin: 0 auto;
}

/* Vertical Rhythm */
.prose>*+* {
    margin-top: var(--article-spacing-y);
}

.prose h1,
.prose h2,
.prose h3 {
    color: var(--primary-color);
    font-family: var(--font-main);
    line-height: 1.2;
    margin-top: 3.5rem;
}

.prose h2 {
    font-size: 2rem;
    font-weight: 800;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose p:first-of-type {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 500;
}

/* Lists */
.prose ul,
.prose ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.75rem;
}

/* Components: Callouts */
.editorial-callout {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.25rem;
    border-left: 5px solid;
}

.editorial-callout i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.callout-info {
    background: #ebf8ff;
    border-color: #3182ce;
    color: #2c5282;
}

.callout-alert {
    background: #fff5f5;
    border-color: #e53e3e;
    color: #9b2c2c;
}

.callout-tip {
    background: #f0fff4;
    border-color: #38a169;
    color: #22543d;
}

/* Key Takeaways */
.key-takeaways {
    background: #fdfaf0;
    border: 1px solid #f3e5ab;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
}

.key-takeaways h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8860b;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pull Quote */
.pull-quote {
    font-size: 1.75rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 0 1rem 2rem;
    margin: 4rem 0;
    font-weight: 300;
}

/* Table of Contents (TOC) */
.toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
}

.toc-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    border-left-color: var(--accent-color);
    background: rgba(0, 51, 102, 0.02);
}

.toc-list .toc-h3 {
    margin-left: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 1023px) {
    .toc-sidebar {
        display: none;
    }

    /* Handle mobile TOC differently if needed, or hide */
    .mobile-toc {
        background: #fdfaf0;
        border: 1px solid #f3e5ab;
        border-radius: 12px;
        margin-bottom: 2rem;
        overflow: hidden;
    }

    .mobile-toc-header {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: 700;
        color: var(--primary-color);
        background: rgba(212, 175, 55, 0.05);
    }

    .mobile-toc-body {
        padding: 0 1.5rem 1.5rem;
        display: none;
    }

    .mobile-toc.active .mobile-toc-body {
        display: block;
    }

    .mobile-toc.active .mobile-toc-header i {
        transform: rotate(180deg);
    }
}

/* ============================================
   FEATURE CARDS SYSTEM - CONSISTENT DESIGN
   ============================================ */

.feature-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Force center alignment for flex items */
    position: relative;
    text-align: center;
}

/* Borde azul superior distintivo - igual que service-card */
.feature-card::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

/* Contenedor de icono/imagen */
.feature-card-media {
    padding: 2.5rem 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    display: block !important;
    margin: 0 auto 1.25rem auto !important;
    text-align: center;
}

.feature-card h3 {
    padding: 0 1.5rem;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
}

.feature-card p {
    padding: 0 2rem 2.5rem;
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

/* Services Grid - Premium Cards */
.services {
    background-color: var(--bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 350px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 3rem;
}

/* COMPACT SINGLE ROW LAYOUT (User Request) */
.services-grid {
    display: grid;
    /* Force 3 columns on desktop, ensuring single row */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 0 1rem;
}

/* 4 Columns for Why Choose Us on Desktop */
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Make Compact */
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Blue Header for Cards */
.service-card::before {
    content: '';
    display: block;
    height: 4px;
    /* Thinner */
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 100%;
}

.service-card h3 {
    padding: 0.75rem 0.75rem 0.25rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.service-card img {
    height: 120px;
    /* Compact Image */
    object-fit: cover;
    margin: 0.5rem 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: 6px;
    grid-area: image;
}

.service-card p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    /* Compact text */
    color: var(--text-gray);
    flex-grow: 1;
    line-height: 1.5;
}

/* Stack on Mobile */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

.quote-btn {
    width: 100%;
    padding: 1rem;
    background: #f8f9fa;
    border: none;
    border-top: 1px solid #eee;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-top: auto;
}

.service-card:hover .quote-btn {
    background: var(--primary-color);
    color: white;
}

/* Why Choose Us - Premium Cards (FIXED) */
.benefit-card-premium {
    background: white;
    padding: clamp(1.5rem, 5vw, 2.5rem) 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon-premium {
    font-size: 3.5rem;
    color: #0056b3;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
}

.benefit-icon-premium i {
    font-size: 4rem;
    color: #0056b3;
}

.benefit-card-premium h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #002c5f;
    font-weight: 800;
}

.benefit-card-premium p {
    font-size: 1rem;
    color: #596275;
    line-height: 1.6;
    margin: 0;
}


/* Lead Generation Section (FIXED) */
.lead-section {
    background-color: white;
}

.lead-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
    /* Optimized: Reduced from 4rem */
}

.lead-text {
    flex: 1;
    min-width: 300px;
}

.lead-text h2 {
    margin-bottom: 1.5rem;
}

.lead-form-inline {
    flex: 1;
    background: var(--bg-off-white);
    padding: 2.5rem;
    border-radius: 12px;
}

.lead-form-inline form {
    display: grid;
    gap: 1rem;
}

.lead-form-inline .form-group {
    margin-bottom: 0;
}

.lead-form-inline label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.lead-form-inline input,
.lead-form-inline select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
    color: var(--text-dark);
    font-family: var(--font-main);
}

.lead-form-inline input:focus,
.lead-form-inline select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 44, 95, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 44, 95, 0.3);
}

/* Breadcrumbs - Professional & Compact */
/* Breadcrumbs - Premium Professional Style */
.breadcrumb {
    background-color: #ffffff !important;
    padding: 0.75rem 0 !important;
    border-top: 3px solid var(--secondary-color) !important;
    /* Premium Gold Top Accent */
    border-bottom: 1px solid #eef2f6 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.breadcrumb-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    /* Forces items to stick together on the left */
    font-size: 0.85rem !important;
    gap: 12px !important;
    list-style: none !important;
    /* Fix for Bootstrap list-style */
    padding: 0 !important;
}

.breadcrumb-item {
    display: flex !important;
    align-items: center !important;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--text-gray);
    font-weight: 500;
    opacity: 0.8;
}

.breadcrumb-separator {
    color: #cbd5e0;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Footer - Dark & Corporate */
footer {
    background-color: #0b1c2e;
    /* Darker Navy */
    color: #a0aab5;
    padding: 3.5rem 0 2rem;
    /* Optimized: Reduced from 5rem for more compact layout */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    color: #a0aab5;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-info-item i {
    color: var(--accent-color);
    margin-top: 4px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Language Toggle */
.lang-toggle {
    margin-left: 1.5rem;
    border: 2px solid #e0e6ed;
    border-radius: 30px;
    padding: 3px;
}

.lang-toggle button {
    border: none;
    background: transparent;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle button.active {
    background: var(--primary-color);
    color: white;
}

/* --- REVEAL ON SCROLL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.1s;
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered delay for grid items */
.pillars-grid .pillar-card:nth-child(2) {
    transition-delay: 0.2s;
}

.pillars-grid .pillar-card:nth-child(3) {
    transition-delay: 0.3s;
}

.pillars-grid .pillar-card:nth-child(4) {
    transition-delay: 0.4s;
}

.testimonials-grid .testimonial-card:nth-child(2) {
    transition-delay: 0.2s;
}

.testimonials-grid .testimonial-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Agent Cards Section - Restored & Refined */
.agent-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 2rem;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.agent-header {
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    margin-bottom: 70px;
    /* Increased to give space for avatar */
    flex-shrink: 0;
}

.agent-img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    /* Thicker border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    /* PERFECT CENTERING */
    overflow: hidden;
    background: white;
    z-index: 2;
}

.agent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    /* Slightly higher than true center for portraits */
}

.agent-body {
    padding: 0 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agent-body h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    width: 100%;
}

.agent-role {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-bio {
    padding: 0 0.5rem;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.agent-footer {
    padding: 0 1.5rem;
    margin-top: auto;
    /* Pushes button to bottom */
    width: 100%;
}

/* ============================================
   RESPONSIVE SPACING OPTIMIZATION
   ============================================ */

/* Mobile Spacing - Even More Compact */
@media (max-width: 768px) {
    .section-padding {
        padding: clamp(1.8rem, 8vw, 2.5rem) 0;
    }

    .hero {
        padding: clamp(2.5rem, 10vw, 4rem) 0;
        text-align: center;
    }

    .hero-container {
        gap: 1.5rem;
        flex-direction: column;
    }
}

/* Tablet Spacing Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }

    .lead-container {
        gap: 2rem;
    }
}

/* Quick Lead Section - Premium */
.quick-lead-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.quick-lead-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quick-lead-title {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
}

.quick-lead-trust-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.quick-lead-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.quick-lead-trust-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.quick-lead-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 5vw, 3rem);
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1 1 150px;
}

.stat-number {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    display: inline-block;
    min-width: 140px;
}

/* ============================================
   MODAL SYSTEM - QUOTE MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-container p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 44, 95, 0.05);
    transform: rotate(90deg);
}

.modal-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 44, 95, 0.2);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 44, 95, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        padding: 2rem;
        max-width: 95%;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    .modal-icon i {
        font-size: 2rem;
    }
}

/* --- NEW PREMIUM STYLES (v2.0) --- */

/* Glassmorphism for Hero Form */
.glass-effect {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

/* Modern Hero Typography */
.hero-title-modern {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subheadline-modern {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Trust Badges in Hero */
.hero-trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: white;
}

.trust-badge i {
    color: var(--accent-color);
}

/* Trust Bar (Marquee) */
.trust-bar-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.trust-label {
    color: var(--primary-color);
    font-size: 1.8rem;
    /* Match H2/H3 feel */
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-transform: none;
    /* Remove Uppercase */
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.insurer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e0;
    /* Gray for subtle look */
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: default;
}

.insurer-name:hover {
    color: var(--primary-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Enhancements for Mobile */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.8rem;
    }

    .hero-trust-badges {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .marquee-content {
        gap: 2rem;
        animation: scroll 20s linear infinite;
    }
}


/* --- TESTIMONIALS SECTION (Social Proof) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: white;
    border-color: var(--secondary-color);
}

.stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.test-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.test-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.test-info {
    display: flex;
    flex-direction: column;
}

.test-name {
    font-weight: 700;
    color: var(--text-dark);
}

.test-role {
    font-size: 0.85rem;
    color: var(--text-gray);
}



/* --- 4 PILLARS STRATEGY (Restored & Super Compact) --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* Force 4 columns */
    gap: 0.8rem;
    margin-top: 2rem;
    width: 100%;
}

.pillar-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pillar-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 100%;
    z-index: 10;
}

.pillar-img-container {
    position: relative;
    height: 120px;
    /* Compact height */
    overflow: hidden;
}

.pillar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pillar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 44, 95, 0.4), transparent);
}

.pillar-icon {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.pillar-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pillar-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
}

.pillar-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.pillar-list li {
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pillar-list li i {
    color: var(--secondary-color);
    font-size: 0.65rem;
}

.btn-text-arrow {
    margin-top: auto;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive: 2x2 on Tablet, 1 col on Mobile */
@media (max-width: 1100px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges and Animations */
.badge-coming-soon {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Toggle Fix for Compact Header */
.lang-toggle {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #ddd;
    margin-left: 10px;
    height: 32px;
    /* Fixed height for 60px header */
    min-width: 80px;
    /* Ensure space for both */
}

.lang-toggle button {
    background: white;
    border: none;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    /* Fill height */
    display: flex;
    align-items: center;
}

.lang-toggle button.active {
    background: var(--primary-color);
    color: white;
}