* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --secondary: #1E40AF;
    --accent: #10B981;
    --light: #F3F4F6;
    --dark: #1F2937;
    --gray: #9CA3AF;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #FFFFFF;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR */
.navbar-v1 {
    background: #FFFFFF;
    border-bottom: 2px solid var(--light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-v1 .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
}

/* HERO */
.hero-v1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #F0F9FF 0%, #F3E8FF 100%);
}

.hero-content-v1 h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

.tagline {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--light);
}

.hero-image-v1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    font-size: 15rem;
    opacity: 0.8;
}

/* SECTION */
.section-v1 {
    padding: 80px 20px;
}

.section-v1.bg-light {
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--dark);
}

/* 3 KOLOM */
.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.column-v1 {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.column-v1:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.column-v1 .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.column-v1 h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.column-v1 p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* STATS COUNTER */
.stats-counter-v1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: white;
    text-align: center;
}

.stat-counter h4 {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-counter p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CAROUSEL */
.carousel-guru {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.guru-card-v1 {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.guru-card-v1:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.guru-photo-v1 {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.guru-photo-v1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guru-info-v1 {
    padding: 1.5rem;
}

.guru-info-v1 h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.guru-info-v1 p {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-carousel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-carousel:hover {
    background: var(--primary);
    color: white;
}

/* TIMELINE */
.timeline-v1 {
    position: relative;
    padding: 2rem 0;
}

.timeline-v1::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--light);
}

.berita-timeline {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.berita-timeline:nth-child(odd) {
    justify-content: flex-start;
}

.berita-timeline:nth-child(odd) .berita-content-timeline {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
    width: calc(50% - 1rem);
}

.berita-timeline:nth-child(even) {
    justify-content: flex-end;
}

.berita-timeline:nth-child(even) .berita-content-timeline {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    width: calc(50% - 1rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    z-index: 1;
}

.berita-content-timeline {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.berita-content-timeline h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.berita-content-timeline .tanggal {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.berita-content-timeline p {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* MASONRY */
.masonry-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    grid-auto-rows: 250px;
}

.masonry-v1 img:nth-child(3n) {
    grid-row: span 2;
}

.masonry-item-v1 {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.masonry-item-v1:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.masonry-item-v1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.masonry-item-v1:hover img {
    transform: scale(1.1);
}

/* MODAL */
.modal-v1 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-v1.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.modal-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

/* KONTAK */
.kontak-layout-v1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.kontak-info-v1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.info-box p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-v1 {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-v1 h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-v1 input,
.form-v1 textarea {
    padding: 12px;
    border: 1px solid var(--light);
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-v1 input:focus,
.form-v1 textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* FOOTER */
.footer-v1 {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-v1 p {
    margin: 0.5rem 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-v1 {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }

    .hero-content-v1 h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .image-placeholder {
        font-size: 8rem;
    }

    .three-column {
        grid-template-columns: 1fr;
    }

    .stats-counter-v1 {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-v1::before {
        display: none;
    }

    .berita-timeline {
        justify-content: flex-start !important;
    }

    .berita-timeline .berita-content-timeline {
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        display: none;
    }

    .kontak-layout-v1 {
        grid-template-columns: 1fr;
    }

    .kontak-info-v1 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        background: white;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* SECTION SUBTITLE */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* EKSTRAKURIKULER GRID */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ekskul-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.ekskul-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.ekskul-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
}

.ekskul-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ekskul-card:hover .ekskul-image img {
    transform: scale(1.1);
}

.ekskul-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ekskul-card:hover .ekskul-overlay {
    opacity: 1;
}

.btn-view {
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.ekskul-info {
    padding: 1.5rem;
}

.ekskul-info h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.ekskul-info p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ekskul-badge {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary);
}

/* RESPONSIVE EKSKUL */
@media (max-width: 768px) {
    .ekskul-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ekskul-grid {
        grid-template-columns: 1fr;
    }
}