@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");
/* --- Aturan Dasar (Bisa Disesuaikan) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "poppins", sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

.hero-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.hero-box {
    width: 90%;
    max-width: 1200px;
    background: linear-gradient(135deg, #0b5fa5, #0a78b8);
    border-radius: 32px;
    padding: 72px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    position: relative; /* WAJIB untuk absolute image */
    overflow: visible; /* ⬅️ INI KUNCINYA */
    box-shadow: 0 8px 30px rgba(4, 53, 92, 0.15);
}

/* TEXT */
.hero-title {
    line-height: 1.2;
}

.title-big {
    font-size: 30px;
    font-weight: 550;
    letter-spacing: 0.6px;
}

.title-small {
    font-size: 50px;
    font-weight: 600;
    display: block;
    margin-top: 10px;
    letter-spacing: 0.8px;
}

.hero-text p {
    margin: 18px 0 22px;
    opacity: 0.95;
    font-size: 18px;
    max-width: 560px;
}

.btn-hero {
    display: inline-block;
    background: #ffffff;
    color: #333333;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(11, 95, 165, 0.18);
}

.hero-image img {
    width: 335px;
    position: absolute;
    top: -40px; /* kepala keluar ke atas */
    right: 40px; /* keluar sisi kanan */
    z-index: 4;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-image img {
        position: static;
        width: 260px;
        margin-top: 20px;
    }

    .hero-box {
        flex-direction: column;
        padding: 36px 24px;
        border-radius: 20px;
        text-align: center;
    }

    .hero-text p {
        margin: 14px auto 18px;
    }

    .title-small {
        font-size: 34px;
    }
}

/*navbar style*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    font-family: "Nunito", sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #3d3d3d;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2d7bf4;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2d7bf4;
    border-radius: 2px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile i {
    color: #2d7bf4;
}

.profile-name {
    font-weight: 500;
    font-size: 16px;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 100;
    top: 100%;
    left: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding-top: 15px;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    background: white;
}

.dropdown-content a:hover {
    background-color: #f1f5ff;
    color: #2d7bf4;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* dropdown profil user pada navbar*/
.user-dropdown {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    z-index: 999;
    min-width: 150px;
}

.dropdown-menu a,
.dropdown-menu button {
    padding: 10px 20px;
    text-align: left;
    background: none;
    border: none;
    width: 100%;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f1f5ff;
    color: #2d7bf4;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    padding: 8px;
}
.btn {
    display: inline-block;
    background-image: linear-gradient(to left, #0069ab, #2cbeff);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #1a66e0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Warna beda untuk atas & bawah */
.logo-text .top {
    display: block;
    color: #00598d; /* biru tua */
    font-size: 1rem;
}

.logo-text .bottom {
    display: block;
    color: #0084d4; /* biru cerah */
    font-size: 1.2rem;
}
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    padding: 8px;
    z-index: 1100; /* biar gak ketutup elemen lain */
}

/*header dan hero sytle*/

.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* full screen tinggi */
    background: url("../img/background_.png") no-repeat right center;
    background-size: cover; /* isi penuh, biar gak pecah */
    display: flex;
    align-items: center; /* vertical center */
    padding: 0 5%; /* kasih jarak sisi kiri */
}

.hero-content {
    max-width: 600px;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #3d3d3d;
}

.gradient-text {
    background: linear-gradient(to right, #0179b4, #88d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-content p {
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4f4f4f;
}

.hero-content .btn {
    display: inline-block;
    background: linear-gradient(90deg, #0069ab, #2cbeff);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero-content .btn:hover {
    opacity: 0.9;
}

/* Services Section */
.services {
    background: #ffffff;
    justify-content: center;
    justify-items: center;
    margin: 0 90px;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 50px;
}

/* JUDUL */
.section-title1_ {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-top: 60px;
}

.gradient-text {
    background: linear-gradient(135deg, #0b5fa5, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 14px auto 50px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;

    justify-content: center;
    justify-items: center; /* ⬅️ card selalu di tengah */
}

/* CARD */
.service-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* BODY CARD */
.card-body {
    padding: 22px;
}

.card-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #005f99;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.card-body a {
    display: inline-block;
    margin-top: 14px;
    font-weight: 400;
    color: #333333;
    text-decoration: none;
}

.card-body a:hover {
    text-decoration: underline;
}

.about-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    background: #f9fbff;
    border: 2px solid #cce7ff;
    border-radius: 20px;
    padding: 40px;
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #f9fbff padding-box,
        /* isi card tetap putih */ linear-gradient(to right, #95ddff, #c5ecff)
            border-box; /* border gradient */
}

.about-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    border: 2px solid #cce7ff;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 0 0 60%;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #3d3d3d;
}

.about-title span {
    color: #0099ff; /* warna biru branding */
    font-weight: bold;
}

.about-text {
    font-size: 1rem;
    color: #6d6d6d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-btn {
    display: inline-block;
    background: #00a4f4;
    color: #fff;
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.about-btn:hover {
    background: #0077cc;
}

.doctors {
    padding: 0 20px;
    text-align: center;
    background: #fff;
    justify-content: center;
    justify-items: center;
}

.section-title1 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 50px 0 50px;
}

.doctor-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.doctor-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-card .role {
    display: block;
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 5px;
    font-weight: bold;
}

.doctor-card .specialist {
    font-size: 0.9rem;
    color: #28a745;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin: 0 8px;
    font-size: 18px;
    color: #555;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

.section-subtitle2 {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin: 0 auto 40px; /* ini bikin block di tengah */
    max-width: 700px;
    text-align: center;
    display: block;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .navbar {
        padding: 15px 3%;
    }
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title1 {
        font-size: 28px;
    }
}
/* Responsive styles */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px;
    }
    .profile-name {
        display: none;
    }
    .filter2 {
        gap: 15px 20px;
    }
    .hero {
        background-position: center top; /* biar gak ketutup di layar kecil */
        height: auto;
        padding: 4rem 2rem;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-card.wide {
        grid-column: span 2; /* tetap full width di tablet */
    }
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }

    .doctors-section {
        position: static;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .about-content,
    .vm-container {
        flex-direction: column;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .bg-img {
        object-fit: contain; /* biar nggak kepotong di HP */
        background-color: #f0f4ff;
    }
    .hamburger {
        display: block;
    }
    .logo-text {
        display: inline;
    }
    .logo-text .top,
    .logo-text .bottom {
        display: inline;
        margin-right: 0.3rem;
        font-size: 1.1rem;
    }
    .navbar {
        padding: 15px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 12px 0;
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    .user-profile .profile-name {
        display: none;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        border-radius: 0;
        display: none;
        padding-top: 0;
        opacity: 1;
        transform: none;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
    .hero {
        height: auto; /* biar gak terlalu tinggi di hp */
    }

    .hero_text {
        top: auto;
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        max-width: 90%;
    }

    .hero_text h1 {
        font-size: 1.6rem;
    }

    .hero_text p {
        font-size: 0.9rem;
    }
    .about-container {
        flex-direction: column; /* urutkan vertikal */
        text-align: center;
        padding: 30px 20px;
    }

    .about-image {
        order: -1; /* gambar pindah ke atas */
    }

    .about-image img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .about-content {
        text-align: center;
    }

    .about-btn {
        margin-top: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin: 10px;
    }
    .service-card.wide {
        grid-column: span 1; /* jadi full satu baris di hp */
    }
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .user-profile i {
        font-size: 1.5rem;
    }

    .hamburger {
        font-size: 20px;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #004d80, #007bbf);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links i {
    width: 20px;
    text-align: center;
    color: #ffb300;
}

.contact-info-footer {
    list-style: none;
}

.contact-info-footer li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon-footer {
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details-footer {
    flex: 1;
}

.contact-details-footer h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details-footer p {
    margin: 0;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: white;
    color: #2d7bf4;
    transform: translateY(-5px);
}

.footer-bottom {
    background: #183153;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

/* Konsultasi telemedicine image box */
.konsul-telemedicine-image {
    background: #e9f6ff; /* soft blue box */
    padding: 18px;
    border-radius: 12px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 200px; /* fixed box height to ensure full-bleed image */
}

.konsul-telemedicine-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop/cover so image fills the box */
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .konsul-telemedicine-image {
        height: 140px;
        padding: 12px;
    }
}
