/*!
 * FAQ Blog Consistency - Make FAQ page match blog styling
 * Brings blog design patterns to FAQ for visual consistency
 */

/* ===============================================
   FAQ HERO SECTION - Blog-style Featured Area
   =============================================== */

.faq-page .garden-panel:first-of-type {
    background: linear-gradient(135deg, #B57EDC 0%, #9B6BCF 50%, #7C4DCD 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.faq-page .garden-panel:first-of-type::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgb(255 255 255 / 10%) 0%, transparent 50%);
    pointer-events: none;
}

.faq-page .garden-panel__header {
    position: relative;
    z-index: 2;
}

.faq-page .panel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.faq-page .hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.95;
}

/* ===============================================
   FAQ CONTENT LAYOUT - Two Column with Sidebar
   =============================================== */

.faq-page .garden-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.faq-main-content {
    min-width: 0; /* Prevent grid overflow */
}

.faq-sidebar {
    background: #FCEFEF;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* ===============================================
   FAQ ITEMS - Blog Card Style
   =============================================== */

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
}

.faq-item:hover {
    border-color: #B57EDC;
    box-shadow: 0 4px 12px rgb(181 126 220 / 15%);
    transform: translateY(-2px);
}

.faq-item[open] {
    border-color: #B57EDC;
    box-shadow: 0 4px 20px rgb(181 126 220 / 20%);
}

.faq-question {
    background: linear-gradient(135deg, #FCEFEF 0%, #f8f0f8 100%);
    padding: 1.5rem 2rem;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    margin: 0;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f5e6f5 0%, #f0e8f0 100%);
}

.faq-item[open] .faq-question {
    background: linear-gradient(135deg, #B57EDC 0%, #9B6BCF 100%);
    color: white;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    text-align: left;
}

.expand-icon {
    font-size: 1.5rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 20%);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .expand-icon {
    transform: rotate(180deg);
    background: rgb(255 255 255 / 30%);
}

.faq-answer {
    padding: 2rem;
    background: white;
    border-top: 1px solid #f3f4f6;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.contact-cta p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.featured-faq-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 0 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 3;
    color: rgb(255 255 255 / 90%);
}

.featured-faq-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
    opacity: 0.9;
    color: rgb(255 255 255 / 85%);
    font-style: italic;
}

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

/* ===============================================
   FAQ SIDEBAR CONTENT - Blog Style
   =============================================== */

.faq-sidebar-section {
    margin-bottom: 2rem;
}

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

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #B57EDC;
}

.popular-questions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-questions li {
    margin-bottom: 0.75rem;
}

.popular-questions a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s ease;
}

.popular-questions a:hover {
    color: #B57EDC;
}

.contact-cta {
    background: linear-gradient(135deg, #B57EDC 0%, #9B6BCF 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-cta h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-cta .garden-action {
    background: white;
    color: #B57EDC;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.featured-faq-section .garden-action {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    color: #7C4DCD;
    border: 2px solid rgb(255 255 255 / 50%);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-cta .garden-action:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* ===============================================
   FEATURED FAQ SECTION - Enhanced Blog Style
   =============================================== */

.featured-faq-section {
    background: linear-gradient(135deg, #B57EDC 0%, #A68FCE 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    margin: 3rem auto 4rem;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgb(255 255 255 / 30%);
}

.featured-faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgb(255 255 255 / 15%) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgb(255 255 255 / 10%) 0%, transparent 50%),
        linear-gradient(45deg, rgb(255 255 255 / 5%) 0%, transparent 60%);
    pointer-events: none;
}

.featured-faq-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle, rgb(255 255 255 / 3%) 0%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
}

.featured-faq-section .featured-badge {
    background: linear-gradient(135deg, rgb(255 255 255 / 25%) 0%, rgb(255 255 255 / 15%) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgb(255 255 255 / 20%);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.featured-faq-section h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 3;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #f0f0ff 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.featured-faq-section .garden-action::after {
    content: '→';
    transition: transform 0.3s ease;
}

.featured-faq-section .garden-action:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transform: translateY(-2px);
    border-color: rgb(255 255 255 / 70%);
}

.featured-faq-section .garden-action:hover::after {
    transform: translateX(4px);
}

/* Remove all shadows from featured FAQ section and its contents - ULTRA AGGRESSIVE */
.featured-faq-section,
.featured-faq-section *,
.featured-faq-container,
.featured-faq-item,
.featured-faq-content,
.featured-faq-section .garden-action,
.featured-faq-actions .garden-action,
html .featured-faq-section,
body .featured-faq-section,
[data-theme] .featured-faq-section,
.faq-page .featured-faq-section {
    box-shadow: none !important;
    filter: none !important;
}

.featured-faq-section:hover,
.featured-faq-section *:hover,
.featured-faq-container:hover,
.featured-faq-item:hover,
.featured-faq-content:hover,
.featured-faq-section .garden-action:hover,
.featured-faq-actions .garden-action:hover,
html .featured-faq-section:hover,
body .featured-faq-section:hover,
[data-theme] .featured-faq-section:hover,
.faq-page .featured-faq-section:hover {
    box-shadow: none !important;
    filter: none !important;
}

/* ===============================================
   FAQ INDEX PAGE IMPROVEMENTS
   =============================================== */

/* Add better spacing for FAQ index sections */
.faq-section,
.articles-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
}


.section-title-wrapper {
    padding: 0 1rem 2rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    margin-bottom: 2rem;
}

/* Improve spacing for article list items */
.articles-list .article-list-item {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.articles-list .article-list-item:hover {
    border-color: #B57EDC;
    box-shadow: 0 4px 12px rgb(181 126 220 / 15%);
    transform: translateY(-2px);
}

.article-list-content {
    padding: 0 !important;
}

.article-list-text {
    padding: 0;
}

.article-list-title {
    margin-bottom: 1rem;
}

.article-list-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-list-actions {
    margin-top: 1rem;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (width <= 768px) {
    .faq-page .garden-container {
        padding: 0 1rem;
    }

    .faq-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
        padding: 1rem 0;
    }

    .faq-sidebar {
        order: -1;
        position: static;
        padding: 1.5rem;
    }

    .faq-page .panel-title {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .faq-answer {
        padding: 1.5rem;
    }

    .featured-faq-section {
        padding: 3rem 2rem;
        margin: 2rem 1rem 3rem;
        border-radius: 16px;
    }

    .featured-faq-section h3 {
        font-size: 1.75rem;
    }

    .featured-faq-section .garden-action {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .articles-list .article-list-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-section,
    .articles-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .section-title-wrapper {
        padding: 0 0.5rem 1.5rem;
    }
}

@media (width <= 480px) {
    .faq-page .panel-title {
        font-size: 1.75rem;
    }

    .question-title {
        font-size: 1.125rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }
}
