/*
Theme Name: Modern SEO Corporate V2
Theme URI: https://github.com/alkimoberon/modern-seo-corporate
Author: Alkimoberon
Author URI: https://serpgo.net
Description: Ultra-lightweight, high-performance, and deeply schema-optimized corporate WordPress theme. Now featuring an enhanced UX/UI homepage with modern design principles.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: modern-seo-corporate
*/

:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-color: #475569;
    --text-dark: #0f172a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --font-stack: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    font-size: 17px;
    color: var(--text-color);
    background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.site-title { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -0.5px;}
.site-title a { color: var(--text-dark); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-navigation a { color: var(--text-color); font-weight: 600; font-size: 15px; }
.main-navigation a:hover { color: var(--accent-color); }

.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: all 0.3s ease; text-align: center;
}
.btn-primary { background-color: var(--accent-color); color: var(--bg-white); box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39); }
.btn-primary:hover { background-color: var(--accent-hover); color: var(--bg-white); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--text-dark); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--text-dark); color: var(--text-dark); }
.btn-light { background-color: var(--bg-white); color: var(--primary-color); }
.btn-light:hover { background-color: var(--bg-light); color: var(--primary-color); transform: translateY(-2px); }

.modern-hero {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    padding: 88px 0 72px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 991px) {
    .site-header {
        position: static;
    }

    .header-container {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 12px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .entry-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
    }
}

@media (max-width: 767px) {
    .modern-hero,
    .latest-firms-section,
    .sectors-section,
    .services-section,
    .news-section {
        padding: 58px 0;
    }

    .hero-title {
        font-size: clamp(30px, 7vw, 42px);
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-button {
        width: 100%;
    }

    .visual-placeholder {
        min-height: 300px;
        padding: 18px;
    }

    .metric-card {
        position: static;
        margin-bottom: 10px;
    }

    .main-content article,
    .post-detail-card,
    .firm-detail-card,
    .related-posts,
    .firm-latest-news,
    .sidebar-area {
        padding: 20px;
    }

    .section-header h2,
    .entry-title {
        font-size: 28px;
    }

    .service-card,
    .sector-card,
    .firm-card-link,
    .related-card-link {
        padding: 18px;
    }

    .firm-grid,
    .sectors-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.hero-badge {
    display: inline-block; padding: 6px 14px; background: #dbeafe; color: #1e40af;
    border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 24px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-title {
    font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: var(--text-dark);
    line-height: 1.15; margin: 0 0 24px 0; letter-spacing: -1px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 18px; color: var(--text-color); margin-bottom: 26px; max-width: 680px; line-height: 1.7; }

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #0f172a;
    background: transparent;
    padding: 4px 8px;
}

.hero-search-input::placeholder {
    color: #64748b;
}

.hero-search-button {
    border: none;
    cursor: pointer;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
}

.hero-search-button:hover {
    background: #1e40af;
}

.firm-logo-wrap {
    margin-bottom: 14px;
}

.firm-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #dbeafe;
}

.firm-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.firm-logo-fallback {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 6px 12px;
}

.section-header-left {
    text-align: left;
    margin: 0 0 36px 0;
    max-width: 720px;
}

.latest-firms-section,
.sectors-section,
.news-section {
    padding: 92px 0;
}

.latest-firms-section {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.firm-grid,
.sectors-grid,
.news-grid,
.related-grid,
.firm-info-grid {
    display: grid;
    gap: 22px;
}

.latest-firms-section .container,
.sectors-section .container,
.services-section .container,
.news-section .container {
    position: relative;
}

.firm-grid,
.sectors-grid,
.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sectors-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.firm-card,
.sector-card,
.news-card,
.related-card,
.firm-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.firm-card,
.sector-card,
.service-card,
.news-card {
    height: 100%;
}

.firm-card:hover,
.sector-card:hover,
.news-card:hover,
.related-card:hover,
.firm-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.firm-card-link,
.news-card-link,
.related-card-link {
    display: block;
    color: inherit;
}

.firm-card-link,
.related-card-link {
    padding: 24px;
}

.firm-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.firm-chip {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #dbeafe;
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 14px;
}

.firm-card-title,
.news-title,
.related-card h3 {
    font-size: 21px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.firm-card-excerpt,
.news-excerpt,
.related-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

.firm-card-date,
.news-date {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.firm-card-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.firm-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
}

.sectors-section {
    background-color: #f8fafc;
}

.sector-card {
    padding: 24px;
}

.directory-category-card {
    padding: 0;
}

.directory-category-link {
    display: block;
    color: inherit;
    padding: 22px;
}

.directory-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.directory-category-head h3 {
    margin: 0;
    font-size: 19px;
    color: #0f172a;
}

.directory-category-count {
    background: #e0e7ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.directory-category-link p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.sector-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    font-size: 24px;
    margin-bottom: 14px;
}

.sector-card h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.sector-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

.news-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card {
    overflow: hidden;
}

.news-thumb img {
    border-radius: 16px 16px 0 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.content-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.services-section { padding: 100px 0; background-color: var(--bg-white); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 36px; color: var(--text-dark); margin: 0 0 16px 0; font-weight: 800; letter-spacing: -0.5px; }
.section-header p { font-size: 18px; color: var(--text-color); margin: 0; }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.service-card {
    background: var(--bg-white); border: 1px solid var(--border-color);
    padding: 40px 30px; border-radius: var(--radius); transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent;
}
.service-icon {
    width: 60px; height: 60px; background: #eff6ff; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    margin-bottom: 24px; color: var(--accent-color);
}
.service-card h3 { font-size: 22px; color: var(--text-dark); margin: 0 0 16px 0; font-weight: 700; }
.service-card p { margin: 0; color: var(--text-color); font-size: 15px; line-height: 1.7; }

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

.section-header-left p {
    margin: 0;
}

.section-archive-link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1d4ed8;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.section-archive-link:hover {
    color: #ffffff;
    background: #1e40af;
}

.cta-banner { padding: 80px 0; background-color: var(--bg-white); }
.cta-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 24px; padding: 60px; display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 30px; box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
    .cta-container { flex-direction: row; text-align: left; justify-content: space-between; }
}
.cta-text h2 { color: var(--bg-white); font-size: 32px; margin: 0 0 12px 0; font-weight: 800; letter-spacing: -0.5px; }
.cta-text p { color: #94a3b8; font-size: 18px; margin: 0; max-width: 500px; }

.site-main { padding: 60px 0; }
.grid-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .grid-layout { grid-template-columns: 2fr 1fr; } }
.main-content article {
    background: var(--bg-white); padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: 30px; border: 1px solid var(--border-color);
}
.entry-title { font-size: 32px; color: var(--text-dark); margin-top: 0; margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px; }
.entry-meta { font-size: 14px; color: #64748b; margin-bottom: 25px; display: flex; gap: 10px; align-items: center; }
.entry-content { font-size: 16px; color: var(--text-color); }

.post-detail-card,
.firm-detail-card {
    padding: 34px;
}

.firm-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
}

.firm-hero-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.firm-hero-logo {
    width: 132px;
    height: 132px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    overflow: hidden;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.firm-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.firm-hero-logo-fallback {
    font-size: 46px;
    font-weight: 800;
    color: #1e3a8a;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.firm-hero-title {
    margin: 10px 0 10px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.firm-hero-excerpt {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
    max-width: 760px;
}

.firm-hero-meta {
    margin-top: 14px;
    margin-bottom: 8px;
}

.post-detail-header,
.firm-header {
    margin-bottom: 18px;
}

.post-detail-header .entry-title,
.firm-header .entry-title {
    margin-top: 12px;
}

.entry-content p {
    line-height: 1.8;
}

.main-content,
.entry-content {
    min-width: 0;
}

.entry-content,
.entry-content * {
    max-width: 100%;
}

.entry-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content table tbody,
.entry-content table thead,
.entry-content table tr {
    width: 100%;
}

.entry-content table th,
.entry-content table td {
    padding: 10px 10px;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content table td a,
.entry-content table th a {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video,
.entry-content img {
    max-width: 100% !important;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    width: 100% !important;
}

.entry-content h2,
.entry-content h3 {
    color: var(--text-dark);
}

.share-links {
    margin: 18px 0 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-links-label {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.share-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-link:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
}

.related-posts,
.firm-latest-news {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.related-posts h2,
.firm-latest-news h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-size: 24px;
}

.related-grid,
.firm-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.related-card {
    overflow: hidden;
}

.related-card-link {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-thumb {
    width: 100%;
    min-height: 170px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}

.related-thumb-fallback {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #1e3a8a;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.related-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-content h3 {
    margin: 0;
}

.related-date {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.related-card-small .related-thumb {
    min-height: 130px;
}

.related-card-small .related-content {
    padding: 14px;
    gap: 6px;
}

.related-card-small .related-content h3 {
    font-size: 20px;
    line-height: 1.3;
}

.content-nav-buttons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.content-nav-button {
    flex: 1;
    min-width: 180px;
}

.content-nav-button.next {
    text-align: right;
}

.content-nav-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
    min-height: 42px;
}

.content-nav-button a:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.no-related-content {
    margin: 0;
    color: #64748b;
}

.firm-info-grid {
    margin-top: 24px;
}

.firm-info-card {
    padding: 20px;
}

.firm-info-card h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--text-dark);
}

.firm-info-card p {
    margin: 0;
    color: #64748b;
}

.archive-main {
    padding-top: 0;
}

.archive-hero {
    padding: 76px 0 44px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.archive-hero h1 {
    margin: 8px 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 5vw, 46px);
}

.archive-hero p {
    margin: 0;
    max-width: 720px;
    color: #475569;
}

.archive-section {
    padding: 56px 0;
}

.archive-list-section {
    background: #f8fafc;
}

.archive-categories-grid,
.archive-post-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.archive-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.archive-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.archive-post-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-post-thumb {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
}

.archive-post-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}

.archive-post-content {
    padding: 18px;
}

.archive-post-content h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
}

.archive-pagination {
    margin-top: 24px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    margin-right: 6px;
    margin-bottom: 8px;
    background: #ffffff;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.sidebar-area {
    background: var(--bg-white); padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); height: fit-content;
}
.news-sidebar,
.firm-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    border: 1px solid #e2e8f0;
}

.widget-panel {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.news-sidebar .widget,
.firm-sidebar .widget {
    margin-bottom: 14px;
}

.news-sidebar .widget:last-child,
.firm-sidebar .widget:last-child {
    margin-bottom: 0;
}

.news-sidebar .widget-title,
.firm-sidebar .widget-title {
    margin-bottom: 12px;
}

.news-sidebar li a,
.firm-sidebar li a {
    color: #1e293b;
    font-weight: 600;
}

.news-sidebar li a:hover,
.firm-sidebar li a:hover {
    color: #2563eb;
}
.widget-title {
    font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 0 0 20px 0;
    padding-bottom: 12px; border-bottom: 2px solid var(--border-color);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 15px; }
.widget li:last-child { border-bottom: none; }

@media (max-width: 767px) {
    .related-thumb,
    .archive-post-thumb {
        min-height: 150px;
    }

    .share-links {
        gap: 8px;
    }

    .share-link {
        width: 34px;
        height: 34px;
    }

    .archive-section {
        padding: 44px 0;
    }

    .archive-categories-grid,
    .archive-post-grid {
        grid-template-columns: 1fr;
    }

    .main-content article,
    .post-detail-card,
    .firm-detail-card {
        overflow: hidden;
    }

    .entry-content table {
        font-size: 14px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 9px 8px;
    }

    .related-card-small .related-thumb {
        min-height: 110px;
    }

    .related-card-small .related-content h3 {
        font-size: 18px;
    }

    .content-nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .content-nav-button,
    .content-nav-button.next {
        text-align: center;
    }

    .content-nav-button a {
        width: 100%;
    }

    .entry-content iframe,
    .entry-content embed,
    .entry-content object,
    .entry-content video {
        min-height: 180px;
    }

    .firm-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
        padding: 22px;
    }

    .firm-hero-logo {
        width: 106px;
        height: 106px;
        border-radius: 16px;
    }

    .firm-hero-meta {
        justify-content: center;
    }
}

.site-footer {
    background-color: var(--primary-color); color: #94a3b8; padding: 60px 0 40px 0;
    border-top: 1px solid #1e293b; font-size: 15px;
}
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
@media (min-width: 768px) { .footer-container { flex-direction: row; justify-content: space-between; } }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.footer-navigation a { color: #94a3b8; font-weight: 500; }
.footer-navigation a:hover { color: var(--bg-white); }