:root {
    --bg: #0c0c0f;
    --card: #141419;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #3f3f46;
    --font-primary: 'DM Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    transform: translateY(-200%);
    transition: transform 0.15s;
    z-index: 200;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    flex: 1;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(12, 12, 15, 0.92);
    backdrop-filter: blur(8px);
    z-index: 200;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links { display: flex; align-items: center; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    min-height: 44px;
    display: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav { display: none; }

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Blog Post List (Grid Layout) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.card-image-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-image {
    transform: scale(1.05);
}

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

.card h2 a {
    display: block; /* Make the link cover the heading */
}

.card .excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Post View */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-weight: 500;
}

.back:hover {
    color: var(--accent);
}

.post-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.post-body p {
    margin-bottom: 24px;
}

.post-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    display: block;
}

/* Tags */
.post-tags {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-tags a {
    color: var(--text-muted);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.post-tags a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

/* CTA Box */
.offer-cta-wrap {
    margin: 48px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.05) 100%);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 16px;
    text-align: center;
}

.offer-cta-wrap p {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.offer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #000 !important;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.45);
    background: var(--accent-hover) !important;
}

.offer-cta::after {
    content: '→';
    font-weight: 700;
    margin-left: 4px;
}

/* Footer override/additions */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    margin-top: auto; /* Push to bottom */
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 16px;
    }
    
    header {
        padding: 16px 0;
        margin-bottom: 32px;
    }

    .nav-links { display: none; }
    .nav-menu { display: block; }
    .nav-menu summary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .nav-menu nav {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 10px;
        min-width: 220px;
        flex-direction: column;
        align-items: stretch;
        z-index: 150;
        box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    }
    .nav-menu[open] nav { display: flex; }
    .nav-menu nav a {
        margin-left: 0;
        padding: 12px 12px;
        border-radius: 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .nav-menu nav a:hover {
        background: rgba(245, 158, 11, 0.08);
    }
}

.featured-offers-top { margin: 0 0 34px; }
.featured-offers-top h2 { font-size: 1.1rem; margin-bottom: 12px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.featured-offers-top h2::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.featured-offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.featured-offers-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,0.02); text-decoration: none; }
.featured-offers-item:hover { border-color: var(--accent); }
.featured-offers-thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.featured-offers-thumb img { width: 100%; height: 100%; object-fit: contain; max-width: 44px; max-height: 44px; }
.featured-offers-item img { width: 44px; height: 44px; object-fit: contain; max-width: 44px; max-height: 44px; }
.featured-offers-thumb span { font-weight: 900; color: var(--accent); }
.featured-offers-title { font-weight: 800; color: var(--text); line-height: 1.25; }
.featured-offers-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
