/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #0c4a6e;
    background: #f0f9ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0891b2; text-decoration: none; }
a:hover { color: #0e7490; }
main { flex: 1; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #0c4a6e;
}

/* === LAYOUT === */
.kadence-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    background: #1f2937;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.header-top-bar {
    background: #0e7490;
    text-align: center;
    padding: 5px 20px;
    font-size: 0.78rem;
    color: #bae6fd;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.3px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 960px;
    margin: 0 auto;
    gap: 16px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
.site-logo:hover { color: #bae6fd; }
.site-name {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.2;
}
.site-name span {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #93c5fd;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
}
.main-nav a {
    color: #e2e8f0;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 12px;
    border-radius: 4px;
    transition: background 0.18s, color 0.18s;
    display: block;
}
.main-nav a:hover,
.main-nav a.active {
    background: #0891b2;
    color: #fff;
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
}

/* === BREADCRUMBS === */
.breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid #bae6fd;
    padding: 9px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
}
.breadcrumb a { color: #0891b2; }
.breadcrumb a:hover { color: #0e7490; text-decoration: underline; }
.breadcrumb .sep { color: #cbd5e1; font-size: 0.9rem; }
.breadcrumb span[itemprop="name"] { color: #475569; }

/* === MAIN CONTENT AREA === */
.content-wrap { padding: 36px 0 48px; }

/* === HERO CARD === */
.hero-section { margin-bottom: 36px; }
.hero-card {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 4px 20px rgba(8,145,178,0.12);
}
.hero-card-img-wrap { overflow: hidden; position: relative; }
.hero-card-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.3s;
}
.hero-card:hover .hero-card-img { transform: scale(1.03); }
.hero-card-body {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.hero-card-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: #0891b2;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    align-self: flex-start;
}
.hero-card-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.35;
    color: #0c4a6e;
}
.hero-card-title a { color: #0c4a6e; }
.hero-card-title a:hover { color: #0891b2; }
.hero-card-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
}
.hero-card-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    gap: 12px;
    align-items: center;
}
.hero-card-meta .read-more {
    background: #0891b2;
    color: #fff;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.18s;
    margin-top: 4px;
    align-self: flex-start;
}
.hero-card-meta .read-more:hover { background: #0e7490; color: #fff; }

/* === SECTION TITLES === */
.section-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #0c4a6e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0891b2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #f97316;
    border-radius: 2px;
}

/* === ARTICLE CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(8,145,178,0.14);
}
.card-img-wrap { overflow: hidden; position: relative; }
.card-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform 0.3s;
}
.card:hover .card-img { transform: scale(1.05); }
.card-body {
    padding: 15px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0891b2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.card-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}
.card-title a { color: #0c4a6e; }
.card-title a:hover { color: #0891b2; }
.card-excerpt {
    font-size: 0.83rem;
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.5;
}
.card-date { font-size: 0.78rem; color: #94a3b8; }

/* === PAGE TITLE BANNER === */
.page-banner {
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 50%, #0891b2 100%);
    padding: 36px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -20px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.page-banner h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 8px;
    position: relative;
}
.page-banner .banner-sub {
    color: #bae6fd;
    font-size: 0.9rem;
    position: relative;
}

/* === ARTICLE PAGE === */
.article-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 34px 36px;
    border: 1px solid #bae6fd;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(8,145,178,0.06);
}
.article-header { margin-bottom: 18px; }
.article-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #0c4a6e;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0f2fe;
    margin-bottom: 20px;
}
.article-meta .meta-cat a {
    color: #0891b2;
    font-weight: 600;
}
.meta-dot { color: #cbd5e1; }
.article-featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 26px;
}

/* === ENTRY CONTENT (article body) === */
.entry-content {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.82;
    color: #0c4a6e;
}
.entry-content h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0c4a6e;
    margin: 30px 0 12px;
    padding-bottom: 7px;
    border-bottom: 2px solid #bae6fd;
}
.entry-content h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0e7490;
    margin: 24px 0 10px;
}
.entry-content p { margin-bottom: 16px; }
.entry-content ul,
.entry-content ol { margin: 0 0 16px 26px; }
.entry-content li { margin-bottom: 7px; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 0.9rem;
    box-shadow: 0 1px 4px rgba(8,145,178,0.08);
    border-radius: 6px;
    overflow: hidden;
}
.entry-content th {
    background: #0891b2;
    color: #fff;
    padding: 11px 13px;
    text-align: left;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}
.entry-content td {
    padding: 9px 13px;
    border-bottom: 1px solid #e0f2fe;
    color: #0c4a6e;
}
.entry-content tr:nth-child(even) td { background: #f0f9ff; }
.entry-content tr:last-child td { border-bottom: none; }
.entry-content blockquote {
    border-left: 4px solid #0891b2;
    background: #f0f9ff;
    padding: 16px 20px;
    margin: 22px 0;
    font-style: italic;
    color: #0e7490;
    border-radius: 0 8px 8px 0;
    font-size: 1.02rem;
}
.entry-content blockquote p { margin-bottom: 0; }
.entry-content .infobox {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 22px 0;
}
.entry-content .infobox p { margin-bottom: 0; }
.entry-content .stat-block {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    border-radius: 10px;
    padding: 22px 26px;
    margin: 22px 0;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Lora', serif;
    box-shadow: 0 4px 16px rgba(8,145,178,0.25);
}
.entry-content .stat-block small {
    display: block;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #bae6fd;
    margin-top: 6px;
}
.entry-content a { color: #0891b2; }
.entry-content a:hover { color: #0e7490; text-decoration: underline; }
.entry-content img {
    border-radius: 8px;
    margin: 22px 0;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(8,145,178,0.1);
}

/* === TAGS === */
.article-tags {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e0f2fe;
}
.article-tags-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.tags-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    margin-right: 4px;
}
a.tag-pill {
    display: inline-block;
    background: #f0f9ff;
    border: 1px solid #0891b2;
    color: #0891b2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
a.tag-pill:hover {
    background: #0891b2;
    color: #fff;
    text-decoration: none;
}

/* === AUTHOR BOX === */
.author-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.author-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-name {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #0c4a6e;
    margin-bottom: 5px;
}
.author-bio {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
}

/* === RELATED POSTS === */
.related-posts { margin-top: 32px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.related-card {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8,145,178,0.12);
}
.related-card img {
    width: 100%;
    height: 125px;
    object-fit: cover;
}
.related-card-body { padding: 13px 14px; }
.related-card-title {
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 5px;
}
.related-card-title a { color: #0c4a6e; }
.related-card-title a:hover { color: #0891b2; }
.related-card-date { font-size: 0.77rem; color: #94a3b8; }

/* === BELOW-ARTICLE WIDGETS (3 columns) === */
.below-article-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

/* === SIDEBAR / WIDGET === */
.sidebar-widget {
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 18px 20px;
}
.sidebar-widget h3 {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 13px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0891b2;
}
.widget-post-list { list-style: none; }
.widget-post-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f9ff;
    font-size: 0.85rem;
}
.widget-post-list li:last-child { border-bottom: none; }
.widget-post-list a { color: #0c4a6e; line-height: 1.4; }
.widget-post-list a:hover { color: #0891b2; }
.wpl-date {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}
.widget-cat-list { list-style: none; }
.widget-cat-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f9ff;
    font-size: 0.85rem;
}
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list a {
    color: #0c4a6e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-cat-list a:hover { color: #0891b2; }
.widget-cat-list a span:last-child {
    background: #f0f9ff;
    color: #0891b2;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}
.tags-cloud { display: flex; flex-wrap: wrap; gap: 5px; }

/* === CATEGORY PAGE === */
.cat-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
    padding: 30px 20px 26px;
    text-align: center;
}
.cat-header h1 { color: #fff; font-size: 1.65rem; margin-bottom: 6px; }
.cat-header p { color: #bae6fd; font-size: 0.9rem; }

/* === FOOTER === */
.kadence-footer {
    background: #0c4a6e;
    color: #e2e8f0;
    padding: 34px 0 18px;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 26px;
}
.footer-brand .site-name-footer {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}
.footer-col h4 {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #bae6fd;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(186,230,253,0.2);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.18s;
}
.footer-col ul a:hover { color: #bae6fd; }
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 0 14px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copy {
    font-size: 0.8rem;
    color: #64748b;
}
.footer-copy a { color: #94a3b8; }
.footer-copy a:hover { color: #bae6fd; }
.footer-nav-bot {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-nav-bot a {
    color: #64748b;
    font-size: 0.8rem;
    transition: color 0.18s;
}
.footer-nav-bot a:hover { color: #bae6fd; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card { grid-template-columns: 1fr; }
    .hero-card-img { min-height: 220px; height: 220px; }
    .below-article-widgets { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1f2937; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .nav-toggle { display: block; }
    .article-wrap { padding: 22px 18px; }
    .article-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-card-body { padding: 20px 18px; }
    .hero-card-title { font-size: 1.15rem; }
    .page-banner h1 { font-size: 1.4rem; }
}
