/* --- RESET & GLOBAL VARIABLES --- */
:root {
    --primary-color: #00897b;
    /* Teal Gelap */
    --primary-dark: #004d40;
    --tosca-bright: #2de6d6;
    /* Tosca cerah */
    --tosca-dark: #0f766e;
    --accent-color: #4ef3e5;
    /* Cyan Terang */
    --bg-color: #f6fdfd;
    --text-color: #333;
    --text-light: #555;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding-top: 40px;
    /* Sesuaikan dengan tinggi navbar Anda */
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    /* Reset border default */
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #2ceadd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 243, 229, 0.4);
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--tosca-bright);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--tosca-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 40px 60px;
    background: linear-gradient(135deg, #f6fdfd 0%, #e0f7fa 100%);
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: none;
    border: none;
}

/* --- TENTANG SECTION --- */
.tentang {
    padding: 80px 20px;
    text-align: center;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.fitur-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.fitur-card {
    background: #e0f7fa;
    padding: 40px 30px;
    border-radius: 20px;
    width: 280px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fitur-card:hover {
    transform: translateY(-10px);
}

.fitur-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.1);
}

.fitur-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.fitur-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

/* --- ADDITIONAL ABOUT STYLES (DETAIL SECTION) --- */
.about-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    gap: 60px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: none;
    border: none;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-list {
    list-style: none;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 500;
}

.about-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* --- SKRINING PREVIEW SECTION --- */
.preview {
    padding: 100px 60px;
    background: #f0fbfc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.preview-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
}

.question-header {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-box h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.opsi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.opsi button {
    padding: 15px;
    border: 1px solid #f0f0f0;
    background: var(--white);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.opsi button:focus {
    outline: none;
}

.opsi button:hover {
    border-color: var(--accent-color);
    background: #faffff;
}

.opsi button.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 700;
}

.preview-cta {
    max-width: 400px;
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 137, 123, 0.3);
}

.preview-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.preview-cta p {
    margin-bottom: 25px;
    opacity: 0.9;
    color: #fff;
}

/* --- FAQ SECTION --- */
.faq {
    padding: 80px 20px;
    background: var(--white);
}

.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.faq-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.faq-image-side img {
    width: 100%;
    max-width: 450px;
    height: auto;
    box-shadow: none;
    border: none;
}

.faq-content-side {
    flex: 1;
}

.faq-content-side h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

details {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

summary {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

summary:focus {
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s;
    font-weight: 300;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: var(--primary-dark);
}

details p {
    padding: 0 25px 25px;
    color: var(--text-light);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 15px;
    line-height: 1.6;
}

/* =============================
   KONTAK SECTION
============================= */

.kontak {
    padding: 100px 20px;
    background: #f6fdfd;
    text-align: center;
}

.kontak .section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.kontak .section-subtitle {
    color: #777;
    margin-bottom: 60px;
}

/* WRAPPER */
.kontak-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

/* FORM */
.kontak-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: left;
}

.kontak-form label {
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 8px;
}

.kontak-form input,
.kontak-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #2e4f4b;
    margin-bottom: 22px;
    font-size: 14px;
    outline: none;
}

.kontak-form textarea {
    resize: none;
}

.kontak-form input:focus,
.kontak-form textarea:focus {
    border-color: var(--accent-color);
}

/* BUTTON */
.btn-kontak {
    display: inline-block;
    padding: 14px 45px;
    background: var(--accent-color);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    color: #000;
    box-shadow: 0 6px 18px rgba(78, 243, 229, .5);
    transition: all .2s ease;
}

.btn-kontak:hover {
    transform: translateY(-2px);
}

/* INFO */
.kontak-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: left;
}

.kontak-info h3 {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    font-size: 15px;
}

.info-item i {
    font-size: 22px;
    color: var(--primary-color);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .kontak-wrapper {
        grid-template-columns: 1fr;
    }
}


/* --- FOOTER --- */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
}

/* LOGIN WRAPPER */
.login-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9feff;
    padding: 40px;
}

/* CARD */
.login-card {
    background: #fff;
    display: flex;
    width: 1000px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    overflow: hidden;
}

/* FORM */
.login-form {
    width: 50%;
    padding: 60px;
}

.login-form h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.login-form .subtitle {
    color: #777;
    margin-bottom: 30px;
}

.login-form label {
    font-weight: 500;
    margin-top: 20px;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.forgot {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 13px;
    color: #2ec4c4;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    border: none;
    background: #4ef0e2;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
}

.register-text {
    text-align: center;
    margin-top: 20px;
}

.required {
    color: #e53935;
    margin-left: 4px;
    font-weight: 600;
}

.register-text a {
    color: #2ec4c4;
    text-decoration: none;
    font-weight: 600;
}

/* REGISTER */
.register-section {
    padding: 70px 0;
    background: #ffffff;
}

.register-header {
    text-align: center;
    margin-bottom: 50px;
}

.register-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.register-header p {
    color: #888;
    font-size: 16px;
}

.register-form {
    max-width: 1100px;
    margin: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 60px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0c7c74;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #2e4f4b;
    outline: none;
}

.btn-register {
    display: block;
    margin: 60px auto 25px;
    padding: 15px 60px;
    font-size: 18px;
    border-radius: 15px;
    border: none;
    background: #4ef0e1;
    font-weight: bold;
    cursor: pointer;
}

.login-link {
    text-align: center;
    font-size: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Mempercantik tampilan Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}


/* IMAGE */
.login-image {
    width: 50%;
    background: #f3fffd;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    width: 90%;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-detail {
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
    }

    .about-text {
        text-align: center;
    }

    .about-list {
        display: inline-block;
        text-align: left;
    }

    .preview {
        flex-direction: column;
        padding: 60px 20px;
    }

    .preview-box,
    .preview-cta {
        width: 100%;
    }

    .faq-container {
        flex-direction: column;
        gap: 30px;
    }

    .faq-image-side {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }

    .faq-content-side h2 {
        text-align: center;
    }

    /* Auth Responsive */
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-image {
        display: none;
    }

    .auth-form-wrapper {
        padding: 30px 20px;
    }
}

/* Animation Keyframes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flex-1::-webkit-scrollbar {
    width: 6px;
}

.flex-1::-webkit-scrollbar-track {
    background: transparent;
}

.flex-1::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* =======================
   DASHBOARD LAYOUT
======================= */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f9fafb;
}

/* =======================
   SIDEBAR
======================= */

@media (min-width: 1024px) {

    /* body {
            padding-left: 18rem;
            transition: padding-left 0.3s ease-in-out;
        } */
    #sidebar {
        transform: translateX(0);
    }
}

/* Status default untuk Mobile: Sidebar tersembunyi */
@media (max-width: 1023px) {
    #sidebar {
        transform: translateX(-100%);
    }
}

/* Kelas paksa untuk menutup sidebar di desktop */
#sidebar.sidebar-closed {
    transform: translateX(-100%) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #f1f5f9;
    border-radius: 10px;
}

.sidebar {
    width: 260px;
    background: #1b7f79;
    color: white;
    padding: 30px 20px;
    position: relative;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.logo-sub {
    color: #ffffff;
    /* Kids */
    font-weight: 800;
}

.logo-main {
    color: #8ffaea;
    /* Care */
    font-weight: 800;
}

.menu-toggle {
    margin-left: auto;
    font-size: 22px;
    cursor: pointer;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 12px;
    transition: background 0.2s;
}

.sidebar-menu a i {
    font-size: 18px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2de6d6;
    color: #003f3c;
}

.sidebar {
    transition: width 0.3s ease;
}

.sidebar.active {
    width: 80px;
}

/* Sembunyikan teks saat collapse */
.sidebar.active .sidebar-menu a span,
.sidebar.active .logo-main,
.sidebar.active .logo-sub {
    display: none;
}

/* Icon tetap center */
.sidebar.active .sidebar-menu a {
    justify-content: center;
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, #2de6d6, #3fffe5);
    color: #003f3c;
    font-weight: 600;
}


/* =======================
   DASHBOARD CONTENT
======================= */

.dashboard-content {
    flex: 1;
    padding: 45px 60px;
    background: #ffffff;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header-left h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.dashboard-username {
    font-size: 32px;
    font-weight: 700;
    color: #1b7f79;
}

/* === DROPDOWN === */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #ecfffd;
    border: 1px solid #2dd4bf;
    font-weight: 600;
    cursor: pointer;
    color: #0f766e;
}

.user-dropdown-btn i {
    font-size: 16px;
}

.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 200px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: #0f172a;
    font-size: 14px;
}

.user-dropdown-menu a:hover {
    background: #ecfffd;
}

.user-dropdown-menu a.danger {
    color: #dc2626;
}

.user-dropdown-menu a.danger:hover {
    background: #fee2e2;
}

/* SHOW DROPDOWN */
.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =======================
   PROFILE CARD
======================= */

.profile-card {
    display: flex;
    align-items: center;
    gap: 35px;
    background: #e9fffd;
    padding: 30px 40px;
    border-radius: 24px;
}

.profile-left img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-center h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1b7f79;
}

.profile-center p {
    font-size: 16px;
    margin-bottom: 6px;
}

.profile-right {
    margin-left: auto;
    text-align: right;
}

.profile-right p {
    font-size: 15px;
}

.status-danger {
    color: red;
    font-weight: bold;
}

/* =======================
   BUTTON
======================= */

.dashboard-btn {
    display: inline-block;
    margin: 35px 0;
    padding: 16px 45px;
    font-size: 18px;
    border-radius: 16px;
    border: none;
    background: #4ef0e1;
    font-weight: bold;
    cursor: pointer;
}

/* ============================= */
/* EDUCATION SECTION */
/* ============================= */

.education-section {
    margin-top: 60px;
}

.education-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1b7f79;
    margin-bottom: 28px;
}

/* GRID */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */
.edu-card {
    background: #ecfffd;
    border-radius: 22px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.25s ease;
}

.edu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* TITLE */
.edu-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 12px;
}

/* DESCRIPTION */
.edu-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: auto;
}

/* LINK */
.edu-link {
    margin-top: 22px;
    align-self: center;
    background: #2dd4bf;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.edu-link:hover {
    background: #14b8a6;
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

    .edu-card {
        min-height: auto;
    }
}


/* =======================
   SCREENING INTRO
======================= */
.screening-intro {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.page-subtitle {
    color: #64748b;
    margin-top: 6px;
}

/* =======================
   SCREENING CARD ENHANCED
======================= */
.screening-card.enhanced {
    background: linear-gradient(180deg, #ecfffd, #f9ffff);
    padding: 36px 40px;
    border-radius: 24px;
    max-width: 620px;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.12);
    position: relative;
}

/* ICON */
.screening-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2dd4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #064e4e;
    font-size: 26px;
    margin-bottom: 18px;
}

/* TEXT */
.screening-card h3 {
    font-size: 22px;
    color: #0f766e;
    margin-bottom: 12px;
}

.screening-desc {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* RULE LIST */
.screening-rules {
    list-style: none;
    padding: 0;
    margin-bottom: 26px;
}

.screening-rules li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 14px;
}

.screening-rules i {
    color: #14b8a6;
    font-size: 15px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .screening-card.enhanced {
        padding: 28px;
    }

    .btn-start {
        width: 100%;
        justify-content: center;
    }
}


.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 172, 254, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   GLOBAL FORM IMPROVEMENT
================================ */
#form-container {
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   QUESTION STEP TRANSITION
================================ */
.question-step {
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.question-step:not(.hidden) {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================
   RADIO OPTION CARD
================================ */
label {
    position: relative;
    overflow: hidden;
}

label::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(99, 102, 241, 0.08),
            rgba(99, 102, 241, 0.02));
    opacity: 0;
    transition: opacity 0.25s ease;
}

label:hover::before {
    opacity: 1;
}

/* Checked state glow */
input[type="radio"]:checked+div {
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===============================
   PROGRESS BAR SMOOTH
================================ */
#progress-bar {
    background-image: linear-gradient(90deg,
            #6366f1,
            #818cf8);
}

/* ===============================
   BUTTON INTERACTION
================================ */
button {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button:active {
    transform: scale(0.96);
}

/* Disabled previous button */
button[disabled] {
    cursor: not-allowed;
}

.answer-btn {
    padding: 14px 36px;
    border-radius: 9999px;
    border: 2px solid #0f766e;
    font-weight: 600;
    color: #0f766e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-btn:hover {
    background: #ccfbf1;
}

.answer-btn input:checked+span {
    background: #2dd4bf;
    color: white;
    padding: 14px 36px;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(45, 212, 191, .4);
}

.pill-option {
    cursor: pointer;
}

/* Outer pill */
.pill-outer {
    display: inline-flex;
    padding: 6px;
    border-radius: 9999px;
    border: 2px solid #0f766e;
    transition: 0.2s;
}

.pill-inner {
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 600;
    color: #0f766e;
}

.pill-option input:checked+.pill-outer {
    background: #e6fffa;
}

.pill-option input:checked+.pill-outer .pill-inner {
    background: #2dd4bf;
    color: white;
    box-shadow: 0 8px 20px rgba(45, 212, 191, .45);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.animate-shake {
    animation: shake 0.3s ease-in-out;
}

/* ===============================
   MOBILE FRIENDLY
================================ */
@media (max-width: 640px) {
    h2 {
        font-size: 1.25rem;
    }

    label {
        padding: 1rem;
    }

    .btn,
    button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================= */
/* Dashboard Layout */
/* ============================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f7fa;
}

.dashboard-content {
    flex: 1;
    padding: 40px;
}

/* Header */
.page-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #222;
}

.page-header p {
    color: #777;
    margin-bottom: 30px;
}

/* =======================
   RIWAYAT TABLE    
/* ======================= */

.table-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    margin-top: 25px;
}

.riwayat-table {
    width: 100%;
    border-collapse: collapse;
}

.riwayat-table th,
.riwayat-table td {
    padding: 14px;
    text-align: left;
}

.riwayat-table thead {
    background: #e6fffa;
}

.badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge.success {
    background: #dcfce7;
    color: #166534;
}

.btn-detail {
    padding: 6px 16px;
    border-radius: 10px;
    background: #2dd4bf;
    color: white;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.btn-detail:hover {
    background: #14b8a6;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    animation: scaleIn .25s ease;
}

.modal-box h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

.modal-content p {
    margin-bottom: 10px;
    font-size: 15px;
}

.modal-content .note {
    margin-top: 12px;
    font-size: 14px;
    color: #475569;
}

.modal-actions {
    text-align: right;
    margin-top: 25px;
}

.btn-close {
    padding: 10px 26px;
    border-radius: 12px;
    background: #0f766e;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-close:hover {
    background: #115e59;
}

.hidden {
    display: none;
}

@keyframes scaleIn {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =======================
   DASHBOARD HEADER
======================= */

.dashboard-header h1 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 4px;
}

.dashboard-username {
    font-size: 32px;
    font-weight: 700;
    color: #1b7f79;
    margin-bottom: 28px;
}

/* =======================
   CHILD CARD
======================= */

.child-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecfffd;
    padding: 28px 36px;
    border-radius: 24px;
    margin-bottom: 28px;
}

/* LEFT */
.child-left {
    display: flex;
    align-items: center;
}

.child-left img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

/* CENTER */
.child-center {
    flex: 1;
    margin-left: 28px;
}

.child-center h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1b7f79;
    margin-bottom: 6px;
}

.child-center p {
    font-size: 15px;
    color: #334155;
    margin-bottom: 4px;
}

/* RIGHT */
.child-right {
    text-align: right;
}

.child-right span {
    font-size: 14px;
    color: #475569;
}

.status-danger {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
}

/* =======================
   BUTTON TEST
======================= */

.screening-action {
    margin-bottom: 44px;
}

.btn-start {
    display: inline-block;
    padding: 14px 46px;
    border-radius: 999px;
    background: #4ef3e5;
    color: #064e4e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(78, 243, 229, .45);
    transition: all .2s ease;
}

.btn-start:hover {
    transform: translateY(-2px);
}

/* =======================
   EDUKASI
======================= */

.education-section h3 {
    font-size: 26px;
    color: #1b7f79;
    margin-bottom: 24px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    background: #ecfffd;
    height: 200px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 900px) {
    .child-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .child-center {
        margin-left: 0;
    }

    .child-right {
        text-align: left;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* EDUKASI PAGE */
/* ============================= */
.edukasi-filter {
    display: flex;
    gap: 14px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #14b8a6;
    background: white;
    color: #0f766e;
    font-size: 14px;
    cursor: pointer;
}

.filter-btn.active {
    background: #14b8a6;
    color: white;
}

.edukasi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.edukasi-card {
    background: #ecfffd;
    padding: 26px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease;
}

.edukasi-card:hover {
    transform: translateY(-4px);
}

.edukasi-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f766e;
}

.edukasi-content p {
    font-size: 14px;
    color: #475569;
}

.btn-read {
    align-self: flex-start;
    margin-top: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #2dd4bf;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.btn-read:hover {
    background: #14b8a6;
}

/* =======================
   EDUKASI DETAIL PAGE
======================= */
.edukasi-detail-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0 60px;
}

/* CARD */
.edukasi-detail-card {
    background: #ffffff;
    max-width: 820px;
    width: 100%;
    padding: 42px 48px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
}

/* HEADER */
.edukasi-header {
    margin-bottom: 28px;
}

.edukasi-tag {
    display: inline-block;
    background: #ecfffd;
    color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.edukasi-header h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

/* CONTENT */
.edukasi-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.edukasi-content p {
    margin-bottom: 16px;
}

.edukasi-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.edukasi-content li {
    margin-bottom: 8px;
}

/* FOOTER */
.edukasi-footer {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}

/* BACK BUTTON */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ecfffd;
    color: #0f766e;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-back:hover {
    background: #2dd4bf;
    color: #064e4e;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .edukasi-detail-card {
        padding: 28px;
    }

    .edukasi-header h1 {
        font-size: 24px;
    }
}


/* ============================= */
/* PROFIL PAGE (ISOLATED & CLEAN) */
/* ============================= */

.profile-scope {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

/* ============================= */
/* HEADER */
/* ============================= */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.profile-header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-header p {
    margin-top: 6px;
    font-size: 15px;
    color: #64748b;
}

.profile-avatar img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #99f6e4;
}

/* ============================= */
/* GRID */
/* ============================= */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

/* ============================= */
/* CARD */
/* ============================= */
.profile-card {
    display: block;
    background: #ecfffd;
    padding: 28px;
    border-radius: 20px;
}

.profile-card h3 {
    margin-bottom: 22px;
    font-size: 20px;
    font-weight: 600;
    color: #0f766e;
}

/* ============================= */
/* FORM */
/* ============================= */
.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #064e4e;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border-radius: 14px;
    border: 1px solid #b2e8e8;
    background: #f9ffff;
    font-size: 14px;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #2dd4bf;
    background: #ffffff;
}

.input-group input[readonly] {
    background: #eefefe;
    color: #475569;
    cursor: not-allowed;
}

.input-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    cursor: pointer;
}


/* ============================= */
/* ACTION BUTTON */
/* ============================= */
.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

.btn-cancel {
    padding: 12px 36px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #2dd4bf;
    color: #0f766e;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-cancel:hover {
    background: #ecfffd;
}

.btn-save {
    padding: 12px 36px;
    border-radius: 14px;
    background: #2fffee;
    border: none;
    color: #064e4e;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.35);
    transition: all .2s ease;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.45);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }

    .profile-avatar img {
        width: 76px;
        height: 76px;
    }

    .profile-header h1 {
        font-size: 26px;
    }
}