:root {
    --primary-red: #c01818;
    --accent-red: #e62e2e;
    --dark-red: #800c0c;
    --bg-dark: #121824;
    --bg-card: #1e2638;
    --bg-card-light: #ffffff;
    --text-light: #f1f5f9;
    --text-dark: #1e293b;
    --text-muted: #94a3b8;
    --accent-black: #0b0f19;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER / BANNER UTAMA BERLATAR FOTO */
.main-header {
    position: relative;
    /* Ganti 'bg_lab.jpg' dengan nama file gambar latar Anda */
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.75) 0%, rgba(128, 12, 12, 0.85) 100%), 
                url('bg_lab.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: 90px 20px 100px;
    text-align: center;
    border-bottom: 5px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.logo-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.logo-item:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(230, 46, 46, 0.3);
}

.logo-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 2px;
}

.logo-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-red);
    letter-spacing: 0.5px;
}

.title-container h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.blinking-text {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 10px rgba(230, 46, 46, 0.6); }
    50% { text-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 35px var(--accent-red); }
    100% { text-shadow: 0 0 10px rgba(230, 46, 46, 0.6); }
}

.title-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f87171;
    letter-spacing: 1px;
}

.title-container p {
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
    color: #e2e8f0;
    font-weight: 400;
}

/* SECTION GENERAL STYLING */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* PROFIL & SEJARAH SEKOLAH */
.school-profile {
    background-color: var(--bg-dark);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.profile-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.profile-text {
    background: var(--bg-card-light);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 6px solid var(--primary-red);
    color: var(--text-dark);
}

.profile-text h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark-red);
    font-weight: 800;
}

.profile-text p {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: justify;
}

.profile-leader {
    background: var(--bg-card-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 6px solid var(--primary-red);
    transition: var(--transition);
}

.profile-leader:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 46, 46, 0.2);
}

.profile-leader img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--primary-red);
}

.profile-leader h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.leader-title {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 700;
}

/* PROFIL TKR */
.tkr-profile {
    background: #182030;
}

/* GALERI KEGIATAN SISWA */
.activities {
    background-color: var(--bg-dark);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.activity-card {
    background: var(--bg-card-light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(230, 46, 46, 0.25);
}

.activity-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.activity-card h3 {
    font-size: 1rem;
    padding: 20px;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

/* AREA DUA VIDEO */
.video-container-wrapper {
    background: #182030;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sub-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 800;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.video-box {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 2px solid var(--primary-red);
}

.video-box video, .video-box iframe {
    width: 100%;
    height: 250px;
    display: block;
    border: none;
}

.video-caption {
    background: var(--bg-card-light);
    color: var(--text-dark);
    padding: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

/* STATISTIK */
.statistics {
    background: #182030;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-box {
    background: var(--bg-card-light);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(230, 46, 46, 0.3);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* SASARAN KERJA */
.career-target {
    background-color: var(--bg-dark);
}

.section-desc {
    text-align: center;
    max-width: 750px;
    margin: -30px auto 40px;
    color: var(--text-muted);
    font-weight: 500;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.career-item {
    background: var(--bg-card-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-bottom: 5px solid var(--primary-red);
    transition: var(--transition);
}

.career-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 46, 46, 0.2);
}

.career-item i {
    font-size: 2.8rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.career-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 800;
}

.career-item p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* KONTAK CENTER */
.contact-center {
    background: #182030;
    text-align: center;
}

.contact-center p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.whatsapp-box {
    display: inline-block;
}

.wa-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25d366;
    color: #ffffff;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.wa-button:hover {
    background-color: #1ebd56;
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

.wa-button i {
    font-size: 1.5rem;
}

/* FOOTER */
footer {
    background-color: var(--accent-black);
    color: var(--text-muted);
    text-align: center;
    padding: 35px 20px;
    border-top: 3px solid var(--primary-red);
}

footer p {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.producer {
    color: #64748b;
    font-size: 0.85rem;
}

.producer strong {
    color: var(--accent-red);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .profile-grid, .profile-grid.reverse {
        grid-template-columns: 1fr;
    }
    .title-container h1 {
        font-size: 2.2rem;
    }
}


/* CREATED BY — teks sederhana di bagian paling bawah */
.created-by { margin-top: 18px; }
.created-by-title { margin-bottom: 9px; color: var(--accent-red); font-size: .8rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.created-by-names { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px 18px; max-width: 850px; margin: 0 auto; }
.created-by-names span { color: var(--text-muted); font-size: .88rem; }
.created-by-names span + span::before { content: "•"; color: var(--accent-red); margin-right: 18px; }
@media (max-width: 520px) { .created-by-names { gap: 8px 12px; } .created-by-names span { font-size: .82rem; } .created-by-names span + span::before { margin-right: 12px; } }
