:root {
    --brand-red: #b01636;
    --brand-blue: #0c7595;
    --text-white: #ffffff;
    --header-height: 74px;
    --top-header-bg: #1a1a1a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f8f9fa;
}
.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-white);
    padding: 12px 0;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.user-welcome {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.user-welcome i {
    font-size: 20px;
}
.user-welcome strong {
    font-weight: 700;
}
.user-actions {
    display: flex;
    align-items: center;
}
.user-actions .btn {
    font-size: 12px;
    padding: 6px 14px;
    font-weight: 600;
    border-radius: 4px;
}
.user-actions .btn-outline-light {
    border-color: rgba(255,255,255,0.8);
    color: var(--text-white);
}
.user-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--text-white);
}
.user-actions .btn-danger {
    background: #dc3545;
    border: none;
}
.user-actions .btn-danger:hover {
    background: #bb2d3b;
}
.top-header {
    background: var(--top-header-bg);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.date-time {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.weather-update {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffd700;
}
.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.top-actions .btn {
    font-size: 12px;
    padding: 6px 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}
.top-actions .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
}
.top-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-white);
}
.top-actions .btn-primary {
    background: var(--brand-red);
    border: none;
}
.top-actions .btn-primary:hover {
    background: #8c1129;
}
.topbar-link {
    display: block;
    text-decoration: none;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 18px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.brand img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}
.brand .name {
    font-size: 20px;
    font-weight: 700;
    color: #b01636;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-bar {
    background: var(--brand-red);
    color: var(--text-white);
    display: flex;
    align-items: stretch;
    min-height: var(--header-height);
    position: relative;
}
.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    background: transparent;
    border: none;
    align-items: center;
}
.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: thin;
}
.nav-links::-webkit-scrollbar { height: 4px; }
.nav-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    height: var(--header-height);
    transition: background 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
}
.nav-link:hover { opacity: 0.85; background: rgba(0,0,0,0.1); }
.nav-link.active {
    background: var(--brand-red);
    color: var(--text-white);
    opacity: 1;
}
.nav-link.active:hover {
    background: var(--brand-red);
    opacity: 0.9;
}
.nav-search {
    flex: 0 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    height: var(--header-height);
}
.nav-search:hover { background: rgba(0,0,0,0.1); }
.nav-search svg { width: 20px; height: 20px; fill: #fff; }
.page-wrap { max-width: 1200px; margin: 24px auto; padding: 0 16px; }

/* Mobile menu styles */
@media (max-width: 768px) {
    .user-header {
        font-size: 12px;
        padding: 10px 0;
    }
    .user-header .d-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .user-welcome, .user-actions {
        justify-content: center;
    }
    /* Hide top header on mobile */
    .top-header {
        display: none;
    }
    .topbar {
        padding: 10px 12px;
    }
    .brand img {
        max-width: 90%;
        max-height: 50px;
    }
    .brand .name {
        font-size: 16px;
    }
    .nav-bar {
        flex-wrap: wrap;
        position: relative;
    }
    .hamburger {
        display: flex;
        margin-left: 0;
        order: -1;
    }
    .nav-search {
        margin-left: auto;
        order: 2;
    }
    .nav-links {
        order: 1;
    }
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    /* Mobile menu slider */
    .nav-links {
        position: fixed;
        top: 0;
        left: -300px;
        bottom: 0;
        width: 280px;
        max-width: 85%;
        flex-direction: column;
        gap: 0;
        background: var(--brand-red);
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        padding-top: 60px;
    }
    .nav-links.open {
        left: 0;
    }
    .nav-link {
        width: 100%;
        height: auto;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 13px;
        justify-content: flex-start;
    }
    .nav-search {
        position: absolute;
        right: 0;
        top: 0;
        height: var(--header-height);
    }
}
@media (max-width: 480px) {
    .brand .name {
        font-size: 14px;
        max-width: 150px;
    }
    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Welcome Box */
.welcome-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.welcome-box h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}
.welcome-box p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Sidebar Content */
.sidebar-content {
    position: sticky;
    top: 20px;
}

/* ========== POST DETAIL PAGE STYLES ========== */
.post-detail-wrapper {
    padding: 40px 0;
    background: #f8f9fa;
}

.post-detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    gap: 6px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}

.share-btn i {
    font-size: 16px;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #1da851;
}

.share-twitter {
    background: #000;
}

.share-twitter:hover {
    background: #333;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #145dbf;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-instagram:hover {
    opacity: 0.9;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #222;
}

.post-content ul, .post-content ol {
    margin-bottom: 16px;
    padding-left: 30px;
}

.post-content blockquote {
    border-left: 4px solid #dc3545;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
}

@media (max-width: 991px) {
    .post-title {
        font-size: 28px;
    }

    .post-detail-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .post-detail-wrapper {
        padding: 20px 0;
    }

    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 130px;
    }
}

/* ========== CATEGORY LIST PAGE STYLES ========== */
.category-header {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.category-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #b01636;
}
.category-description {
    margin: 0;
    font-size: 15px;
    color: #666;
}
@media (max-width: 768px) {
    .category-title {
        font-size: 24px;
    }
}

/* ========== PAGINATION STYLES ========== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}
.pagination .page-item .page-link {
    color: #666;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination .page-item .page-link:hover {
    color: #fff;
    background-color: #b01636;
    border-color: #b01636;
}
.pagination .page-item.active .page-link {
    background-color: #b01636;
    border-color: #b01636;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #999;
    pointer-events: none;
    background: #f5f5f5;
}

/* ========== TAG SLIDER COMPONENT STYLES ========== */
.tag-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tag-slider-wrapper .tag-slider-track {
    display: flex;
    transition: transform 0.35s ease;
}
.tag-slider-wrapper .tag-slide {
    min-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: inherit;
}

.tag-slider-wrapper .tag-slide:hover .tag-slide-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.tag-slider-wrapper .tag-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.3s ease;
}
.tag-slider-wrapper .tag-slide-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    width: 100%;
}
.tag-slider-wrapper .tag-slide-title {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
}
.tag-slider-wrapper .tag-slide-meta {
    font-size: 14px;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.tag-slider-wrapper .tag-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 3;
}
.tag-slider-wrapper .tag-slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.tag-slider-wrapper .tag-slider-btn.prev { left: 16px; }
.tag-slider-wrapper .tag-slider-btn.next { right: 16px; }

@media (max-width: 991px) {
    .tag-slider-wrapper .tag-slide {
        min-height: 350px;
    }
    .tag-slider-wrapper .tag-slide-title {
        font-size: 24px;
    }
    .tag-slider-wrapper .tag-slide-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .tag-slider-wrapper .tag-slide {
        min-height: 300px;
    }
    .tag-slider-wrapper .tag-slide-title {
        font-size: 18px;
    }
    .tag-slider-wrapper .tag-slide-body {
        padding: 16px;
    }
    .tag-slider-wrapper .tag-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tag-slider-wrapper .tag-slide {
        min-height: 250px;
    }
    .tag-slider-wrapper .tag-slide-title {
        font-size: 16px;
    }
    .tag-slider-wrapper .tag-slide-body {
        padding: 12px;
    }
}

/* ========== TAG SCROLLER COMPONENT STYLES ========== */
.tag-scroller-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 0;
    position: relative;
}
.tag-scroller-wrapper .tag-scroller-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: scroll-auto 18s linear infinite;
}

.tag-scroller-wrapper:hover .tag-scroller-track {
    animation-play-state: paused;
}

.tag-scroller-wrapper .tag-scroll-item {
    color: #b01636;
    font-weight: 700;
    text-decoration: none;
    padding: 0 8px;
    position: relative;
    flex-shrink: 0;
}
.tag-scroller-wrapper .tag-scroll-item::after {
    content: '•';
    color: #ccc;
    margin-left: 12px;
}
.tag-scroller-wrapper .tag-scroll-item:last-child::after {
    content: '';
}

@media (max-width: 768px) {
    .tag-scroller-wrapper {
        padding: 8px 0;
    }
    .tag-scroller-wrapper .tag-scroll-item {
        font-size: 14px;
    }
}

/* ========== TAG LIST COMPONENT STYLES ========== */
.tag-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tag-list-wrapper .tag-list-item {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}
.tag-list-wrapper .tag-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.tag-list-wrapper .tag-list-image {
    position: relative;
    width: 40%;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}
.tag-list-wrapper .tag-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tag-list-wrapper .tag-list-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #b01636;
    color: #fff;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.tag-list-wrapper .tag-list-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
}
.tag-list-wrapper .tag-list-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}
.tag-list-wrapper .tag-list-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.tag-list-wrapper .tag-list-excerpt {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}
.tag-list-wrapper .tag-list-btn {
    display: inline-block;
    padding: 10px 16px;
    background: #b01636;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    width: fit-content;
}
.tag-list-wrapper .tag-list-btn:hover {
    background: #8c1129;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .tag-list-wrapper .tag-list-item {
        flex-direction: column;
    }
    .tag-list-wrapper .tag-list-image {
        width: 100%;
        height: 250px;
    }
    .tag-list-wrapper .tag-list-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tag-list-wrapper .tag-list-item {
        flex-direction: column;
    }
    .tag-list-wrapper .tag-list-image {
        width: 100%;
        height: 200px;
    }
    .tag-list-wrapper .tag-list-content {
        width: 100%;
        padding: 12px 15px;
    }
    .tag-list-wrapper .tag-list-title {
        font-size: 16px;
    }
}

/* ========== TAG PAGE HEADER COMPONENT STYLES ========== */
.tag-page-header {
    width: 100%;
    margin: 0 auto;
}

.tag-page-header .tag-ph-container {
    display: flex;
    min-height: 400px;
    gap: 8px;
}

.tag-page-header .tag-ph-left {
    flex: 0 0 50%;
    width: 50%;
}

.tag-page-header .tag-ph-right {
    flex: 0 0 50%;
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.tag-page-header .tag-ph-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

.tag-page-header .tag-ph-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.tag-page-header .tag-ph-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-page-header .tag-ph-item:hover .tag-ph-hover-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.tag-page-header .tag-ph-item:hover .tag-ph-bg {
    transform: scale(1.05);
}

.tag-page-header .tag-ph-item:hover .tag-ph-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tag-page-header .tag-ph-item:hover .tag-ph-author {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tag-page-header .tag-ph-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.tag-page-header .tag-ph-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.tag-page-header .tag-ph-title {
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #ddd;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tag-page-header .tag-ph-author {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    transition: color 0.3s ease;
}

@media (max-width: 991px) {
    .tag-page-header .tag-ph-container {
        min-height: 300px;
    }
    .tag-page-header .tag-ph-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .tag-page-header .tag-ph-container {
        flex-direction: column;
        min-height: auto;
    }
    .tag-page-header .tag-ph-left,
    .tag-page-header .tag-ph-right {
        flex: none;
        width: 100%;
    }
    .tag-page-header .tag-ph-left {
        min-height: 250px;
    }
}

/* ========== TAG CARD CAROUSEL COMPONENT STYLES ========== */
.tag-card-carousel {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.tag-card-carousel .carousel-container {
    position: relative;
    width: 100%;
}

.tag-card-carousel .carousel-track-wrapper {
    overflow: hidden;
    padding: 0 50px;
}

.tag-card-carousel .carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.tag-card-carousel .carousel-card {
    flex: 0 0 250px;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-card-carousel .carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tag-card-carousel .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tag-card-carousel .card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tag-card-carousel .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.tag-card-carousel .card-content {
    padding: 15px;
}

.tag-card-carousel .card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
    line-height: 1.4;
    min-height: 44px;
}

.tag-card-carousel .card-meta {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-card-carousel .card-author {
    font-weight: 600;
    color: #dc3545;
}

.tag-card-carousel .card-date {
    color: #999;
}

.tag-card-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 10;
}

.tag-card-carousel .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.tag-card-carousel .carousel-btn.prev { left: 10px; }
.tag-card-carousel .carousel-btn.next { right: 10px; }

@media (max-width: 991px) {
    .tag-card-carousel .carousel-card {
        flex: 0 0 200px;
        width: 200px;
    }
    .tag-card-carousel .card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .tag-card-carousel .carousel-track-wrapper {
        padding: 0 40px;
    }
    .tag-card-carousel .carousel-card {
        flex: 0 0 180px;
        width: 180px;
    }
    .tag-card-carousel .card-image {
        height: 180px;
    }
    .tag-card-carousel .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ========== TAG NEWS BOX COMPONENT STYLES ========== */
.tag-news-box .object-cover { object-fit: cover; }

.tag-news-box .nb-feature-cover {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 300px;
    max-height: 420px;
}
.tag-news-box .nb-feature-cover img { width: 100%; height: 100%; display: block; }

.tag-news-box .nb-badge {
    position: absolute; left: 14px; top: 14px;
    background: #b01636; color:#fff; font-weight:700; font-size: 11px;
    padding: 6px 12px; border-radius: 3px; letter-spacing: 0.5px;
}

.tag-news-box .nb-feature-title { font-weight: 800; font-size: 28px; line-height: 1.25; }
.tag-news-box .nb-feature-title a { color:#222; text-decoration:none; }
.tag-news-box .nb-feature-title a:hover { color:#b01636; }

.tag-news-box .nb-meta { color:#888; font-size: 13px; display:flex; align-items:center; gap:10px; }
.tag-news-box .nb-meta strong { color:#b01636; }

.tag-news-box .nb-excerpt { color:#555; font-size: 15px; line-height: 1.6; }

.tag-news-box .nb-btn {
    display:inline-block; padding:10px 16px; border:1px solid #e5e5e5; border-radius:4px;
    text-decoration:none; color:#222; font-size:12px; font-weight:700; letter-spacing:0.5px;
    background:#f9f9f9; transition: all .2s ease;
}
.tag-news-box .nb-btn:hover { background:#b01636; color:#fff; border-color:#b01636; }

.tag-news-box .nb-list { display:flex; flex-direction:column; gap:14px; }

.tag-news-box .nb-list-item {
    display:grid; grid-template-columns: 120px 1fr; gap:12px; align-items:center;
    text-decoration:none; color:inherit; padding-bottom:14px; border-bottom:1px solid #eee;
    position:relative; overflow:hidden; border-radius:6px; background:#fff;
    transition: box-shadow .2s ease;
}
.tag-news-box .nb-list-item:last-child { border-bottom:none; }
.tag-news-box .nb-list-item:hover { box-shadow:0 2px 10px rgba(0,0,0,0.08); }

.tag-news-box .nb-thumb {
    width: 120px; height: 80px; background-size:cover; background-position:center; border-radius:6px; overflow:hidden;
}

.tag-news-box .nb-list-title { font-weight:700; color:#222; line-height:1.35; }
.tag-news-box .nb-list-item:hover .nb-list-title { color:#b01636; }
.tag-news-box .nb-list-date { font-size:12px; color:#888; margin-top:6px; }

@media (max-width: 991.98px) {
    .tag-news-box .nb-feature-title { font-size: 22px; }
    .tag-news-box .nb-feature-cover { min-height: 260px; }
    .tag-news-box .nb-list-item { grid-template-columns: 110px 1fr; }
    .tag-news-box .nb-thumb { width:110px; height:75px; }
}
@media (max-width: 575.98px) {
    .tag-news-box .nb-feature-cover { min-height: 220px; max-height: 320px; }
    .tag-news-box .nb-list-item { grid-template-columns: 100px 1fr; }
    .tag-news-box .nb-thumb { width:100px; height:70px; }
}

/* ========== TAG SMALL LIST COMPONENT STYLES ========== */
.tag-small-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tag-small-list-wrapper .small-list-item {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tag-small-list-wrapper .small-list-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.tag-small-list-wrapper .small-list-image {
    flex: 0 0 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}
.tag-small-list-wrapper .small-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tag-small-list-wrapper .small-list-title {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    padding-right: 10px;
    word-break: break-word;
}
.tag-small-list-wrapper .small-list-item:hover .small-list-title {
    color: #b01636;
}

@media (max-width: 768px) {
    .tag-small-list-wrapper {
        gap: 10px;
    }
    .tag-small-list-wrapper .small-list-image {
        flex: 0 0 60px;
        height: 60px;
    }
    .tag-small-list-wrapper .small-list-title {
        font-size: 12px;
    }
}

/* ============================================================================
   PAGE STYLES - HOME PAGE
   ============================================================================ */
.welcome-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sidebar-content {
    position: sticky;
    top: 20px;
}

/* ============================================================================
   PAGE STYLES - CATEGORY LIST PAGE
   ============================================================================ */
.category-header {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.category-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #b01636;
}

.category-description {
    margin: 0;
    font-size: 15px;
    color: #666;
}

@media (max-width: 768px) {
    .category-title {
        font-size: 24px;
    }
}

/* ============================================================================
   PAGE STYLES - POST DETAIL PAGE
   ============================================================================ */
.post-detail-wrapper {
    padding: 40px 0;
    background: #f8f9fa;
}

.post-detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    gap: 6px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}

.share-btn i {
    font-size: 16px;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #1da851;
}

.share-twitter {
    background: #000;
}

.share-twitter:hover {
    background: #333;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #145dbf;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-instagram:hover {
    opacity: 0.9;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #222;
}

.post-content ul, .post-content ol {
    margin-bottom: 16px;
    padding-left: 30px;
}

.post-content blockquote {
    border-left: 4px solid #dc3545;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 10px;
}

@media (max-width: 991px) {
    .post-title {
        font-size: 28px;
    }

    .post-detail-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .post-detail-wrapper {
        padding: 20px 0;
    }

    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 130px;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG SLIDER
   ============================================================================ */
.tag-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tag-slider-track {
    display: flex;
    transition: transform 0.35s ease;
}

.tag-slide {
    min-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.tag-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.tag-slide-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    width: 100%;
}

.tag-slide-title {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
}

.tag-slide-meta {
    font-size: 14px;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tag-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 3;
}

.tag-slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.tag-slider-btn.prev { left: 16px; }
.tag-slider-btn.next { right: 16px; }

@media (max-width: 991px) {
    .tag-slide {
        min-height: 350px;
    }
    .tag-slide-title {
        font-size: 24px;
    }
    .tag-slide-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .tag-slide {
        min-height: 300px;
    }
    .tag-slide-title {
        font-size: 18px;
    }
    .tag-slide-body {
        padding: 16px;
    }
    .tag-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tag-slide {
        min-height: 250px;
    }
    .tag-slide-title {
        font-size: 16px;
    }
    .tag-slide-body {
        padding: 12px;
    }
    .tag-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG SCROLLER
   ============================================================================ */
.tag-scroller {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 0;
    position: relative;
}

.tag-scroller-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: scroll-auto 18s linear infinite;
}

.tag-scroller-wrapper:hover .tag-scroller-track,
.tag-scroller:hover .tag-scroller-track {
    animation-play-state: paused;
}

.tag-scroll-item {
    color: #b01636;
    font-weight: 700;
    text-decoration: none;
    padding: 0 8px;
    position: relative;
}

.tag-scroll-item::after {
    content: '•';
    color: #ccc;
    margin-left: 12px;
}

.tag-scroll-item:last-child::after { 
    content: ''; 
}

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

@media (max-width: 768px) {
    .tag-scroller {
        padding: 8px 0;
    }
    .tag-scroll-item {
        font-size: 14px;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG LIST (PAGINATED)
   ============================================================================ */
.tag-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-list-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.tag-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tag-list-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tag-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tag-list-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #b01636;
    color: #fff;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.tag-list-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag-list-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.tag-list-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag-list-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline;
}

.pagination .page-link {
    color: #b01636;
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #b01636;
}

.pagination .page-item.active .page-link {
    background: #b01636;
    color: #fff;
    border-color: #b01636;
}

@media (max-width: 768px) {
    .tag-list-item {
        grid-template-columns: 200px 1fr;
        gap: 15px;
    }
    .tag-list-image {
        height: 150px;
    }
    .tag-list-content {
        padding: 15px;
    }
    .tag-list-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tag-list-item {
        grid-template-columns: 1fr;
    }
    .tag-list-image {
        height: 200px;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG PAGE HEADER
   ============================================================================ */
.tag-page-header {
    width: 100%;
    margin: 0 auto;
}

.tag-ph-container {
    display: flex;
    min-height: 400px;
    gap: 8px;
}

.tag-ph-left {
    flex: 0 0 50%;
    width: 50%;
}

.tag-ph-right {
    flex: 0 0 50%;
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.tag-ph-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

.tag-ph-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.tag-ph-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-ph-item:hover .tag-ph-hover-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.tag-ph-item:hover .tag-ph-bg {
    transform: scale(1.05);
}

.tag-ph-item:hover .tag-ph-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tag-ph-item:hover .tag-ph-author {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tag-ph-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.tag-ph-badge {
    display: inline-block;
    background: #b01636;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 8px;
}

.tag-ph-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #ddd;
    transition: color 0.3s ease;
}

.tag-ph-author {
    font-size: 12px;
    color: #aaa;
    transition: color 0.3s ease;
    margin-top: 6px;
}

@media (max-width: 991px) {
    .tag-ph-container {
        min-height: 300px;
    }
    .tag-ph-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .tag-ph-container {
        flex-direction: column;
        min-height: auto;
        gap: 8px;
    }
    .tag-ph-left,
    .tag-ph-right {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    .tag-ph-right {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG CARD CAROUSEL
   ============================================================================ */
.tag-card-carousel {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track-wrapper {
    overflow: hidden;
    padding: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.carousel-card {
    flex: 0 0 250px;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
    line-height: 1.4;
    min-height: 44px;
}

.card-meta {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-author {
    font-weight: 600;
    color: #dc3545;
}

.card-date {
    color: #999;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

@media (max-width: 768px) {
    .carousel-track-wrapper {
        padding: 0 40px;
    }
    .carousel-card {
        flex: 0 0 200px;
        width: 200px;
    }
    .card-image {
        height: 200px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .carousel-track-wrapper {
        padding: 0 30px;
    }
    .carousel-card {
        flex: 0 0 150px;
        width: 150px;
    }
    .card-image {
        height: 150px;
    }
    .card-title {
        font-size: 14px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG NEWS BOX
   ============================================================================ */
.tag-news-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.object-cover { 
    object-fit: cover; 
}

.nb-feature-cover {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 300px;
    max-height: 420px;
}

.nb-feature-cover img { 
    width: 100%;
    height: 100%;
    display: block;
}

.nb-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #b01636;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.nb-feature-title {
    font-weight: 800;
    font-size: 28px;
    line-height: 1.25;
}

.nb-feature-title a {
    color: #222;
    text-decoration: none;
}

.nb-feature-title a:hover {
    color: #b01636;
}

.nb-meta {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nb-meta strong {
    color: #b01636;
}

.nb-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.nb-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.nb-btn:hover {
    background: #b01636;
    color: #fff;
    border-color: #b01636;
}

.nb-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nb-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.nb-list-item:last-child {
    border-bottom: none;
}

.nb-list-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nb-thumb {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
}

.nb-list-title {
    font-weight: 700;
    color: #222;
    line-height: 1.35;
}

.nb-list-item:hover .nb-list-title {
    color: #b01636;
}

.nb-list-date {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

@media (max-width: 991.98px) {
    .nb-feature-title {
        font-size: 22px;
    }
    .nb-feature-cover {
        min-height: 260px;
    }
    .nb-list-item {
        grid-template-columns: 110px 1fr;
    }
    .nb-thumb {
        width: 110px;
        height: 75px;
    }
}

@media (max-width: 575.98px) {
    .nb-feature-cover {
        min-height: 220px;
        max-height: 320px;
    }
    .nb-list-item {
        grid-template-columns: 100px 1fr;
    }
    .nb-thumb {
        width: 100px;
        height: 70px;
    }
}

/* ============================================================================
   COMPONENT STYLES - TAG SMALL LIST
   ============================================================================ */
.tag-small-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.small-list-item {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.small-list-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.small-list-image {
    flex: 0 0 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}

.small-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.small-list-title {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    padding-right: 10px;
    word-break: break-word;
}

.small-list-item:hover .small-list-title {
    color: #b01636;
}

@media (max-width: 768px) {
    .tag-small-list {
        gap: 10px;
    }
    .small-list-image {
        flex: 0 0 60px;
        height: 60px;
    }
    .small-list-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .small-list-image {
        flex: 0 0 55px;
        height: 55px;
    }
    .small-list-title {
        font-size: 11px;
    }
}
/* ===== SEARCH MODAL STYLES ===== */
.nav-search {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--brand-blue);
    transition: transform 0.2s ease;
}

.nav-search:hover {
    transform: scale(1.1);
}

.nav-search svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.search-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    width: 90%;
    max-width: 600px;
    z-index: 1;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-modal-close:hover {
    color: var(--brand-blue);
}

.search-modal-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-modal-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease;
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(12, 117, 149, 0.1);
}

.search-modal-submit {
    padding: 12px 25px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.search-modal-submit:hover {
    background: #085375;
}

.search-tips {
    text-align: center;
    font-size: 13px;
    color: #888;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.search-tips p {
    margin: 0;
    padding: 3px 0;
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-results-container {
    padding: 40px 0;
    min-height: calc(100vh - 74px);
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.search-box-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(12, 117, 149, 0.1);
}

.search-submit-btn {
    padding: 14px 24px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.search-submit-btn:hover {
    background: #085375;
}

.search-info {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.search-result-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.result-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .result-image img {
    transform: scale(1.05);
}

.result-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 48px;
}

.result-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.result-title a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.result-title a:hover {
    color: var(--brand-red);
}

.result-category {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
}

.result-category a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.result-category a:hover {
    color: var(--brand-blue);
}

.result-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.tag-badge.more {
    background: var(--brand-red);
    color: white;
}

.result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px 0;
    flex: 1;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 5px;
    color: var(--brand-blue);
}

.result-read-more {
    display: inline-block;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.result-read-more:hover {
    color: var(--brand-red);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.empty-search {
    text-align: center;
    padding: 60px 20px;
}

.empty-search-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-search h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.empty-search p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* ===== RESPONSIVE SEARCH STYLES ===== */
@media (max-width: 768px) {
    .search-modal-content {
        padding: 30px 20px;
        width: 95%;
        margin-top: 20px;
    }

    .search-title {
        font-size: 24px;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .result-image {
        height: 180px;
    }

    .result-content {
        padding: 15px;
    }

    .result-title {
        font-size: 16px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-modal-content {
        padding: 25px 15px;
        width: 98%;
        margin-top: 10px;
    }

    .search-modal-form {
        flex-direction: column;
    }

    .search-modal-submit {
        width: 100%;
    }

    .search-title {
        font-size: 20px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-image {
        height: 200px;
    }

    .result-meta {
        gap: 10px;
    }
}

/* ===== AD COMPONENT ===== */
.ad-slot {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ad-slot-image img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-slot-video video {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--top-header-bg);
    color: var(--text-white);
    padding: 50px 0 0;
    margin-top: 60px;
    border-top: 3px solid var(--brand-red);
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-logo h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

.footer-about {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
    margin-top: 15px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand-red);
    padding-left: 5px;
}

.footer-subscribe-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-subscribe-form .input-group {
    display: flex;
    gap: 0;
}

.footer-subscribe-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
}

.footer-subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-red);
    color: var(--text-white);
    outline: none;
    box-shadow: none;
}

.footer-subscribe-form .btn-subscribe {
    background: var(--brand-red);
    color: var(--text-white);
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-subscribe-form .btn-subscribe:hover {
    background: #8c1129;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(176, 22, 54, 0.3);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 0;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-logo h3 {
        font-size: 20px;
    }
    
    .footer-subscribe-form .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-subscribe-form .form-control,
    .footer-subscribe-form .btn-subscribe {
        border-radius: 4px;
        width: 100%;
    }
}