@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

* {
	margin:0;
	padding:0;
	font-family: 'Quicksand', sans-serif;
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

.float-left {
	float:left;
}

.container {
	width: 1140px;
	margin:0 auto;
}

.container::after {
	content: "";
	display: block;
	clear: both;
}

.bg-light {
	background-color: #fefefe;
}

.clearfix {
	clear:both;
}

.page-login {
	width: 100%;
	height: 100vh;
	background-color: #37474F;
	display: flex;
	justify-content: center;
	align-items: center;
}

.box {
	border:1px solid #ddd;
	background-color: #fff;
}

.box-header {
	padding:16px;
	border-bottom:1px solid #ddd;
	background-color: #f2f2f2;
}

.box-body {
	padding:16px;
}

.box-footer {
	border-top:1px solid #ddd;
	background-color: #f2f2f2;
	padding:16px;
}

form {
	margin:15px 0;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
}

.form-group .input-control {
	padding:10px 16px;
	width: 100%;
	font-size: 16px;
	border:1px solid #ddd;
}

.box-login {
	width:300px;
}

.btn {
	border:1px solid #ddd;
	padding:10px 16px;
	font-size: 16px;
}

.btn:hover {
	cursor: pointer;
}

.btn-blue {
	background-color: #2E8BC0;
	color: #fff;
	border:1px solid #2E8BC0;
}

.btn-blue:hover {
	background-color: #145DA0;
}

.text-center {
	text-align: center !important;
}

.alert {
	padding:10px 16px;
	border:1px solid;
}

.alert-error {
	background-color: #FABEC0;
	border:1px solid #E43D40;
	color: #E43D40;
}

.alert-success {
	background-color: #A3EBB1;
	border:1px solid #116530;
	color: #116530;
}

.navbar {
	height: 60px;
	width: 100%;
	background-color: #2E8BC0;
	position: fixed;
	top: 0;
	z-index: 1000;
}

.navbar a {
	color: #fff;
}

.nav-brand {
	display: inline-block;
	padding:15px 0;
	margin-right: 16px;
}

.nav-menu {
	display: flex;
	list-style: none;
}

.nav-menu li a {
	padding:20px;
	display: inline-block;
}

.nav-menu li .dropdown {
	border:1px solid #ddd;
	background-color: #fff;
	list-style: none;
	position: absolute;
	display: none;
}

.nav-menu li:hover {
	background-color: #145DA0;
}

.nav-menu li .dropdown a {
	color: #333;
}

.nav-menu li .dropdown li:hover a {
	color: #fff;
}

.nav-menu li:hover .dropdown {
	display: block;
}

.content {
	padding:80px 0 30px 0;
}

.footer {
	padding:20px 0;
}

.table {
	width:100%;
	border-collapse: collapse;
	margin:8px 0;
}

.table th,
.table td {
	border:1px solid #ddd;
	padding:10px;
}

.table td:first-child {
	width:50px;
	text-align: center;
}

.table td:last-child {
	width:150px;
	text-align: center;
}

.text-red {
	color: #E43D40;
}

.text-orange {
	color: #FF8300;
}

.text-green {
	color: #18A558;
}

.input-group:after {
	content: "";
	clear: both;
	display: block;
}

.input-group input[type="text"] {
	width: 90%;
	padding: 10px;
	font-size: 16px;
	float: left;
	border:1px solid #ddd;
}

.input-group input[type="text"]:focus {
	outline: none;
}

.input-group button {
	width: 10%;
	padding: 10px;
	font-size: 16px;
	float: left;
	border:1px solid #ddd;
	border-left: none;
}

.image {
	border:1px solid #ddd;
	padding:5px;
}
/* ===== HEADER FINAL (BERSIH & AMAN) ===== */

.header {
    background: #2E8BC0;
    border-bottom: 3px solid #0C2D48;
}

/* wrapper header */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

/* logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}


.header-logo h2 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

/* menu */
.header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.header-menu li {
    background: #114570;
    border-radius: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-menu li:hover {
    transform: scale(1.1);
    background: #1a68a7;
}

.header-menu li a {
    display: block;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    font-size: 15px;
}

/* Paksa warna link header */
.header a,
.header a:visited,
.header a:hover {
    color: #faf9f9 !important; /* atau #fff sesuai selera */
    text-decoration: none;
}

.banner {
    border: 1px solid;
    height: 70vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-text {
    padding: 25px 0;
    background-color: rgba(0,0,0, .5);
    color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* =========================================================
   BANNER FINAL – AMAN & RESPONSIVE
   ========================================================= */

.banner {
    width: 100%;
    height: 70vh;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none; /* hapus border lama */
}

/* Overlay gelap */
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.65)
    );
    z-index: 1;
}

/* Konten banner */
.banner-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    z-index: 2;
    background: none; /* matikan background lama */
}

/* Judul banner */
.banner-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Deskripsi banner */
.banner-text p {
    font-size: 18px;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .banner {
        height: 55vh;
    }

    .banner-text h2 {
        font-size: 26px;
    }

    .banner-text p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 45vh;
        min-height: 280px;
    }

    .banner-text h2 {
        font-size: 22px;
    }

    .banner-text p {
        font-size: 14px;
    }
}

.section {
	padding:25px;

}

.section h3 {
    text-align: left;
    position: relative;
    padding-left: 20px;   
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.section {
    padding: 25px; /* warna latar belakang halaman sambutan */
}

.kepsek-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px; /* jarak kiri–kanan */
}

/* Kolom kiri */
.kepsek-left {
    text-align: center; /* agar foto & nama sejajar rapi */

}

/* Foto */
.foto-kepsek {
    width: 300px;
    border-radius: 6px;
}

/* Nama di bawah foto */
.nama-kepsek {
    margin-top: 10px;
}
.tentang-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px; /* jarak antara foto & teks */
}

/* tentang sekolah */
.foto-tentang {
    width: 40%;      /* bisa diubah sesuai kebutuhan */
    border-radius: 8px;
}

/* Teks kanan */
.tentang-teks {
    flex: 1;
    text-align: justify;   /* biar rapi kiri–kanan */
    line-height: 1.6;
}
@media (max-width: 768px) {
    .tentang-wrapper {
        flex-direction: column;
    }

    .foto-tentang {
        width: 100%;
    }
}

.foto-struktur {
    width: 100%;
    max-width: 500px;      /* batasi ukuran maksimum */
    display: block;
    margin: 0 auto;        /* agar selalu di tengah */
    border-radius: 8px;
}
@media (max-width: 768px) {
    .foto-struktur {
        max-width: 350px;  /* lebih kecil di HP */
    }
}


/* Kolom kanan (isi sambutan) */
.kepsek-right {
    flex: 1;
    background: #f4f4f4;       /* warna background */
    padding: 20px;             /* jarak dalam */
    border-radius: 6px;        /* sudut melengkung */
    border: 1px solid #ddd;    /* garis tipis */
		text-align: justify;
	
}
@media (max-width: 768px) {

    /* Responsif sambutan kepsek */
    .kepsek-wrapper {
        flex-direction: column;   /* foto pindah atas */
        text-align: center;
    }

    .kepsek-left,
    .kepsek-right {
        width: 100%;              /* full lebar */
    }

    .foto-kepsek {
        width: 200px;             /* otomatis mengecil */
        margin: 0 auto;
    }

    .kepsek-right {
        margin-top: 15px;         /* jarak antara foto & teks */
        text-align: justify;      /* isi tetap rapi */
    }
}

.visi-misi-box {
    background: #f9f9ff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e6e6f2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    margin-top: 20px;
    max-width: 800px;        /* agar tidak melebar berlebihan */
    margin-left: auto;
    margin-right: auto;
}

/* Heading */
.visi-misi-box h4 {
    margin-bottom: 10px;
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .visi-misi-box {
        padding: 18px;
        border-radius: 8px;
    }

    .visi-misi-box p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Responsif extra kecil (HP kecil) */
@media (max-width: 480px) {
    .visi-misi-box {
        padding: 15px;
        margin-top: 15px;
    }

    .visi-misi-box h4 {
        font-size: 18px;
    }

    .visi-misi-box p {
        font-size: 14px;
    }
}

.judul-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Tombol keluar */
.btn-keluar {
    padding: 8px 16px;
    background: #2E8BC0;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

.btn-keluar:hover {
    background: #145DA0;
}

.jurusan-header {
    display: flex;
    justify-content: space-between; /* h3 kiri – tombol kanan */
    align-items: flex-start;        /* biar benar-benar rata atas */
    margin: 0;
    padding: 0;
}

.jurusan-header h3 {
    text-align: left;
    position: relative;
    padding-left: 20px;
    padding-bottom: 10px;
    margin: 0;                      /* hilangkan jarak agar nempel ke header */
}

.jurusan-header h3::after {
    content: "";
    display: block;
    width: 60px;
    position: absolute;
    bottom: 0;
    left: 24px;
}

.btn-keluar {
    padding: 8px 16px;
    background: red;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0;                 /* tombol nempel ke atas */
}

.detail-jurusan-wrapper {
    display: flex;
    gap: 0px;
    align-items: flex-start;
    margin-top: 20px;
}

.detail-foto {
    flex: 1;
}

.detail-image {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    object-fit: cover;
}

.detail-box {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 16px;
    line-height: 1.7;
}


/* Responsive tampilan HP */
@media (max-width: 768px) {
    .detail-jurusan-wrapper {
        flex-direction: column;
        align-items: center;  /* memastikan konten di tengah */
        text-align: center;
    }

    .detail-gambar {
        width: 100%;
        max-width: 350px; /* agar proporsional */
        margin: 0 auto;   /* benar-benar center */
    }

    .detail-box {
        width: 100%;
        text-align: justify;
        text-align: center; 
    }
}


.section img {
	margin-bottom: 10px;
}

.section h4 {
	margin-bottom: 20px;
}
.jurusan-container {
    width: 100%;                /* BIKIN RESPONSIF */
    max-width: 1140px;          /* batas maksimum seperti desain awal */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.col-4 {
    width: calc(25% - 20px);    /* 4 kolom di desktop */
    padding: 10px;
    display: block;
}

/* Box */
.thumbnail-box {
    border: 1px solid #ccc;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.thumbail-img {
    width: 100%;
    height: 160px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.thumbnail-text {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .col-4 {
        width: calc(33.33% - 20px);  /* 3 kolom */
    }
}

@media (max-width: 768px) {
    .col-4 {
        width: calc(50% - 20px);     /* 2 kolom */
    }
}

@media (max-width: 480px) {
    .col-4 {
        width: 100%;                 /* 1 kolom di HP kecil */
    }

    .thumbail-img {
        height: 150px;
    }
}

.thumbnail-link {
	color: #333;
}

.thumbnail-link:hover {
	color: red;
}

.judul-informasi {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;    /* judul tetap di kiri */
}

.informasi-wrapper {
    display: flex;
    gap: 25px;            /* jarak antara gambar dan teks */
    margin-top: 15px;
    align-items: flex-start;
}

.informasi-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* supaya semua item ke tengah */
    gap: 20px;
}

.col-4 {
    width: 250px;   /* ukuran box */
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .informasi-wrapper {
        justify-content: center; /* tetap di tengah */
    }

    .col-4 {
        width: 90%;             /* agar box tidak terlalu kecil */
        margin: 0 auto;         /* pusatkan */
    }

    .thumbnail-box {
        margin: 0 auto;         /* gambar benar-benar ke tengah */
    }
}

/* Gambar kiri */
.informasi-gambar {
    width: 45%;           /* atur sesuai kebutuhan */
    border-radius: 6px;
}

/* Teks kanan */
.informasi-teks {
    flex: 1;
    line-height: 1.7;
    text-align: justify;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.informasi-gambar {
    width: 45%;
    border-radius: 6px;
    border: 2px solid #ccc;   /* garis tepi */
    padding: 4px;             /* jarak antara border dan gambar */
    background: #fff;         /* biar terlihat rapi */
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .informasi-wrapper {
        flex-direction: column;     /* tumpuk ke bawah */
    }

    .informasi-gambar {
        width: 100%;                /* gambar penuh layar */
    }

    .informasi-teks {
        width: 100%;
        margin-top: 10px;
    }
}

/* Wrapper khusus untuk grid */
.informasi-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* semua box berada di tengah */
    gap: 20px;
}

.judul-informasi {
    font-size: 22px;     /* ukuran lebih kecil */
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.box-informasi {
    background: #f8f9fc;          /* warna lembut */
    border: 1px solid #dcdcdc;     /* garis tepi halus */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: justify; 
}

.box-informasi h3 {
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .box-informasi {
        padding: 15px;
    }
}

.col-4 {
    width: 260px;
}

.thumbnail-box {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.thumbail-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

#jurusan {
	background-color: #f5f5f5;
}
.pengantar-jurusan {
    background: #f8fbff;           /* warna lembut */
    border: 1px solid #dce7f3;     /* garis tipis */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: justify;
}
footer {
    padding: 50px;
    background: #2E8BC0;
    color: #fff;
    text-align: center;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-link {
    color: #fff;
    text-decoration: underline;
}

.footer-link:hover {
    opacity: 0.8;
}


.box-gmaps {
	float: left;
	width: 75%;
}

.mobile-menu-btn {
	width:100%;
	float: left;
	padding:10px;
	display: none;
}

.box-menu-mobile {
	display: none;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	background-color: rgba(0,0,0, .9);
	z-index: 9999;
}

.box-menu-mobile span {
	color: #fff;
	padding:10px;
	position: absolute;
	right: 0;
}

.box-menu-mobile ul {
	margin-top: 50px;
}

.box-menu-mobile ul li a {
	padding:10px;
	display: inline-block;
	color: #fff;
}
.kontak-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.kontak-info {
    width: 30%;
}

.kontak-maps {
    width: 70%;
}

.kontak-info p {
    margin-bottom: 15px;
}
.judul-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Tombol Keluar */
.btn-keluar {
    padding: 8px 16px;
    background: #2E8BC0;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.btn-keluar:hover {
    background: #145DA0;
}

.galeri-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* ukuran box FIX seperti jurusan */
.galeri-item {
    width: 260px;     /* BUKAN persen agar tidak gepeng */
}

.thumbnail-box {
    width: 100%;
    border: 1px solid #b9b8b8;
    background: #fff;
}

.thumbail-img {
    height: 160px; 
    background-size: cover;
    background-position: center;
}

.thumbnail-text {
    padding: 10px;
    text-align: center;
}

/* Responsif */
@media screen and (max-width: 768px){
    .galeri-item {
        width: 45%;
    }
}
.btn-keluar {
    float: right;
    background-color: #2E8BC0;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
}

.btn-keluar:hover {
    background-color: #145DA0;
    color: #fff;
}


/* Supaya judul dan tombol rapi */
.judul-galeri {
    position: relative;
    padding-left: 20px;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.judul-galeri::after {
    content: "";
    display: block;
    width: 60px;
    position: absolute;
    bottom: 0;
    left: 20px;
}


/* Responsif */
@media screen and (max-width: 768px){
    .kontak-wrapper {
        flex-direction: column;
    }

    .kontak-info, .kontak-maps {
        width: 100%;
    }
}
.pengantar-box {
    background: #f3f7ff;               /* warna lembut */
    border: 1px solid #dce6f7;         /* garis tipis */
    padding: 20px 25px;
    border-radius: 8px;
    line-height: 1.7;
    text-align: justify;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsif */
@media (max-width: 768px) {
    .pengantar-box {
        padding: 15px 18px;
    }
}


/*css mobile*/

@media screen and (max-width: 768px){

	.container {
		width:100%;
	}

	.col-4 {
		width:50%;
	}

	.thumbnail-text {
		font-size: 14px;
	}

	.header-logo {
		line-height: 50px;
		padding-left: 10px;
	}

	.header-logo img {
		width: 50px;
	}

	.header-logo h2 {
		font-size:20px;
	}

	.header-menu {
		display: none;
	}

	.box-gmaps {
		width: 100%;
	}

	.mobile-menu-btn {
		display: block;
	}

}
/* =========================================================
   UI POLISH FINAL – TAMBAHAN (AMAN DITEMPEL DI PALING BAWAH)
   ========================================================= */

/* ===== WARNA GLOBAL ===== */
:root {
    --primary: #2E8BC0;
    --primary-dark: #145DA0;
    --secondary: #0C2D48;
    --light: #f8f9fc;
    --text-dark: #333;
}

/* ===== HEADER & NAVBAR ===== */
.navbar,
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.header {
    border-bottom: 4px solid rgba(255,255,255,0.15);
}

.header-menu li {
    background: rgba(255,255,255,0.12);
    transition: all 0.3s ease;
}

.header-menu li:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.header-menu li a {
    color: #fff !important;
    font-weight: 600;
}

/* ===== BUTTON GLOBAL ===== */
.btn,
.btn-blue,
.btn-keluar,
.mobile-menu-btn a {
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover,
.btn-blue:hover,
.btn-keluar:hover,
.mobile-menu-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ===== BUTTON LOGIN / AKSI ===== */
.btn-blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-blue:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* ===== CARD / BOX EFFECT ===== */
.box,
.thumbnail-box,
.box-informasi,
.detail-box,
.visi-misi-box {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.box:hover,
.thumbnail-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* ===== JUDUL SECTION ===== */
.section h3::after,
.judul-galeri::after {
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn a {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ffffff, #e3f0ff);
    color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.box-menu-mobile {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: inset 0 6px 14px rgba(0,0,0,0.2);
}

/* ===== IMAGE SMOOTH ===== */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.03);
}

/* ===== TABLE ===== */
.table th {
    background: var(--primary);
    color: #fff;
}

.table tr:hover {
    background: #f1f7ff;
}
