/* =============== NAVBAR SECTION =============== */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  color: #a41919 !important;
  font-size: 1.6rem;
}

.navbar-nav .nav-link {
  margin: 0 10px;
  font-size: 1rem;
  color: #343a40;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #a41919;
}

.navbar-nav .nav-link.active {
  color: #a41919 !important;
  font-weight: 600;
}

/* Tombol Masuk di kanan */
.btn-danger {
  background-color: #d32f2f;
  border: none;
  border-radius: 10px;
  padding: 8px 24px;
  font-weight: 600;
}

.btn-danger:hover {
  background-color: #b71c1c;
}

/* =============== HERO SECTION (Banner Atas) =============== */
.hero {
  background: linear-gradient(90deg, #a41919, #d85a1a);
  color: white;
  height: 60vh; /* proporsional agar hero dan statistik pas satu layar */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  margin-top: 0;
  padding-top: 40px;
}

/* Judul dan paragraf */
.hero h1 {
  font-weight: 700;
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 0.8rem;
}

/* Tombol di Hero */
.hero .btn-light {
  background: #fff;
  color: #a41919;
  border-radius: 10px;
  padding: 12px 36px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.hero .btn-light:hover {
  background: #f8d7da;
  color: #a41919;
}

/* =============== DROPDOWN BAHASA (ID PENGENAL) =============== */
/* === Language Switcher (selalu tampil di kanan bawah tombol Masuk) === */
.language-switch {
  position: fixed;           /* agar selalu muncul di layar */
  top: 85px;                 /* sejajar di bawah tombol Masuk */
  right: 40px;               /* menempel ke sisi kanan */
  z-index: 1050;             /* di atas semua elemen lain */
}

.language-switch .btn {
  background-color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  color: #212529;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.language-switch .btn:hover {
  background-color: #f8f9fa;
}

.language-switch .dropdown-menu {
  min-width: 230px;
  border-radius: 12px;
  border: none;
  padding: 8px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.language-switch .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #212529;
}

.language-switch .dropdown-item.active {
  background-color: #fcebea;
  color: #a41919;
  font-weight: 600;
}


/* Animasi muncul dropdown */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============== STATISTIK SECTION (Bawah Hero) =============== */
.stats-section {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 0;
  margin-top: -25px; /* sedikit naik supaya rapat dengan hero */
  z-index: 5;
  position: relative;
}

.stats-section h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.stats-section p {
  margin: 0;
  font-weight: 500;
  color: #333;
}

/* === TESTIMONI CARD FIX === */
.card-testimoni {
  height: 100%;
  min-height: 200px; /* tinggi minimum biar rata */
  transition: all 0.3s ease;
}

.card-testimoni:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-testimoni p {
  font-size: 1rem;
  color: #333;
}

.card-testimoni h6 {
  color: #000;
  font-weight: 700;
}

/* =========================
   RESEP PAGE STYLE
========================= */
.recipe-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recipe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.recipe-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.recipe-card h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.recipe-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.4;
}

.recipe-card .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 0.9rem;
}

.recipe-card .rating {
  color: #f4b400;
  font-weight: 600;
}

.recipe-card .btn-danger {
  border-radius: 10px;
  padding: 10px 0;
  font-weight: 600;
  width: 100%;
  margin-top: auto;
}

/* === Avatar User Komunitas === */
.card .rounded-circle {
  width: 55px !important;
  height: 55px !important;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}


/* Responsif */
@media (max-width: 992px) {
  .recipe-card img {
    height: 180px;
  }
}


/* Responsif untuk tablet & mobile */
@media (max-width: 992px) {
  .language-switch {
    top: 20px;
    right: 20px;
  }

  .hero {
    height: auto;
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
  