/* Header Styles */
header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #061d35;
  color: white;
}

.logo {
  flex: 1;
}

.logo img {
  height: 40px;
}

.search-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar input {
  width: 250px;
  padding: 6.5px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.search-bar button {
  padding: 7px 10px;
  font-size: 1rem;
  border: none;
  background-color: #e63946;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.suggestions-box {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  max-height: 150px;
  overflow-y: auto;
  width: calc(100% - 2px);
  display: none;
  z-index: 1000;
  top: 100%;
  left: 0;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.suggestions-box div {
  padding: 10px;
  cursor: pointer;
  color: black;
}

.suggestions-box div:hover {
  background: #f30202;
  color: white;
}

/* Navigation Styles */
nav {
  flex: 3;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #fa0318;
}

/* Contact Button Styles */
.contact-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.contact-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background-color: #25d366;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, background-color 0.3s ease;
  gap: 8px;
}

.contact-button a:hover {
  background-color: #1ebe5b;
  transform: translateY(-2px);
}

.contact-button a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-button img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-images img {
  width: 100%;
  flex-shrink: 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* Hero Section Styles */
.hero {
  text-align: center;
  padding: 50px 20px;
  background: url("https://rintikilmu.biz.id/uploads/Header-3.png") no-repeat
    center center/cover;
  color: white;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero .cta {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
}

.hero .cta:hover {
  background-color: #cc2936;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
  position: relative;
}

.course {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  /* Pastikan ini ada untuk posisi absolut */
}

.course:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 10px rgba(32, 2, 2, 0.108);
}

.course h2 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.course img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.course p {
  font-size: 1rem;
  color: #333;
}

.course a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #042133;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
}

.course a:hover {
  background-color: #f10505;
  /* Ganti dengan warna hover yang diinginkan */
}

.rating .star {
  color: gold;
  font-size: 1.5rem;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.course-footer p {
  margin: 0;
  font-size: 1rem;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.course {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  /* Pastikan ini ada untuk posisi relatif */
}

.more-courses {
  position: relative;
  /* Ubah menjadi relative */
  margin-top: 20px;
  /* Tambahkan margin atas untuk memberi jarak dari tombol Daftar */
  text-align: right;
  /* Rata kanan */
}

.btn-more {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  /* Warna teks */
  background-color: #ff0000;
  /* Ganti dengan warna yang diinginkan */
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn-more:hover {
  background-color: #031223;
  /* Ganti dengan warna hover yang diinginkan */
}

/* Judul untuk Mitra Kami */
.partners-section h2 {
  font-size: 2rem;
}

.partners-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 170px;
}

.marquee {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  animation: scroll 15s linear infinite;
}

.partners-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.partner {
  flex: 0 0 auto;
  padding: 0 20px;
}

.partner-logo {
  max-height: 100px;
  max-width: 150px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
    /* Mulai dari posisi normal */
  }

  to {
    transform: translateX(-50%);
    /* Geser hingga setengah (karena konten diduplikasi) */
  }
}

/* Hover Pause */
.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

/* Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center; /* Pusatkan elemen secara horizontal */
    text-align: center;
  }

  header .search-bar-container {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  header nav {
    flex-direction: row;
    /* Ubah navbar menjadi horizontal */
    align-items: center;
    /* Pastikan item navbar sejajar secara horizontal */
    gap: 5px;
    /* Sesuaikan jarak antar item navbar */
    justify-content: center;
    /* Memposisikan navbar di tengah */
  }

  .logo img {
    max-width: 150px; /* Sesuaikan ukuran logo jika perlu */
    height: auto;
  }

  .search-bar-container {
    width: 100%; /* Pastikan search bar cukup lebar */
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .search-bar {
    display: flex;
    align-items: center;
    width: 90%; /* Atur lebar search bar */
    max-width: 400px; /* Batasi agar tidak terlalu besar */
  }

  .search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
  }

  .search-bar button {
    padding: 9px 15px;
    border: none;
    background: #ff0000;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  .suggestions-box {
    text-align: left;
  }

  /* Tambahan khusus nav-link */
  .nav-link {
    font-size: 10px; /* perkecil font */
    padding: 2px 4px; /* jarak dalam tombol lebih kecil */
    white-space: nowrap; /* cegah teks pecah baris */
  }
}

.stats-header {
  text-align: center;
  /* Memastikan teks berada di tengah */
  margin-bottom: 20px;
  /* Memberikan jarak bawah */
}

.stats-header h1 {
  font-size: 2.5em;
  /* Ukuran font judul */
  margin: 0;
  /* Menghapus margin default */
}

.stats-header p {
  font-size: 1.1em;
  /* Ukuran font paragraf */
  margin: 10px 0 0;
  /* Memberikan jarak atas */
}

.news-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.news-card img {
  width: 100%;
  height: 250px;
  /* Sesuaikan dengan tinggi gambar di berita pertama */
  object-fit: cover;
  border-radius: 10px;
  /* Opsional: Tambahkan sudut melengkung jika diinginkan */
}

.news-section {
  text-align: center;
  /* Menempatkan teks di tengah */
  padding: 20px;
  /* Ruang di dalam section */
}

.news-section h2 {
  font-size: 2.5em;
  /* Ukuran font untuk judul berita */
  margin-bottom: 20px;
  /* Jarak bawah dari judul */
}

.news-card h3 {
  font-size: 1.5rem;
  margin: 15px 15px 10px;
  color: #0e0d0d;
}

.news-card p {
  font-size: 1rem;
  margin: 0 15px 15px;
  color: #666;
}

.news-link {
  display: inline-block;
  margin: 10px 15px 20px;
  padding: 10px 20px;
  background-color: #062334;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.news-link:hover {
  background-color: #f40000;
}

/* Styling dasar untuk section */
.news-section {
  padding: 20px;
}

/* Grid container dengan 3 kolom */
.news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1500px;
  /* Sesuaikan lebar maksimum sesuai kebutuhan */
  margin: 0 auto;
}

/* Styling untuk setiap kotak berita */
.news-card {
  background-color: white#f5f5f5;
  padding: 15px;
  border-radius: 10px;
  /* Tambahan styling sesuai kebutuhan */
}

/* Styling untuk tombol "Berita Lainnya" */
.more-news {
  /* Tempatkan tombol di grid: baris kedua, kolom ketiga */
  grid-column: 3;
  grid-row: 2;
  /* Gunakan properti grid untuk mengatur posisi di ujung kanan sel */
  justify-self: end;
  margin-top: 20px;
  /* Jarak vertikal agar tidak terlalu mepet dengan baris pertama */
}

/* Styling tombol */
.more-news .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ed0a0a;
  /* Ganti dengan warna tema yang diinginkan */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.more-news .btn:hover {
  background-color: #02121d;
}

/* ✅ Buat tata letak RESPONSIF */
/* 🔹 Tablet (2 kolom) */
@media (max-width: 1024px) {
  .news-container {
    grid-template-columns: repeat(2, 1fr);
    /* Ubah ke 2 kolom */
  }
}

/* 🔹 HP (1 kolom) */
@media (max-width: 768px) {
  .news-container {
    grid-template-columns: 1fr;
    /* Ubah ke 1 kolom */
  }

  .news-card {
    width: 90%;
    margin: 0 auto;
  }

  /* ✅ Pastikan tombol "Berita Lainnya" tetap di tengah */
  .more-news {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }
}

/* ======== Global Styles ======== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #eaf2f7;
  /* Warna latar belakang seluruh halaman */
  color: #1e293b;
  /* Warna teks umum */
}

/* ======== Contact Section ======== */
.contact-section {
  padding: 50px 20px;
  text-align: center;
  background-image: url("Foto/kontak\ 5.png");
  /* Ganti dengan path gambar Anda */
  background-size: cover;
  /* Menyesuaikan ukuran gambar agar menutupi seluruh area */
  background-position: center;
  /* Menyentuhkan gambar ke tengah */
  background-repeat: no-repeat;
  /* Mencegah pengulangan gambar */
  color: #fff;
  border-radius: 10px;
}

/* ======== Title & Subtitle ======== */
.section-title {
  font-size: 2.5rem;
  color: #0f0101;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-out;
}

.section-subtitle {
  color: #01060f;
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-out;
}

/* ======== Contact Form ======== */
.contact-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

/* ======== Textarea ======== */
.contact-action textarea {
  flex: 1;
  padding: 12px;
  border: 2px solid #071941;
  border-radius: 5px;
  font-size: 1rem;
  resize: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f8fafc;
  color: #1e293b;
}

.contact-action textarea:focus {
  border-color: #061b35;
  outline: none;
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.3);
}

/* ======== Send Button ======== */
.send-button {
  padding: 12px 24px;
  background-color: #031642;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(228, 3, 3, 0.1);
}

.send-button:hover {
  background-color: #f91f07;
  /* Warna lebih gelap saat hover */
  transform: translateY(-2px);
}

.send-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ======== Animasi Fade In ======== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: "poppins", sans-serif;
  margin: 0;
  padding: 0;
}

.footer {
  background: linear-gradient(135deg, #081d3b, #021930);
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-column {
  flex: 1 1 200px;
  position: relative;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.1);
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 10px 0;
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #f1c40f;
}

.connect-with-us {
  position: absolute;
  top: 0;
  left: -200px;
  /* Pindahkan elemen lebih ke kiri */
  transform: translateY(50%);
  /* Letakkan di tengah */
  text-align: center;
}

.connect-with-us h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #f1c40f;
}

.footer-socials {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.footer-socials a {
  display: inline-block;
  margin: 0 10px;
  color: #fff;
  font-size: 24px;
  transition: color 0.3s, transform 0.3s ease;
}

.footer-socials a:hover {
  color: #f1c40f;
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #bdc3c7;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #f1c40f;
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom a:hover {
  text-decoration: underline;
}
