@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #6C63FF; /* A vibrant purple */
    --secondary-color: #FF6B6B; /* A complementary red */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #555;
    --white: #fff;
    --success-color: #28a745;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    margin-top: 0;
    font-size: 2.5em;
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 600;
}

.checklist-item {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.checklist-item.completed {
    background-color: #e6ffe6; /* Light green for completed */
    border-color: var(--success-color);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.checklist-item input[type="checkbox"] {
    margin-right: 15px;
    min-width: 20px;
    min-height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checklist-item label {
    flex-grow: 1;
    font-size: 1.1em;
    cursor: pointer;
}

.resources-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.resources-section h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.resources-section p {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-gray);
}

.resources-section strong {
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-top: 30px;
    height: 25px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 5px;
    text-align: center;
    color: var(--white);
    line-height: 25px;
    font-weight: 600;
    transition: width 0.4s ease-in-out;
}

.completion-message {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--success-color);
    display: none; /* Hidden by default */
}

/* Sticky Banner */
.sticky-banner {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.sticky-banner p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.coupon-button {
    background-color: var(--white);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.coupon-button:hover {
    background-color: #eee;
    color: var(--primary-color);
}

.coupon-code {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 1px;
    display: none; /* Hidden by default */
    white-space: nowrap;
}

.affiliate-link-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* For anchor tag */
    white-space: nowrap;
}

.affiliate-link-button:hover {
    background-color: #5a52d6; /* Darker primary */
}

/* Navigation */
nav {
    background-color: var(--dark-gray);
    padding: 10px 20px; /* Added horizontal padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space out logo/title and nav items */
    align-items: center;
    position: relative; /* For burger menu positioning */
}

nav .logo {
    color: var(--white);
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Burger Menu */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other content */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

/* Article Content Styling */
.article-content {
    padding: 20px;
    line-height: 1.8;
}

.article-content h1, .article-content h2, .article-content h3 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-content p {
    margin-bottom: 1em;
}

.article-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.article-content ol {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 1em;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Related Articles Section */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.related-articles h2 {
    margin-bottom: 20px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.related-articles li {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    flex: 1 1 calc(33% - 30px); /* 3 items per row, adjust for gap */
    max-width: calc(33% - 30px);
    min-width: 250px; /* Ensure readability on smaller items */
}

.related-articles li:hover {
    transform: translateY(-5px);
}

.related-articles li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    font-size: 1.1em;
}

.related-articles li a:hover {
    text-decoration: underline;
}

/* Affiliate Disclosure Text */
.affiliate-disclosure {
    font-size: 0.85em;
    color: var(--dark-gray);
    text-align: center;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

/* Promo Code Page Specific Styles */
.promo-section {
    text-align: center;
    padding: 30px 0;
}

.promo-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.promo-section p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.coupon-box {
    background-color: #f9f9f9;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coupon-box h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.large-coupon-button {
    padding: 15px 30px;
    font-size: 1.3em;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.large-coupon-button:hover {
    background-color: #e05a5a;
}

.large-coupon-code {
    font-size: 2em;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    letter-spacing: 2px;
}

.coupon-instruction {
    font-size: 0.9em;
    color: var(--dark-gray);
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
    h2 {
        font-size: 1.8em;
    }
    .checklist-item label {
        font-size: 1em;
    }
    .sticky-banner {
        flex-direction: column;
        gap: 10px;
    }
    .sticky-banner p {
        font-size: 1em;
    }
    .coupon-button, .affiliate-link-button, .coupon-code {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    /* Mobile Navigation */
    nav ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below the nav bar */
        left: 0;
        background-color: var(--dark-gray);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    nav ul.open {
        display: flex; /* Show when open */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 15px 0;
        display: block;
        font-size: 1.1em;
    }

    .menu-toggle {
        display: flex; /* Show burger icon on mobile */
    }

    .related-articles li {
        flex: 1 1 calc(50% - 20px); /* 2 items per row */
        max-width: calc(50% - 20px);
    }

    .promo-section h2 {
        font-size: 1.8em;
    }

    .large-coupon-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }

    .large-coupon-code {
        font-size: 1.8em;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px auto;
        padding: 15px;
    }
    header {
        padding: 30px 15px;
    }
    header h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    .checklist-item {
        padding: 10px 15px;
    }
    .checklist-item input[type="checkbox"] {
        min-width: 18px;
        min-height: 18px;
    }
    .related-articles li {
        flex: 1 1 100%; /* 1 item per row */
        max-width: 100%;
    }

    .promo-section h2 {
        font-size: 1.5em;
    }

    .large-coupon-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    .large-coupon-code {
        font-size: 1.5em;
        padding: 10px 15px;
    }
}
