/*
 * Design 27: ServicePro
 * Professional, action-oriented design for local businesses and service providers.
 * Inspired by skadedyrstop.no — clear CTAs, trust indicators, service-oriented layout.
 *
 * Color system (8 variables, overridden via config):
 *   --color-dark, --color-light, --color-accent, --color-accent-hover,
 *   --color-secondary, --color-muted, --color-text, --color-text-muted
 */

/* ============================================================
   CSS VARIABLES (defaults — overridden by config inline styles)
   ============================================================ */
:root {
    --color-dark: #111827;
    --color-light: #ffffff;
    --color-accent: #16a34a;
    --color-accent-hover: #15803d;
    --color-secondary: #dc2626;
    --color-muted: #f0fdf4;
    --color-text: #374151;
    --color-text-muted: #6b7280;
    --border-radius: 8px;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --font-logo: 'Inter', sans-serif;
    --logo-font-size: 26px;
    --logo-font-weight: 800;
    --max-width: 1200px;
    --content-max-width: 1200px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-light);
    overflow-x: hidden;
}
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-accent-hover);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-accent:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}
.btn-outline-secondary {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-outline-secondary:hover {
    background: var(--color-secondary);
    color: #fff;
}
.btn-light {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
}
.btn-light:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: var(--color-dark);
}
.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--color-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar a:hover {
    color: var(--color-accent);
}
.topbar-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--color-light);
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: box-shadow var(--transition);
}
.site-header.header-sticky {
    position: sticky;
    top: 0;
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 24px;
}
.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo img {
    max-height: 44px;
    width: auto;
}
.site-logo .logo-text {
    font-family: var(--font-logo);
    font-size: var(--logo-font-size);
    font-weight: var(--logo-font-weight);
    color: var(--color-dark);
    white-space: nowrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-item > a {
    display: block;
    padding: 10px 14px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: var(--border-radius);
    transition: all var(--transition);
}
.nav-item > a:hover,
.nav-item.active > a {
    color: var(--color-accent);
    background: var(--color-muted);
}

/* Dropdown */
.nav-item.has-dropdown {
    position: relative;
}
.nav-item .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
    list-style: none;
}
.nav-item.has-dropdown:hover .dropdown {
    display: block;
}
.dropdown li a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: background var(--transition);
}
.dropdown li a:hover {
    background: var(--color-muted);
    color: var(--color-accent);
}
.dropdown-divider {
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-btn-phone {
    font-size: 0.88rem;
    padding: 8px 16px;
}
.header-btn-cta {
    font-size: 0.88rem;
    padding: 8px 20px;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.mobile-nav-overlay.active {
    display: block;
}
.mobile-nav {
    background: #fff;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    padding: 80px 24px 24px;
    overflow-y: auto;
    margin-left: auto;
}
.mobile-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
.mobile-nav .nav-item > a {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
}
.mobile-nav .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
}
.mobile-nav-cta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav-cta .btn {
    justify-content: center;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.breadcrumbs a {
    color: var(--color-text-muted);
}
.breadcrumbs a:hover {
    color: var(--color-accent);
}
.breadcrumbs .sep {
    margin: 0 6px;
    color: #d1d5db;
}
.breadcrumbs .current {
    color: var(--color-text);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
    padding: 24px 0 60px;
}
.single-post.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}
.single-post.has-sidebar.sidebar-left {
    grid-template-columns: 320px 1fr;
}
.single-post.has-sidebar.sidebar-left .post-content-area {
    order: 2;
}
.single-post.has-sidebar.sidebar-left .sidebar {
    order: 1;
}
.single-post.no-sidebar .post-content-area {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.post-header {
    margin-bottom: 24px;
}
.post-category {
    display: inline-block;
    background: var(--color-muted);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}
.post-category:hover {
    background: var(--color-accent);
    color: #fff;
}
.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}
.post-date {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}
.post-featured-image {
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.post-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
}
.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.post-body p {
    margin-bottom: 1.25rem;
}
.post-body ul, .post-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.post-body li {
    margin-bottom: 0.5rem;
}
.post-body img {
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}
.post-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px;
    margin: 1.5rem 0;
    background: var(--color-muted);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--color-text);
}

/* Tags */
.post-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: var(--color-text-muted);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}
.tag:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Internal links */
.internal-links {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}
.internal-links h3 {
    margin-bottom: 16px;
}
.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.internal-link-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-text);
}
.internal-link-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-accent);
}
.internal-link-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.internal-link-card span {
    display: block;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 20px;
}
.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}
.widget-related .related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}
.widget-related .related-item:last-child {
    border-bottom: none;
}
.widget-related .related-item:hover {
    color: var(--color-accent);
}
.widget-related .related-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.widget-related .related-item span {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
}
.widget-categories ul {
    list-style: none;
}
.widget-categories li {
    border-bottom: 1px solid #f3f4f6;
}
.widget-categories li:last-child {
    border-bottom: none;
}
.widget-categories a {
    display: block;
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.widget-categories a:hover {
    color: var(--color-accent);
}
.widget-banner img {
    width: 100%;
    border-radius: 4px;
}
.widget-cta {
    background: var(--color-muted);
    border-color: var(--color-accent);
    text-align: center;
}
.widget-cta h3 {
    border-bottom-color: var(--color-accent);
}
.widget-cta p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ============================================================
   STATIC PAGE
   ============================================================ */
.static-page {
    padding: 24px 0 60px;
}
.page-header {
    margin-bottom: 24px;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
}
.page-featured-image {
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.page-featured-image img {
    width: 100%;
    height: auto;
}
.page-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
}
.page-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-body h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-body p { margin-bottom: 1.25rem; }
.page-body ul, .page-body ol { margin: 1rem 0; padding-left: 1.5rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body img { border-radius: var(--border-radius); margin: 1.5rem 0; }
.page-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px;
    margin: 1.5rem 0;
    background: var(--color-muted);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ============================================================
   FRONTPAGE CONTENT (used by local/entity frontpage)
   ============================================================ */
.frontpage-content {
    padding: 40px 0 60px;
}
.frontpage-content.post-body {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   BLOG OVERVIEW
   ============================================================ */
.blog-overview {
    padding: 24px 0 60px;
}
.blog-header {
    margin-bottom: 24px;
}
.blog-title {
    font-size: 2rem;
    font-weight: 800;
}
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    color: var(--color-text);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}
.category-tag:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ============================================================
   POST CARDS GRID
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition);
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--color-text);
}
.post-card-image {
    height: 200px;
    overflow: hidden;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.05);
}
.post-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 6px;
}
.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 8px;
}
.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 8px;
}
.post-card-date {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.see-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
}
.see-all:hover {
    text-decoration: underline;
}

/* Category sections (magazine frontpage) */
.category-section {
    padding: 40px 0;
}
.category-section + .category-section {
    border-top: 1px solid #e5e7eb;
}

/* ============================================================
   HERO SECTIONS (local/entity)
   ============================================================ */
.local-hero,
.entity-hero {
    padding: 60px 0;
    text-align: center;
}
.hero-title,
.entity-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.hero-subtitle,
.entity-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.local-blog,
.entity-latest {
    padding: 48px 0;
}

/* ============================================================
   PREFOOTER CTA
   ============================================================ */
.prefooter-cta {
    background: var(--color-accent);
    color: #fff;
    padding: 48px 0;
}
.prefooter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.prefooter-text h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.prefooter-text p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}
.prefooter-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
}
.site-footer.footer-bg-light {
    background: #f9fafb;
    color: var(--color-text);
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.footer-cols-3 .footer-inner {
    grid-template-columns: repeat(3, 1fr);
}
.footer-cols-2 .footer-inner {
    grid-template-columns: repeat(2, 1fr);
}
.footer-col h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.site-footer.footer-bg-light .footer-col h3 {
    color: var(--color-dark);
}
.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a,
.footer-posts a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover,
.footer-posts a:hover {
    color: var(--color-accent);
}
.site-footer.footer-bg-light .footer-links a,
.site-footer.footer-bg-light .footer-posts a {
    color: var(--color-text-muted);
}
.site-footer.footer-bg-light .footer-links a:hover,
.site-footer.footer-bg-light .footer-posts a:hover {
    color: var(--color-accent);
}
.footer-posts {
    list-style: none;
}
.footer-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-posts li:last-child {
    border-bottom: none;
}
.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer.footer-bg-light .footer-bottom {
    border-top-color: #e5e7eb;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    text-align: center;
}
.site-footer.footer-bg-light .footer-bottom p {
    color: var(--color-text-muted);
}

/* ============================================================
   BANNERS
   ============================================================ */
.banner {
    margin: 16px auto;
    text-align: center;
}
.banner img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* ============================================================
   NO POSTS
   ============================================================ */
.no-posts {
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ============================================================
   MAGAZINE HERO (featured posts)
   ============================================================ */
.magazine-hero {
    padding: 32px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    min-height: 280px;
}
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.hero-card .hero-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.hero-card .hero-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.hero-card .hero-card-date {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .single-post.has-sidebar {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    .topbar {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .header-cta {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }

    .single-post.has-sidebar,
    .single-post.has-sidebar.sidebar-left {
        grid-template-columns: 1fr;
    }
    .single-post.has-sidebar .sidebar,
    .single-post.has-sidebar.sidebar-left .sidebar {
        order: 3;
    }
    .single-post.has-sidebar .post-content-area,
    .single-post.has-sidebar.sidebar-left .post-content-area {
        order: 1;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        min-height: 220px;
    }

    .prefooter-inner {
        flex-direction: column;
        text-align: center;
    }
    .prefooter-actions {
        flex-direction: column;
        width: 100%;
    }
    .prefooter-actions .btn {
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .internal-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .post-title {
        font-size: 1.4rem;
    }
    .internal-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   DESKTOP NAV VISIBLE
   ============================================================ */
@media (min-width: 769px) {
    .main-nav {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .mobile-nav-overlay {
        display: none !important;
    }
}
