*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f2f2f2;
    padding-top:85px;
}

header{
    background:#23485b;
    padding:12px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:55px;
    height:55px;
    border-radius:50%;
    background:white;
}

.logo-text{
    color:white;
    font-size:14px;
    font-weight:bold;
    line-height:1.2;
}

nav a{
    text-decoration:none;
    color:white;
    margin-left:25px;
    font-size:14px;
    font-weight:bold;
    transition:.3s;
}

nav a:hover{
    color:gold;
}

.hero{
    height:500px;
    background:url('../img/BackgroundUtama.png') center center/cover no-repeat;
    position:relative;
    display:flex;
    align-items:center;
    padding:60px;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.5);
}

.hero-content{
    position:relative;
    color:white;
    max-width:700px;
}

.hero-content h1{
    font-size:28px;
    margin-bottom:20px;
    line-height:1.4;
}

.hero-content p{
    font-size:16px;
    line-height:1.6;
}

section{
    padding:70px 40px;
}

section h2{
    text-align:center;
    font-size:28px;
    color:#23485b;
    margin-bottom:40px;
}

.profile-container{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}

.card{
    width:250px;
    background:#d9d9d9;
    border-radius:8px;
    overflow:hidden;
    text-align:center;
}

.card img{
    width:100%;
    height:160px;
    object-fit:cover;
}

.card h3{
    padding:15px;
    font-size:18px;
}

.program{
    background:#23485b;
}

.program h2{
    color:white;
}

.program-container{
    max-width:1000px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.program-card{
    background:white;
    border-radius:8px;
    overflow:hidden;
    text-align:center;
    padding-bottom:15px;
    transition:.3s;
}

.program-card:hover{
    transform:translateY(-5px);
}

.program-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.program-card h4{
    padding:15px 10px 0;
    font-size:17px;
    color:#23485b;
}

.form-container{
    max-width:850px;
    margin:auto;
    background:#d9d9d9;
    padding:25px;
    border-radius:8px;
}

form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.input-group{
    display:flex;
    flex-direction:column;
}

label{
    font-size:14px;
    font-weight:bold;
    margin-bottom:6px;
    color:#23485b;
}

input,
select,
textarea{
    width:100%;
    padding:10px;
    border:none;
    border-radius:5px;
    font-size:14px;
    outline:none;
}

.full{
    grid-column:1/3;
}

textarea{
    height:100px;
    resize:none;
}

button{
    grid-column:1/3;
    padding:12px;
    background:#23485b;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
}

button:hover{
    background:#183545;
}

.contact{
    background:#23485b;
    color:white;
}

.contact h2{
    color:white;
    text-align:left;
    font-size:42px;
    margin-bottom:12px;   /* lebih dekat */
}

.contact-info{
    display:flex;
    flex-direction:column;
    gap:35px;
}

.contact-container{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:120px;
    flex-wrap:wrap;
}

.map iframe{
    width:420px;
    height:300px;
    border:0;
    border-radius:10px;
}

.contact-info{
    display:flex;
    flex-direction:column;
    gap:35px;
}

.info{
    color:white;
    text-decoration:none;
    font-size:20px;
    font-weight:bold;
    transition:.3s;
}

.info:hover{
    color:gold;
    transform:translateX(5px);
}

.helpdesk{
    text-align:center;
}

.logo-helpdesk img{
    width:150px;
    height:150px;
    border-radius:50%;
}

.helpdesk h2{
    font-size:24px;
    margin:20px 0;
}

.chat-box{
    width:100%;
    max-width:900px;
    height:180px;
    background:#23485b;
    color:white;
    border:none;
    border-radius:10px;
    padding:20px;
    font-size:16px;
    resize:none;
}

.btn-pesan{
    width:100%;
    max-width:900px;
    margin-top:20px;
}

/* ================= FOOTER ================= */
footer{
    background:#23485b;
    color:white;
    padding:20px 50px;
}

.footer-container{
    display:flex;
    justify-content:center;   /* tengah */
    align-items:flex-start;
    gap:400px;                 /* jarak kiri-kanan lebih dekat */
    flex-wrap:wrap;
}

.footer-left{
    display:flex;
    align-items:flex-start;
    gap:18px;
}

.footer-logo img{
    width:100px;
    height:100px;
    border-radius:50%;
}

.footer-text{
    max-width:300px;
}

.footer-text h3{
    font-size:18px;
    margin-bottom:8px;
    line-height:1.2;
}

.footer-text p{
    font-size:14px;
    line-height:1.5;
    margin:0;
}

.footer-right{
    text-align:left;
    margin-top:5px;
}

.footer-right p{
    font-size:14px;
    line-height:1.5;
    margin-bottom:10px;
}

.copyright{
    text-align:center;
    margin-top:15px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.3);
    font-size:14px;
}

@media(max-width:768px){

    header{
        flex-direction:column;
        padding:15px;
    }

    nav{
        margin-top:10px;
    }

    nav a{
        margin:8px;
        display:inline-block;
    }

    .hero{
        height:auto;
        padding:80px 20px;
    }

    .hero-content h1{
        font-size:22px;
    }

    .hero-content p{
        font-size:14px;
    }

    .program-container{
        grid-template-columns:1fr;
    }

    form{
        grid-template-columns:1fr;
    }

    .full,
    button{
        grid-column:auto;
    }

    .contact-container{
        gap:50px;
    }

    .map iframe{
        width:100%;
    }

    .footer-container{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .footer-left{
        flex-direction:column;
        align-items:center;
    }

    .footer-right{
        text-align:center;
    }
}

/* ================= PROFILE PAGE ================= */

.profile-page{
    height:650px;
    position:relative;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px;
    color:white;
    text-align:left;
}

.sejarah{
    background:url('../img/Gambar_SejarahSekolah-1\ 1.png') center/cover no-repeat;
}

.visi{
    background:url('../img/smkn6-header-2.jpg') center/cover no-repeat;
}

.profile-page .overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.profile-content{
    position:relative;
    max-width:900px;
    z-index:2;
}

.profile-content h1{
    font-size:52px;
    margin-bottom:15px;
    font-weight:bold;
}

.profile-content p{
    font-size:18px;
    line-height:1.5;
}

.struktur-page{
    padding:40px;
    background:#f2f2f2;
    text-align:center;
}

.struktur-page img{
    width:100%;
    max-width:1200px;
    border-radius:10px;
}

/* mobile */
@media(max-width:768px){

    .profile-page{
        height:auto;
        padding:100px 20px;
    }

    .profile-content h1{
        font-size:42px;
    }

    .profile-content p{
        font-size:16px;
    }
}

/* ================= PROGRAM PAGE ================= */

.program-detail{
    height:500px;
    margin:25px;
    border-radius:8px;
    overflow:hidden;
    background-size:cover;
    background-position:center;
    position:relative;
    display:flex;
    align-items:center;
    padding-left:50px;
}

.program-detail .overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.program-text{
    position:relative;
    color:white;
    max-width:650px;
    z-index:2;
}

.program-text h1{
    font-size:42px;
    margin-bottom:25px;
    font-weight:bold;
}

.program-text p{
    font-size:22px;
    line-height:1.6;
}

/* mobile */
@media(max-width:768px){

    .program-detail{
        height:350px;
        margin:15px;
        padding:20px;
    }

    .program-text h1{
        font-size:28px;
    }

    .program-text p{
        font-size:16px;
    }
}

.btn-lihat-data{
    display:block;
    text-align:center;
    text-decoration:none;
    background:#28a745;
    color:white;
    padding:12px;
    border-radius:8px;
    margin-top:15px;
    font-size:16px;
    transition:.3s;
}

.btn-lihat-data:hover{
    background:#1e7e34;
}