/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ==================== VARIABLES CSS ==================== */
:root {
    --header-height: 4rem;

    /* Colors */
    --primary-color: #2563EB;
    --primary-color-alt: #1D4ED8;
    --title-color: #1E293B;
    --text-color: #475569;
    --text-color-light: #64748B;
    --body-color: #F8FAFC;
    --container-color: #FFFFFF;
    --border-color: #E2E8F0;

    /* Font and typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    /* Font weight */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* ==================== BASE ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


.container {
    max-width: 1024px;
    margin: 0 auto; /* Ini akan menengahkan container secara horizontal */
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 4.5rem 0 2rem;
}

.section-title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
}

.btn:hover {
    background-color: var(--primary-color-alt);
}

.btn i {
    margin-left: .5rem;
}

/* ==================== HEADER & NAV ==================== */
#header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: .4s;
    padding: 12px;
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
}

.nav-link:hover, .active-link {
    color: var(--primary-color);
}

.btn-header {
    padding: .75rem 1.5rem;
}

.nav-toggle {
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
}

/* Change background header */
.scroll-header {
    background-color: var(--container-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    padding: 8rem 0 4rem;
}

.hero-container {
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
}

.hero-content h1 {
    font-size: var(--biggest-font-size);
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

.hero-content h2 {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 2rem;
    max-width: 450px;
}

.hero-image img {
    border-radius: 1rem;
    width: 480px;
    justify-self: center;
}

/* ==================== PROGRAM ==================== */
.program-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: .5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: .3s;
}

.program-card:hover {
    transform: translateY(-.5rem);
    box-shadow: 0 8px 24px hsla(228, 66%, 45%, .15);
}

.program-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

/* ==================== MATERI & BENEFIT ==================== */
.materi-container, .benefit-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
}

.materi-content p {
    margin-bottom: 2rem;
}

.materi-list, .benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.materi-list-right {
    padding-top: 3.5rem; /* align with the second row */
}

.materi-list li, .benefit-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.materi-list i, .benefit-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* ==================== MENTOR ==================== */
.mentor {
    background-color: var(--container-color);
}

.mentor-container {
    display: flex;
    justify-content: center;
}

.mentor-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    max-width: 700px;
}

.mentor-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.mentor-info h3 {
    font-size: var(--h2-font-size);
}

.mentor-info h4 {
    font-size: var(--h3-font-size);
    color: var(--primary-color);
    font-weight: var(--font-medium);
    margin-bottom: 1rem;
}

.mentor-info p {
    margin-bottom: 1.5rem;
}

.mentor-social {
    font-size: 1.5rem;
    color: var(--title-color);
}

/* ==================== COUNTER ==================== */
.counter {
    background-image: url('hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.counter .section-title {
    color: white;
}

.counter-container {
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    background-color: hsla(228, 24%, 12%, 0.6);
    padding: 3rem 2rem;
    border-radius: 1rem;
}

.counter-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.counter-item h3 {
    font-size: var(--h1-font-size);
    color: white;
    margin-bottom: .5rem;
}

/* ==================== JADWAL ==================== */
.jadwal-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.jadwal-card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.jadwal-card h4 {
    color: var(--primary-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

/* ==================== TESTIMONI ==================== */
.testimoni-container {
    display: flex;
    justify-content: center;
}

.testimoni-card {
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: .5rem;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--border-color);
}

.testimoni-card > .fa-quote-left {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color-alt);
    opacity: 0.1;
}

.testimoni-card p {
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
}

.testimoni-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimoni-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimoni-name h4 {
    font-size: var(--h3-font-size);
}

.testimoni-name span {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* ==================== FAQ ==================== */
.faq-container {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    padding: 1rem 1.5rem;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-header h3 {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.faq-header i {
    font-size: 1.25rem;
    transition: .3s;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}

.faq-content p {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* Active FAQ item */
.faq-item.active .faq-content {
    max-height: 200px; /* Adjust as needed */
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--title-color);
    color: var(--text-color-light);
    padding: 3rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer .logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-copy {
    font-size: var(--small-font-size);
    margin-top: 1rem;
}


/* ==================== MEDIA QUERIES (RESPONSIVE) ==================== */
@media screen and (max-width: 1024px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: var(--small-font-size);
    }
    .section {
        padding: 4rem 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        background-color: var(--container-color);
        top: -100%;
        left: 0;
        width: 100%;
        padding: 4rem 0 3rem;
        border-radius: 0 0 1.5rem 1.5rem;
        box-shadow: 0 1px 4px rgba(0,0,0,.1);
        transition: .4s;
    }
    
    .nav-menu.show-menu {
        top: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }
    
    .btn-header { display: none; }

    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; margin-bottom: 2rem; }
    .hero-content p { margin: 1rem auto 2rem; }
    
    .program-container { grid-template-columns: 1fr; }
    
    .materi-container, .benefit-container { grid-template-columns: 1fr; }
    .materi-list-right { padding-top: 1rem; }
    
    .mentor-card { grid-template-columns: 1fr; text-align: center; }
    .mentor-image { margin: 0 auto; }
    
    .counter-container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    .jadwal-container { grid-template-columns: 1fr; }
}

@media screen and (max-width: 350px) {
    :root {
        --biggest-font-size: 1.75rem;
        --h1-font-size: 1.5rem;
    }
    .container {
        margin-left: .75rem;
        margin-right: .75rem;
    }
}