/* =========================================================
   STYLE PPDB SIF FINAL
========================================================= */

:root{
    --primary: #F47C35;
    --primary-dark: #E1661A;
    --primary-soft: #FFF1E7;
    --dark: #1F1F1F;
    --white: #FFFFFF;
    --border: #F1D5C2;
    --text: #2B2B2B;
    --text-muted: #76675F;
    --shadow-card: 0 22px 60px rgba(244,124,53,0.10);
}

*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #FFF9F5 0%, #FFF4EC 100%);
    color: var(--text);
}

.container{
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */

.site-header{
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #ece7e2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.site-header .container{
    width: calc(100% - 96px);
    max-width: 1720px;
    margin: 0 auto;
}

.nav-wrapper{
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.brand{
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img{
    height: 76px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-menu{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0;
    padding: 0;
}

.nav-menu > li{
    position: relative;
}

.nav-menu > li > a{
    color: #3d3d3d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1px;
    transition: 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active{
    color: #f0a500;
}

.has-dropdown > a::after{
    content: "▼";
    font-size: 8px;
    color: #888888;
    margin-top: 1px;
}

.has-dropdown:hover > a::after,
.has-dropdown.open > a::after{
    color: #f0a500;
}

.has-dropdown:hover > .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   DROPDOWN NAVBAR
========================================================= */

.dropdown-menu{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    max-width: 330px;
    background: #ffffff;
    border: 1px solid #e8e0d8;
    border-radius: 8px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.dropdown-menu li{
    margin: 0;
}

.dropdown-menu li a{
    display: block;
    padding: 7px 12px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    transition: 0.2s ease;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: break-word;
}

.dropdown-menu li a:hover{
    background: #fff5ea;
    color: #f47c35;
}

.dropdown-about{
    min-width: 225px;
    max-width: 260px;
}

.dropdown-services{
    min-width: 300px;
    max-width: 320px;
}

.dropdown-news{
    min-width: 205px;
    max-width: 230px;
}

/* =========================================================
   SUB DROPDOWN TK AL-AZHAR
========================================================= */

.has-sub-dropdown{
    position: relative;
}

.has-sub-dropdown > a{
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.has-sub-dropdown > a::after{
    content: "›";
    font-size: 16px;
    color: #f0a500;
    font-weight: 800;
    margin-left: 10px;
}

.sub-dropdown-menu{
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    min-width: 245px;
    max-width: 270px;
    background: #ffffff;
    border: 1px solid #e8e0d8;
    border-radius: 6px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: 0.25s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    z-index: 1000;
}

.has-sub-dropdown:hover .sub-dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-dropdown-menu li a{
    display: block;
    padding: 7px 10px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: break-word;
}

.sub-dropdown-menu li a:hover{
    background: #fff5ea;
    color: #f47c35;
}

/* =========================================================
   NAVBAR KANAN
========================================================= */

.nav-right{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switcher{
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-item{
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4c4c4c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s ease;
    white-space: nowrap;
}

.lang-item:hover,
.lang-item.active{
    color: #f47c35;
}

.flag-img{
    width: 22px;
    height: 14px;
    display: inline-block;
    border: 1px solid #dddddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.flag-id{
    background: linear-gradient(to bottom, #e31b23 0 50%, #ffffff 50% 100%);
}

.flag-en{
    position: relative;
    background:
        linear-gradient(to bottom,
            #b22234 0 12.5%,
            #ffffff 12.5% 25%,
            #b22234 25% 37.5%,
            #ffffff 37.5% 50%,
            #b22234 50% 62.5%,
            #ffffff 62.5% 75%,
            #b22234 75% 87.5%,
            #ffffff 87.5% 100%);
}

.flag-en::before{
    content: "";
    position: absolute;
    width: 9px;
    height: 8px;
    background: #3c3b6e;
    top: 0;
    left: 0;
}

.btn-email{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    background: #f3c347;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 800;
    font-size: 12.5px;
    border-radius: 999px;
    transition: 0.25s ease;
    white-space: nowrap;
}

.btn-email:hover{
    background: #e9b72f;
    transform: translateY(-1px);
}

.menu-toggle{
    display: none;
    background: transparent;
    border: none;
    color: #333333;
    font-size: 28px;
    cursor: pointer;
}

.nav-lang-mobile{
    display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero{
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.20), transparent 25%),
        radial-gradient(circle at bottom left, rgba(255,255,255,0.18), transparent 20%),
        linear-gradient(135deg, #F47C35 0%, #F7944D 45%, #FFB46E 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before{
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.hero::after{
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: -100px;
    left: -60px;
}

.hero-grid{
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

.hero-badge{
    display: inline-block;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.35);
    color: #ffffff;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-text{
    max-width: 760px;
}

.hero-text h2{
    margin: 0;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-text p{
    font-size: 17px;
    color: rgba(255,255,255,0.94);
    line-height: 1.8;
    max-width: 680px;
    margin: 18px 0 0;
}

/* =========================================================
   FORM
========================================================= */

.main-section{
    padding: 65px 0 80px;
}

.form-card{
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid #F6D8C6;
}

.form-header{
    margin-bottom: 32px;
    text-align: center;
}

.form-header span{
    display: inline-block;
    color: var(--primary);
    background: #FFF2E8;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.form-header h2{
    margin: 0;
    font-size: 34px;
    color: var(--dark);
    line-height: 1.25;
}

.form-header p{
    margin: 10px auto 0;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 700px;
}

.form-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group{
    margin-bottom: 18px;
}

.form-group label{
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--dark);
}

.required{
    color: #E53935;
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea{
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #F1D5C2;
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: #FFFCFA;
    color: var(--dark);
    transition: 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
    color: #A28979;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(244,124,53,0.15);
    background: var(--white);
}

.form-group textarea{
    min-height: 130px;
    resize: vertical;
}

.btn-submit{
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #F47C35 0%, #FF9A4D 100%);
    color: var(--white);
    padding: 15px;
    font-size: 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 15px 32px rgba(244,124,53,0.22);
    transition: 0.25s ease;
}

.btn-submit:hover{
    transform: translateY(-2px);
    background: linear-gradient(135deg, #E1661A 0%, #F47C35 100%);
}

.btn-submit:disabled{
    opacity: 0.75;
    cursor: not-allowed;
}

/* =========================================================
   ALERT & ANTI SPAM
========================================================= */

.alert{
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.alert-danger{
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.hp-field{
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.captcha-box{
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    align-items: center;
}

.captcha-box span{
    background: #fff5ea;
    border: 1px solid #f1d5c2;
    border-radius: 14px;
    padding: 13px 15px;
    font-weight: 700;
    color: #3b302b;
}

/* =========================================================
   SWEETALERT2 CUSTOM
========================================================= */

.swal-ppdb-popup{
    border-radius: 26px !important;
    padding: 30px 28px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.22) !important;
}

.swal-ppdb-title{
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1F1F1F !important;
}

.swal-ppdb-text{
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.swal-ppdb-text strong{
    color: #F47C35;
}

.swal2-icon.swal2-success{
    border-color: #22c55e !important;
    color: #22c55e !important;
}

.swal2-timer-progress-bar{
    background: #F47C35 !important;
}

.swal-ppdb-confirm{
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-weight: 800 !important;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
    background: linear-gradient(135deg, #2B2B2B 0%, #3A2D28 100%);
    color: var(--white);
    padding-top: 45px;
}

.footer-grid{
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 28px;
    padding-bottom: 34px;
}

.site-footer h3,
.site-footer h4{
    margin: 0 0 12px;
    color: var(--white);
}

.site-footer p{
    color: #EADFD8;
    line-height: 1.7;
    margin: 6px 0;
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,0.10);
    text-align: center;
    padding: 16px;
    color: #D7C8BF;
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 1450px){
    .site-header .container{
        width: calc(100% - 70px);
    }

    .nav-menu{
        gap: 14px;
    }

    .nav-menu > li > a,
    .lang-item{
        font-size: 11.5px;
    }

    .btn-email{
        padding: 10px 20px;
        font-size: 12px;
    }

    .brand img{
        height: 70px;
    }
}

@media(max-width: 1200px){
    .site-header .container{
        width: calc(100% - 50px);
    }

    .nav-menu{
        gap: 11px;
    }

    .nav-menu > li > a,
    .lang-item{
        font-size: 11px;
    }

    .flag-img{
        width: 20px;
        height: 13px;
    }

    .btn-email{
        padding: 9px 18px;
        font-size: 11.5px;
    }

    .brand img{
        height: 64px;
    }
}

@media(max-width: 900px){
    .site-header .container{
        width: 90%;
    }

    .nav-wrapper{
        min-height: 78px;
    }

    .brand img{
        height: 58px;
    }

    .site-header .nav-right{
        display: none !important;
    }

    .main-nav{
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        max-width: 100%;
        background: #ffffff;
        padding: 20px;
        border-top: 1px solid #ece7e2;
        box-shadow: 0 12px 25px rgba(0,0,0,0.08);
        margin-left: 0;
        overflow-x: hidden;
        z-index: 999;
    }

    .main-nav.show{
        display: block;
    }

    .nav-menu{
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-menu > li{
        width: 100%;
    }

    .nav-menu > li > a{
        font-size: 13px;
        color: #333333;
    }

    .dropdown-menu,
    .dropdown-services,
    .dropdown-about,
    .dropdown-news{
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-top: 10px;
        box-shadow: none;
        border: 1px solid #eeeeee;
        box-sizing: border-box;
    }

    .has-dropdown.open > .dropdown-menu{
        display: grid;
    }

    .dropdown-menu li a{
        white-space: normal;
        overflow-wrap: break-word;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .has-sub-dropdown > a::after{
        content: "▼";
        font-size: 10px;
    }

    .sub-dropdown-menu{
        position: static;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 8px;
        margin-left: 0;
        box-shadow: none;
        border: 1px solid #eeeeee;
        box-sizing: border-box;
    }

    .has-sub-dropdown.open .sub-dropdown-menu{
        display: block;
    }

    .sub-dropdown-menu li a{
        white-space: normal;
        overflow-wrap: break-word;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .menu-toggle{
        display: block !important;
        margin-left: auto;
    }

    .nav-lang-mobile{
        display: flex !important;
        width: 100%;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid #eeeeee;
    }

    .lang-switcher-mobile{
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .lang-switcher-mobile .lang-item{
        display: flex;
        align-items: center;
        gap: 6px;
        color: #333333;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
    }

    .lang-switcher-mobile .lang-item.active,
    .lang-switcher-mobile .lang-item:hover{
        color: #f47c35;
    }

    .hero{
        padding: 55px 0;
    }

    .hero-text h2{
        font-size: 32px;
    }

    .hero-text p{
        font-size: 15px;
    }

    .form-grid{
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card{
        padding: 24px;
        border-radius: 22px;
    }

    .form-header h2{
        font-size: 27px;
    }

    .captcha-box{
        grid-template-columns: 1fr;
    }

    .footer-grid{
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px){
    .brand img{
        height: 52px;
    }

    .nav-wrapper{
        min-height: 76px;
    }

    .main-nav{
        top: 76px;
    }

    .hero-text h2{
        font-size: 28px;
    }

    .form-card{
        padding: 20px;
    }

    .form-header h2{
        font-size: 24px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea{
        font-size: 13px;
    }

    .btn-submit{
        font-size: 15px;
    }

    .swal-ppdb-popup{
        padding: 24px 18px !important;
        border-radius: 22px !important;
    }

    .swal-ppdb-title{
        font-size: 24px !important;
    }
}