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

body {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
}

.mobile-container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background-color: #007D79;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* --- HEADER SECTION --- */
.header-section {
    flex: 0 0 55%;
    background-color: #f0f4f8;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center 70%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    /* Posisi teks di tengah-kanan */
    padding: 5vmin;
    padding-top: 15vmin;
    /* Dorong konten sedikit ke bawah dari logo */
    position: relative;
    overflow: visible;
    /* Biarkan gambar perawat melewati batas */
}

.logo {
    position: absolute;
    top: 3vmin;
    left: 3vmin;
    width: clamp(150px, 50vw, 240px);
    z-index: 3;
}

.nurse-img {
    position: absolute;
    bottom: -10%;
    left: 0;
    height: 170%;
    /* Dibesarkan lagi */
    z-index: 1;
    object-fit: contain;
    object-position: bottom left;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-end;
    z-index: 2;
}

.title-box {
    background-color: #008886;
    padding: 2.5vmin 6vmin;
    /* Diperbesar */
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.title-box h1 {
    font-family: 'Righteous', 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    /* Dibesarkan */
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #CCE000; /* Kuning stabilo Kemenkes */
}

.title-subtitle {
    text-align: center;
    color: #007D79;
    font-size: clamp(0.75rem, 3vw, 1rem);
    /* Dibesarkan */
    line-height: 1.5;
    margin-top: 1.5vmin;
    margin-bottom: 1vmin;
    z-index: 2;
}

/* --- MAIN BUTTONS SECTION --- */
.bottom-section {
    flex: 1;
    background-color: #007D79;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -15px;
    padding: 4vmin 5vmin;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Tombol di tengah card */
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vh, 14px);
}

.menu-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1fa3a0, #137a77);
    border-radius: 8px;
    padding: clamp(10px, 1.8vh, 16px) 16px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-btn:hover,
.menu-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #22b0ac, #158582);
}

.btn-icon {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
}

.btn-icon i {
    color: white;
}

.btn-text {
    flex: 1;
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-arrow {
    background-color: white;
    color: #007D79;
    width: clamp(22px, 3.5vw, 28px);
    height: clamp(22px, 3.5vw, 28px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* --- FOOTER SECTION --- */
.footer-section {
    background-color: #007D79;
    padding: 1.5vmin 5vmin 3vmin 5vmin;
    display: flex;
    flex-direction: column;
    gap: 1vmin;
    z-index: 2;
    flex-shrink: 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5vmin;
}

.footer-item {
    color: white;
    font-size: clamp(0.6rem, 2.2vw, 0.85rem);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-icons span {
    margin-left: 2px;
}

/* === RESPONSIVE MEDIA QUERIES === */

/* HP sempit (lebar <= 360px) */
@media (max-width: 360px) {
    .footer-item {
        font-size: 0.6rem;
        gap: 3px;
    }

    .footer-section {
        padding: 1.5vmin 3vmin 2vmin 3vmin;
    }
}

/* HP kecil (tinggi <= 650px, misal iPhone SE) */
@media (max-height: 650px) {
    .header-section {
        flex: 0 0 50%;
    }

    .nurse-img {
        height: 87%;
    }

    .logo {
        width: clamp(100px, 35vw, 150px);
    }

    .bottom-section {
        padding: 0 4vmin 2vmin 4vmin;
    }

    .footer-section {
        padding: 1vmin 4vmin 2vmin 4vmin;
    }
}

/* HP sedang (tinggi 651px - 750px) */
@media (min-height: 651px) and (max-height: 750px) {
    .header-section {
        flex: 0 0 52%;
    }

    .nurse-img {
        height: 90%;
    }
}

/* HP besar (tinggi > 750px) */
@media (min-height: 751px) {
    .header-section {
        flex: 0 0 55%;
    }

    .nurse-img {
        height: 95%;
    }
}

/* HP sangat besar / tablet kecil (tinggi > 900px) */
@media (min-height: 901px) {
    .mobile-container {
        max-height: none;
    }
}

/* --- EMBED PAGE STYLE --- */
.embed-page {
    justify-content: space-between;
    height: 100vh;
    height: 100dvh;
}

.embed-header {
    background-color: #007D79;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    flex-shrink: 0;
}

.embed-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.back-icon-btn {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.back-icon-btn:hover {
    transform: scale(1.1);
}

.embed-container {
    flex: 1;
    width: 100%;
    background-color: #f0f4f8;
    position: relative;
    overflow: hidden;
}

.embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.embed-footer {
    background-color: #007D79;
    padding: 12px 16px 16px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.back-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(90deg, #1fa3a0, #137a77);
    border-radius: 8px;
    padding: 14px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.back-home-btn:hover,
.back-home-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #22b0ac, #158582);
}