/*
Theme Name: Kompas Nusantara
Author: Tim Kompas Nusantara
Description: A fast WordPress theme using Bootstrap 5 with modern styling.
Version: 1.1
*/

/* ===== Global Styles ===== */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #222;
    margin: 0;
    padding: 0;
    font-size: clamp(0.9rem, 1vw, 1rem);
    background-color: #f8f9fa;
}

a, a:link, a:visited {
    text-decoration: none;
    color: #20B2AA;
    transition: color 0.3s ease-in-out;
}

a:hover, a:focus {
    color: #008080;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: #008080;
}

/* ===== Navbar ===== */
.custom-navbar {
    background: linear-gradient(90deg, #20B2AA 0%, #008080 100%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
}

.custom-menu .menu-item a {
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.custom-menu .menu-item a:hover {
    color: #FFD700;
}

/* ===== Search Form ===== */
.search-btn:hover {
    background-color: #FFD700;
    color: #008080;
}

/* ===== News Carousel ===== */
.carousel-caption h5 a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.carousel-caption h5 a:hover {
    color: #FFA500;
}

/* ===== News Section ===== */
.sub-news img {
    width: 100%;
    max-width: 269px;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.bg-danger {
    background: linear-gradient(90deg, #20B2AA 0%, #008080 100%) !important;
    color: white;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.sub-news h6 a:hover {
    color: #008080 !important;
}

.news-item .category {
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: bold;
    color: #008080;
    display: block;
    margin-bottom: 2px;
}

.news-item h6 a:hover {
    color: #20B2AA;
}

/* ===== Carousel Navigation ===== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(32, 178, 170, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    height: 100%;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5%;
}

/* ===== Button Styles ===== */
.bg-dark-red {
    background: linear-gradient(90deg, #20B2AA 0%, #008080 100%) !important;
    color: white !important;
    border: none;
    transition: all 0.3s ease-in-out;
}

.bg-dark-red:hover {
    background: linear-gradient(90deg, #008080 0%, #20B2AA 100%) !important;
    color: #fff !important;
}

/* ===== Pagination ===== */
.pagination .page-numbers {
    background-color: #20B2AA;
    border: 1px solid #20B2AA;
    color: white;
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #008080;
    color: white;
    border-color: #008080;
}

.pagination .prev, .pagination .next {
    background-color: #20B2AA;
    color: white;
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #008080;
    color: white;
    border-color: #008080;
}

/* ===== Responsive Styles ===== */
@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
    }
    .carousel-caption p {
        font-size: 12px;
    }
    .news-item img {
        width: 128px;
        height: 90px;
    }
    .sub-news img {
        max-width: 128px;
        height: 72px;
    }
}

@media (min-width: 768px) {
    .news-item img {
        width: 229px; 
        height: 128px;
    }
    .sub-news img {
        max-width: 269px;
        height: 151px;
    }
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
}

/* ===== Custom Button Styles ===== */
.bg-tosca {
    background: linear-gradient(90deg, #20B2AA 0%, #008080 100%) !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-tosca:hover {
    background: linear-gradient(90deg, #008080 0%, #20B2AA 100%) !important;
    color: #fff !important;
}
