/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font dan body umum */
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #8a3434;
    color: white;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5em;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover, .btn-nav {
    background-color: #521c1c;
    border-radius: 5px;
}

/* Hero section */
.hero {
    background-image: url('foto/maxresdefault.jpg'); /* Placeholder foto latar belakang. Ganti dengan URL foto sekolah Anda */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 60px; /* Offset untuk header fixed */
}

.hero .overlay {
    background: rgba(0, 0, 0, 0.5); /* Overlay gelap untuk teks lebih terbaca */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    max-width: 600px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8a3434;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
     background-color: #8a3434;
}

/* Section umum */
.section {
    padding: 50px 20px;
    background-color: rgb(180, 180, 180);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #8a3434;
}

/* Jurusan grid */
.jurusan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.jurusan-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.jurusan-item h3 {
    margin-bottom: 10px;
    color: #8a3434;
}

/* Footer */
footer {
    background-color: #2c0505;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Halaman registrasi */
.container {
    max-width: 600px;
    margin: 100px auto 50px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #8a3434;
}

.container p {
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #8a3434;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsivitas */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .hero h2 {
        font-size: 2em;
    }
    .jurusan-grid {
        grid-template-columns: 1fr;
    }
}