/* ===== COMMON STYLES FOR CATEGORY PAGES ===== */
/* Applies to: monogenic-disorders, genomic-testing, oncogenetics, pharmacogenomics, cardiovascular */

:root {
    --primary: #881D6B;
    --primary-light: rgba(136, 29, 107, 0.08);
    --primary-medium: rgba(136, 29, 107, 0.05);
    --primary-dark: #6e1655;
    --secondary: #A3B8C9;  /* ADDED: was missing before */
    --accent: #A3B8C9;
    --accent-light: #D9E7F3;
    --dark: #2A2A2A;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --border: #E0E0E0;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(136,29,107,0.15);
    --transition: all 0.3s ease;
}

/* ===== HERO SECTION (COMMON FOR ALL CATEGORIES) ===== */
.category-hero {
    position: relative;
    color: white;
    padding: 100px 0 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

/* Purple tint overlay - applies to all pages */
.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(136, 29, 107, 0.75);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.category-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
}

.category-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.category-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 150px;
}

.hero-stat .number {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: var(--accent-light);
}

.hero-stat .label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 15px 0;
    background: transparent;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--dark);
    font-size: 2.2rem;
    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(--secondary)); /* FIXED: now uses --secondary which is defined */
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== INTRODUCTION GRID ===== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 40px 0;
}

.intro-content h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.intro-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.intro-features li i {
    width: 24px;
    color: var(--primary);
}

.intro-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.intro-image:hover img {
    transform: scale(1.03);
}

/* ===== FEATURED TESTS GRID ===== */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.test-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.test-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.test-card-header .test-code {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.test-card-header h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.test-card-body {
    padding: 20px;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

.test-meta i {
    margin-right: 3px;
}

.test-genes {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border);
}

.test-genes span {
    font-weight: 600;
    color: var(--primary);
}

.test-card-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
}

.btn-outline-small {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
}

.btn-outline-small:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-primary-small {
    background: var(--primary);
    color: white;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136,29,107,0.3);
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(136,29,107,0.2);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-cta-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== GENE TAGS ===== */
.gene-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .tests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .category-hero h1 {
        font-size: 2.2rem;
    }
    
    .category-hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stat {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .category-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}