
:root {
    --navy: #0b1f38;
    --navy-deep: #071629;
    --blue: #0f5ea8;
    --teal: #11a4b5;
    --orange: #f28c28;
    --text: #1e2c39;
    --muted: #637181;
    --light: #f4f8fb;
    --white: #ffffff;
    --border: #dde6ee;
    --shadow: 0 16px 40px rgba(11, 31, 56, 0.08);
    --radius: 18px;
    --container: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-main { min-height: 50vh; }
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.top-bar {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.top-bar a { color: rgba(255,255,255,0.92); }
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}
.dot-sep { opacity: 0.7; margin: 0 8px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(221,230,238,0.85);
}
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}
.site-branding img.site-logo,
.custom-logo {
    max-height: 72px;
    width: auto;
}
.primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.primary-menu a {
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a { color: var(--orange); }
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
}
.header-ad { padding-bottom: 14px; }
.ad-slot {
    border: 1px dashed #aebccd;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: linear-gradient(180deg, #f9fbfd 0%, #f4f8fb 100%);
    font-weight: 600;
}
.hero-section {
    color: var(--white);
    background-size: cover;
    background-position: center;
    padding: 92px 0 88px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr;
}
.hero-copy { max-width: 660px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--orange);
}
.hero-copy h1,
.page-intro h1,
.archive-header h1,
.single-header h1,
.not-found-card h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}
.hero-copy h1 { font-size: clamp(40px, 5vw, 68px); }
.hero-copy p { font-size: 18px; color: rgba(255,255,255,0.9); }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}
.button.primary {
    background: linear-gradient(135deg, var(--orange), #f5a446);
    color: var(--white);
}
.button.secondary {
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.button:hover { transform: translateY(-1px); }
.section { padding: 72px 0; }
.light-bg { background: var(--light); }
.dark-panel { background: linear-gradient(135deg, var(--navy-deep), #0f3258); color: var(--white); }
.section-head { margin-bottom: 28px; }
.section-head.compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head h2,
.info-card h2,
.newsletter-card h3,
.related-posts h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    margin: 0 0 12px;
}
.section-head p { max-width: 780px; color: var(--muted); }
.featured-posts-grid,
.posts-grid,
.category-grid,
.info-grid {
    display: grid;
    gap: 24px;
}
.featured-posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid { grid-template-columns: 1.1fr 0.9fr; }
.category-card,
.post-card,
.featured-story,
.info-card,
.not-found-card,
.page-article,
.widget,
.post-bottom-box {
    padding: 22px;
}
.category-card h3,
.post-card h3,
.featured-story h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
    font-family: 'Source Serif 4', Georgia, serif;
}
.category-count {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    background: #eef4fb;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}
.post-card-image img,
.featured-story-image img,
.single-featured-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}
.post-card-image,
.featured-story-image { display: block; margin-bottom: 18px; }
.post-card-meta,
.post-meta-row,
.article-share-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(17,164,181,0.12);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.post-card p,
.featured-story p,
.category-card p,
.widget p,
.page-intro p,
.archive-description,
.single-excerpt,
.page-article p,
.entry-content p,
.footer-branding p,
.footer-note { color: var(--muted); }
.post-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}
.page-shell { padding: 46px 0 72px; }
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}
.page-intro,
.archive-header,
.single-header { margin-bottom: 24px; }
.page-intro h1,
.archive-header h1,
.single-header h1 { font-size: clamp(34px, 4vw, 56px); }
.archive-description p { margin: 0; }
.single-article { max-width: 100%; }
.single-header .post-meta-row {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.single-excerpt {
    font-size: 18px;
    max-width: 760px;
    margin: 0;
}
.article-share-inline {
    margin: 20px 0 24px;
    font-size: 14px;
    color: var(--muted);
}
.article-share-inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--navy);
    font-weight: 600;
}
.entry-content {
    font-size: 17px;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--navy);
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.2;
    margin-top: 34px;
    margin-bottom: 12px;
}
.entry-content ul,
.entry-content ol { padding-left: 22px; }
.entry-content blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--orange);
    background: #f8fbfe;
    border-radius: 0 16px 16px 0;
}
.check-list,
.simple-list,
.footer-menu,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li,
.simple-list li,
.footer-links li { margin-bottom: 10px; }
.check-list li::before {
    content: '✓';
    color: var(--orange);
    font-weight: 800;
    margin-right: 10px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.newsletter-form input,
.search-field {
    flex: 1 1 240px;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 0 16px;
    font: inherit;
}
.newsletter-form button,
.search-submit {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--orange), #f5a446);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.tiny-note { font-size: 13px; opacity: 0.85; }
.info-card { padding: 28px; }
.dark-panel .info-card,
.dark-panel .newsletter-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
}
.dark-panel p,
.dark-panel li,
.dark-panel .tiny-note { color: rgba(255,255,255,0.84); }
.dark-panel .newsletter-form input {
    background: rgba(255,255,255,0.95);
    border-color: transparent;
}
.sidebar-area { display: grid; gap: 20px; }
.widget-title {
    margin: 0 0 14px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 24px;
}
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination-wrap { margin-top: 32px; }
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.84);
    padding-top: 56px;
}
.site-footer a { color: rgba(255,255,255,0.92); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 24px;
    padding-bottom: 38px;
}
.footer-branding img { max-width: 320px; margin-bottom: 18px; }
.footer-column h3 {
    margin-top: 0;
    color: var(--white);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 24px;
}
.footer-menu li,
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}
.not-found-shell { padding: 72px 0; }
.not-found-card { max-width: 700px; margin: 0 auto; text-align: center; }
.screen-reader-text {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
@media (max-width: 1080px) {
    .posts-grid,
    .posts-grid-large,
    .category-grid,
    .featured-posts-grid,
    .info-grid,
    .footer-grid,
    .content-with-sidebar,
    .posts-grid-three {
        grid-template-columns: 1fr 1fr;
    }
    .content-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .primary-navigation {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .primary-navigation.active { display: block; }
    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px 22px;
        gap: 14px;
    }
}
@media (max-width: 700px) {
    .posts-grid,
    .posts-grid-large,
    .category-grid,
    .featured-posts-grid,
    .footer-grid,
    .info-grid,
    .posts-grid-three { grid-template-columns: 1fr; }
    .hero-section { padding: 76px 0; }
    .hero-copy p { font-size: 17px; }
    .top-bar-inner,
    .main-header,
    .footer-bottom-inner,
    .post-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
