/* ===== EXPANDED CARRIER SCREENING PAGE SPECIFIC STYLES ===== */

/* ===== TONED DOWN HERO OVERRIDE ===== */
/* This overrides the purple overlay from category-pages.css */
.category-hero::before {
    background: rgba(0, 0, 0, 0.3) !important; /* Dark overlay at 30% opacity */
    mix-blend-mode: normal !important; /* Remove the purple tint */
}

/* Enhance text readability over dark overlay */
.category-hero h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.category-hero .lead {
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9) !important;
}

.hero-badge {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-stat {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Hero section watermark (kept from original) */
.category-hero::after {
    content: 'ECS';
    position: absolute;
    bottom: -20px;
    right: 5%;
    font-size: 150px;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    font-family: monospace;
    letter-spacing: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Introduction */
.ecs-intro {
    padding: 60px 0;
    background: var(--white);
}

/* ===== SECTION HEADER STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ACMG Section */
.acmg-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(163,184,201,0.1) 100%);
}

.acmg-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.acmg-badge {
    background: var(--primary);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 25px;
    font-weight: 600;
}

.acmg-content h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.acmg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.acmg-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.acmg-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.acmg-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.acmg-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.acmg-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Panel Comparison */
.panel-comparison {
    padding: 80px 0;
    background: var(--white);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.panel-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.panel-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.panel-card.advanced {
    border-top: 5px solid var(--primary);
}

.panel-card.premium {
    border-top: 5px solid #2c3e50;
}

.panel-header {
    padding: 30px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-name h3 {
    font-size: 1.8rem;
    margin: 10px 0 0;
    font-weight: 700;
    color: var(--dark);
}

.badge-consensus {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.panel-gene-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.panel-card.premium .panel-gene-count {
    color: #2c3e50;
}

.panel-body {
    padding: 30px;
}

.panel-features {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.feature:last-child {
    border-bottom: none;
}

.feature i {
    color: var(--primary);
    width: 20px;
}

.feature.highlight {
    background: rgba(46, 204, 113, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    border-bottom: none;
}

.feature.highlight i {
    color: #27ae60;
}

.sample-genes h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--gray);
}

.gene-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: var(--light-gray);
    border-radius: 12px;
}

.gene-tag {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    cursor: help;
    transition: var(--transition);
}

.gene-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gene-tag sup {
    color: #e74c3c;
    font-size: 0.7rem;
    margin-left: 2px;
}

.gene-tag.more {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.gene-tag.more:hover {
    background: var(--primary);
    color: white;
}

.gene-tag[data-tooltip] {
    position: relative;
}

.gene-tag[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

.panel-cta {
    margin-top: 20px;
}

.btn-panel {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-panel:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(136,29,107,0.3);
}

.btn-panel.btn-premium {
    background: #2c3e50;
}

.btn-panel.btn-premium:hover {
    background: #1a252f;
}

.btn-view-genes {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 15px;
}

.btn-view-genes:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* Fragile X Section */
.fragile-x-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(163,184,201,0.1) 100%);
}

.fragile-x-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.fragile-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.fragile-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fragile-features li i {
    color: var(--primary);
}

.risk-alert {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.risk-alert i {
    color: #e74c3c;
    font-size: 1.5rem;
}

.risk-alert p {
    margin: 0;
    color: var(--dark);
}

.fragile-x-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.fragile-x-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Specifications */
.specifications {
    padding: 80px 0;
    background: var(--white);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.spec-item {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 16px;
    transition: var(--transition);
}

.spec-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.spec-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

.spec-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.spec-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== WHO SHOULD TEST SECTION ===== */
.who-should-test {
    padding: 80px 0;
    background: var(--white);
}

.indications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.indication-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.indication-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.indication-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.indication-content h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.indication-content p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Results Section */
.results-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.result-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.result-card.wide {
    grid-column: span 3;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.result-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--dark);
}

.result-card h4 i {
    color: var(--primary);
    margin-right: 10px;
}

.result-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--gray);
}

.result-card ul li:last-child {
    border-bottom: none;
}

.risk-box {
    background: var(--primary-light);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
}

.risk-percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.risk-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.example-row:last-child {
    border-bottom: none;
}

.badge-calc {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-residual {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
}

/* CNV Detection Badge */
.cnv-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.cnv-badge i {
    margin-right: 8px;
}

/* ACMG Tier Badges */
.tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
}

.tier-1 {
    background: #e3f2fd;
    color: #1976d2;
}

.tier-2 {
    background: #e8f5e9;
    color: #2e7d32;
}

.tier-3 {
    background: #fff3e0;
    color: #f57c00;
}

.tier-4 {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Responsive */
@media (max-width: 992px) {
    .acmg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .fragile-x-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-card.wide {
        grid-column: span 2;
    }
    
    .indications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .acmg-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card.wide {
        grid-column: span 1;
    }
    
    .panel-header {
        flex-direction: column;
        text-align: center;
    }
    
    .gene-cloud {
        max-height: 150px;
    }
    
    .fragile-x-grid {
        gap: 30px;
    }
    
    .indications-grid {
        grid-template-columns: 1fr;
    }
    
    .indication-item {
        flex-direction: column;
        text-align: center;
    }
    
    .indication-icon {
        margin: 0 auto 15px;
    }
}