/* =========================================
   HALAMAN UTAMA (BERANDA) - CSS LENGKAP
   ========================================= */

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

.home-section {
    margin-bottom: 90px;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.badge-gold {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: #d68910;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/assets/foto-sekolah.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 75%, #ffffff 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-desc {
    color: #e2e8f0;
    margin: 0 auto 35px;
    font-size: 1.15rem;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-btn {
    background: #ffffff;
    color: #000000;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.hero-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

/* =========================================
   2. APA ITU OSIS
   ========================================= */
.about-section {
    padding-top: 70px;
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 55px;
    align-items: center;
}

.about-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-card {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    background: #0b3d91;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(11, 61, 145, 0.18);
}

.about-logo-img {
    width: 100%;
    max-width: 190px;
    filter: brightness(0) invert(1);
}

.about-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.point-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0b3d91;
    color: #ffffff;
    font-size: 0.75rem;
}

/* =========================================
   3. STATS SECTION
   ========================================= */
.stats-section {
    max-width: 1000px;
    margin: 0 auto 90px;
    padding: 0 20px;
}

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

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0b3d91;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   4. VISI MISI SECTION
   ========================================= */
.visimisi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.visimisi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.visimisi-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.visimisi-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.visimisi-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.misi-list {
    padding-left: 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================
   5. PROGRAM KERJA (PROKER)
   ========================================= */
.proker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.proker-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.proker-card:hover {
    transform: translateY(-5px);
    border-color: #0b3d91;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.proker-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0b3d91;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.proker-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.proker-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   6. BERITA & PENGUMUMAN (Beranda)
   ========================================= */
.berita-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.berita-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.berita-card-cover {
    width: calc(100% + 60px);
    margin: -30px -30px 16px;
    height: auto;
    object-fit: contain;
    display: block;
}

.berita-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.berita-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.berita-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.berita-link {
    color: #0b3d91;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.berita-link:hover {
    text-decoration: underline;
}

/* =========================================
   7. FITUR KOMENTAR
   ========================================= */
.comment-box {
    max-width: 720px;
    margin: 0 auto;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 35px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background: #f8fafc;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0b3d91;
    background: #ffffff;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-submit {
    align-self: flex-end;
    background: #0b3d91;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-submit:hover {
    background: #0a2e6e;
}

.comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
}

.comment-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-item-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.comment-edited-badge {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.comment-item-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.comment-item-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px 0;
}

.comment-reply {
    margin-top: 14px;
    padding: 14px 16px;
    background: #eff6ff;
    border-left: 3px solid #0b3d91;
    border-radius: 0 12px 12px 0;
}

.comment-reply-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-reply-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0b3d91;
}

.comment-reply-text {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* =========================================
   8. FOOTER LENGKAP
   ========================================= */
.footer {
    background: #f4f4f5;
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.footer-logo {
    height: 32px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.contact-item {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--text-main);
    color: #ffffff;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   RESPONSIF (HP & TABLET)
   ========================================= */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-logo-card {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .visimisi-grid, .berita-grid {
        grid-template-columns: 1fr;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-submit {
        align-self: stretch;
    }

    .comment-item-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}