/* Pengaturan Dasar */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Tombol Switch Bahasa */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lang-btn {
    border: none;
    background: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    border-radius: 20px;
    transition: 0.3s;
}

.lang-btn.active {
    background: #3498db;
    color: white;
}

/* Header / Bagian Atas */
header {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px 40px 20px; /* Sedikit disesuaikan agar proporsional dengan menu */
}

header h1 {
    margin: 0;
    font-size: 3em;
    letter-spacing: 3px;
    text-transform: uppercase;
}

header p {
    font-size: 1.1em;
    margin-top: 10px;
    color: #bdc3c7;
    font-style: italic;
}

/* MENU NAVIGASI SEDERHANA */
.main-nav {
    background-color: #1a252f; /* Warna kontras sedikit lebih gelap dari header */
    text-align: center;
    padding: 12px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 998;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: #3498db; /* Warna biru muda saat diarahkan kursor */
}

/* Kontainer Utama */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Bagian Tentang Kami */
.about-section {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 30px; /* Diubah dari -30px agar tidak menabrak menu navigasi */
    margin-bottom: 50px;
    text-align: center;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
}

/* FITUR STATISTIK */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}
.stat-item {
    flex: 1;
    min-width: 120px;
}
.stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #3498db;
}
.stat-label {
    font-size: 0.85em;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* ETALASE PRODUK PILIHAN */
.featured-showcase {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.featured-showcase h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.showcase-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showcase-slider::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    flex: 0 0 auto;
    width: 220px; 
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: 0.3s ease;
    background: #fff;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-prev { left: -10px; }
.btn-next { right: -10px; }

/* MINI AUTO TESTIMONI */
.testimonial-mini {
    background: #fff;
    margin: 0 auto 50px auto;
    max-width: 600px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
    position: relative;
}
.testi-item {
    display: none;
    animation: slideFade 0.8s ease-in-out;
}
.testi-item.active { display: block; }
.testi-text { font-style: italic; color: #555; margin-bottom: 10px; font-size: 0.95em; }
.testi-author { font-weight: bold; color: #3498db; font-size: 0.9em; }

@keyframes slideFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECTION BLOG FEED SYSTEM */
.blog-section {
    margin-bottom: 60px;
    text-align: center;
}
.blog-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 15px;
}
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.1);
}
.blog-card h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card h3 a:hover {
    color: #3498db;
}
.blog-card .blog-date {
    font-size: 0.8em;
    color: #95a5a6;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-card p {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.blog-card .read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: 0.2s;
}
.blog-card .read-more:hover {
    color: #2980b9;
    text-decoration: underline;
}
.blog-loading, .blog-error {
    font-style: italic;
    color: #7f8c8d;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.blog-error a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

/* Grid untuk Gambar Brand Unit Bisnis */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.brand-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.brand-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.brand-card h3 {
    margin: 15px 0;
    font-size: 1.5em;
    color: #2c3e50;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.brand-card h4 {
    color: #e67e22;
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.brand-card p {
    text-align: justify;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.view-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin-top: auto;
}

.view-btn:hover {
    background-color: #2980b9;
}

/* MODAL STYLES */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    max-width: 850px;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #95a5a6;
    transition: 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

#modalData h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
    border-left: 5px solid #3498db;
    padding-left: 15px;
}

#modalData p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

#modalData h4 {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.4s;
    border: 3px solid #f8f9fa;
    cursor: zoom-in;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    border-color: #3498db;
}

/* Lightbox Style */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
    cursor: default;
}

.lightbox-caption-btn {
    margin-top: 15px;
    background-color: #e67e22;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s ease;
    cursor: pointer;
    display: none;
}

.lightbox-caption-btn:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* Bagian Kontak */
.contact-section {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 40px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    padding: 10px;
}

.contact-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.contact-item h4 {
    margin: 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Floating WhatsApp Multi Unit */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}
.wa-btn {
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: 0.3s;
}
.wa-btn svg { fill: white; width: 30px; height: 30px; }
.wa-btn:hover { transform: scale(1.1); }

.wa-list {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    padding: 10px 0;
    overflow: hidden;
}
.wa-list.show { display: block; }
.wa-list header {
    background: #25d366;
    color: white;
    padding: 8px 15px;
    margin-top: -10px;
    font-size: 0.85em;
    margin-bottom: 5px;
    text-align: left;
}
.wa-list a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.2s;
    text-align: left;
}
.wa-list a:hover { background: #f4f7f6; color: #25d366; padding-left: 20px; }

/* BACK TO TOP BUTTON */
#backToTop {
    position: fixed;
    bottom: 95px; 
    right: 25px;
    background: #3498db;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0;
}
#backToTop svg {
    width: 24px;
    height: 24px;
    fill: white;
}
#backToTop:hover {
    background: #2c3e50;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-nav {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.85em;
    transition: 0.3s;
    cursor: pointer;
    border-right: 1px solid #555;
    padding-right: 15px;
}

.footer-link:last-child {
    border-right: none;
}

.footer-link:hover {
    color: #3498db;
}

.article-content {
    text-align: left;
    line-height: 1.8;
}
.article-content ul {
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 { font-size: 2.2em; }
    header { padding: 80px 20px 30px 20px; }
    .main-nav { position: relative; } /* Menonaktifkan sticky di mobile agar menghemat ruang layar */
    .nav-links { gap: 15px; }
    .nav-links li a { font-size: 0.85em; }
    .container { padding: 15px; }
    .brand-grid { grid-template-columns: 1fr; }
    .about-section { padding: 25px; margin-top: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-btn { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
}


/* Membuat container lightbox menjadi jangkar posisi */
.lightbox-container {
    position: relative;
    display: inline-block;
}

/* Memunculkan tanda silang tepat di pojok kanan atas gambar */
.lightbox-container::before {
    content: "\2715"; /* Simbol teks silang ✕ */
    position: absolute;
    top: -40px;       /* Posisinya sedikit di atas gambar */
    right: 0;         /* Sejajar lurus dengan sisi kanan gambar */
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Supaya tetap terlihat jelas */
    transition: color 0.2s ease;
}

/* Efek saat kursor diarahkan ke tanda silang */
.lightbox-container:hover::before {
    color: #ff4757; /* Berubah warna kemerahan saat di-hover */
}
