/*
  KIRTASS SMAN 17 Surabaya
  Stylesheet v6.0 - Blog Page Design
*/

/* ------------------- */
/* Variabel & Reset    */
/* ------------------- */
:root {
    --primary-color: #004080;
    --primary-dark: #002d5c;
    --secondary-color: #f4f4f9;
    --text-color: #333333;
    --heading-color: #1d2d35;
    --white-color: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Poppins', sans-serif; line-height: 1.7; color: var(--text-color); background-color: var(--white-color); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; max-width: 65ch; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }

/* ... (Kode CSS dari Navigasi hingga Kontak tetap sama) ... */

/* ------------------- */
/* Navigasi            */
/* ------------------- */
.navbar { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 0.8rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo-img { height: 45px; }
.nav-links { display: none; }
.nav-links a { color: var(--text-color); margin: 0 1.2rem; font-weight: 600; }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { height: 3px; width: 25px; background: var(--primary-color); border-radius: 2px; }

/* ------------------- */
/* Header & Tombol */
/* ------------------- */
.header { background-image: linear-gradient(rgba(0, 20, 40, 0.6), rgba(0, 20, 40, 0.6)), url('https://lh3.googleusercontent.com/d/17iOicBobqgRkjIDBdoIhLTYXNVno6w8G=w1000?authuser=1/view'); background-size: cover; background-position: center; min-height: 85vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white-color); }
.header-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white-color); }
.header-content p { font-size: 1.3rem; max-width: 600px; margin: 1rem auto 2.5rem auto; }
.header-buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.btn { padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; width: fit-content; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--white-color); border-color: var(--white-color); }
.btn-secondary:hover { background-color: var(--white-color); color: var(--primary-color); }

/* ------------------- */
/* Bagian: Tentang     */
/* ------------------- */
.tentang-wrapper { display: grid; gap: 2rem; align-items: center; }
.tentang-teks h2 { text-align: center; margin-bottom: 2rem; }
.tentang-teks h3 { margin-top: 2rem; }
.tentang-logo { text-align: center; }
.tentang-logo img { max-width: 200px; height: auto; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1)); }

/* ------------------- */
/* Video Profil (BARU) */
/* ------------------- */
#video-profil {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}
.video-title {
    text-align: center;
    margin-bottom: 3rem;
}
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

/* ------------------- */
/* Bagian: Kegiatan    */
/* ------------------- */
#kegiatan, #blog { background-color: var(--secondary-color); }
.kegiatan-slider-wrapper { position: relative; }
.kegiatan-scroll { display: flex; overflow-x: auto; padding: 0.5rem; gap: 1.5rem; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.kegiatan-scroll::-webkit-scrollbar { display: none; }
.kegiatan-card { flex: 0 0 280px; background-color: var(--white-color); border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--shadow); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.9); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; }
.left-arrow { left: 5px; }
.right-arrow { right: 5px; }

/* ------------------- */
/* Bagian: Galeri      */
/* ------------------- */
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.galeri-frame { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; cursor: pointer; }
.galeri-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.galeri-frame:hover img { transform: scale(1.05); }

/* Modal/Popup Galeri */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; animation: zoomIn 0.3s; }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }
.close-modal-button { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }

/* ------------------- */
/* Bagian: Blog (Gaya Thumbnail BARU) */
/* ------------------- */
#blog .blog-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
#blog .blog-post-link { display: block; color: inherit; text-decoration: none; }
#blog .blog-post {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* Agar gambar tidak keluar dari border-radius */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
#blog .blog-post-link:hover .blog-post { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-thumbnail {
    width: 100%;
    height: 200px; /* Tinggi gambar thumbnail */
    object-fit: cover;
}
.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-content h3 { font-size: 1.2rem; }
.blog-content p { font-size: 0.9rem; flex-grow: 1; }
.read-more-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--primary-color); }

/* ------------------- */
/* Bagian: Pendaftaran */
/* ------------------- */
#pendaftaran { background: linear-gradient(45deg, var(--primary-color), var(--primary-dark)); color: var(--white-color); padding: 5rem 1.5rem; }
#pendaftaran h2 { color: var(--white-color); }
#pendaftaran p { color: rgba(255, 255, 255, 0.9); }
.pendaftaran-cta { text-align: center; }
.pendaftaran-cta p { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
.pendaftaran-content { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.pendaftaran-poster { max-width: 100%; width: 500px; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 3px solid var(--white-color); }
#pendaftaran .btn-large { background-color: var(--white-color); color: var(--primary-dark); font-size: 1.2rem; padding: 1rem 3rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
#pendaftaran .btn-large:hover { background-color: #e9ecef; transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* ------------------- */
/* Bagian: Kontak & Footer */
/* ------------------- */
#kontak { padding-top: 6rem; padding-bottom: 6rem; }
.kontak-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; text-align: center; }
.kontak-info ul { list-style: none; padding: 0; }
.embed-map-responsive { position: relative; width: 100%; height: 350px; border-radius: var(--border-radius); overflow: hidden; }
.embed-map-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.footer { background-color: var(--heading-color); color: var(--white-color); text-align: center; padding: 2rem 1rem; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer p { margin: 0; opacity: 0.8; font-size: 0.9rem; }
.footer p a { color: var(--white-color); text-decoration: underline; opacity: 0.9; }
.footer p a:hover { opacity: 1; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--white-color); opacity: 0.7; }
.footer-links a:hover { opacity: 1; transform: scale(1.1); }
.footer-links svg { width: 24px; height: 24px; }

/* ... (Kode CSS untuk Halaman Blog tetap sama) ... */
.blog-article-page { padding: 4rem 0; background-color: #fff; }
.article-container { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e0e0e0; }
.article-title { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--heading-color); line-height: 1.3; margin-bottom: 1rem; }
.article-meta { font-size: 0.9rem; color: #666; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.article-meta .author, .article-meta .date { display: block; }
.article-main-image { width: 100%; height: auto; max-height: 450px; object-fit: cover; border-radius: var(--border-radius); margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.article-content p, .article-content li { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.article-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.6rem; color: var(--primary-dark); }
.article-content ol, .article-content ul { padding-left: 1.5rem; }
.back-link { display: inline-block; margin-top: 3rem; font-weight: 600; font-size: 1rem; color: var(--primary-color); text-decoration: none; border: 1px solid #ddd; padding: 0.5rem 1rem; border-radius: 50px; transition: all 0.3s ease; }
.back-link:hover { background-color: var(--secondary-color); border-color: #ccc; }

/* ------------------- */
/* Media Queries (Desktop View) */
/* ------------------- */
@media (min-width: 769px) {
    .nav-links { display: flex; }
    .hamburger { display: none; }
    .header-buttons { flex-direction: row; justify-content: center; }
    .tentang-wrapper { grid-template-columns: 2fr 1fr; gap: 3rem; }
    .tentang-teks h2 { text-align: left; }
    .tentang-logo { text-align: right; }
    .tentang-logo img { max-width: 100%; padding-top: 2rem; }
    #blog .blog-container { grid-template-columns: repeat(2, 1fr); } /* Tampilan 2 kolom untuk blog di desktop */
    .kontak-wrapper { grid-template-columns: 1fr 1.2fr; text-align: left; }
    .footer-container { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
    #blog .blog-container { grid-template-columns: repeat(4, 1fr); } /* Tampilan 4 kolom untuk blog di desktop besar */
}

/* Menu Navigasi Mobile yang Aktif */
.nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white-color); box-shadow: var(--shadow); border-top: 1px solid #eee; }
.nav-links.active a { padding: 1rem; text-align: center; border-bottom: 1px solid var(--secondary-color); }
