/* --- FINAL REDESIGN V5: Corrected Dark Blue & Image Path --- */
/* --- FONT DEFINITIONS REMOVED --- */
/* Using a system-safe font stack for performance and reliability. */

:root {
    --bg-main: #F0F2F5; /* Light Grey Background */
    --bg-surface: #FFFFFF;
    --header-footer-bg: #0A192F; /* Solid Dark Blue */
    --text-primary: #1B263B; /* Dark Blue-Gray Text */
    --text-on-dark: #FFFFFF; /* Pure White for text on dark backgrounds */
    --accent-primary: #415A77; /* Muted Blue */
    --accent-secondary: #778DA9;
    --border-color: #DDE1E4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & FOOTER --- */
.site-header, .site-footer {
    background-color: var(--header-footer-bg);
    padding: 1.5rem 2rem;
    color: var(--text-on-dark);
}

.site-footer {
    margin-top: 4rem;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* --- Header & Footer Specific Alignment --- */
.site-header .nav-container {
    justify-content: space-between;
}

.site-footer .nav-container {
    justify-content: center;
}

.site-logo {
    font-size: 1.8em;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
}

.main-nav a, .footer-nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav a:hover, .footer-nav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-nav {
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.9em;
    color: var(--accent-secondary);
    text-align: center;
}

/* --- GENERIC PAGE LAYOUT --- */
.content-main {
    max-width: 950px;
    margin: 4rem auto;
    padding: 0 2rem;
    flex-grow: 1;
}

/* --- HERO & INTRO SECTIONS --- */
.hero-section {
    padding: 2rem 0;
    text-align: left;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 0.5rem;
}

.hero-section p {
    font-size: 1.1em;
    color: var(--accent-secondary);
    max-width: 80ch;
}

.intro-section {
    background-color: var(--bg-surface);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


.content-section, .image-section, .answer-section, .faq-section, .search-and-related {
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

/*
  DEPRECATION FIX V2: Use :where() for zero-specificity default.
  This is the modern, canonical fix that prevents browser-default changes
  and resolves the "Deprecated API" warning without specificity conflicts.
*/
:where(article, aside, nav, section) h1 {
    font-size: 2em; /* Default size for h1 in a sectioning context */
}

.intro-section h1, .content-section h1, .content-page-main h1 {
    font-size: 3em; /* Overwrite for specific, larger headlines */
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    word-wrap: break-word; /* Prevent overflow from long words */
}

.responsive-image {
    width: 100%;
    height: auto; /* Fallback for older browsers */
    aspect-ratio: 1024 / 1536; /* Explicit aspect ratio to prevent CLS */
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.intro-section p {
    text-align: center;
    font-size: 1.2em;
    color: var(--accent-primary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* THE BIG F*CKING SEARCH BAR */
.giant-search-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(65, 90, 119, 0.2);
    position: relative; /* For search suggestions */
}
.giant-search-input {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.25em;
    border: 1px solid var(--border-color);
    border-right: none;
    background-color: #FFF;
    color: var(--text-primary);
}
.giant-search-input:focus {
    outline: 2px solid var(--accent-primary);
}
.giant-search-button {
    padding: 1.25rem 2.5rem;
    font-size: 1.25em;
    background-color: var(--accent-primary);
    color: #FFF;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease;
}
.giant-search-button:hover {
    background-color: var(--text-primary);
}

/* --- "WOW" ANSWER SECTION --- */
.answer-section h2 {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.answer-section > p {
    font-size: 1.1em;
    color: var(--accent-secondary);
    margin-bottom: 2.5rem;
}
.answer-group {
    margin-bottom: 2.5rem;
}
.answer-group h3 {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.answer-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.answer-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.1em;
}
.answer-item strong {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Standard Content Sections --- */
.content-section h2 {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}
.content-section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
    font-size: 1.1em;
}
.content-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}


/* --- GENERIC CONTENT PAGE LAYOUT --- */
.content-page-main {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.content-page-main h1, .content-page-main h2 {
    font-size: 3em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.content-section h1, .content-section h2 {
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .content-main {
        padding: 0 1rem; /* Reduce padding on smaller screens */
        margin: 2rem auto;
    }
    .content-section, .image-section, .answer-section, .faq-section, .search-and-related {
        padding: 1.5rem; /* Reduce padding on smaller screens */
    }
    .intro-section h1, .content-section h1, .content-page-main h1, .content-page-main h2 {
        font-size: 2.2em; /* Reduce font size for all main headings */
        margin-bottom: 2rem;
    }
    .content-section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .giant-search-form { flex-direction: column; }
    .giant-search-input { border-radius: 8px 8px 0 0; border-right: 1px solid var(--border-color); }
    .giant-search-button { border-radius: 0 0 8px 8px; }
}
/* --- SEARCH SUGGESTIONS --- */
#search-suggestions {
    position: absolute;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: left;
}

#search-suggestions a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#search-suggestions a:hover {
    background-color: var(--bg-main);
}

/* --- Small Search Form (Content Pages) --- */
.search-container {
    position: relative;
}

.search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    position: relative; /* For search suggestions */
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1em;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 6px 0 0 6px;
    background-color: #FFF;
    color: var(--text-primary);
}

.search-input:focus {
    outline: 2px solid var(--accent-primary);
}

.search-button {
    padding: 1rem 2rem;
    font-size: 1.1em;
    background-color: var(--accent-primary);
    color: #FFF;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease;
    border-radius: 0 6px 6px 0;
}

.search-button:hover {
    background-color: var(--text-primary);
}