/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Modern Professional Palette */
    --bg-white: #ffffff;
    --bg-page: #f8fafc;
    --bg-section: #f1f5f9;

    --text-main: #18181B;
    --text-muted: #71717A;
    --text-light: #A1A1AA;

    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;

    --accent: #0EA5E9;
    --accent-hover: #0284C7;

    --success: #16A34A;
    --success-light: #F0FDF4;

    --danger: #DC2626;
    --danger-light: #FEF2F2;

    --warning: #D97706;
    --warning-light: #FFFBEB;

    --border-color: #E4E4E7;
    --border-dark: #D4D4D8;
    --border-width: 1px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-w: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.05rem;
}

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.bg-white { background-color: var(--bg-white); }
.bg-section { background-color: var(--bg-section); }
.bg-page { background-color: var(--bg-page); }

.hidden { display: none !important; }

.py-section { padding: 5rem 0; }
.py-compact { padding: 3rem 0; }
.text-center { text-align: center; }

.sh-label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--primary);
    background: var(--primary-light);
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.error-page-wrap {
    padding: 8rem 0;
    text-align: center;
}

.error-page-wrap p {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.error-page-wrap .btn {
    margin-top: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
    letter-spacing: 0;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    color: white;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-outline {
    background-color: white;
    color: var(--text-main);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* ===== TOP BAR ===== */
.top-announcement-bar {
    background: var(--announcement-bg);
    color: var(--announcement-text);
    padding: 0.55rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1100;
}

.announcement-content {
    display: flex;
    white-space: nowrap;
    gap: 4rem;
    animation: scrollAnnounce 30s linear infinite;
    width: max-content;
}

.announcement-content .announcement-item {
    font-weight: 600;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-emoji {
    font-size: 1rem;
    line-height: 1;
}

@keyframes scrollAnnounce {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.site-header {
    background: white;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.15rem;
}

.logo-plus {
    color: var(--primary);
}

.site-logo-img {
    max-height: 44px;
    width: auto;
    display: block;
}

.main-nav-desktop {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0rem;
}

.mobile-nav-header {
    display: none;
}

.main-nav-desktop ul {
    display: flex;
    gap: 0.1rem 0.05rem;
    align-items: center;
}

.main-nav-desktop a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.arrow-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    position: relative;
    transition: transform 0.25s ease;
}

.arrow-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.dropdown-open .arrow-icon,
.has-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

.main-nav-desktop a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

@media (min-width: 992px) {
    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: white;
    min-width: 210px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 500;
    overflow: visible !important;
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.9rem;
    color: var(--text-muted) !important;
    text-align: left;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.dropdown a:hover {
    background: var(--bg-page);
    color: var(--primary) !important;
}

/* Level 3 Sub-Dropdown */
.has-sub-dropdown {
    position: relative;
}

.sub-arrow-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.sub-arrow-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 1px;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
}

.sub-dropdown {
    position: absolute;
    top: -0.5rem;
    left: calc(100% + 4px);
    background: white;
    min-width: 190px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 600;
    overflow: visible !important;
}

@media (min-width: 992px) {
    .has-sub-dropdown:hover > .sub-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

.sub-dropdown li { width: 100%; }

.sub-dropdown a {
    display: block;
    width: 100%;
    padding: 0.45rem 0.9rem;
    color: var(--text-muted) !important;
    text-align: left;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.sub-dropdown a:hover {
    background: var(--bg-page);
    color: var(--primary) !important;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 27, 0.4);
    z-index: 998;
    cursor: pointer;
}

.nav-overlay.show {
    display: block;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #111827;
    color: white;
    padding: 4rem 0 2rem;
}

.site-footer .logo {
    color: white;
}

.site-footer .logo-plus {
    color: rgba(255,255,255,0.5);
}

.site-footer .logo-icon {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1.25rem;
    max-width: 280px;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55) !important;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
    letter-spacing: 0.02em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links li {
    width: 100%;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
    font-weight: 400;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35) !important;
    margin-bottom: 0;
}

.category-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.category-intro {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header-desc {
    color: var(--text-muted);
}

.pagination-wrap .btn {
    min-width: 120px;
}

.page-indicator {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-page);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 400;
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.7) !important;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-blue {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.15);
}

.badge-green {
    background: var(--success-light);
    color: #15803D;
    border-color: rgba(22, 163, 74, 0.15);
}

.badge-yellow {
    background: var(--warning-light);
    color: #92400E;
    border-color: rgba(217, 119, 6, 0.15);
}

/* ===== ARTICLES (Shared) ===== */
.article-sections,
.test-bottom-content {
    padding: 5rem 0;
    background: var(--bg-page);
}

.article-block {
    background: transparent;
    padding: 0;
    margin-bottom: 2.5rem;
}

.article-divider {
    margin-top: 2rem;
}

.article-block + .article-block {
    margin-top: 1.25rem;
}

.article-block h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.article-block p:last-child {
    margin-bottom: 0;
}



.article-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.article-list li {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 1.15rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-main);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.article-list li:hover {
    border-color: var(--border-dark);
    border-left-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.article-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

/* ===== UTILITY CLASSES ===== */
@media (max-width: 991px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hide-desktop {
        display: none !important;
    }
}

.mobile-drawer {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .site-header {
        position: static;
        padding: 0.75rem 0;
        height: 68px;
        display: flex;
        align-items: center;
        z-index: 1000;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        transition: opacity 0.2s;
    }

    body:has(.mobile-drawer.open) .hamburger {
        opacity: 0;
        pointer-events: none;
    }

    .nav-overlay {
        backdrop-filter: blur(6px);
        background: rgba(15, 23, 42, 0.35);
        z-index: 1050;
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 1100;
        overflow-y: auto;
        transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.12);
    }

    .mobile-drawer.open {
        left: 0;
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        background: white;
        position: sticky;
        top: 0;
        z-index: 10;
        min-height: 68px;
    }

    .drawer-header .logo {
        max-width: 180px;
    }

    .drawer-header .site-logo-img {
        max-height: 38px;
        width: auto;
    }

    .drawer-close {
        background: var(--bg-section);
        color: var(--text-muted);
        border: none;
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding-bottom: 2px;
        flex-shrink: 0;
    }

    .drawer-content {
        padding: 0.5rem 0 3rem;
    }

    .drawer-item {
    }

    .drawer-link-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
    }

    .drawer-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-main);
        flex-grow: 1;
        line-height: 1.4;
        padding-right: 50px;
    }

    .drawer-item.active .drawer-link {
        color: var(--primary);
    }

    .drawer-chevron {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.25s ease;
        position: relative;
        z-index: 10;
        background: transparent;
    }

    .drawer-chevron::after {
        content: '';
        width: 7px;
        height: 7px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(45deg);
        display: block;
    }

    .drawer-item.dropdown-open > .drawer-link-wrap > .drawer-chevron {
        transform: rotate(-180deg);
    }

    .drawer-dropdown {
        background: #F9FAFB;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    }

    .drawer-item.dropdown-open > .drawer-dropdown {
        max-height: 2000px;
        opacity: 1;
        visibility: visible;
        padding: 0.5rem 0;
    }

    .drawer-sub-link {
        display: block;
        padding: 0.8rem 2.5rem;
        padding-right: 50px;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-muted) !important;
        line-height: 1.4;
        transition: all 0.15s ease;
    }

    .drawer-sub-link:active {
        background: rgba(0, 0, 0, 0.04);
        color: var(--primary) !important;
    }

    .drawer-sub-item {
        border-bottom: none;
    }

    .drawer-sub-item .drawer-link-wrap {
        padding-left: 0;
    }

    .drawer-dropdown-l3 {
        background: #F9FAFB !important;
        border-left: 2px solid var(--primary);
    }

    .drawer-l3-link {
        padding-left: 3.25rem !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-right .btn {
        display: none !important;
    }
}

/* ===== MOBILE TYPOGRAPHY ===== */
@media (max-width: 640px) {
    h1 { font-size: 1.85rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.35rem !important; }
    p  { font-size: 1rem; }
}



/* ===== BREADCRUMBS ===== */
.breadcrumb-container {
    background: white;
    padding: 0.65rem 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.breadcrumb-nav::-webkit-scrollbar {
    display: none;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .sep {
    color: var(--border-dark);
}

.breadcrumb-nav .current {
    color: var(--primary);
    font-weight: 600;
}

/* ===== STANDARD PAGES ===== */
.standard-page-wrap {
    min-height: calc(100vh - 72px);
    background: var(--bg-page);
    padding: 0;
}

.standard-page-header {
    margin-bottom: 3rem;
}

.standard-page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.standard-page-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0;
}

.page-featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3.5rem;
    display: block;
}

.page-content {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.65rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

@media (max-width: 768px) {
    .standard-page-wrap {
        padding: 0;
    }

    .standard-page-header h1 {
        font-size: 1.85rem;
    }

    .standard-page-excerpt {
        font-size: 1.05rem;
    }
}

/* Tag Pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    background: var(--bg-section);
    color: var(--text-muted) !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all 0.18s ease;
    text-decoration: none !important;
}

.tag-pill:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* .standard-page-wrap padding consolidated above */

/* ===== RICH TEXT EDITOR STYLES ===== */
.cw-content, .page-content, .test-intro-text-more {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cw-content ul, .page-content ul, .test-intro-text-more ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.cw-content ol, .page-content ol, .test-intro-text-more ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.cw-content li, .page-content li, .test-intro-text-more li {
    margin-bottom: 0.5rem;
}

.cw-content p, .page-content p, .test-intro-text-more p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cw-content h1, .cw-content h2, .cw-content h3, .cw-content h4, .cw-content h5, .cw-content h6,
.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6,
.test-intro-text-more h1, .test-intro-text-more h2, .test-intro-text-more h3, .test-intro-text-more h4, .test-intro-text-more h5, .test-intro-text-more h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font);
    line-height: 1.3;
}

.cw-content blockquote, .page-content blockquote, .test-intro-text-more blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cw-content a, .page-content a, .test-intro-text-more a {
    text-decoration: underline;
    color: var(--primary);
    font-weight: 600;
}

.cw-content a:hover, .page-content a:hover, .test-intro-text-more a:hover {
    color: var(--primary-hover);
}

.cw-content img, .page-content img, .test-intro-text-more img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.cw-content table, .page-content table, .test-intro-text-more table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.cw-content table th, .cw-content table td,
.page-content table th, .page-content table td,
.test-intro-text-more table th, .test-intro-text-more table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.cw-content table th, .page-content table th, .test-intro-text-more table th {
    background-color: #f8fafc;
    font-weight: 700;
}

.cw-content hr, .page-content hr, .test-intro-text-more hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Dedicated Rich Content styles (mirrors dashboard editor) */
.rich-content, .home-article-content {
    line-height: 1.4;
}
.rich-content p, .home-article-content p {
    margin-bottom: 15px !important;
}
.rich-content ul, .home-article-content ul {
    list-style: disc !important;
    padding-left: 30px !important;
    margin-bottom: 15px !important;
}
.rich-content ol, .home-article-content ol {
    list-style: decimal !important;
    padding-left: 30px !important;
    margin-bottom: 15px !important;
}
.rich-content li, .home-article-content li {
    margin-bottom: 5px !important;
}
.rich-content table, .home-article-content table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}
.rich-content table td, .home-article-content table td,
.rich-content table th, .home-article-content table th {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left;
}
.rich-content table th, .home-article-content table th {
    background: #f5f5f5 !important;
}

/* ===== BLOG LAYOUT ===== */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.blog-main-content {
    min-width: 0;
}

.blog-sidebar-column {
    position: relative;
    align-self: start;
}

.blog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

@media (max-width: 992px) {
    .blog-layout-grid {
        grid-template-columns: 1fr;
    }
    .blog-sidebar-column {
        position: static;
    }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.tc-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tc-cat-badge:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    color: white;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
