/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f9;
    color: #1c1c1c;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Skip link (a11y) ── */
.skip-link {
    position: absolute;
    top: -999px;
    left: -999px;
    background: #0969a8;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0 0 6px 0;
    z-index: 99999;
}
.skip-link:focus { top: 0; left: 0; }

/* ── Header ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.site-header .inside-header,
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}
.site-title a { color: #1a1a2e !important; }
.site-title a:hover { color: #0969a8 !important; }
.site-title a .accent,
.site-title .accent { color: #0969a8; }
.site-description {
    color: #666;
    font-size: 12px;
    margin: 4px 0 0;
    font-weight: 400;
}

/* ── Navigation ── */
.main-navigation {
    background: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.main-navigation .inside-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.main-navigation ul li a {
    display: block;
    color: #c8d4e0 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    text-transform: uppercase;
    transition: color 0.15s, background 0.15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
    color: #fff !important;
    background: #0969a8;
}
.nav-date {
    color: #9ab0c8;
    font-size: 11px;
    white-space: nowrap;
    padding-right: 4px;
}

/* ── Breaking ticker ── */
.breaking-ticker {
    background: #0969a8;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 0;
    overflow: hidden;
}
.breaking-ticker .ticker-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.breaking-ticker .ticker-label {
    background: #fff;
    color: #0969a8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-ticker .ticker-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-ticker .ticker-text a { color: #fff !important; text-decoration: underline; }

/* ── Page container ── */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}
.content-area { min-width: 0; }

/* ── Featured hero ── */
.featured-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.featured-hero .hero-img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    display: block;
}
.featured-hero .hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
    padding: 44px 28px 24px;
}
.featured-hero .hero-cat {
    display: inline-block;
    background: #0969a8;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.featured-hero .hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.featured-hero .hero-title a { color: #fff !important; }
.featured-hero .hero-title a:hover { color: #e0eeff !important; }
.featured-hero .hero-meta { color: rgba(255,255,255,0.8); font-size: 13px; }

/* ── Section heading ── */
.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.section-head::before {
    content: '';
    width: 3px;
    height: 18px;
    background: #0969a8;
    border-radius: 2px;
    flex-shrink: 0;
}
.section-head h2, .section-head .section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1a1a2e;
    margin: 0;
}
.section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e5ec;
}

/* ── Post grid (homepage 2-col) ── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* ── Post card ── */
article.post,
article.page,
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
article.post:hover,
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
article.post:hover .post-image img,
.post-card:hover .card-img img { transform: scale(1.04); }

/* ── Post image ── */
.post-image,
.card-img {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}
.post-image a,
.card-img a { display: block; height: 100%; }
.post-image img,
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    aspect-ratio: unset !important;
}

/* ── Entry meta ── */
.entry-meta {
    padding: 14px 20px 0;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.entry-meta a { color: #666 !important; }
.entry-meta a:hover { color: #0969a8 !important; }

/* ── Category badge ── */
.entry-meta .cat-links a,
a.card-cat,
.card-cat {
    background: #0969a8;
    color: #fff !important;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    display: inline-block;
}
.entry-meta .cat-links a:hover,
a.card-cat:hover { background: #074f80; color: #fff !important; }

/* ── Card body ── */
.card-body {
    padding: 14px 18px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.card-date { font-size: 11px; color: #666; }

/* ── Entry header & title ── */
.entry-header { padding: 10px 20px 0; }
.entry-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #1a1a2e;
}
/* Card titles: blue link color matching mockup */
.entry-title a,
.entry-title a:visited { color: #0969a8 !important; }
.entry-title a:hover { color: #074f80 !important; }
/* Single post title stays dark navy (only cards are blue) */
.single .entry-title a,
.single .entry-title a:visited,
.page .entry-title a,
.page .entry-title a:visited { color: #1a1a2e !important; }
.single .entry-title a:hover,
.page .entry-title a:hover { color: #0969a8 !important; }

/* ── Excerpt ── */
.entry-summary { padding: 4px 0 0; flex: 1; }
.entry-summary p, .entry-summary {
    font-size: 14px;
    color: #5a6070;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card footer (author + read-more) ── */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 18px;
    margin-top: auto;
    gap: 8px;
}
.card-author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #666;
    min-width: 0;
    overflow: hidden;
}
.card-author-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #1a1a2e;
    flex-shrink: 0;
    overflow: hidden;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
a.read-more-link,
a.read-more-link:visited {
    font-size: 12px;
    font-weight: 700;
    color: #0969a8 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
a.read-more-link:hover { color: #074f80 !important; }

/* ── Read More button (archive page, single-col) ── */
.entry-footer { padding: 2px 20px 18px; }
a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0969a8;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
    text-decoration: none !important;
}
a.read-more:hover { background: #074f80; color: #fff !important; }

/* ── List-style post card ── */
.post-list-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}
.post-list-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.11); }
.post-list-card:hover .post-list-title { color: #0969a8; }
.post-list-thumb { width: 130px; flex-shrink: 0; overflow: hidden; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-body { padding: 14px 16px; flex: 1; }
.post-list-title { font-size: 15px; font-weight: 700; color: #1a1a2e; line-height: 1.35; margin: 0 0 6px; }
.post-list-meta { font-size: 11px; color: #666; }

/* ── Archive grid (3-col category pages) ── */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* ── Category archive header ── */
.category-page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d2d5a 100%);
    padding: 32px 24px;
}
.category-page-header .inner {
    max-width: 1200px;
    margin: 0 auto;
}
.category-page-header .cat-badge {
    display: inline-block;
    background: #0969a8;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.category-page-header h1 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
}
.category-page-header .cat-desc { color: #9ab0c8; font-size: 14px; margin: 0; }

/* ── Breadcrumbs ── */
.breadcrumb-wrap {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb-wrap a { color: #0969a8 !important; text-decoration: underline; }
.breadcrumb-wrap a:hover { color: #074f80 !important; }
.breadcrumb-wrap .sep { color: #ccc; }

/* ── Single post article ── */
.single article.post,
.page article.page {
    transform: none !important;
}
.single article.post:hover,
.page article.page:hover {
    transform: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.single .entry-header,
.page .entry-header { padding: 28px 32px 0; }
.single .entry-title,
.page .entry-title { font-size: 30px; line-height: 1.2; }
.single .entry-meta,
.page .entry-meta { padding: 12px 32px 0; }

/* ── Author bar ── */
.author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-top: 1px solid #f0f3f6;
    border-bottom: 1px solid #f0f3f6;
    margin: 16px 0 0;
    flex-wrap: wrap;
}
.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dde3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #9ab0c8;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.author-role { font-size: 12px; color: #666; }
.share-buttons { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.tw { background: #1da1f2; color: #fff; }
.share-btn.copy { background: #f0f3f7; color: #333; }

/* ── Single entry content ── */
.single .entry-content,
.page .entry-content {
    padding: 20px 32px 32px;
    font-size: 17px;
    line-height: 1.85;
    color: #2c2c2c;
}
.single .entry-content h2 { font-size: 22px; font-weight: 800; color: #1a1a2e; margin: 36px 0 14px; }
.single .entry-content h3 { font-size: 19px; font-weight: 700; color: #1a1a2e; margin: 28px 0 12px; }
.single .entry-content h4 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin: 24px 0 10px; }
.single .entry-content img { border-radius: 8px; margin: 20px 0; }
.single .entry-content a { color: #0969a8; text-decoration: underline; }
.single .entry-content a:hover { color: #074f80; }
.single .entry-content blockquote {
    border-left: 4px solid #0969a8;
    background: #f4f8fd;
    margin: 24px 0;
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    font-size: 18px;
    font-style: italic;
    color: #334;
    line-height: 1.7;
}
.single .entry-content ul,
.single .entry-content ol { padding-left: 24px; margin: 0 0 20px; }
.single .entry-content li { margin-bottom: 8px; }
.single .entry-content p { margin: 0 0 20px; }

/* ── Post tags ── */
.entry-tags {
    padding: 16px 32px 20px;
    border-top: 1px solid #f0f3f6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.entry-tags .tags-label { font-size: 12px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.4px; }
.entry-tags a {
    background: #f0f3f7;
    color: #4a5568 !important;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.15s;
}
.entry-tags a:hover { background: #0969a8; color: #fff !important; }

/* ── Related posts ── */
.related-posts { margin-top: 32px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ── Sidebar ── */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    padding: 0;
}
.widget-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1a1a2e;
    margin: 0;
    padding: 14px 18px 12px;
    border-bottom: 2px solid #0969a8;
    background: #fafbfd;
    display: block;
}
.widget .widget-inner { padding: 4px 0; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget ul li {
    padding: 10px 18px;
    border-bottom: 1px solid #f3f5f8;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.widget ul li:last-child { border-bottom: none; }
.widget a { color: #333 !important; }
.widget a:hover { color: #0969a8 !important; }

/* Search widget */
.widget_search .widget-inner { padding: 14px 18px; }
.widget_search form { display: flex; gap: 0; }
.widget_search input[type="search"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #dde3ec;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    color: #333;
    background: #f7f9fc;
    outline: none;
    font-family: inherit;
}
.widget_search input[type="search"]:focus { border-color: #0969a8; background: #fff; }
.widget_search input[type="submit"] {
    padding: 9px 16px;
    background: #0969a8;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.widget_search input[type="submit"]:hover { background: #074f80; }

/* Recent posts widget with thumbnails */
.widget_recent_entries ul li,
.widget-recent-posts li {
    padding: 10px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.widget-recent-thumb {
    width: 60px;
    height: 45px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}
.widget-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: #1a1a2e; }
.widget-recent-date { font-size: 11px; color: #666; margin-top: 3px; }

/* ── Pagination ── */
.paging-navigation,
.pagination,
.page-numbers-wrap {
    margin: 24px 0 4px;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 3px;
    border-radius: 6px;
    background: #fff;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.15s;
    text-decoration: none;
}
.page-numbers.current { background: #0969a8; color: #fff !important; box-shadow: none; }
.page-numbers:hover { background: #0969a8; color: #fff !important; }

/* ── Footer ── */
.footer-widgets-container {
    background: #1a1a2e;
    padding: 44px 24px 24px;
    margin-top: 40px;
}
.footer-widgets-container .footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.footer-brand-title { font-size: 22px; font-weight: 900; color: #fff; margin: 0 0 12px; }
.footer-brand-title .accent { color: #0969a8; }
.footer-brand-desc { color: #7a8fa6; font-size: 13px; line-height: 1.7; margin: 0 0 16px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #9ab0c8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.footer-social-btn:hover { background: #0969a8; color: #fff !important; }

/* Footer widgets — reset all widget styles for dark bg */
.footer-widgets-container .widget {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
.footer-widgets-container .widget-title {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 0 14px !important;
    padding: 0 0 10px !important;
    border-bottom: 2px solid #0969a8 !important;
    background: transparent !important;
    display: block !important;
}
.footer-widgets-container ul { margin: 0 !important; padding: 0 !important; }
.footer-widgets-container ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #242438 !important;
    font-size: 13px !important;
    color: #7a8fa6 !important;
    display: block !important;
    justify-content: unset !important;
    background: transparent !important;
}
.footer-widgets-container ul li:last-child { border-bottom: none !important; }
.footer-widgets-container a,
.footer-widgets-container a:visited { color: #9ab0c8 !important; text-decoration: none !important; }
.footer-widgets-container a:hover { color: #5baede !important; }
/* Override any widget-count badges in footer */
.footer-widgets-container .widget-count { display: none; }

/* Ensure ALL footer links are light — beats .widget a:visited */
.footer-widgets-container .widget a,
.footer-widgets-container .widget a:visited,
.footer-widgets-container .widget a:link { color: #9ab0c8 !important; text-decoration: none !important; }
.footer-widgets-container .widget a:hover { color: #fff !important; }

/* Hide dates in footer Recent Posts widget */
.footer-widgets-container .widget_recent_entries .post-date { display: none; }

.site-footer {
    background: #111827;
    color: #9ca3af;
    font-size: 13px;
    padding: 16px 24px;
    text-align: center;
}
.site-footer a { color: #5baede !important; text-decoration: underline !important; }
.site-footer a:hover { color: #0969a8 !important; }

/* ── Contact page ── */
.contact-page-header {
    background: linear-gradient(135deg, #1a1a2e, #0d2d5a);
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 32px;
}
.contact-page-header h1 { font-size: 32px; font-weight: 900; color: #fff; margin: 0 0 8px; }
.contact-page-header p { color: #9ab0c8; font-size: 15px; margin: 0; }
.contact-form-wrap { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); padding: 32px; }

/* ── 404 page ── */
.error-404-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 60px 32px;
    text-align: center;
    margin-bottom: 32px;
}
.error-404-wrap .error-code { font-size: 80px; font-weight: 900; color: #e0e5ec; line-height: 1; margin: 0; }
.error-404-wrap h1 { font-size: 24px; font-weight: 800; color: #1a1a2e; margin: 8px 0 12px; }
.error-404-wrap p { color: #666; font-size: 15px; margin: 0 0 24px; }
.btn-home {
    display: inline-block;
    background: #0969a8;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}
.btn-home:hover { background: #074f80; }

/* ── Search results header ── */
.search-header {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-size: 15px;
    color: #333;
}
.search-header strong { color: #0969a8; }

/* ── Mobile ── */
@media (max-width: 1024px) {
    .footer-widgets-container .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .grid-container { padding: 20px 16px; }
    .post-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .entry-title { font-size: 16px; }
    .single .entry-title { font-size: 22px; }
    .single .entry-content, .page .entry-content { padding: 16px 20px 24px; font-size: 16px; }
    .single .entry-header, .page .entry-header { padding: 20px 20px 0; }
    .author-bar { padding: 14px 20px; }
    .entry-tags { padding: 14px 20px; }
    .main-navigation ul li a { padding: 12px 12px; font-size: 11px; }
    .site-header .inside-header { padding: 12px 16px; }
    .site-title { font-size: 20px; }
    .featured-hero .hero-title { font-size: 20px; }
    .footer-widgets-container .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .archive-grid { grid-template-columns: 1fr; }
    .featured-hero .hero-overlay { padding: 20px 16px 16px; }
}

/* ── Page layout grid (content + sidebar) ── */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ── Header search form ── */
.header-search-form {
    display: flex;
    align-items: center;
    background: #f0f3f7;
    border: 1px solid #e0e5ec;
    border-radius: 6px;
    overflow: hidden;
    min-width: 200px;
}
.header-search-form input[type="search"] {
    flex: 1;
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.header-search-form button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
}
.header-search-form button:hover { color: #0969a8; }

/* ── Mobile hamburger ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #c8d4e0;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overrides ── */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .widget-area {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .site-header .inside-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-search-form {
        min-width: 0;
        flex: 1;
        width: 100%;
        order: 3;
    }
    .site-title { font-size: 20px; }

    /* Nav: hamburger */
    .nav-toggle { display: flex; }
    .nav-date { display: none; }
    .main-navigation .inside-navigation {
        padding: 0 16px;
        flex-wrap: wrap;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 8px;
    }
    .main-navigation ul.nav-open { display: flex; }
    .main-navigation ul li a {
        padding: 12px 8px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Content */
    .grid-container { padding: 16px; }
    .page-layout { gap: 20px; }
    .post-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .widget-area { grid-template-columns: 1fr; }

    /* Hero */
    .featured-hero .hero-title { font-size: 20px; }
    .featured-hero .hero-overlay { padding: 20px 16px 16px; }

    /* Cards */
    .entry-title { font-size: 16px; }
    .post-list-card { flex-direction: column; }
    .post-list-thumb { width: 100%; height: 180px; }

    /* Single */
    .single .entry-title,
    .page .entry-title { font-size: 22px; }
    .single .entry-header,
    .page .entry-header { padding: 18px 16px 0; }
    .single .entry-meta,
    .page .entry-meta { padding: 12px 16px 0; }
    .single .entry-content,
    .page .entry-content { padding: 16px 16px 24px; font-size: 16px; }
    .author-bar { padding: 12px 16px; gap: 10px; }
    .share-buttons { margin-left: 0; width: 100%; }
    .entry-tags { padding: 12px 16px; }

    /* Footer */
    .footer-widgets-container .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-widgets-container { padding: 28px 16px 20px; }
}

@media (max-width: 480px) {
    .archive-grid { grid-template-columns: 1fr; }
    .site-title { font-size: 18px; }
    .featured-hero .hero-title { font-size: 17px; }
    .share-btn { padding: 5px 10px; font-size: 11px; }
}

/* ── Widget link visited state (sidebar only, not footer) ── */
.widget-area .widget a:visited { color: #333 !important; }
.widget-area .widget a:hover, .widget-area .widget a:focus { color: #0969a8 !important; }

/* ── Recent posts with thumbnails ── */
ul.sw-recent-posts { padding: 0; margin: 0; list-style: none; }
ul.sw-recent-posts li.sw-recent-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px;
    padding: 11px 18px !important;
    border-bottom: 1px solid #f3f5f8;
}
ul.sw-recent-posts li.sw-recent-post:last-child { border-bottom: none; }
.sw-recent-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0 !important;
    background: #e8ecf0;
}
.sw-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-recent-info { flex: 1; min-width: 0; }
.sw-recent-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0 0 4px;
}
.sw-recent-title a, .sw-recent-title a:visited { color: #1a1a2e !important; text-decoration: none !important; }
.sw-recent-title a:hover { color: #0969a8 !important; }
.sw-recent-date { font-size: 11px; color: #666; margin: 0; }

/* ── Categories widget — count pill badge ── */
.widget_categories ul li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.widget_categories ul li a { flex: 1; color: #333 !important; }
.widget_categories ul li a:hover { color: #0969a8 !important; }
.widget-count {
    background: #f0f3f7;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ── News Hero Card ── */
.news-hero-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.news-hero-img {
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
    min-height: 240px;
}
.news-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.news-hero-card:hover .news-hero-img img { transform: scale(1.03); }
.news-hero-body {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-hero-title { font-size: 20px; margin: 8px 0 10px; }
.news-hero-title a { color: #1a1a2e; text-decoration: none; }
.news-hero-title a:hover { color: #0969a8; }

/* ── News compact list ── */
.news-list { display: flex; flex-direction: column; gap: 0; }

@media (max-width: 768px) {
    .news-hero-card { flex-direction: column; }
    .news-hero-img { width: 100%; min-height: 200px; }
    .news-hero-body { padding: 16px; }
}
