/* =========================================================
   TEMPLATE WISUDA 2026 - THUANPROJECT
   menggunakan THUANFLEX
   ========================================================= */


/* =========================================================
   FONT
   ========================================================= */

.google-sans-regular {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}


.google-sans-medium {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}


.google-sans-bold {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}


.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}



/* =========================================================
   BODY
   ========================================================= */

body {
    cursor: default;

    position: relative;

    min-height: 100vh;

    font-family: "Google Sans", sans-serif;

    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    font-variation-settings: "GRAD" 0;

    /*
       membuat stacking context sendiri
       supaya background dan foreground
       dapat dikontrol dengan aman
    */

    isolation: isolate;
}





/* =========================================================
   JUDUL SECTION
   ========================================================= */

div.cjudul {
    justify-content: center;

    text-align: center;

    margin-top: 20px;
    margin-bottom: 10px;
}


div.cjudul h1 {
    font-size: 4em;
}



/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h5 {
    font-family: "Bebas Neue", sans-serif;

    font-weight: 400;
    font-style: normal;

    color: #ae0a2c;
}


h2 {
    font-size: 2.5em;
     color: black;
}

.Jtahap h2 {
    margin-bottom: 6px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 2em;
    font-weight: 400;
    line-height: 1.1;
}

h5 {
    color: white;
    font-size:1em;
}


p,
h6 {
    font-family: "Google Sans", sans-serif;

    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;

    color: black;
}


/* =========================================================
   BARIS 2 : HERO
   ========================================================= */

div#background2 {
    position: relative;

    width: 100%;
    height: 100dvh;

    overflow: hidden;
}


div#div_headline {
    height: 100%;

    padding: 20px;

    justify-content: center;
    align-items: center;

    gap: 50px;

    z-index: 2;

    margin-bottom: 50px;
}



/* =========================================================
   BARIS 3 : ALUR WISUDA : div_alur
   ========================================================= */

div#div_alur {
    align-items: stretch;
    justify-content: center;

    gap: 15px;

    margin-bottom: 200px;
}


/* =========================================================
   PEMBARUAN : DISABLE TEXT SELECTION
   ========================================================= */

div#div_alur,
div#div_alur * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    user-select: none;
}


/* kotak alur */

div#div_alur > div.alur-item {
    flex: 1;

    padding: 30px 20px;

    border: 2px solid #0a1e46;

    text-align: center;

    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-tap-highlight-color: transparent;
}


div#div_alur > div.alur-item:hover {
    background-color: rgba(247, 101, 69, 0.6);
}


/* nomor */

div#div_alur > div.alur-item h1 {
    font-size: 4em;

    margin-bottom: 10px;
}


/* judul tahap */

div#div_alur > div.alur-item h2 {
    font-size: 2em;
    margin-bottom: 10px;
}


/* keterangan */

div#div_alur > div.alur-item p {
    line-height: 1.5;
}


/* panah */

div#div_alur > div.alur-panah {
    display: flex;

    align-items: center;
    justify-content: center;

    border: none;
}


div#div_alur > div.alur-panah h1 {
    font-size: 2.5em;
}

/* =========================================================
   BARIS 4 : TANGGAL PENTING : div_tanggalpenting
   DESKTOP
   ========================================================= */

div#div_tanggalpenting {
    align-items: stretch;
    margin-bottom: 200px;
}

div#div_tanggalpenting > div.item:nth-child(1) {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
}

iframe#tt_calendar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 475px;
    border: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}


/* =========================================================
   BARIS 5 : FOTO WISUDAWAN BERPRESTASI : div_wisudawanBerprestasi
   ========================================================= */

div#div_wisudawanBerprestasi {
    justify-content: center;
    align-items: center;
}


div#div_wisudawanBerprestasi > div.item {
    width: 100%;

    display: flex;

    justify-content: center;

    margin-bottom: 50px;
}





/* =========================================================
   BARIS 6 : DAFTAR WISUDAWAN BERPRESTASI
   ========================================================= */

div#div_wisudawanberprestasi_list {
    justify-content: center;

    margin-bottom: 200px;
}


div.daftar-wisudawan > div.data-prestasi h3 {
    margin-bottom: 12px;

    font-size: 1.1em;
}


div.daftar-wisudawan > div.data-prestasi p {
    margin-bottom: 5px;

    line-height: 1.5;
}


div.daftar-wisudawan > div.data-prestasi p:last-child {
    margin-bottom: 0;
}



/* =========================================================
   BARIS 7 : BUKU WISUDA : div_bukukenangan
   ========================================================= */

div#div_bukukenangan {
    width: 100%;

    justify-content: center;

    margin-bottom: 200px;
}


div#div_bukukenangan > div.item {
    width: 100%;

    min-width: 0;
}


iframe#bukukenangan {
    display: block;

    width: 100%;
    max-width: 1280px;

    aspect-ratio: 16 / 9;

    height: auto;

    border: 1px solid lightgray;

    margin-left: auto;
    margin-right: auto;
}



/* =========================================================
   BARIS 8 : FOTO WISUDAWAN : div_wisudawanberprestasi
   ========================================================= */
#div_wisudawanberprestasiFoto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#div_wisudawanberprestasiFoto .item {
    flex: 0 0 200px;
}

#div_wisudawanberprestasiFoto img {
    display: block;
    width: 100%;
    height: auto;
}

div#div_wisudawanberprestasi {
    justify-content: center;

    padding: 50px;

    text-align: center;

    margin-bottom: 200px;
}


div#div_wisudawanberprestasi p {
    line-height: 24pt;
}



/* =========================================================
   BARIS 9 : FAQ
   ========================================================= */

div#div_Faq {
    justify-content: center;

    padding-bottom: 200px;
}


div#div_Faq > div#faq-list {
    width: 100%;
}



/* =========================================================
   FAQ ITEM
   ========================================================= */

details.faq-item {
    width: 100%;

    padding: 20px 0;

    border-bottom: 1px solid black;
}


details.faq-item summary {
    position: relative;

    padding-right: 40px;

    font-family: "Google Sans", sans-serif;

    font-size: 1.1em;
    font-weight: 600;

    cursor: pointer;

    list-style: none;
}


details.faq-item summary::-webkit-details-marker {
    display: none;
}


/* tanda + */

details.faq-item summary::after {
    content: "\002B";

    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.5em;

    color: #ae0a2c;
}


/* tanda minus */

details.faq-item[open] summary::after {
    content: "\2212";
}


details.faq-item p {
    margin-top: 15px;

    padding-right: 50px;

    line-height: 1.6;
}



/* =========================================================
   KONTAK
   ========================================================= */

div#backgroundKontak {
    padding-top: 50px;
    z-index:10; 
    background-color: white;
}


div#kontak {
    gap: 40px;

    align-items: stretch;

    padding: 30px 20px 50px 20px;
}


div#kontak > div.item:nth-child(1) {
    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


div#kontak > div.item:nth-child(2) {
    flex: 1;

    min-width: 0;
}


div#kontak a {
    color: #ae0a2c;
}


iframe#mapISTTS {
    display: block;

    width: 100%;
    height: 400px;

    border: none;
}



/* =========================================================
   FOOTER
   ========================================================= */

div#backgroundFooter {
    background-color: #880521;
    z-index:888; 
    margin-bottom: 0;
}


div#footer {
    justify-content: center;

    padding: 10px;

    text-align: center;

    margin-bottom: 0;
}



/* =========================================================
   TABLET PORTRAIT
   MOBILE LANDSCAPE
   MOBILE PORTRAIT

   maksimal 900px
   ========================================================= */

@media screen and (max-width: 900px) {

    /* =====================================================
       TYPOGRAPHY RESPONSIVE
       Hanya berlaku untuk tablet/mobile
       ===================================================== */

    body {
        font-size: 16px;
    }

    div.cjudul h1 {
        font-size: clamp(2.5rem, 8vw, 3.2rem);
        line-height: 1.05;
    }

    h2 {
        font-size: clamp(1.8rem, 5.5vw, 2.2rem);
        line-height: 1.1;
    }

    h5 {
        font-size: 0.95rem;
    }

    p,
    h6 {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    div#div_alur > div.alur-item h1 {
        font-size: clamp(2.8rem, 10vw, 3.5rem);
        line-height: 1;
    }

    div#div_alur > div.alur-item h2 {
        font-size: 1.6em;
        line-height: 1.15;
    }

    div#div_alur > div.alur-item p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    div#div_alur > div.alur-panah h1 {
        font-size: 2rem;
    }

    div.daftar-wisudawan > div.data-prestasi h3 {
        font-size: 1rem;
        line-height: 1.35;
    }

    div.daftar-wisudawan > div.data-prestasi p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    div#div_fotovideo p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    details.faq-item summary {
        font-size: 1rem;
        line-height: 1.4;
    }

    details.faq-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }


    /* =====================================================
       JUDUL SECTION
       ===================================================== */

    div.cjudul {
        width: 100%;
        max-width: 100%;

        justify-content: center;
    }


    div.cjudul > div.item {
        width: 100%;

        text-align: center;
    }



    /* =====================================================
       BARIS 2 : HERO MOBILE
       ===================================================== */

    div#background2 {
        height: auto;

        min-height: 100dvh;

        overflow: visible;
    }


    div#div_headline {
        height: auto;

        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 30px;

        padding:
            120px
            20px
            60px
            20px;
    }


    div#div_headline > div.item:nth-child(2) {
        order: 1;

        width: 100%;

        text-align: center;
    }


    div#div_headline > div.item:nth-child(1) {
        order: 2;

        width: 100%;

        text-align: center;
    }


    div#div_headline > div.item:nth-child(2) img {
        width: 280px;

        max-width: 80%;

        height: auto;
    }



    /* =====================================================
       BARIS 3 : ALUR WISUDA MOBILE
       ===================================================== */

    div#div_alur {
        flex-direction: column;

        gap: 15px;

        padding:
            50px
            20px;
    }


    div#div_alur > div.alur-item {
        width: 100%;
    }


    div#div_alur > div.alur-panah {
        width: 100%;
    }


    div#div_alur > div.alur-panah h1 {
        transform: rotate(90deg);
    }



    /* =====================================================
   BARIS 4 : TANGGAL PENTING MOBILE :div_tanggalpenting
   ===================================================== */

div#div_tanggalpenting {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px 50px 20px;
}

div#div_tanggalpenting > div.item:nth-child(1) {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

iframe#tt_calendar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}


    /* =====================================================
       BARIS 5 : WISUDAWAN BERPRESTASI MOBILE
       ===================================================== */

    div#baris5 {
        width: 100%;

        padding:
            0
            20px
            50px
            20px;

        justify-content: center;
    }


    div#baris5 > div.item {
        width: 100%;
    }


    


    /* =====================================================
       BARIS 6 : DAFTAR WISUDAWAN MOBILE : div_wisudawanberprestasi_list
       ===================================================== */

    div#div_wisudawanberprestasi_list {
        width: 100%;

        padding:
            0
            20px
            50px
            20px;
    }


    div#div_wisudawanberprestasi_list > div#daftar-prestasi {
        width: 100%;
    }


/* =====================================================
       BARIS 7 : BUKU WISUDA MOBILE : div_bukukenangan
       ===================================================== */

    div#div_bukukenangan {
        width: 100%;

        max-width: 100%;
    }


    div#div_bukukenangan > div.item {
        width: 100%;

        max-width: 100%;
    }


    iframe#bukukenangan {
        width: 100%;

        max-width: 100%;

        aspect-ratio: 16 / 9;

        height: auto;
    }



    /* =====================================================
       BARIS 8 : FOTO WISUDAWAN MOBILE
       ===================================================== */

    div#div_fotovideo {
        width: 100%;

        padding:
            30px
            20px;

        margin-bottom:
            100px;
    }



    /* =====================================================
       BARIS 9 : FAQ MOBILE
       ===================================================== */

    div#div_Faq {
        width: 100%;

        padding:
            0
            20px
            50px
            20px;
    }


    div#div_Faq > div#faq-list {
        width: 100%;
    }


    details.faq-item {
        width: 100%;

        padding:
            18px
            0;
    }


    details.faq-item summary {
        padding-left:
            5px;

        padding-right:
            45px;

        line-height:
            1.4;
    }


    details.faq-item p {
        margin-top:
            15px;

        padding-left:
            5px;

        padding-right:
            20px;

        line-height:
            1.6;
    }



    /* =====================================================
       KONTAK MOBILE
       ===================================================== */

    div#kontak {
        flex-direction: column;

        gap: 25px;

        padding:
            20px
            20px
            50px
            20px;
    }


    div#kontak > div.item:nth-child(1) {
        width: 100%;
    }


    div#kontak > div.item:nth-child(2) {
        width: 100%;
    }


    iframe#mapISTTS {
        width: 100%;

        height: auto;

        aspect-ratio: 16 / 9;
    }

}

/* =========================================================
   POPUP INFORMASI ALUR WISUDA
   Hanya mengatur layout modal. Typography tetap mengikuti
   style h1, h2, p, dan a dari template yang sudah ada.
   ========================================================= */

.alur-popup-trigger {
    cursor: pointer;
}

#alur-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(3px);
}

#alur-popup-overlay.active {
    display: flex;
}

#alur-popup {
    position: relative;

    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 50px 40px 40px 40px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0;
    line-height:2em;
    border: 1px solid black;
}

#alur-popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
color: #ae0a2c;
    font-size: 2em;
    line-height: 1;
    text-decoration: none;
}

body.alur-popup-open {
    overflow: hidden;
}

@media screen and (max-width: 900px) {

    #alur-popup h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
        line-height: 1.05;
    }

    #alur-popup h2 {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
        line-height: 1.15;
    }

    #alur-popup p,
    #alur-popup a {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    #alur-popup-overlay {
        padding: 15px;
    }

    #alur-popup {
        max-height: calc(100vh - 30px);
        padding: 48px 22px 28px 22px;
    }

}

/* Contact dan footer tidak boleh menutupi navigasi. */
#backgroundKontak, #backgroundFooter {
    z-index: auto;
}

/* =========================================================
   WISUDAWAN TERBAIK 2026 - KARTU 250px
   .container / .item tetap mengacu pada global.css.
   Berlaku untuk Magister, Sarjana, dan Diploma.
   ========================================================= */
#div_wisudawanberprestasi_list .daftar-wisudawan {
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    column-gap: 30px;
    row-gap: 28px;
    margin-bottom: 35px;
}

/* Sarjana: maksimal 3 kartu @ 250px dengan gap 30px di desktop.
   Tetap memakai flex .container dari global.css. */
@media screen and (min-width: 761px) {
    #div_wisudawanberprestasi_list .daftar-sarjana {
        max-width: 810px;
        margin-left: auto;
        margin-right: auto;
    }
}

#div_wisudawanberprestasi_list .daftar-wisudawan > .data-prestasi {
    flex: 0 1 250px;
    width: 250px;
    max-width: 250px;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#div_wisudawanberprestasi_list .data-prestasi img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin-inline: auto;
}

#div_wisudawanberprestasi_list .data-prestasi > div {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================================
   MOBILE 2026: WISUDAWAN TERBAIK 2 KOLOM
   Hanya penyesuaian komponen; .container/.item tetap dari global.css.
   ========================================================= */
@media screen and (max-width: 760px) {
    #div_wisudawanberprestasi_list .daftar-wisudawan {
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        column-gap: 12px;
        row-gap: 18px;
    }

    #div_wisudawanberprestasi_list .daftar-wisudawan > .data-prestasi {
        flex: 0 0 calc((100% - 12px) / 2);
        width: calc((100% - 12px) / 2);
        max-width: 250px;
        min-width: 0;
        padding: 9px;
    }

    #div_wisudawanberprestasi_list .data-prestasi img {
        max-width: 100%;
        height: auto;
    }

    #div_wisudawanberprestasi_list .data-prestasi h3 {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    #div_wisudawanberprestasi_list .data-prestasi p {
        font-size: 0.8rem;
        overflow-wrap: anywhere;
    }
}



/* =========================================================
   WISUDA 2026 - JARAK HORIZONTAL SECTION
   Acuan desktop: 1280 x 720 (maks. 1280px dari global.css).
   Layar lebih lebar tetap di tengah, bukan di-zoom.
   Padding hanya section utama, bukan seluruh .container,
   sehingga nested container/kartu tidak terkena dobel padding.
   ========================================================= */
:is(
    #div_headline,
    #section-alur,
    #div_alur,
    #section-tanggal,
    #div_tanggalpenting,
    #section-prestasi,
    #div_wisudawanBerprestasi,
    #div_wisudawanberprestasi_list,
    #section-buku,
    #div_bukukenangan,
    #section-foto,
    #div_fotovideo,
    #section-faq,
    #div_Faq,
    #kontak,
    #footer
) {
    padding-inline: clamp(16px, 3.125vw, 40px);
}

@media screen and (max-width: 760px) {
    :is(
        #div_headline,
        #section-alur,
        #div_alur,
        #section-tanggal,
        #div_tanggalpenting,
        #section-prestasi,
        #div_wisudawanBerprestasi,
        #div_wisudawanberprestasi_list,
        #section-buku,
        #div_bukukenangan,
        #section-foto,
        #div_fotovideo,
        #section-faq,
        #div_Faq,
        #kontak,
        #footer
    ) {
        padding-inline: 16px;
    }
}
