/* General Styles - Zimbabwean Theme */
:root {
    --primary-color: #2E7D32; /* Deep Green from the flag */
    --accent-gold: #FBC02D;   /* Gold/Yellow from the flag */
    --accent-red: #C62828;     /* Deep Red from the flag */
    --background-color: #f9f6f2; /* A warm, paper-like off-white */
    --text-color: #333333;
    --card-bg-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Flag banner removed */
.flag-banner {
    display: none;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.main-header {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        linear-gradient(to bottom, 
            #2E7D32 0%, #2E7D32 14.28%, #FBC02D 14.28%, #FBC02D 28.56%, 
            #C62828 28.56%, #C62828 42.84%, #000000 42.84%, #000000 57.12%,
            #C62828 57.12%, #C62828 71.4%, #FBC02D 71.4%, #FBC02D 85.68%,
            #2E7D32 85.68%, #2E7D32 100%
        );
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    margin: 1.5rem auto 0 auto;
    max-width: 600px;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    box-sizing: border-box;
}
#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.search-container::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-color: #6c757d;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}


/* Main Content */
main {
    padding: 2rem 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2.5rem;
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
}
.welcome-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}
.welcome-section p {
    max-width: 650px;
    margin: 0 auto;
    color: #495057;
    line-height: 1.7;
}

/* Community Hub Section */
.community-hub-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Add any other specific styles for the card container here */
}

/* Media query to make it 4 columns on desktop, this replaces the old .community-hub rule */
@media (min-width: 768px) {
    .community-hub-cards {
        grid-template-columns: 1fr 1fr 1fr 1fr; /* This is the key change! */
    }
}
.hub-card {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}
.hub-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #fff;
}
.hub-card p {
    margin: 0;
    opacity: 0.9;
    flex-grow: 1;
}
.hub-data {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0 !important;
    color: #fff;
    opacity: 1 !important;
}
.hub-label {
    font-size: 0.8rem;
    opacity: 0.8 !important;
}


/* Daily Dashboard Section */
.dashboard-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.dashboard-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.dashboard-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.dashboard-card-data {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.dashboard-card-subtext {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Updates Section */
.updates-section {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
.updates-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}
#latest-updates-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.update-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.update-card:hover {
    box-shadow: 0 4px 12px var(--shadow-color);
}
.update-card h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
}
.update-card .update-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: auto;
}


/* Tab Styles */
.tab-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 0.25rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.7rem 0.8rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-family);
    white-space: nowrap; 
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Media Query for larger screens */
@media (min-width: 768px) {
    .main-header h1 {
        font-size: 2.5rem;
    }
    .tab-button {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    .guide-grid {
        grid-template-columns: 1fr 1fr;
    }
    #latest-updates-container {
        grid-template-columns: 1fr 1fr;
    }
}


.guide-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-gold);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-left-color: var(--accent-red);
}

.map-card {
    background-color: #e8f5e9;
    border-left-color: var(--primary-color);
}

.guide-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    padding-right: 2rem;
}

.guide-card p {
    margin: 0;
    flex-grow: 1;
    color: #495057;
}

.view-guide-btn {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    align-self: flex-start;
}

.guide-card::after {
    content: '📄';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.2;
}
.map-card::after {
    content: '📍';
}


/* Guide Page Specifics */
.guide-header {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.guide-header .back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
}
.guide-header .back-link:hover {
    color: var(--primary-color);
}

.guide-header h1 {
    font-size: 2.2rem;
}

/* New Reading Time Style */
.reading-time {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.summary-box {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-box h2 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

.summary-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-box li {
    margin-bottom: 0.5rem;
}

.summary-box li strong {
    display: inline-block;
    width: 150px;
}

.guide-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}

.guide-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.guide-content ol, .guide-content ul {
    padding-left: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.75rem;
}

.pitfalls-box {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
    border-left: 5px solid var(--accent-red);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.pitfalls-box ul {
    list-style-type: '⚠️';
}
.pitfalls-box li {
    padding-left: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #6c757d;
    font-size: 0.9rem;
}

/* Download box for calculator links */
.download-box {
    background-color: #e6f9f1;
    border: 1px solid #9fdfbf;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.download-box p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #1B5E20;
}

/* --- Scroll to Top Button --- */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    line-height: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}

#back-to-top:hover {
    opacity: 0.8;
}

/* --- Reading Progress Bar --- */
.progress-container {
    width: 100%;
    height: 8px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background-color: #f0f0f0;
}
.progress-bar {
    height: 8px;
    background-color: var(--primary-color);
    width: 0%;
}

/* --- Print-Friendly Styles --- */
@media print {
    body {
        background-image: none;
        color: #000;
        font-size: 12pt;
    }
    .main-header, .welcome-section, .dashboard-section, .updates-section, .community-hub,
    .tab-container, .search-container, .guide-header .back-link, .pitfalls-box,
    .download-box, .pro-tip-box, footer, .cookie-banner, .progress-container, #back-to-top {
        display: none !important;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .guide-header h1 {
        font-size: 20pt;
        border-bottom: 2px solid #000;
        padding-bottom: 1rem;
    }
    .summary-box {
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        page-break-inside: avoid;
    }
    a {
        text-decoration: none;
        color: #000;
    }
    a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #555;
    }
}
/* --- Modern Form Styles --- */
.submission-form input[type="text"],
.submission-form input[type="email"],
.submission-form input[type="number"],
.submission-form input[type="url"],
.submission-form select,
.submission-form textarea {
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.submission-form input:focus,
.submission-form select:focus,
.submission-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    outline: none;
}

.submit-btn {
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}
/* --- Enhanced Form Layout Styles --- */

.submission-form form {
    display: grid;
    grid-template-columns: 150px 1fr; /* Creates a column for labels and a column for inputs */
    gap: 1.25rem;
    align-items: center; /* Vertically aligns labels with their inputs */
}

.submission-form .input-group {
    display: contents; /* Allows the label and input to be direct grid items */
}

.submission-form .input-group label {
    font-weight: 600;
    text-align: right;
    padding-right: 1rem;
    margin-bottom: 0; /* Removes old spacing */
}

.submission-form .input-group input,
.submission-form .input-group select,
.submission-form .input-group textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Makes full-width items span both columns */
.submission-form .declaration-group,
.submission-form [data-netlify-recaptcha],
.submission-form .submit-btn {
    grid-column: 1 / -1; /* Spans from the first column to the last */
}

.declaration-group label {
    text-align: left; /* Resets text alignment for the checkbox label */
    padding-right: 0;
}
/* --- Daily Quiz Section Styles --- */
.quiz-section {
    background-color: #e8f5e9; /* Light green to match welcome section */
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.quiz-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}
#daily-streak {
    font-size: 1rem;
    font-weight: 600;
    background-color: #fff3e0;
    color: #e65100;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}
#quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 50px;
}
#quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    #quiz-options {
        grid-template-columns: 1fr 1fr;
    }
}
.quiz-option-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: var(--font-family);
    font-weight: 600;
}
.quiz-option-btn:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: var(--primary-color);
}
.quiz-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}
.quiz-option-btn.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    animation: pulse 0.5s ease-in-out;
}
.quiz-option-btn.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    animation: shake 0.5s ease-in-out;
}
#quiz-result {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Quiz Footer & Sharing Styles --- */
.quiz-footer {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.share-buttons {
    display: flex;
    gap: 0.75rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.share-btn:hover {
    opacity: 0.8;
}
.share-btn.twitter {
    background-color: #1DA1F2;
    color: white;
}
.share-btn.whatsapp {
    background-color: #25D366;
    color: white;
}
.share-btn svg {
    width: 16px;
    height: 16px;
}
#learn-more-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Animations --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* --- Visual Enhancements --- */

/* 1. Enhanced Hover Effects */
.hub-card, .guide-card, .download-btn, .submit-btn, .quiz-option-btn {
    transition: all 0.2s ease-in-out;
}

.hub-card:hover, .download-btn:hover, .submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-color);
    filter: brightness(1.05);
}
/* --- Featured Cornerstone Guide Styles --- */
.featured-guide-section {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-red);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.featured-guide-section:hover {
    box-shadow: 0 8px 20px var(--shadow-color);
}

.featured-guide-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.featured-guide-section p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    color: #495057;
    max-width: 80ch;
}

.featured-guide-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.featured-guide-btn:hover {
    background-color: #1B5E20;
}
/* --- Guide of the Month Section Styles --- */
.monthly-guide-section {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.monthly-guide-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.monthly-guide-section p {
    font-size: 1.1rem;
    margin: 0 auto 1.5rem auto;
    color: #495057;
    max-width: 60ch;
}

.monthly-guide-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.monthly-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}
/* --- New Share Button Styles --- */
.share-btn.facebook {
    background-color: #1877F2;
    color: white;
}
.share-btn.reddit {
    background-color: #FF4500;
    color: white;
}
/* --- Icon-Only Share Button Styles --- */
.share-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
}

.share-btn svg {
    margin-right: 0;
}
/* --- Share Button Icon Size Fix --- */
.share-btn svg {
    width: 20px;
    height: 20px;
}
/* --- Community Hub Wrapper Styles --- */
.community-hub-wrapper {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.community-hub-wrapper > h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 2rem;
}

.community-hub-wrapper .welcome-section {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
}

/* --- Netlify Identity Widget Button Styles (Final Version) --- */
[data-netlify-identity-button] {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
[data-netlify-identity-button] button:last-child {
    display: none;
}
[data-netlify-identity-button] button,
[data-netlify-identity-button] a {
    background-color: var(--primary-color);
    color: #fff !important;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    margin: 0 5px;
}
[data-netlify-identity-button] button::before {
    content: 'Login / Sign Up';
    white-space: nowrap;
}
[data-netlify-identity-button] button span {
    display: none;
}
[data-netlify-identity-button] button:hover,
[data-netlify-identity-button] a:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* --- Flag Stripe Login Button Styles (Horizontal) --- */

[data-netlify-identity-button] button,
[data-netlify-identity-button] a {
    background: linear-gradient(
        to bottom, 
        #2E7D32 0%, #2E7D32 14.28%, 
        #FBC02D 14.28%, #FBC02D 28.56%, 
        #C62828 28.56%, #C62828 42.84%, 
        #000000 42.84%, #000000 57.12%,
        #C62828 57.12%, #C62828 71.4%, 
        #FBC02D 71.4%, #FBC02D 85.68%,
        #2E7D32 85.68%, #2E7D32 100%
    );
    color: #ffffff !important; /* Changed text to white for best contrast */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Adds shadow for readability on yellow stripe */
    border: 1px solid #333;
}

/* Enhances the hover effect for the new style */
[data-netlify-identity-button] button:hover,
[data-netlify-identity-button] a:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}
.fireside-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color); /* CORRECTED: Solid background color */
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}
.fireside-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color);
}
.fireside-banner .text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    color: #fff;
}
.fireside-banner .text p {
    margin: 0;
    opacity: 0.9;
}
.fireside-banner .cta {
    font-weight: 600;
    font-size: 1rem;
}

.save-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.save-btn.saved {
    background: var(--accent-gold);
    color: #333 !important;
    border: 1px solid #f0b522;
    text-shadow: none;
}

/* Position the button in the top-right corner */
.guide-header {
    position: relative;
}

#save-guide-container {
    position: absolute;
    top: 0;
    right: 0;
}
/* --- WhatsApp CTA Section --- */
.whatsapp-cta {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .whatsapp-cta {
        flex-direction: row;
        text-align: left;
    }
}
.whatsapp-cta .text-content {
    flex-grow: 1;
}
.whatsapp-cta h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}
.whatsapp-cta p {
    margin: 0 0 1.5rem 0;
    color: #495057;
    max-width: 60ch;
}
.whatsapp-cta .cta-button {
    display: inline-block;
    background-color: #25D366; /* WhatsApp Green */
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.whatsapp-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}
.whatsapp-cta .qr-code {
    margin-top: 1.5rem;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .whatsapp-cta .qr-code {
        margin-top: 0;
        margin-left: 2rem;
    }
}
.whatsapp-cta .qr-code img {
    width: 120px;
    height: 120px;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.whatsapp-cta .social-proof {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1rem;
}