:root {
    --ap-bg: #f5f6f8;
    --ap-surface: #ffffff;
    --ap-surface-2: #f7f9fc;
    --ap-text: #111827;
    --ap-muted: #667085;
    --ap-border: #e5e7eb;
    --ap-dark: #091b49;
    --ap-dark-2: #0d234f;
    --ap-accent: #15b8b2;
    --ap-accent-2: #f6b228;
    --ap-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    --ap-container: 1260px;
    --ap-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ap-text);
    background: var(--ap-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ap-accent); }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 32px, var(--ap-container)); margin-inline: auto; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.skip-link:focus {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 8px;
    padding: 10px 14px;
    background: var(--ap-dark);
    color: #fff;
    z-index: 9999;
}

.topbar {
    background: #050505;
    color: rgba(255,255,255,0.84);
    font-size: 13px;
}
.topbar-inner,
.masthead-inner,
.navbar-inner,
.footer-bottom,
.footer-top,
.hero-layout,
.archive-grid,
.category-showcase-grid,
.footer-widgets-grid {
    display: flex;
    gap: 24px;
}
.topbar-inner {
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
}
.topbar-left,
.topbar-right,
.topbar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-separator { opacity: 0.5; }
.topbar-right a,
.topbar-menu a { color: rgba(255,255,255,0.84); }
.topbar-right a:hover,
.topbar-menu a:hover { color: #fff; }
.topbar-menu { list-style: none; margin: 0; padding: 0; }

.site-header {
    background: var(--ap-surface);
    box-shadow: 0 1px 0 rgba(17,24,39,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}
.masthead { border-bottom: 1px solid var(--ap-border); }
.masthead-inner {
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.site-branding { flex: 0 0 auto; }
.site-logo img,
.custom-logo {
    width: auto;
    max-width: min(100%, 520px);
    max-height: 76px;
}
.masthead-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}
.masthead-tagline {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tagline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ap-dark);
}
.tagline-subtitle {
    font-size: 0.85rem;
    color: var(--ap-muted);
}
.header-search-wrap { width: min(100%, 340px); }
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-form label { flex: 1; }
.search-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--ap-border);
    border-radius: 6px;
    background: #fff;
    padding: 0 14px;
    outline: none;
}
.search-field:focus {
    border-color: var(--ap-accent);
    box-shadow: 0 0 0 3px rgba(21, 184, 178, 0.12);
}
.search-submit,
.button-link,
.comment-form input[type="submit"] {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--ap-dark);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.search-submit:hover,
.button-link:hover,
.comment-form input[type="submit"]:hover {
    background: var(--ap-accent);
    color: #fff;
}

.navbar-shell {
    background: var(--ap-dark);
    color: #fff;
}
.navbar-inner {
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}
.main-navigation { flex: 1; }
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 16px 18px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}
.menu-toggle-box {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.menu-toggle-box span {
    width: 20px;
    height: 2px;
    background: #fff;
    display: block;
}
.menu-toggle-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.newspaper-block { padding: 28px 0; }
.home-hero { padding-top: 24px; }
.hero-layout {
    align-items: flex-start;
}
.hero-main-grid {
    flex: 1 1 auto;
    min-width: 0;
}
.hero-sidebar {
    width: 320px;
    flex: 0 0 320px;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    padding: 18px;
}
.hero-lead {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    margin-bottom: 22px;
}
.hero-lead-thumb,
.entry-thumb {
    display: block;
    background: linear-gradient(135deg, var(--ap-dark), var(--ap-accent));
    overflow: hidden;
}
.hero-lead-thumb img,
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hero-lead:hover img,
.post-card:hover .entry-thumb img,
.list-post:hover .entry-thumb img,
.feature-post:hover .entry-thumb img { transform: scale(1.03); }
.hero-lead-thumb { aspect-ratio: 16 / 9; }
.hero-lead-content { padding: 22px; }
.hero-lead-title {
    margin: 12px 0;
    font-size: clamp(1.8rem, 2.7vw, 2.8rem);
    line-height: 1.15;
}
.hero-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.feature-post {
    position: relative;
    min-height: 220px;
    border: 1px solid var(--ap-border);
    overflow: hidden;
    background: var(--ap-surface);
    box-shadow: var(--ap-shadow);
}
.feature-post .entry-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
}
.feature-post-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.72));
}
.feature-post-title {
    margin: 10px 0 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--ap-border);
    padding-bottom: 10px;
}
.block-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--ap-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.block-heading a {
    color: var(--ap-accent);
    font-size: 0.92rem;
    font-weight: 700;
}

.sidebar-news-list {
    display: grid;
    gap: 14px;
}
.list-post {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    align-items: start;
}
.list-post .entry-thumb { aspect-ratio: 1 / 1; }
.entry-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    color: rgba(255,255,255,0.9);
}
.entry-thumb-placeholder span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    font-size: 1.5rem;
    font-weight: 800;
}
.list-post-title {
    margin: 8px 0 6px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.post-grid {
    display: grid;
    gap: 22px;
}
.post-grid-four,
.category-showcase-grid,
.post-grid-standard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.post-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.post-card .entry-thumb { aspect-ratio: 16 / 10; }
.post-card-content { padding: 18px; display: flex; flex-direction: column; height: 100%; }
.entry-title {
    margin: 10px 0 12px;
    font-size: 1.2rem;
    line-height: 1.35;
}
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--ap-muted);
    font-size: 0.85rem;
}
.entry-summary {
    color: #475467;
    font-size: 0.95rem;
}
.entry-summary p { margin: 0; }
.read-more-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--ap-dark);
}
.read-more-link::after { content: '›'; color: var(--ap-accent); }
.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(21, 184, 178, 0.12);
    color: var(--ap-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.feature-post .cat-badge { background: rgba(255,255,255,0.18); color: #fff; }

.archive-shell { padding: 30px 0 44px; }
.archive-grid {
    align-items: flex-start;
}
.content-area {
    flex: 1 1 auto;
    min-width: 0;
}
.sidebar { width: 320px; flex: 0 0 320px; }
.archive-header-page {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ap-border);
}
.archive-header-page h1 {
    margin: 0 0 8px;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: var(--ap-dark);
}
.archive-header-page p,
.archive-description { color: var(--ap-muted); }

.widget,
.footer-widget {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    padding: 18px;
    margin-bottom: 18px;
}
.widget-title,
.footer-widget-title {
    margin: 0 0 14px;
    font-size: 1rem;
    color: var(--ap-dark);
    text-transform: uppercase;
}
.widget ul,
.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li,
.footer-widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--ap-border);
}
.widget li:last-child,
.footer-widget li:last-child { border-bottom: 0; }
.tag-cloud-link,
.tag-cloud-wrap a,
.single-entry-footer a {
    display: inline-flex;
    margin: 0 6px 6px 0;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    background: var(--ap-surface-2);
    border: 1px solid var(--ap-border);
    color: var(--ap-dark);
    font-size: 0.82rem !important;
}
.tag-cloud-link:hover,
.tag-cloud-wrap a:hover,
.single-entry-footer a:hover {
    background: rgba(21, 184, 178, 0.12);
    color: var(--ap-accent);
}

.single-article {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    padding: 24px;
}
.single-entry-header { margin-bottom: 20px; }
.single-entry-title {
    margin: 12px 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    color: var(--ap-dark);
}
.single-entry-thumb {
    margin-bottom: 24px;
    border-radius: 0;
    overflow: hidden;
}
.single-entry-content p { margin: 0 0 1.3em; }
.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
    margin: 1.6em 0 0.65em;
    line-height: 1.25;
    color: var(--ap-dark);
}
.single-entry-content blockquote {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--ap-accent);
    background: rgba(21, 184, 178, 0.08);
}
.single-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.single-entry-content th,
.single-entry-content td {
    border: 1px solid var(--ap-border);
    padding: 10px 12px;
}
.post-navigation-wrap,
.comments-area {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    padding: 24px;
    margin-top: 20px;
}
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--ap-muted);
    margin-bottom: 5px;
}
.nav-title { font-weight: 700; color: var(--ap-dark); }
.comment-list { padding-left: 18px; }
.comment-body {
    border: 1px solid var(--ap-border);
    padding: 14px;
    margin-bottom: 14px;
}
.comment-form input:not([type="submit"]),
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--ap-border);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.not-found-page {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    padding: 48px;
    margin: 38px auto 56px;
    text-align: center;
}
.not-found-page h1 { margin-top: 0; color: var(--ap-dark); }
.no-results {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    padding: 24px;
}
.empty-block {
    background: var(--ap-surface);
    border: 1px dashed var(--ap-border);
    padding: 32px;
    color: var(--ap-muted);
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    color: var(--ap-dark);
    box-shadow: var(--ap-shadow);
}
.page-numbers.current,
.page-numbers:hover {
    background: var(--ap-dark);
    color: #fff;
}

.site-footer {
    background: var(--ap-dark);
    color: rgba(255,255,255,0.85);
    margin-top: 18px;
}
.footer-top {
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px 0 24px;
}
.footer-branding {
    max-width: 360px;
}
.footer-branding p {
    color: rgba(255,255,255,0.72);
    margin-top: 16px;
}
.site-logo-dark img { max-height: 70px; }
.footer-widgets-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-widget {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}
.footer-widget-title { color: #fff; }
.footer-widget a,
.footer-navigation a { color: rgba(255,255,255,0.8); }
.footer-widget a:hover,
.footer-navigation a:hover { color: #fff; }
.footer-bottom {
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1160px) {
    .post-grid-four,
    .category-showcase-grid,
    .post-grid-standard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-layout,
    .archive-grid,
    .footer-top { flex-direction: column; }
    .hero-sidebar,
    .sidebar { width: 100%; flex-basis: auto; }
    .footer-widgets-grid { width: 100%; }
}

@media (max-width: 920px) {
    .masthead-inner { flex-direction: column; align-items: stretch; }
    .masthead-actions { width: 100%; justify-content: space-between; }
    .masthead-tagline { text-align: left; }
    .menu-toggle { display: inline-flex; }
    .main-navigation {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        background: var(--ap-dark);
        box-shadow: var(--ap-shadow);
    }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; align-items: stretch; }
    .main-navigation a { border-top: 1px solid rgba(255,255,255,0.08); }
    .navbar-inner { position: relative; min-height: 58px; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 24px, var(--ap-container)); }
    .topbar-inner,
    .masthead-actions,
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .topbar-story { display: none; }
    .header-search-wrap,
    .search-form { width: 100%; }
    .search-form { flex-direction: column; }
    .hero-secondary-grid,
    .post-grid-four,
    .category-showcase-grid,
    .post-grid-standard,
    .footer-widgets-grid,
    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .list-post { grid-template-columns: 82px 1fr; }
    .single-article,
    .post-navigation-wrap,
    .comments-area,
    .not-found-page { padding: 18px; }
}

/* SEO and brand refinements */
.site-logo-light img {
    object-fit: contain;
}
.footer-branding .site-logo img {
    background: rgba(255,255,255,0.96);
    padding: 8px 10px;
    border-radius: 8px;
}
.read-more-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.read-more-link::after {
    flex: 0 0 auto;
}
@media (max-width: 720px) {
    .site-logo img,
    .custom-logo {
        max-height: 58px;
    }
}
