﻿/* ========================
   FAQ Page Styles
   ======================== */

:root {
    --primary-blue: #0066CC;
    --light-blue: #3399FF;
    --accent-orange: #FFA500;
    --highlight-red: #E63946;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #777777;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-color: #E5E7EB;
    --success-green: #25D366;
    --gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
}

/* Header - Same as other pages */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    display: block;
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    padding: 10px 22px;
    white-space: nowrap;
}

.nav-menu > ul > li > a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--primary-blue);
}

.nav-menu a[href="javascript:void(0)"] {
    cursor: pointer;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: 0;
    z-index: 100;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    padding: 0;
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Categories Navigation */
.faq-nav {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 86px;
    z-index: 100;
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
    min-width: 140px;
    text-align: center;
}

.category-link:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.category-link i {
    font-size: 28px;
    color: var(--accent-orange);
}

.category-link span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* FAQ Content */
.faq-content {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-category {
    margin-bottom: 60px;
    scroll-margin-top: 150px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    border-radius: 12px;
    color: var(--bg-white);
}

.category-header i {
    font-size: 40px;
}

.category-header h2 {
    margin: 0;
    color: var(--bg-white);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    font-size: 20px;
    color: var(--primary-blue);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-question h3 {
    margin: 0;
    font-size: 19px;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 28px 28px 64px;
}

.faq-answer p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 16px 0;
    padding-left: 24px;
}

.faq-answer li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.faq-answer strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    text-align: center;
    color: var(--bg-white);
}

.cta-section h2 {
    margin-bottom: 20px;
    color: var(--bg-white);
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--highlight-red);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: #d32f3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    color: var(--text-dark);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 700;
}

.footer-col p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 18px;
}

.contact-info i {
    color: var(--primary-blue);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 102, 204, 0.2);
}

.footer-bottom p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-wrapper {
        gap: 16px;
    }

    .nav-menu > ul {
        gap: 2px;
    }

    .nav-menu > ul > li > a {
        padding: 10px 12px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .nav-wrapper {
        padding: 16px 0;
        gap: 0;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu > ul {
        gap: 0;
    }

    .nav-menu > ul > li > a {
        padding: 10px 8px;
        font-size: 19px;
        white-space: nowrap;
    }

    .dropdown {
        min-width: 200px;
    }

    .dropdown a {
        padding: 10px 16px;
        font-size: 16px;
    }

    .faq-nav {
        position: static;
    }
    
    .category-links {
        gap: 12px;
    }
    
    .category-link {
        min-width: 120px;
        padding: 12px 16px;
    }
}

@media (max-width: 900px), (max-width: 1024px) and (orientation: portrait) {
    .nav-menu {
        display: block;
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu > ul > li > a {
        padding: 18px 24px;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown a {
        padding: 14px 24px 14px 44px;
    }
    
    .has-dropdown:hover .dropdown {
        display: none;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .category-links {
        gap: 8px;
    }
    
    .category-link {
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .category-link i {
        font-size: 24px;
    }
    
    .category-link span {
        font-size: 18px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 56px;
    }
    
    .category-header {
        padding: 20px 24px;
    }
    
    .category-header i {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .category-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-link {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
    }
}
