#headache-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Add subtle gradient background */
#headache-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(225, 242, 255, 0.3), rgba(255, 255, 255, 0.7));
    z-index: 0;
}

#headache-section .container {
    position: relative;
    z-index: 1;
}

#headache-section .section-header {
    margin-bottom: 60px;
}

#headache-section .section-header h2 {
    color: var(--primary-dark);
}

/* Top section with image and main content */
.headache-grid {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
}

.headache-redesigned-image {
    text-align: center;
    transition: transform 0.5s ease;
}

.headache-redesigned-image:hover {
    transform: scale(1.05);
}

.headache-redesigned-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.headache-content {
    background-color: #F3F7FB;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.headache-content:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.12);
}

.headache-content-label {
    position: absolute;
    top: -15px;
    left: 24px;
    background-color: var(--white);
    padding: 0 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.headache-content-label span {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.headache-content-title {
    font-size: 26px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 20px;
}

.headache-content-text {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 20px;
}

.headache-content-emphasis {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 30px;
}

.headache-content-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.headache-content-cta:hover {
    transform: translateY(-2px);
}

/* Case examples section */
.cases-heading {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 20px;
    text-align: center;
}

.cases-toggle-container {
    text-align: center;
    margin-bottom: 20px;
}

.cases-toggle-btn {
    padding: 8px 16px;
}

.cases-toggle-icon {
    margin-left: 5px;
    transition: transform 0.3s;
}

/* Cases section redesign for desktop and tablet */
.cases-section-grid {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.cases-section-image {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cases-section-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(30, 117, 255, 0.05), rgba(247, 148, 30, 0.1));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cases-section-image:hover::before {
    opacity: 1;
}

.cases-section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cases-section-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.cases-section-content {
    background-color: #F3F7FB;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases-section-content:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.12);
}

.cases-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* Case cards grid */
#casesContainer {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    animation: fadeIn 0.5s ease-in-out;
}

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

.case-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.case-migraine {
    border-top-color: #8B5CF6;
}

.case-hypertension {
    border-top-color: #EF4444;
}

.case-medication {
    border-top-color: #F59E0B;
}

.case-meningitis {
    border-top-color: #FBBF24;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.12);
}

.case-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.case-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.case-title {
    font-weight: 600;
    color: #1E293B;
}

.case-input {
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569;
}

.case-response {
    font-size: 14px;
    color: #475569;
    padding: 10px;
    background-color: #F8FAFC;
    border-radius: 8px;
    border-left: 3px solid #1E75FF;
}

/* Case specific colors */
.case-migraine .case-indicator {
    background-color: #8B5CF6;
}

.case-hypertension .case-indicator {
    background-color: #EF4444;
}

.case-medication .case-indicator {
    background-color: #F59E0B;
}

.case-meningitis .case-indicator {
    background-color: #FBBF24;
}

/* Dots pattern animation */
@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Hide desktop/tablet layout on mobile */
@media screen and (max-width: 768px) {
    .cases-section-grid {
        display: none;
    }
    
    /* Show mobile layout */
    .cases-section-mobile {
        display: block;
    }
}

/* Hide mobile layout on desktop/tablet */
@media screen and (min-width: 769px) {
    .cases-section-mobile {
        display: none;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    #casesContainer {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    #headache-section .section-header {
        margin-bottom: 40px;
    }
    
    .headache-grid {
        grid-template-columns: 1fr !important;
    }
    
    #casesContainer {
        grid-template-columns: 1fr !important;
    }
    
    .headache-content {
        padding: 30px 20px !important;
    }
    
    .headache-redesigned-image {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 20px !important;
        overflow: hidden !important;
        border-radius: 50% !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .headache-redesigned-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        box-shadow: none !important;
    }
    
    .cases-section-image {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 20px !important;
        overflow: hidden !important;
        border-radius: 50% !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .cases-section-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        box-shadow: none !important;
    }
} 