/* =========================
GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    line-height:1.6;
    color:#333;
    background:#f5f7fb;
}

.container{
    width:80%;
    margin:auto;
    padding:20px;
}

/* =========================
NAVBAR
========================= */

.navbar{
    background:#ffffff;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:3000;
}

.nav-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 20px;
}

/* logo */
.logo-area{
    display:flex;
    align-items:center;
}
.logo-img{
    width:120px;
    height:auto;
}

/* menu */
.menu{
    display:flex;
    align-items:center;
    gap:22px;
}
.menu a{
    text-decoration:none;
    color:#444;
    font-size:14px;
}

/* login button */
.btn-login{
    background:#4f46e5;
    color:#fff !important;
    padding:8px 14px;
    border-radius:6px;
}

/* register button */
.btn-register{
    border:2px solid #4f46e5;
    color:#4f46e5 !important;
    padding:8px 14px;
    border-radius:6px;
    background:transparent;
}
.btn-register:hover{
    background:#4f46e5;
    color:white !important;
}

/* =========================
HAMBURGER
========================= */

.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.hamburger span{
    width:25px;
    height:3px;
    background:#333;
    display:block;
}

/* =========================
HERO
========================= */

.hero{
    position:relative;
    background-image:url('/assets/images/hero-bg.png');
    background-size:cover;
    background-position:center;
    padding:80px 20px;
    color:white;
    text-align:center;
}

.hero::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.65);
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-content h1{
    font-size:36px;
    margin-bottom:10px;
}

.hero-content p{
    font-size:18px;
    margin-bottom:25px;
}

/* =========================
SEARCH FORM
========================= */

.hero-search{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:20px;
}

.hero-search input,
.hero-search select,
.hero-search button{
    height:48px;
    padding:0 15px;
    border-radius:6px;
    font-size:14px;
    border:none;
}

.hero-search input,
.hero-search select{
    min-width:160px;
}

.hero-search button{
    background:#22c55e;
    color:white;
    cursor:pointer;
}

.hero-search button:hover{
    background:#16a34a;
}

/* =========================
SECTION
========================= */

.section{
    padding:40px 20px;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.lihat-semua{
    text-decoration:none;
    color:#4f46e5;
    font-weight:600;
}

/* =========================
CARD
========================= */

.card{
    background:white;
    padding:18px;
    margin-bottom:15px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

/* =========================
FOOTER
========================= */

.footer{
    background:#f3f4f6;
    margin-top:60px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    padding:25px;
    text-align:center;
    color:#666;
    font-size:14px;
}

/* =========================
MARKETPLACE LAYOUT
========================= */

.marketplace{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:280px 1fr;
    gap:40px;
    padding:40px 20px;
}

/* =========================
FILTER SIDEBAR
========================= */

.filter-sidebar{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    position:sticky;
    top:90px;
    height:fit-content;
}

.filter-sidebar h3{
    margin-bottom:15px;
}

.filter-sidebar input,
.filter-sidebar select{
    width:100%;
    padding:10px;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:6px;
}

.filter-sidebar button{
    width:100%;
    background:#4f46e5;
    color:white;
    padding:11px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.filter-sidebar button:hover{
    background:#4338ca;
}

/* =========================
RESULT HEADER
========================= */

.results-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    margin-top:10px;
}

.jumlah-guru{
    font-size:17px;
    font-weight:600;
}

.sorting select{
    padding:8px 14px;
    border-radius:6px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
}

/* =========================
CONTAINER GRID GURU
========================= */

.guru-container{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:30px;
    margin-top:20px;
}

/* =========================
CARD GURU
========================= */

.guru-card{
    background:white;
    padding:22px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    transition:all 0.25s ease;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.guru-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 32px rgba(0,0,0,0.08);
}

/* avatar */
.guru-avatar{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:12px;
}

/* nama guru */
.guru-info h3{
    margin:0;
    font-size:16px;
    margin-bottom:6px;
}

/* meta */
.guru-meta{
    font-size:13px;
    color:#666;
    margin-bottom:4px;
}

/* tarif */
.guru-tarif{
    font-weight:bold;
    color:#4f46e5;
    margin-top:10px;
    margin-bottom:10px;
}

/* button */
.btn-lihat{
    display:inline-block;
    background:#4f46e5;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:13px;
    transition:0.2s;
}

.btn-lihat:hover{
    background:#3c36c7;
}

/* badge */
.badge-premium{
    background:#f59e0b;
    color:white;
    font-size:11px;
    padding:3px 6px;
    border-radius:4px;
    margin-left:5px;
}

/* =========================
RESPONSIVE MARKETPLACE
========================= */

@media(max-width:900px){

    .marketplace{
        grid-template-columns:1fr;
    }

    .filter-sidebar{
        position:relative;
        top:auto;
    }

    .guru-container{
        grid-template-columns:1fr;
    }

    .results-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
}

@media(max-width:768px){

    .container{
        width:95%;
    }

    .hamburger{
        display:flex;
    }

    .menu{
        position:fixed;
        top:0;
        right:-260px;
        width:260px;
        height:100vh;
        background:white;
        flex-direction:column;
        align-items:flex-start;
        padding:80px 25px;
        gap:25px;
        box-shadow:-2px 0 15px rgba(0,0,0,0.2);
        transition:0.3s;
        z-index:2500;
    }

    .menu.active{
        right:0;
    }

    .menu a{
        font-size:16px;
        width:100%;
    }

    .hero-content h1{
        font-size:26px;
    }

    .hero-search{
        flex-direction:column;
        background:white;
        padding:15px;
        border-radius:10px;
        box-shadow:0 8px 25px rgba(0,0,0,0.15);
    }

    .hero-search input,
    .hero-search select,
    .hero-search button{
        width:100%;
    }
}

@media(max-width:600px){

    .guru-card{
        padding:18px;
    }

    .guru-avatar{
        width:60px;
        height:60px;
    }

    .guru-info h3{
        font-size:15px;
    }

    .jumlah-guru{
        font-size:14px;
    }
}

/* =========================
AUTH / REGISTER PAGE
========================= */

.auth-container{
    display:flex;
    min-height:100vh;
}

.auth-left{
    width:50%;
    background:url('/assets/images/auth-bg.jpg') center/cover no-repeat;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:100px 60px 60px 60px; /* padding atas ditambah agar tombol beranda tidak nabrak */
    color:white;
}

.auth-left::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(135deg,#5f3df5,#6a11cb);
    opacity:0.85;
}

.auth-left-content{
    position:relative;
    z-index:2;
    max-width:400px;
    margin-top:20px; /* jarak tambahan dari tombol beranda */
}

.auth-left h2{
    font-size:32px;
    margin-bottom:10px;
}

.auth-left p{
    opacity:0.9;
}

.auth-right{
    width:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:white;
}

.auth-form{
    width:420px;
}

.auth-form h1{
    margin-bottom:10px;
}

.auth-form p{
    color:#666;
    margin-bottom:25px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    font-size:14px;
    margin-bottom:6px;
}

.form-group input,
.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
}

.auth-button{
    width:100%;
    padding:14px;
    background:#5f3df5;
    border:none;
    color:white;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}

.auth-button:hover{
    background:#4c2fe0;
}

/* =========================
TOMBOL BERANDA
========================= */

.back-home{
    position:absolute;
    top:25px;
    left:25px;
    background:rgba(255,255,255,0.2);
    padding:8px 14px;
    border-radius:8px;
    color:white;
    text-decoration:none;
    font-weight:bold;
    z-index:3;
}

.back-home:hover{
    background:rgba(255,255,255,0.3);
}

/* versi khusus left-panel */
.left-panel .back-home{
    position:absolute;
    top:25px; /* posisi aman agar tidak nabrak teks */
    left:25px;
    background:rgba(0,0,0,0.35);
    color:#fff;
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    z-index:5;
}

.left-panel .back-home:hover{
    background:rgba(0,0,0,0.55);
}

/* =========================
RESPONSIVE AUTH / REGISTER
========================= */

@media(max-width:900px){

    .auth-container{
        flex-direction:column;
    }

    .auth-left{
        width:100%;
        min-height:260px;
        padding:80px 40px 40px 40px;
    }

    .auth-left-content{
        margin-top:20px;
    }

    .auth-right{
        width:100%;
        padding:30px 20px;
    }

    .form-row{
        flex-direction:column;
        gap:0;
    }

    .form-group{
        margin-bottom:15px;
    }
}