/* Landing Page CSS */
:root {
    --primary-red: #03045E;
    --primary-dark: #023E8A;
    --primary-blue: #0077B6;
    --info-dark: #0096C7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Remove underline from all links globally */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Ensure no underline on heading links */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none !important;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: none !important;
}

/* Ensure no underline on card title links */
.card-title a,
.news-card-title a,
.news-title a,
.article-title a {
    text-decoration: none !important;
}

.card-title a:hover,
.news-card-title a:hover,
.news-title a:hover,
.article-title a:hover {
    text-decoration: none !important;
}

html {
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.top-header {
    background: var(--primary-red);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.top-header a {
    color: white;
    text-decoration: none;
}

.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 45px;
    margin-right: 0.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.search-box input {
    border: 1px solid var(--border-light);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    width: 100%;
    font-size: 0.9rem;
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
}

/* ========== NAVIGATION ========== */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    position: relative;
    z-index: 10000;
}

.main-nav .container {
    overflow: visible;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-red);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    z-index: 99999;
}

.nav-dropdown .dropdown-toggle {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown .dropdown-toggle:hover {
    color: var(--primary-red);
}

.nav-dropdown .dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

/* Hamburger Menu Toggle */
/* Hamburger Toggle Button - Bootstrap Style */
.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    width: 40px;
    height: 36px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Active state animation */
.navbar-toggler.active .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 99999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav-menu.show {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--primary-red);
    color: #fff;
}

.mobile-nav-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-list li a {
    display: block;
    padding: 0.9rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: var(--bg-light);
    color: var(--primary-red);
    padding-left: 1.5rem;
}

.mobile-nav-list li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-red);
}

.mobile-nav-divider {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-gray);
    background: var(--bg-light);
}

/* Mobile/Tablet - Show Hamburger, Hide Desktop Nav */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
        margin: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .mobile-nav-overlay,
    .mobile-nav-menu {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .main-nav .container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .main-header .col-md-4 {
        display: flex !important;
        align-items: center;
        justify-content: center; /* Keep logo centered on mobile */
        flex: 0 0 auto;
    }
    
    .main-header .col-md-8 {
        flex: 1;
    }
    
    .header-right {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
    }
    
    .search-box {
        display: none; /* Hide search on mobile */
    }
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: var(--bg-white);
    margin: 0.5rem 0 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Carousel Styles */
.carousel-inner {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.carousel-slide {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.carousel-category-badge {
    background: #dc3545;
    color: white;
    letter-spacing: 1px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 4px;
}

.carousel-title {
    font-size: 2.2rem;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    color: white;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

.carousel-title a:hover {
    color: rgba(255,255,255,0.9);
}

.carousel-meta {
    font-size: 1rem;
    color: white;
}

.carousel-meta-item {
    margin-right: 1.25rem;
}

/* Sidebar Styles */
.sidebar-wrapper {
    position: relative;
    z-index: 15;
    background: var(--bg-white);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar {
    position: relative;
    z-index: 16;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* Content Container */
.content-container {
    position: relative;
    z-index: 10;
    background: white;
    margin-top: 1rem;
}

.content-main {
    position: relative;
    z-index: 11;
    background: var(--bg-white);
    border-radius: 12px 0 0 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-section-wrapper {
    position: relative;
    z-index: 12;
}

/* No Image Placeholder */
.no-image-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder i {
    color: #d1d5db;
}

.clear-section {
    clear: both;
}

.hero-badge {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news {
    padding: 2rem;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.featured-news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-title a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.featured-news-excerpt {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-news-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0;
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 2rem;
    height: fit-content;
    border: none;
    transition: none;
}

.sidebar:hover {
    box-shadow: none;
    transform: none;
}

.sidebar:last-child {
    margin-bottom: 0;
}

/* Sidebar Terpopuler Wrapper - Full border radius karena posisinya di atas */
.sidebar-trending-wrapper {
    position: relative;
    z-index: 15;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.sidebar-trending-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-trending-wrapper .sidebar {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    border-radius: 2px;
}

/* BMKG Earthquake Widget */
.sidebar-bmkg-widget {
    position: relative;
    z-index: 15;
}

.bmkg-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.bmkg-widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bmkg-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.bmkg-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.bmkg-title i {
    color: #0077b6;
}

.bmkg-content {
    padding: 1rem 1.25rem;
}

.bmkg-loading {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
}

.bmkg-map-container {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bmkg-magnitude {
    text-align: center;
    margin-bottom: 1rem;
}

.bmkg-magnitude .mag-value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.bmkg-magnitude .mag-value.mag-low {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.bmkg-magnitude .mag-value.mag-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

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

.bmkg-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.85rem;
}

.bmkg-info-item:last-child {
    border-bottom: none;
}

.bmkg-info-item i {
    width: 16px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.bmkg-info-item .info-label {
    color: #6b7280;
    flex-shrink: 0;
}

.bmkg-info-item .info-value {
    color: #1f2937;
    font-weight: 500;
}

.bmkg-footer {
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.bmkg-footer a {
    color: #0077b6;
    font-weight: 600;
}

.bmkg-footer a:hover {
    text-decoration: underline !important;
}

.bmkg-error {
    text-align: center;
    padding: 1.5rem;
    color: #dc2626;
}

.bmkg-error i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Gili Carano Sidebar */
.gili-carano-wrapper {
    position: relative;
    margin-top: -25px; /* Negative margin agar ujung foto yang menonjol sejajar dengan card artikel */
    margin-bottom: 2rem;
}

.gili-carano-personal-image {
    position: absolute;
    top: -70px; /* Foto menonjol keluar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 140px;
    height: 140px;
}

.gili-carano-personal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #03045E 0%, #0077B6 100%);
}

.gili-carano-sidebar {
    background: linear-gradient(135deg, #03045E 0%, #0077B6 100%);
    color: white;
    margin-top: 0;
    position: relative;
    overflow: visible;
    padding-top: 80px !important; /* Space for the image */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(3, 4, 94, 0.3);
    z-index: 1;
}

.gili-carano-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-radius: 12px;
    pointer-events: none;
}

.gili-carano-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.gili-carano-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gili-carano-title i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gili-carano-sidebar .gili-carano-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.gili-carano-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.gili-carano-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    color: #1f2937 !important;
}

/* Nama Pengasuh Rubrik */
.gili-carano-author {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 0.75rem 1rem;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.gili-carano-author .author-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.gili-carano-author .author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gili-carano-sidebar .sidebar-title {
    color: white;
    border-bottom-color: #F59E0B;
}

.gili-carano-content {
    text-align: center;
}

.gili-carano-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gili-carano-sidebar .btn-primary {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #1f2937;
    font-weight: 600;
}

.gili-carano-sidebar .btn-primary:hover {
    background: #D97706;
    border-color: #D97706;
}

.trending-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.trending-item:hover {
    background: white;
    border-color: var(--primary-red);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    transform: translateX(5px);
}

.trending-item:last-child {
    margin-bottom: 0;
}

.trending-number {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-thumbnail {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.trending-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-thumbnail:hover::after {
    opacity: 1;
}

.trending-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-thumbnail:hover img {
    transform: scale(1.15);
}

.trending-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trending-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.trending-content h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
}

.trending-content h4 a:hover {
    color: var(--primary-red);
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trending-meta i {
    color: var(--primary-red);
}

/* ========== NEWS GRID ========== */
.news-section {
    margin: 0 0 2rem 0;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.view-all-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.25rem;
}

.news-card-category {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.news-card-title a {
    color: #1a1a2e;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--primary-red);
    text-decoration: none !important;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== CATEGORY SECTIONS ========== */
.category-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.category-header {
    background: var(--primary-red);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-content {
    padding: 1.5rem;
}

.category-news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

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

.category-news-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.category-news-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.category-news-content h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-news-content h4 a:hover {
    color: var(--primary-red);
}

.category-news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== FOOTER ========== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    margin-bottom: 0.5rem;
}

.footer-content ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-content ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #e5e7eb;
    font-size: 0.8rem;
    margin: 0;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Empty Category Placeholder */
.empty-category-placeholder {
    color: #6b7280;
}

.empty-category-placeholder i {
    opacity: 0.3;
}

/* Carousel Slide Image */
.carousel-slide-image {
    object-fit: cover;
}

/* ========== LAW FIRM SECTION ========== */
.law-firm-section {
    position: relative;
    margin: 1rem 0;
    min-height: 300px;
    border-radius: 16px;
    padding: 1.75rem 3rem;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.law-firm-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.law-firm-background.gradient {
    background: var(--gradient, linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%));
}

.law-firm-background.image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.law-firm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    z-index: 1;
}

.law-firm-row {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.law-firm-content {
    position: relative;
    padding: 1rem 0;
    color: white;
    z-index: 2;
}

.law-firm-header {
    margin-bottom: 1rem;
}

.law-firm-logo {
    margin-bottom: 1rem;
}

.law-firm-logo img {
    height: 80px;
    width: auto;
}

.law-firm-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.law-firm-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.law-firm-main-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.law-firm-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.law-firm-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 600px;
    color: rgba(255,255,255,0.95);
}

.law-firm-news {
    position: relative;
    z-index: 2;
}

.law-firm-news-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.law-firm-news-item:hover {
    transform: translateY(-2px);
}

.law-firm-news-image {
    height: 60px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.law-firm-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.law-firm-news-title a {
    color: #1f2937;
    text-decoration: none;
}

.law-firm-news-title a:hover {
    color: var(--primary-red);
}

.law-firm-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ========== KABA CARANO GALLERY SECTION ========== */
.kaba-carano-section {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.kaba-carano-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

.kaba-carano-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Horizontal Layout (Left/Right) */
.kaba-header-horizontal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.kaba-header-horizontal.kaba-position-left {
    justify-content: flex-start;
}

.kaba-header-horizontal.kaba-position-right {
    justify-content: flex-end;
}

.kaba-icon-container {
    flex-shrink: 0;
}

.kaba-text-container {
    flex-grow: 1;
}

.kaba-text-container .kaba-carano-title {
    margin-bottom: 0.5rem;
}

.kaba-text-container .kaba-carano-subtitle {
    margin: 0;
}

.kaba-carano-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kaba-carano-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Icon Custom Styles */
.kaba-icon-custom {
    height: auto;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.kaba-icon-wrapper,
.kaba-icon-wrapper-center {
    display: inline-block;
}

.kaba-icon-wrapper-center {
    width: 100%;
    text-align: center;
}

.kaba-icon-wrapper-center .kaba-icon-custom {
    display: block;
    margin: 0 auto;
}

/* Icon Position Adjustments */
.kaba-icon-position-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.kaba-icon-position-center .kaba-title-text {
    display: block;
}

/* Responsive Horizontal Layout */
@media (max-width: 768px) {
    .kaba-header-horizontal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .kaba-header-horizontal.kaba-position-right {
        flex-direction: column-reverse;
    }
    
    .kaba-text-container {
        text-align: center;
    }
}

/* Responsive Icon Size */
@media (max-width: 768px) {
    .kaba-icon-custom {
        max-width: 250px !important;
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .kaba-icon-custom {
        max-width: 180px !important;
        width: auto !important;
    }
}

.kaba-carano-slider-wrapper {
    position: relative;
    z-index: 2;
}

.kaba-carano-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 180px;
}

.kaba-carano-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.kaba-carano-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.kaba-carano-item:hover .kaba-carano-image {
    transform: scale(1.1);
}

.kaba-carano-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 3;
    pointer-events: none;
}

.kaba-carano-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kaba-carano-item:hover .kaba-carano-overlay {
    opacity: 1;
}

.kaba-carano-content {
    position: relative;
    z-index: 2;
}

.kaba-carano-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.kaba-carano-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Carousel Controls for Kaba Carano */
#kabaCaranoCarousel .carousel-control-prev,
#kabaCaranoCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#kabaCaranoCarousel:hover .carousel-control-prev,
#kabaCaranoCarousel:hover .carousel-control-next {
    opacity: 1;
}

#kabaCaranoCarousel .carousel-control-prev {
    left: -25px;
}

#kabaCaranoCarousel .carousel-control-next {
    right: -25px;
}

#kabaCaranoCarousel .carousel-control-prev-icon,
#kabaCaranoCarousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

#kabaCaranoCarousel .carousel-indicators {
    margin-bottom: -1rem;
}

#kabaCaranoCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6b7280;
    opacity: 0.5;
}

#kabaCaranoCarousel .carousel-indicators button.active {
    background-color: var(--primary-red);
    opacity: 1;
}

/* Modal Styling for Gallery */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body video,
.modal-body img {
    border-radius: 8px;
    max-height: 70vh;
}

.law-firm-news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.law-firm-news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.law-firm-news-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.4;
}

.law-firm-news-card h4 a {
    color: white;
    text-decoration: none;
}

.law-firm-news-card h4 a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.law-firm-news-card .news-meta {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.law-firm-news-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========== RESPONSIVE ========== */

/* Tablet and below */
@media (max-width: 991px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    /* Top Header Mobile */
    .top-header {
        padding: 0.4rem 0;
        font-size: 0.75rem;
    }
    
    .top-header .row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .top-header .col-md-6,
    .top-header .col-md-3 {
        width: 100%;
    }
    
    .top-header .d-flex {
        justify-content: center !important;
    }
    
    .top-header .text-end,
    .top-header .text-md-end {
        text-align: center !important;
    }
    
    /* Main Header Mobile */
    .main-header {
        padding: 0.75rem 0;
    }
    
    .main-header .row {
        align-items: center !important;
    }
    
    .main-header .col-md-3,
    .main-header .col-md-4,
    .main-header .col-md-6,
    .main-header .col-md-8 {
        width: 50%;
        display: flex;
        align-items: center;
    }
    
    .main-header .col-6:first-child {
        justify-content: flex-start;
    }
    
    .main-header .col-6:last-child {
        justify-content: flex-end;
    }
    
    .site-logo {
        justify-content: flex-start;
    }
    
    .site-logo img {
        height: 36px;
        margin-right: 0;
    }
    
    .search-box {
        display: none;
    }
    
    .header-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Hero/Featured Section Mobile */
    .hero-section {
        margin: 0.5rem 0 0.5rem 0;
        border-radius: 8px;
    }
    
    .carousel-slide {
        height: 350px !important;
    }
    
    .carousel-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    .carousel-overlay {
        padding: 15px 15px 15px !important;
    }
    
    /* Sidebar wrapper - Tablet styling */
    .sidebar-wrapper {
        padding: 1.25rem;
        border-radius: 0 10px 10px 0;
    }
    
    /* Sidebar - Reduce top margin */
    .sidebar {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
    
    /* Sidebar Terpopuler Wrapper - Tablet */
    .sidebar-trending-wrapper {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .carousel-meta {
        font-size: 0.75rem !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .carousel-meta-item {
        margin-right: 0.75rem !important;
    }
    
    .carousel-category-badge {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .featured-news-title {
        font-size: 1.3rem;
    }
    
    .featured-news-excerpt {
        font-size: 0.9rem;
    }
    
    /* News Cards Mobile */
    .news-card img {
        height: 180px;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-card .card-title {
        font-size: 0.95rem;
    }
    
    .news-card .card-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-meta {
        font-size: 0.75rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Category News Mobile */
    .category-news-item {
        flex-direction: column;
    }
    
    .category-news-image {
        width: 100%;
        height: 150px;
    }
    
    .category-news-title {
        font-size: 0.95rem;
    }
    
    /* Law Firm Section Mobile */
    .law-firm-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .law-firm-row {
        flex-direction: column;
    }
    
    .law-firm-row .col-lg-6 {
        width: 100%;
        text-align: center;
    }
    
    .law-firm-content {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .law-firm-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .law-firm-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .law-firm-logo img {
        height: 60px;
        width: auto;
    }
    
    .law-firm-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .law-firm-main-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .law-firm-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .law-firm-subtitle {
        font-size: 1rem;
    }
    
    .law-firm-news {
        margin-top: 1.5rem;
    }
    
    .law-firm-news-item {
        padding: 0.75rem;
    }
    
    .law-firm-news-image {
        height: 50px;
    }
    
    .law-firm-news-title {
        font-size: 0.85rem;
    }
    
    .law-firm-news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar Mobile */
    .col-lg-4 {
        margin-top: 2rem;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding-top: 2rem;
    }
    
    .footer-content {
        padding: 1.5rem 0;
    }
    
    .footer-content .row {
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        display: flex;
        gap: 1rem;
    }
    
    .footer-title {
        margin-top: 1.5rem;
        font-size: 1rem;
    }
    
    .footer-links {
        padding-left: 0;
        list-style: none;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 0.5rem !important;
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        min-height: 48px;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Gili Carano Mobile */
    .gili-carano-wrapper {
        margin-top: -15px;
        margin-bottom: 1.5rem;
    }
    
    .gili-carano-personal-image {
        width: 100px;
        height: 100px;
        top: -50px;
    }
    
    .gili-carano-personal-image img {
        border-width: 3px;
    }
    
    .gili-carano-sidebar {
        padding-top: 60px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 3.5rem !important;
        border-radius: 10px;
    }
    
    .gili-carano-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .gili-carano-title i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .gili-carano-sidebar .gili-carano-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .gili-carano-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .gili-carano-author {
        padding: 0.5rem 0.75rem;
    }
    
    .gili-carano-author .author-title {
        font-size: 0.65rem;
    }
    
    .gili-carano-author .author-name {
        font-size: 0.8rem;
    }
}

/* Small Mobile devices (< 576px) */
@media (max-width: 575px) {
    .top-header .d-flex.gap-3,
    .top-header .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .site-logo img {
        height: 36px;
    }
    
    .news-card img {
        height: 150px;
    }
    
    .carousel-slide {
        height: 300px !important;
    }
    
    .carousel-title {
        font-size: 1rem !important;
    }
    
    .carousel-meta-item {
        margin-right: 0.5rem !important;
    }
    
    .col-md-6.mb-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .law-firm-section {
        padding: 1.25rem 0.75rem;
    }
    
    .law-firm-logo img {
        height: 50px;
    }
    
    .law-firm-title {
        font-size: 1rem;
    }
    
    .law-firm-main-title {
        font-size: 0.9rem;
    }
    
    .law-firm-description {
        font-size: 0.8rem;
    }
    
    .law-firm-subtitle {
        font-size: 0.9rem;
    }
    
    .law-firm-news-item {
        padding: 0.5rem;
    }
    
    .law-firm-news-image {
        height: 45px;
    }
    
    .law-firm-news-title {
        font-size: 0.8rem;
    }
    
    /* Gili Carano Small Mobile */
    .gili-carano-wrapper {
        margin-top: -10px;
    }
    
    .gili-carano-personal-image {
        width: 80px;
        height: 80px;
        top: -40px;
    }
    
    .gili-carano-sidebar {
        padding-top: 50px !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: 3rem !important;
    }
    
    .gili-carano-title {
        font-size: 1rem;
    }
    
    .gili-carano-title i {
        font-size: 1.1rem;
    }
    
    .gili-carano-sidebar .gili-carano-description {
        font-size: 0.8rem;
    }

    /* Tags Cloud Mobile */
    .tag-cloud {
        gap: 0.4rem;
    }
    
    .tag-cloud a,
    .tag-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Trending items on small mobile */
    .trending-item {
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .trending-thumbnail {
        width: 50px !important;
        height: 50px !important;
        border-radius: 5px;
    }
    
    .trending-number {
        font-size: 1rem;
        min-width: 20px;
    }
    
    .trending-content h4 {
        font-size: 0.8rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        margin-bottom: 0.3rem;
    }
    
    .trending-meta {
        font-size: 0.65rem;
    }
    
    .sidebar {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    /* Sidebar Terpopuler Wrapper - Small screen */
    .sidebar-trending-wrapper {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .sidebar-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* ========== LANDING PAGE MOBILE FIXES ========== */
/* Override inline styles for mobile */

@media (max-width: 767px) {
    /* Prevent horizontal overflow on mobile */
    .top-header,
    .main-header,
    .main-nav,
    .container,
    .main-footer {
        max-width: 100vw;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Top Header - force stacking */
    .top-header .container > .row {
        flex-direction: column !important;
    }
    
    .top-header .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
        padding: 0.25rem 0 !important;
    }
    
    .top-header .text-end {
        text-align: center !important;
    }
    
    .top-header .justify-content-end {
        justify-content: center !important;
    }
    
    /* Main Header - force stacking */
    .main-header .container > .row {
        flex-direction: row !important; /* Keep row layout for logo-hamburger */
    }
    
    .main-header .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0.5rem 10px !important;
    }
    
    .main-header .col-6:first-child {
        text-align: left !important; /* Logo ke kiri */
    }
    
    .main-header .col-6:last-child {
        text-align: right !important; /* Hamburger ke kanan */
    }
    
    .main-header .site-logo {
        justify-content: flex-start !important;
    }
    
    .main-header .site-logo img {
        height: 36px; /* Logo lebih kecil di mobile */
    }
    
    .main-header .header-right {
        justify-content: flex-end !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .main-header .search-box {
        display: none !important; /* Hide search di mobile */
    }

    /* Hero Carousel - responsive height */
    .carousel-item .position-relative {
        height: 380px !important;
    }
    
    .carousel-item .position-relative > img {
        height: 100% !important;
    }
    
    /* Carousel overlay content */
    .carousel-item .position-absolute.bottom-0 {
        padding: 20px 15px 15px !important;
    }
    
    .carousel-item .position-absolute h1,
    .carousel-item h1.text-white {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-item .badge.fs-6 {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .carousel-item .d-flex.align-items-center {
        flex-wrap: wrap !important;
        font-size: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .carousel-item .me-4 {
        margin-right: 0.75rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Main content columns */
    .container > .row > .col-lg-8,
    .container > .row > .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* News Cards */
    .news-card .card-body {
        padding: 0.875rem !important;
    }
    
    .news-card .card-title {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .news-card .card-text {
        font-size: 0.8rem !important;
    }
    
    /* Kaba Carano - Tablet */
    .kaba-carano-section {
        padding: 1.25rem;
    }
    
    .kaba-carano-title {
        font-size: 1.75rem;
    }
    
    .kaba-carano-item {
        height: 160px;
    }
    
    #kabaCaranoCarousel .carousel-control-prev {
        left: -15px;
    }
    
    #kabaCaranoCarousel .carousel-control-next {
        right: -15px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 576px) {
    /* Hero Section - Reduce margin */
    .hero-section {
        margin: 0.25rem 0 0.25rem 0 !important;
    }
    
    /* Sidebar wrapper - Reduce padding on mobile */
    .sidebar-wrapper {
        padding: 1rem !important;
        border-radius: 10px !important;
    }
    
    /* Sidebar - Reduce margin */
    .sidebar {
        margin-top: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Kaba Carano - Mobile */
    .kaba-carano-section {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .kaba-carano-title {
        font-size: 1.5rem !important;
    }
    
    .kaba-carano-subtitle {
        font-size: 0.95rem !important;
    }
    
    .kaba-carano-item {
        height: 140px !important;
    }
    
    .kaba-carano-item-title {
        font-size: 0.85rem !important;
    }
    
    #kabaCaranoCarousel .carousel-control-prev,
    #kabaCaranoCarousel .carousel-control-next {
        display: none !important;
    }
    
    #kabaCaranoCarousel .carousel-indicators {
        margin-bottom: -0.5rem;
    }
    
    /* Sidebar Terpopuler Wrapper - Mobile */
    .sidebar-trending-wrapper {
        padding: 1rem !important;
        border-radius: 10px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Content main - Reduce padding on mobile */
    .content-main {
        padding: 1rem !important;
        border-radius: 10px !important;
    }
    
    /* Sidebar wrapper - Full radius on mobile */
    .sidebar-wrapper {
        border-radius: 10px !important;
    }
    
    /* News section - Reduce margin on mobile */
    .news-section {
        margin: 0 0 1rem 0 !important;
    }
    
    /* Category section - Reduce border radius on mobile */
    .category-section {
        border-radius: 10px !important;
        margin-bottom: 1rem !important;
    }
    
    .news-card .card-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-section h1,
    .carousel-item h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .news-meta small {
        font-size: 0.7rem !important;
    }
    
    /* Section titles */
    .border-bottom.border-primary h2,
    h2.border-bottom {
        font-size: 1.1rem !important;
    }
    
    /* Footer columns stacking */
    .main-footer .col-lg-4,
    .main-footer .col-lg-2,
    .main-footer .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-links {
        text-align: center !important;
    }
}

/* Tablet specific (576px - 991px) */
@media (min-width: 576px) and (max-width: 991px) {
    .carousel-item .position-relative {
        height: 450px !important;
    }
    
    .carousel-item .position-relative > img {
        height: 100% !important;
    }
}

@media (max-width: 575px) {
    /* Extra small screens */
    .carousel-item .position-relative {
        height: 320px !important;
    }
    
    .carousel-item .position-relative > img {
        height: 100% !important;
    }
    
    .carousel-slide {
        height: 280px !important;
    }
    
    .carousel-title {
        font-size: 0.95rem !important;
    }
    
    .carousel-meta {
        font-size: 0.65rem !important;
    }
    
    .carousel-category-badge {
        font-size: 0.55rem !important;
        padding: 3px 6px !important;
    }
    
    .news-card img,
    .card-img-top {
        height: 140px !important;
    }
    
    .site-logo img {
        height: 36px !important;
    }
    
    /* Hide views count on very small screens */
    .carousel-meta > div:last-child {
        display: none !important;
    }
}

/* Mobile Font Size Override - Final */
@media screen and (max-width: 768px) {
    /* Hero and carousel titles */
    .hero-section h1,
    .carousel-item h1,
    .carousel-caption h1,
    .carousel-item .position-absolute h1 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
    
    /* News card titles */
    .news-card h5,
    .news-card .card-title,
    .card .card-title,
    .news-grid .card-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    /* Section headings */
    h2.section-title,
    .section-title,
    h2.border-bottom,
    .border-bottom.border-primary h2 {
        font-size: 1.2rem !important;
    }
    
    /* Trending item responsive */
    .trending-item {
        gap: 0.5rem;
        padding: 0.65rem;
        margin-bottom: 0.75rem;
    }
    
    .trending-thumbnail {
        width: 55px !important;
        height: 55px !important;
    }
    
    .trending-number {
        font-size: 1.1rem;
        min-width: 22px;
    }
    
    .trending-content h4 {
        font-size: 0.85rem;
        line-height: 1.35;
        margin-bottom: 0.3rem;
    }
    
    .trending-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    /* Sidebar styling on mobile */
    .sidebar {
        border-radius: 0;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    /* Sidebar Terpopuler Wrapper - Mobile/Tablet */
    .sidebar-trending-wrapper {
        padding: 1.25rem;
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
        letter-spacing: 0.8px;
        margin-bottom: 1.25rem;
    }
    
    .sidebar-title::after {
        width: 50px;
        height: 3px;
    }
}