/* FAQ Page Styles - Navy & Gold Theme */

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: white;
    padding: 80px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.faq-hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.faq-hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Search Box */
.faq-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.faq-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--navy);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.faq-search input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border: 3px solid transparent;
    border-radius: 50px;
    font-size: 1.05rem;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.faq-search input:focus + i,
.faq-search input:not(:placeholder-shown) + i {
    color: var(--gold);
}

.faq-search input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

/* FAQ Content */
.faq-content {
    padding: 60px 5% 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    min-height: 50vh;
}

.faq-content .container {
    max-width: 900px;
    margin: 0 auto;
}

/* No FAQs Message */
.no-faqs {
    text-align: center;
    padding: 80px 30px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.no-faqs i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 25px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-faqs h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.no-faqs p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--navy);
    background: var(--surface);
    color: var(--navy);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 0;
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tab-btn:hover,
.tab-btn.active {
    color: white;
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.open {
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-color: var(--gold);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    width: 100%;
    padding: 22px 25px;
    border: none;
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-item.open .faq-question {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.question-text {
    flex: 1;
    padding-right: 10px;
}

.toggle-icon {
    color: var(--gold);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 165, 92, 0.1);
}

.faq-item.open .toggle-icon {
    transform: rotate(180deg);
    background: var(--gold);
    color: white;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s ease,
                opacity 0.3s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    padding: 0 25px 22px;
    opacity: 1;
}

.answer-content {
    line-height: 1.8;
    color: var(--text);
    font-size: 1rem;
}

.answer-content p {
    margin-bottom: 15px;
}

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

.answer-content ul,
.answer-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-content strong {
    color: var(--navy);
    font-weight: 600;
}

.answer-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.answer-content a:hover {
    border-bottom-color: var(--gold);
}

.faq-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-1px);
}

.category-tag i {
    color: var(--gold);
    font-size: 0.9rem;
}

.category-tag:hover i {
    color: white;
}

/* Still Have Questions */
.still-have-questions {
    text-align: center;
    margin-top: 50px;
    padding: 45px 30px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.still-have-questions h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.still-have-questions p {
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-primary i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Search Results Count */
.search-results-count {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.search-results-count span {
    color: var(--navy);
    font-weight: 600;
}

/* Highlighted Search Text */
.highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(201, 165, 92, 0.3) 60%);
    padding: 0 2px;
    font-weight: 600;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 4% 45px;
    }
    
    .faq-hero h1 {
        font-size: 1.9rem;
    }
    
    .faq-hero .subtitle {
        font-size: 1rem;
    }
    
    .faq-search input {
        padding: 16px 20px 16px 50px;
        font-size: 1rem;
    }
    
    .faq-search i {
        left: 18px;
    }
    
    .faq-content {
        padding: 40px 4% 60px;
    }
    
    .category-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 0.98rem;
        gap: 12px;
    }
    
    .toggle-icon {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }
    
    .faq-item.open .faq-answer {
        padding: 0 20px 18px;
    }
    
    .answer-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .still-have-questions {
        margin-top: 35px;
        padding: 35px 20px;
    }
    
    .still-have-questions h3 {
        font-size: 1.3rem;
    }
    
    .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .faq-hero {
        padding: 50px 4% 40px;
    }
    
    .faq-hero h1 {
        font-size: 1.6rem;
    }
    
    .faq-hero .subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .faq-search input {
        padding: 14px 18px 14px 45px;
        font-size: 0.95rem;
    }
    
    .faq-content {
        padding: 30px 3% 50px;
    }
    
    .category-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
        border-width: 1.5px;
    }
    
    .faq-item {
        border-radius: var(--radius-sm);
    }
    
    .faq-question {
        padding: 16px 18px;
        font-size: 0.93rem;
        gap: 10px;
    }
    
    .toggle-icon {
        width: 20px;
        height: 20px;
        font-size: 0.85rem;
    }
    
    .faq-item.open .faq-answer {
        padding: 0 18px 16px;
    }
    
    .answer-content {
        font-size: 0.92rem;
        line-height: 1.65;
    }
    
    .answer-content ul,
    .answer-content ol {
        padding-left: 20px;
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .still-have-questions {
        margin-top: 30px;
        padding: 30px 18px;
        border-radius: var(--radius-sm);
    }
    
    .still-have-questions h3 {
        font-size: 1.15rem;
    }
    
    .still-have-questions p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .no-faqs {
        padding: 50px 20px;
    }
    
    .no-faqs i {
        font-size: 3rem;
    }
    
    .no-faqs h3 {
        font-size: 1.2rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .faq-hero {
        background: white;
        color: black;
        padding: 20px;
    }
    
    .faq-hero h1 {
        color: black;
    }
    
    .faq-search,
    .category-tabs,
    .still-have-questions {
        display: none;
    }
    
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 15px !important;
    }
}
