.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: var(--bs-nav-tabs-link-active-color);
    background-color: var(--bs-nav-tabs-link-active-bg);
    border-color: var(--bs-nav-tabs-link-active-border-color);
    border-bottom: 2px solid #333;
    font-weight: bold;
}
.nav-tabs .nav-link {
    background: 0 0;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    color: #999;
}
.entry .table td, .entry .table th { padding: 15px !important; }
.tab-pane p { text-align: justify; }
.breaking-news-ticker { border-radius: 0px !important; }
.blog .entry .entry-content p {
    line-height: 30px;
    text-align: justify;
}

/* ==========================================
   BERITA BIDANG KERJASAMA SECTION STYLING
   ========================================== */
#news {
    padding: 60px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

#news .container {
    max-width: 1200px;
    padding: 0 15px;
}

#news .section-title h2 {
    color: #2c4964;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

#news .section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: #49b5e7;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Card Styling */
#news .swiper-slide {
    height: auto;
    padding: 10px;
}

#news .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

#news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure all cards have same height */
#news .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#news .card-title {
    flex: 1;
    margin-bottom: 12px;
}

/* Card Image */
#news .card-img-top {
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    aspect-ratio: 16/9;
}

#news .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Card Body */
#news .card-body {
    padding: 20px;
}

#news .card-title {
    margin-bottom: 12px;
}

#news .card-title a {
    color: #2c4964;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none;
}

#news .card-title a:hover {
    color: #49b5e7;
}

#news .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Card Footer */
#news .card-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

#news .btn-get-started {
    background: #49b5e7;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #49b5e7;
}

#news .btn-get-started:hover {
    background: #fff;
    color: #49b5e7;
    transform: translateY(-2px);
}

/* Author and Date */
#news .small {
    font-size: 0.8rem;
    color: #6c757d;
}

#news .small i {
    color: #49b5e7;
    margin-right: 5px;
}

/* Swiper Navigation */
#news .swiper {
    padding: 10px 0 40px;
}

#news .swiper-button-next,
#news .swiper-button-prev {
    color: #49b5e7;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#news .swiper-button-next:hover,
#news .swiper-button-prev:hover {
    background: #49b5e7;
    color: #fff;
}

#news .swiper-button-next::after,
#news .swiper-button-prev::after {
    font-size: 1.2rem;
}

/* Swiper Pagination */
#news .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d1d1;
    opacity: 1;
}

#news .swiper-pagination-bullet-active {
    background: #49b5e7;
    width: 25px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    #news .card-title a {
        font-size: 1.1rem;
    }
    
    #news .card-img-top {
        height: 180px;
    }
}

@media (max-width: 991.98px) {
    #news .section-title h2 {
        font-size: 2rem;
    }
    
    #news .card-img-top {
        height: 160px;
    }
    
    #news .card-title a {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    #news {
        padding: 40px 0;
    }
    
    #news .section-title h2 {
        font-size: 1.8rem;
    }
    
    #news .card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    #news .swiper-button-next,
    #news .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 575.98px) {
    #news .section-title h2 {
        font-size: 1.6rem;
    }
    
    #news .card-img-top {
        height: 200px;
    }
    
    #news .card-body {
        padding: 15px;
    }
    
    #news .card-title a {
        font-size: 1.1rem;
    }
    
    #news .btn-get-started {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* Style for article detail page */
.entry .entry-img img,
.entry-content img,
.entry-content figure img,
.entry-content .wp-caption img,
.entry-single .card-img-top,
.entry-single img[class*='img-'],
.entry-single .img-fluid,
.entry-single .wp-post-image {
    border-radius: 1rem !important;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    display: block;
}

/* Ensure images inside article content have proper spacing */
.entry-content p img,
.entry-content p .img-fluid {
    margin: 1.5rem auto !important;
}

/* Style for article featured image */
.entry-img {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.entry-img img,
.entry-single .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem !important;
}

/* Force rounded corners on all article images */
.entry-single img:not([style*='border-radius']) {
    border-radius: 1rem !important;
}

/* Ensure images in article content maintain aspect ratio */
.entry-content img {
    height: auto;
    max-width: 100%;
    display: block;
}

/* Carousel Styles */
.carousel {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    border-radius: 1rem;
    overflow: hidden;
}

/* Make sure all carousel items have the same rounded corners */
.carousel-item {
    transition: transform 0.6s ease-in-out;
    border-radius: 1rem;
    overflow: hidden;
}

/* Make sure all images in carousel have rounded corners */
.carousel-item img {
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure active and adjacent slides maintain rounded corners */
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev,
.carousel-item-start,
.carousel-item-end {
    border-radius: 1rem;
    overflow: hidden;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Carousel indicators */
.carousel-indicators {
    bottom: 15px;
    margin: 0;
    padding: 0 1rem;
    justify-content: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: #fff;
}

/* Fix for carousel image corners - ensure all sides are rounded */
.carousel-inner > .carousel-item > img,
.carousel-inner > .carousel-item > a > img {
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure the carousel fills its container */
.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

/* Fix for the carousel when it's inside a card */
.card .carousel {
    border-radius: 1rem 1rem 0 0;
}

.card .carousel-inner,
.card .carousel-item,
.card .carousel-item img {
    border-radius: 1rem 1rem 0 0 !important;
}

/* Gallery Section Styling */
.section-galeri {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c4964;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: #49b5e7;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.--container-card-galeri-landingpage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.--wrapper-card-galeri-landingpage {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.--photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px;
    height: 200px;
    overflow: hidden;
}

.--large-card {
    grid-row: span 2;
    height: 100%;
    overflow: hidden;
}

.--large-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 0 0 0;
    transition: transform 0.3s ease;
}

.--small-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.--small-card-item {
    height: 50%;
    overflow: hidden;
}

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

.--small-card-item:first-child img {
    border-radius: 0 1rem 0 0;
}

.--small-card-item:last-child img {
    border-radius: 0 0 1rem 0;
}

.--wrapper-card-galeri-landingpage:hover .--large-card img,
.--wrapper-card-galeri-landingpage:hover .--small-card-item img {
    transform: scale(1.05);
}

.--heading {
    font-size: 1.2rem;
    color: #2c4964;
    margin: 15px 15px 5px;
    font-weight: 600;
}

.--description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 15px 15px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .--container-card-galeri-landingpage {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 15px;
    }
    
    .--photo {
        height: 180px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .section-galeri {
        padding: 30px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .--container-card-galeri-landingpage {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .--photo {
        height: 220px;
    }
}
