/* Base Styles */
:root {
    --primary-color: #004d99;
    --secondary-color: #0066cc;
    --text-color: #333;
    --bg-light: #f4f7f9;
    --bg-dark: #003366;
    --white: #fff;
    --container-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

html, body {
  height: 100%;         /* Pastikan full height */
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;              /* Konten isi mendorong footer ke bawah */
}

p {
  font-size: 18px; /* Atur sesuai keinginan: 16px, 18px, 20px, dll */
  line-height: 1.6; /* Opsional: bikin teks lebih nyaman dibaca */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 10px;
    font-weight: 600;
}


a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 60px 0;
     scroll-margin-top: 80px; /* Atur sesuai tinggi navbar kamu */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
}

/* Header & Navbar */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
       justify-content: flex-start;
    flex: 1; /* Supaya .logo mengambil ruang sisi kiri */
}

.navbar .nav-links li {
    display: inline-block;
    margin-left: 25px;
}

.navbar .nav-links a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* pastikan di atas navbar */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('img/background.png') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
/* ...existing code... */

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* About Section */
.about-section {
      background-color: var(--bg-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text, .about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.partner-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    margin-top: 24px;
    
}
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.partner-logo {
    width: 180px;
    height: 180px;
      object-fit: contain; /* semua gambar terlihat lengkap */
    
  
}
.partner-name {
    
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    font-weight: 500;
}
.partner-section {
    background-color: var(--white);
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--white);
    padding: 30px 0;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 250px; /* minimal tinggi untuk desktop */
}

.testimonial-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.5s, transform 0.7s cubic-bezier(.77,0,.18,1);
    z-index: 1;
}

.testimonial-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.testimonial-card.exit {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.testimonial-box {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;      /* biar otomatis mengikuti isi */
    min-height: 200px; /* tetap ada minimal height */
}

.testimonial-box p {
    font-style: italic;
    font-size: 18px;
}

.client-name {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Arrow */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.testimonial-arrow.left {
    left: 10px;
}

.testimonial-arrow.right {
    right: 10px;
}

.testimonial-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.accordion-content p {
    padding-bottom: 20px;
}

.accordion-item.active .accordion-content {
    max-height: 200px; /* Adjust as needed */
    transition: max-height 0.4s ease-in;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content ul,
.accordion-content ol {
    padding-left: 20px;
    list-style-type: disc; /* untuk ul */
    padding-bottom: 20px;
}

.accordion-content ol {
    list-style-type: decimal; /* untuk ol */
}

.faq-hidden {
    display: none;
}

.show-more-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

/* Blog Section */
.blog-section {
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.blog-post h3 a {
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch; /* biar anak flex sama tinggi */
    margin-top: 24px;
}
.contact-map, .contact-info {
    flex: 1 1 350px;  /* fleksibel tapi minimal 350px */
    min-width: 280px;
}

.contact-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pastikan iframe menyesuaikan tinggi div */
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.informasi {
    text-align: center;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}


/* Contact info full height */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 32px 24px;
    height: 100%;
}
.contact-info p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    text-align: left;
}

.contact-icon {
    margin-right: 6px;
    font-size: 1.1em;
    vertical-align: middle;
}

.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 30px;
    width: auto;
    height: 60px;
    box-shadow: none;
    transition: box-shadow 0.2s;
}

.wa-icon img,
.wa-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}



.wa-label {
    display: none;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 18px;
    border-radius: 0 30px 30px 0;
    height: 60px;
    line-height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
    transition: opacity 0.2s, background 0.2s;
    align-items: center;
    margin-left: 0;
}

.whatsapp-float:hover {
    box-shadow: 0 4px 16px rgba(37,211,102,0.15);
    background: #25d366;
    border-radius: 30px;
}

.whatsapp-float:hover .wa-label {
    display: inline-block;
    opacity: 1;
    background: #25d366;
}

.whatsapp-float:hover .wa-icon {
    background: #25d366;
    border-radius: 30px 0 0 30px;
    transition: background 0.2s;
}

.wa-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 30px;
    transition: background 0.2s, border-radius 0.2s;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
     margin-top: auto;     /* kunci utama biar footer nempel bawah */
}

.footer-text {
  font-size: 14px; /* Ganti angkanya sesuai kebutuhan: 14px, 16px, 18px, dst */
  color: #fff;     /* Opsional: jika ingin warna teks putih */
  text-align: center; /* Opsional: agar teks rata tengah */
}

.about-section .nilai-list {
    padding-left: 0; /* hapus indent default ul/ol */
    list-style: none; /* hapus bullet default */
}

.about-section .nilai-list li {
    display: flex;
    align-items: flex-start; /* centang sejajar dengan baris pertama teks */
    gap: 10px;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.5; /* lebih nyaman untuk desktop */
}

.about-section .nilai-list li::before {
    content: "✅";
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;       /* penting: agar tidak ikut line-height teks */
    margin-top: 2px;      /* sesuaikan supaya vertikal sejajar */
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        display: flex;
        flex-direction: column;
        text-align: center;
        overflow: hidden;
        max-height: 0; /* awalnya tertutup */
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 0 0; /* padding dikurangi saat tertutup */
    }

    .navbar.active {
        max-height: 500px; /* cukup untuk semua menu */
        padding: 15px 0; /* tambahkan padding saat terbuka */
    }

      .navbar .nav-links li {
        display: block;
        margin: 0;
    }

    .navbar .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

   .hamburger {
    display: flex;

}

 .navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
        padding: 0;
        z-index: 1000;
    }

    .navbar.active {
        max-height: 500px;
        padding: 15px 0;
    }

    .navbar .nav-links li {
        display: block;
        margin: 0;
    }

    .navbar .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .about-content, .contact-grid {
        flex-direction: column;
        text-align: center;
    }
    
    /* Override untuk teks agar tetap rata kiri */
    .about-text {
        text-align: left;
        width: 100%; /* opsional: pastikan memenuhi container */
    }
    
     .partner-logos {
        flex-direction: column;
        align-items: center; /* biar semua logo center */
        gap: 20px; /* beri jarak antar partner */
    }

    .partner-item {
        width: 80%; /* opsional, supaya tidak terlalu lebar */
        text-align: center;
         
        border-radius: 12px; /* sudut agak bulat */
        padding: 15px; /* beri jarak antara border dan isi */
        box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* opsional, agar terlihat lebih rapi */
        background-color: #fff; /* opsional, supaya kontras dengan background */
        background-color: var(--bg-light);
    }
    
    .testimonial-box {
        padding: 20px 15px;
    }
    
     .header .container {
        flex-direction: column;  /* stack vertikal */
        align-items: center;
        text-align: center;
    }

    .logo-img {
        margin: 0 0 10px 0; /* jarak bawah logo */
    }

    .logo {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin: 0;
    }

    .navbar {
        width: 100%;
    }

    .hamburger {
        margin-top: 10px; /* agar tidak terlalu dekat */
    }
    
      .hero-section {
        padding-top: 130px; /* tinggi header + sedikit jarak */
    }
    
     section {
        scroll-margin-top: 130px; /* sama seperti tinggi header */
    }
       .hero-section {
        min-height: calc(100vh - 80px); /* full height minus header */
        display: flex;
        align-items: flex-start; /* posisikan konten ke atas */
        justify-content: center;
        padding-top: 60px; /* beri jarak dari header */
    }

    .hero-content {
        text-align: center;
        max-width: 90%;
        transform: translateY(0); /* hilangkan translate default */
    }

    .hero-content h1 {
        font-size: 2rem; /* lebih kecil */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem; /* lebih kecil */
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
     .whatsapp-float .wa-label {
        display: none !important; /* sembunyikan tulisan */
    }

    .whatsapp-float {
        width: 60px; /* hanya logo */
        height: 60px;
        padding: 0;
        animation: float 2s ease-in-out infinite; /* animasi naik-turun */
        transition: transform 0.2s, box-shadow 0.2s;
        z-index: 999;
    }

    .whatsapp-float:hover {
        transform: scale(1.1); /* membesar saat hover */
        box-shadow: 0 4px 16px rgba(37,211,102,0.25);
        background: #25d366;
    }

    .whatsapp-float:hover .wa-icon {
        background: #25d366;
        border-radius: 50%;
    }
    
      .testimonial-arrow {
        display: none;
    }
    
    .nilai-list li {
        font-size: 16px;
        gap: 8px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .nilai-list li::before {
        font-size: 1em;
        margin-top: 2px;
    }

    @keyframes float {
        0% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
        100% { transform: translateY(0); }
    }
}