/* --- Global Resets & Variables --- */
:root {
    --color-primary: #167ac6;
    --color-highlight: rgba(255, 224, 0, 0.3);
    --color-text: #333;
    --color-background: #fff;
    --color-footer-bg: #2e3138;
    --color-footer-text: #abb0ba;
    --font-family-sans: 'Open Sans', Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem; /* 16px */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: var(--spacing-unit) 0;
}

/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.3;
    margin: calc(var(--spacing-unit) * 2) 0 var(--spacing-unit);
    font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); letter-spacing: -1px; } /* 36px */
h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); } /* 30px */
h3 { font-size: 1.5rem; } /* 24px */
p { margin-bottom: var(--spacing-unit); font-size: 1.125rem; }

.highlight {
    background-image: linear-gradient(-100deg, var(--color-highlight), rgba(255, 224, 0, 0.7) 95%);
    border-radius: 1em 0 1em 0;
    padding: 0.1em 0.2em;
}
.promo-link {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-unit);
}

/* --- Layout --- */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: var(--spacing-unit);
}

.top-advertorial {
    background-color: #f7f7f7;
    color: #777;
    font-size: 1rem;
    padding: 0.25rem;
    text-align: center;
}

.site-header {
    padding: var(--spacing-unit);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.site-footer-bottom { 
    background-color: var(--color-footer-bg); 
    color: var(--color-footer-text); 
    padding: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.8rem;
    text-align: center;
}
.site-footer-bottom a { color: var(--color-footer-text); }
.site-footer-bottom p { font-size: inherit; }

/* --- Components --- */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.button-primary {
    background-color: #089358;
    color: #fff;
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    border-bottom: 4px solid #056d42;
}
.button-primary:hover {
    background-color: #07804f;
    text-decoration: none;
    transform: translateY(-2px);
}
.button-secondary {
    background-color: #089358;
    color: #fff;
    width: 100%;
}
.button-secondary:hover {
    background-color: #07804f;
    text-decoration: none;
}

.alert {
    padding: var(--spacing-unit);
    margin: var(--spacing-unit) 0;
    border-radius: 5px;
    border: 1px solid;
}
.alert-info {
    color: #3a87ad;
    background-color: #d9edf7;
    border-color: #bce8f1;
}
.update-alert {
    text-align: center;
    background-color: #fff3cd;
    padding: var(--spacing-unit);
    border: 1px solid #ffeeba;
    border-radius: 5px;
    margin-bottom: var(--spacing-unit);
}

.article-image, .article-video {
    margin: var(--spacing-unit) auto;
    border-radius: 7px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #777;
    font-size: 0.9rem;
    margin: var(--spacing-unit) 0;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
}
.feature-list li {
    padding-left: 2.5em;
    position: relative;
    margin-bottom: calc(var(--spacing-unit) / 2);
    font-size: 1.1rem;
}
.feature-list li::before {
    content: '✓';
    color: #05c939;
    font-weight: bold;
    position: absolute;
    left: 0.5em;
    font-size: 1.5em;
    line-height: 1;
}

.promo-box-final {
    margin-top: var(--spacing-unit);
    padding: var(--spacing-unit);
    text-align: left;
    background-color: rgb(237, 249, 255);
    font-size: 1.25rem;
    border: solid 2px rgb(225, 93, 58);
}

.cta-section {
    text-align: center;
    margin-top: var(--spacing-unit);
}

.offer-details {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
}

.sidebar {
    /* --- NEW ---: This makes the sidebar sticky */
    position: sticky;
    top: var(--spacing-unit); /* Sticks 1rem from the top of the viewport */
    align-self: start; /* Important for grid layouts */
    /* ----------- */
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: var(--spacing-unit);
    border-radius: 7px;
    text-align: center;
    margin-bottom: var(--spacing-unit);
}
.author-image {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-unit);
}

.comments-section {
    margin-top: calc(var(--spacing-unit) * 3);
}
.comment-image {
    width: 100%;
    margin-bottom: 0.5rem;
}

.footer-nav a {
    margin: 0 0.5rem;
}

/* --- Media Queries --- */
@media (min-width: 768px) {
    .page-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}