<style>
body {
    /* Tambahkan !important agar mengalahkan background putih bawaan Bootstrap */
    background-color: #0D0D0D !important;
    color: white !important;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.navbar {
    background: #111 !important;
}

/* --- HERO SECTION STYLING --- */
.hero {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    color: #ff2d2d;
    font-weight: bold;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: bgSlide 36s infinite linear;
}

.hero-bg-slider img:nth-child(1)  { animation-delay: 0s; }
.hero-bg-slider img:nth-child(2)  { animation-delay: 3s; }
.hero-bg-slider img:nth-child(3)  { animation-delay: 6s; }
.hero-bg-slider img:nth-child(4)  { animation-delay: 9s; }
.hero-bg-slider img:nth-child(5)  { animation-delay: 12s; }
.hero-bg-slider img:nth-child(6)  { animation-delay: 15s; }
.hero-bg-slider img:nth-child(7)  { animation-delay: 18s; }
.hero-bg-slider img:nth-child(8)  { animation-delay: 21s; }
.hero-bg-slider img:nth-child(9)  { animation-delay: 24s; }
.hero-bg-slider img:nth-child(10) { animation-delay: 27s; }
.hero-bg-slider img:nth-child(11) { animation-delay: 30s; }
.hero-bg-slider img:nth-child(12) { animation-delay: 33s; }
.hero-bg-slider img:nth-child(13) { animation-delay: 36s; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero .container-content {
    position: relative;
    z-index: 3;
}

@keyframes bgSlide {
    0% { opacity: 0; transform: scale(1); }
    3% { opacity: 1; }
    8% { opacity: 1; }
    11% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

/* --- RUNNING PHOTO BANNER --- */
.running-gallery {
    width: 100%;
    overflow: hidden;
    background: #141414;
    padding: 20px 0;
    border-top: 2px solid #C1121F;
    border-bottom: 2px solid #C1121F;
    position: relative;
}

.gallery-track {
    display: flex;
    width: calc(340px * 24); 
    animation: marqueeScroll 50s linear infinite; 
}

.gallery-track img {
    width: 320px;
    height: 200px;
    object-fit: cover;
    margin: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-track img:hover {
    transform: scale(1.2); 
    position: relative;
    z-index: 10; 
    box-shadow: 0 10px 25px rgba(193, 18, 31, 0.6); 
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-340px * 12)); 
    }
}

/* --- KARTU & TITLE STYLING --- */
.btn-red {
    background: #C1121F;
    color: white;
}

.card {
    /* Beri !important agar mengalahkan warna putih kartu Bootstrap */
    background-color: #1B1B1B !important;
    border: 1px solid #C1121F;
    border-radius: 15px;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px red;
}

.section-title {
    color: #ff3b3b;
    margin-bottom: 30px;
}

footer {
    background: #111;
    padding: 20px;
    text-align: center;
}

.p-4, .p-4 * {
    color: #fff !important;
}

a {
    text-decoration: none;
}


/* Background PCB */
body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    linear-gradient(90deg,rgba(255,0,0,.08) 2px,transparent 2px),
    linear-gradient(rgba(255,0,0,.08) 2px,transparent 2px),
    radial-gradient(circle at 20% 20%,rgba(255,0,0,.15),transparent 20%),
    radial-gradient(circle at 80% 70%,rgba(255,0,0,.15),transparent 20%);
    background-size:120px 120px;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    background:
    repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(255,0,0,.05) 61px,
        rgba(255,0,0,.05) 63px
    );
    z-index:-1;
}

.title{
    color:#ff2b2b;
    font-size:38px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:3px;
    text-align:center;
    margin-top:40px;
}

.subtitle{
    color:#ccc;
    text-align:center;
    margin-bottom:40px;
}

.pcb-box{
    width:90%;
    max-width:1200px;
    margin:auto;
    border:2px dashed rgba(255,0,0,.5);
    border-radius:18px;
    padding:30px;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(5px);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:25px;
}

.org-card{
    background:#111;
    border:2px solid #ff2b2b;
    border-radius:18px;
    padding:25px;
    text-align:center;
    transition:.4s;
    box-shadow:0 0 20px rgba(255,0,0,.25);
}

.org-card:hover{
    transform:translateY(-8px) scale(1.03);
    box-shadow:0 0 30px rgba(255,0,0,.6);
}

.kelas{
    font-size:22px;
    font-weight:700;
    color:#ff4444;
}

.line{
    width:70px;
    height:3px;
    background:#ff2b2b;
    margin:15px auto;
}

.jumlah{
    font-size:48px;
    font-weight:bold;
    color:#ffffff;
    text-shadow:0 0 15px red;
}

.siswa{
    color:#bbbbbb;
    margin-top:10px;
}

.total-box{
    margin-top:40px;
    border:2px solid #ff2b2b;
    border-radius:20px;
    padding:25px;
    text-align:center;
    background:#111;
    box-shadow:0 0 25px rgba(255,0,0,.4);
}

.total-title{
    color:#ff2b2b;
    font-size:24px;
    font-weight:bold;
}

.total{
    font-size:70px;
    font-weight:bold;
    color:#fff;
    text-shadow:0 0 20px red;
}

.footer{
    text-align:center;
    color:#888;
    margin:35px;
}

.card-pcb{
    background:#111;
    border:2px solid #ff2b2b;
    border-radius:18px;
    padding:30px;
    margin-bottom:30px;
    transition:.4s;
    box-shadow:0 0 20px rgba(255,0,0,.20);
}

.card-pcb:hover{
    transform:translateY(-5px);
    box-shadow:0 0 30px rgba(255,0,0,.45);
}

.org-card{
    background:#111;
    border:2px solid #ff2b2b;
    border-radius:18px;
    transition:.4s;
    box-shadow:0 0 20px rgba(255,0,0,.25);
}

.org-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 30px rgba(255,0,0,.6);
}

.photo{
    width:140px;
    height:140px;
    border-radius:50%;
    border:4px solid #ff2b2b;
    object-fit:cover;
    margin:auto;
    display:block;
}

.position{
    color:#ff4444;
    font-weight:600;
}

.line{
    width:70px;
    height:3px;
    background:#ff2b2b;
    margin:10px auto;
}

.pcb-box{
    border:2px dashed rgba(255,0,0,.5);
    padding:20px;
    border-radius:15px;
}



.table-box{
    background:#111;
    border:2px solid #ff2b2b;
    border-radius:18px;
    overflow:auto;
    box-shadow:0 0 25px rgba(255,0,0,.25);
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:1200px;
}

th{
    background:#b30000;
    color:white;
    padding:16px;
    font-size:17px;
}

td{
    padding:16px;
    border-bottom:1px solid rgba(255,255,255,.1);
    vertical-align:top;
}

tr:nth-child(even){
    background:#181818;
}

tr:hover{
    background:#2a0000;
}

.kode{
    text-align:center;
    font-weight:bold;
    color:#ff5555;
    width:120px;
}

.elemen{
    font-weight:600;
    color:#ffffff;
    width:330px;
}

.deskripsi{
    color:#dddddd;
    text-align:justify;
    line-height:1.7;
}






/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .map-container iframe {
        height: 450px;
    }
}

</style>