:root {
    --primary-custom: #004A74;
    --secondary-custom: #FED400;
}

.text-primary-custom {
    color: #004A74 !important;
}

.text-secondary-custom{
    color: #FED400 !important;
}
.menu-link {
    align-items: center;
}

.menu-link:hover .menu-title {
    color: #00385a;
}

.menu-title {
    color: #004A74;
}

.badge-primary-custom {
    background-color: var(--primary-custom);
    color: #ffffff !important;
}

.badge-primary-custom:hover {
    background-color: #003a5c; /* versi lebih gelap */
    color: #ffffff !important;
}

.badge-secondary-custom {
    background-color: var(--secondary-custom);
    color: #000000 !important;
}

.badge-secondary-custom:hover {
    background-color: #ffe66a; /* versi lebih gelap */
    color: #000000 !important;
}

/* Filter untuk mengubah warna logo menjadi putih */
.filter-white {
    filter: brightness(0) invert(1);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile menu panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: white;
    z-index: 101;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-panel.active {
    right: 0;
}

/* Mobile menu header */
.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004A74;
}

.mobile-menu-header .logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile menu content */
.mobile-menu-content {
    padding: 20px;
}

/* Mobile menu items */
.mobile-menu-item {
    margin-bottom: 10px;
}

.mobile-menu-link {
    display: block;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.mobile-menu-link:hover {
    background-color: #f5f5f5;
}

.mobile-menu-link.active {
    background-color: #004A74;
    color: white;
}

/* Mobile submenu */
.mobile-submenu {
    padding-left: 20px;
    margin-top: 5px;
    display: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu-link {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-left: 2px solid #eee;
    transition: all 0.3s;
}

.mobile-submenu-link:hover {
    color: #004A74;
    border-left-color: #004A74;
    background-color: #f8f9fa;
}

/* Mobile menu toggle arrow */
.mobile-menu-toggle {
    float: right;
    transition: transform 0.3s;
}

.mobile-menu-toggle.active {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .header-menu {
        display: none !important;
    }
    
    #kt_header_menu_wrapper {
        justify-content: flex-end;
    }
}

@media (min-width: 992px) {
    .mobile-menu-overlay,
    .mobile-menu-panel {
        display: none !important;
    }
}

.header-custom {
    background: #ffffff;    
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: transform .3s ease, box-shadow .3s ease;    
}

.hero-stroke {
    position: relative;
    color: var(--primary-custom);
    text-shadow: 0 3px 10px rgba(0,0,0,.4);
}

/* Stroke di luar teks */
.hero-stroke::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;

    -webkit-text-stroke: 4px #ffffff; /* diperbesar */
    color: transparent;

    text-shadow: none;
}

/* Divider */
.hero-divider {
    width: 20vw;
    max-width: 280px;
    height: 4px;
    background-color: var(--secondary-custom);
    border-radius: 4px;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-weight: 700;
    color: #003366;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 4px solid #FFD400;
    margin-bottom: 16px;
}

.text-justify {
    text-align: justify;
    line-height: 1.7;
}

.vision-card {
    background-color: #FFD400;
    border-radius: 28px;
    padding: 32px;
    height: 100%;
}

/* ===== Latest News Section ===== */
.latest-news-section {
    background: linear-gradient(180deg, #ffffff 0%, #0a4d6d 100%);
}

/* Card */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

/* Image */
.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #004A74;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: .9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Date */
.news-date {
    font-size: .8rem;
    color: #9aa3ab;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    text-align: center;
}

/* Divider bawah */
.news-divider {
    height: 2px;
    background-color: #ffffff;
    opacity: .5;
}


/* ===== Programs Section ===== */
.programs-section {
    background-color: #ffffff;
}

/* Row */
.program-row {
    min-height: 50vh;
}

/* Text side */
.program-text {
    display: flex;
    align-items: center;
    padding: 60px;
}

.bg-yellow {
    background-color: #FFE55A;
}

.bg-blue {
    background-color: #0A4D6D;
}

/* Content */
.program-content {
    max-width: 520px;
}

.program-title {
    font-weight: 800;
    margin-bottom: 16px;
}

.program-desc {
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Footer */
.program-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.program-line {
    width: 60px;
    height: 2px;
    background-color: #000;
}

.program-line.light {
    background-color: #fff;
}

/* Image side */
.program-image img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
}

/* Divider bawah */
.programs-divider {
    height: 2px;
    background-color: #000000;
    opacity: .5;
}

.about-divider {
    height: 2px;
    background-color: #000000;
    opacity: .5;
}

/* Responsive */
@media (max-width: 991px) {
    .program-text {
        padding: 40px 25px;
    }

    .program-row {
        flex-direction: column !important;
    }

    .program-image img {
        height: 280px;
    }
}

/* ===== Footer ===== */
.site-footer {
    background-color: #004A74;
}

.footer-desc {
    font-size: .95rem;
    line-height: 1.6;
    opacity: .9;
}

/* Titles */
.footer-title {
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background-color: #FED400;
    margin-top: 6px;
    border-radius: 2px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    opacity: .85;
    text-decoration: none;
    transition: .3s;
}

.footer-links a:hover {
    opacity: 1;
    color: #FED400;
}

/* Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .9rem;
    opacity: .9;
}

/* Social */
.footer-social a {
    color: #ffffff;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: .3s;
}

.footer-social a:hover {
    color: #FED400;
}

/* Divider */
.footer-divider {
    border-color: rgba(255,255,255,.2);
}

/* CKEditor */
.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;    
}

.ck-content figure {
    margin: 1.5rem auto;
    text-align: center;
}

.ck-content figure img {
    max-height: 350px;
    object-fit: contain;
}

/* TAB BUTTON About Us */
.purpose-tab {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bs-primary);
    padding: 10px 24px;
    border-radius: 6px;
    transition: all .3s ease;
}

.purpose-tab.active {
    background-color: #FED400;
    color: #004A74;
}

/* BULLET */
.bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FED40055;
    transition:
        width 0.35s ease,
        height 0.35s ease,
        border-radius 0.35s ease,
        background-color 0.35s ease;
}

.bullet.active {
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background-color: #FED400;
    vertical-align: middle;
}

/* CONTENT ANIMATION */
.purpose-content {
    display: none;
    font-size: 1.25rem;
    color: #3F4254;
    animation: fadeSlide .4s ease;
    text-align: justify;
}

.purpose-content.active {
    display: block;
}

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