/* ============================================================
   FAQ PAGE STYLES - ACCORDION VERSION
   Riverside Home Designs
   ============================================================ */

/* ========== HERO SECTION ========== */
.page-hero {
    background: linear-gradient(135deg, #1464d1 0%, #0d4a9e 100%);
    
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
}

/* ========== MAIN CONTENT CONTAINER ========== */
.page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
}

.page-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px;
}

/* ========== FAQ CATEGORY ACCORDION ========== */
.faq-category {
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.faq-category:last-of-type {
    margin-bottom: 20px;
}

/* ========== CATEGORY HEADER (CLICKABLE) ========== */
.faq-category-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-category-header:hover {
    background: #e9ecef;
}

.faq-category-header.active {
    background: #1464d1;
}

.faq-category-header.active .faq-category-title {
    
}

.faq-category-header.active .faq-toggle {
    
}

/* ========== FAQ ICON ========== */
.faq-icon {
    width: 35px;
    height: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ========== CATEGORY TITLE ========== */
.faq-category-title {
    flex-grow: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
}

/* ========== TOGGLE INDICATOR ========== */
.faq-toggle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1464d1;
    margin-left: 10px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

/* ========== CATEGORY CONTENT (EXPANDABLE) ========== */
.faq-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

/* ========== FAQ ITEMS INSIDE CATEGORY ========== */
.faq-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 10px;
    border-top: 1px solid #e0e0e0;
}

.faq-item:first-child {
    border-top: none;
}

.faq-item-icon {
    width: 18px;
    height: auto;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-item-content {
    flex: 1;
}

/* ========== QUESTION WITH Q: PREFIX ========== */
.faq-question {
    color: #1464d1;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

/* ========== ANSWER ========== */
.faq-answer {
    color: #444;
}

.faq-answer p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.faq-answer p + p {
    margin-top: 4px;
}

.faq-answer .answer-label {
    font-weight: 700;
    margin-bottom: 3px !important;
}

.faq-answer ul {
    margin: 3px 0;
    padding-left: 16px;
}

.faq-answer ul li {
    margin-bottom: 1px;
    line-height: 1.3;
    font-size: 0.85rem;
}

/* ========== BLOCKQUOTES (TESTIMONIALS) ========== */
.faq-answer blockquote {
    background: #f8f9fa;
    border-left: 3px solid #1464d1;
    margin: 4px 0;
    padding: 5px 10px;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.faq-answer blockquote cite {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-weight: 600;
    color: #1464d1;
    font-size: 0.75rem;
}

/* ========== TESTIMONIALS PAGE LINK ========== */
.testimonials-link {
    margin-top: 6px !important;
}

.testimonials-link a {
    color: #1464d1;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.testimonials-link a:hover {
    text-decoration: underline;
}

/* ========== LINKS ========== */
.faq-answer a {
    color: #1464d1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #0d4a9e;
    text-decoration: underline;
}

/* ========== CONTACT/CTA BOX ========== */
.page-contact {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #1464d1;
    clear: both;
}

.page-contact h3 {
    color: #1464d1;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.page-contact p {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ========== BREADCRUMB (HIDDEN BUT SEO-FRIENDLY) ========== */
.breadcrumb-nav {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav li {
    display: inline;
}

.breadcrumb-nav li + li:before {
    content: " > ";
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 768px) {
    .page-hero {
        padding: 25px 15px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-container {
        padding: 12px;
    }
    
    .faq-category-header {
        padding: 8px 10px;
    }
    
    .faq-icon {
        width: 30px;
        margin-right: 8px;
    }
    
    .faq-category-title {
        font-size: 0.95rem;
    }
    
    .faq-toggle {
        font-size: 1.1rem;
    }
    
    .faq-item {
        padding: 6px 8px;
    }
    
    .faq-item-icon {
        width: 16px;
        margin-right: 6px;
    }
    
    .faq-question {
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        font-size: 0.8rem;
    }
    
    .faq-answer blockquote {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .page-contact h3 {
        font-size: 1.1rem;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 480px) {
    .page-hero {
        padding: 20px 12px;
    }
    
    .page-hero h1 {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .page-container {
        padding: 10px;
    }
    
    .faq-category {
        margin-bottom: 6px;
    }
    
    .faq-category-header {
        padding: 6px 8px;
    }
    
    .faq-icon {
        width: 25px;
        margin-right: 6px;
    }
    
    .faq-category-title {
        font-size: 0.85rem;
    }
    
    .faq-toggle {
        font-size: 1rem;
        margin-left: 6px;
    }
    
    .faq-item {
        padding: 5px 6px;
    }
    
    .faq-item-icon {
        width: 14px;
        margin-right: 5px;
    }
    
    .faq-question {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .faq-answer p {
        font-size: 0.75rem;
        line-height: 1.35;
    }
    
    .faq-answer ul {
        padding-left: 14px;
    }
    
    .faq-answer ul li {
        font-size: 0.75rem;
    }
    
    .faq-answer blockquote {
        padding: 3px 6px;
        margin: 3px 0;
        font-size: 0.7rem;
    }
    
    .faq-answer blockquote cite {
        font-size: 0.65rem;
    }
    
    .testimonials-link a {
        font-size: 0.75rem;
    }
    
    .page-contact {
        padding: 10px 8px;
    }
    
    .page-contact h3 {
        font-size: 1rem;
    }
    
    .page-contact p {
        font-size: 0.8rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .page-hero {
        background: #1464d1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .page-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    /* Expand all categories for print */
    .faq-category-content {
        max-height: none !important;
    }
    
    .faq-toggle {
        display: none;
    }
    
    .faq-category-header {
        background: #f8f9fa !important;
    }
    
    .faq-item {
        break-inside: avoid;
    }
}
