/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}
body {
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* NAVIGATION BAR */
nav {
    background: #D32F2F;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
nav .logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    padding: 2px;
    object-fit: cover;
}
nav .menu {
    display: flex;
    gap: 5px;
}
nav .menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
nav .menu a:hover, nav .menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('tmm.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    font-weight: 800;
}
.hero p {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffcdd2;
}

/* CARDS & CONTAINERS */
.card {
    background: white;
    padding: 25px;
    margin: 20px auto;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card-announcement {
    border-left: 5px solid #D32F2F;
}
.card h3 {
    color: #222;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 8px;
}
h2 {
    color: #D32F2F;
    text-align: center;
    margin: 30px 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

/* BUTTONS */
.btn {
    display: block;
    max-width: 400px;
    margin: 15px auto;
    padding: 14px;
    background: #D32F2F;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(211,47,47,0.3);
    transition: all 0.2s ease;
}
.btn:hover {
    background: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(211,47,47,0.4);
}
.btn-kembali {
    display: block;
    width: 220px;
    margin: 25px auto;
    padding: 12px;
    background: #555;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-kembali:hover {
    background: #333;
}

/* GRIDS & LAYOUTS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
}
.panitia-card {
    background: #fff;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.panitia-card:hover {
    transform: translateY(-4px);
}
.panitia-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #f1f1f1;
}

/* GALERI SECTION */
.grid-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 10px 0;
}
.kartu-galeri {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.3s;
}
.kartu-galeri:hover {
    transform: translateY(-5px);
}
.kartu-galeri img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.kartu-galeri .caption {
    padding: 15px;
}
.kartu-galeri .caption h4 {
    color: #D32F2F;
    margin-bottom: 6px;
    font-size: 16px;
}
.kartu-galeri .caption p {
    font-size: 14px;
    color: #666;
}

/* MEDIA EMBEDS */
iframe {
    width: 100%;
    border: 0;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.video-box {
    max-width: 800px;
    margin: 0 auto 20px auto;
}
.video-box iframe {
    height: 400px;
}

/* KEGIATAN ITEMS */
.link-kegiatan {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.2s;
}
.link-kegiatan:hover {
    background: #fff8f8;
    border-color: #ffcdd2;
}
.link-kegiatan img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    background: #f1f1f1;
    border-radius: 8px;
    margin-top: 12px;
}

/* GLOBAL FOOTER STYLE */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
    border-top: 4px solid #D32F2F;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-col h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 16px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #D32F2F;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}
.sosmed {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}
.sosmed a {
    display: inline-block;
}
.sosmed img {
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}
.sosmed img:hover {
    transform: scale(1.15);
}
.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 13px;
    color: #777;
}

/* RESPONSIVE LAYOUT */
@media(max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    nav .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav .menu a {
        font-size: 13px;
        padding: 6px 10px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 14px;
    }
    .video-box iframe {
        height: 240px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .sosmed {
        justify-content: center;
    }
}