:root {
    --primary: #2E7D32;      /* Hijau segar - pendidikan */
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary: #FFC107;     /* Kuning keemasan - energik */
    --accent: #2196F3;        /* Biru cerah - profesional */
    --bg-light: #F5F9F0;      /* Putih kehijauan soft */
    --white: #FFFFFF;
    --text-dark: #2D3E2F;
    --text-gray: #6B7280;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-md: 0 20px 40px rgba(0,0,0,0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.admin-link {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 8px 20px;
    border-radius: 30px;
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: #FFD54F;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 4px;
}

/* About */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image .image-frame {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    font-size: 100px;
    color: white;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-gray);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Programs */
.programs {
    padding: 80px 0;
    background: var(--bg-light);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.program-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.program-card p {
    color: var(--text-gray);
}

/* PSB */
.psb {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.psb-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
}

.psb-info-card {
    text-align: center;
}

.psb-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.psb-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tahun-ajaran {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.psb-dates {
    text-align: left;
    margin: 25px 0;
}

.date-item {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-psb {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-psb:hover {
    transform: scale(1.05);
    background: #FFD54F;
}

.psb-highlight ul {
    list-style: none;
}

.psb-highlight li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.psb-highlight li i {
    color: var(--secondary);
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--secondary);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: none;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo i {
    font-size: 40px;
    margin-bottom: 15px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin: 10px 0;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        box-shadow: var(--shadow-sm);
    }
    .nav-menu.active {
        left: 0;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    .about-grid, .psb-wrapper, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
}
/* ========== BERITA & PENGUMUMAN ========== */
.berita {
    padding: 80px 0;
    background: var(--white);
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.berita-card-item {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.berita-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.berita-card-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.berita-card-category.berita { background: #E3F2FD; color: #1976D2; }
.berita-card-category.pengumuman { background: #FFF3E0; color: #F57C00; }
.berita-card-category.prestasi { background: #E8F5E9; color: #2E7D32; }
.berita-card-category.kegiatan { background: #F3E5F5; color: #7B1FA2; }

.berita-card-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.berita-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.berita-card-date, .berita-card-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.berita-card-item p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.berita-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.berita-stats {
    display: flex;
    gap: 15px;
}

.like-btn, .share-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: 0.3s;
}

.like-btn {
    color: #999;
}

.like-btn i {
    transition: transform 0.2s;
}

.like-btn.liked {
    color: #e74c3c;
}

.like-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.share-btn {
    color: #4CAF50;
}

.like-btn:hover, .share-btn:hover {
    background: #f0f0f0;
}

.berita-card-readmore {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.berita-card-readmore i {
    transition: transform 0.3s;
}

.berita-card-item:hover .berita-card-readmore i {
    transform: translateX(5px);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2E7D32;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    z-index: 2000;
    opacity: 0;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Modal Detail Berita */
.modal-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-detail-content {
    background: white;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-category.berita { background: #E3F2FD; color: #1976D2; }
.modal-category.pengumuman { background: #FFF3E0; color: #F57C00; }
.modal-category.prestasi { background: #E8F5E9; color: #2E7D32; }
.modal-category.kegiatan { background: #F3E5F5; color: #7B1FA2; }

.modal-close {
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-detail-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.modal-date, .modal-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body {
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-like-btn, .modal-share-btn, .modal-close-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.modal-like-btn {
    background: #f0f0f0;
    color: #999;
}

.modal-like-btn.liked {
    background: #ffeaea;
    color: #e74c3c;
}

.modal-like-btn.liked i {
    color: #e74c3c;
}

.modal-share-btn {
    background: #E8F5E9;
    color: #4CAF50;
}

.modal-close-btn {
    background: #e0e0e0;
    color: #666;
}

.modal-like-btn:hover, .modal-share-btn:hover, .modal-close-btn:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .berita-grid {
        grid-template-columns: 1fr;
    }
    .modal-detail-content {
        padding: 20px;
    }
    .modal-footer {
        flex-wrap: wrap;
    }
    .berita-meta {
        flex-direction: column;
        gap: 5px;
    }
    .toast-notification {
        white-space: normal;
        text-align: center;
        max-width: 80%;
    }
}

.berita-empty {
    text-align: center;
    padding: 60px;
    background: var(--bg-light);
    border-radius: var(--radius);
    color: var(--text-gray);
}

.berita-empty i {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========== GALERI FOTO BERITA ========== */

/* Badge jumlah foto */
.foto-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.berita-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.berita-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ========== MODAL GALERI ========== */
.modal-galeri {
    margin-bottom: 20px;
}

.galeri-main {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
}

.galeri-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeri-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.galeri-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.galeri-thumb.active {
    border-color: #2E7D32;
}

.galeri-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeri-thumb:hover {
    opacity: 0.8;
}

.galeri-nav {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.galeri-nav button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.galeri-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Responsive galeri */
@media (max-width: 768px) {
    .galeri-main {
        height: 200px;
    }
    .galeri-thumb {
        width: 50px;
        height: 50px;
    }
    .foto-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}