/* =========================================================
ROOT COLOR
========================================================= */

:root{
    --veryDarkGreen: #191e29;
    --deepOcean : #132d46;
    --turqoise: #01c38d;
    --lightTurqoise: #93fee0;
    --Gray: #696e79;
    --lightGray: #e6e6e6;
    --white: #fff;
    --red: #c30101;
    --lightRed: #ef5353;
    --blue: #0d6efd;
    --yellow: #ffc107;
    --cyan: #0dcaf0;
}

*,
*::before,
*::after{
    box-sizing: border-box;
}

/* =========================================================
PREVENT HORIZONTAL SCROLL
========================================================= */

html, body{
    width:100%;
    overflow-x:hidden;
}

/* =========================================================
BODY
========================================================= */

body{
    margin:0;
    font-family:sans-serif;
    background-color:var(--lightGray);
    padding-top:70px;
    overflow-y:hidden;
}

/* Smooth scroll */
html{
    scroll-behavior:smooth;
}

/* agar section tidak tertutup header */
section{
    scroll-margin-top:70px;
}

/* =========================================================
HEADER
========================================================= */

.header{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 70px;
    background-color: var(--veryDarkGreen);

    position: fixed;
    /*position: stikcy;*/
    top: 0;
    left: 0;
    width: 100%;

    z-index: 9999;

    box-shadow: 0 5px 10px var(--deepOcean);
}

.header .nama{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.header .nama img{
    height: 40px;
}

/* NAVIGATION */

.navigasi{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    position: relative;
}

.navigasi a{
    color: var(--white);
    text-decoration: none;
    position: relative;
}

.navigasi a::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    border-radius: 50px;
    background-color: var(--turqoise);
}

.navigasi .dropdown a::before{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    border-radius: 50px;
    background-color: var(--turqoise);
}

.navigasi a:hover:before{
    width: 100%;
    transition: 0.4s ease-in-out;
    box-shadow: 0 2px 8px var(--turqoise),
                0 5px 10px var(--lightTurqoise);
}

.dropdown-menu li a{
    color: black;
}

.dropdown-menu li a::before{
    display: none;
}

/* LOGIN BUTTON */

.login{
    display: flex;
    color: var(--white);
    align-items: center;
}

.login .btn{
    border: 2px solid var(--turqoise);
    border-radius: 5px;
    height: max-content;
    color: var(--turqoise);
    position: relative;
}

.login .btn:hover{
    background-color: var(--turqoise);
    color: black;
    transition: 0.4s ease-in-out;
}


/* =========================================================
HAMBURGER MENU
========================================================= */

.menu-toggle{
    display: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}


/* =========================================================
BERANDA HERO
========================================================= */

.beranda{
    position:relative;

    min-height:100vh;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;
    color:var(--white);

}

/* background blur */

.beranda::before{
    content:"";
    position:absolute;
    inset:0;

    background:url('../img/background5.png') no-repeat center center/cover;

    filter:blur(3px);

    transform:scale(1.05);

    z-index:0;
}

/* overlay */

.beranda::after{
    content:"";
    position:absolute;
    inset:0;

    background:rgba(0,0,0,0.5);

    z-index:1;
}

/* konten */

.beranda img,
.beranda h1,
.beranda p{
    position:relative;
    z-index:2;
}

.beranda img{
    width:100px;
    height:100px;
    margin-bottom:15px;
}

.beranda h1{
    font-size:40px;
    margin:8px 0;
}

.beranda p{
    font-size:18px;
    color:var(--lightGray);
}


/* =========================================================
LAYOUT BERANDA
========================================================= */

.layout-beranda{

    display: grid;

    grid-template-columns: 2fr 1fr;

    grid-template-areas:
        "penerimaan daftar"
        "penerimaan program";

    gap: 24px;

    padding: 10px;

    width: 100%;

    max-width: 1200px;

    margin: auto;
}


/* =========================================================
CONTAINER STYLE
========================================================= */

.penerimaan,
.daftar-online,
.program-pnddkn{

    background: var(--white);

    padding: 28px;

    border-radius: 12px;

    border: 1px solid #ececec;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04);

    transition: all 0.25s ease;
    position: relative;
}


/* =========================================================
HOVER EFFECT (modern subtle)
========================================================= */

.penerimaan:hover,
.daftar-online:hover,
.program-pnddkn:hover{

    border-color: #dcdcdc;

    box-shadow: 0 8px 20px rgba(0,0,0,0.06);

    transform: translateY(-2px);
}


/* =========================================================
GRID AREA
========================================================= */

.penerimaan{
    grid-area: penerimaan;
}

.daftar-online{
    grid-area: daftar;
}

.program-pnddkn{
    grid-area: program;
}


/* =========================================================
DAFTAR ONLINE STYLE
========================================================= */

.daftar-online{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daftar-online h3{
    margin-bottom: 10px;
}

.daftar-online p{
    color: var(--Gray);
}

.daftar-online .btn{

    margin-top: 15px;

    padding: 10px;

    border-radius: 8px;

    font-weight: 600;

    transition: 0.25s;
}


/* =========================================================
PROGRAM LIST STYLE
========================================================= */

.program-pnddkn ul{
    margin-top: 10px;
}

.program-pnddkn li{

    padding: 10px 0;

    border-bottom: 1px solid #f0f0f0;

    transition: 0.2s;
}

.program-pnddkn li:last-child{
    border-bottom: none;
}

.program-pnddkn li:hover{
    padding-left: 6px;
}

.program-pnddkn{
    margin-top: 10px;
}


/* =========================================================
SYARAT LIST
========================================================= */

.syarat p{
    font-weight: 600;
}

.syarat ol{
    padding-left: 20px;
}

.syarat li{
    margin-bottom: 6px;
    color: #444;
}

/* =========================================================
JUDUL SECTION (MODERN STYLE)
========================================================= */

.penerimaan h3,
.daftar-online h3,
.program-pnddkn h3{

    font-size: 22px;

    font-weight: 600;

    letter-spacing: 0.5px;

    color: var(--white);

    padding: 14px 20px;

    margin-bottom: 20px;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        var(--veryDarkGreen),
        var(--deepOcean)
    );

    box-shadow: 
        0 4px 10px rgba(0,0,0,0.08);

    position: relative;

    overflow: hidden;
}

/* =========================================================
CARD
========================================================= */

.card{
    margin: 0;
}

.card-header{
    background-color: var(--veryDarkGreen);
    color: var(--white);
}


/* =========================================================
CAROUSEL
========================================================= */

.carousel-img{
    width:100%;
    height:auto;
    max-height:400px;
    object-fit:contain;
}


/* =========================================================
BERITA / ARTIKEL
========================================================= */

.berita .card {
    overflow: hidden;
}

.berita img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.berita img:hover {
    transform: scale(1.1);
}


/* =========================================================
SEJARAH
========================================================= */

.sejarah{
    width: 100%;
}


/* =========================================================
STRUKTUR
========================================================= */

.kartu{
    transition: transform 0.3s ease;
}

.kartu:hover{
    transform: translateY(-10px);
}


/* =========================================================
FASILITAS
========================================================= */

.fasilitas-card {
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s ease;
}

.fasilitas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.fasilitas-card img {
    height: 220px;
    object-fit: cover;
}


/* =========================================================
VISI MISI
========================================================= */

.visi-card {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.visi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    background-color: var(--turqoise);
    color: var(--white);
}

.misi-list {
    padding-left: 18px;
}

.misi-list li {
    margin-bottom: 10px;
    text-align: justify;
}


/* =========================================================
PENGUMUMAN
========================================================= */

.pengumuman-item {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pengumuman-item:hover {
    background-color: #f8f9fa;
    padding-left: 30px;
}

.pengumuman-item .tanggal {
    font-size: 14px;
    color: #198754;
    font-weight: 500;
}

.detail-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.isi-pengumuman {
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}


/* =========================================================
FOOTER
========================================================= */

.footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--veryDarkGreen);
    color: var(--white);
    height: max-content;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.footer-top{
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-top .medsos a{
    font-size: 30px;
    cursor: pointer;
    margin: 3px;
    color: var(--white);
}

.footer-top .medsos a:hover{
    color: var(--turqoise);
}


/* =========================================================
RESPONSIVE MOBILE
========================================================= */

@media (max-width: 768px){

    .header{
        justify-content: space-between;
        padding: 0 20px;
    }

    .menu-toggle{
        display: block;
        z-index: 300;
    }

    .navigasi{
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: var(--veryDarkGreen);
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .navigasi.active{
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .login{
        display: none;
    }

    .dropdown-menu{
        position: static !important;
        transform: none !important;
        width: 100%;
        text-align: center;
    }

    .navigasi a::before{
        display: none;
    }

    .layout-beranda{
        grid-template-columns: 1fr;
        grid-template-areas:
            "penerimaan"
            "daftar"
            "program";
    }

    .penerimaan{
        width: 100%;
    }

    .carousel-img {
        max-height: 250px;
    }
}


/* =========================================================
ANIMATION
========================================================= */

@keyframes slideDown{
    from{
        opacity: 0;
        transform: translateY(-10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}


