/* General Styles */
:root {
    --primary-yellow: #FFD700;
    --deep-black: #000000;
    --charcoal-grey: #2D2D2D;
    --white: #FFFFFF;
    --light-grey: #f5f5f5;
    --medium-grey: #e0e0e0;
    --dark-grey: #555555;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--deep-black);
    background-color: var(--white);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: var(--charcoal-grey);
    color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p, ul, ol {
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-yellow);
}

ul, ol {
    padding-left: 20px;
}

section {
    padding: 40px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: var(--deep-black);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.dark-mode .navbar {
    background-color: var(--deep-black);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-yellow);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--deep-black);
}

.dark-mode .mobile-menu-btn {
    color: var(--white);
}

/* Hero Section */
.hero {
    background-color: var(--deep-black);
    color: var(--white);
    text-align: center;
    padding: 120px 0 60px;
}

.hero h1 {
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    position: relative;
}

#faq-search {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

#faq-search:focus {
    outline: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-yellow);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    background-color: var(--deep-black);
    color: var(--white);
}

/* Introduction Section */
.intro {
    background-color: var(--light-grey);
    padding: 60px 0;
    transition: var(--transition);
}

.dark-mode .intro {
    background-color: var(--charcoal-grey);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.quick-nav {
    margin-top: 30px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.dark-mode .quick-nav {
    background-color: var(--deep-black);
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.quick-nav li {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.quick-nav i {
    color: var(--primary-yellow);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Main FAQ Content */
.faq-content {
    padding: 60px 0;
    background-color: var(--white);
    transition: var(--transition);
}

.dark-mode .faq-content {
    background-color: var(--charcoal-grey);
}

.faq-content .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Category List */
.category-list {
    position: sticky;
    top: 100px;
    align-self: start;
}

.category-list h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-yellow);
}

.category-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.category-list li {
    margin-bottom: 15px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.category-list a.active {
    background-color: var(--primary-yellow);
    color: var(--deep-black);
}

.category-list a:hover:not(.active) {
    background-color: var(--light-grey);
}

.dark-mode .category-list a:hover:not(.active) {
    background-color: var(--deep-black);
}

/* Support Box */
.support-box {
    background-color: var(--light-grey);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    transition: var(--transition);
}

.dark-mode .support-box {
    background-color: var(--deep-black);
}

.support-box h3 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.support-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-yellow);
}

.support-box ul {
    margin-bottom: 0;
}

.support-box a {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.support-box i {
    color: var(--primary-yellow);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* FAQ Sections */
.faq-sections {
    margin-bottom: 40px;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-category > h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-yellow);
}

/* FAQ Items */
.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.dark-mode .faq-item {
    background-color: var(--deep-black);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-grey);
}

.dark-mode .faq-question:hover {
    background-color: #3a3a3a;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    flex: 1;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-grey);
    transition: var(--transition);
}

.dark-mode .toggle-icon {
    background-color: #3a3a3a;
}

.toggle-icon i {
    transition: var(--transition);
}

.faq-item.active .toggle-icon i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 2000px; /* Large enough value */
}

/* Service Tiers Styling */
.service-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0;
    margin: 15px 0;
}

.service-tiers li {
    background-color: var(--light-grey);
    padding: 15px;
    border-radius: 5px;
    list-style: none;
    transition: var(--transition);
}

.dark-mode .service-tiers li {
    background-color: #3a3a3a;
}

.service-tiers li:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.service-tiers strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-yellow);
}

/* CTA Section */
.cta-section {
    background-color: var(--deep-black);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.cta-section .cta-button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--deep-black);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--charcoal-grey);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-yellow);
    color: var(--deep-black);
    transform: translateY(-5px);
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.dark-mode-toggle {
    background: var(--charcoal-grey);
    border: none;
    color: var(--primary-yellow);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.dark-mode-toggle:hover {
    background-color: var(--primary-yellow);
    color: var(--deep-black);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-yellow);
    color: var(--deep-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Search Results */
.search-results {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    display: none;
    transition: var(--transition);
}

.dark-mode .search-results {
    background-color: var(--deep-black);
}

.search-results.show {
    display: block;
}

.search-results h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-grey);
}

.search-results ul {
    list-style: none;
    padding: 0;
}

.search-results li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-grey);
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results a {
    display: block;
    font-weight: 500;
}

.search-results a:hover {
    color: var(--primary-yellow);
}

.search-results .category {
    font-size: 0.9rem;
    color: var(--dark-grey);
    margin-top: 5px;
}

.search-results .no-results {
    text-align: center;
    padding: 20px;
    font-weight: 500;
}

/* Highlight for search results */
.highlight {
    background-color: var(--primary-yellow);
    color: var(--deep-black);
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .faq-content .container {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .category-list ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .category-list li {
        margin-bottom: 0;
    }
    
    .category-list a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-tiers {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .dark-mode .nav-links {
        background-color: var(--deep-black);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .quick-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    #faq-search {
        padding: 12px 50px 12px 15px;
        font-size: 1rem;
    }
    
    #search-btn {
        width: 35px;
        height: 35px;
    }
    
    .category-list ul {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}