:root {
    --brand-color: #771414;
    --brand-hover: #590f0f;
    --brand-dark: #580d0d;
    --brand-light: #fdf2f2;
    --brand-border: #f87171;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: #334155;
}

a {
    color: var(--brand-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

::selection {
    background-color: var(--brand-color) !important;
    color: #ffffff !important;
}

::-moz-selection {
    background-color: var(--brand-color) !important;
    color: #ffffff !important;
}

.bg-brand { background-color: var(--brand-color) !important; }
.text-brand { color: var(--brand-color) !important; }

.btn-brand {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(119, 20, 20, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #3f0909 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(119, 20, 20, 0.35);
}

.badge-soft {
    background-color: rgba(119, 20, 20, 0.1);
    color: var(--brand-color);
    font-weight: 600;
}

.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.75rem; }

.hover-running-text:hover {
    color: #fef08a !important;
    text-decoration: underline !important;
}

.bg-gradient-dark {
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.95) 100%);
}

.card-modern {
    border: none;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.08);
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.dropdown-item:active, .dropdown-item:hover {
    background-color: rgba(119, 20, 20, 0.08);
    color: var(--brand-color);
}

.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.news-hero-img { height: 320px; object-fit: cover; border-radius: 16px; }
.news-subhero-img { height: 180px; object-fit: cover; border-radius: 16px; }
.thumb-img { height: 180px; object-fit: cover; border-radius: 8px; }

.related-thumb {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.sidebar-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.ad-banner-300x300 {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background-color: #e2e8f0;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #64748b;
}

.ad-banner-728x90 {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: #e2e8f0;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    color: #64748b;
}

body.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.error-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(119, 20, 20, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 860px;
    width: 100%;
    overflow: hidden;
}

.left-panel {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    position: relative;
}

.status-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fca5a5;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.7);
    animation: pulse 1.8s infinite;
}

.info-box {
    background: var(--brand-light);
    border: 1px solid #fecaca;
    border-radius: 14px;
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(252, 165, 165, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(252, 165, 165, 0); }
}

@media (max-width: 576px) {
    .ad-banner-728x90 {
        height: auto;
        padding: 12px;
        flex-direction: column;
        gap: 2px;
    }
}

@media (min-width: 768px) {
    .news-hero-img { height: 480px; }
    .news-subhero-img { height: 232px; }
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .sticky-sidebar {
        top: 90px;
    }
}

.error-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding: 1.5rem 1rem;
}

.error-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(119, 20, 20, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 860px;
    width: 100%;
    overflow: hidden;
}

.error-card .left-panel {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-dark, #580d0d) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    /*height: 100%; */
    min-height: 280px;
    text-align: center;
}

.error-card .right-panel {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-card .icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    animation: float 4s ease-in-out infinite;
}

.error-card .icon-wrapper i {
    font-size: 64px;
}

.error-card .status-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-card .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fca5a5;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.7);
    animation: error-pulse 1.8s infinite;
}

.error-card .info-box {
    background: var(--brand-light, #fdf2f2);
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 1rem;
}

@keyframes error-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes error-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(252, 165, 165, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(252, 165, 165, 0); }
}

@media (max-width: 767.98px) {
    .error-card .right-panel {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .error-card .left-panel {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
}

.site-footer {
    background-color: #ffffff;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #4a4a4a;
    width: 100%;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-links li:not(:last-child) {
    border-right: 1px solid #cccccc;
}

.footer-links a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    padding: 0 12px;
    display: inline-block;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    padding: 18px 0 25px 0;
    font-size: 14px;
    color: #555555;
}

@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
        gap: 12px 20px;
    }
}