/* --- Home Page Specific Styles --- */

.home-wrapper {
    background: url(/assets/images/pattern.png);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto;
    min-height: 100dvh;
}

/* Top Header Area */
.home-header {
    background: url('/assets/images/bg-home.png') 100% 100%;
    background-position: center;
    padding: 24px 20px 80px 20px;
    color: var(--text-light, #ffffff);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
}

.user-welcome-text {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 2px;
}

.user-name-dropdown {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light, #ffffff);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.my-badge-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: transparent;
}

/* Digital Member Card Section */
.card-section-wrapper {
    /* Kurangi tarikan ke atas agar bagian atas kartu tidak terpotong header */
    margin-top: -30px; /* UBAH DARI -65px MENJADI -30px ATAU -25px */
    padding: 0 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 5; /* Memastikan kartu berada di atas background header */
}

.home-digital-card-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    transition: transform 0.2s ease;
}

.home-digital-card-img:active {
    transform: scale(0.98); /* Efek tombol saat ditekan */
}

.digital-card {
    background: url('/assets/images/bg-card.png') 100%;
    border-radius: 16px;
    padding: 18px 20px;
    color: #ffffff;
    box-shadow: 0px 3px 2px 1px rgb(0 0 0 / 25%);
    position: relative;
    overflow: hidden;
    border: 0.5px #ffffff66 solid;
}

.card-brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.card-brand-sub {
    font-size: 0.65rem;
    opacity: 0.8;
}

.card-number {
    font-size: 1rem;
}

.card-owner-name {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* QR Code Container inside Card */
.qr-code-box {
    background-color: #ffffff;
    padding: 6px;
    border-radius: 10px;
    display: inline-block;
}

.qr-code-box img,
.qr-code-box svg {
    width: 68px;
    height: 68px;
    display: block;
}

/* Metadata Info Grid in Card */
.card-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 7px;
    padding-top: 10px;
}

.info-item label {
    font-size: 0.62rem;
    opacity: 0.75;
    display: block;
}

.info-item span {
    font-size: 8px;
    font-weight: 400;
    display: block;
    color: #b2c7e5;
}

.card-claim-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.claim-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.claim-badge {
    background-color: #ffffff;
    color: var(--brand-blue, #064CAD);
    font-size: 8px;
    padding: 0px 4px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.claim-badge:hover {
    color: var(--brand-blue-dark, #0a4099);
    transform: translateY(-1px);
}

/* Section Title & Common Labels */
.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

/* Active Booking Card Specifics */
.active-booking-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.booking-label {
    font-size: 0.7rem;
    color: var(--color-blue-text);
    font-weight: 500;
}

.booking-queue-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.booking-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
}

.hospital-img-wrapper {
    width: 60px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.hospital-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-info .info-line {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-blue-text);
    line-height: 1.4;
}

.hospital-info .info-line img {
    width: 14px;
    height: 14px;
    margin-right: 7px;
}

.badge-confirmed {
    background-color: #e6f9ed;
    color: #27ae60;
    border: 1px solid #b7f0cb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
}

/* Grid Menu Utama (6 Items) */
.menu-grid-section {
    padding: 0 16px 20px 16px;
}

.menu-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.menu-item-link:active {
    transform: scale(0.95);
}

.menu-icon-box {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1 / 1; /* Menjaga kotak tetap presisi berbentuk persegi rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.menu-icon-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.menu-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #444444;
    line-height: 1.2;
}

/* Promo Banner Section */
.promo-banner-section {
    width: 100%;
    overflow: hidden;
}

.promoSwiper {
    width: 100%;
    padding: 4px 0;
}

.promoSwiper .swiper-slide {
    width: 85%; /* Mengatur lebar banner utama, sehingga 15% menyisakan di kiri-kanan */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.promo-slide-img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}