:root {
    /* Mengambil warna dari Logo */
    --primary-blue: #00BFFF;
    /* Warna Langit Logo */
    --dark-blue: #00509E;
    /* Warna Dasar Logo */
    --mountain-green: #2ECC71;
    /* Warna Gunung */
    --stairs-yellow: #F1C40F;
    /* Warna Tangga */
    --yellow: #ffc107;
    /* Warna Kuning Bootstrap */
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main Content Wrapper */
main {
    flex: 1;
}

/* ===============================
   NAVBAR STYLES
   =============================== */
.navbar-custom {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #003366 100%);
    border-bottom: 3px solid var(--yellow);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: bold;
    color: var(--white) !important;
}

.navbar-custom .nav-link {
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 2px 0;
}

.navbar-custom .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--yellow) !important;
}

.navbar-custom .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--yellow) !important;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/sekolah-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    border-bottom: 10px solid var(--mountain-green);
}

/* ===============================
   CARDS
   =============================== */
.card-header {
    background-color: var(--dark-blue);
    color: white;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* ===============================
   BUTTONS
   =============================== */
.btn-ppdb {
    background-color: var(--stairs-yellow);
    color: var(--dark-blue);
    font-weight: bold;
    border: 2px solid var(--dark-blue);
}

.btn-ppdb:hover {
    background-color: #d4ac0d;
}

/* ===============================
   FOOTER SECTION STYLES
   =============================== */
.footer-section {
    margin-top: auto;
}

.footer-section a {
    transition: all 0.3s ease;
}

.footer-section .footer-link:hover {
    color: var(--yellow) !important;
    padding-left: 5px;
}

.footer-section .social-icons a:hover {
    color: var(--yellow) !important;
    transform: scale(1.2);
}

.footer-section .social-icons a {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ===============================
   RESPONSIVE STYLES
   =============================== */

/* Mobile First - Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Table responsive */
    .table-responsive {
        font-size: 0.85rem;
    }

    /* Form inputs */
    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
        padding: 90px 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero {
        padding: 120px 0;
    }
}

/* ===============================
   IMAGE RESPONSIVE
   =============================== */
img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   GALLERY GRID RESPONSIVE
   =============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===============================
   FORM RESPONSIVE
   =============================== */
.form-floating>label {
    left: 12px;
}

/* ===============================
   ANIMATIONS
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===============================
   UTILITIES
   =============================== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--dark-blue);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-blue);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}