:root {
    /* COLORS (Extracted from Stitch Project 3550422317681226942) */
    --primary-red: #bc0f0f;
    --primary-red-hover: #a00c0c;
    --primary-red-light: rgba(188, 15, 15, 0.1);
    --brand-blue: #1A365D; /* Consistent Premium Blue */
    --brand-blue-hover: #102A43;
    --bg-light: #ffffff;
    --bg-soft-gray: #F8F9FC;
    --bg-dark: #221610;
    --headline-dark: #2D3748;
    --body-gray: #4A5568;
    --border-light: #e2e8f0;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-900: #0f172a;

    /* TYPOGRAPHY */
    --font-primary: 'Montserrat', sans-serif;

    /* SPACING */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-section: 120px;

    /* BORDER RADIUS */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(188, 15, 15, 0.15), 0 4px 6px -2px rgba(188, 15, 15, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(188, 15, 15, 0.2), 0 10px 10px -5px rgba(188, 15, 15, 0.1);

    /* TRANSITIONS */
    --transition-slow: 0.3s ease-in;
    --transition-fast: 0.1s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1.02); }
    50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes subtleScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-fast) !important;
}

*:hover {
    transition: all var(--transition-slow) !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--body-gray);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--headline-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-title {
    text-align: left;
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 64px;
    position: relative;
    padding-bottom: 16px; /* Tighter optimum spacing */
    transition: color 0.15s ease; /* Faster transition */
    cursor: default;
}

.section-title:hover {
    color: var(--primary-red);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; /* Precision brand length */
    height: 4px;
    background: var(--primary-red);
    border-radius: var(--radius-full);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--body-gray);
    margin-top: -48px;
    margin-bottom: 64px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 500px; /* Wider for two lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Compatibility fix */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.center .section-subtitle, .section-title.center + .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-hero {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px; /* Slightly taller for better visibility */
    flex-shrink: 0;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: none;
    gap: 32px;
    align-items: center;
}

/* MOBILE MENU OVERLAY */
@media (max-width: 1023px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: white;
        padding: 40px 24px;
        z-index: 999;
        overflow-y: auto;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        animation: slideDown 0.4s ease forwards;
    }

    .nav-links.active .nav-link {
        font-size: 1.25rem;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links.active .dropdown {
        width: 100%;
    }

    .nav-links.active .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        border: none !important;
        padding: 5px 0 5px 20px !important;
        margin-top: 10px;
        background: transparent !important;
        border-radius: 0;
        width: 100%;
        transform: none !important;
    }

    .nav-links.active .dropdown:hover .dropdown-menu,
    .nav-links.active .dropdown.open .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-links.active .dropdown-item {
        padding: 10px 15px !important;
        background: transparent !important;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-cta-btn {
    display: none;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .nav-cta-btn {
        display: inline-flex;
    }
    .mobile-submit-btn {
        display: none !important;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--headline-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.nav-link:hover, 
.nav-link.active,
.dropdown.active .dropdown-toggle,
.dropdown.active .dropdown-toggle span {
    color: var(--primary-red) !important;
    font-weight: 800 !important; /* Premium boldness */
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--headline-dark);
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 12px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 24px !important; /* Fixed padding for consistent alignment */
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--body-gray);
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-soft-gray);
    color: var(--primary-red) !important;
    font-weight: 800 !important;
    padding-left: 24px !important; /* Ensure it stays exactly where it is */
}

/* Fix for potential distortion */
.dropdown-menu {
    display: none; /* Reset to hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 12px 0;
    min-width: 220px;
    z-index: 1001;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 6px rgba(188, 15, 15, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(188, 15, 15, 0.25);
}

.btn-red-to-blue {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 6px rgba(188, 15, 15, 0.2);
    transition: all 0.3s ease;
}

.btn-red-to-blue:hover {
    background-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 33, 71, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-light);
    color: var(--headline-dark);
}

.btn-outline:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

/* HERO */
.hero {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('../images/backgrounds/hero-bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--body-gray);
}

/* STATS */
.stats {
    background: var(--bg-soft-gray);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--headline-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* SERVICE CARDS */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease !important; /* Faster transition */
}

.card:hover {
    border: 1px solid var(--primary-red) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: scale(1.01) !important;
}

.card i {
    font-size: 2.25rem;
    color: var(--primary-red);
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--primary-red);
}

.card p {
    font-size: 0.875rem;
    color: var(--body-gray);
    margin-bottom: 24px;
}

/* LOGO STRIP */
.logo-strip {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-light);
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0.7;
}

.logo-item {
    height: 24px;
    filter: grayscale(100%);
    transition: all 0.3s ease !important;
}

.logo-item:hover {
    filter: grayscale(0%);
    transform: scale(1.05) !important;
}

/* HOME COMPONENTS */

/* Featured In Grid - Optimized for Maximum Color Fidelity */
.featured-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    gap: 60px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.featured-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Ensure maximum color intensity and sharpness */
    opacity: 1 !important;
    filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0); /* Hardware acceleration for cleaner rendering */
}

/* Visually balance the "shorter/narrower" logos so they look equal in weight to MarketWatch */
.logo-container:nth-child(1) .featured-logo, /* Yahoo */
.logo-container:nth-child(2) .featured-logo, /* AP */
.logo-container:nth-child(6) .featured-logo, /* USA Today */
.logo-container:nth-child(7) .featured-logo { /* MSN */
    height: 54px;
}

/* Slightly reduce the "too large" wide logos for better harmony */
.logo-container:nth-child(3) .featured-logo, /* Business Insider */
.logo-container:nth-child(4) .featured-logo, /* Digital Journal */
.logo-container:nth-child(5) .featured-logo { /* MarketWatch */
    height: 40px;
}

.logo-container:hover {
    transform: scale(1.15);
    z-index: 10;
}

/* Process Steps */
.step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
}

@media (min-width: 768px) {
    .step-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Connecting Line */
@media (min-width: 768px) {
    .step-grid::before {
        content: '';
        position: absolute;
        top: 32px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--border-light) 0, var(--border-light) 10px, transparent 10px, transparent 20px);
        z-index: 0;
    }
}

.step-icon {
    width: 64px;
    height: 64px;
    background: white;
    box-shadow: 0 0 0 8px var(--bg-soft-gray);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.2s ease; /* Speed up transition */
    border: 2px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Added shadow */
}

.step-card:hover .step-icon {
    background: var(--primary-red);
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(188, 15, 15, 0.2);
    border-color: var(--primary-red);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    transition: color 0.2s ease; /* Speed up transition */
}

.step-card:hover .step-title {
    color: var(--primary-red);
}

/* Multimedia Banner */
.multimedia-banner {
    background: var(--primary-red);
    border-radius: 32px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    box-shadow: 0 15px 45px rgba(188, 15, 15, 0.25); /* Intense Permanent Shadow */
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease;
}

.multimedia-banner:hover {
    box-shadow: 0 25px 70px rgba(188, 15, 15, 0.5); /* Deep Shadow on Hover */
    transform: translateY(-8px);
}

@media (min-width: 1024px) {
    .multimedia-banner {
        padding: 80px;
        flex-direction: row;
        justify-content: space-between;
    }
}

.banner-content {
    max-width: 480px;
}

.banner-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.banner-stats {
    display: flex;
    gap: 60px;
    text-align: center;
}

.banner-stat-item p:first-child {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -2px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.banner-stat-item:hover p:first-child {
    transform: translateY(-8px) scale(1.1);
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-stat-item p:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Pricing Grid */
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Speed up transition */
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(188, 15, 15, 0.12);
}

.pricing-card.popular {
    border: 2px solid var(--primary-red);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

@media (min-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1.05);
    }
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--headline-dark);
    margin: 24px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--body-gray);
}

.pricing-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.pricing-features .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-red);
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.testimonial-card:hover {
    border: 1px solid var(--primary-red);
    box-shadow: var(--shadow-lg);
}

.stars {
    display: flex;
    gap: 4px;
    color: var(--primary-red);
    margin-bottom: 24px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--body-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 52px;
    height: 52px;
    background: var(--border-light);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    padding: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Speed up transition */
    background: white;
    position: relative;
    cursor: pointer;
}

.accordion-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(188, 15, 15, 0.12);
    transform: translateY(-4px);
}

.accordion-item.active {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(188, 15, 15, 0.08);
}

.accordion-item.active .accordion-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--headline-dark);
    padding: 0;
}

.accordion-header:hover {
    color: var(--primary-red);
}

.accordion-header .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .material-symbols-outlined {
    transform: rotate(180deg);
}

.accordion-content {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--body-gray);
    display: none;
}

/* Final CTA Section Enhancement */
.cta-section {
    padding-top: 40px !important; /* Reduced top gap */
}

.final-cta {
    background: var(--primary-red);
    border-radius: 32px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    box-shadow: 0 15px 45px rgba(188, 15, 15, 0.25); /* Intense Permanent Shadow */
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    transition: all 0.5s ease;
}

.final-cta:hover {
    box-shadow: 0 25px 70px rgba(188, 15, 15, 0.5); /* Deep Shadow on Hover */
    transform: translateY(-8px);
}

@media (min-width: 1024px) {
    .final-cta {
        padding: 80px;
        flex-direction: row;
        justify-content: space-between;
    }
}

.cta-content {
    max-width: 520px;
}

.cta-content h2 {
    color: white !important;
    font-size: 3rem !important;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.8; /* Improved readability */
    max-width: 580px; /* Better text flow */
}

/* Final CTA Form Styling */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-form-input {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--headline-dark);
}

.cta-form-message {
    height: 80px;
    resize: none;
}

.btn-speak {
    background: var(--brand-blue);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease; /* Speed up transition */
}

.btn-speak:hover {
    background: white;
    color: var(--brand-blue);
    transform: translateY(-3px);
}

/* Global Hover Effects for Pricing/Hero to Blue */
.btn-primary:hover, .btn-outline:hover, .pricing-card .btn:hover {
    background: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: white !important;
}

.btn:hover { /* Added for general button hover effect */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1023px) {
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn-banner-white, .btn-banner-outline { width: 100%; text-align: center; }
}

/* PREMIUM EXPERT FOOTER */
.footer {
    padding: 120px 0 60px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

@media (max-width: 1200px) {
    .footer-grid { gap: 48px; }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.brand-col .footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 32px;
    object-fit: contain;
}

.brand-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--body-gray);
    margin-bottom: 40px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--headline-dark);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Speed up transition */
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(188, 15, 15, 0.15);
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-400);
    margin-bottom: 32px;
}

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

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    text-decoration: none;
    color: var(--headline-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease; /* Speed up transition */
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(6px);
}

.footer-bottom {
    padding-top: 48px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.footer-bottom-links {
    display: flex;
    gap: 32px;
}

.footer-bottom-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease; /* Speed up transition */
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
}

/* FORM STYLES */
.form-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    background: var(--bg-soft-gray);
    font-family: inherit;
    transition: all 0.2s ease !important; /* Speed up transition */
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-light);
}

/* Newsroom Refinements */
.news-tag {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.news-item img {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-item:hover img {
    transform: scale(1.08);
}

.news-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px; /* Increased space from paragraph */
    line-height: 1.3;
    transition: color 0.2s ease; /* Speed up transition */
}

.news-item:hover h3 {
    color: var(--primary-red);
}

/* Stat Liveliness - Reverted to static */
.stat-item {
    transition: none !important;
    cursor: default;
    box-shadow: none !important;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
}

.stat-item .stat-value {
    transition: none !important;
}

/* BANNER BUTTONS */
.btn-banner-blue {
    background: var(--brand-blue);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 800;
    transition: all 0.3s ease !important;
    border: none;
    cursor: pointer;
}

.btn-banner-blue:hover {
    background: white;
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.15);
}

.btn-banner-red {
    background: var(--primary-red);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 800;
    transition: all 0.3s ease !important;
    border: none;
    cursor: pointer;
}

.btn-banner-red:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(188, 15, 15, 0.15);
}

.btn-banner-outline-pill {
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: var(--radius-full);
    font-weight: 800;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.btn-banner-outline-pill:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    color: var(--slate-400);
}

.modal-close:hover {
    color: var(--primary-red);
}

/* FORM REFINEMENTS */
.form-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
    display: none;
}

.input-error {
    border-color: var(--primary-red) !important;
}

/* MULTIMEDIA BANNER OVERRIDE */
.multimedia-banner {
    background: var(--primary-red);
    border-radius: 32px;
    padding: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 45px rgba(188, 15, 15, 0.15); /* Replicating Home Page Style */
    position: relative;
    overflow: hidden;
}

/* SEARCH RESULTS DROPDOWN */
.search-results-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.search-results-container.active {
    display: flex;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-soft-gray);
}

.search-result-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--headline-dark);
}

.search-result-meta {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
}

/* NEWS FILTERING */
.news-card-hidden {
    display: none !important;
}

.category-btn.active {
    background: var(--primary-red) !important;
    color: white !important;
    border-color: var(--primary-red) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Toast Notification */
.form-success-toast {
    position: fixed;
    top: 110px;
    right: 30px;
    background: white;
    border-left: 4px solid #10B981;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    padding: 16px 24px;
    z-index: 999999;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-success-toast.active {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content span {
    color: #10B981;
    font-size: 24px;
}

.toast-content p {
    font-weight: 700;
    color: var(--headline-dark);
    font-size: 0.95rem;
    margin: 0;
}
/* COMPREHENSIVE RESPONSIVENESS OVERRIDE */
@media (max-width: 768px) {
    :root {
        --space-section: 60px;
    }

    .section {
        padding: 60px 0;
    }

    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 1.85rem !important; }
    h3 { font-size: 1.5rem !important; }

    .grid-2, .grid-3, .grid-4, .grid-hero {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .container {
        padding: 0 20px;
    }

    /* Fixed Hero Sections */
    .hero h1 {
        font-size: 2.5rem !important;
    }

    /* Multimedia Banner Fix */
    .multimedia-banner {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 32px;
    }

    .banner-stats {
        flex-direction: row !important;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .banner-stats div[style*="height: 100px"] {
        height: 40px !important;
    }

    /* Submit PR Form Fixes */
    .grid-hero {
        display: flex !important;
        flex-direction: column !important;
    }

    .form-sidebar {
        order: -1; /* Summary on top for mobile */
        width: 100%;
    }

    .form-card {
        padding: 24px !important;
    }

    .form-group {
        grid-column: span 2 !important;
    }

    /* Footer Fix */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

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

    /* Pricing Fix */
    .pricing-card {
        padding: 30px 20px !important;
    }

    /* Stats Fix */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Step Grid Fix */
    .step-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Specific Page Fixes */
@media (max-width: 1024px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    .nav-cta-btn {
        display: none !important;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .header {
        height: 70px;
    }
    
    .nav-links.active {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* Anatomy Section Classes */
.anatomy-box {
    background: #F4F7FA;
    border-radius: 40px;
    padding: 60px;
    position: relative;
    min-height: 600px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #E8EEF4;
}

.anatomy-marker {
    position: absolute;
    left: 25px;
    width: 44px;
    height: 44px;
    background: #BC0F0F;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(188, 15, 15, 0.4);
    border: 4px solid #F4F7FA;
    transition: all 0.3s ease;
}

.anatomy-legend-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.anatomy-legend-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #FDECEC;
    color: #BC0F0F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 1.25rem;
}

/* MOBILE RESPONSIVENESS OVERRIDES */
@media (max-width: 768px) {
    /* Fix horizontal grid and layout containers, avoiding small form elements */
    .grid-2, .grid-3, .grid-4, .grid-hero, .plans-grid, .service-grid, .step-grid, .stats-grid, .footer-grid, #posts-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    [style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Target the main hero side-by-side flex layout securely */
    .grid-hero[style] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Specific element fixes */
    .multimedia-banner {
        flex-direction: column !important;
        text-align: center;
        padding: 30px 20px !important;
        gap: 32px;
    }

    .banner-stats {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px;
    }

    /* Submit PR Form fixes */
    #pr-submission-form .grid-hero {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Reorder summary on mobile */
    .form-sidebar {
        order: -1;
        width: 100%;
        margin-bottom: 24px;
    }

    .form-card {
        padding: 24px 16px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
    }

    /* Force text center on common utility blocks */
    .center {
        text-align: center !important;
    }

    /* Hero & Large Font Fixes */
    .hero, .section {
        height: auto !important;
        padding: 60px 20px !important;
    }
    
    .hero[style*="height"] {
        min-height: 500px !important;
        padding: 80px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    h1, [style*="font-size: 3.5rem"], [style*="font-size: 3rem"], [style*="font-size: 4rem"] {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }

    [style*="font-size: 1.25rem"], [style*="font-size: 1.125rem"] {
        font-size: 1.05rem !important;
    }

    /* Stat values */
    .stat-value, [style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }

    /* Fix the drop-zone to be smaller */
    #drop-zone {
        padding: 30px !important;
    }

    /* Ensure buttons are easy to click */
    .btn, button[class*="btn"], .nav-cta-btn {
        width: 100% !important;
        padding: 15px !important;
        text-align: center;
    }
    
    /* Align buttons horizontally correctly if they use inline gap */
    div[style*="gap: 24px"][style*="justify-content: center"] {
        flex-direction: column !important;
        width: 100%;
    }

    /* Pricing Card fixes */
    .pricing-card, .card {
        width: 100% !important;
        margin-bottom: 20px;
        padding: 24px 20px !important;
    }

    /* Navigation CTA should hidden on mobile */
    .nav-cta-btn {
        display: none !important;
    }

    /* Anatomy Box Mobile Overrides */
    .anatomy-box {
        padding: 30px !important;
        min-height: auto !important;
    }
    
    .anatomy-marker {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 auto 10px auto !important;
    }
    
    .anatomy-legend-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    /* Target specific featured article padding inside samples page */
    .card[style*="padding: 80px"] {
        padding: 30px 16px !important;
    }
    
    .card[style*="padding: 80px"] h2 {
        font-size: 1.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        line-height: 1.3 !important;
    }

    /* Press Release Samples: Featured Card header bar fix */
    .card div[style*="background: var(--primary-red)"] {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        padding: 24px 16px !important;
    }

    /* Press Release Samples: Anatomy section full width */
    .anatomy-box {
        padding: 24px 16px !important;
        min-height: auto !important;
        border-radius: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Anatomy grid: stack vertically on mobile */
    .grid-2[style*="grid-template-columns: 1.2fr"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .anatomy-legend {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure max-width containers expand on mobile */
    .container[style*="max-width: 900px"] {
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    /* Blockquote padding fix */
    blockquote {
        padding: 16px 20px !important;
        margin: 16px 0 !important;
    }

    /* Final CTA / Read to Share Mobile Optimization */
    .final-cta {
        padding: 40px 20px !important;
        border-radius: 20px !important;
        flex-direction: column !important;
        text-align: center;
        width: 100% !important;
    }
    
    .final-cta .cta-content h2 {
        font-size: 2rem !important;
        word-wrap: break-word;
    }

    .final-cta .cta-form {
        padding: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix Logo Strip horizontal scroll issue */
    .featured-grid {
        flex-wrap: wrap !important;
        gap: 24px !important;
        justify-content: center !important;
    }

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

    .footer-logo {
        margin: 0 0 20px 0 !important;
        display: block;
    }
    
    .footer-col.brand-col {
        text-align: left !important;
    }

    /* Fix hardcoded inline grids forcing horizontal plan boxes on PR Submit */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix images zooming/cropping on mobile due to fixed heights */
    img[style*="object-fit"] {
        height: auto !important;
        max-height: 300px !important;
        object-fit: contain !important;
        border-radius: 16px !important;
    }
}

/* Fix for overlapping header on mobile */
body.menu-open {
    overflow: hidden;
}

/* Base Image/Media normalization for responsiveness globally */
img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}
