.navbar-nav>li>a {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav>li>a:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
    animation: badgePulse 0.6s ease-in-out;
}

@keyframes badgePulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.navbar-nav>li:hover>a {
    color: #007bff !important;
}

.navbar-nav li:hover .dropdown {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.navbar-nav .dropdown li a {
    transition: all 0.3s ease;
}

.navbar-nav .dropdown li:hover>a {
    background-color: #003063;
    color: white !important;
    padding-left: 20px;
}

.btn-login-cms {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 2px solid #007bff;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-login-cms:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-login-cms:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-login-cms i {
    transition: transform 0.3s ease;
}

.btn-login-cms:hover i {
    transform: translateX(2px);
}

.btn-portal {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: 2px solid #28a745;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-portal:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155d27 100%);
    border-color: #1e7e34;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-portal:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-portal i {
    transition: transform 0.3s ease;
}

.btn-portal:hover i {
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .btn-login-cms {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    .btn-portal {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

.navbar-nav .dropdown .dropdown-submenu:hover>.dropdown {
    background-color: #f8f9fa;
    border-radius: 6px;
}

.gallery-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.05);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.gallery-overlay h6 {
    color: #ccc;
    font-size: 0.9rem;
}

.modal-gallery,
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-image {
    max-width: 95vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-modal-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    max-width: 90%;
    backdrop-filter: blur(5px);
}

.gallery-modal-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 600;
}

.gallery-modal-info p {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.95;
}

.modal-content-gallery {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-gallery {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-gallery:hover {
    color: #bbb;
}

.prev-gallery,
.next-gallery {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.prev-gallery {
    left: 20px;
}

.next-gallery {
    right: 20px;
}

.prev-gallery:hover,
.next-gallery:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {

    .gallery-modal-prev,
    .gallery-modal-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 10px;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.gallery-info {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.gallery-info h5 {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-info h6 {
    color: white !important;
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.gallery-carousel-container {
    position: relative;
    overflow: hidden;
    flex: 1;
    margin: 0 -5px;
}

.gallery-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px;
}

.gallery-carousel-item {
    flex: 0 0 calc(25% - 10px);
    padding: 0 5px;
}

.carousel-nav {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.carousel-prev {
    order: -1;
}

.carousel-next {
    order: 1;
}

@media (max-width: 992px) {
    .gallery-carousel-item {
        flex: 0 0 calc(50% - 10px);
    }

    .gallery-carousel-wrapper {
        gap: 15px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-carousel-item {
        flex: 0 0 calc(100% - 10px);
    }

    .gallery-carousel-wrapper {
        gap: 10px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.misi-content {
    margin-bottom: 1rem;
}

.misi-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.misi-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.misi-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.misi-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.misi-content strong {
    font-weight: 600;
}

.portal-slider-wrapper {
    position: relative;
}

.portal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.portal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-20%) scale(1.1);
}

.portal-prev {
    left: -25px;
}

.portal-next {
    right: -25px;
}

.portal-pages-container {
    overflow: hidden;
    position: relative;
}

.portal-page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.portal-page.active {
    display: block;
    opacity: 1;
}

.portal-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.pagination-dot:hover {
    background: #007bff;
    opacity: 0.8;
}

.portal-card {
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portal-logo {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .portal-nav {
        width: 40px;
        height: 40px;
    }

    .portal-prev {
        left: -20px;
    }

    .portal-next {
        right: -20px;
    }
}

#article > h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: normal;
}

#article > h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: normal;
}

.dd-handle {
    height: 5rem !important;
}
