/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ROOT */
html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

/* BODY */
body {
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    text-align: center;
    min-height: 100vh;
}

.hero-side {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    gap: 40px;
    color: white;
}

.hero-text {
    text-align: left;
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* tombol lihat kelas*/
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #ddd;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px; /* batas maksimal */
}

.slider-container {
    width: 100%;
    aspect-ratio: 8 / 9; /* biar proporsional */
    overflow: hidden;
    border-radius: 15px;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* tombol */
.hero-image button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.dots span {
    width: 10px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dots span.active {
    background: white;
    transform: scale(1.3);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .hero-side {
        text-align: center;
        padding: 90px 35px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 490px;
    }

    .dots span {
        width: 8px;
        height: 2px;
    }
}

@media (max-width: 860px) {
    .hero-side {
        flex-direction: column;
        text-align: center;
        padding: 90px 35px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 470px;
        padding-top: 50px;
    }
}

@media (max-width: 380px) {
    .hero-side {
        flex-direction: column;
        text-align: center;
        padding: 90px 35px;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-image {
        max-width: 470px;
        padding-top: 50px;
    }

    .dots span {
        width: 5px;
        height: 1,5px;
    }
}

.story {
    padding: 200px 30px;
    background: #dddddd16;
}

.story-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
}

/* KIRI & KANAN */
.story-left,
.story-right {
    flex: 1;
    text-align: left;
    width: 500px;
    max-width: 100%;
}

.story h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.story p {
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 15px;
    text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .story {
        padding: 80px 40px;
    }

    .story-container {
        flex-direction: column;
        align-items: center;

    }

    .story-left,
    .story-right {
        text-align: left;
    }
}

.class-section{
    padding: 200px 0px;
}

.class-header {
    text-align: center;
    margin-bottom: 30px;
}

.class-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.class-header p {
    color: #ddd;
    font-size: 15px;
}

.class-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    padding: 50px 40px;
}

/* CARD */
.class-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 15px;
    transition: 0.3s;
}

.class-card:hover {
    transform: translateY(-10px);
}

/* FOTO 5:3 */
.class-card img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

/* TEXT */
.class-card h3 {
    margin: 15px 0 5px;
}

.class-card p {
    font-size: 14px;
    color: #ddd;
    padding: 0 15px;
    margin-bottom: 10px;
}

/* BUTTON */
.btn-class {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-class:hover {
    background: #667eea;
    color: white;
}

@media (max-width: 1090px) {
    .class-container {
        grid-template-columns: repeat(2, 1fr); /* jadi 2 */
        max-width: 820px;
    }
}

@media (max-width: 780px) {
    .class-container {
        grid-template-columns: 1fr; /* jadi 1 */
        max-width: 450px;
    }

    .class-card {
        align-items: center;
    
    }
}