/* ===========================================
   cvsppd2-specific overrides on top of mobile-optimized.css
   =========================================== */

/* Cap the (very large) shared logo style so the CVS Health logo sits in a sane header */
.logo {
    width: 320px !important;
    max-height: 140px !important;
}

@media (min-width: 769px) {
    /* Compact, borderless header */
    .header {
        border-bottom: none;
        padding: 1rem;
    }

    .logo {
        width: 320px !important;
        max-height: 140px !important;
    }

    /* Hero: stretched 50/50 columns so the image stops dominating the layout */
    .hero {
        padding: 1.5rem 2rem;
    }

    .hero-content {
        align-items: stretch;   /* columns share height; image can fill its column */
        gap: 2.5rem;
        max-width: 1200px;
    }

    .hero-left {
        flex: 1 1 50%;
        min-width: 0;           /* allow shrinking below content's intrinsic width */
        display: flex;
        flex-direction: column;
    }

    .hero-right {
        display: flex !important;
        flex: 1 1 50%;
        min-width: 0;
        align-items: flex-start;
    }

    /* Image fills its column, cropped with object-fit instead of leaving whitespace */
    .study-image-container {
        position: sticky;
        top: 1rem;
        width: 100%;
    }

    .studyImageContainer {
        width: 100%;
        max-width: none;
        height: 520px;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .study-hero-image {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
        border-radius: 0.75rem;
    }

    /* Left-align title; cap font size so it stops wrapping into 5 lines */
    .hero-title {
        text-align: left;
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    /* Description: left-aligned, normal weight, readable */
    .hero-subtitle {
        text-align: left;
        font-size: 1rem;
        font-weight: 400;
        color: var(--body-font-color, #333);
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .hero-subtitle p {
        margin-bottom: 0.5rem;
    }

    /* Step 1..5 list authored as <ul><p>...</p></ul> — flatten it */
    .hero-subtitle ul {
        padding-left: 0;
        list-style: none;
        margin: 0.5rem 0 0;
    }

    .hero-subtitle ul p {
        margin: 0.35rem 0;
        text-align: left;
    }

    /* Form: fills the column, inputs use full width, button doesn't wrap */
    .enrollment-form {
        max-width: 100%;
        margin: 0;
        padding: 1.5rem;
        background: #f8f9fa !important;
    }

    .enrollment-form .form-control {
        width: 100%;
    }

    .enrollment-form .btn-primary {
        white-space: nowrap;
        width: 100%;
    }
}

/* Tablet: stack vertically — the left column is too dense for a side-by-side at this width */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-left,
    .hero-right {
        flex: 1 1 100%;
        width: 100%;
    }

    .studyImageContainer {
        height: 360px;
    }

    .study-image-container {
        position: static;
    }
}

/* Mobile refinements */
@media (max-width: 768px) {
    .hero-title {
        text-align: left;
        font-size: 1.5rem;
    }

    .hero-subtitle {
        text-align: left;
    }

    .hero-subtitle ul {
        padding-left: 0;
        list-style: none;
    }

    .hero-subtitle ul p {
        margin: 0.35rem 0;
    }

    .enrollment-form {
        max-width: 100%;
        padding: 1rem;
        background: #f8f9fa !important;
    }

    .enrollment-form .btn-primary {
        white-space: nowrap;
    }
}

/* cvsppd2 doesn't use a section title — each card carries its own inline header.
   Hide the fallback "Study Benefits" h2 that the base template renders when
   study_benefits_header is omitted. */
.benefits .section-title {
    display: none;
}

/* Benefits cards */
.benefit {
    text-align: left;
}

.benefit-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.benefit-content ul li {
    margin: 0.25rem 0;
}

/* ===========================================
   FAQ accordion (collapsible <details>/<summary>)
   =========================================== */
.faq {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.faq-title {
    color: #cc0000;
    text-align: left;
    margin-bottom: 1.5rem;
}

.faq-category {
    color: #cc0000;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
}

.faq-list {
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

/* The clickable question row */
.faq-question {
    cursor: pointer;
    list-style: none;          /* hide default disclosure triangle (Firefox/standards) */
    padding: 1rem 2.5rem 1rem 0;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;             /* hide default disclosure triangle (WebKit) */
}

/* +/- indicator */
.faq-question::after {
    content: "+";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: #cc0000;
}

.faq-item[open] .faq-question::after {
    content: "\2212";          /* minus sign */
}

.faq-item[open] .faq-question {
    color: #cc0000;
}

.faq-answer {
    padding: 0 2.5rem 1.25rem 0;
    color: #333;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0 0 0.75rem;
}

.faq-answer ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.faq-answer li {
    margin: 0.25rem 0;
}

.faq-answer a {
    color: #cc0000;
    text-decoration: underline;
}

.faq-answer table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.faq-answer th,
.faq-answer td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

.faq-answer th {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .faq {
        padding: 1.5rem 1rem;
    }

    .faq-answer table {
        font-size: 0.8rem;
    }
}
