/* Base Styles */
:root {
    --primary-color: #0d47a1;
    --primary-hover: #1565c0;
    --accent-color: #f1c40f;
    --success-color: #27ae60;
    --success-hover: #2ecc71;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f4f6f8;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-y: scroll; /* Fix navbar geser saat ganti halaman */
}

/* Navbar */
.navbar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    align-items: center;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Underline Hover Effect for Nav Links */
.nav-links li a:not(.btn-daftar)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width 0.3s ease, right 0.3s ease;
}

.nav-links li a:not(.btn-daftar):hover {
    color: var(--accent-color);
}

.nav-links li a:not(.btn-daftar):hover::after {
    width: 100%;
    left: 0;
}

/* Register Button in Navbar */
.btn-daftar {
    background: var(--success-color);
    color: var(--text-light) !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease !important;
}

.btn-daftar:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

/* Content Area */
.content {
    padding: 40px;
    min-height: 70vh;
    animation: fadeIn 0.8s ease-in-out;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px 40px 20px 40px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 35px;
    width: 35px;
    border-radius: 5px;
    object-fit: cover;
}

.footer-logo h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.school-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.social-icon {
    color: var(--text-light);
    opacity: 0.85;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.15);
    opacity: 1;
}

.social-icon.instagram:hover {
    color: #e1306c;
}

.social-icon.tiktok:hover {
    color: #ff0050;
}

.footer-col h4 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

/* Global Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger button - hidden on desktop by default */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================
   RESPONSIVE - Tablet & Mobile
   ========================================================== */
@media (max-width: 900px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        background: var(--primary-color);
        position: absolute;
        left: 0;
        top: 70px;
        padding: 10px 20px 20px;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-daftar {
        display: inline-block;
        margin-top: 8px;
    }

    .content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .content {
        padding: 15px;
    }

    .footer {
        padding: 35px 20px 20px;
    }
}
