
:root{
    --orange:#ff7a00;
    --orange-dark:#e56d00;
    --white:#ffffff;
    --dark:#2f2f2f;
    --gray:#666666;
    --soft:#f7f7f7;
    --border:#ececec;
    --shadow:0 10px 30px rgba(0,0,0,0.08);
    --radius:20px;
    --transition:0.3s ease;
}

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:var(--white);
    color:var(--dark);
    overflow-x:hidden;
    overflow-y:auto;
    line-height:1.6;
}
.container, .container-lembaga{
    width:100%;
    max-width:1300px;
    margin:auto;
    padding:0 30px;
}
/* =========================
   NAVBAR
========================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:var(--white);
    z-index:999;
    border-bottom:1px solid #f0f0f0;
    border-bottom:1px solid #f0f0f0;
    box-shadow:0 2px 10px rgba(0,0,0,0.03);
    transition:
        background 0.3s ease,
        backdrop-filter 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.navbar.scrolled{

    background:rgba(255,255,255,0.75);

    backdrop-filter:blur(12px);

    -webkit-backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(255,255,255,0.25);

    box-shadow:
        0 8px 30px rgba(0,0,0,0.06);
}


.nav-container{
    height:100%;
    display:grid;
    grid-template-columns:220px 1fr 220px;
    align-items:center;
}

/* LOGO */
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:bold;
    font-size:22px;
    color:var(--orange);
}

.logo-box{
    width:42px;
    height:42px;
    border-radius:12px;
    background:var(--orange);
}

/* MENU */
.nav-menu{
    display:flex;
    align-items:center;
    /* sebelumnya center */
    justify-content:flex-end;
    gap:40px;
    /* tambahan supaya tidak terlalu mepet user box */
    padding-right:50px;
}


.nav-menu a{
    position:relative;
    text-decoration:none;
    color:#555;
    font-weight:600;
    transition:var(--transition);
}

.nav-menu a:hover{
    color:var(--orange);
}

.nav-menu a.active{
    color:var(--orange);
}

.nav-menu a.active::after{
    content:'';
    position:absolute;
    bottom:-8px;
    left:0;
    width:100%;
    height:3px;
    border-radius:10px;
    background:var(--orange);
}

/* USER MENU */
.user-box{
    display:flex;
    align-items:center;
    gap:12px;
}
.mobile-user{
    display:none;
}

.user-item{
   display:flex;
}
.user-item a, .user-name{
    border:2px solid var(--orange);
    color:var(--orange);
    padding:10px 18px;
    border-radius:14px;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    transition:0.3s ease;
    background:white;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}

.user-item a:hover{
    background:var(--orange);
    color:white;
    transform:translateY(-2px);
}

 .user-name:hover{
    background:var(--orange);
    color:white;
    transform:translateY(-2px);
 }

/* =========================
   USER DROPDOWN
========================= */


/* =========================
   USER DROPDOWN
========================= */

.user-dropdown{
    position:relative;
    display:inline-block;
    width:fit-content;
}

.user-dropdown-content{
    position:absolute;

    top:100%;
    left:0;

    width:220px;

    background:white;
    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);

    padding:10px;
    margin-top:0;

    display:flex;
    flex-direction:column;
    gap:5px;

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    transition:0.3s;

    z-index:999;
}

/* tampil saat hover */
.user-dropdown:hover .user-dropdown-content{
    opacity:1;
    visibility:visible;

    pointer-events:auto;

    transform:translateY(0);
}

.user-dropdown-content a{
    text-decoration:none;
    color:#444;

    padding:12px 15px;
    border-radius:12px;

    font-size:14px;
    font-weight:500;

    transition:0.3s;
}
.user-dropdown-content a:hover{
    background:rgba(255,122,0,0.12);
    color:var(--orange);

    backdrop-filter:blur(10px);
}


/* MOBILE BUTTON */
.mobile-btn{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
    justify-self:end;
    z-index:1001;
}

.mobile-btn span{
    width:28px;
    height:3px;
    background:var(--orange);
    border-radius:20px;
    transition:0.3s ease;
}

.mobile-user{
    align-items:flex-start;
}
.mobile-btn.active span:nth-child(1){
    transform:
        rotate(45deg)
        translateY(11px);
}

.mobile-btn.active span:nth-child(2){
    opacity:0;
}

.mobile-btn.active span:nth-child(3){
    transform:
        rotate(-45deg)
        translateY(-11px);
}

/* =========================
   HERO
========================= */

.hero{
    margin-top:80px;
    position:relative;

    height:100vh;
    min-height:100vh;

    overflow:hidden;
}

.slides{
    width:100%;
    height:100%;
    position:relative;
    background:black;
}

.slide{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    opacity:0;

    transition:opacity 1s ease;

    z-index:0;
}

.slide.active{
    opacity:1;
    z-index:1;
}

.slide.active{
    opacity:1;
    z-index:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(0.6);
}

.hero-content{
    position:absolute;
    inset:0;
    z-index:2;

    display:flex;
    flex-direction:column;

    /* sebelumnya center */
    align-items:flex-start;
    justify-content:center;

    text-align:left;

    color:white;

    padding-left:0%;
    padding-right:20px;

    max-width:800px;
}

.badge{
    display:inline-block;
    background:rgba(255,122,0,0.2);
    backdrop-filter:blur(10px);
    padding:10px 20px;
    border-radius:5px;
    margin-bottom:20px;
    font-weight:bold;
    color:orange;
}

.hero-content h1{
    font-size:50px;
    margin-bottom:20px;
    max-width:700px;
    line-height:60px;
}

/* PARAGRAPH */
.hero-content p{
    font-size:20px;
    margin-bottom:35px;
    max-width:650px;
}

.hero-btn{
    background:var(--orange);
    color:white;
    padding:16px 35px;
    border:none;
    border-radius:5px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:var(--transition);
    text-decoration: none;
}

.hero-btn:hover{
    background:var(--orange-dark);
    transform:translateY(-2px);
}

/* =========================
   SECTION TITLE
========================= */

.section{
    padding:80px 20px;
    padding-bottom:120px;
}

.container{
    max-width:1250px;
    margin:auto;
}

.section-title{
    text-align:center;
    margin-bottom:20px;
}

.section-title h2{
    font-size:42px;
    margin-bottom:-5px !important;
    color:#163d6b;
}

.section-title p{
    color:#163d6b;;
    font-size:18px;
}

/* =========================
   PROGRAM
========================= */

.program-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    background:white;
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    margin-bottom:60px;
}

.program-image{
    position:relative;
    overflow:hidden;
    min-height:450px;
    background:black;
}

.program-slider{
    position:relative;
    width:100%;
    height:100%;
}

.program-slider img{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity 1s ease;

    z-index:1;
}

.program-slider img.active{
    opacity:1;
    z-index:2;
}

.program-content{
    padding:45px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.tag{
    display:inline-block;
    align-self:flex-start;

    background:#fff1e4;
    color:var(--orange);

    padding:8px 15px;

    border-radius:5px;

    font-size:16px;
    font-weight:bold;

    margin-bottom:20px;
}

.program-content h3{
    font-size:38px;
    margin-bottom:0px;
     color:#163d6b;
}

.program-content p{
     color:#163d6b;
    margin-bottom:30px;
}

.program-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 25px;
    border-radius:14px;
    border:none;
    cursor:pointer;
    font-weight:bold;
    transition:var(--transition);
}

.btn-orange{
    background:var(--orange);
    color:white;
}

.btn-orange:hover{
    background:var(--orange-dark);
}

.btn-outline{
    border:2px solid var(--orange);
    background:white;
    color:var(--orange);
}

.btn-outline:hover{
    background:var(--orange);
    color:white;
}

/* =========================
   FAQ MODERN
========================= */

/* =========================
   FAQ SECTION MODERN
========================= */

.faq-section{
    margin-top:-15px;
    margin-bottom:20px;

    background:white;
    border-radius:28px;

    padding:25px;

    box-shadow:0 10px 30px rgba(0,0,0,0.06);

    border:1px solid #f3f3f3;
}

/* HEADER FAQ */

.faq-header{
    display:flex;
    align-items:flex-start;
    gap:18px;
    margin-bottom:10px;
}

.faq-icon{
    width:60px;
    height:60px;
    min-width:60px;

    border-radius:18px;

    background:rgba(255,122,0,0.12);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;
}

.faq-header h3{
    font-size:24px;
    margin-bottom:5px;
    color:var(--dark);
}

.faq-header p{
    color:#777;
    line-height:1.7;
}

/* LIST FAQ */

.faq{
    display:flex;
    flex-direction:column;
    gap:5px;
}

/* ITEM */

.faq-item{
    border-radius:22px;
    overflow:hidden;

    background:#fafafa;

    border:1px solid #ededed;

    transition:0.3s ease;
}

/* ACTIVE */

.faq-item.active{
    background:rgba(255,122,0,0.08);
    border:1px solid rgba(255,122,0,0.18);
}

/* QUESTION */

.faq-question{
    padding:12px 15px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    cursor:pointer;
}

/* LEFT SIDE */

.faq-left{
    display:flex;
    align-items:center;
    gap:18px;
}

/* NUMBER */

.faq-number{
    width:42px;
    height:42px;

    min-width:42px;

    border-radius:50%;

    background:#d9d9d9;

    color:#444;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:bold;

    transition:0.3s;
}

/* ACTIVE NUMBER */

.faq-item.active .faq-number{
    background:rgba(255,122,0,0.18);
    color:var(--orange);
}

/* QUESTION TEXT */

.faq-text{
    font-weight:600;
    color:#333;
    font-size:16px;
}

/* ARROW */

.arrow{
    color:orange;
    transition:0.3s;
    font-size:15px;
}

.faq-item.active .arrow{
    transform:rotate(180deg);
    color:var(--orange);
}

/* ANSWER */

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
    background-color:white;
}

.faq-answer p{
    padding:10px 25px 25px 85px;
    color:#666;
    line-height:1.8;
}

.faq-item.active .faq-answer{
    max-height:300px;
}
h3{
    margin-bottom:-5px;
}

/* MOBILE */

@media(max-width:768px){

    .faq-section{
        padding:25px;
    }

    .faq-header{
        align-items:flex-start;
    }

    .faq-header h3{
        font-size:20px;
    }

    .faq-text{
        font-size:15px;
    }

    .faq-answer p{
        padding:0 20px 20px 20px;
    }

}
/* =========================
   LEMBAGA
========================= */

.lembaga-wrapper{
    position:relative;
}

.lembaga-scroll{
    display:flex;
    gap:5px;

    overflow:hidden;

    scroll-behavior:auto;

    padding:10px 5px 20px;
}

.lembaga-marquee {
    overflow: hidden;
    width: 100%;
}

.lembaga-track {
    display: flex;
    gap: 10px;
    width: max-content;

    /* animation: pingpong 12s ease-in-out infinite alternate; */
    animation: marquee 60s linear infinite;  
}
/* @keyframes scroll {

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

} */
@keyframes marquee{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

}
/* 
@keyframes pingpong {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20%);
    }
} */

/* animasi jalan */
/* @keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
} */

/* pause saat hover (optional desktop) */
.lembaga-scroll:hover .lembaga-track {
    animation-play-state: paused;
}

.lembaga-scroll::-webkit-scrollbar{
    display:none;
}

.lembaga-card{
    flex: 0 0 auto;
    min-width:180px;
    background:white;
    border-radius:20px;
    box-shadow:var(--shadow);
    padding:25px;
    text-align:center;
    flex-shrink:0;
    transition:0.3s;
    text-decoration:none;
    color:gray;
}

.lembaga-card:hover{
    transform:translateY(-5px);
}

.lembaga-logo{
    width:90px;
    height:90px;
    margin:auto;
    border-radius:20px;
    background:#f4f4f4;
    margin-bottom:15px;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;
}

.lembaga-logo img{
    width:80%;
    height:80%;
    object-fit:contain;
}

/* ARROW */

.lembaga-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:var(--orange);
    color:white;
    font-size:18px;
    cursor:pointer;
    z-index:5;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

.arrow-left{
    left:-20px;
}

.arrow-right{
    right:-20px;
}

.lembaga-arrow:hover{
    background:var(--orange-dark);
}

@media(max-width:768px){

    .lembaga-arrow{
        display:none;
    }

}
/* =========================
   CONTACT
========================= */
.contact-section{
    position:relative;
    overflow:hidden;
    background:#ffffff;
    border-top:1px solid #9bacbd;
    margin-top:-20px;
    padding:28px 0;
    box-shadow: yellow;
}

/* =========================
   TITLE
========================= */

.contact-section .section-title{
    margin-bottom:18px;
}

.contact-section .section-title h2{
    margin-bottom:4px;
}

.contact-section .section-title p{
    margin:0;

    font-size:14px;

    color:#777;
}

/* =========================
   GRID
========================= */

.contact-grid{
    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:16px;
}

/* =========================
   ITEM
========================= */

.contact-item{
    background:rgba(238, 238, 238, 0.2);
    border:1px solid #eef2f7;
    border-radius:16px;
    padding:16px 14px;
    text-align:center;
    transition:0.3s;
}

.contact-item:hover{
    transform:translateY(-4px);

    box-shadow:
        0 8px 24px rgba(0,0,0,0.05);
}

.contact-item h4{
    color:var(--orange);

    font-size:20px;

    margin-bottom:4px;
}

.contact-item p{
    margin:0;
    line-height:1.5;
    font-size:14px;
    color:#666;
}

/* =========================
   VECTOR
========================= */

.contact-vector{
    position:absolute;
    right:0px;
    bottom:-30px;
    z-index:1;
    opacity:0.14;
    pointer-events:none;
}

.contact-vector img{
    width:520px;
    max-width:none;
    animation:floatingContact 6s ease-in-out infinite;
}

/* konten di atas vector */
.contact-section .container{
    position:relative;
    z-index:2;
}

/* =========================
   ANIMATION
========================= */

@keyframes floatingContact{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0px);
    }

}


/* MOBILE */

@media(max-width:768px){

    .contact-grid{
        grid-template-columns:1fr;
    }

    .contact-section{
        padding:24px 0;
    }

    .contact-vector{
        right:-80px;

        bottom:-30px;

        opacity:0.07;
    }

    .contact-vector img{
        width:260px;
    }


}
/* =========================
   FOOTER
========================= */

.footer{
    background:#1f1f1f;
    color:white;
    padding:30px 20px;
    text-align:center;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .program-card{
        grid-template-columns:1fr;
    }

    .program-image{
        min-height:300px;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }
    .hero-content{
        padding-left:10px;
    }

    .hero-content h1{
        font-size:42px;
    }
}

@media(max-width:768px){

    .mobile-btn{
        display:flex;
    }

    .user-box{
        display:none;
    }

    .mobile-user{
        display:flex;
        flex-direction:column;
        gap:12px;
        margin-top:20px;
    }

    .hero-content h1{
        font-size:38px;
        line-height: 42px;
    }

    .hero-content p{
        font-size:16px;
    }


    .section-title h2{
        font-size:32px;
    }

    .program-content{
        padding:25px;
    }

    .program-content h3{
        font-size:28px;
    }
    .hero{
        min-height:100dvh;
    }

    .hero-content{
        padding:
            110px
            25px
            120px
            25px;

        justify-content:center;
    }
        .user-dropdown:hover .user-dropdown-content{
            opacity:0;
            visibility:hidden;
            pointer-events:none;
            transform:translateY(10px);
        }
    
        .user-dropdown.active .user-dropdown-content{
            opacity:1;
            visibility:visible;
            pointer-events:auto;
            transform:translateY(0);
        }
    
}


.pdf-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:9999;
}

.pdf-modal.active{
    display:flex;
}

.pdf-box{
    width:90%;
    max-width:1100px;

    height:90vh;

    background:white;

    border-radius:12px;

    overflow:hidden;

    position:relative;
}

#closePdf{
    position:absolute;
    top:10px;
    right:10px;

    z-index:2;

    border:none;
    background: var(--orange);
    color:white;

    width:35px;
    height:35px;

    border-radius:50%;
    cursor:pointer;
}

#pdfFrame{
    width:100%;
    height:100%;

    border:none;

    display:block;
}

.pdf-loader{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:white;

    font-size:18px;
    font-weight:bold;

    z-index:1;
}

#pdfFrame{
    width:100%;
    height:100%;
    border:none;

    display:none;
}

.pdf-loader::after{
    content:'';

    width:45px;
    height:45px;

    border:4px solid #ddd;
    border-top:4px solid orange;

    border-radius:50%;

    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@media(max-width:768px){

    .nav-container{

        grid-template-columns:
            1fr auto;
    }

    .mobile-btn{
        display:flex;
    }

    .nav-menu{
        position:fixed;
        top:80px;
        right:-100%;
        width:280px;
        height:calc(100vh - 80px);
        background:linear-gradient(
    180deg,
    rgba(255,255,255,0.96) 0%,
    rgba(228, 226, 226, 0.94) 100%
);
        backdrop-filter:blur(16px);
        -webkit-backdrop-filter:blur(16px);
        flex-direction:column;
        align-items:flex-start;
        justify-content:flex-start;
        gap:1px;
        padding:35px 25px;
        transition:0.4s ease;
        box-shadow:
            -40px 0 30px rgba(0,0,0,0.08);
        border-left:
            1px solid rgba(255,255,255,0.2);
    }

    .nav-menu.active{
        right:0;
    }

    /* menu item */
    .nav-menu a{
        width:100%;
        padding:12px 14px;
        border-radius:12px;
        font-size:15px;
    }

    .nav-menu a:hover{

        background:
            rgba(255,122,0,0.08);
    }

    /* active */

    .nav-menu a.active{

        background:
            rgba(255,122,0,0.12);
    }

    .nav-menu a.active::after{
        display:none;
    }

    /* user */

    .user-box{
        display:none;
    }

    .mobile-user{
        display:flex;
        flex-direction:column;

        gap:12px;

        width:100%;

        margin-top:10px;
    }

}

@media(max-width:768px){

    .user-dropdown{
        width:100%;
    }

    .user-name{
        width:100%;
        justify-content:space-between;
        cursor:pointer;
    }

    .user-dropdown-content{
        position:relative !important;
        top:0 !important;
        left:0 !important;
        width:100% !important;

        margin-top:10px;

        background:#fafafa;

        border:1px solid #eee;

        border-radius:16px;

        box-shadow:none;

        display:flex !important;
        flex-direction:column;

        max-height:0;

        overflow:hidden;

        padding:0;

        opacity:1 !important;
        visibility:visible !important;

        pointer-events:auto !important;

        transition:
            max-height .35s ease,
            padding .35s ease;
    }

    .user-dropdown.active .user-dropdown-content{

        max-height:300px;

        padding:10px;
    }
    .hero-content{
        padding-left:20px;
    }

}
@media(max-width:768px){

    .hero-content{

        align-items:center;
        text-align:center;
        padding-top:40px;
        padding-left:30px;
        padding-right:30px;
    }

    .hero-content h1,
.hero-content p{
    max-width:100%;
}
.lembaga-track{

    animation: marquee 55s linear infinite;
}
 .lembaga-scroll{
    padding:20px 0px 20px 0px;
}
.container-lembaga{
    padding:20px 0px 20px 0px;
}

}