/* ==========================================================================
   RS Bhayangkara Bengkulu — Tema "Profesional Modern"
   Palet diambil dari identitas resmi: hijau kedokteran + emas Bhayangkara
   ========================================================================== */

:root {
    --hijau: #0F4C3A;
    --hijau-tua: #0A362A;
    --hijau-muda: #E4EEE9;
    --emas: #C9972E;
    --emas-muda: #F3E2BB;
    --krem: #F8F6F0;
    --tinta: #1C2420;
    --abu: #68706A;
}

html, body {
    height: 100%;
    overflow: visible !important;
    transform: none !important;
}

body {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.92em;
    color: var(--tinta);
    background-color: var(--krem);
    padding-top: 104px;
}

body > * {
    transform: none !important;
    overflow: visible !important;
}

h1, h2, h3, .font-display, .section-title, .page-header h1 {
    font-family: 'Fraunces', serif;
}

/* ---- Warna primer & tautan ---- */
.navbar.bg-primary,
.btn-primary,
.bg-primary,
.page-header {
    background-color: var(--hijau) !important;
    background-image: linear-gradient(100deg, var(--hijau-tua), var(--hijau)) !important;
    border-color: var(--hijau) !important;
}

.btn-primary {
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--hijau-tua) !important;
    background-image: none !important;
    border-color: var(--hijau-tua) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 76, 58, 0.25);
}

.text-primary {
    color: var(--hijau) !important;
}

.btn-outline-primary {
    color: var(--hijau) !important;
    border-color: var(--hijau) !important;
}

.btn-outline-primary:hover {
    background-color: var(--hijau) !important;
    border-color: var(--hijau) !important;
    color: #fff !important;
}

a {
    color: var(--hijau);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--emas);
}

/* ---- Navbar (mengambang / floating pill) ---- */
.navbar-float-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 16px 20px 0;
}

.navbar {
    background-color: #fff !important;
    background-image: none !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    box-shadow: 0 10px 34px rgba(15, 36, 28, 0.14);
}

@media (max-width: 991.98px) {
    .navbar { border-radius: 22px; padding: 0.6rem 1.1rem; }
}

.navbar .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.navbar-brand {
    color: var(--hijau-tua) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-brand img {
    filter: none;
    height: 42px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--tinta) !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--hijau) !important;
    transform: none;
}

.navbar-nav .nav-link.active {
    color: var(--hijau-tua) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: var(--emas);
    border-radius: 2px;
    position: absolute;
    bottom: -3px;
    left: 20%;
}

.navbar-toggler {
    border-color: var(--hijau) !important;
}

/* ---- Hero Section (layout dua kolom asimetris) ---- */
.hero-section {
    background: var(--krem);
    color: var(--tinta);
    padding: 60px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: var(--emas-muda);
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    opacity: .55;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.hero-section .hero-copy { max-width: 560px; }

.hero-section .eyebrow {
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 600;
    color: var(--hijau);
    margin-bottom: .5rem;
    display: block;
}

.hero-section h1 {
    font-size: 2.7rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--hijau-tua);
    line-height: 1.18;
}

.hero-section p {
    font-size: 1.05rem;
    margin-bottom: 32px;
    color: var(--abu);
}

.hero-section .btn-lg {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
}

.hero-section .btn-outline-light {
    border: 1.5px solid var(--hijau);
    color: var(--hijau-tua);
}

.hero-section .btn-outline-light:hover {
    background-color: var(--hijau);
    color: #fff !important;
}

/* Panel foto hero: bentuk melengkung asimetris, bukan persegi */
.hero-visual {
    position: relative;
}

.hero-visual .frame {
    border-radius: 38% 62% 58% 42% / 45% 38% 62% 55%;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 36, 28, 0.22);
    aspect-ratio: 4 / 4.6;
}

.hero-visual .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual .floating-badge {
    position: absolute;
    bottom: -18px;
    left: -14px;
    background: var(--hijau-tua);
    color: #fff;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: 0 16px 34px rgba(10, 54, 42, 0.35);
    min-width: 160px;
}

.hero-visual .floating-badge .num {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--emas);
    line-height: 1;
}

.hero-visual .floating-badge .lbl {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
}

.hero-visual .dot-ring {
    position: absolute;
    top: -24px;
    right: -18px;
    width: 90px;
    height: 90px;
    border: 3px dashed var(--emas);
    border-radius: 50%;
    opacity: .55;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 1.8rem 0;
}

.hero-stats .num {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--hijau);
    line-height: 1;
}

.hero-stats .lbl {
    font-size: .76rem;
    color: var(--abu);
}

/* Kotak pencarian: menyatu di bawah copy, bentuk pill besar */
.hero-finder {
    background: #fff;
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    max-width: 560px;
    box-shadow: 0 16px 40px rgba(15, 36, 28, 0.10);
    border: 1px solid #eee6d6;
}

.hero-finder .nav-tabs {
    border: none;
    gap: .3rem;
    margin-bottom: .8rem;
}

.hero-finder .nav-tabs .nav-link {
    border: none;
    color: var(--abu);
    font-size: .85rem;
    font-weight: 600;
    padding: .35rem .2rem;
    border-radius: 0;
    background: none;
}

.hero-finder .nav-tabs .nav-link.active {
    color: var(--hijau-tua);
    border-bottom: 2px solid var(--emas);
}

.hero-finder .form-control {
    border-radius: 100px 0 0 100px;
    border-color: #e3e0d6;
}

.hero-finder .input-group-text {
    border-radius: 100px 0 0 100px;
}

.hero-finder .btn {
    border-radius: 0 100px 100px 0;
}

@media (max-width: 991.98px) {
    .hero-section .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 320px; margin: 0 auto 2.5rem; }
    .hero-section h1 { font-size: 2.1rem; }
}

/* ---- Section Titles ---- */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--hijau-tua);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--emas);
    border-radius: 2px;
}

/* ---- Quick Info: susunan bento asimetris ---- */
.quick-info-section {
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.quick-info-bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 1.1rem;
}

.quick-info-bento .qi-main {
    grid-row: 1 / 3;
}

.quick-info-card {
    text-align: left;
    padding: 26px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(15, 36, 28, 0.09);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
}

.quick-info-bento .qi-main .quick-info-card {
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg, var(--hijau-tua), var(--hijau));
    color: #fff;
}

.quick-info-bento .qi-side .quick-info-card {
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
}

.quick-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 76, 58, 0.16);
}

.quick-info-card i {
    font-size: 1.3rem;
    color: var(--hijau-tua);
    background: var(--emas-muda);
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50% 45% 50% 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-info-bento .qi-main .quick-info-card i {
    background: rgba(255,255,255,.16);
    color: var(--emas);
    width: 64px;
    height: 64px;
    min-width: 64px;
    font-size: 1.6rem;
}

.quick-info-card h5 {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--tinta);
    font-size: 1rem;
}

.quick-info-bento .qi-main .quick-info-card h5 { color: #fff; font-size: 1.2rem; }

.quick-info-card p {
    font-size: 0.88rem;
    color: var(--abu);
    margin-bottom: 0;
}

.quick-info-bento .qi-main .quick-info-card p { color: rgba(255,255,255,.78); }

@media (max-width: 767.98px) {
    .quick-info-bento { grid-template-columns: 1fr; }
    .quick-info-bento .qi-main { grid-row: auto; }
}

/* ---- Card Layanan: sudut terpotong diagonal + ikon mengambang ---- */
.service-card,
.service-item-card {
    border: none;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 36, 28, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover,
.service-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(15, 36, 28, 0.16);
}

.service-card .card-img-top,
.service-item-card .card-img-top {
    height: 190px;
    object-fit: cover;
}

.service-card .card-body,
.service-item-card .card-body {
    padding: 28px 24px 24px;
    position: relative;
}

.service-card .card-body::before,
.service-item-card .card-body::before {
    content: '';
    position: absolute;
    top: -26px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--emas);
    box-shadow: 0 8px 18px rgba(201, 151, 46, 0.45);
}

.service-card .card-body::after,
.service-item-card .card-body::after {
    content: '\f0f8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -13px;
    left: 42px;
    color: var(--hijau-tua);
    font-size: 1.05rem;
}

.service-item-card .service-icon {
    display: none; /* ikon sudah tampil sebagai badge melingkar di atas kartu */
}

/* ---- Card Styles (General, non-layanan) ---- */
.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 36, 28, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(15, 36, 28, 0.13);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
    background-color: #fff;
}

.card-title {
    font-weight: 700;
    color: var(--tinta);
}

/* Dokter Card: foto bulat, bukan persegi */
.doctor-card {
    text-align: center;
    padding-top: 30px;
    background: #fff;
}

.doctor-card .card-img-top {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin: 0 auto 14px;
    border: 5px solid var(--emas-muda);
    box-shadow: 0 8px 20px rgba(15, 36, 28, 0.12);
}

.doctor-card .card-body {
    padding: 0 20px 24px;
}

.doctor-card .card-body h5 {
    color: var(--hijau-tua);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

.doctor-card .card-body p.card-text {
    font-size: 0.9rem;
    color: var(--abu);
}

/* Service Card */
.service-item-card .service-icon {
    font-size: 2.4rem;
    color: var(--hijau);
    margin-bottom: 15px;
}

.service-item-card .card-body h5 {
    color: var(--tinta);
    font-size: 1.2rem;
    font-weight: 700;
}

/* News Card */
.news-card .card-body h5 {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-card .card-text.small {
    font-size: 0.85rem;
    color: var(--abu) !important;
}

/* ---- Page Header (halaman lain): tepi bawah melengkung ---- */
.page-header {
    background-color: var(--hijau);
    background-image: linear-gradient(120deg, var(--hijau-tua), var(--hijau));
    color: #fff;
    padding: 90px 0 90px;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -1px;
    height: 60px;
    background: var(--krem);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
    font-size: 2.6rem;
    font-weight: 600;
}

.page-header p.lead {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,.85);
}

/* ---- Detail Pages ---- */
.img-fluid.rounded-circle {
    border: 5px solid var(--emas-muda);
}

.blog-content {
    line-height: 1.8;
    color: var(--tinta);
    font-size: 1.05rem;
}

.blog-content p {
    margin-bottom: 1.5em;
}

/* ---- Footer ---- */
.footer {
    background-color: var(--hijau-tua);
    color: rgba(255,255,255,.75);
    padding: 60px 0 20px;
    font-size: 0.95rem;
    box-shadow: none;
}

.footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.footer p, .footer ul {
    color: rgba(255,255,255,.68);
}

.footer a {
    color: rgba(255,255,255,.68);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--emas);
}

.footer .social-icons a {
    color: rgba(255,255,255,.85);
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--emas);
    transform: translateY(-3px);
}

.footer .py-3 {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px !important;
    margin-top: 30px;
}

/* ---- Utility / Responsiveness ---- */
.map-container {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15,36,28,0.10);
}

.map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 14px;
}

/* ---- Form Contact ---- */
.form-label {
    font-weight: 500;
    color: var(--tinta);
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--hijau);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 58, 0.15);
}

.form-check-input:checked {
    background-color: var(--hijau);
    border-color: var(--hijau);
}

.form-check-input:focus {
    border-color: var(--hijau);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 58, 0.15);
}

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--hijau-tua);
    border-color: #e3e0d6;
}

.pagination .page-link:hover {
    color: var(--hijau-tua);
    background-color: var(--emas-muda);
    border-color: var(--emas-muda);
}

.pagination .page-item.active .page-link {
    background-color: var(--hijau);
    border-color: var(--hijau);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #b8b6ac;
}

/* ---- Modal ---- */
.modal-content {
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid #eee6d6;
}

.modal-footer {
    border-top: 1px solid #eee6d6;
}

/* ---- AOS Animation Defaults ---- */
[data-aos="fade-up"],
[data-aos="fade-right"],
[data-aos="fade-left"] {
    transition-property: opacity, transform !important;
    transition-duration: 0.8s !important;
    transition-timing-function: ease-out !important;
}

/* ---- Medical Check-up Package Card ---- */
.package-card .card-header {
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    background-color: var(--hijau) !important;
}

.package-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.package-card .card-body {
    padding: 30px;
}

.package-card .package-items-list {
    margin-top: 15px;
    padding-left: 0;
}

.package-card .package-items-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--abu);
    display: flex;
    align-items: center;
}

.package-card .package-items-list li i {
    font-size: 1rem;
    margin-right: 10px;
    color: var(--hijau);
}

/* ---- Parallax Section ---- */
.parallax-section {
    background: linear-gradient(rgba(10,54,42,.75), rgba(10,54,42,.90)), url('../img/bg-parallax.jpeg') no-repeat center center fixed;
    background-size: cover;
    padding: 100px 0;
    position: relative;
}

.parallax-section h2 {
    font-size: 2.6rem;
    font-weight: 600;
    text-shadow: none;
}

.parallax-section p.lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.parallax-section .btn {
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.parallax-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* ---- About Section: gambar berbingkai asimetris + badge mengambang ---- */
.about-visual {
    position: relative;
}

.about-visual .frame {
    border-radius: 30% 70% 65% 35% / 40% 45% 55% 60%;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(15, 36, 28, 0.16);
    aspect-ratio: 5/4.6;
}

.about-visual .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-visual .badge-float {
    position: absolute;
    top: -18px;
    right: 6px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 14px 30px rgba(15, 36, 28, 0.14);
    display: flex;
    align-items: center;
    gap: .7rem;
}

.about-visual .badge-float i {
    color: var(--emas);
    font-size: 1.5rem;
}

.about-visual .badge-float .num {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--hijau-tua);
    font-size: 1.1rem;
    line-height: 1;
}

.about-visual .badge-float .lbl {
    font-size: .72rem;
    color: var(--abu);
}

/* ---- Badge kategori (dipakai opsional di kartu layanan) ---- */
.badge-kategori {
    background: var(--emas-muda);
    color: var(--hijau-tua);
    font-weight: 600;
    font-size: .72rem;
    padding: .35rem .7rem;
    border-radius: 20px;
    display: inline-block;
}

/* ---- Kartu Paket MCU: strip warna atas + badge harga pil ---- */
.mcu-card {
    position: relative;
    border-radius: 20px !important;
    padding-top: 6px;
}

.mcu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--hijau), var(--emas));
    border-radius: 20px 20px 0 0;
}

.mcu-card .price-tag {
    background: var(--hijau-muda);
    color: var(--hijau-tua);
    border-radius: 100px;
    padding: .4rem 1rem;
    font-weight: 700;
    font-size: .92rem;
    display: inline-block;
}
