/* 1. FONT IMPORT & ROOT VARIABLES
----------------------------------- */
:root {
    /* Font Family */
    --font-primary: 'Darker Grotesque', sans-serif;

    /* Dark Mode Colors (Default) */
    --color-background: #ffffff;
    --color-text: #121212;
    --color-logo: #000000;
    --color-nav-link: #555555;
    --color-nav-link-hover: #000000;
    --color-separator: #d1d1d1;
    --color-highlight-bg: #d8f3e5; /* Light green background for the highlight card */
    --color-highlight-text: #0b2e24;
    --color-highlight-tag-bg: rgba(11, 46, 36, 0.1);
    --color-tag-bg: #eeeeee;
    --color-tag-border: #dddddd;
    --card-bg: #f9f9f9;
    --color-stories-bg: #f0f3ff;
    --color-stories-text: #1d2146;
    --color-stories-tag-border: #c0c8f5;
    --color-stories-tag-bg-hover: #e0e6ff;
    --color-latest-bg: #f5f5f5;
    --color-latest-text: #111111;
    --color-latest-subtle-text: #555555;
    --color-latest-tag-border: #d1d1d1;
    --color-faq-bg: #f3eefc;
    --color-faq-text: #111111;
    --color-faq-border: #dcd1f3;
    --color-footer-bg: #f5f5f5;
    --color-footer-text: #555555;
    --color-footer-heading: #555555;
    --color-footer-link: #111111;
    --color-footer-border: #e0e0e0;
}

/* Light Mode Variables */
body.light-mode {
    --color-background: #121212;
    --color-text: #ffffff;
    --color-logo: #ffffff;
    --color-nav-link: #d1d1d1;
    --color-nav-link-hover: #ffffff;
    --color-separator: #555555;
    --color-highlight-bg: #d8f3e5;
    --color-highlight-text: #0b2e24;
    --color-highlight-tag-bg: rgba(11, 46, 36, 0.1);
    --color-tag-bg: #333333;
    --color-tag-border: #555555;
    --card-bg: #1a1a1a;
    --color-stories-bg: #f0f3ff;
    --color-stories-text: #ffffff;
    --color-stories-tag-border: #4a5086;
    --color-stories-tag-bg-hover: #2a2f65;
    --color-latest-bg: #111111;
    --color-latest-text: #ffffff;
    --color-latest-subtle-text: #a0a0a0;
    --color-latest-tag-border: #444444;
    --color-faq-bg: #f3eefc;
    --color-faq-text: #111111;
    --color-faq-border: #dcd1f3;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #a0a0a0;
    --color-footer-heading: #a0a0a0;
    --color-footer-link: #ffffff;
    --color-footer-border: #333333;
}

/* 2. GENERAL STYLES
----------------------------------- */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.3rem;
}

.content {
    padding: 40px;
    text-align: center;
}

h1 {
    font-weight: 800;
    font-size: 3rem;
}

/* 3. HEADER STYLES
----------------------------------- */
.site-header {
    /* --- New properties for the effect --- */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out; /* Controls the animation speed */
    box-sizing: border-box; /* Ensures padding is included in the 100% width */

    /* --- Original properties --- */
    background-color: var(--color-background);
    padding: 20px 40px;
    border-bottom: 1px solid var(--color-separator);
}

/* Add this new rule for the hidden state */
.site-header.header-hidden {
    transform: translateY(-100%); /* Moves the header completely out of view */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Styling */
.logo a {
    font-size: 2.5rem; /* 40px */
    font-weight: 900; /* Extra bold for impact */
    text-decoration: none;
    color: var(--color-logo);
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

/* Navigation Styling */
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--color-nav-link);
    text-decoration: none;
    font-size: 1.25rem; /* 20px */
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.separator {
    color: var(--color-separator);
    font-size: 1.25rem;
    line-height: 1;
}

.topics-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    stroke: var(--color-nav-link);
}

.topics-menu:hover .dropdown-arrow {
    transform: translateY(2px);
    stroke: var(--color-nav-link-hover);
}

/* Header Actions (Search & Theme Switcher) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-text);
}

.search-button svg {
    stroke: var(--color-nav-link);
    transition: stroke 0.3s ease;
}

.search-button:hover svg {
    stroke: var(--color-nav-link-hover);
}

/* 4. THEME SWITCHER TOGGLE
----------------------------------- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    border-radius: 28px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ccc;
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #121212;
}

/* 5. RESPONSIVE DESIGN
----------------------------------- */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 20px;
    }
    .logo a {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hides the nav on small screens. You can replace this with a mobile menu (hamburger) later. */
    }
    .header-container {
        justify-content: space-between;
    }
}

/* 5. HERO SECTION DESIGN
----------------------------------- */
.hero-section {
    background-color: var(--color-background);
    padding: 60px 40px;
    border-bottom: 1px solid var(--color-separator);
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Creates 50%, 25%, 25% ratio */
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Column 1: Featured Content --- */
.featured-content {
    display: flex;
    flex-direction: column;
}

.featured-title {
    font-size: 3.75rem; /* ~60px */
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: var(--color-text);
}

.featured-meta, .featured-author {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-nav-link);
    margin: 0 0 8px 0;
}

.featured-author {
    margin-bottom: 24px;
}

.featured-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 auto 0; /* Pushes tags to the bottom */
    color: var(--color-text);
}

/* --- Columns 2 & 3: Hero Cards --- */
.hero-card {
    text-decoration: none;
    background-color: var(--card-bg);
    border: 1px solid var(--color-separator);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.75rem; /* ~28px */
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: var(--color-text);
}

.card-meta, .card-author {
    font-size: 0.9rem;
    color: var(--color-nav-link);
    margin: 0 0 4px 0;
}
.card-author { margin-bottom: 16px; }

.card-excerpt-small {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    color: var(--color-text);
}

/* Card with Image */
.card-with-image .card-title {
    color: var(--color-text);
}

.card-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #333;
}
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Highlight Card */
.card-highlight {
    background-color: var(--color-highlight-bg);
    border: none;
}
.card-highlight .card-title,
.card-highlight .card-excerpt-small {
    color: var(--color-highlight-text);
}
.card-highlight .card-meta, .card-highlight .card-author {
    color: var(--color-highlight-text);
    opacity: 0.8;
}

/* --- Shared Tag Styles --- */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--color-tag-border);
    border-radius: 20px;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s;
}
.tag:hover {
    background-color: var(--color-tag-bg);
}

.tag-highlight {
    background-color: var(--color-highlight-tag-bg);
    border-color: transparent;
    color: var(--color-highlight-text);
}
.tag-highlight:hover {
    background-color: rgba(11, 46, 36, 0.2);
}

.more-options-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}
.btn-highlight {
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b2e24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
}

/* --- Responsive Grid Adjustments --- */
@media (max-width: 1024px) {
    .hero-grid-container {
        grid-template-columns: 1fr 1fr; /* Two columns */
    }
    .featured-content {
        grid-column: 1 / -1; /* Make featured content span full width */
        margin-bottom: 20px; /* Add space below it */
    }
    .featured-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-section { padding: 40px 20px; }
    .hero-grid-container {
        grid-template-columns: 1fr; /* Single column */
        gap: 30px;
    }
    .featured-content {
        margin-bottom: 0;
    }
    .featured-title { font-size: 2.5rem; }
    .card-title { font-size: 1.5rem; }
}
/* 5. HERO SECTION DESIGN
----------------------------------- */
.stories-section {
    background-color: var(--color-stories-bg);
    color: var(--color-stories-text);
    padding: 80px 40px;
}

.stories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allows title and description to stack on small screens */
    gap: 10px;
}

.stories-title {
    font-size: 3rem; /* ~48px */
    font-weight: 800;
    margin: 0;
}

.stories-description {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-stories-text);
    opacity: 0.7;
    margin: 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 30px;
    grid-template-areas: "large-card small-card-1 small-card-2";
}

.story-card {
    text-decoration: none;
    color: var(--color-stories-text);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    opacity: 0.85;
}

.large-story-card {
    grid-area: large-card;
    grid-row: 1 / span 2; /* Makes the card taller */
    flex-direction: row; /* Image and text side-by-side */
    gap: 30px;
}
.large-story-card .story-image-container { flex-basis: 50%; }
.large-story-card .story-content { flex-basis: 50%; }

.story-image-container {
    background-color: rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.large-story-card .story-image-container {
    aspect-ratio: 3 / 4; /* Portrait aspect ratio */
}

.story-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    display: flex;
    flex-direction: column;
}

.story-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
}
.large-story-card .story-title { font-size: 2.25rem; }

.story-meta, .story-author {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0 0 4px 0;
}
.story-author { margin-bottom: 20px; }

.story-excerpt {
    line-height: 1.6;
    flex-grow: 1; /* Pushes tags to the bottom */
}

/* New Tag styles for this section */
.tag-stories {
    border-color: var(--color-stories-tag-border);
    color: var(--color-stories-text);
}
.tag-stories:hover {
    background-color: var(--color-stories-tag-bg-hover);
}
.more-options-btn.btn-stories {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
}
body.light-mode .more-options-btn.btn-stories {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231d2146' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "large-card large-card"
            "small-card-1 small-card-2";
    }
    .large-story-card {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .large-story-card .story-image-container {
        aspect-ratio: 1/1; /* Square on tablet */
        flex-basis: 40%;
    }
}

@media (max-width: 768px) {
    .stories-section { padding: 60px 20px; }
    .stories-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "large-card"
            "small-card-1"
            "small-card-2";
    }
    .large-story-card { flex-direction: column; }
    .large-story-card .story-image-container {
        aspect-ratio: 4 / 3; /* Back to landscape for stacked view */
    }
    .stories-title { font-size: 2.5rem; }
}

/* 8. GUIDANCE SECTION STYLES
-------------------------------------------------- */
.guidance-section {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 80px 40px;
}

.guidance-container {
    max-width: 1200px; /* Slightly smaller max-width for this section */
    margin: 0 auto;
}

.guidance-header {
    margin-bottom: 40px;
}

.guidance-title {
    font-size: 2.5rem; /* ~40px */
    font-weight: 700;
    margin: 0 0 12px 0;
}

.guidance-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-nav-link);
    margin: 0;
    max-width: 600px; /* Constrain line length */
}

.guidance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* More gap for a spacious feel */
}

.tour-item-title {
    font-size: 1.5rem; /* ~24px */
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--color-text);
}

.tour-item-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-nav-link);
    margin: 0 0 20px 0;
}

.tour-image-link {
    display: block;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tour-image-link:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tour-image-container {
    aspect-ratio: 4 / 3;
    background-color: #333;
}

.tour-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learn-more-link {
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--color-text);
    transition: opacity 0.3s ease;
}

.learn-more-link:hover {
    opacity: 0.7;
}

/* Responsive adjustments for the guidance section */
@media (max-width: 768px) {
    .guidance-section { padding: 60px 20px; }
    .guidance-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .guidance-title { font-size: 2rem; }
    .guidance-subtitle { font-size: 1.125rem; }
}
/* 9. LATEST ARTICLES SECTION STYLES
-------------------------------------------------- */
.latest-articles-section {
    background-color: var(--color-latest-bg);
    padding: 80px 40px;
}

.latest-articles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.latest-articles-header {
    text-align: center;
    margin-bottom: 50px;
}

.latest-articles-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-latest-text);
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.article-item {
    text-decoration: none;
    color: var(--color-latest-text);
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.article-item:hover {
    opacity: 0.8;
}

.article-image-container {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #333;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image-container .logo-image {
    width: 50%;
    height: auto;
    object-fit: contain;
}

.article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures content fills space */
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.article-meta, .article-author {
    font-size: 0.9rem;
    color: var(--color-latest-subtle-text);
    margin: 0 0 4px 0;
}

.article-author {
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-latest-subtle-text);
    margin: 0;
    flex-grow: 1; /* Pushes tags to the bottom */
}

/* Overriding general tag styles for this section */
.latest-articles-grid .tag {
    border-color: var(--color-latest-tag-border);
    color: var(--color-latest-subtle-text);
}
.latest-articles-grid .more-options-btn {
    border-color: var(--color-latest-tag-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='19' cy='12' r='1'%3E%3C/circle%3E%3Ccircle cx='5' cy='12' r='1'%3E%3C/circle%3E%3C/svg%3E");
}

/* Responsive adjustments for the latest articles */
@media (max-width: 1200px) {
    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .latest-articles-section { padding: 60px 20px; }
    .latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .latest-articles-title { font-size: 2.75rem; }
}
/* Delete the old #10 CSS and replace it with this corrected version */

/* 10. LIFE SECTION STYLES (CORRECTED)
-------------------------------------------------- */
.life-section {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 80px 40px;
    border-top: 1px solid var(--color-separator);
}

.life-container {
    max-width: 1400px;
    margin: 0 auto;
}

.life-header {
    margin-bottom: 50px;
    max-width: 800px; /* Constrain width of intro text */
}

.life-title {
    font-size: 3rem; /* ~48px */
    font-weight: 700;
    margin: 0 0 16px 0;
}

.life-intro {
    font-size: 1.25rem; /* ~20px */
    line-height: 1.6;
    color: var(--color-nav-link);
}

.life-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Ratio for image vs text */
    gap: 80px; /* Wider gap for a more spacious layout */
    align-items: flex-start;
}

.community-image-wrapper {
    width: 100%;
}

.community-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: adds a slight curve to the image corners */
}

.community-description {
    /* Nudge the text down to visually align better with the image */
    padding-top: 10px; 
}

.community-description h3 {
    font-size: 2rem; /* ~32px */
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--color-text);
}

.community-description p {
    font-size: 1.125rem; /* ~18px */
    line-height: 1.7;
    color: var(--color-nav-link);
    margin: 0 0 1em 0; /* Standard paragraph spacing */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .life-content-layout {
        grid-template-columns: 1fr; /* Stack on tablet and smaller */
        gap: 40px;
    }

    .community-description {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .life-section { padding: 60px 20px; }
    .life-title { font-size: 2.5rem; }
    .life-intro { font-size: 1.125rem; }
    .community-description h3 { font-size: 1.75rem; }
    .community-description p { font-size: 1rem; }
}
/* Dark mode override for FAQ section */
body:not(.light-mode) {
    --color-faq-bg: #2a213a;
    --color-faq-text: #f3eefc;
    --color-faq-border: #423659;
}

.faq-section {
    background-color: var(--color-faq-bg);
    color: var(--color-faq-text);
    padding: 80px 40px;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Ratio for title vs accordion */
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-main-title {
    font-size: 3.5rem;
    font-weight: 700;
}

.faq-item {
    border-bottom: 2px solid var(--color-faq-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding-right: 20px; /* Space for the arrow */
}

.faq-arrow {
    flex-shrink: 0; /* Prevents the arrow from shrinking */
    stroke: var(--color-faq-text);
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-answer p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 90%; /* Constrains line length for readability */
    margin: 0;
    padding-bottom: 30px;
}

/* --- Active State --- */
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if your answers are longer */
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}


/* Responsive adjustments for FAQ */
@media (max-width: 768px) {
    .faq-section { padding: 60px 20px; }
    .faq-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .faq-main-title { font-size: 2.75rem; }
    .faq-question h3 { font-size: 1.25rem; }
    .faq-answer p { font-size: 1rem; max-width: 100%;}
}
/* 12. SITE FOOTER STYLES
-------------------------------------------------- */

.site-footer-wrapper {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
}

/* --- Part 1: Newsletter --- */
.newsletter-section {
    padding: 60px 40px;
    border-bottom: 1px solid var(--color-footer-border);
}

.newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--color-footer-link);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input[type="email"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-footer-border);
    padding: 12px 40px 12px 0;
    font-size: 1.75rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-footer-link);
    outline: none;
}
.input-wrapper input[type="email"]::placeholder {
    color: var(--color-footer-text);
    opacity: 0.8;
}

.input-wrapper button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-footer-link);
}

.form-legal {
    font-size: 0.875rem;
    margin-top: 20px;
}
.form-legal label, .form-legal p { margin: 0 0 8px 0; }
.form-legal a {
    color: var(--color-footer-text);
    text-decoration: underline;
}

/* --- Part 2: Main Footer --- */
.footer-main {
    padding: 80px 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    color: var(--color-footer-heading);
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column li {
    margin-bottom: 12px;
}
.footer-column a {
    text-decoration: none;
    color: var(--color-footer-link);
    font-size: 1rem;
    font-weight: 500;
}

.brand-column .footer-logo {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-footer-link);
}

.social-links { display: flex; gap: 12px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    color: white;
}
body.light-mode .social-links a { background-color: #e0e0e0; color: #111; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .newsletter-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-container { grid-template-columns: 1.5fr repeat(2, 1fr); gap: 50px 30px; }
    .footer-column:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .footer-column:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
}

@media (max-width: 768px) {
    .newsletter-section, .footer-main { padding-left: 20px; padding-right: 20px; }
    .newsletter-text h2, .input-wrapper input { font-size: 1.75rem; }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
    .brand-column { grid-column: 1 / -1; margin-bottom: 20px; }
    .footer-column:nth-child(4) { grid-column: 1/2; grid-row: 3/4; }
    .footer-column:nth-child(5) { grid-column: 2/3; grid-row: 3/4; }
}
/* 13. BLOG POST DETAIL PAGE STYLES
-------------------------------------------------- */
:root {
    --color-post-text: #333333;
    --color-post-heading: #111111;
    --color-post-meta: #555555;
    --color-blockquote-bg: #f5f5f5;
    --color-blockquote-border: #e0e0e0;
    --color-table-header-bg: #f1f1f1;
    --color-table-border: #e0e0e0;
    --color-positive: #28a745;
    --color-negative: #dc3545;
    --color-star-rating: #ffc107;
    --color-cta-button-bg: #111111;
    --color-cta-button-text: #ffffff;
}

body.light-mode {
    --color-post-text: #d1d1d1;
    --color-post-heading: #ffffff;
    --color-post-meta: #a0a0a0;
    --color-blockquote-bg: rgba(255, 255, 255, 0.05);
    --color-blockquote-border: #444;
    --color-table-header-bg: #2a2a2a;
    --color-table-border: #333;;
    --color-cta-button-bg: #ffffff;
    --color-cta-button-text: #111111;
}

.blog-post-page {
    background-color: var(--color-background);
    padding: 40px 0;
}

.post-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Article Header & Meta --- */
.post-header { text-align: center; margin-bottom: 40px; }
.post-header h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-post-heading);
    margin: 0 auto 20px auto;
    max-width: 800px;
}
.post-meta { display: flex; justify-content: center; gap: 20px; color: var(--color-post-meta); font-weight: 500; }

/* --- Images & Figures --- */
.featured-image { margin: 0 0 40px 0; }
.featured-image img { width: 100%; height: auto; border-radius: 12px; }
.featured-image figcaption { text-align: center; margin-top: 12px; font-size: 0.9rem; color: var(--color-post-meta); }
.image-gallery-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.image-gallery-2col figure { margin: 0; }
.image-gallery-2col img { width: 100%; height: auto; border-radius: 8px; }
.image-gallery-2col figcaption { font-size: 0.8rem; color: var(--color-post-meta); margin-top: 8px; }

/* --- Post Layout (TOC + Content) --- */
.post-body-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
}

/* --- Table of Contents --- */
.table-of-contents { position: sticky; top: 120px; align-self: start; }
.table-of-contents h4 { font-size: 1rem; font-weight: 700; color: var(--color-post-heading); margin: 0 0 16px 0; }
.table-of-contents ol { list-style: none; padding: 0; margin: 0; }
.table-of-contents li { margin-bottom: 12px; }
.table-of-contents a { text-decoration: none; font-weight: 500; color: var(--color-post-meta); transition: color 0.2s; }
.table-of-contents a:hover { color: var(--color-post-heading); }

/* --- Main Content Typography & Elements --- */
.post-main-content { min-width: 0; /* Prevents overflow issues */ }
.post-main-content .lead-paragraph { font-size: 1.25rem; font-weight: 500; color: var(--color-post-heading); margin-top: 0; }
.post-main-content p { font-size: 1.3rem; line-height: 1.8; color: var(--color-post-text); margin: 0 0 1.5em 0; }
.post-main-content h2 { font-size: 2.5rem; font-weight: 800; color: var(--color-post-heading); margin: 2.5em 0 1em 0; padding-top: 20px; }
.post-main-content blockquote {
    margin: 30px 0;
    padding: 24px;
    background-color: var(--color-blockquote-bg);
    border-left: 4px solid var(--color-blockquote-border);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-post-heading);
}

/* --- Comparison Table --- */
.table-container { overflow-x: auto; margin: 30px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--color-table-border); }
th { font-weight: 700; background-color: var(--color-table-header-bg); color: #1a1a1a; }
td { color: #1a1a1a; }
td.positive { color: var(--color-positive); font-weight: 600; }
td.negative { color: var(--color-negative); font-weight: 600; }

/* --- Product Review Card --- */
.product-review-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    background-color: var(--color-blockquote-bg);
    border: 1px solid var(--color-blockquote-border);
    padding: 24px;
    border-radius: 12px;
    margin: 40px 0;
}
.product-logo img { width: auto; height: 64px; border-radius: 8px; }
.product-info h3 { font-size: 1.5rem; margin: 0 0 8px 0; color: var(--color-post-heading); }
.star-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.star-rating svg { width: 20px; height: 20px; fill: var(--color-star-rating); }
.star-rating span { font-size: 0.9rem; color: var(--color-post-meta); margin-left: 8px; }
.product-features { list-style: inside; padding: 0; margin: 0; }
.product-features li { margin-bottom: 4px; color: var(--color-post-text); }
.product-cta { text-align: center; }
.cta-button {
    display: inline-block;
    background-color: var(--color-cta-button-bg);
    color: var(--color-cta-button-text);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
}
.cta-button:hover { opacity: 0.8; }
.cta-subtext { font-size: 0.8rem; margin-top: 8px; color: var(--color-post-meta); }

/* --- Final CTA --- */
.final-cta {
    text-align: center;
    background-color: var(--color-blockquote-bg);
    padding: 40px;
    margin: 60px 0 20px 0;
    border-radius: 12px;
}
.final-cta h3 { font-size: 2rem; margin: 0 0 12px 0; color: var(--color-post-heading); }
.final-cta p { max-width: 400px; margin: 0 auto 24px auto; color: var(--color-post-text); }
.cta-button.large { font-size: 1.125rem; padding: 16px 32px; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .post-header h1 { font-size: 3.5rem; }
    .post-body-grid { grid-template-columns: 1fr; }
    .table-of-contents { position: static; margin-bottom: 40px; border-bottom: 1px solid var(--color-blockquote-border); padding-bottom: 20px; }
    .table-of-contents ol { display: flex; flex-wrap: wrap; gap: 10px 20px; }
}

@media (max-width: 768px) {
    .post-content-wrapper { padding: 0 20px; }
    .post-header h1 { font-size: 2.5rem; }
    .image-gallery-2col { grid-template-columns: 1fr; }
    .product-review-card { grid-template-columns: 1fr; text-align: center; }
    .product-logo { margin: 0 auto; }
    .star-rating, .product-features { justify-content: center; text-align: left; }
    .product-cta { margin-top: 20px; }
}
/* 14. HELP CENTER PAGE STYLES
-------------------------------------------------- */
:root {
    --color-help-bg: var(--color-background);
    --color-help-text: var(--color-text);
    --color-help-heading: var(--color-post-heading);
    --color-help-meta: var(--color-post-meta);
    --color-help-border: var(--color-separator);
    --color-info-box-bg: rgba(76, 76, 255, 0.1);
    --color-info-box-border: #4c4cff;
    --color-info-box-pink-bg: rgba(227, 179, 255, 0.1);
    --color-info-box-pink-border: #e3b3ff;
    --color-help-button-bg: transparent;
    --color-help-button-text: var(--color-text);
    --color-help-button-border: var(--color-separator);
}

body.light-mode {
    --color-help-bg: var(--color-background);
    --color-help-text: var(--color-text);
    --color-help-heading: var(--color-post-heading);
    --color-help-meta: var(--color-post-meta);
    --color-help-border: var(--color-separator);
    --color-info-box-bg: rgba(76, 76, 255, 0.1);
    --color-info-box-border: #4c4cff;
    --color-info-box-pink-bg: rgba(227, 179, 255, 0.1);
    --color-info-box-pink-border: #e3b3ff;
    --color-help-button-text: var(--color-text);
    --color-help-button-border: var(--color-separator);
}


.help-center-page { background-color: var(--color-help-bg); padding: 40px 0; }
.help-center-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 280px; /* Main content and sidebar */
    gap: 80px;
}

/* --- Main Content (Left) --- */
.help-header .breadcrumb { color: var(--color-help-meta); margin-bottom: 24px; }
.help-header .breadcrumb a { color: var(--color-help-meta); }
.help-header h1 { font-size: 3.5rem; font-weight: 800; color: var(--color-help-heading); margin: 0 0 16px 0; }
.help-header .intro-paragraph { font-size: 1.25rem; color: var(--color-help-text); max-width: 650px; }

.help-content section { margin-bottom: 40px; padding-top: 20px; }
.help-content h2 { font-size: 2rem; font-weight: 700; color: var(--color-help-heading); margin: 2em 0 1em 0; }
.help-content h3 { font-size: 1.5rem; font-weight: 600; color: var(--color-help-heading); margin: 1.5em 0 1em 0; }
.help-content p { font-size: 1rem; line-height: 1.7; color: var(--color-help-text); margin: 0 0 1em 0; }
.help-content a { color: var(--color-help-heading); text-decoration: underline; }

.two-col-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 30px 0;
}
.feature-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.primary-button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--color-help-button-border);
    border-radius: 8px;
    color: var(--color-help-button-text);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}
.primary-button:hover { background-color: var(--color-help-button-border); }

.info-box {
    background-color: var(--color-info-box-bg);
    border: 1px solid var(--color-info-box-border);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    line-height: 1.7;
}
.info-box.pink { background-color: var(--color-info-box-pink-bg); border-color: var(--color-info-box-pink-border); }

.steps-list { padding-left: 20px; }
.steps-list li { margin-bottom: 12px; }
.icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-help-text);
    color: var(--color-help-bg);
    font-weight: 700;
}

.link-list { list-style: none; padding: 0; margin: 20px 0; }
.link-list li { margin-bottom: 8px; }

.browse-all-link { font-weight: 600; }

/* --- Sidebar (Right) --- */
.in-this-article {
    position: sticky;
    top: 100px; /* Offset for sticky header */
    align-self: start;
    background-color: var(--color-blockquote-bg);
    border: 1px solid var(--color-help-border);
    border-radius: 12px;
    padding: 24px;
}
.in-this-article h4 { font-size: 1rem; font-weight: 700; color: var(--color-help-heading); margin: 0 0 16px 0; }
.in-this-article ul { list-style: none; padding: 0; }
.in-this-article ul ul { padding-left: 16px; margin-top: 8px; }
.in-this-article li { margin-bottom: 8px; }
.in-this-article a {
    text-decoration: none;
    color: var(--color-help-meta);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.in-this-article a:hover { color: var(--color-help-heading); }
.in-this-article hr { border: none; height: 1px; background-color: var(--color-help-border); margin: 20px 0; }
.reading-time { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--color-help-meta); }
.reading-time svg { stroke: var(--color-help-meta); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .help-center-container { grid-template-columns: 1fr; }
    .in-this-article { grid-row: 1; position: static; margin-bottom: 40px; }
}

@media (max-width: 768px) {
    .help-center-container { padding: 0 20px; }
    .help-header h1 { font-size: 2.5rem; }
    .two-col-feature { grid-template-columns: 1fr; gap: 20px; }
    .feature-image { grid-row: 1; }
}
/* 15. DOMAIN INFO TABLE STYLES
-------------------------------------------------- */
:root {
    --color-table-border-top: #2ecc71; /* Green */
    --color-table-bg: #ffffff;
    --color-table-header-bg: #f8f9fa;
    --color-table-border-light: #e9ecef;
    --color-table-text: #212529;
    --color-table-icon-bg: #007bff;
}

body.light-mode {
    --color-table-border-top: #2ecc71;
    --color-table-bg: #ffffff;
    --color-table-header-bg: #f8f9fa;
    --color-table-border-light: #e9ecef;
    --color-table-text: #212529;
    --color-table-icon-bg: #007bff;
}

/* Dark Mode Overrides for Table */
body:not(.light-mode) {
    --color-table-border-top: #2ecc71;
    --color-table-bg: #FFF;
    --color-table-header-bg: #f5f5f5;
    --color-table-border-light: #495057;
    --color-table-text: #fff;
    --color-table-icon-bg: #007bff;
}

.domain-table-container {
    background-color: var(--color-table-bg);
    border: 1px solid var(--color-table-border-light);
    border-top: 4px solid var(--color-table-border-top);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 40px 0;
    
    /* --- THIS IS THE KEY CHANGE --- */
    /* Allows the container to scroll horizontally if the content inside is too wide */
    overflow-x: auto;
}

.domain-table-container table {
    width: 100%;
    /* Set a minimum width to prevent the table from squishing too much */
    min-width: max-content; 
    border-collapse: collapse;
    color: var(--color-table-text);
}

.domain-table-container th,
.domain-table-container td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-right: 1px solid var(--color-table-border-light);
    font-size: 1.3rem;
    line-height: 1.5;
    /* Prevent text from wrapping to new lines */
    white-space: nowrap; 
}

.domain-table-container th:last-child,
.domain-table-container td:last-child {
    border-right: none;
}

.domain-table-container thead {
    background-color: var(--color-table-header-bg);
}

.domain-table-container th {
    font-weight: 700;
}

.domain-table-container tbody tr {
    border-top: 1px solid var(--color-table-border-light);
}

.domain-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: var(--color-table-icon-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ================================== */
/* NEW! RESPONSIVE STYLES FOR TABLE   */
/* ================================== */
@media (max-width: 992px) {
    .domain-table-container {
        border: none;
        border-top: 4px solid var(--color-table-border-top);
        box-shadow: none;
    }
    
    .domain-table-container thead {
        display: none; /* Hide the table headers on small screens */
    }

    .domain-table-container tr {
        display: inline-table;
        margin-bottom: 20px;
        border: 1px solid var(--color-table-border-light);
        border-radius: 8px;
        overflow: hidden;
        flex-direction: row;
        gap: 20px;
        padding: 15px;
    }
    
    .domain-table-container tr:last-child {
        margin-bottom: 0;
    }

    .domain-table-container td {
        display: block;
        text-align: center; /* Push the data to the right */
        border-right: none;
        border-bottom: 1px solid var(--color-table-border-light);
        position: relative;
        padding-left: 0; /* Make space for the label */
    }

    .domain-table-container td:last-child {
        border-bottom: none; /* Remove border from the last cell in the card */
    }
    
    /* Use the data-label from the HTML to create a faux header */
    .domain-table-container td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: calc(50% - 32px);
        text-align: left;
        font-weight: bold;
    }
    
    /* Adjust the domain name cell for mobile */
    .domain-name-cell {
        justify-content: center; /* Align the content to the right */
    }
}

.domain-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: var(--color-table-icon-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Responsive adjustments for the table */
@media (max-width: 768px) {
    .domain-table-container {
        border: none;
        box-shadow: none;
        border-top: 4px solid var(--color-table-border-top);
    }
    
    .domain-table-container thead {
        display: none; /* Hide headers on mobile */
    }

    .domain-table-container tr {
         display: inline-table;
        margin-bottom: 20px;
        border: 1px solid var(--color-table-border-light);
        border-radius: 8px;
        overflow: hidden;
        flex-direction: row;
        gap: 20px;
        padding: 15px;
    }

    .domain-table-container td {
        display: block;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid var(--color-table-border-light);
        position: relative;
        padding-left: 0;
    }

    .domain-table-container td:last-child {
        border-bottom: none;
    }

    .domain-table-container td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        text-align: left;
        font-weight: bold;
    }
    
    /* Add data-label attributes via JS or manually for this to work */
    /* Or, if not dynamic, hardcode it in a different way if needed. */
    /* For simplicity, this example assumes headers are visually understood */
    /* or you would add the data-labels dynamically. */
}