.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.site-logo-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
}

.site-logo-text {
    display: none;
    flex-direction: column;
    min-width: 0;
}

.site-logo-text strong {
    font-size: 1.125rem;
    color: #111827;
}

.site-logo-text span {
    font-size: 0.6875rem;
    color: #6b7280;
    line-height: 1.2;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.site-nav > a,
.nav-dropdown-btn {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.site-nav > a:hover,
.nav-dropdown-btn:hover {
    color: #2563eb;
}

.nav-dropdown {
    position: relative;
    padding: 0.75rem 0;
}

.nav-dropdown-btn::after {
    content: '';
    display: inline-block;
    margin-left: 0.25rem;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}

.nav-dropdown-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0.25rem);
    width: 16rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    z-index: 60;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown-title {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
}

.nav-dropdown-panel a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
}

.nav-dropdown-panel a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.social-links a {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links svg {
    width: 1rem;
    height: 1rem;
}

.social-yt {
    background: #fee2e2;
    color: #dc2626;
}

.social-ig {
    background: #fce7f3;
    color: #db2777;
}

.social-fb {
    background: #dbeafe;
    color: #2563eb;
}

.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: #374151;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 1rem;
}

.mobile-nav a,
.mobile-nav strong {
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav strong {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-transform: uppercase;
}

.mobile-sub {
    padding-left: 0.75rem !important;
    color: #374151;
}

.mobile-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.header-spacer {
    height: 4rem;
}

@media (min-width: 640px) {
    .site-logo-text {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }
}

.page-gradient {
    background: linear-gradient(to bottom, #f9fafb, #fff);
}

.container-lg {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem 0 4rem;
    align-items: start;
}

.article-grid > * {
    min-width: 0;
}

@media (min-width: 1024px) {
    .article-grid {
        grid-template-columns: minmax(0, 3fr) minmax(280px, 320px);
    }

    .article-grid > aside {
        position: sticky;
        top: 5rem;
    }
}

.article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.article-hero {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .article-hero {
        height: 20rem;
    }
}

@media (min-width: 1024px) {
    .article-hero {
        height: 24rem;
    }
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.7), rgba(31, 41, 55, 0.5));
}

.article-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 2rem 1.5rem;
    color: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-gray { background: #f3f4f6; color: #374151; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-meta-light {
    color: rgba(255, 255, 255, 0.9);
}

.excerpt-box {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 0.5rem 0.5rem 0;
}

.excerpt-box p {
    margin: 0;
    font-size: 1.125rem;
    color: #1e40af;
    font-weight: 500;
}

.article-body-wrap {
    position: relative;
    padding: 1.5rem;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-box h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.sidebar-cat:hover {
    border-color: #dbeafe;
    background: linear-gradient(to right, #eff6ff, transparent);
}

.sidebar-cat.is-active {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.sidebar-count {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #1e40af;
}

.sidebar-info {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}

.sidebar-info p {
    margin: 0 0 1rem;
    color: #1e3a8a;
    font-size: 0.875rem;
    line-height: 1.6;
}

.sidebar-contact {
    background: linear-gradient(to bottom right, #f9fafb, #fff);
}

.share-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.share-btn:hover {
    background: #f9fafb;
}

.like-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
}

.like-btn.is-liked {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.comments-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font: inherit;
}

.form-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: #111827;
    color: #fff;
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
}

.form-btn:hover {
    background: #1f2937;
}

.admin-sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #fbbf24;
}
