/* Basic Reset & Global Styles */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #333; /* Default text color */
}

body {
    line-height: 1.6;
    background-color: #fff;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1em; /* Responsive padding */
}

a {
    text-decoration: none;
    color: #107C41; /* Standard link color - CHANGED */
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    padding: 1em 0;
    border-bottom: 1px solid #e0e0e0; /* var(--borderColor) */
    background: #f8f9fa; /* var(--bg) */
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    text-decoration: none;
}

.logo-svg {
    width: 32px;
    height: auto;
}

.site-title-header {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1em;
    color: #333;
}

.main-nav a {
    margin-left: 1em;
    font-size: 0.9em;
    color: #555;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 2em 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2em 1em 3em; /* Adjusted padding slightly */
    background-color: #f0f2f5; 
    border-radius: 8px;
    margin: 3em auto; /* Added auto for horizontal centering */
    max-width: 960px; /* Constrain width, can be adjusted */
    /* margin-bottom: 3em; /* Already part of margin shorthand */
    border: 1px solid #107C41; /* Added border */
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif; /* Reverted to Poppins */
    /* font-weight: 700; */ /* Will use Poppins default or other specific Poppins weights if defined */
    /* font-style: italic; */ /* Reverted to non-italic default for Poppins */
    font-size: 2.5em; 
    margin-bottom: 0.25em;
    color: #2c3e50;
}

.hero-section .subtitle {
    font-size: 1.2em; /* Responsive font size */
    margin-bottom: 1.5em;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #107C41; /* var(--primaryControlBg) - CHANGED */
    color: white;
    padding: 0.75em 1.5em; /* Base padding */
    border-radius: 8px; /* More rounded edges, increased from 5px */
    text-decoration: none;
    font-weight: 500;
    font-size: 1em; /* Default font size for CTA buttons */
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center; /* Ensure text is centered */
    line-height: 1.5; /* Adjust for better vertical centering if needed */
}

.cta-button.large-button {
    padding: 1.3em 2.5em; 
    font-size: 1.3em; /* UPDATED from 1.2em */
    min-width: 300px; 
    border-radius: 999px; 
}

.cta-button:hover {
    background-color: #0D6334; /* var(--primaryControlActiveBg) - CHANGED */
    text-decoration: none;
}

/* Features Section */
.features-section {
    display: grid;
    /* We want 3 columns explicitly for these items */
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin: 3em auto;
    max-width: 900px; /* This should be wide enough for 3 items + gap */
    /* text-align on feature-card children will center their content */
}

.feature-card {
    padding: 1.5em;
    text-align: center; /* Ensures content within each card is centered */
}

.feature-icon svg {
    height: 48px;
    width: auto;
    margin-bottom: 1em;
}

.feature-card h3 {
    margin-bottom: 0.5em;
    font-size: 1.25em;
}

.feature-card p {
    font-size: 0.875em;
    color: #555;
}

/* Pricing Section */
.pricing-section {
    display: grid;
    /* Create 3 equal columns, allow them to take up space */
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin: 3em 0;
    width: 100%; /* Ensure the grid takes full container width */
}

.pricing-card {
    border: 1px solid #d1d6d7; /* rgb(209,214,215) */
    border-radius: 8px; /* var(--radius) */
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    /* Cards will naturally be larger if the grid columns are wider */
}

.pricing-card.highlighted {
    border-color: #107C41; /* var(--linkTextColor) - CHANGED */
}

.pricing-card h2 {
    font-size: 1.25em;
    margin-bottom: 0.25em;
}

.pricing-subtitle {
    font-size: 0.875em;
    color: #555;
    margin-bottom: 1em;
    flex-grow: 0; /* Prevent subtitle from taking too much space */
}

.pricing-features {
    list-style: none;
    margin: 1em 0 1.5em;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.checkmark-icon {
    color: #15bf9e; /* rgb(21,191,158) */
    margin-right: 0.5em;
    flex-shrink: 0;
    height: 1em; /* Ensure it aligns with text */
    width: 1em;  /* Ensure it aligns with text */
}

.price-tag {
    font-size: 1.75em;
    margin: 0;
    font-weight: 600;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto; /* Pushes to bottom */
}

.text-link {
    font-size: 0.875em;
}


/* Need More Section */
.need-more-section {
    background: #e8ebfa; /* rgb(232 235 250) */
    border-radius: 8px; /* var(--radius) */
    padding: 2em;
    margin: 3em auto 1em;
    max-width: 900px;
    border: 1px solid #107C41; /* Added border */
    text-align: center; /* Center heading and paragraph */
}

.need-more-section h2 {
    margin-bottom: 0.5em;
    font-size: 1.5em;
}

.need-more-content {
    display: flex; /* Changed from grid */
    flex-direction: column; /* Stack items */
    align-items: center; /* Center items horizontally */
    gap: 1em;
}

.need-more-content p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.need-more-section .cta-button {
    padding: 0.9em 2em; /* Slightly larger */
    font-size: 1.1em; /* Slightly larger */
    border-radius: 999px; /* Fully rounded */
    margin-top: 1em; /* Space from paragraph */
}


/* Footer */
.site-footer-bottom {
    padding: 1.5em 0;
    border-top: 1px solid #e0e0e0; /* var(--borderColor) */
    background-color: #f8f9fa;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-content-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875em;
    color: #555;
}

.footer-links a {
    margin-left: 0.5em;
    color: #555;
}
.footer-links a:first-child {
    margin-left: 0;
}


/* Responsive Adjustments */
@media (min-width: 576px) { /* Match original breakpoint for need-more */
    .need-more-content {
        /* grid-template-columns: 1fr max-content; */ /* REMOVED for centering */
        /* align-items: center; */ /* REMOVED */
        gap: 1.5em; /* Adjusted gap, can be tweaked */
    }
}

@media (max-width: 939px) {
    .header-content {
        display: flex; 
        align-items: center; 
        justify-content: flex-start; /* Ensure items start from the left */
        position: relative; 
        /* padding-left: 0; Ensure no extra padding if container handles it */
        /* padding-right: 0; */
    }
    .site-main {
        padding: 2em 1em; 
        display: flex; 
        flex-direction: column;
        align-items: center;        
        text-align: center;         
    }
    .logo-link { 
        flex-grow: 0; /* Do not allow the logo link to grow */
        display: flex; /* Keep as flex for internal alignment if ever needed */
        justify-content: flex-start; /* Align image to start of link */
        margin-left: 0; /* Explicitly no left margin */
        margin-right: 0; /* Explicitly no right margin */
    }
    .site-logo {
        margin-left: 0; /* Ensure logo image itself has no left margin */
    }
    .main-nav {
        margin-top: 0.5em;
    }
    .main-nav a {
        margin-left: 0;
        margin-right: 1em; 
    }
    .hero-section h1 {
        font-size: 2.2em; 
    }
    .hero-section .subtitle {
        font-size: 1em;
    }
    .footer-content-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-top: 0.5em;
    }
     .footer-links a {
        display: inline-block; 
        margin: 0 0.3em;
    }
    #pricing.pricing-section {
        display: inline-block;      /* To be centered by parent's text-align */
        grid-template-columns: 1fr; /* Internal layout: cards stack */
        max-width: 450px;           /* Max width of the pricing block */
        margin-top: 3em;
        margin-bottom: 3em;
        text-align: left;           /* Content INSIDE pricing cards aligns left */
        vertical-align: top;        /* Good practice for inline-block */
        /* No horizontal margins needed for inline-block centering via text-align */
    }
}

@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .hero-section {
        padding: 1.5em 1em;
    }
     .cta-button.large-button {
        font-size: 1.2em; /* UPDATED from 1.1em */
        padding: 1.2em 2em; 
        min-width: auto; 
        width: 88%; /* ADJUSTED from 90% for better centering feel */
        max-width: 400px; /* But not too wide */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .cta-button.large-button {
        font-size: 1.1em; /* UPDATED from 1em */
        padding: 1.1em 1.5em; 
    }
    .hero-section h1 {
        font-size: 2.0em; /* INCREASED from 1.6em */
    }
    .hero-section .subtitle {
        font-size: 0.9em;
    }
}

/* Authentication Page Styles */
.auth-container {
    max-width: 480px; 
    margin: 60px auto;
    padding: 40px; /* Good padding for the overall box */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

/* Remove max-width from form, let auth-container padding define its bounds */
.auth-container form {
    /* max-width: 350px; Removed */
    /* margin: 0 auto; Removed */
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px; 
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    /* No text-align here, allow children to self-align or be block */
}

.form-label {
    display: block; /* Keep it block */
    max-width: 300px; /* Match the max-width of the inputs/button */
    margin-left: auto; /* Center the label */
    margin-right: auto; /* Center the label */
    margin-bottom: 8px; /* Space below label */
    padding-left: 0; /* Remove any default browser/UA padding for label if it misaligns with input */
    font-weight: 500;
    color: #495057;
    text-align: left; /* Text within the label itself should be left-aligned */
}

.form-control {
    display: block; 
    width: 100%; 
    max-width: 300px; 
    margin-left: auto; 
    margin-right: auto; 
    padding: 12px 15px;
    font-size: 1em;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px; 
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: #1E8A52; /* Lighter Green for focus - CHANGED */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(16, 124, 65, .25); /* CHANGED */
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

.invalid-feedback {
    display: none; 
    width: 100%;
    max-width: 300px; 
    margin-left: auto; 
    margin-right: auto; 
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
    text-align: left; 
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

.form-check {
    display: flex; /* Changed from block to flex for better control of checkbox and label alignment */
    align-items: center;
    max-width: 300px; 
    margin: 20px auto; 
    /* padding-left: 0; /* Adjust if checkbox is misaligned with inputs */
}

.form-check-input {
    margin-right: .5rem;
    /* No margin-left needed if .form-check is centered and items are flex-start */
}

.form-check-label {
    font-weight: normal;
    margin-bottom: 0; /* Remove default bottom margin if any from .form-label */
}

.auth-button {
    display: block; 
    width: 100%;    
    max-width: 300px; 
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px;
    font-size: 1.1em;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links small {
    color: #555;
}

.auth-links a {
    color: #107C41; /* var(--linkTextColor) - CHANGED */
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Ensure flashed messages in base.html have consistent width with auth forms if desired */
/* Or keep them wider as they are currently in base.html */

/* Pricing Page Specific Styles */
.pricing-page-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}

.plan-toggle {
    text-align: center;
    margin-bottom: 30px;
}

.plan-toggle button {
    padding: 10px 20px;
    border: 1px solid #107C41; /* CHANGED */
    border-radius: 0; /* Will be handled by specific first/last child if needed for group */
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.plan-toggle button#monthlyBtn {
    border-radius: 5px 0 0 5px;
    /* background-color: #007bff; /* Set by JS initially */
    /* color: white; /* Set by JS initially */
}

.plan-toggle button#annualBtn {
    border-radius: 0 5px 5px 0;
    border-left: none;
    /* background-color: white; /* Set by JS initially */
    /* color: #007bff; /* Set by JS initially */
}

.plan-toggle span {
    margin-left: 15px;
    font-weight: bold;
    color: #28a745;
}

.pricing-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Keep responsive columns */
    gap: 25px; /* Slightly more gap */
    margin-top: 20px; /* Add some top margin */
}

.plan-card {
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px;
    padding: 25px 20px; /* Adjust padding */
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Align items vertically */
    justify-content: space-between; /* Distribute space */
}

.plan-card.highlighted { /* For a potential featured plan */
    border-color: #107C41;  /* CHANGED */
    box-shadow: 0 6px 20px rgba(16, 124, 65, 0.15); /* CHANGED */
}

.plan-card h3 {
    font-size: 1.4em; /* Slightly larger plan title */
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.plan-card .price {
    font-size: 2em; /* Larger price */
    font-weight: bold;
    margin-bottom: 15px; /* More space below price */
    color: #333;
}

.plan-card .price .plan-interval {
    font-size: 0.7em; /* Smaller '/ month' or '/ year' */
    font-weight: normal;
    color: #555;
}

.plan-card .cta-button {
    width: 100%;
    padding: 12px 15px; /* Consistent button padding */
    font-size: 1em;
    margin-bottom: 20px; /* Space below button */
    margin-top: auto; /* Push button towards bottom if card content is short */
    border-radius: 999px; /* Fully rounded */
}

.plan-card p:last-child { /* Feature text */
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0; /* Remove bottom margin from last p */
}

/* Styles for specific plan cards if needed, e.g., Enterprise */
.plan-card.enterprise-plan .price {
    font-size: 1.2em; /* Smaller text for "Need more?" */
    margin-bottom: 20px;
    color: #555;
}

/* Homepage Specific Styles */

/* Ensure the hero section upload message area has specific styling */
.hero-section #upload-message-area.error {
    background-color: #f8d7da; /* Light red for errors */
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1em;
    margin-top: 15px; /* Ensure it has some top margin */
    border-radius: 5px;
    display: block; /* Ensure it's visible when it has content */
}

.hero-section #upload-message-area {
    /* Default state if not an error, could be hidden or have different style */
    /* display: none; /* This is handled by JS, but ensure no conflicting global style */
}

/* Styles for the pricing preview section ON THE HOMEPAGE (id='pricing') */
#pricing.pricing-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2em;
    margin: 3em auto;
    max-width: 900px;
}

/* If the overall content of the homepage (excluding hero) should be narrower */
/* .homepage-content-wrapper {
    max-width: 960px; 
    margin: 0 auto;
} */
/* Then you would wrap features, pricing-preview, need-more in this div in index.html */


/* Responsive Adjustments */
/* ... (existing @media queries) ... */

/* Adjust pricing preview on smaller screens if needed */
@media (max-width: 939px) {
    /* ... existing rules ... */
    #pricing.pricing-section {
        display: inline-block;      /* To be centered by parent's text-align */
        grid-template-columns: 1fr; /* Internal layout: cards stack */
        max-width: 450px;           /* Max width of the pricing block */
        margin-top: 3em;
        margin-bottom: 3em;
        text-align: left;           /* Content INSIDE pricing cards aligns left */
        vertical-align: top;        /* Good practice for inline-block */
        /* No horizontal margins needed for inline-block centering via text-align */
    }
}

@media (max-width: 768px) {
    /* ... existing rules ... */
     #pricing.pricing-section {
        /* Already 1fr from above, could adjust gap or max-width further if needed */
    }
}

/* ... (CSS for features and pricing previews will be added next) ... */

/* Language Dropdown Styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.lang-dropdown-btn {
    background-color: transparent;
    color: #555; /* Match other nav links */
    padding: 8px 10px;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
}

.lang-dropdown-btn:hover, .lang-dropdown-btn:focus {
    color: #107C41; /* Highlight on hover/focus - CHANGED */
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    right: 0; /* Align to the right of the button */
    border-radius: 4px;
    border: 1px solid #ddd;
}

.lang-dropdown-content a {
    color: black;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.lang-dropdown-content a:hover {background-color: #e9e9e9;}

/* Show dropdown on hover - simple CSS method */
.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

/* Settings Page Specific Styles */
.settings-page-container {
    max-width: 760px;
    margin: 20px auto;
    padding: 20px;
}

.settings-page-container h1,
.settings-section h3 {
    text-align: left; 
}

.settings-section {
    margin-bottom: 35px; 
    padding-bottom: 25px; 
    border-bottom: 1px solid #eee;
    text-align: left; /* Ensures children like h3 and forms align left by default */
}
.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    font-size: 1.4em; 
    margin-bottom: 20px; 
    font-weight: 500; 
    text-align: left; /* Ensure section headings are left-aligned */
}

.settings-form {
    max-width: 380px; 
    margin: 0; /* Aligns form to the left of .settings-section */
    /* NO text-align: center here */
}

.settings-form .form-group {
    margin-bottom: 15px;
    text-align: left; /* Explicitly align content of form-group to the left */
}

.settings-form .form-label {
    display: block;   
    width: 100%;      /* Label takes full width of form-group */
    text-align: left; /* Text within the label is strictly left-aligned */
    margin-bottom: 5px; 
    font-weight: 500;
    color: #495057;
}

.settings-form .form-control {
    display: block; 
    width: 100%; /* Input takes full width of form-group */
    max-width: 100%; 
    box-sizing: border-box;
    margin-left: 0; 
    margin-right: 0;
}

.settings-form .cta-button.auth-button {
    display: block; 
    width: 100%; 
    max-width: 100%; 
    box-sizing: border-box;
    margin-left: 0; 
    margin-right: 0;
    margin-top: 10px; /* Add some space above the button */
}

.settings-form .form-check {
    display: flex; 
    align-items: center;
    text-align: left; 
    margin-bottom: 20px;
    padding-left: 0; /* Ensure no unintended indent */
}
.settings-form .form-check-input {
    margin-right: .5rem;
}

/* API Key Group should also be left-aligned within its section */
.api-key-group {
    display: flex;
    align-items: center;
    max-width: 380px; 
    margin: 0; /* Align left within its parent settings-section */
}

/* ... (rest of CSS) ... */

/* Pricing Page Specific Styles - Refinements and new classes */
.plan-toggle button.toggle-btn {
    /* Base styles already in .cta-button, add specifics for toggle appearance */
    /* The JS now toggles .active and .inactive classes */
}
.plan-toggle button.toggle-btn.active {
    background-color: #107C41; /* CHANGED */
    color: white;
    border-color: #107C41; /* CHANGED */
}
.plan-toggle button.toggle-btn.inactive {
    background-color: white;
    color: #107C41; /* CHANGED */
    border-color: #107C41; /* CHANGED */
}
/* Ensure only left one has left radius, right one has right radius */
#monthlyBtn.toggle-btn {
    border-radius: 5px 0 0 5px;
}
#annualBtn.toggle-btn {
    border-radius: 0 5px 5px 0;
    border-left-width: 0; /* Make them look connected */
}

.save-yearly-text {
    margin-left: 15px;
    font-weight: bold;
    color: #28a745;
    vertical-align: middle; /* Align with buttons */
}

.plan-features {
    list-style: none; 
    padding-left: 0; 
    margin-top:15px; 
    font-size: 0.9em; 
    color: #555;
    text-align: left; /* Align feature text to the left within the card */
    padding-left: 20px; /* Indent feature list slightly */
}
.plan-features li {
    margin-bottom: 8px;
}

/* Contact Page Styles */
.contact-form-container h2 {
    /* Assuming .auth-container is used, its h2 style will apply */
}
.contact-form-container p.subtitle-text {
    text-align: center; 
    margin-bottom: 20px;
    color: #555;
}

/* Blog Page Styles */
.blog-container h1 {
    margin-bottom: 30px; 
    text-align:center;
}
.blog-post-summary {
    margin-bottom: 40px; 
    padding-bottom: 30px; 
    border-bottom: 1px solid #eee;
}
.blog-post-summary:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}
.blog-post-summary h2 a {
    text-decoration: none; 
    color: #333;
}
.blog-post-summary h2 a:hover {
    color: #107C41; /* CHANGED */
}
.post-meta {
    font-size: 0.9em; 
    color: #777; 
    margin-bottom: 10px;
}
.blog-post-summary .summary {
    color: #555;
    line-height: 1.6;
}
.blog-post-summary .cta-button {
    display: inline-block; 
    padding: 8px 15px; 
    font-size: 0.9em; 
    margin-top:15px;
}

/* Blog Post (Single) Styles */
.blog-post-container {
    max-width: 800px; /* Center the content column */
    margin-top: 20px; 
    margin-bottom: 40px;
}
.blog-post-full h1 {
    margin-bottom: 10px;
}
.blog-post-full .post-meta {
    font-size: 0.9em; 
    color: #777; 
    margin-bottom: 25px;
}
.blog-post-full .post-content {
    line-height: 1.7;
    font-size: 1.05em; /* Slightly larger for readability */
}
.blog-post-full .post-content p {
    margin-bottom: 1em;
}
.blog-post-full .post-content h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}
.blog-post-full .post-content h3 {
    font-size: 1.3em;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}
.blog-post-full hr {
    margin-top:30px; 
    margin-bottom:30px;
}
.blog-post-container > p > a { /* Back to blog link */
    text-decoration: none;
}

/* Labels within these specific forms */
.settings-form .form-label {
    display: block;   /* Make label take its own line */
    text-align: left; /* Align text within the label to the left */
    margin-bottom: 8px; 
    font-weight: 500;
    color: #495057;
    /* Remove any max-width or auto margins from the label itself, 
       it should span the width of the .settings-form if needed, 
       or just naturally align left above its input. */
}

/* Form controls and buttons within these specific forms */
.settings-form .form-control,
.settings-form .cta-button.auth-button {
    width: 100%; /* Take full width of the parent .settings-form */
    max-width: 100%; /* Ensure it can go full width of .settings-form */
    box-sizing: border-box;
    margin-left: 0; /* No auto margins needed if form itself is centered */
    margin-right: 0;
}

/* Adjust .form-check within .settings-form if it was part of auth forms */
.settings-form .form-check {
    text-align: left; /* Align checkbox and its label to the left */
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    /* display: flex; align-items: center; /* Keep if this helps checkbox alignment */
}

/* ... (API Key Group styles - these are likely fine as they use flexbox differently) ... */
/* ... (rest of CSS) ... */

/* Blog Post Page - Admin Edit Section */
.admin-post-edit-section {
    margin-top: 50px;
    padding: 25px;
    border: 1px dashed #b0bec5; /* Softer dashed border */
    background-color: #f8f9fa; /* Light background */
    border-radius: 8px;
}

.admin-post-edit-section hr {
    margin: 25px 0;
    border-top: 1px solid #dee2e6;
}

.admin-post-edit-section h3 {
    font-size: 1.6em; /* Larger heading for the section */
    margin-bottom: 20px;
    font-weight: 600;
}

.admin-post-edit-section h4 {
    font-size: 1.2em;
    margin-top: 20px; /* Space above SEO Data subhead */
    margin-bottom: 15px;
    font-weight: 500;
}

/* Override .settings-form max-width when it's inside .admin-post-edit-section */
.admin-post-edit-section .settings-form {
    max-width: none; /* Allow form to take full width of admin section */
    margin: 0; /* Reset any auto margins if it had them */
}

/* Ensure form elements within this specific admin form are full width */
.admin-post-edit-section .form-control,
.admin-post-edit-section .cta-button.auth-button {
    width: 100%;
    max-width: 100%;
}

.admin-post-edit-section #post_content {
    min-height: 300px; /* Ensure textarea height */
    font-family: monospace;
    font-size: 0.95em; /* Slightly larger for readability */
}

/* For the two-column SEO fields layout */
.admin-post-edit-section .form-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-left: -10px; /* Gutters for columns */
    margin-right: -10px;
}

.admin-post-edit-section .form-row > .form-group {
    flex: 1; /* Make columns flexible */
    min-width: 280px; /* Minimum width before wrapping */
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* ... (rest of CSS) ... */

/* Header Logo and Navigation Adjustments */
.site-logo {
    width: 192px; /* User requested size */
    height: auto;
    vertical-align: middle;
    margin-left: 12px; /* Nudge 2px more to the right from the previous 10px */
}

.hamburger-menu {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other content */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 939px) { /* Using existing breakpoint from your CSS */
    .header-content {
        position: relative; /* For absolute positioning of nav if needed */
    }

    .site-logo {
        margin-left: 0; /* Remove desktop nudge */
        /* Centering the logo-link container */
    }
    
    .logo-link { /* The <a> tag containing the logo */
        flex-grow: 0;
        display: flex;
        justify-content: flex-start; /* ALIGN LOGO LEFT */
        margin-right: 0; /* remove any residual margins if any */
    }

    .main-nav {
        display: none; /* Hide nav by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: #f8f9fa; /* Match header background */
        border-top: 1px solid #e0e0e0;
        padding: 1em 0;
        z-index: 1000;
    }

    .main-nav.mobile-nav-active {
        display: flex; /* Show nav when hamburger is clicked */
    }

    .main-nav a {
        margin: 0;
        padding: 0.75em 1em;
        text-align: center;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav .lang-dropdown {
        margin-top: 10px;
        align-self: center;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
        position: absolute; /* Position it relative to header-content */
        right: 1em; /* Align to the right */
        top: 50%;
        transform: translateY(-50%); /* Vertically center */
    }

    /* Hamburger animation when active */
    .hamburger-menu[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Further adjustments for very small screens if necessary */
@media (max-width: 480px) {
    .site-logo {
        /* Adjust logo size for very small screens if needed */
        /* width: 150px; */ 
    }
    .logo-link {
        justify-content: center; /* Ensure it remains centered */
    }
}

/* Alert Messages (from flashed messages) */
.alert {
    padding: 10px;
    margin: 1em auto; /* Centered with auto margins */
    border-radius: 999px; /* Fully rounded ends */
    color: #fff;
    max-width: 960px; /* Consistent with container */
    text-align: center;
}
.alert-success { background-color: #107C41; } /* CHANGED to Excel Green */
.alert-danger { background-color: #dc3545; } /* Kept Red */
.alert-info { background-color: #107C41; }    /* CHANGED to Excel Green for consistency */
.alert-warning { background-color: #ffc107; color: #333;} /* Kept Yellow */

/* Ensure pricing card buttons on homepage are also rounded */
.pricing-card .cta-button {
    border-radius: 999px; /* Fully rounded */
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
} 