/* Custom Variables untuk Warna SMA Al Kautsar */
:root {
    --navy: #001f3f;
    --gold: #d4af37;
    --gold-light: #f1d592;
    --green-alkautsar: #2e7d32;
    --white: #ffffff;
}

body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* 3. Navbar agar Teks Tidak Terpotong */
.navbar-alkautsar .navbar-brand {
    white-space: normal; /* Supaya teks judul sekolah bisa turun ke bawah jika layar sempit */
    font-size: 0.9rem; /* Perkecil sedikit di HP */
    text-align: center;
    line-height: 1.4;
}

/* 1. Pastikan Container Tidak Meluber */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}



/* 2. Perbaikan Card agar Menyesuaikan Layar HP */
.card-custom {
    width: 100% !important; /* Jangan pakai width pixel (px) */
    max-width: 500px; /* Batas maksimal di layar PC */
    margin: 0 auto; /* Supaya card selalu di tengah */
    border-radius: 15px;
    overflow: hidden;
}

.card-header-alkautsar {
    background-color: var(--navy);
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
    padding: 20px;
    text-align: center;
}

/* Tombol */
.btn-alkautsar {
    background-color: var(--green-alkautsar);
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-alkautsar:hover {
    background-color: var(--navy);
    color: var(--gold);
    border: 2px solid var(--gold);
}

/* Timer Countdown */
#timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.timer-segment {
    background: var(--navy);
    color: var(--gold);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.timer-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.timer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--white);
}

/* Status Lulus */
.status-lulus {
    color: var(--green-alkautsar);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 20px;
    border: 2px dashed var(--green-alkautsar);
    display: inline-block;
    border-radius: 10px;
}
/* Styling Footer Keren Pak Lukman */
.footer-developer {
    background-color: #022956;
    border-top: 3px solid var(--gold);
    color: #ffffff;
    /*padding: 10px 0; /* Padding diperkecil agar tidak terlalu tinggi */
    margin-top: 40px;
    width: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Membuat tulisan "Developed with" lebih terang */
.footer-developer .text-muted {
    color: #ced4da !important; 
    font-weight: 300;
}

.dev-name {
    font-size: 1.2rem; /* Ukuran font diperkecil sedikit */
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.dev-name:hover {
    color: var(--gold); /* Berubah jadi Gold saat hover */
    text-shadow: 0 0 20px rgba(212, 175, 55, 1), 0 0 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px); /* Efek sedikit terangkat */
}

.tech-stack span {
    font-size: 0.7rem; /* Tag teknologi diperkecil */
    padding: 2px 10px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    margin: 0 3px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
}

.footer-developer small {
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Styling Bingkai untuk Pas Foto Persegi Panjang (Portrait) */
.student-photo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    z-index: 10;
}

.student-photo-frame {
    /* Menyesuaikan ukuran untuk Pas Foto */
    width: 140px;  /* Lebar kotak */
    height: 190px; /* Tinggi kotak (lebih tinggi dari lebar) */
    
    /* Bingkai Kotak Modern */
    border-radius: 15px; /* Sudut sedikit tumpul, jangan 50% */
    border: 6px solid #ffffff; /* Garis tepi putih tebal */
    background-color: #f8f9fa;
    
    /* Efek Mewah */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 15px rgba(212, 175, 55, 0.6); /* Shadow + Emas */
    
    /* MENCEGAH FOTO GEPENG */
    object-fit: cover; /* Foto akan dipotong sedikit agar pas, tidak ditarik/ditekan */
    object-position: center top; /* Memastikan wajah di atas tidak terpotong */
    
    /* Animasi Masuk (Sudah Ada) */
    animation: photoEntrance 1s ease-out;
    transition: all 0.3s ease;
}

/* Membuat Toga Melayang di Samping Bingkai */
.student-photo-container::after {
    content: '🎓';
    position: absolute;
    top: -20px;
    right: -25px;
    font-size: 2.2rem;
    background-color: var(--gold);
    color: #ffffff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 20;
}

/* Hover Effect agar interaktif */
.student-photo-frame:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 25px rgba(212, 175, 55, 0.8);
}

/* Styling Box Informasi Penting */
.card[style*="background-color: #fff9e6"] {
    animation: slideUp 0.8s ease-out;
}

.card[style*="background-color: #fff9e6"] li {
    padding-left: 5px;
}

.card[style*="background-color: #fff9e6"] li strong {
    color: #b02a37; /* Warna merah gelap untuk penekanan */
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.congratulations-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid #2e7d32;
    position: relative;
    z-index: 10; /* Supaya di atas confetti */
}
.congratulations-card h1 { color: #2e7d32; font-size: 3rem; letter-spacing: 5px; }
.congratulations-card h2 { color: #001f3f; font-size: 1.5rem; }
.divider { width: 100px; height: 5px; background: #d4af37; margin: 15px auto; border-radius: 5px; }

/* Styling Tipografi Header */
.fw-800 { font-weight: 800; }
.text-navy { color: #001f3f; }
.letter-spacing-2 { letter-spacing: 4px; }
.tracking-wide { letter-spacing: 2px; font-size: 0.9rem; }

.header-pengumuman {
    position: relative;
    padding-top: 20px;
}

/* Judul dengan Efek Bayangan Lembut */
.header-pengumuman h1 {
    text-shadow: 2px 2px 0px rgba(212, 175, 55, 0.1);
    font-family: 'Poppins', sans-serif;
}

/* Garis Pembatas Emas yang Elegan */
.header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #001f3f, #d4af37, #001f3f);
    border-radius: 10px;
}

/* Branding Sekolah */
.school-branding h4 {
    font-family: 'Poppins', sans-serif;
    color: #001f3f;
    position: relative;
    display: inline-block;
}

/* Efek garis bawah tipis pada nama sekolah */
.school-branding h4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: rgba(212, 175, 55, 0.5);
    bottom: -5px;
    left: 25%;
}

/* Contoh sentuhan shadow halus di style.css */
.congratulations-card {
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15) !important;
}