/* Custom Styles - Reusable across all pages */

/* Body min-height untuk footer positioning */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    position: relative;
}

/* Header and footer positioning */
.header_top {
    flex-shrink: 0;
}

.menu_top {
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

/* Ensure sticky navbar has proper z-index */
.menu_top.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Simple Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    padding: 20px;
    background: #0066cc;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-content li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-content a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-menu-content a:hover {
    background: #f5f5f5;
}

.mobile-menu-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Custom carousel navigation buttons di title area - Style seperti news_slide_home_bottom */
.custom-carousel-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    right: 0;
}

/* Arrow buttons dengan background putih, style seperti news_slide_home_bottom */
.custom-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white; /* Background putih, bukan transparan */
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1 / 1; /* Memastikan aspect ratio 1:1 untuk bulat sempurna */
    padding: 0;
    line-height: 1;
}

.custom-nav-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Adjust container untuk alignment yang sempurna */
.d-flex.justify-content-between {
    align-items: center;
}

/* Container untuk slide */
.slide {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Ensure carousel container fill slide container */
#splide-newstop {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom navigation positioning di title area kanan atas */
.custom-carousel-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Adjust title container untuk arrow positioning */
.d-flex.justify-content-between {
    align-items: center;
}

/* Editorial navigation buttons dengan background hitam - di dalam link .more */
.more {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.editorial-nav {
    display: flex;
    gap: 8px;
}

.editorial-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #000; /* Background hitam */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1 / 1;
    padding: 0;
    line-height: 1;
}

.editorial-nav-btn:hover {
    background: #333; /* Hover sedikit lebih terang */
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.editorial-nav-btn svg {
    display: block;
}

/* ===================================
   MOBILE MENU DROPDOWN ARROW FIX
   =================================== */

/* Hide Bootstrap dropdown carets in mobile menu */
.mobile-menu .dropdown-toggle::after {
    display: none !important;
}

/* Also hide any other dropdown arrows in mobile menu */
.mobile-menu .fa-caret-down,
.mobile-menu .fa-chevron-down {
    display: none !important;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .editorial-nav {
        gap: 5px;
    }

    .editorial-nav-btn {
        width: 28px;
        height: 28px;
    }

    .editorial-nav-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .slide {
        width: 100%;
    }

    .custom-carousel-nav {
        gap: 5px;
    }

    .custom-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .custom-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Arrow styling for different carousels - Based on original design */
.nav-slidetop {
    background: #d45b52 !important;
}

.nav-slidetop i {
    color: white !important;
}

.nav-slidetop:hover {
    background: #b84942 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.nav-slidetop:hover i {
    color: white !important;
}

.nav-newstop,
.nav-newsbottom {
    background: white !important;
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.nav-newstop:hover,
.nav-newsbottom:hover {
    background: #f8f9fa !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.nav-video {
    background: #d45b52 !important;
}

.nav-video i {
    color: white !important;
}

.nav-video:hover {
    background: #b84942 !important;
}

.nav-video:hover i {
    color: white !important;
}

/* Specific positioning based on original design */
.prev-slidetop,
.next-slidetop {
    z-index: 15;
}

.prev-newstop,
.next-newstop,
.prev-newsbottom,
.next-newsbottom {
    z-index: 12;
}

.prev-video,
.next-video {
    z-index: 15;
}

/* ===============================
   Category Page Modern Styles
   =============================== */

/* ===============================
   Category Main Content
   =============================== */

.container_24 .category-main {
    padding-top: 40px;
    background: #ffffff;
}

/* Media query for mobile */
@media (max-width: 768px) {
    .container_24 .category-main {
        margin-left: -10px;
        margin-right: -10px;
    }
}

/* Category Header */
.category-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 20px 0;
    padding-left: 20px;
    position: relative;
    border-left: 4px solid #e74c3c;
}

.category-title {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-title i {
    margin-right: 15px;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Featured Article */
.featured-article {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.category-tag {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.featured-content {
    padding: 30px;
}

.featured-title {
    margin-bottom: 20px;
}

.featured-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #e74c3c;
}

.featured-excerpt {
    color: #01111d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: #e74c3c;
}

/* Articles Grid */
.articles-grid {
    margin-bottom: 40px;
}

/* Ensure 2-column grid on desktop */
@media (min-width: 992px) {
    .articles-grid .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive grid adjustments */
@media (max-width: 991.98px) {
    .articles-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 20px;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #e74c3c;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 3px;
    padding: 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Ellipsis styling */
.pagination .page-link:empty {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #6c757d;
    font-weight: bold;
}

.pagination .page-link:empty:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        width: 35px;
        height: 35px;
        font-size: 13px;
        margin: 0 2px;
    }

    .pagination {
        gap: 3px;
    }
}

/* ===============================
   Single Article Styles
   =============================== */

.single-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Article Header */
.article-header {
    padding: 40px 40px 20px 40px;
    background: #fff;
}

.article-category {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tag {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.category-tag::before {
    font-size: 14px;
}

.article-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: #e74c3c;
    font-size: 12px;
}

/* Featured Image */
.article-image {
    position: relative;
    margin: 0 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

.image-caption p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

/* Article Content */
.article-content {
    padding: 40px;
}

.article-excerpt {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #e74c3c;
}

.article-excerpt .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
    color: #2c3e50;
}

.article-body {
    line-height: 1.7;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 17px;
}

.article-body h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 35px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.article-body h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 12px;
    font-size: 16px;
}

/* Blockquote */
.article-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #e74c3c;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.article-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.article-quote cite {
    font-size: 14px;
    color: #6c757d;
    font-style: normal;
    font-weight: 600;
}

/* Article Highlight */
.article-highlight {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.article-highlight h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.article-highlight p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Article Tags */
.article-tags {
    padding: 30px 0 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.article-tags h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.tag:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Share Buttons */
.article-share {
    padding: 25px 0;
    border-top: 1px solid #e9ecef;
}

.article-share h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-header {
        padding: 25px 20px 15px 20px;
    }

    .article-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .article-content {
        padding: 25px 20px;
    }

    .article-image {
        margin: 0 20px;
        border-radius: 8px;
    }

    .article-excerpt {
        padding: 20px;
    }

    .article-excerpt .lead {
        font-size: 1.1rem;
    }

    .article-body p {
        font-size: 15px;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }

    .article-quote {
        padding: 20px 25px;
    }

    .article-quote p {
        font-size: 1.1rem;
    }

    .article-highlight {
        padding: 20px 25px;
    }

    .image-caption {
        padding: 12px 15px;
    }

    .image-caption p {
        font-size: 13px;
    }

    .article-meta {
        gap: 15px;
        font-size: 13px;
    }

    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-excerpt .lead {
        font-size: 1rem;
    }

    .article-content {
        padding: 20px 15px;
    }

    .article-header {
        padding: 20px 15px 10px 15px;
    }

    .article-image {
        margin: 0 15px;
        border-radius: 6px;
    }

    .tags-list {
        gap: 8px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* ===============================
   Comments Section (Inside Article)
   =============================== */

.comments-section {
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
    padding-top: 30px;
}

.comments-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.comments-header h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.comments-header h3 i {
    color: #e74c3c;
    font-size: 1.4rem;
}

.comments-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

.disqus-container {
    padding: 0;
}

/* Disqus Custom Styling */
#disqus_thread {
    background: transparent;
}

#disqus_thread iframe {
    background: transparent !important;
}

/* Mobile Responsive Comments (Inside Article) */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 25px;
        padding-top: 25px;
    }

    .comments-header {
        padding: 20px 25px;
    }

    .comments-header h3 {
        font-size: 1.4rem;
        gap: 8px;
    }

    .comments-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .comments-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .comments-header {
        padding: 18px 20px;
    }

    .comments-header h3 {
        font-size: 1.3rem;
    }

    .comments-subtitle {
        font-size: 0.85rem;
    }
}

/* ===============================
   Related News Section
   =============================== */

.related-news-section {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.related-news-header {
    background: #ffffff;
    padding: 25px 40px;
    border-bottom: 2px solid #e74c3c;
    text-align: left;
    border-radius: 0;
}

.related-news-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.related-news-header h3 i {
    color: #e74c3c;
    font-size: 1.6rem;
}

.related-news-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 8px 0 0 0;
    font-style: italic;
    text-align: left;
}

.related-news-carousel {
    padding: 40px 20px;
}

/* Splide Custom Styling */
.related-news-carousel .splide__track {
    padding: 0;
}

.related-news-carousel .splide__slide {
    display: flex;
    align-items: stretch;
}

.related-news-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-news-image {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

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

.related-news-content h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.related-news-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-content h4 a:hover {
    color: #e74c3c;
}

.related-news-meta {
    margin-top: auto;
    font-size: 13px;
    color: #6c757d;
}

.related-news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-news-meta i {
    font-size: 11px;
    color: #e74c3c;
}

/* Custom Arrows */
.related-news-carousel .splide__arrow {
    background: #ffffff;
    color: #e74c3c;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e74c3c;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-news-carousel .splide__arrow:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.related-news-carousel .splide__arrow--prev {
    left: -10px;
}

.related-news-carousel .splide__arrow--next {
    right: -10px;
}

/* Custom Pagination */
.related-news-carousel .splide__pagination {
    bottom: -30px;
}

.related-news-carousel .splide__pagination__page {
    background: #e9ecef;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.related-news-carousel .splide__pagination__page:hover {
    background: #e74c3c;
    transform: scale(1.2);
}

.related-news-carousel .splide__pagination__page.is-active {
    background: #e74c3c;
    transform: scale(1.3);
}

/* Mobile Responsive Related News */
@media (max-width: 768px) {
    .related-news-header {
        padding: 20px 20px;
    }

    .related-news-header h3 {
        font-size: 1.5rem;
        justify-content: flex-start;
        gap: 8px;
    }

    .related-news-subtitle {
        font-size: 0.9rem;
    }

    .related-news-carousel {
        padding: 25px 10px;
    }

    .related-news-image {
        height: 120px;
    }

    .related-news-content {
        padding: 15px;
    }

    .related-news-content h4 {
        font-size: 14px;
    }

    .related-news-carousel .splide__arrow {
        width: 35px;
        height: 35px;
    }

    .related-news-carousel .splide__arrow--prev {
        left: -5px;
    }

    .related-news-carousel .splide__arrow--next {
        right: -5px;
    }
}

@media (max-width: 576px) {
    .related-news-header {
        padding: 15px 15px;
    }

    .related-news-header h3 {
        font-size: 1.3rem;
        justify-content: flex-start;
    }

    .related-news-subtitle {
        font-size: 0.85rem;
    }

    .related-news-carousel {
        padding: 20px 5px;
    }

    .related-news-item {
        flex-direction: row;
        height: auto;
    }

    .related-news-image {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
    }

    .related-news-content {
        padding: 15px;
        flex: 1;
    }

    .related-news-content h4 {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 3;
    }

    .related-news-meta {
        font-size: 12px;
    }

    .related-news-carousel .splide__arrow {
        width: 30px;
        height: 30px;
    }

    .related-news-carousel .splide__arrow--prev {
        left: 0px;
    }

    .related-news-carousel .splide__arrow--next {
        right: 0px;
    }

    .related-news-carousel .splide__pagination {
        bottom: -25px;
    }
}

/* ===============================
   Login Page Styles
   =============================== */

/* Login Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Login Header */
.login-header {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* Login Form */
.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    font-size: 14px;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.form-control:focus {
    outline: none;
    border-color: #d45b52;
    box-shadow: 0 0 0 0.2rem rgba(212, 91, 82, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #e74c3c;
}

.form-error {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
}

.remember-me label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #c0392b;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Login Divider */
.login-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.login-divider span {
    background: white;
    color: #6c757d;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

/* Social Login */
.social-login {
    padding: 0 30px 30px 30px;
}

.social-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #6c757d;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover:not(:disabled) {
    border-color: #e74c3c;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.google-btn:hover:not(:disabled) {
    border-color: #4285f4;
    color: #4285f4;
}

/* Register Link */
.register-link {
    text-align: center;
    padding: 20px 30px 30px 30px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.register-link p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.register-link a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 15px;
        min-height: auto;
    }

    .login-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .login-header {
        padding: 25px 20px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-form {
        padding: 30px 25px;
    }

    .social-login {
        padding: 0 20px 25px 20px;
    }

    .register-link {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 20px 10px;
        min-height: auto;
    }

    .login-wrapper {
        margin: 0;
        max-width: 100%;
    }

    .login-header {
        padding: 20px 15px;
    }

    .login-header h2 {
        font-size: 1.4rem;
    }

    .login-form {
        padding: 25px 20px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .social-login {
        padding: 0 15px 20px 15px;
    }

    .register-link {
        padding: 15px;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .login-container {
        padding: 15px 5px;
    }

    .login-header {
        padding: 15px 10px;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .login-form {
        padding: 20px 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .login-btn,
    .social-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* ===============================
   Sidebar Widgets
   =============================== */

.sidebar {
    padding-left: 20px;
}

.widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #e9ecef;
}

.widget-title i {
    margin-right: 10px;
    color: #e74c3c;
}

/* Hot Topic Widget - Dark Theme */
.hot-topic-widget {
    background: #2c3e50;
    color: #fff;
}

.hot-topic-widget .widget-title {
    background: #34495e;
    color: #fff;
    border-bottom: 2px solid #3498db;
}

.hot-topic-widget .widget-title i {
    color: #e74c3c;
}

.hot-topic-list {
    padding: 0;
}

.hot-topic-item {
    border-bottom: 1px solid #34495e;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
}

.hot-topic-item:last-child {
    border-bottom: none;
}

.hot-topic-item:hover {
    background: #34495e;
}

.hot-topic-item h4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.hot-topic-item h4 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-topic-item h4 a:hover {
    color: #3498db;
}

.hot-topic-item .news-meta {
    font-size: 12px;
    color: #bdc3c7;
}

.hot-topic-item .news-meta i {
    margin-right: 5px;
}

/* Latest News Widget */
.latest-news-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.latest-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.latest-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 10px;
}

.latest-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-image {
    flex-shrink: 0;
    margin-right: 12px;
}

.latest-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.latest-content {
    flex: 1;
}

.latest-title {
    margin-bottom: 5px;
}

.latest-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.latest-title a:hover {
    color: #e74c3c;
}

.latest-time {
    color: #6c757d;
    font-size: 12px;
}

.latest-news-widget .latest-news-list {
    padding: 0;
}

.latest-news-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.latest-news-item:last-child {
    border-bottom: none;
}

.latest-news-item:hover {
    background-color: #f8f9fa;
}

.latest-news-item .news-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.latest-news-item .news-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.latest-news-item .news-content {
    flex: 1;
}

.latest-news-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.latest-news-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news-item h4 a:hover {
    color: #e74c3c;
}

.latest-news-item .news-meta {
    font-size: 12px;
    color: #666;
}

.latest-news-item .news-meta i {
    margin-right: 5px;
}

/* Popular News Widget */
.popular-news-widget .popular-news-list {
    padding: 0;
}

.popular-news-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.popular-news-item:last-child {
    border-bottom: none;
}

.popular-news-item:hover {
    background-color: #f8f9fa;
}

.popular-news-item .news-number {
    background: #e74c3c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-news-item .news-content {
    flex: 1;
}

.popular-news-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.popular-news-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-news-item h4 a:hover {
    color: #e74c3c;
}

.popular-news-item .news-meta {
    font-size: 12px;
    color: #666;
}

.popular-news-item .news-meta i {
    margin-right: 5px;
}

/* Viral News Widget */
.viral-news-widget .viral-news-list {
    padding: 0;
}

.viral-news-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.viral-news-item:last-child {
    border-bottom: none;
}

.viral-news-item:hover {
    background-color: #f8f9fa;
}

.viral-news-item .news-image {
    position: relative;
    flex-shrink: 0;
    margin-right: 15px;
}

.viral-news-item .news-image img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.viral-news-item .viral-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff6b35;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.viral-news-item .news-content {
    flex: 1;
}

.viral-news-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.viral-news-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.viral-news-item h4 a:hover {
    color: #e74c3c;
}

.viral-news-item .news-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

.viral-news-item .news-meta i {
    margin-right: 5px;
}

/* Serba Serbi Widget */
.serba-serbi-widget .serba-serbi-list {
    padding: 0;
}

.serba-serbi-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.serba-serbi-item:last-child {
    border-bottom: none;
}

.serba-serbi-item:hover {
    background-color: #f8f9fa;
}

.serba-serbi-item .news-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.serba-serbi-item .news-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.serba-serbi-item .news-content {
    flex: 1;
}

.serba-serbi-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.serba-serbi-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.serba-serbi-item h4 a:hover {
    color: #e74c3c;
}

.serba-serbi-item .news-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
    align-items: center;
}

.serba-serbi-item .category {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.serba-serbi-item .news-meta i {
    margin-right: 5px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.categories-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.categories-list a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 12px 20px;
    font-size: 14px;
}

.categories-list a:hover {
    color: #e74c3c;
    transform: translateX(5px);
    background-color: #f8f9fa;
    padding-left: 25px;
}

.categories-list i {
    margin-right: 8px;
    font-size: 12px;
    color: #e74c3c;
}

.categories-widget .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget .categories-list li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-widget .categories-list li:last-child {
    border-bottom: none;
}

.categories-widget .categories-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.categories-widget .categories-list a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    padding-left: 25px;
}

.categories-widget .categories-list a i {
    margin-right: 10px;
    font-size: 12px;
    color: #e74c3c;
}

/* Advertisement Widget */
.ad-space {
    text-align: center;
}

.ad-space img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.advertisement {
    text-align: center;
}

.advertisement .ad-space {
    padding: 20px;
}

.advertisement .ad-space img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

/* ===============================
   Responsive Design
   =============================== */

/* Tablet Styles */
@media (max-width: 992px) {
    .category-title {
        font-size: 2rem;
    }

    .featured-title a {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.8rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .featured-image img {
        height: 300px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-title a {
        font-size: 1.3rem;
    }

    .article-meta {
        gap: 15px;
    }

    .article-meta span {
        font-size: 12px;
    }

    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .latest-item {
        flex-direction: column;
    }

    .latest-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .latest-image img {
        width: 100%;
        height: 150px;
    }

    .latest-news-item,
    .popular-news-item,
    .viral-news-item,
    .serba-serbi-item {
        padding: 12px 15px;
    }

    .latest-news-item .news-image img,
    .serba-serbi-item .news-image img {
        width: 70px;
        height: 50px;
    }

    .viral-news-item .news-image img {
        width: 90px;
        height: 60px;
    }

    .latest-news-item h4,
    .popular-news-item h4,
    .viral-news-item h4,
    .serba-serbi-item h4 {
        font-size: 13px;
    }

    .categories-widget .categories-list a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    .category-title {
        font-size: 1.5rem;
    }

    .category-header {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .featured-image img {
        height: 250px;
    }

    .featured-content {
        padding: 15px;
    }

    .article-card {
        margin-bottom: 20px;
    }

    .article-content {
        padding: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-media {
        justify-content: center;
    }

    .latest-news-item,
    .popular-news-item,
    .viral-news-item,
    .serba-serbi-item {
        flex-direction: column;
        text-align: center;
    }

    .latest-news-item .news-image,
    .viral-news-item .news-image,
    .serba-serbi-item .news-image {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }

    .popular-news-item .news-number {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* ===============================
   Search Functionality Styles
   =============================== */

/* Search Button Styles */
.search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    display: none; /* Hidden by default, shown only on mobile */
    position: relative;
    margin-left: auto;
    order: 999; /* Ensure it's the last item */
}

.search-toggle-btn {
    position: relative;
    z-index: 998;
}

/* Ensure menu_top container uses flexbox */
#navbar .container_24 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Adjust mobile menu toggle position */
#mobile-menu-toggle {
    order: 1;
}

/* Adjust logo position */
.logo_mob {
    order: 2;
    flex: 1;
    text-align: center;
}

/* Adjust menu position */
#menu {
    order: 3;
}

/* Search container at the very end */
.search-container {
    order: 999;
}

.search-btn:hover {
    color: #ffd700;
}

/* Change search submit button color in header */
.search-submit {
    background: #c0392b !important;
    border: none;
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #a93226 !important;
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form form {
    display: flex;
    align-items: center;
    padding: 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    background: #f8f9fa;
    outline: none;
    transition: background 0.3s ease;
}

.search-input:focus {
    background: #fff;
    border: 1px solid #007bff;
}

/* Show search container only on mobile */
@media (max-width: 768px) {
    .search-container {
        display: flex; /* Show only on mobile */
    }

    .search-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .search-form {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        min-width: auto;
        border-radius: 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }

    .search-input {
        padding: 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .search-submit {
        padding: 15px;
    }

    body.search-open #navbar .mobile-menu-toggle,
    body.search-open #navbar .search-btn {
        opacity: 0;
        pointer-events: none;
    }

    body.search-open #navbar .search-form {
        z-index: 1003;
    }
}

/* Mobile Search Form in Menu */
.mobile-search-container {
    padding: 15px 20px; /* Added horizontal padding */
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.mobile-search-form {
    width: 100%;
}

.mobile-search-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-search-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px; /* Consistent padding */
    font-size: 16px;
    outline: none;
}

.mobile-search-input::placeholder {
    color: #999;
}

.mobile-search-btn {
    background: #c0392b;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;
    min-width: 60px;
}

.mobile-search-btn:hover {
    background: #a93226;
    transform: scale(1.05);
}

.mobile-search-btn:active {
    background: #922b21;
    transform: scale(0.98);
}

/* Adjust header search form mobile positioning */
@media (max-width: 768px) {
    .search-form.active {
        animation: slideDown 0.3s ease;
    }
}

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

/* Ensure proper z-index layering */
.mobile-menu-overlay {
    z-index: 997; /* Lowest */
}

.mobile-menu {
    z-index: 998; /* Same as overlay */
}

.search-btn {
    z-index: 999;
}

/* Mobile Dropdown Menu Styles */
.mobile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    padding-right: 0.6rem;
}

.mobile-dropdown-link {
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.mobile-dropdown-toggle {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.mobile-dropdown-toggle i {
    font-size: 12px;
}

.mobile-submenu {
    background: #f5f5f5;
    padding-left: 20px;
    display: none;
}

.mobile-dropdown.open > .mobile-submenu {
    display: block !important;
}

/* ===============================
   Search Page Styles
   =============================== */

/* Search Header */
.search-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #c0392b;
    color: #fff;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.search-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.search-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.search-description {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.search-description span {
    font-weight: 600;
}

/* Search Results Articles List */
.featured-article-combined {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.featured-article-combined:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.articles-list-section {
    padding: 20px;
}

.article-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
}

.article-item:first-child {
    padding-top: 0;
}

.article-item:last-child {
    padding-bottom: 0;
}

.article-item .article-image {
    flex: 0 0 180px;
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
}

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

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-item .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item .article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.article-item .article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item .article-title a:hover {
    color: #c0392b;
}

.article-item .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.article-item .article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-item .article-meta i {
    font-size: 11px;
    color: #c0392b;
}

.article-separator {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #e0e0e0 10%,
        #e0e0e0 90%,
        transparent 100%
    );
    margin: 15px 0;
}

/* No Results Found */
.no-posts-found {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.no-posts-found .fa-search {
    color: #c0392b;
    margin-bottom: 20px;
}

.no-posts-found h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-posts-found p {
    color: #999;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.no-posts-found .btn-primary {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.no-posts-found .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.4);
    text-decoration: none;
    color: white;
}

/* Mobile Responsive for Search */
@media (max-width: 768px) {
    .search-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .search-header-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-description {
        font-size: 0.95rem;
    }

    .articles-list-section {
        padding: 15px;
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .article-item:hover {
        padding-left: 10px;
        padding-right: 10px;
    }

    .article-item .article-image {
        flex: none;
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .article-item .article-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .article-item .article-meta {
        font-size: 11px;
        gap: 8px;
    }

    .article-separator {
        margin: 15px 0;
    }

    .no-posts-found {
        padding: 40px 20px;
    }

    .no-posts-found h3 {
        font-size: 1.3rem;
    }

    .no-posts-found p {
        font-size: 1rem;
    }
}

/* ===============================
   Guest Page Styles
   =============================== */

/* Guest Page Container */
.guest-container {
    padding: 40px 20px 60px 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    margin-bottom: 0;
    position: relative;
}

/* Ensure proper spacing before footer */
.guest-container::after {
    content: "";
    display: block;
    height: 1px;
    clear: both;
}

/* Fix mobile layout overflow */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .guest-container {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Ensure footer is not affected by guest container background */
.guest-container ~ .footer {
    position: relative;
    z-index: 10;
}

/* Ensure footer is visible on mobile */
@media (max-width: 768px) {
    .guest-container ~ .footer {
        margin-top: 0;
        position: relative;
        z-index: 100;
    }
}

/* Ensure Bootstrap grid works properly */
.guest-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.guest-container .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

.guest-container .col-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Sidebar Navigation */
.sidebar-nav {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.sidebar-nav h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d45b52;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav h4 i {
    color: #d45b52;
}

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

.nav-list li {
    margin-bottom: 5px;
}

.nav-list a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    gap: 12px;
}

.nav-list a:hover {
    background: #d45b52;
    color: white;
    transform: translateX(5px);
}

.nav-list a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-list a.active {
    background: #d45b52;
    color: white;
}

/* Post Form Container */
.post-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-form-container h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d45b52;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-form-container h4 i {
    color: #d45b52;
}

/* Form Styling */
.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #d45b52;
    box-shadow: 0 0 0 0.2rem rgba(212, 91, 82, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

/* Form field spacing */
.post-form-container .mb-3 {
    margin-bottom: 1.5rem !important;
}

.post-form-container .mb-3:last-of-type {
    margin-bottom: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #d45b52 0%, #b84942 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 91, 82, 0.4);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

/* Mobile Responsive for Guest Page */
@media (max-width: 768px) {
    .guest-container {
        padding: 20px 15px 40px 15px;
    }

    /* Stack columns on mobile */
    .guest-container .col-3,
    .guest-container .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .guest-container .col-9:last-child {
        margin-bottom: 0;
    }

    .sidebar-nav {
        margin-bottom: 20px;
        position: static;
        padding: 20px;
    }

    .sidebar-nav h4 {
        font-size: 1.2rem;
    }

    .nav-list a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .post-form-container {
        padding: 20px;
    }

    .post-form-container h4 {
        font-size: 1.3rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .guest-container {
        padding: 15px 10px 30px 10px;
    }

    .sidebar-nav {
        padding: 15px;
    }

    .post-form-container {
        padding: 15px;
    }

    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    .form-label {
        font-size: 13px;
    }

    .post-form-container .mb-3 {
        margin-bottom: 1.2rem !important;
    }
}

/* Single Article List Card Layout */
.articles-list-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.articles-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.article-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    background-color: #f8f9fa;
}

.article-item:first-child {
    padding-top: 20px;
}

.article-item:last-child {
    padding-bottom: 20px;
}

.article-item .article-image {
    flex: 0 0 180px;
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
}

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

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-item .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item .article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.article-item .article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item .article-title a:hover {
    color: #e74c3c;
}

.article-item .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.article-item .article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-item .article-meta i {
    font-size: 11px;
}

.article-separator {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #e0e0e0 10%,
        #e0e0e0 90%,
        transparent 100%
    );
    margin: 0 20px;
}

/* Combined Featured Article with Articles List */
.featured-article-combined {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.featured-article-combined:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Featured Section */
.featured-section {
    position: relative;
}

.featured-section .featured-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.featured-section .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-section:hover .featured-image img {
    transform: scale(1.03);
}

.featured-section .featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.featured-section .category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.featured-section .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
    z-index: 2;
}

.featured-section .featured-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    opacity: 1;
}

.featured-section .featured-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-section .featured-title a:hover {
    color: #f8f9fa;
}

.featured-section .featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

.featured-section .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #ffffff;
}

.featured-section .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
}

.featured-section .article-meta i {
    color: #ffffff;
}

/* Section Separator */
.section-separator {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #e0e0e0 20%,
        #e0e0e0 80%,
        transparent 100%
    );
    margin: 0 30px;
}

/* Articles List Section */
.articles-list-section {
    padding: 0 20px 20px 20px;
}

.articles-list-section .article-item {
    padding: 15px 10px;
}

.articles-list-section .article-item:first-child {
    padding-top: 20px;
}

.articles-list-section .article-item:last-child {
    padding-bottom: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .featured-section .featured-image {
        height: 250px;
    }

    .featured-section .featured-content {
        padding: 20px;
    }

    .featured-section .featured-title {
        font-size: 1.5rem;
    }

    .featured-section .featured-excerpt {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .featured-section .article-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
    }

    .articles-list-section {
        padding: 0 15px 15px 15px;
    }

    .article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 5px;
    }

    .article-item .article-image {
        flex: none;
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .article-item .article-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .article-item .article-meta {
        font-size: 11px;
        gap: 8px;
    }

    .article-separator {
        margin: 0 15px;
    }

    .section-separator {
        margin: 0 15px;
    }

    /* Modal responsive */
    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 15px;
    }

    .close {
        font-size: 24px;
        right: 15px;
    }

    /* Category header mobile */
    .category-header {
        padding: 15px 0;
        padding-left: 15px;
        margin-bottom: 25px;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    /* Sidebar mobile adjustments */
    .sidebar-widget {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 1rem;
        padding: 12px 15px;
    }

    /* Grid adjustments for mobile */
    .row {
        margin: 0;
    }

    .col-lg-9,
    .col-md-8 {
        padding: 0 10px;
    }

    .col-lg-3,
    .col-md-4 {
        padding: 0 10px;
        margin-top: 30px;
    }
}
