/* CSS Variables for Easy Theming and Consistency */
:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --accent-color: #ffc107;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --max-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3 {
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.8rem; margin-top: 2.5rem; border-bottom: 3px solid var(--primary-color); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; color: var(--primary-color); }
p { margin-bottom: 1.25rem; font-size: 1.05rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-weight: 800;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: var(--radius);
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #495057;
}

/* Content Article */
.content-article {
    padding: 3rem 15px;
    max-width: 900px; /* Optimal reading width for long-form content */
}

.content-article h2 {
    margin-top: 3.5rem;
}

.content-article p {
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.25rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
    font-weight: 600;
    color: var(--heading-color);
}

.faq-question:hover {
    background-color: #e2e6ea;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 1.25rem;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Arbitrary large height for smooth animation */
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.contact-section h2 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    margin-top: 0;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 1.15rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #adb5bd;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-intro {
        font-size: 1.05rem;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        padding: 16px;
    }
}