/* General Styling & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-white {
    background-color: #ffffff;
}

.hidden {
    display: none !important;
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    gap: 3rem;
}

.grid-3-col {
    display: grid;
    gap: 2rem;
}

.grid-4-col {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.items-center {
    align-items: center;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
   background: radial-gradient(circle, #ffffff, #079ab0);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-icon {
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #2563eb, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link.active {
    color: #2563eb;
}

.menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-button {
        display: none;
    }
}

.mobile-menu {
    padding-bottom: 1rem;
    border-top: 1px solid #e5e7eb;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link-mobile {
    font-weight: 600;
    color: #475569;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    padding-top: 8rem; /* Adjust for fixed header */
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1.5rem;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(to right, #2563eb, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(to right, #2563eb, #14b8a6);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: white;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 600px;
    height: 400px;
    object-fit: cover; /* atau 'contain' kalau mau seluruh gambar tampil */
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}


/* Common Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: auto;
}

/* About Section */
.rounded-image {
    width: 600px;
    height: 400px;
    object-fit: cover; /* atau 'contain' kalau mau seluruh gambar tampil */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-blue-100 { background-color: #dbeafe; }
.text-blue-600 { color: #2563eb; }
.bg-green-100 { background-color: #d1fae5; }
.text-green-600 { color: #059669; }

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
}

/* Services Section */
.service-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.service-description {
    color: #4b5563;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonials Section */
.testimonial-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.testimonial-comment {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1rem;
}
.testimonial-author h4 {
    font-weight: 700;
}

/* Contact Section */
.contact-info {
    line-height: 2;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
}

/* tips */
/* Gaya BARU untuk Section Materi & Tips (sesuai gambar) */
.material-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem; /* 16px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.material-card-header {
    padding: 2.5rem 1.5rem;
    display: flex;
    justify-content: center; /* gambar berada di tengah horizontal */
    align-items: center;     /* di tengah vertikal */
}

/* Ganti h2 dengan gambar */
.material-card-header img {
    width: 160px;       /* atur ukuran logo/gambar */
    height: auto;
    display: block;
}

/* Tetap biarkan ini jika masih ada kartu lain yang pakai teks */
.material-card-header {
    padding: 0; /* hapus padding agar gambar pas penuh */
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Gambar dalam header */
.material-card-header img {
    width: 100%;          /* lebar penuh kartu */
    height: 180px;        /* tinggi tetap */
    object-fit: cover;    /* agar proporsi gambar tetap bagus */
    display: block;
}


.material-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.material-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.material-card-body p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.material-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.material-read-more {
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease-in-out;
}

.material-read-more:hover {
    gap: 0.75rem;
}

/* Gaya untuk ikon panah (jika pakai <img> bukan SVG) */
.material-read-more img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* Color Schemes */
/* Blue Card */
.material-card-blue .material-card-header { background-color: #e0f2fe; }
.material-card-blue .material-card-header h2 { color: #0369a1; }
.material-card-blue .material-category { background-color: #dbeafe; color: #2563eb; }
.material-card-blue .material-read-more { color: #2563eb; }

/* Orange Card */
.material-card-orange .material-card-header { background-color: #fef3c7; }
.material-card-orange .material-card-header h2 { color: #d97706; }
.material-card-orange .material-category { background-color: #ffedd5; color: #f97316; }
.material-card-orange .material-read-more { color: #f97316; }

/* Purple Card */
.material-card-purple .material-card-header { background-color: #f3e8ff; }
.material-card-purple .material-card-header h2 { color: #9333ea; }
.material-card-purple .material-category { background-color: #f5d0fe; color: #d946ef; }
.material-card-purple .material-read-more { color: #9333ea; }

/* Green Card */
.material-card-green .material-card-header { background-color: #ecfdf5; }
.material-card-green .material-card-header h2 { color: #059669; }
.material-card-green .material-category { background-color: #d1fae5; color: #10b981; }
.material-card-green .material-read-more { color: #10b981; }


/* logo */
.logo-icon-wrapper img {
  width: 85px;   /* atau ukuran yang kamu mau, misalnya 50px */
  height: auto;
  object-fit: contain;
}

.logo-icon-wrapper {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

/* footer */

/* ====== FOOTER STYLE ====== */
footer {
  background-color: #0d1625; /* warna gelap elegan */
  color: #cbd5e1; /* abu-abu lembut */
  padding: 60px 80px;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px; /* jarak kecil antara elemen */
}

.footer-logo img {
  width: 70px; /* ukuran logo lebih besar */
  height: auto;
  margin-bottom: 2px; /* jarak kecil agar teks tidak terlalu turun */
}

.footer-logo h2 {
  font-size: 1.6rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.2; /* rapat tapi tetap terbaca */
}

.footer-logo p {
  margin-top: 2px; /* dikurangi agar tidak terlalu jauh dari teks atas */
  line-height: 1.5;
  font-size: 15px;
  color: #94a3b8;
  max-width: 300px;
}


.footer-column {
  flex: 1 1 180px;
}

.footer-column h3 {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #3b82f6; /* biru terang saat hover */
}

/* Garis pemisah */
.footer-divider {
  border-top: 1px solid #1e293b;
  margin: 40px 0 20px;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}


@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center; /* supaya blok-nya di tengah */
  }

  .footer-container .footer-column {
    text-align: left; /* tapi teks tetap rata kiri */
    width: 100%;
    max-width: 300px; /* biar gak terlalu lebar */
  }
}


.service-icon {
    font-size: 3rem; /* Ukuran ikon */
    color: #ffffff; /* Warna ikon */
    margin-bottom: 1rem; /* Jarak antara ikon dan judul */
}

/* Jika Anda ingin ikonnya berbentuk lingkaran atau kotak */

.service-icon {
    font-size: 2rem;
    color: #fff;
    background: radial-gradient(circle, #0f32a5, #079ab0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}
