/* Premium Web-App Structural Variables & Design Rules */
:root {
    --primary-color: #d32f2f;      /* Dynamic deep red accent */
    --primary-hover: #b71c1c;
    --dark-slate: #1e293b;         /* Modern high contrast text base */
    --light-bg: #f8fafc;            /* Clean app canvas background */
    --surface-white: #ffffff;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--light-bg);
    color: var(--dark-slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 1. LOCK BACKGROUND SCROLL WHEN MODAL IS ACTIVE */
body.proposal-active {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Global Helper Classes */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* App Header Frame */
.app-header {
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--dark-slate);
}

.logo-bold { font-weight: 700; color: var(--primary-color); }
.logo-light { font-weight: 300; }

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--surface-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* App Grid Canvas Layout */
.app-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

/* Side Web-App Drawer Navigation */
.side-navigation {
    background: var(--surface-white);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
}

.nav-sticky-inner {
    position: sticky;
    top: 90px;
}

.nav-urgent-badge {
    background-color: #fff5f5;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.nav-urgent-badge .sub-text {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.nav-links {
    list-style: none;
    margin-bottom: 2rem;
}

.nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-slate);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-links li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Local Address Module Box */
.sidebar-location-card {
    background: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.sidebar-location-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.directions-hint {
    color: var(--text-muted);
    margin: 0.5rem 0;
    font-style: italic;
}

.lang-badge {
    display: inline-block;
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Media icons styling */
.social-medias {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.social-medias img {
    width: 36px;
    height: 36px;
    transition: opacity 0.2s;
}

.social-medias img:hover { opacity: 0.8; }

.badge-container {
    border-radius: 8px;
    overflow: hidden;
}

/* Canvas View Main Window - Elevated Design */
.main-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.03);
    padding: 3rem;
    margin-top: 1rem;
}

.hero-graphic-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.main-headline {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.main-headline em {
    color: var(--primary-color);
    font-style: normal;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.content-grid .primary-text {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.primary-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #334155;
}

.lead-paragraph {
    font-size: 1.2rem !important;
    font-weight: 500;
}

.highlight-box {
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}

/* Profile Elements & Testimonials */
.doctor-profile-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}

.doc-photo {
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
}

.testimonial-bubble {
    font-style: italic;
    font-size: 0.95rem;
    position: relative;
    padding-top: 1rem;
    color: #475569;
}

.quote-mark {
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -1.5rem;
    left: -0.2rem;
    opacity: 0.15;
    font-family: serif;
}

/* Premium Web App Grid Layout Interface */
.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.action-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-slate);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.special-card {
    background: var(--dark-slate);
    color: var(--surface-white);
    border-color: var(--dark-slate);
}

.special-card .price-accent {
    color: #fca5a5;
    font-weight: 700;
    font-size: 1.1rem;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.special-card .card-content p {
    color: #cbd5e1;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.special-card .card-arrow { color: var(--surface-white); }

.media-highlight {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.center-image {
    width: 100%;
    object-fit: cover;
}

/* Forms Interface Upgrades */
.modern-form .form-group {
    margin-bottom: 1.25rem;
}

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-stack);
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

/* Structural Engine Footers */
.app-footer {
    background: var(--dark-slate);
    color: #94a3b8;
    padding: 3rem 2rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.footer-primary-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.footer-primary-row a {
    color: var(--surface-white);
    text-decoration: none;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #334155;
    margin: 2rem 0;
}

/* Strategic Local SEO Cluster Text Box */
.local-seo-footprint h3 {
    color: var(--surface-white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.local-seo-footprint p {
    line-height: 1.7;
    text-align: justify;
}

/* Global Mobile Interface Media Rules */
.menu-toggle { display: none; }

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .side-navigation {
        display: none; 
    }
    .nav-open .side-navigation {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        z-index: 999;
        overflow-y: auto;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--dark-slate);
        border-radius: 2px;
    }
}

@media (max-width: 900px) {
    .main-content {
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 0;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Internal Page Structures (Subpages) 
   ========================================================================== */

/* Page Headers */
.internal-page-header {
    background: var(--dark-slate);
    color: var(--surface-white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.eyebrow-text {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: #fca5a5;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-title {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Featured Testimonial Banner */
.featured-testimonial {
    background: #fff5f5;
    border-left: 5px solid var(--primary-color);
    padding: 2rem 2.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 3rem;
    position: relative;
}

.featured-testimonial .quote-mark.large {
    font-size: 5rem;
    color: var(--primary-color);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.1;
    font-family: serif;
}

.featured-testimonial p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark-slate);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.featured-testimonial cite {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Editorial Content Rows */
.service-editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.editorial-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Flip the image to the right side on alternating rows */
.reverse-row {
    grid-template-columns: 2fr 1fr;
}
.reverse-row .editorial-image {
    order: 2;
}
.reverse-row .editorial-content {
    order: 1;
}

.styled-image {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.styled-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

.section-title.text-red {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editorial-content p {
    margin-bottom: 1.25rem;
    color: #334155;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.text-link:hover {
    color: var(--primary-hover);
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* Mobile Adjustments for Subpages */
@media (max-width: 768px) {
    .editorial-row, .reverse-row {
        grid-template-columns: 1fr;
    }
    .reverse-row .editorial-image {
        order: -1; 
    }
    .reverse-row .editorial-content {
        order: 2;
    }
    .internal-page-header {
        padding: 2rem 1.5rem;
    }
    .page-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Therapies & Services UI Elements 
   ========================================================================== */

/* Quick Jump Navigation Pills */
.quick-jump-nav {
    background: var(--surface-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.02);
}

.quick-jump-nav h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.jump-pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.jump-pill:hover {
    background-color: var(--primary-color);
    color: var(--surface-white);
    border-color: var(--primary-color);
}

/* Category Headers */
.therapy-category {
    margin-bottom: 4rem;
    scroll-margin-top: 90px;
}

.category-header {
    font-size: 1.8rem;
    color: var(--dark-slate);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Service Card Layouts */
.service-card {
    background: var(--surface-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    scroll-margin-top: 100px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.service-card.has-image {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
}

.service-card.has-image:nth-child(even) {
    grid-template-columns: 1fr 300px;
}
.service-card.has-image:nth-child(even) img {
    order: 2;
}
.service-card.has-image:nth-child(even) .service-card-content {
    order: 1;
}

.service-card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card-content p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .service-card.has-image,
    .service-card.has-image:nth-child(even) {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .service-card.has-image img,
    .service-card.has-image:nth-child(even) img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem auto;
        order: -1; 
    }
    
    .service-card.has-image .service-card-content,
    .service-card.has-image:nth-child(even) .service-card-content {
        order: 2;
    }
}

/* ==========================================================================
   Newsroom, Articles, and Newsletter UI Elements
   ========================================================================== */

.featured-news-block {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    background: var(--surface-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px -3px rgb(0 0 0 / 0.05);
}

.news-tag {
    display: inline-block;
    background: #fef2f2;
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-block-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--dark-slate);
    margin-bottom: 1.5rem;
}

.news-block-content p {
    color: #475569;
    margin-bottom: 1.25rem;
}

.news-block-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-block-images img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

.newsroom-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-slate);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-color: #cbd5e1;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.article-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--dark-slate);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card:hover .read-more {
    color: var(--primary-color);
}

.newsletter-card {
    background: var(--dark-slate);
    color: var(--surface-white);
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 90px;
}

.section-title.text-white {
    color: var(--surface-white);
    border-bottom: 2px solid #334155;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.featured-newsletter {
    background: #334155;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.featured-newsletter h4 {
    color: #fca5a5;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.featured-newsletter p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.newsletter-archive {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.newsletter-archive h4 {
    color: #94a3b8;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.archive-list a:hover {
    color: #fca5a5;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .featured-news-block { grid-template-columns: 1fr; }
    .news-block-images { flex-direction: row; }
    .news-block-images img { width: 50%; }
    .newsroom-layout { grid-template-columns: 1fr; }
    .newsletter-card { position: relative; top: 0; }
}

@media (max-width: 600px) {
    .news-block-images { flex-direction: column; }
    .news-block-images img { width: 100%; }
}

/* ==========================================================================
   About Us & Meet The Team Directory Layout
   ========================================================================== */

.hero-team-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px -5px rgb(0 0 0 / 0.1);
}

.doctor-bios-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.doctor-bio-card {
    background: var(--surface-white);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.04);
}

.doc-bio-content h3 {
    font-size: 1.6rem;
    color: var(--dark-slate);
    margin-bottom: 0.25rem;
}

.doc-bio-content .subtitle {
    font-size: 1.05rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.doc-action-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border-color);
    color: var(--dark-slate);
    transition: all 0.2s ease-in-out;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--light-bg);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: var(--surface-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.staff-photo-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f1f5f9; 
}

.staff-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.staff-info {
    padding: 1.5rem 1rem;
}

.staff-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.staff-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 600px) {
    .doctor-bio-card { padding: 1.5rem; }
    .doc-action-links { flex-direction: column; }
    .btn-outline { text-align: center; }
    .staff-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
    .staff-photo-wrapper { height: 220px; }
}

/* ==========================================================================
   HPO CENTER AUTOMATED PROPOSAL DECK ARCHITECTURE
   ========================================================================== */

body.proposal-active #website-preview-layer { display: none; }
body:not(.proposal-active) #premium-proposal-layer { display: none; }

#premium-proposal-layer {
    background-color: #0f172a; 
    color: #f8fafc;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    font-family: var(--font-stack);
}

.proposal-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.proposal-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.agency-tag {
    color: #fca5a5;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.proposal-deck-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.deck-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.toggle-view-btn {
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
    cursor: pointer;
    font-size: 1rem;
}

.proposal-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.deck-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
}

.deck-card.highlight-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: var(--primary-color);
}

.card-badge {
    display: inline-block;
    background: rgba(211, 47, 47, 0.15);
    color: #fca5a5;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-badge.color-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.deck-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.deck-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.deck-feature-list {
    list-style: none;
    padding: 0;
}

.deck-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.deck-feature-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #fbbf24;
}

.proposal-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.proposal-spec-table th, 
.proposal-spec-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.proposal-spec-table th {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.proposal-spec-table td:first-child { color: #f87171; }
.proposal-spec-table td:last-child { color: #4ade80; font-weight: 600; }

.proposal-deck-footer {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 3rem;
}

.proposal-deck-footer p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.launch-preview-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
}

#return-to-proposal-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    border: 2px solid var(--primary-color);
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.2s;
}

#return-to-proposal-trigger:hover {
    transform: scale(1.05);
    background: var(--dark-slate);
}

@media (max-width: 768px) {
    .proposal-deck-header { flex-direction: column; align-items: flex-start; }
    .toggle-view-btn, .launch-preview-btn { width: 100%; }
    #return-to-proposal-trigger {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: calc(100% - 2rem);
        text-align: center;
    }
}