/**
 * FAQ Page Styles
 * Page-specific styles only - base patterns are in home-sections.css
 * Note: Section padding is centralized in layout.css
 */

/* Hero Section */
.faq-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.faq-hero .container {
    text-align: center;
}

.faq-hero .hero-title-box {
    background: rgba(0, 0, 0, 0.8);
    display: inline-block;
}

.faq-hero h1 {
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    font-size: 32px;
}

@media (min-width: 768px) {
    .faq-hero {
        min-height: 600px;
        padding: 100px 40px;
    }

    .faq-hero h1 {
        font-size: 35.2px;
        line-height: 43.12px;
    }
}

@media (min-width: 1920px) {
    .faq-hero {
        min-height: 600px;
        padding: 120px 60px;
    }

    .faq-hero h1 {
        font-size: 35.2px;
        line-height: 43.12px;
    }
}

/* FAQ Navigation Section */
.faq-nav-section {
    background-color: #000;
    position: sticky;
    top: -1px; /* Eliminate gap when sticky */
    z-index: 100;
    margin-top: -1px; /* Eliminate gap between hero and nav */
}

/* Override global container padding for FAQ nav - needs less padding.
   ADO 5428 (L14): the bar stays on screen while you scroll, so it must be short. It was 276 px on a 390 px phone and 148 px on a computer;
   live's is 146 and 108. Now: the four buttons share one row on a phone (they wrapped to two rows), icons are 40 px as in live's bar
   (live .category-bar .faq-nav-image-wrap .image-anchor { max-height: 40px }), padding is smaller. Every button stays 44 px or more. */
.faq-nav-section > .container {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (min-width: 768px) { /* tablet breakpoint - min */
    .faq-nav-section {
        top: -1px;
        margin-top: -1px;
    }
}

.faq-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 6px 2px;
    transition: all 0.3s ease;
    flex: 1 1 0;
    min-width: 0;
}

/* Asked & Answered - Blue hover/active */
.faq-nav-item:nth-child(1):hover,
.faq-nav-item:nth-child(1):active,
.faq-nav-item:nth-child(1):focus,
.faq-nav-item:nth-child(1).active {
    color: #0d55d2;
}

/* C Color App Assistance - Red/Orange hover/active */
.faq-nav-item:nth-child(2):hover,
.faq-nav-item:nth-child(2):active,
.faq-nav-item:nth-child(2):focus,
.faq-nav-item:nth-child(2).active {
    color: #e74c3c;
}

/* Subscription Information - Green hover/active */
.faq-nav-item:nth-child(3):hover,
.faq-nav-item:nth-child(3):active,
.faq-nav-item:nth-child(3):focus,
.faq-nav-item:nth-child(3).active {
    color: #2ecc71;
}

/* Account Assistance - Yellow/Gold hover/active */
.faq-nav-item:nth-child(4):hover,
.faq-nav-item:nth-child(4):active,
.faq-nav-item:nth-child(4):focus,
.faq-nav-item:nth-child(4).active {
    color: #f1c40f;
}

/* Icon wrapper for hover swap */
.faq-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.faq-nav-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Default icon visible, hover icon hidden */
.faq-nav-item .icon-default {
    opacity: 1;
}

.faq-nav-item .icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* On hover/active, swap icons */
.faq-nav-item:hover .icon-default,
.faq-nav-item:active .icon-default,
.faq-nav-item:focus .icon-default,
.faq-nav-item.active .icon-default {
    opacity: 0;
}

.faq-nav-item:hover .icon-hover,
.faq-nav-item:active .icon-hover,
.faq-nav-item:focus .icon-hover,
.faq-nav-item.active .icon-hover {
    opacity: 1;
}

.faq-nav-item span {
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 400px) { /* extra-small breakpoint */
    .faq-nav-section > .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (min-width: 768px) { /* tablet breakpoint - min */
    .faq-nav {
        gap: 40px;
    }

    .faq-nav-item {
        flex: 0 1 auto;
        min-width: 150px;
        padding: 6px 20px;
    }
}

/* Tablet widths: tighter spacing so the labels stay on one line and the bar stays as short as on a computer. */
@media (min-width: 768px) and (max-width: 991px) { /* tablet breakpoint */
    .faq-nav {
        gap: 20px;
    }

    .faq-nav-item {
        min-width: 0;
        padding: 6px 10px;
    }
}

/* FAQ Sections */
.faq-section {
    /* padding handled by section > .container rule */
    background-color: #fff;
    /* Offset for sticky nav when scrolling to anchor: the menu bar plus the section bar (ADO 5428: shorter now, so the offset shrank with it) */
    scroll-margin-top: 180px;
}

@media (min-width: 768px) { /* tablet breakpoint - min */
    .faq-section {
        scroll-margin-top: 170px;
    }
}

.faq-section-alt {
    background-color: #f5f5f5;
}

.faq-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    color: #292b2c;
}

.faq-intro {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .faq-section h2 {
        font-size: 32px;
    }
}

/* ADO 8176 wave 4 (the Chief Officer's read list 4, item 5): App Assistance and Account Assistance black with white words, heading 44px on computers */
#app-assistance, #account { background-color: #000; }
#app-assistance h2, #account h2, #app-assistance .faq-title h3, #account .faq-title h3, #app-assistance .faq-content p, #account .faq-content p { color: #fff; }
@media (min-width: 768px) { /* tablet breakpoint - min */ #app-assistance h2, #account h2 { font-size: 44px; } }
#app-assistance .faq-content a, #account .faq-content a { color: #0275d8; }

/* FAQ Items - 3-Column Layout: Title | Image | Content */
.faq-item {
    display: grid;
    grid-template-columns: 240px 150px 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* Title column (left) */
.faq-title {
    /* Title text only */
}

.faq-title h3 {
    font-size: 20px;
    font-weight: bold;
    color: #292b2c;
    line-height: 1.4;
    margin: 0;
}

/* Image column (center) - with blue line */
.faq-image {
    width: 150px;
    border-left: 3px solid #394da0;
    padding-left: 15px;
}

.faq-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content/Answer column (right) */
.faq-content {
    /* Takes remaining space */
}

.faq-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

.faq-content a {
    color: #0d55d2;
    text-decoration: none;
}

.faq-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) { /* mobile breakpoint */
    .faq-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-title {
        order: 1;
    }

    .faq-image {
        order: 2;
        width: 180px;
        margin: 0 auto 15px;
    }

    .faq-content {
        order: 3;
    }

    .faq-title h3 {
        font-size: 18px;
    }
}

@media (min-width: 768px) { /* tablet breakpoint - min */
    .faq-item {
        grid-template-columns: 265px 180px 1fr;
    }

    .faq-image {
        width: 180px;
    }

    .faq-title h3 {
        font-size: 22px;
    }

    .faq-content p {
        font-size: 17px;
    }
}

/* FAQ Subsection Titles */
.faq-subsection-title {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.faq-subsection-title:first-of-type {
    margin-top: 0;
}

/* FAQ Items without images - 2-Column Layout: Title | Content */
.faq-item-no-image {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.faq-item-no-image:last-child {
    margin-bottom: 0;
}

.faq-item-no-image .faq-title h3 {
    font-size: 20px;
    font-weight: bold;
    color: #292b2c;
    line-height: 1.4;
    margin: 0;
}

.faq-item-no-image .faq-content {
    border-left: 3px solid #394da0;
    padding-left: 30px;
}

.faq-item-no-image .faq-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.faq-item-no-image .faq-content p:last-child {
    margin-bottom: 0;
}

.faq-item-no-image .faq-content a {
    color: #0d55d2;
    text-decoration: none;
}

.faq-item-no-image .faq-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) { /* mobile breakpoint */
    .faq-item-no-image {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-item-no-image .faq-title {
        order: 1;
    }

    .faq-item-no-image .faq-content {
        order: 2;
    }

    .faq-item-no-image .faq-title h3 {
        font-size: 18px;
    }
}

@media (min-width: 768px) { /* tablet breakpoint - min */
    .faq-item-no-image {
        grid-template-columns: 265px 1fr;
    }

    .faq-item-no-image .faq-title h3 {
        font-size: 22px;
    }

    .faq-item-no-image .faq-content p {
        font-size: 17px;
    }
}

/* Full-width FAQ content (deprecated - use faq-item-no-image) */
.faq-content-full {
    width: 100%;
}

/* Light CTA Section Additions */
.app-download-cta {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.app-download-cta p {
    font-size: 18px;
    margin-bottom: 20px;
}

.app-download-cta .app-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.app-download-cta .app-badges img {
    height: 45px;
    width: auto;
}

.app-download-cta .app-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}
