:root {
    /* Ekstraksi Warna Logo Sekolah & Logo SUPER */
    --blue-primary: #2B328C;       /* Biru Perisai Utama Logo SDN 1 & Teks SUPER */
    --blue-primary-dark: #1E2366;  /* Versi gelap untuk hover/footer */
    --blue-secondary: #0072BC;     /* Biru Bola Dunia Logo SUPER */
    --bg-secondary-soft: #EBF4FA;  /* Background Sekunder Terang & Bersih */
    --blue-tertiary: #6CA6CD;      /* Biru Pita "SDN 1 BANJAR" */
    --accent-orange: #F7941D;      /* Oranye Kujang Logo Sekolah */
    --accent-yellow: #FFF200;      /* Kuning Bintang & Lingkar Luar SUPER */
    --accent-green: #00A651;       /* Hijau Buku Logo Sekolah */
    --text-dark: #1E293B;
    --text-muted: #526071;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-ubuntu {
    font-family: 'Ubuntu', sans-serif;
}

/* Utilitas Warna Teks */
.text-primary-custom { color: var(--blue-primary) !important; }
.text-secondary-custom { color: var(--blue-secondary) !important; }
.text-orange-custom { color: var(--accent-orange) !important; }
.text-green-custom { color: var(--accent-green) !important; }

/* Top Bar Sosial Media */
.top-bar {
    background-color: var(--blue-primary-dark);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--accent-yellow);
}

/* Navbar Custom */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(43, 50, 140, 0.07);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-custom.navbar-scrolled {
    padding: 8px 0;
    box-shadow: 0 8px 25px rgba(43, 50, 140, 0.14);
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.brand-title {
    color: var(--blue-primary);
    font-size: 1.2rem;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--blue-primary) !important;
    background-color: var(--bg-secondary-soft);
}

.btn-login-guru {
    background-color: var(--blue-primary);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 24px !important;
    border-radius: 50px;
    border: 2px solid var(--blue-primary);
    transition: all 0.25s ease;
}

.btn-login-guru:hover {
    background-color: transparent;
    color: var(--blue-primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    position: relative;
    background: radial-gradient(circle at 90% 10%, rgba(108, 166, 205, 0.18) 0%, rgba(255, 255, 255, 0) 55%);
}

.badge-est {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-secondary-soft);
    color: var(--blue-primary);
    border: 1.5px solid var(--blue-tertiary);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-primary);
    margin-bottom: 20px;
}

.hero-title .highlight-orange {
    color: var(--accent-orange);
}

.hero-title .highlight-secondary {
    color: var(--blue-secondary);
}

.super-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.super-pill-item {
    background-color: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-left: 4px solid var(--blue-secondary);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.super-pill-item strong {
    color: var(--blue-primary);
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
}

.btn-cta-primary {
    background-color: var(--blue-secondary);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--blue-secondary);
    transition: all 0.25s ease;
}

.btn-cta-primary:hover {
    background-color: var(--blue-primary);
    border-color: var(--blue-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-cta-outline {
    background-color: #ffffff;
    color: var(--blue-primary);
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--blue-tertiary);
    transition: all 0.25s ease;
}

.btn-cta-outline:hover {
    background-color: var(--bg-secondary-soft);
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

.hero-image-box {
    position: relative;
    border: none;          
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.hero-image-box img.main-hero {
    width: 100%;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
    display: block;
    border: none;
}

.floating-super-badge {
    position: absolute;
    bottom: -20px;
    left: 24px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--accent-yellow);
}

.floating-super-badge img {
    height: 44px;
    width: auto;
}

.badge-super-title {
    font-size: 0.95rem;
}

.badge-super-sub {
    font-size: 0.75rem;
}

/* Section Selamat Datang (Background Warna Sekunder) */
.welcome-section {
    background-color: var(--bg-secondary-soft);
    padding: 80px 0;
    border-top: 2px solid rgba(108, 166, 205, 0.3);
    border-bottom: 2px solid rgba(108, 166, 205, 0.3);
}

.welcome-card {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 40px;
    border: 2px solid rgba(108, 166, 205, 0.4);
    box-shadow: 0 12px 30px rgba(0, 114, 188, 0.06);
}

.stat-box {
    background-color: var(--bg-secondary-soft);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1.5px solid var(--blue-tertiary);
    height: 100%;
}

.stat-box h3 {
    color: var(--blue-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

/* Section Judul Umum */
.section-badge {
    display: inline-block;
    background-color: var(--bg-secondary-soft);
    color: var(--blue-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    color: var(--blue-primary);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    margin-bottom: 12px;
}

/* Section Program Pembiasaan */
.pembiasaan-section {
    padding: 80px 0;
}

.habit-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Memindahkan posisi logo ke rata kanan */
    width: 100%;               /* Memastikan wrapper selebar card */
    margin: 15px 0;            /* Memberi jarak atas dan bawah */
}

.habit-logo-img {
    width: 80%;                /* Mengatur lebar logo menjadi 80% dari card */
    height: auto;              /* Menjaga proporsi logo */
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); 
    transition: transform 0.25s ease;
}

.habit-card:hover .habit-logo-img {
    transform: scale(1.05); /* Skala hover sedikit diturunkan agar tidak berlebihan karena logo sudah besar */
}

.habit-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    height: 100%;
    border: 2px solid #E2E8F0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.habit-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-secondary);
    box-shadow: 0 16px 32px rgba(43, 50, 140, 0.09);
}

.habit-day {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
    background-color: var(--bg-secondary-soft);
    color: var(--blue-primary);
}

.habit-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.bg-icon-primary { background-color: var(--blue-primary); }
.bg-icon-secondary { background-color: var(--blue-secondary); }
.bg-icon-orange { background-color: var(--accent-orange); }
.bg-icon-green { background-color: var(--accent-green); }

.habit-acronym {
    color: var(--blue-secondary);
    font-size: 0.9rem;
}

/* Section Ekstrakurikuler GALERI */
.ekskul-section {
    padding: 80px 0;
    background-color: #F8FAFC;
}

.badge-dapodik {
    background-color: var(--blue-primary);
    font-size: 0.85rem;
}

.ekskul-card {
    background-color: #ffffff;
    border-radius: 22px;
    padding: 20px;
    border: 1.5px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    height: 100%;
}

.ekskul-card:hover {
    border-color: var(--blue-primary);
    background-color: var(--bg-secondary-soft);
    transform: translateY(-3px);
}

.ekskul-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background-color: var(--blue-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.col-sm-6:nth-child(even) .ekskul-icon {
    background-color: var(--blue-secondary);
}

.ekskul-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--blue-primary);
}

.ekskul-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Maps */
.maps-section {
    padding: 80px 0;
}

.map-wrapper {
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--blue-tertiary);
    box-shadow: 0 15px 35px rgba(43, 50, 140, 0.1);
    background-color: var(--bg-secondary-soft);
}

.map-responsive {
    position: relative;
    padding-bottom: 42%;
    height: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 75%;
    }
    .welcome-card {
        padding: 24px;
    }
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer-main {
    background-color: var(--blue-primary-dark);
    color: #E2E8F0;
    padding: 70px 0 30px;
    border-top: 6px solid var(--blue-tertiary);
}

.footer-logo {
    height: 52px;
    background: #ffffff;
    padding: 5px;
    border-radius: 14px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    transform: translateX(4px);
}

.social-btn-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.social-btn-footer:hover {
    background-color: var(--blue-secondary);
    color: #ffffff;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: #94A3B8;
}

/* Tombol Back to Top */
.btn-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--blue-primary);
    color: #ffffff;
    border: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(43, 50, 140, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1030;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background-color: var(--blue-secondary);
    transform: translateY(-3px);
}