
html, body {
    margin: 0;
    padding: 0;
  }
  :root {
    --navbar-bg: #3498db;
    --navbar-font: #ffffff;
    --navbar-font-size: 16px;
    --navbar-font-family: 'Arial', sans-serif;

    --footer-bg: #333333;
    --footer-font: #ffffff;
    --footer-font-size: 14px;
    --footer-font-family: 'Verdana', sans-serif;

    --body-bg: #f9f9f9;
    --body-font: #333333;
    --body-font-size: 16px;
    --body-font-family: 'Arial', sans-serif;

    --card-hover-bg: #eaf4fc;
    --card-hover-border: #3498db;

    --title-hover-color: #ff6347;

    --dot-color: #ffffff;
    --dot-active-color: #ff4757;
    --dot-size: 10px;
}

/* Layar penuh untuk loading */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(255, 255, 255); /* Warna semi-transparan */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1; /* Awalnya terlihat */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out; /* Transisi smooth */
  }
  
  /* Video di tengah */
  #loading-video {
    width: auto; /* Jaga proporsi video */
    height: auto; /* Jaga proporsi video */
    max-width: 45%; /* Batas maksimal lebar */
    max-height: 45%; /* Batas maksimal tinggi */
  }

 /* Saat loading menghilang */
#loading-screen.hidden {
    opacity: 0; /* Fade out */
    visibility: hidden; /* Sembunyikan setelah fade selesai */
  }

body {
    font-family: var(--body-font-family);
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    color: var(--body-font);
}

/* General Navbar Styling */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--navbar-bg, #1f2937);
    color: var(--navbar-font, #ffffff);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ff0101cc;
    padding: 10px 20px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, opacity 0.3s;
}

/* Navbar scroll efek */
#navbar.scrolled {
    background-color: rgba(51, 51, 51, 0.7);
}

.logo img {
    height: 40px;
}

.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    gap: 15px }

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-search input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.nav-search button {
    padding: 8px 12px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nav-search button:hover {
    background-color: #0056b3;
}

/* Menu toggle (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}

.header-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

.carousel-content h2 {
    margin: 0;
    font-size: 18px;
}

.carousel-content h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.carousel-content h2 a:hover {
    color: #ff4757;
}

.carousel-content p {
    margin: 5px 0 0;
    font-size: 14px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #ff4757;
}

.filter-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.filter-search input,
.filter-search select {
    padding: 10px;
    font-size: var(--body-font-size);
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #f9f9f9;
  }
  
  .about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 30px;
    align-items: center;
    justify-content: center;
  }
  
  .about-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .about-content {
    flex: 1;
    text-align: center;
  }
  
  .about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
  }
  

.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    margin: 16px 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover-bg);
    border-color: var(--card-hover-border);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    margin: 0 0 10px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--title-hover-color);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.card-tag {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-description {
    font-size: 14px;
    color: #666;
}

.toggle-description {
    background-color: transparent;
    border: none;
    color: #007bff; /* Warna biru modern */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
}

.toggle-description:hover {
    background-color: #007bff;
    color: #fff;
}

/* Styling tombol */
.card-footer button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-footer button:hover {
    background-color: #0056b3;
}

/* Styling teks waktu pembaruan */
.card-footer .last-updated {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    text-align: right;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 2px solid transparent;
    background-color: transparent;
    color: #007BFF;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn.active {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.pagination-btn:disabled {
    color: #ccc;
    border-color: transparent;
    background-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

/* Styling umum slider */
.services-slider {
    width: 100%;
    padding: 40px 0;
    background: #f4f4f4; /* Background abu terang */
    position: relative;
}

.services-slider /* Swiper Container Adjustment */
.swiper-slide {
    width: 100%; /* Hindari elemen keluar dari viewport */
    box-sizing: border-box; /* Pastikan padding diperhitungkan */
}

/* Untuk memastikan tidak ada elemen swiper keluar dari batas */
.swiper-container {
    width: auto; /* Sesuaikan lebar dengan konten */
    flex-shrink: 0;
    overflow-x: hidden; /* Cegah elemen meluas ke kanan */
}


.service-section .swiper-button-next,
.service-section .swiper-button-prev,
.service-section .swiper-pagination-bullet {
  outline: none;
}


/* Gaya untuk kartu */
swiper-slide .card {
    width: 95%;
    max-width: 350px; /* Ukuran lebih besar */
    border: none;
    border-radius: 16px; /* Radius besar untuk tampilan modern */
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f9f9f9); /* Gradasi lembut */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05); /* Efek bayangan */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

swiper-slide .card:hover {
    transform: translateY(-8px) scale(1.02); /* Efek naik dan zoom saat hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan lebih kuat */  
}

/* Gambar di dalam kartu */
swiper-slide.card img {
    width: 100%;
    height: 200px; /* Ukuran lebih besar */
    object-fit: cover;
}

/* Konten kartu */
.card h3 {
    font-size: 1.4rem; /* Lebih besar */
    font-weight: 700;
    color: #222;
    margin: 15px 20px 10px;
    text-transform: capitalize;
}

.card p {
    font-size: 1rem;
    color: #555;
    margin: 5px 20px;
    line-height: 1.5;
}

.card ul {
    padding: 0;
    margin: 15px 20px;
    list-style: none;
}

.card ul li {
    font-size: 0.95rem;
    color: #444;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.card ul li:before {
    content: "✓"; /* Simbol checklist */
    color: #4caf50; /* Hijau */
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Tag kartu */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px;
}

.card-tags span {
    background: #e3f2fd; /* Biru pastel */
    color: #1976d2; /* Biru gelap */
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card footer styling */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

/* Button styling */
.card-link-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.card-link-btn a {
    color: inherit;
    text-decoration: none;
}

.card-link-btn:hover {
    background-color: #0056b3;
}

/* Last updated styling */
.last-updated {
    font-size: 10px;
    color: #555;
    font-style: italic;
    text-align: right;
}



/* Tombol navigasi */
.swiper-button-next,
.swiper-button-prev {
    color: #1976d2;
    font-size: 1.8rem;
}

.swiper-pagination-bullet {
    background: #1976d2;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #004ba0; /* Biru lebih gelap */
    opacity: 1;
}

.faq-section {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 50px auto;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faq-description {
    font-size: 1.2rem;
    text-align: center;
    color: #555555;
    margin-bottom: 40px;
    font-style: italic;
}

.faq-item {
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    font-size: 1.5rem;
    color: #333333;
    background: #f8f8f8;
    border-left: 5px solid #3498db;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: #eaf3fc;
    color: #3498db;
}

.faq-toggle-icon {
    font-size: 1.8rem;
    color: #777777;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(90deg);
    color: #3498db;
}

.faq-answer {
    padding: 20px;
    font-size: 1.2rem;
    color: #666666;
    line-height: 1.8;
    display: none; /* Default hidden */
    animation: fadeIn 0.4s ease forwards;
}

.faq-item.open .faq-answer {
    display: block;
}

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


#comments-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 30px;
  }
  
  #comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  #comment-form input, #comment-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #comment-form button {
    padding: 10px;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #comment-form button:hover {
    background-color: #004d40;
  }
  
  #comments-list {
    margin-top: 20px;
  }
  
  #comments-list ul {
    list-style: none;
    padding: 0;
  }
  
  #comments-list li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  

footer {
    background-color: var(--footer-bg, #1e1e1e);
    color: var(--footer-font, #ffffff);
    padding: 40px 20px;
    font-family: var(--footer-font-family, 'Arial', sans-serif);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--footer-section-title-color, #f1c40f);
}

.footer-section p {
    margin: 0 0 10px;
    font-size: var(--footer-font-size, 14px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: var(--footer-link-color, #bdc3c7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--footer-link-hover-color, #f1c40f);
}

.footer-section a {
    color: var(--footer-link-color, #bdc3c7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--footer-link-hover-color, #f1c40f);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: var(--footer-bottom-font-size, 12px);
    color: var(--footer-bottom-font-color, #7f8c8d);
}


@media (min-width: 768px) {
    #content {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    }
    
}@media (max-width: 768px) {
    .hamburger {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Animasi Hamburger (Saat Aktif) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Navbar Link */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #000000c7;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 1000;
    }

    .nav-links a {
        text-decoration: none;
        color: #fff;
        font-size: 20px;
        font-weight: bold;
        transition: color 0.2s ease-in-out;
    }

    .nav-links a:hover {
        color: #3498db;
    }

    /* Navbar Link Active */
    .nav-links.active {
        display: flex;
    }

    .nav-links.show {
        display: flex;
    }

    /* Search Bar in Menu */
    .nav-search {
        width: 100%;
        margin-top: 10px;
    }

    .nav-toggle {
        display: flex;
    }

    #navbar {
        flex-wrap: wrap;
    }

    .filter-search input,
    .filter-search select {
        width: calc(100% - 20px);
        max-width: none;
    }

    .card-footer button {
        width: 100%; /* Tombol memenuhi lebar pada layar kecil */
        text-align: center;
    }

    .card-footer .last-updated {
        text-align: center; /* Waktu pembaruan berada di tengah */
    }

    .services-slider {
        display: flex; /* Pastikan slider menggunakan flexbox */
        transition: transform 0.5s ease-in-out; /* Untuk transisi */
    }
    .services-slider .card {
        flex: 0 0 100%; /* Satu kartu mengambil 100% dari lebar slider */
        box-sizing: border-box;
        margin-right: 0; /* Hilangkan jarak antar kartu */
    }

    .services-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom {
        font-size: 14px;
    }
}