/* =======================================================================
STYLE.CSS (RESPONSIVE REVISION) - RUMAH BELAJAR
Version: 6.0.0 - Mobile-First Responsive Build
======================================================================= */

/* 1. VARIABEL WARNA & FONT */
:root {
    --header-height: 4.5rem;
    --color-primary: #14B8A6;
    --color-secondary: #10B981;
    --color-hover: #0F766E;
    --color-background-start: #F8FAFC;
    --color-background-end: #EFF6FF;
    --color-background-light: #FFFFFF;
    --color-text-dark: #1F2937;
    --color-text-light: #4B5563;
    --color-accent-blue: #3B82F6;
    --shadow-base: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
}

/* 2. BASE RESET & KREATIF BACKGROUND */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--color-background-start);
    color: var(--color-text-dark); 
    line-height: 1.7;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-background-start) 0%, var(--color-background-end) 100%);
    z-index: -1;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. HEADER & NAVIGATION (MOBILE-FIRST) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.08);
    transition: all 0.3s ease;
}

.nav-container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-size: 1rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--color-text-dark); 
}

.logo-text img { 
    height: 2rem; 
    width: 2rem; 
    object-fit: contain; 
}

.nav-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-dark);
}

.nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: right 0.4s ease;
    padding: 2rem;
    overflow-y: auto;
}

.nav-menu.show-menu {
    right: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding-top: 2rem;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.hide-on-mobile {
    display: none;
}


/* 4. HERO SECTION */
.hero-section {
    position: relative; 
    height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    text-align: center; 
    overflow: hidden;
    padding: var(--header-height) 1rem 0;
}
#bg-video { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 1;
}
.video-overlay { 
    position: absolute; inset: 0; 
    background-color: rgba(10, 20, 30, 0.7); z-index: 2;
}
.hero-content-wrapper { 
    position: relative; z-index: 3; width: 100%;
}
.hero-content-inner { max-width: 800px; margin: 0 auto; }
.hero-headline { 
    font-size: clamp(2rem, 8vw, 3.8rem); 
    font-weight: 800; 
    line-height: 1.2; 
    color: white; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); 
    margin-bottom: 1rem; 
}
.hero-headline span { color: var(--color-primary); }
.hero-subheader { 
    font-size: clamp(1rem, 4vw, 1.25rem); 
    color: #E5E7EB; 
    margin-bottom: 2.5rem; 
    max-width: 600px; 
    margin-left: auto; margin-right: auto; 
}
.cta-button {
    padding: 0.75rem 1.5rem; 
    background: var(--gradient-primary);
    color: white; font-weight: 600; border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease; border: none; cursor: pointer; display: inline-block;
    font-size: 1rem;
}
.cta-button:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); 
}
.hero-cta-button { padding: 1rem 2.5rem; font-size: 1.1rem; } 
.social-proof-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.75rem 1rem; 
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px);
    font-size: 0.8rem; 
    font-weight: 600; 
    color: white; 
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 5. CONTENT SECTIONS & TYPOGRAPHY */
.main-content { padding: 4rem 0; }
.centered-heading { text-align: center; margin-bottom: 3rem; }
.section-title { 
    font-size: clamp(1.8rem, 7vw, 3rem); 
    font-weight: 800; 
    margin-bottom: 0.5rem; 
    color: var(--color-text-dark); 
}
.section-subtitle { 
    font-size: clamp(1rem, 4vw, 1.25rem); 
    color: var(--color-text-light); 
    max-width: 48rem; 
    margin: 0 auto; 
}

/* 6. SECTION TENTANG KAMI */
#tentang { background-color: var(--color-background-light); position: relative; overflow: hidden; }
.tentang-modern-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    align-items: center; 
}
.tentang-chibi-wrapper { 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 350px; 
}
.chibi-card { 
    width: 240px; height: 340px; 
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1.5rem; 
    display: flex; justify-content: center; align-items: center; 
    box-shadow: var(--shadow-xl); 
    position: relative; z-index: 10; 
    transition: transform 0.5s ease; 
}
.chibi-card:hover { transform: scale(1.05); }
.chibi-img { 
    width: 100%; 
    height: auto; 
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.2)); 
    animation: float-animation 4s ease-in-out infinite; 
}
@keyframes float-animation { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.chibi-background-glow { 
    position: absolute; width: 300px; height: 300px; 
    background: radial-gradient(circle, var(--color-primary), transparent 60%); 
    filter: blur(80px); opacity: 0.4; z-index: 1; 
}
.chibi-floating-icon { 
    position: absolute; width: 40px; height: 40px; 
    background-color: rgba(255, 255, 255, 0.9); border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    font-size: 1.2rem; color: var(--color-primary); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); z-index: 12; 
    animation: icon-float 6s ease-in-out infinite; 
}
.chibi-floating-icon.icon-1 { top: 10%; left: 0; animation-delay: 0s; color: var(--color-accent-blue); }
.chibi-floating-icon.icon-2 { bottom: 15%; left: 10%; animation-delay: 2s; color: var(--color-secondary); }
.chibi-floating-icon.icon-3 { top: 40%; right: 0; animation-delay: 4s; }
@keyframes icon-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(15px) scale(1.05); } }
.tentang-content-wrapper { text-align: center; }
.tentang-content-wrapper h3 { 
    font-size: clamp(1.5rem, 6vw, 1.8rem); 
    font-weight: 700; 
    color: var(--color-text-dark); margin-bottom: 1rem; 
}
.tentang-content-wrapper > p { 
    font-size: 1.05rem; 
    color: var(--color-text-light); 
    margin-bottom: 2rem; 
}
.nilai-inti-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.nilai-item { 
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    gap: 1rem; 
    padding: 1.5rem 1rem; 
    background-color: #F9FAFB; 
    border-radius: 0.75rem; 
    transition: all 0.3s ease; 
    border-bottom: 4px solid transparent; 
}
.nilai-item:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-base); 
    border-bottom-color: var(--color-primary); 
}
.nilai-icon { 
    flex-shrink: 0; width: 50px; height: 50px; 
    border-radius: 0.5rem; display: flex; 
    justify-content: center; align-items: center; 
    font-size: 1.5rem; background-color: rgba(20, 184, 166, 0.1); 
    color: var(--color-primary); 
    margin: 0 auto; 
}
.nilai-item h4 { font-size: 1.1rem; font-weight: 600; color: var(--color-text-dark); }
.nilai-item p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0; line-height: 1.5; }

/* 7. MISI SECTION */
.misi-carousel-wrapper { 
    position: relative; width: 100%; overflow: hidden; padding: 2rem 0; 
}
.misi-carousel-wrapper::before, .misi-carousel-wrapper::after { 
    content: ''; position: absolute; top: 0; width: 50px; height: 100%; z-index: 2; 
    pointer-events: none; 
}
.misi-carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--color-background-start), transparent); }
.misi-carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--color-background-start), transparent); }
.card-grid-scroll { display: flex; width: max-content; }
.card-misi { min-width: 280px; margin: 1rem; text-align: left; }
.card-misi .card-icon { font-size: 2rem; }

/* 8. FILOSOFI SECTION */
.filosofi-journey-container { display: flex; flex-direction: column; gap: 4rem; margin-top: 3rem; }
.filosofi-item { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.filosofi-image img { 
    width: 100%; height: 280px; object-fit: cover; 
    border-radius: 1.5rem; box-shadow: var(--shadow-xl); 
}
.filosofi-content { text-align: center; }
.filosofi-tag { 
    display: inline-block; background-color: rgba(20, 184, 166, 0.1); 
    color: var(--color-primary); padding: 0.5rem 1rem; 
    border-radius: 9999px; font-weight: 700; 
    font-size: 0.9rem; margin-bottom: 1.5rem; 
}
.filosofi-content h3 { 
    font-size: clamp(1.8rem, 6vw, 2.2rem); 
    font-weight: 800; color: var(--color-text-dark); line-height: 1.2; 
}
.filosofi-content h4 { 
    font-size: 1.1rem; font-weight: 500; color: var(--color-text-light); 
    margin-top: 0.5rem; margin-bottom: 1.5rem; 
}
.filosofi-content p { 
    font-size: 1.05rem; color: var(--color-text-light); line-height: 1.8; 
}

/* 9. PRICING SECTION */
.pricing-section { padding: 4rem 0; background-color: var(--color-background-light); }
.tab-container { 
    display: flex; flex-wrap: wrap; justify-content: center; 
    margin-bottom: 3rem; background: #EDF2F7; 
    padding: 0.5rem; border-radius: 0.75rem; 
}
.tab-button { 
    padding: 0.75rem 1rem; font-size: 0.9rem; 
    font-weight: 600; border-radius: 0.5rem; 
    background: transparent; cursor: pointer; color: var(--color-text-light); 
    border: none; transition: all 0.3s ease; flex-grow: 1;
}
.tab-button.active { 
    background: var(--gradient-primary); color: white; 
    box-shadow: 0 4px 8px rgba(20, 184, 166, 0.3); 
}
.pricing-content { position: relative; }
.pricing-table-container { 
    display: none; 
    opacity: 0; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    animation: fadeIn 0.6s forwards; 
}
.pricing-table-container.active { display: grid; opacity: 1; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.table-card { 
    background: white; border-radius: 1.5rem; 
    box-shadow: var(--shadow-xl); padding: 2rem; text-align: left; 
    border-top: 5px solid var(--color-primary); transition: all 0.3s ease; 
    display: flex; flex-direction: column; 
}
.table-card:hover { transform: translateY(-5px); }
.table-card h3 { 
    font-size: 1.5rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.5rem; 
}
.table-card p { color: var(--color-text-light); margin-bottom: 1.5rem; flex-grow: 1; }
.table-card.accent-blue { border-top-color: var(--color-accent-blue); }
.table-card.accent-blue h3 { color: var(--color-accent-blue); }
.table-card.featured { border-top-color: var(--color-secondary); }
.table-card.featured h3 { color: var(--color-secondary); }
.price-row { 
    display: flex; flex-direction: column; align-items: flex-start; 
    gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid #E5E7EB; 
}
.price-row .label { 
    font-weight: 500; color: var(--color-text-dark); 
}
.price-row .price { 
    font-weight: 700; color: var(--color-secondary); font-size: 1.1rem; 
}
.table-card .cta-button { margin-top: 2rem; display: block; text-align: center; }

/* 10. TIM & STRUKTUR ORGANISASI */
.team-and-org-section { padding: 4rem 0; background-color: #F3F4F6; }
.team-management-container {
    background-color: #022c43; color: #FFF; padding: 2.5rem 1.5rem;
    border-radius: 1.5rem; margin-bottom: 4rem; box-shadow: var(--shadow-xl);
}
.team-section-title {
    text-align: center; font-size: clamp(1.8rem, 7vw, 2.5rem);
    font-weight: 800; margin-bottom: 2rem; letter-spacing: 1px;
}
.team-carousel-viewport { position: relative; height: auto; overflow: hidden; }
.team-carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.team-carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.team-carousel-slide.active { opacity: 1; }
.team-image-wrapper { order: 1; }
.team-text-content-revised { order: 2; font-size: 1.05rem; line-height: 1.8; max-width: 450px; margin: 0 auto; }
.team-text-content-revised strong { color: var(--color-primary); }
.team-image-wrapper img {
    width: 220px; height: 260px; border-radius: 1rem;
    object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0 auto 1rem;
}
.team-role-revised { font-size: 1.3rem; font-weight: 700; }
.team-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.team-carousel-btn { background: none; border: none; cursor: pointer; font-size: 2rem; color: white; transition: transform 0.2s; }
.team-carousel-btn:hover { transform: scale(1.1); }
.team-carousel-dots { display: flex; gap: 0.75rem; }
.team-carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); border: none; cursor: pointer; transition: all 0.3s; }
.team-carousel-dot.active { background: var(--color-primary); transform: scale(1.2); }

.org-chart-wrapper { padding: 2rem 0; overflow-x: auto; }
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 900px; padding: 1rem 0; }
.org-level { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.org-node { 
    padding: 0.8rem 1.25rem; background-color: white; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    border-radius: 8px; font-weight: 600; color: var(--color-text-dark); 
    text-align: center; border-top: 5px solid; 
    min-width: 160px; transition: transform 0.3s, box-shadow 0.3s; 
    font-size: 0.9rem;
}
.org-node:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.org-node.style-blue { border-color: #3B82F6; }
.org-node.style-teal-dark { border-color: #0F766E; }
.org-node.style-teal { border-color: #14B8A6; }
.org-node.style-yellow { border-color: #F59E0B; }
.org-node.style-purple { border-color: #8B5CF6; }

/* 11. FOOTER */
footer { background-color: #111827; color: #D1D5DB; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; text-align: center; }
.footer-col .logo-text { justify-content: center; }
.footer-col h4 { color: white; font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col p { margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #9CA3AF; transition: color 0.3s; }
.footer-col a:hover { color: var(--color-primary); }
.social-links { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.social-links a { font-size: 1.5rem; }
.footer-bottom { border-top: 1px solid #374151; margin-top: 3rem; padding-top: 2rem; text-align: center; font-size: 0.875rem; color: #9CA3AF; }
.footer-col .cta-button { margin: 1rem auto 0; }

/* =======================================================================
12. MEDIA QUERIES (TABLET & DESKTOP)
======================================================================= */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container { padding: 0 2rem; }
    .nav-toggle { display: none; }
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        right: 0;
        transition: none;
    }
    .nav-links {
        flex-direction: row;
        gap: 2rem;
        padding-top: 0;
    }
    .nav-link { font-size: 1rem; font-weight: 500; color: var(--color-text-light); padding: 0.5rem 0; position: relative; }
    .nav-link:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s ease; }
    .nav-link:hover { color: var(--color-primary); }
    .nav-link:hover:after { width: 100%; }
    .hide-on-mobile { display: inline-block; }
    .header {
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        max-width: 64rem;
        width: calc(100% - 4rem);
        border-radius: 0.75rem;
    }
    .nav-container { padding: 1rem 1.5rem; }

    .main-content { padding: 5rem 0; }
    .tentang-modern-grid { grid-template-columns: 1fr 1.2fr; text-align: left; }
    .tentang-content-wrapper { text-align: left; }
    .nilai-item { flex-direction: row; text-align: left; }
    .nilai-icon { margin: 0; }
    .filosofi-journey-container { margin-top: 5rem; }
    .filosofi-item { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .filosofi-content { text-align: left; }
    .filosofi-image img { height: 350px; }
    .filosofi-item.reverse .filosofi-image { order: 2; }
    .filosofi-item.reverse .filosofi-content { order: 1; }

    .pricing-table-container { grid-template-columns: repeat(2, 1fr); }
    #satuan .table-card { grid-column: span 2; max-width: 800px; margin: 0 auto; }
    #membership .table-card { grid-column: span 2; max-width: 500px; margin: 0 auto; }
    .price-row { flex-direction: row; align-items: center; justify-content: space-between; }
    
    .team-carousel-slide { flex-direction: row; text-align: left; gap: 2rem; padding: 0 2rem; }
    .team-image-wrapper { order: 2; }
    .team-text-content-revised { order: 1; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr; text-align: left; }
    .footer-col .logo-text, .social-links { justify-content: flex-start; }
    .footer-col .cta-button { margin: 0; }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .main-content { padding: 6rem 0; }
    .chibi-card { width: 280px; height: 380px; }
    .tentang-chibi-wrapper { min-height: 450px; }
    .filosofi-image img { height: 400px; }
    .team-and-org-section { padding: 6rem 0; }
    .team-management-container { padding: 3rem; }
    .team-image-wrapper img { width: 250px; height: 300px; }
}