/* Remove gaps between sections */
body {
    margin: 0;
    padding: 0;
}

/* Hero Section - MENGGUNAKAN CSS VARIABLES */
.news-hero-section {
    position: relative;
    overflow: hidden;
    margin-top: -100px !important;
    padding-top: 120px !important;
    min-height: 50vh;
    background: url('/images/Background1.jpg') no-repeat top center !important;
    background-size: cover !important;
    background-attachment: fixed;
}

.news-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color); /* Menggunakan CSS variable, bukan warna hardcode */
    opacity: 5; /* Transparansi untuk efek overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.min-vh-40 {
    min-height: 40vh;
    display: flex;
    align-items: center;
}

/* Navigation Tabs */
.nav-pills .nav-link {
    color: #6b7280;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    transform: translateY(-1px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-color: #1976d2;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-secondary); /* sebelumnya #6b7280 */
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-color); /* sebelumnya #2196f3 */
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-hover); /* sebelumnya #1976d2 */
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary); /* sebelumnya #6b7280 */
    font-weight: 500;
}

.breadcrumb-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

/* Card Hover Effects */
.bg-white {
    transition: all 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Icon Circles */
.rounded-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Text Styling */
.content-text p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-text .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #2d3748;
}

/* Override Bootstrap default margins */
section {
    margin-bottom: 0 !important;
}

.container-fluid,
.container {
    padding-top: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero-section {
        margin-top: -80px !important;
        padding-top: 100px !important;
        min-height: 35vh;
    }
    
    .hero-content {
        padding: 40px 0;
        min-height: 30vh;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .nav-pills {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .rounded-circle {
        width: 50px;
        height: 50px;
    }
    
    .rounded-circle i {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .news-hero-section {
        margin-top: -70px !important;
        padding-top: 90px !important;
        min-height: 30vh;
    }
    
    .hero-content {
        padding: 30px 0;
        min-height: 25vh;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content .lead {
        font-size: 1rem !important;
    }
    
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Custom Utilities */
.text-justify {
    text-align: justify;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Badge Styling for Misi */
.badge {
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge.bg-warning {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}
.badge.bg-danger {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Fix gap issues */
body > .container,
body > .container-fluid,
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Navbar spacing fix */
.navbar {
    margin-bottom: 0 !important;
}

/* First section after navbar */
body section:first-of-type,
main section:first-of-type {
    margin-top: 0 !important;
}

.struktur-img {
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.struktur-img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Responsive untuk gambar */
@media (max-width: 768px) {
    .struktur-img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Modal untuk preview gambar besar */
.struktur-img {
    cursor: zoom-in;
}

/* News Card Title Color on Hover */
.news-card:hover .news-title {
    color: var(--primary-color); /* sebelumnya #3b82f6 */
}

/* Pagination Styling */
.pagination .page-link {
    color: var(--primary-color); /* sebelumnya #3b82f6 */
    border-color: var(--border-color);
}
.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Text Color Utilities */
.text-danger {
    color: var(--primary-color) !important;
}