/* --- GENERAL STYLING --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333; /* Warna teks default untuk konten */
    background-color: #ffffff;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- HEADER STYLING --- */
.main-header {
    padding: 15px 0;
    position: absolute; /* Default transparan di atas hero */
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header.header-solid {
    position: sticky; /* Menjadi lengket saat di-scroll */
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-header .logo-center img {
    width: 130px;
    height: auto;
    display: block;
}
.main-header nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1; /* Membuat nav mengambil ruang yang sama */
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.main-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}
.main-header.header-solid nav a { color: #333; }
.main-header.header-solid .user-profile i { color: #333; }

/* --- HERO SECTION (HOMEPAGE) --- */
.home-body {
    color: white; /* Khusus homepage, teks default putih */
}
.home-body main {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.home-body main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; 
    z-index: 2;
}
.hero-section h1 { font-size: 60px; font-weight: 700; margin: 0; max-width: 850px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero-section p { font-size: 22px; margin-top: 15px; max-width: 850px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }


/* --- ABOUT US PAGE --- */
.about-hero {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.about-hero .container { position: relative; z-index: 2; text-align: center; }
.about-hero h1 { font-size: 56px; font-weight: 700; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.page-content { background-color: #ffffff; }
.content-section { padding: 100px 0; }
.two-column { display: flex; gap: 60px; align-items: center; }
.two-column.reverse { flex-direction: row-reverse; }
.column-text { flex: 1; }
.column-text h2 { font-size: 38px; font-weight: 600; margin-top: 0; margin-bottom: 20px; }
.column-text p { font-size: 16px; line-height: 1.8; }
.column-image { flex: 1; }
.column-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.video-section {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
}
.play-button-overlay { position: relative; z-index: 2; color: white; text-align: center; }
.play-button-overlay .play-button { display: flex; justify-content: center; align-items: center; width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; color: white; font-size: 40px; backdrop-filter: blur(5px); border: 2px solid white; margin: auto; text-decoration: none; transition: background 0.3s; }
.play-button-overlay .play-button:hover { background: rgba(255,255,255,0.4); }
.play-button-overlay span { margin-top: 15px; font-weight: 600; display: block; }

.testimonials-section { background-color: #f8f9fa; text-align: center; background-size: cover; background-position: center; position: relative; }
.testimonials-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,20,30,0.8); }
.testimonials-section .container { position: relative; z-index: 2; }
.testimonials-section h2 { font-size: 38px; font-weight: 600; margin-bottom: 50px; color: white; }
.testimonial-container { display: flex; gap: 30px; }
.testimonial-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: left; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; gap: 15px; }
.testimonial-card .author img { width: 50px; height: 50px; border-radius: 50%; }
.testimonial-card .author span { font-weight: 600; }

/* ================== LOGIN & SIGNUP PAGE ================== */
.auth-body {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.auth-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    text-align: center;
    z-index: 1;
    color: #333;
}

.auth-card .logo {
    width: 80px;
    margin-bottom: 15px;
}

.auth-card h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.social-login-btn:hover {
    background-color: #f5f5f5;
}

.social-login-btn img {
    width: 20px;
    margin-right: 10px;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.separator span {
    padding: 0 10px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #3B8C6E;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: #317259;
}

.guest-link {
    display: block;
    margin-top: 20px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
}

.switch-form {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
}

.switch-form a {
    color: #3B8C6E;
    font-weight: 600;
    text-decoration: none;
}
/* ================== PROFILE PAGE STYLING ================== */
.profile-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Latar belakang abu-abu muda */
}

.profile-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: auto;
}

.profile-card h3 {
    margin-top: 0;
    font-size: 28px;
    font-weight: 600;
}

.profile-card .subtitle {
    margin-bottom: 30px;
    color: #6c757d;
}

.profile-card .input-group {
    margin-bottom: 20px;
}

.profile-card .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.profile-card .input-group input,
.profile-card .input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-card .input-group input:focus,
.profile-card .input-group textarea:focus {
    outline: none;
    border-color: #3B8C6E;
    box-shadow: 0 0 0 3px rgba(59, 140, 110, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .input-group {
    flex: 1;
}

.form-divider {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 30px 0;
}

.profile-submit-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background-color: #3B8C6E;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.profile-submit-btn:hover {
    background-color: #317259;
}

.profile-card .alert {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 5px;
    margin-bottom: 20px;
}

.profile-card .alert ul {
    margin: 0;
    padding-left: 20px;
}
/* ================== SERVICES PAGE STYLING ================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}
.section-header h2 {
    font-size: 38px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}
.section-header p {
    font-size: 16px;
    line-height: 1.8;
    color: #6c757d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    border: 1px solid #e9ecef;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px #3B8C6E;
    border-color: transparent;
}
.service-card i {
    font-size: 48px;
    color: #3B8C6E; /* Warna hijau sehatsaji */
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}
.service-card p {
    line-height: 1.7;
    color: #6c757d;
}

/* Membuat grid menjadi 2 kolom di tablet */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Membuat grid menjadi 1 kolom di mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* ================== MENU PAGE STYLING ================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-bar span {
    font-weight: 500;
}

.filter-select {
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop */
    gap: 30px;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); } /* 3 kolom di tablet */
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); } /* 2 kolom di mobile */
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; } /* 1 kolom di layar sangat kecil */
}
/* ================== PRODUCT DETAIL PAGE ================== */
/* Styling untuk elemen baru di halaman detail produk */
.pax-input input {
    width: 100px;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    text-align: center;
}

.total-price-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.total-price-section span {
    font-size: 16px;
    color: #6c757d;
}

.total-price-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #3B8C6E;
    margin: 5px 0 0 0;
}

.main-image.placeholder-image img {
    height: auto; /* Agar placeholder tidak terdistorsi */
}
.product-detail-section {
    padding: 60px 0;
    background-color: #fff;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* --- Galeri Gambar (Kolom Kiri) --- */
.product-gallery {
    display: flex;
    gap: 20px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    border-color: #3B8C6E;
}

.main-image {
    flex: 1;
}

.main-image > img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.nutrition-info {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.nutrition-info strong {
    font-size: 18px;
    font-weight: 600;
}

.nutrition-info ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    color: #6c757d;
}

/* --- Detail Produk (Kolom Kanan) --- */
.product-details h1 {
    font-size: 38px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

.product-details > p {
    font-size: 16px;
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 30px;
    overflow-wrap: break-word; /* <-- Tambahkan baris ini */
    word-wrap: break-word;
}

.package-options,
.package-choices {
    margin-bottom: 30px;
}

.package-options h3,
.package-choices h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.duration-buttons {
    display: flex;
    gap: 10px;
}

.duration-buttons button {
    padding: 10px 20px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.duration-buttons button.active,
.duration-buttons button:hover {
    background-color: #3B8C6E;
    color: white;
    border-color: #3B8C6E;
}

.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.choice-card {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-card.active,
.choice-card:hover {
    border-color: #3B8C6E;
    box-shadow: 0 0 0 2px rgba(59, 140, 110, 0.2);
}

.choice-card i {
    font-size: 24px;
    color: #3B8C6E;
}

.choice-card span {
    display: block;
    margin: 10px 0;
}

.choice-card strong {
    font-size: 18px;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #3B8C6E;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.add-to-cart-btn:hover {
    background-color: #317259;
}
/* ================== BLOG PAGE STYLING ================== */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* --- Kolom Postingan --- */
.blog-posts .post-card {
    margin-bottom: 50px;
}
.post-image {
    position: relative;
    margin-bottom: 25px;
}
.post-image img {
    width: 100%;
    border-radius: 12px;
}
.post-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #3B8C6E;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}
.post-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}
.post-content h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.post-content h2 a:hover {
    color: #3B8C6E;
}
.post-content p {
    color: #6c757d;
    line-height: 1.8;
}
.post-meta {
    display: flex;
    gap: 25px;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}
.post-meta span i {
    margin-right: 5px;
    color: #3B8C6E;
}
.pagination-links nav {
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
}

/* --- Sidebar --- */
.blog-sidebar .widget {
    margin-bottom: 40px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}
.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.search-form {
    position: relative;
}
.search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
}
.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border: none;
    background: #3B8C6E;
    color: white;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    transition: color 0.3s;
}
.category-list li:last-child a {
    border-bottom: none;
}
.category-list li a:hover {
    color: #3B8C6E;
}
/* ================== BLOG DETAIL PAGE ================== */
.post-full-content .post-category {
    background-color: #3B8C6E;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}
.post-full-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.3;
}
.post-full-content .post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}
.post-body {
    line-height: 1.9;
    font-size: 16px;
    color: #444;
}
.post-body p {
    margin-bottom: 20px;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}
/* ================== KONSULTASI PAGE STYLING ================== */
/* ================== KONSULTASI PAGE STYLING ================== */
.column-text .subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #6c757d;
    margin-top: -15px;
    margin-bottom: 20px;
}

.section-divider {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 60px 0;
}

.consultation-details h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.consultation-details p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #3B8C6E;
    border-radius: 8px;
    background-color: #fff;
    color: #3B8C6E;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #3B8C6E;
    color: white;
}

/* --- RESPONSIF UNTUK KONSULTASI PAGE --- */

/* Tablet (misalnya layar di bawah 992px) */
@media (max-width: 992px) {
    /* Bagian perkenalan dokter akan menumpuk secara vertikal */
    .two-column {
        flex-direction: column; /* Ubah dari baris menjadi kolom */
        gap: 30px; /* Kurangi jarak */
    }

    /* Membuat gambar tidak terlalu besar di tablet */
    .two-column .column-image {
        max-width: 400px;
        margin: auto;
    }
}

/* Mobile (misalnya layar di bawah 768px) */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 0; /* Kurangi padding atas/bawah */
    }

    .about-hero h1 {
        font-size: 42px; /* Kecilkan judul hero */
    }

    .column-text h2 {
        font-size: 32px; /* Kecilkan judul dokter */
    }

    .consultation-details h3 {
        font-size: 22px; /* Kecilkan sub-judul */
    }
}
/* ================== USER CHAT PAGE STYLING ================== */
/* 1. LAYOUT */
    .chat-wrapper {
        background-color: #f7f9fc;
        min-height: 85vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
    }

    .chat-card {
        width: 100%;
        max-width: 850px;
        background: var(--chat-bg);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 80vh;
        border: 1px solid rgba(0,0,0,0.05);
    }

    /* 2. HEADER */
    .chat-header {
        background: var(--chat-bg);
        padding: 20px 30px;
        display: flex;
        align-items: center;
        gap: 15px;
        border-bottom: 1px solid #edf2f7;
        z-index: 10;
    }

    .admin-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--chat-primary);
        padding: 2px;
    }

    .status-indicator {
        height: 10px;
        width: 10px;
        background-color: #48bb78;
        border-radius: 50%;
        display: inline-block;
        margin-right: 5px;
    }

    /* 3. BODY */
    .chat-body {
        flex: 1;
        padding: 30px;
        overflow-y: auto;
        background-color: var(--chat-bg);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Scrollbar Cantik */
    .chat-body::-webkit-scrollbar { width: 6px; }
    .chat-body::-webkit-scrollbar-thumb { background-color: #cbd5e0; border-radius: 10px; }

    /* 4. BUBBLES */
    .message-row {
        display: flex;
        width: 100%;
        margin-bottom: 5px;
    }

    .justify-end { justify-content: flex-end; }
    .justify-start { justify-content: flex-start; }

    .message-bubble {
        max-width: 65%;
        padding: 12px 18px;
        font-size: 15px;
        line-height: 1.5;
        position: relative;
        word-wrap: break-word;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }

    /* Bubble Saya (Kanan) - Modern Green */
    .bubble-me {
        background: var(--chat-primary); /* Gradient Opsional: linear-gradient(135deg, #3B8C6E, #2a6650) */
        color: white;
        border-radius: 20px 20px 4px 20px; /* Sudut tajam di kanan bawah */
    }

    /* Bubble Admin (Kiri) - Modern Gray */
    .bubble-other {
        background-color: var(--chat-gray);
        color: var(--chat-text);
        border-radius: 20px 20px 20px 4px; /* Sudut tajam di kiri bawah */
    }

    .message-time {
        font-size: 11px;
        margin-top: 5px;
        display: block;
        opacity: 0.8;
        text-align: right;
    }

    /* 5. INPUT AREA */
    .chat-footer {
        padding: 20px;
        background: var(--chat-bg);
        border-top: 1px solid #edf2f7;
    }

    .input-group-custom {
        display: flex;
        align-items: center;
        background: var(--chat-gray);
        border-radius: 30px;
        padding: 5px 10px;
        border: 1px solid transparent;
        transition: 0.3s;
    }

    .input-group-custom:focus-within {
        background: white;
        border-color: var(--chat-primary);
        box-shadow: 0 0 0 3px var(--chat-primary-light);
    }

    .chat-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 12px 15px;
        outline: none;
        font-size: 15px;
        color: var(--chat-text);
    }

    .btn-send {
        background: var(--chat-primary);
        color: white;
        border: none;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
        margin-right: 5px;
        box-shadow: 0 4px 10px rgba(59, 140, 110, 0.3);
    }

    .btn-send:hover {
        background: #2a6650;
        transform: scale(1.05);
    }

    /* 6. DATE SEPARATOR */
    .date-separator {
        display: flex;
        justify-content: center;
        margin: 20px 0;
        position: relative;
    }
    
    .date-separator::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        background: #edf2f7;
        z-index: 1;
    }

    .date-label {
        background-color: #ffffff;
        color: var(--chat-text-light);
        padding: 4px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid #edf2f7;
        z-index: 2;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
/* ================== CUSTOMIZE PAGE STYLING ================== */
.menu-group-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.customize-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    gap: 30px;
}

.customize-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.customize-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.customize-card .card-info {
    flex-grow: 1;
}

.card-info .name {
    font-weight: 600;
    margin: 0 0 5px 0;
}

.card-info .price {
    color: #6c757d;
    margin: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector .btn-qty {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.quantity-selector .qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 500;
}

.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 999;
}

.floating-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-display {
    font-size: 24px;
    font-weight: 700;
    color: #3B8C6E;
}

.btn-checkout {
    padding: 12px 35px;
    background-color: #3B8C6E;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .customize-card {
        flex-direction: column; /* Tumpuk gambar, info, dan quantity secara vertikal */
        align-items: flex-start; /* Ratakan kiri */
        padding: 10px;
    }

    .customize-card img {
        width: 100%; /* Gambar full width */
        height: 150px; /* Sesuaikan tinggi gambar */
        margin-right: 0;
        margin-bottom: 10px;
    }

    .customize-card .card-info {
        margin-bottom: 10px; /* Beri jarak ke quantity selector */
    }

    .floating-footer .container {
        flex-direction: column; /* Tumpuk total harga dan tombol checkout */
        gap: 10px;
        align-items: stretch; /* Buat tombol full width */
    }

    .btn-checkout {
        text-align: center; /* Teks tombol di tengah */
    }
}
    
/* ================== CHECKOUT & KONFIRMASI PAGE ================== */

/* Style Map */
#map {
     height: 300px;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #ddd;
    margin-bottom: 15px;
    z-index: 1;
}
.payment-option-label { /* Style lama Anda */
    display: block; 
    border: 1px solid #ced4da; 
    border-radius: 8px; 
    padding: 15px; cursor: pointer; 
    transition: all 0.3s;
}
.payment-option-label:hover, input[type="radio"]:checked + .payment-option-label {
    background-color: #f8f9fa; border-color: #3B8C6E;
}
input[type="radio"]:checked + .payment-option-label { 
    background-color: #e8f5e9;
    box-shadow: 0 0 0 1px #3B8C6E; 
}

.payment-option-input { 
    display: none; 
}
.checkout-layout, .confirmation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
}
.checkout-card, .payment-details-card, .order-summary-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.checkout-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}
.checkout-card textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-family: 'Poppins', sans-serif;
}
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}
.payment-option {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.payment-option input[type="radio"] {
    display: none;
}
.payment-option input[type="radio"]:checked + img {
    outline: 2px solid #3B8C6E;
    border-radius: 4px;
}
.payment-option img {
    height: 25px;
    width: auto;
}
.checkout-footer {
    text-align: center;
    margin-top: 40px;
}
.summary-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}
.payment-details-card .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.payment-details-card .status-badge {
    background-color: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}


/* ================== HOMEPAGE SUMMARY SECTIONS ================== */
.hero-button {
    margin-top: 30px;
    padding: 12px 35px;
    background-color: white;
    color: #3B8C6E;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 2;
}
.hero-button:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
}

.text-center {
    text-align: center;
}
.mt-4 {
    margin-top: 1.5rem;
}
.bg-light {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 38px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-summary-card {
    border: 1px solid #e9ecef;
    padding: 30px;
    border-radius: 12px;
}
.service-summary-card i {
    font-size: 40px;
    color: #3B8C6E;
    margin-bottom: 15px;
}
.service-summary-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-link {
    display: inline-block;
    margin-top: 40px;
    font-weight: 600;
    color: #3B8C6E;
    text-decoration: none;
    border-bottom: 2px solid #3B8C6E;
    padding-bottom: 3px;
}

.blog-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ================== DETAIL PESANAN PAGE ================== */
.bg-light {
    background-color: #f8f9fa;
}

.status-navbar {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.status-navbar .status-item {
    text-decoration: none;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.status-navbar .status-item.active,
.status-navbar .status-item:hover {
    background-color: #3B8C6E;
    color: white;
}

.order-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    padding: 30px;
    margin-top: 40px;
}
.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-info-header strong {
    display: block;
    font-size: 18px;
    color: #333;
}
.order-info-header span {
    font-size: 14px;
    color: #6c757d;
}
.shipping-estimate {
    text-align: right;
}
.shipping-estimate strong {
    color: #3B8C6E;
}

.order-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.order-product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.order-product-info img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.product-text h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}
.product-text p {
    margin: 0;
    color: #6c757d;
}
.order-price-info {
    text-align: right;
}
.order-price-info .label {
    font-size: 14px;
    color: #6c757d;
    display: block;
}
.order-price-info .price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: block;
}
.order-price-info .quantity {
    font-size: 14px;
    color: #6c757d;
    display: block;
}

.order-sub-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.detail-column h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.detail-column p {
    margin: 4px 0;
    color: #6c757d;
}

.order-summary-final {
    max-width: 400px;
    margin-left: auto;
}
.order-summary-final h5 {
    font-size: 18px;
    font-weight: 600;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #6c757d;
}
.summary-item.total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    padding-top: 15px;
}

/* ================== ORDER HISTORY PAGE ================== */
.order-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.order-list-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}
.order-item-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}
.order-item-info .order-id {
    font-weight: 600;
    font-size: 16px;
    display: block;
}
.order-item-info .order-date {
    font-size: 14px;
    color: #6c757d;
}
.order-item-details {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* <-- TAMBAHKAN INI */
    gap: 15px; /* <-- TAMBAHKAN INI */
}
.order-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}
.order-item-product img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.order-item-product span {
    font-weight: 500;
}
.order-item-actions {
    text-align: right;
}
.order-item-actions p {
    margin: 0 0 10px 0;
}
.cta-button-small {
    padding: 8px 15px;
    background-color: #3B8C6E;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.cta-button-small:hover {
    background-color: #317259;
}
.status-badge[data-status="Belum Lunas"] {
    background-color: #fff1de;
    color: #ff8f00;
}
.status-badge[data-status="Lunas"],
.status-badge[data-status="Sedang Diproses"] {
    background-color: #e0f7fa;
    color: #007bff;
}
.status-badge[data-status="Selesai"] {
    background-color: #e0f2f1;
    color: #00796b;
}
.status-badge[data-status="Dibatalkan"] {
    background-color: #ffebee;
    color: #d32f2f;
}

/* ================== GALLERY PAGE ================== */

/* Hero Overlay (Agar teks putih terbaca jelas) */
.about-hero {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Hitam transparan */
    z-index: 0;
}
.z-index-1 { position: relative; z-index: 1; }

/* Masonry Layout (Waterfall Style) */
.gallery-masonry {
    column-count: 3; /* 3 Kolom di Desktop */
    column-gap: 24px;
}

.gallery-card {
    display: block;
    position: relative;
    margin-bottom: 24px; /* Jarak bawah antar item */
    border-radius: 16px;
    overflow: hidden;
    break-inside: avoid; /* Mencegah gambar terpotong antar kolom */
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Efek Zoom Saat Hover */
.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

/* Overlay Hijau Saat Hover */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(59, 140, 110, 0.85); /* Warna Utama SehatSaji Transparan */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2; /* 2 Kolom di Tablet */
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        column-count: 1; /* 1 Kolom di HP */
    }
}

/* Custom Pagination SehatSaji */
.pagination {
    justify-content: center; /* Posisi di tengah */
    margin-top: 20px;
}

.page-item.active .page-link {
    background-color: #3B8C6E; /* Hijau SehatSaji */
    border-color: #3B8C6E;
    color: white;
}

.page-link {
    color: #3B8C6E; /* Teks Hijau */
}

.page-link:hover {
    color: #2a6650;
    background-color: #e8f5e9;
    border-color: #dee2e6;
}

.page-item.disabled .page-link {
    color: #6c757d;
}