/* ===================================================================
   HOMEPAGE NEW - STYLESHEET
   Template: HomePage New
=================================================================== */

/* ===================================================================
   1. HERO SECTION (Radial Glow + Particles)
=================================================================== */
.hero-section-new {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 75% 30%, var(--color-primary) 0%, #2b0e4a 50%, #150524 100%);
    color: var(--color-text-light);
    overflow: hidden;
    padding-top: 130px;  
    padding-bottom: 160px;
}

#hero-particles-new {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

.container-hero-new {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Kiri: Teks & Animasi Box Reveal */
.hero-left-new {
    flex: 1;
    max-width: 650px;
}

.reveal-text {
    position: relative;
    display: inline-block;
    color: transparent;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    animation: reveal-text-opacity 0.1s forwards;
    animation-delay: 0.8s;
}

.reveal-text::after {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background-color: var(--color-primary); 
    animation: reveal-box 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes reveal-box {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

@keyframes reveal-text-opacity {
    to { color: var(--color-text-light); }
}

.hero-left-new h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; color: var(--color-text-light); margin-bottom: 25px; }
.hero-left-new p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; color: var(--color-text-light); }

.hero-benefits-new { list-style: none; padding: 0; margin-bottom: 40px; }
.hero-benefits-new li { display: flex; align-items: center; margin-bottom: 12px; font-weight: 500; }
.hero-benefits-new .check-icon { margin-right: 15px; color: var(--color-success); }

/* Buttons */
.hero-buttons-new { display: flex; gap: 20px; }
.btn-primary-new { background-color: var(--color-yellow); color: var(--color-dark); padding: 15px 35px; border-radius: 50px; font-weight: 800; transition: transform 0.3s; }
.btn-primary-new:hover { transform: scale(1.05); }
.btn-secondary-new { background-color: transparent; color: var(--color-text-light); border: 2px solid var(--color-text-light); padding: 15px 35px; border-radius: 50px; font-weight: 700; transition: background 0.3s; }
.btn-secondary-new:hover { background: rgba(255,255,255,0.1); }

/* Kanan: Gambar & Floating Cards */
.hero-right-new { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-img-main { width: 100%; max-width: 700px; height: auto; object-fit: contain; z-index: 2; }

.float-card {
    position: absolute; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 12px; padding: 15px 25px; display: flex; flex-direction: column; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 3; animation: float-anim 6s ease-in-out infinite;
}
.float-card .float-title { font-weight: 800; color: var(--color-dark); font-size: 0.9rem; margin-bottom: 5px; }
.float-card .float-link { font-weight: 700; color: var(--color-secondary); font-size: 0.8rem; }
.float-1 { top: 10%; right: 0px; animation-delay: 0s; }
.float-2 { bottom: 15%; left: -30px; animation-delay: 1.5s; }
.float-3 { bottom: 5%; right: -10px; animation-delay: 3s; }

@keyframes float-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Animasi True Focus */
.hero-left-new h2.focus-text { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-left-new h2.focus-text .word-1 { color: var(--color-yellow) !important; }
.hero-left-new h2.focus-text .word-2 { color: var(--color-secondary-light) !important; }
.hero-left-new h2.focus-text .word-3 { color: var(--color-primary-lighter) !important; }

.focus-text .word {
    display: inline-block; filter: blur(12px); opacity: 0; transform: scale(1.15);
    will-change: filter, opacity, transform; animation: true-focus-anim 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-left-new h2.focus-text .word:nth-child(1) { animation-delay: 1.0s; }
.hero-left-new h2.focus-text .word:nth-child(2) { animation-delay: 1.2s; }
.hero-left-new h2.focus-text .word:nth-child(3) { animation-delay: 1.4s; }

@keyframes true-focus-anim {
    0% { filter: blur(12px); opacity: 0; transform: scale(1.15); }
    100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

/* --- HERO: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-hero-new { 
        padding: 0 50px; 
        flex-direction: column; /* Ubah ke kolom akibat ruang menyempit */
        text-align: center;
        gap: 60px;
    }
    .hero-left-new { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-left-new h2.focus-text { justify-content: center; }
    .hero-buttons-new { justify-content: center; }
    .reveal-text { font-size: 3rem; }
}

/* --- HERO: MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .container-hero-new { flex-direction: column; }
    .hero-buttons-new {
        display: flex;
        flex-direction: row; 
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    .btn-primary-new, .btn-secondary-new {
        padding: 10px 15px; 
        font-size: 0.85rem; 
        flex: 1; 
        text-align: center;
    }
    .float-card { padding: 8px 12px; border-radius: 8px; }
    .float-card .float-title { font-size: 0.7rem; margin-bottom: 2px; }
    .float-card .float-link { font-size: 0.65rem; }
    .float-1 { top: 25%; right: -5px; }
    .float-2 { bottom: 20%; left: -10px; }
    .float-3 { bottom: 5%; right: -5px; }
}


/* ===================================================================
   2. WHY US SECTION
=================================================================== */
.why-us-section-new {
    background-color: var(--color-light); border-radius: 50px 50px 0 0; padding: 100px 40px; margin-top: -45px; position: relative; z-index: 15;
}
.why-heading-new { color: var(--color-dark); text-align: center; margin-bottom: 60px; }
.why-grid-new { display: flex; gap: 40px; max-width: 1400px; margin: 0 auto; }
.why-left-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.why-card-transparent { background: transparent; border: 2px solid transparent; border-radius: 15px; padding: 20px; transition: all 0.3s ease; }
.why-card-transparent:hover { border-color: var(--color-primary); box-shadow: 0 10px 30px rgba(130, 10, 229, 0.1); transform: translateY(-5px); }
.why-card-transparent svg { color: var(--color-primary); margin-bottom: 15px; width: 32px !important; height: 32px !important; }
.why-card-transparent h3 { font-size: 1rem; color: var(--color-dark); margin-bottom: 10px; }
.why-card-transparent p { color: var(--color-text-muted); font-size: 0.85rem; line-height: 1.5; }

.why-right-img { flex: 1; display: flex; align-items: center; justify-content: center; }
.why-right-img img { border-radius: 20px; width: 100%; max-width: 600px; height: auto; object-fit: cover; }

/* --- WHY US: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .why-us-section-new { padding: 80px 50px; }
    .why-grid-new { flex-direction: column; gap: 40px; } /* Diubah ke kolom agar text dan gambar lega */
    .why-right-img img { max-width: 100%; }
}

/* --- WHY US: MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .why-us-section-new { padding: 60px 20px; }
    .why-grid-new { flex-direction: column; }
}


/* ===================================================================
   3. TESTIMONI SECTION (Slider Infinite)
=================================================================== */
.testimoni-section-new {
    background: radial-gradient(circle at 75% 30%, var(--color-primary-light) 0%, #2b0e4a 50%, #150524 100%);
    color: var(--color-text-light); border-radius: 0 0 50px 50px; padding: 80px 40px; text-align: center;
}
.testimoni-section-new h2.section-title { color: #ffffff !important; }
.testimoni-section-new p.section-subtitle { color: #ffffff !important; opacity: 0.9; }
.testimoni-slider-container { max-width: 1200px; margin: 50px auto 0; overflow: hidden; position: relative; padding: 10px 0; }
.testimoni-grid-new { display: flex; gap: 30px; transition: transform 0.6s ease-in-out; will-change: transform; align-items: stretch; }

.testi-card {
    flex: 0 0 calc(33.333% - 20px); background-color: var(--color-light); border-radius: 15px;
    border: 2px solid var(--color-primary); padding: 30px; display: flex; flex-direction: column;
    text-align: left; box-sizing: border-box; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.t-stars { color: #FFD700; font-size: 1.3rem; margin-bottom: 10px; letter-spacing: 2px; }
.t-quote { font-style: italic; flex-grow: 1; color: var(--color-dark); margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 15px; }
.testi-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: top; }
.author-info h4 { margin: 0; font-size: 1rem; color: var(--color-dark); }
.author-info span { font-size: 0.8rem; color: var(--color-primary); font-weight: 700; }

/* --- TESTIMONI: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .testimoni-section-new { padding: 80px 50px; }
    .testi-card { flex: 0 0 calc(50% - 15px); } /* Menampilkan 2 Card di Tablet */
}

/* --- TESTIMONI: MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .testimoni-section-new { padding: 60px 20px; border-radius: 0 0 30px 30px;}
    .testi-card { flex: 0 0 100%; } 
}


/* ===================================================================
   4. CLIENT SECTION
=================================================================== */
.client-section { background-color: var(--color-light); color: var(--color-dark); padding: 80px 20px;}

.partner-logo-slider { position: relative; height: 180px; width: 100%; display: flex; align-items: center; justify-content: center; }
.partner-logo-slider img { position: absolute; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s, transform 1s; transform: scale(0.6); }
.partner-logo-slider img.active { opacity: 1; transform: scale(0.9); }

.card-image-container { overflow: hidden; padding: 30px 0; display: flex; flex-direction: column; gap: 20px; }
.marquee-row { width: 100%; overflow: hidden; }
.marquee-row-2 .logo-carousel-wrapper { animation-direction: reverse; }
.logo-carousel-wrapper { display: flex; gap: 50px; align-items: center; width: fit-content; animation: marqueeScroll 15s linear infinite; }
.logo-carousel-wrapper:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } 
}
.card-image { width: 150px; flex-shrink: 0; }
.card-image img { width: 100%; height: auto; object-fit: contain; }

/* --- CLIENT: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .client-section { padding: 80px 50px; } /* Jarak aman tepi browser */
}


/* ===================================================================
   5. PROGRAM SECTION
=================================================================== */
.program-section-new { background-color: var(--color-light); padding: 80px 40px; }
.program-layout-new { display: flex; gap: 30px; max-width: 1400px; margin: 0 auto; }

.program-left-panel { flex: 1; background: var(--color-light); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); height: fit-content; position: sticky; top: 100px; }
.pg-rating { color: var(--color-primary); font-size: 2.5rem; font-weight: 800;}

.program-right-panel { flex: 3; overflow: hidden; }
.program-cards-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;}
.program-card { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.program-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;}
.program-card:hover img { transform: scale(1.1);}

.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; }
.card-overlay h4 { color: white; margin-bottom: 15px; font-size: 1.5rem;}
.btn-ambil-program { background-color: var(--color-yellow); color: var(--color-dark); padding: 8px 20px; border-radius: 5px; font-weight: 700;}

/* --- PROGRAM: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .program-section-new { padding: 80px 50px; }
    .program-layout-new { flex-direction: column; }
    .program-left-panel { position: static; margin-bottom: 30px; }
}

/* --- PROGRAM: MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .program-section-new { padding: 60px 20px; }
    .program-layout-new { flex-direction: column; }
    .program-left-panel { display: none !important; }
    .program-cards-wrapper {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important; 
        scroll-snap-type: none !important; 
        gap: 20px !important; 
        width: 100% !important;
        padding-bottom: 0 !important;
    }
    .program-cards-wrapper > div { 
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: none !important; 
    }
}


/* ===================================================================
   6. PEMATERI SECTION (UI REVISED)
=================================================================== */
.pemateri-section-new { background: radial-gradient(circle at 75% 30%, var(--color-primary-light) 0%, #2b0e4a 50%, #150524 100%); border-radius: 50px 50px 0 0; padding: 100px 20px; text-align: center; overflow: hidden; }
.pemateri-carousel-container { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.pemateri-slider-viewport { overflow: hidden; width: 100%; padding: 15px 0; position: relative; }
.pemateri-carousel-wrapper { display: flex; gap: 20px; will-change: transform; align-items: stretch; }

.card-pemateri-new { flex: 0 0 calc(25% - 15px); background-color: #ffffff; border-radius: 20px; padding: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); display: flex; flex-direction: column; box-sizing: border-box; text-align: left; }
.pemateri-img-wrapper { background-color: #820AE5; border-radius: 25px 25px 25px 0; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 20px; position: relative; }
.pemateri-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pemateri-info { background-color: #ffffff; flex-grow: 1; display: flex; flex-direction: column; }
.pemateri-name { font-size: 1.1rem; font-weight: 800; color: #1a1a1a; margin: 0 0 8px 0; }
.pemateri-desc { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.5; }
.pemateri-separator { border-top: 1px solid #eaeaea; margin: 15px 0; }
.pemateri-footer { display: flex; justify-content: space-between; align-items: center; }
.pemateri-tutor-text { font-size: 0.85rem; color: #888; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 75%; }

.pemateri-linkedin { width: 32px; height: 32px; background-color: #0077b5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; flex-shrink: 0; transition: transform 0.3s; }
.pemateri-linkedin:hover { transform: scale(1.1); }
.pemateri-linkedin svg { width: 14px; height: 14px; fill: currentColor; }

.nav-arrow-pemateri { display: flex !important; align-items: center; justify-content: center; width: 45px; height: 45px; background: white; color: var(--color-primary); border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; transition: all 0.3s; }
.nav-arrow-pemateri:hover { background: var(--color-primary); color: white; }
.nav-arrow-pemateri.prev { left: 0; }
.nav-arrow-pemateri.next { right: 0; }

.pemateri-dots-container { display: flex; justify-content: flex-start; gap: 10px; max-width: 1200px; margin: 20px auto 0; padding: 0 60px; position: relative; z-index: 10; }
.pemateri-dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.2); border: 2px solid #ffffff; transition: all 0.3s ease; cursor: pointer; }
.pemateri-dot.active { background-color: #ffffff; width: 30px; border-radius: 10px; }

/* --- PEMATERI: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .pemateri-section-new { padding: 100px 50px; }
    .card-pemateri-new { flex: 0 0 calc(33.333% - 14px); } /* 3 Kartu di Tablet */
    .pemateri-carousel-container { padding: 0 40px; } /* Jarak panah diatur */
}

/* --- PEMATERI: MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .pemateri-section-new { padding: 60px 15px; border-radius: 30px 30px 0 0; }
    .card-pemateri-new { flex: 0 0 100%; } 
    .pemateri-carousel-container { padding: 0 50px; } 
    .pemateri-dots-container { display: none !important; } 
    .nav-arrow-pemateri { width: 35px; height: 35px; font-size: 0.8rem; }
}


/* ===================================================================
   7. KEGIATAN SECTION
=================================================================== */
.kegiatan-section { background-color: var(--color-light); color: var(--color-dark); padding: 80px 0; text-align: center;}
.carousel-kegiatan-wrapper { display: flex; align-items: center; padding: 20px 0; gap: 20px;}
.card-kegiatan { width: 280px; flex-shrink: 0; border-radius: 10px; overflow: hidden; opacity: 0.5; transform: scale(0.8); transition: all 0.5s;}
.card-kegiatan.active { opacity: 1; transform: scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.15);}

/* --- KEGIATAN: TABLET OPTIMIZATION --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .kegiatan-section { padding: 80px 50px; }
}