/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Inter:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h2 {
    color: #059669;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.brand-subtitle {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #059669;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #059669;
}

.hero {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay for Hero visibility */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-description {
    border-left: 2px solid var(--brand-accent);
    padding-left: 25px;
    max-width: 550px;
}

.hero-description p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 12px;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;

}

.category-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.category-btn.active {
    background-color: #059669;
    color: white;
}

/* FAQ Content */
.faq-content {
    margin-bottom: 60px;
}

.faq-section {
    display: block;
}

.faq-section.hidden {
    display: none;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 300;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: #059669;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 1px solid #f3f4f6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.answer-text {
    padding-top: 20px;
}

.answer-text p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.answer-text p:last-child {
    margin-bottom: 0;
}

.answer-text ul,
.answer-text ol {
    color: #4b5563;
    font-size: 0.95rem;
    margin-left: 20px;
    margin-bottom: 15px;
}

.answer-text li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.contact-section p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 30px;
}

.contact-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    border-color: #059669;
    color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.contact-btn i {
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link.active::after {
        display: none;
    }

    .content-container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .category-nav {
        justify-content: flex-start;
        padding: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .category-nav {
        gap: 5px;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }

    .contact-section {
        padding: 25px 15px;
    }
}

/* Animation for FAQ items */
.faq-item {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.category-btn:focus,
.faq-question:focus,
.contact-btn:focus,
.nav-link:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Loading state */
.faq-content.loading .faq-item {
    opacity: 0.5;
    pointer-events: none;
}

/* ===============================
   BASE (Desktop / Large Screens)
   =============================== */
/* Default styles apply for laptop & desktop (≥1200px)
   No changes needed here if your main CSS is already written */


/* ===============================
   LAPTOPS & SMALL DESKTOPS
   (992px – 1199px)
   =============================== */
@media (max-width: 1199px) {
    .main-menu a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .content-container {
        padding: 0 24px;
    }
}


/* ===============================
   TABLETS (768px – 991px)
   =============================== */
@media (max-width: 991px) {

    /* Header */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-menu {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Hero */
    .hero {
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    /* Category buttons */
    .category-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .category-btn {
        font-size: 14px;
        padding: 8px 14px;
    }

    /* FAQ */
    .faq-question h3 {
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}


/* ===============================
   MOBILE DEVICES (≤767px)
   =============================== */
@media (max-width: 767px) {

    /* Header */
    
    /* Hero */
    .hero {
        min-height: 60vh;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-description p {
        font-size: 14px;
    }

    /* Page Header */
    .page-title {
        font-size: 26px;
        text-align: center;
    }

    .page-description {
        text-align: center;
        font-size: 14px;
    }

    /* FAQ */
    .faq-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .toggle-icon {
        align-self: flex-end;
    }

    /* Contact Section */
    .contact-options {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
