/* component */

body {
    font-family: "Roboto", sans-serif;
    background-color: white;
}

.btn-blue {
    background-color: #1F5587;
    color: white;
}

.bg-blue {

    background-color: #1F5587;
}

.text-blue {
    color: #1F5587;
}

.bg-gray {
    background-color: #D2C9C9;
}

.bg-semi-gray {
    background-color: #D9D9D9;
}

.text-sm {
    font-size: 10px;
}

/* end component */

/* Modern Book Cards */
.modern-book-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31, 85, 135, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(31, 85, 135, 0.1);
    height: 320px;
    display: flex;
    flex-direction: column;
}

.modern-book-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(31, 85, 135, 0.2);
    border-color: rgba(31, 85, 135, 0.3);
}

/* Book Image Container */
.book-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background-color: #f8f9fa;
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    background-color: #f8f9fa;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 85, 135, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.modern-book-card:hover .book-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.overlay-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Book Info */
.book-info {
    padding: 15px;
    text-align: center;
}

.book-title {
    font-weight: 700;
    color: #1F5587;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-author {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.book-link {
    text-decoration: none;
    color: inherit;
}

.book-link:hover {
    text-decoration: none;
    color: inherit;
}

.modern-book-card:hover .card-img-top {
    transform: scale(1.05);
}

.modern-book-card .card-body {
    padding: 20px;
    position: relative;
}

.modern-book-card .card-title {
    font-weight: 700;
    color: #1F5587;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: capitalize;
}

.modern-book-card .text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.modern-book-card .btn-outline-primary {
    border: 2px solid #1F5587;
    color: #1F5587;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.modern-book-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, #1F5587 0%, #0d4270 100%);
    border-color: #1F5587;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 85, 135, 0.3);
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-weight: 800;
    color: #1F5587;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1F5587 0%, #0d4270 100%);
    border-radius: 2px;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Pills */
.category-pill {
    background: linear-gradient(135deg, #1F5587 0%, #0d4270 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(31, 85, 135, 0.3);
}

.category-pill:hover {
    background: linear-gradient(135deg, #0d4270 0%, #1F5587 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 85, 135, 0.4);
}

/* Category Pills for "New" books */
.category-pill-new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    animation: pulse-new 2s ease-in-out infinite;
}

@keyframes pulse-new {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* News Cards */
.news-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31, 85, 135, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(31, 85, 135, 0.1);
    height: 400px;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 85, 135, 0.2);
    border-color: rgba(31, 85, 135, 0.3);
}

.news-card .card-img-top {
    height: 160px;
    object-fit: contain;
    transition: all 0.4s ease;
    border-radius: 20px 20px 0 0;
    width: 100%;
    background-color: #f8f9fa;
}

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

.news-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 160px);
}

.news-card .card-title {
    font-weight: 700;
    color: #1F5587;
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1;
}

.news-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card .btn-primary {
    background: linear-gradient(135deg, #1F5587 0%, #0d4270 100%);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.news-card .btn-primary:hover {
    background: linear-gradient(135deg, #0d4270 0%, #1F5587 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 85, 135, 0.3);
}

/* News Container */
.news-container {
    position: relative;
    padding: 50px 0;
}

/* News Navigation */
.news-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.news-navigation .btn {
    background: linear-gradient(135deg, #1F5587 0%, #0d4270 100%);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.news-navigation .btn:hover {
    background: linear-gradient(135deg, #0d4270 0%, #1F5587 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 85, 135, 0.3);
}

.news-navigation .btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .modern-book-card {
        height: 280px;
    }

    .book-image-container {
        height: 160px;
    }

    .news-card {
        height: 350px;
    }

    .news-card .card-img-top {
        height: 130px;
        object-fit: contain;
    }

    .category-pill {
        font-size: 0.7rem;
        padding: 6px 15px;
    }

    .news-navigation {
        flex-direction: column;
        align-items: center;
    }
}

/* Enhanced Modern Navbar */
.bg-transparent {
    display: block;
    background: linear-gradient(135deg, rgba(31, 85, 135, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(31, 85, 135, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-transparent.scrolled {
    background: linear-gradient(135deg, #1F5587 0%, #0d4270 100%);
    box-shadow: 0 8px 32px rgba(31, 85, 135, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Navbar Brand */
.navbar-brand {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    max-height: 50px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

/* Enhanced Nav Items */
.navbar-nav {
    align-items: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 12px 20px !important;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-item a:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

.nav-item a:hover {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Enhanced Dropdown */
.dropdown-menu {
    background: rgba(31, 85, 135, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(31, 85, 135, 0.3);
    margin-top: 10px;
    padding: 10px;
    min-width: 200px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateX(5px);
}

/* Enhanced Login/Logout Button */
.btn-shadow {
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 25px !important;
    transition: all 0.4s ease;
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-shadow:hover::before {
    opacity: 1;
}

.btn-shadow:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Enhanced Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Active State Enhancement */
.nav-item .active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .bg-transparent {
        background: linear-gradient(135deg, rgba(31, 85, 135, 0.98) 0%, rgba(0, 0, 0, 0.9) 100%);
    }

    .navbar-collapse {
        background: rgba(31, 85, 135, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-item a {
        margin: 5px 0;
        text-align: center;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .nav-item a {
        font-size: 0.9rem;
        padding: 10px 15px !important;
    }
}

/* Animation Effects */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-transparent {
    animation: navSlideIn 0.6s ease-out;
}

/* end navbar */

/* banner style */
.nav-text h3 {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    padding-top: 15%;
    color: white;
    font-weight: 500;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.56);
}

.banner-desc {
    height: 50px;
}

.small {
    font-size: 12px;
    text-align: center;
}

.banner-icon {
    background-color: #e5efe7ef;
    border: none;
    width: 18rem;
}

.banner-icon i {
    font-size: 60px;
    color: #699BF7;
    text-align: center;
}

.banner-wrap {
    position: relative;
    z-index: 11;
    margin-top: 30px;
    animation: slideInUp 0.8s ease-out;
}

.fa-solid.fa-arrow-right {
    font-size: 20px;
    color: white;
}

/* banner hover */
.banner-icon:hover {
    background-color: #1f5587c5;
    color: white;
}

.banner-icon:hover i {
    color: white;
}

.banner-icon:hover .btn-blue {
    background-color: #699BF7;
    color: white;
}

.kartu-news {
    width: 25rem;
}

.kartu-news img {
    width: 100%;
    height: 12rem;
    object-fit: contain;
}

/* end banner hover */

/* end banner style */
/* selamat style */

.logo-selamat {
    width: 8rem;
}

.selamat-body .card.mx-3.mt-3 {
    width: 18rem;
    height: 13rem;
    border: none;
}

.selamat-body .card {
    background-color: rgba(255, 255, 255, 0.41);
    color: white;
}

.container-selamat {
    height: 8rem;
}

.selamat-text-kecil {
    font-size: 13px;
}

.covers img {
    width: 250px;
    object-fit: cover;
}

/* end selamat style */

/* pencarian style */
.form-inputs {
    position: relative;
}

.form-inputs .form-control {
    height: 45px;
}

.form-inputs .form-control:focus {
    box-shadow: none;
    border: 1px solid #000;
}

.form-inputs button {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    background: none;
}

.card-subjek {
    width: 100%;
    height: 10rem;
}

.kartu {
    width: 33rem;
}

.card-img-top.img-fluid {
    width: 100%px;
    height: 300px;
    object-fit: cover;
}

.image-border {
    width: 6rem;
    height: 6rem;
}

.image-text h5 {
    font-size: 10px;
}

.image-border img {
    width: 4rem;
    height: 4rem;
}

.kecil {
    font-size: 10px;
}

.foto-visitor {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 100%;
}

.list-pengunjung {
    list-style-type: none;
}

/* end pencarian style */

/* populer */
.book-cover {
    width: 10rem;
    height: 14rem;
}

.cover-img {
    width: 8rem;

}

.cover-img img:hover {
    width: 80%;
}

.cover-title p {
    font-size: 10px;
}

/* end populer */

/* footer */

.col-md-2 ul {
    padding: 0;
}

.col-md-2 ul li {
    list-style-type: none;
}

.col-md-2 ul li a {
    color: black;
    text-decoration: none;
}

.footer-square-3 img {
    width: 5rem;
}

.footer-square-4 ul li {
    font-size: 10px;
}

.col-md-3.col-6.p-0.m-0 img {
    width: 120px;
}

.img-filter {
    filter: grayscale(0.4);
}

.img-filter:hover {
    filter: grayscale(1);
}

/* end footer */
@media only screen and (min-width: 501px) and (max-width: 768px) {
    .book-cover {
        width: 15rem;
        height: 18rem;
        margin: 5px;
    }

    .cover-img {
        width: 10rem;
    }

    .banner-wrap {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .banner-icon {
        background-color: #e5efe7ef;
        border: none;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .kecil {
        font-size: 10px;
    }

    .kartu {
        width: 13rem;
    }

    .kartu-news {
        width: 32rem;
    }

    .kartu-news img {
        width: auto;
        height: 12rem;
        object-fit: cover;
    }
}

/* jika layar > 760px */
@media only screen and (min-width: 0px) and (max-width: 500px) {
    .nav-text h3 {
        padding-top: 15%;
        font-size: medium;
    }

    .kecil-desc {
        font-size: 10px;
        margin-top: 5px;
    }

    .banner-wrap {
        position: relative;
        margin-top: 15px;
    }

    .banner-icon {
        background-color: #e5efe7ef;
        border: none;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .subjek-header h3 {
        font-size: 1rem;
    }

    .book-cover {
        width: 8rem;
        height: 12rem;
        margin: 5px;
    }

    #peta {
        width: 100px;
        height: 100px;
    }

    .cover-img {
        width: 7rem;
    }

    .kecil {
        font-size: 10px;
    }

    .kartu {
        width: 13rem;
    }

    .card-img-top.img-fluid {
        width: 100%px;
        height: 200px;
        object-fit: cover;
    }

    .kartu-news {
        width: 18rem;
    }

    .kartu-news img {
        width: 100%;
        height: 12rem;
        object-fit: contain;
    }


}


/* end layar */


/* carousel style */

#myCarousel {
    margin-top: 50px;
}

/* Enhanced Carousel Styles */
#carouselExampleAutoplaying {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

#carouselExampleAutoplaying .carousel-inner {
    height: 60vh;
    min-height: 400px;
}

#carouselExampleAutoplaying .carousel-item {
    height: 60vh;
    min-height: 400px;
    display: block !important;
}

#carouselExampleAutoplaying .carousel-item > div {
    display: none !important;
}

#carouselExampleAutoplaying .carousel-item img {
    display: block !important;
}

.b-foto {
    height: 60vh !important;
    min-height: 400px;
    width: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block !important;
}

/* Enhanced carousel indicators */
#carouselExampleAutoplaying .carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

#carouselExampleAutoplaying .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#carouselExampleAutoplaying .carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
    background-color: #1F5587;
}

/* Enhanced carousel controls */
#carouselExampleAutoplaying .carousel-control-prev,
#carouselExampleAutoplaying .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(31, 85, 135, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

#carouselExampleAutoplaying .carousel-control-prev:hover,
#carouselExampleAutoplaying .carousel-control-next:hover {
    background: rgba(31, 85, 135, 1);
    transform: translateY(-50%) scale(1.1);
}

#carouselExampleAutoplaying .carousel-control-prev {
    left: 30px;
}

#carouselExampleAutoplaying .carousel-control-next {
    right: 30px;
}

/* Enhanced text overlay */
.nav-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    min-height: 400px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(31, 85, 135, 0.3) 100%);
}

.nav-text h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin: 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

/* Animation keyframe */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Service Cards - More Eye-catching */
.banner-icon {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none !important;
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 85, 135, 0.1);
}

.banner-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1F5587 0%, #699BF7 50%, #1F5587 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.banner-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(31, 85, 135, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.banner-icon:hover::before {
    transform: translateX(0);
}

.banner-icon:hover::after {
    width: 200px;
    height: 200px;
}

.banner-icon:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(31, 85, 135, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
}

/* Enhanced Icons */
.banner-icon > i {
    font-size: 4rem !important;
    background: linear-gradient(135deg, #1F5587 0%, #699BF7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.banner-icon:hover > i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 5px 15px rgba(31, 85, 135, 0.3);
}

/* Enhanced Card Content */
.banner-icon .card-body {
    position: relative;
    z-index: 1;
    padding: 30px 25px;
}

.banner-icon .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F5587;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.banner-icon:hover .card-title {
    color: #0d4270;
    transform: translateY(-2px);
}

.banner-icon .card-text {
    color: #666;
    line-height: 1.7;
    transition: color 0.3s ease;
    margin-bottom: 25px;
}

.banner-icon:hover .card-text {
    color: #555;
}

/* Enhanced Buttons */
.banner-icon .btn-blue {
    background: linear-gradient(135deg, #1F5587 0%, #699BF7 100%);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(31, 85, 135, 0.3);
}

.banner-icon .btn-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.banner-icon .btn-blue:hover::before {
    left: 100%;
}

.banner-icon .btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 85, 135, 0.4);
    background: linear-gradient(135deg, #0d4270 0%, #5a8fd4 100%);
}

.banner-icon .btn-blue i {
    transition: transform 0.3s ease;
}

.banner-icon .btn-blue:hover i {
    transform: translateX(5px);
}

/* Service Cards Animation */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Cards */
.banner-icon:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-icon:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.banner-icon:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Pulse Effect on Load */
.banner-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(31, 85, 135, 0.1);
    }
    50% {
        box-shadow: 0 10px 30px rgba(31, 85, 135, 0.15);
    }
}

.banner-icon:hover {
    animation: none;
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    .banner-icon {
        margin-bottom: 30px;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .banner-icon > i {
        font-size: 3rem !important;
    }

    .banner-icon .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .banner-icon {
        width: 95% !important;
    }

    .banner-icon > i {
        font-size: 2.5rem !important;
    }

    .banner-icon .card-body {
        padding: 25px 20px;
    }
}

/* Override JavaScript carousel modifications */
#carouselExampleAutoplaying .carousel-inner .carousel-item {
    display: none !important;
}

#carouselExampleAutoplaying .carousel-inner .carousel-item.active {
    display: block !important;
}

#carouselExampleAutoplaying .carousel-inner .carousel-item-next,
#carouselExampleAutoplaying .carousel-inner .carousel-item-prev,
#carouselExampleAutoplaying .carousel-inner .carousel-item-start,
#carouselExampleAutoplaying .carousel-inner .carousel-item-end {
    display: block !important;
    transform: none !important;
}

/* Force single image display */
#carouselExampleAutoplaying .carousel-item {
    flex-direction: column !important;
    align-items: stretch !important;
}

#carouselExampleAutoplaying .carousel-item .d-block {
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #carouselExampleAutoplaying,
    #carouselExampleAutoplaying .carousel-inner,
    #carouselExampleAutoplaying .carousel-item,
    .b-foto {
        height: 50vh !important;
        min-height: 350px;
    }

    .nav-text {
        height: 50vh;
        min-height: 350px;
    }

    .nav-text h3 {
        font-size: 2.5rem;
        padding: 0 20px;
    }

    #carouselExampleAutoplaying .carousel-control-prev,
    #carouselExampleAutoplaying .carousel-control-next {
        width: 40px;
        height: 40px;
    }

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

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

    /* Override mobile carousel JavaScript behavior */
    #carouselExampleAutoplaying .carousel-inner .carousel-item > div {
        display: none !important;
    }

    #carouselExampleAutoplaying .carousel-inner .carousel-item > div:first-child {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .nav-text h3 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

/* login */

@import url(https://fonts.googleapis.com/css?family=Roboto:300);

.login-container {
    background-image: url('/img/bg.png');
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-container {
    background-image: url('/img/bg.png');
    width: 100%;
    height: 150vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-page {
    width: 360px;
    padding: 8% 0 0;
    margin: auto;
}

.register-page {
    width: 500px;
    padding: 8% 0 0;
    margin: auto;
}

.form {
    position: relative;
    z-index: 1;
    background: #ffffffc5;
    border-radius: 5%;
    max-width: 500px;
    margin: 0 auto 100px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.form input {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #ffffff;
    width: 100%;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}

.form select {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #ffffff;
    width: 100%;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}

.form button {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    outline: 0;
    width: 50%;
    border: 0;
    padding: 15px;
    color: #FFFFFF;
    font-size: 14px;
    -webkit-transition: all 0.3 ease;
    transition: all 0.3 ease;
    cursor: pointer;
}

.form button:hover,
.form button:active,
.form button:focus {
    background: #4136bc;
}

.form .message {
    margin: 15px 0 0;
    color: #b3b3b3;
    font-size: 12px;
}

.form .message a {
    color: #4CAF50;
    text-decoration: none;
}

.form .register-form {
    display: none;
}

.container:before,
.container:after {
    content: "";
    display: block;
    clear: both;
}

.container .info {
    margin: 50px auto;
    text-align: center;
}

.container .info h1 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 36px;
    font-weight: 300;
    color: #1a1a1a;
}

.container .info span {
    color: #4d4d4d;
    font-size: 12px;
}

.container .info span a {
    color: #000000;
    text-decoration: none;
}

.container .info span .fa {
    color: #EF3B3A;
}

/* end login */

@media (max-width: 768px) {
    .carousel-inner .carousel-item>div {
        display: none;
    }

    .carousel-inner .carousel-item>div:first-child {
        display: block;
    }

    .banner {
        height: 50vh;
    }

    .b-foto {
        height: 50vh;
    }

    .nav-text h3 {
        position: absolute;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        padding-top: 30%;
        color: white;
        font-weight: 500;
        text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.56);
    }

    .kartu {
        width: 20rem;
    }

    .card-img-top.img-fluid {
        width: 100%px;
        height: 200px;
        object-fit: cover;
    }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-start,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

@media (min-width: 768px) {

    .carousel-inner .carousel-item-right.active,
    .carousel-inner .carousel-item-next,
    .carousel-item-next:not(.carousel-item-start) {
        transform: translateX(25%) !important;
    }

    .carousel-inner .carousel-item-left.active,
    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start,
    .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-25%) !important;
    }

    .carousel-item-next.carousel-item-start,
    .active.carousel-item-end {
        transform: translateX(0) !important;
    }

    .carousel-inner .carousel-item-prev,
    .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-25%) !important;
    }

}

/* end carousel style */


/* skeleton berita */

.content {
    height: 130vh;
}

.kotak-full {
    width: 100%;
    border-radius: 30px;
    height: 300px;
    background-color: gray;
}

.informasi {
    background-image: url('/img/bg-ukip.png');
    height: 120vh;
    width: 100%;
}

.heading {
    margin-top: 1000px;
}

.informasi-up {
    margin-top: 100px;
}


.ketersediaan {
    width: 100%;
    height: 70px;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
}



.details {
    border: 1px solid rgb(0, 106, 255);
}

.details a {
    text-decoration: none;
    color: rgb(0, 106, 255);
}

.sitasi {
    border: 1px solid black;
}

.sitasi a {
    text-decoration: none;
    color: black;
}

.ketersediaan h5 {
    font-size: 10px;
}

.detail-bg {
    background-color: white;
    padding-top: 100px;
}

.detail-cover img {
    width: 250px;
}

.start i {
    font-size: 10px;
}

#peta {
    width: 150px;
    height: 150px;
}

/* end skeleteon */

/* blank page */

@media only screen and (min-width: 0px) and (max-width: 700px) {

    .covers img {
        width: 130px !important;
    }

    .description h5 {
        font-size: 18px !important;
    }

    .description p {
        font-size: 10px;
    }

    .description .badge.bg-secondary.w-25 {
        width: 5px !important;
        padding: 1000px !important;
    }
}