/* ==== Reset dan Font Global ==== */
* {
 margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Yu Gothic UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
      background-color: #fff;
      line-height: 1.6;
    }

/* === AUTH / LOGIN PAGE === */
body.auth {
  background: #FFB22C;
  min-height: 100vh;
  display: flex;
  align-items: center;  
  justify-content: center;
}
.login{
      position: relative;
    
}
.login-container {
  background: #FFB22C;
  padding: 50px 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  position: fixed;
  top: -250px;     /* lebih naik */
  left: -280px;    /* lebih ke kiri */
  width: 600px;    /* bisa sesuaikan dengan lingkaran */
  height: 600px;
  background-color: #ffffff;
  border-radius: 50%; /* pastikan ini lingkaran penuh */
  border: 4px solid #0000007d;
  box-shadow: 0px 4px 4px #00000040;
  opacity: 0.1;
  z-index: 0;
}

.logo img{
      margin-top: 30px; 
      margin-bottom: 10px;
    }

 .title {
      text-align: center;
      font-size: 32px;
      font-weight: bold;
      color: white;
      margin-bottom: 30px;
    }


.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 25px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.form-input:focus {
  background-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  outline: none;
}

.login-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  background: #00712D;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 20px;
  color: #333;
}

.register-link a {
  color: #1976D2;
  font-weight: bold;
  text-decoration: none;
}

.register-link a:hover {
  color: #0D47A1;
  text-decoration: underline;
}
.register-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  background: #00712D;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

    /* ==== Navbar ==== */
  .navbar {
  background-color: #FFB22C;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: 'Poppins';
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: white !important;
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #f8f9fa !important;
}
.navbar .dropdown-menu {
  font-family: 'Poppins';
  font-size: 12px;
  font-weight: 700;
}
    /* ==== Tombol Login/Logout ==== */
    .btn-danger {
      background-color: #D94A3D;
      color: white;
      border: none;
      transition: all 0.3s ease;
      width: 141px;
      height: 48px;
      padding: 8px 16px;  /* padding vertikal-horizontal */
      font-size: 20px;     /* ukuran teks disesuaikan */
      border-radius: 8px;  /* opsional: biar tombol terlihat lebih modern */
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-weight: 600; /* semibold */
    }


    .btn-danger:hover {
      background-color: #c13c2f;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(217, 74, 61, 0.3);
    }
/* kelola profil */
body {
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.profil-box {
  width: 100%;
  max-width: 450px;
  background-color: #ffffff;
}

.form-control-custom {
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control-custom:focus {
  border-color: #ffbb33;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.btn-edit {
  background-color: #fbbf24;
  border: none;
  color: #000;
  display: inline-flex; /* gunakan inline-flex */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 20px;
  height: 60px;
  border-radius: 60px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
  gap: 8px; /* atur jarak antar icon dan teks */
}

.edit-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-edit:hover {
  background-color: #facc15;
}

.edit-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

button.btn-warning:hover {
  background-color: #f59e0b;
}
.edit-icon {
  width: 109px;
  height: 66px;
  margin-right: 8px;
}


/* ==== Hero Slider (kalau digunakan di halaman lain) ==== */
.hero-slider-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  height: 400px; /* disesuaikan dengan gambar */
  overflow: vsubble; /* <== ini penting, agar tombol di luar tetap terlihat */
  border-radius: 40px;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: none;
  border-radius: 40px;
}

.slider-image.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10; /* pastikan di atas gambar */
}

.slider-btn.prev {
  left: -50px; /* tombol kiri di luar gambar */
}

.slider-btn.next {
  right: -50px; /* tombol kanan di luar gambar */
}


/* ====== Grid Resep & Artikel ====== */
.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 40px;
}

.recipe-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto 8px;
}

.recipe-title {
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: #333;
}

/* ====== FAQ Section ====== */
.faq-section {
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: center;
}

.accordion {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.accordion-button {
  background-color: #f8f9fa;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-weight: 500;
  font-size: 18px;
  width: 100%;
  border-radius: 10px;
}

.accordion-button:not(.collapsed) {
  background-color: #e9ecef;
  color: #212529;
}

.accordion-body {
  padding: 20px 24px;
  background-color: white;
  font-size: 16px;
  text-align: left;
  border-top: 1px solid #ddd;
}

/* ==== Judul Section Umum ==== */
.section-title-wrapper {
  background-color: #fff;
  width: 319px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
  border-radius: 0; /* Pastikan tidak ada border radius */
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Poppins', sans-serif;
}


/* ==== Kartu Info (Waktu Masak, Kesulitan) ==== */
.img-resep {
  width: 319px;
  height: 319px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-bottom: 16px; /* Jarak antara gambar dan title wrapper */
}

.section-title-wrapper {
  width: 319px;
  height: 72px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-radius: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #000;
  margin: 0;
}

/* Info Card */
.info-container {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
  width: 319px; /* Samakan lebar dengan elemen lainnya */
}

.info-card {
  width: 140px;
  height: 140px;
  border: 2px solid #555; /* sesuai garis abu gelap */
  border-radius: 4px;
  padding: 16px 12px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  box-sizing: border-box;
}

.info-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 12px;
}

.info-card h6 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 4px;
  color: #000;
}

.info-card p {
  font-size: 13px;
  margin: 0;
  color: #000;
}
/* bahan */
h5 {
  padding-top: 8px;
}



/* ==== HALAMAN FAVORIT ==== */

/* Page title untuk halaman favorit */
.page-title {
  background-color: #666;
  color: white;
  padding: 20px;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

/* Navbar khusus untuk favorit */
.favorit-navbar {
  background: linear-gradient(135deg, #FFB22C 0%, #FF9800 100%);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.favorit-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.favorit-nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.favorit-nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.favorit-nav-links a:hover {
  background-color: rgba(255,255,255,0.2);
}

.favorit-nav-links a.active {
  background-color: rgba(255,255,255,0.3);
  font-weight: bold;
}

.favorit-logout-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

/* Main content area untuk favorit */
.favorit-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f5f5f5;
  min-height: calc(100vh - 120px);
}

/* Tombol Resep Favorit */
.resep-favorit-btn {
  width: 700px;
  height: 80px;
  background-color: #FFB22C;
  color: white;
  border-radius: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 40px auto;
  border: 1px solid #FFF7E6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Drop shadow lembut */
  transition: all 0.3s ease;
}

.resep-favorit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 178, 44, 0.4);
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

/* Grid untuk favorit recipes */
.favorit-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  justify-content: center;
  padding: 20px 0 60px;
}

/* Kartu resep */
.favorit-recipe-card {
  border-radius: 43px;
  width: 240px;
  height: auto;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  margin: 0 auto;
}

/* Gambar di dalam kartu */
.favorit-recipe-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 43px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Hover efek */
.favorit-recipe-card:hover .favorit-recipe-image {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Nama resep */
.favorit-recipe-name {
  font-size: 30px;
  font-weight: normal;
  color: #000;
  margin-top: 10px;
  text-align: center;
}

.favorit-recipe-card:hover .favorit-recipe-name {
  color: #FF9800;
}
.favorit-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(456px, 1fr));
  gap: 40px;
  justify-content: center;
  padding: 20px 0;
}

/* Heart icon untuk favorit */
.favorit-heart-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ff4757;
  font-size: 20px;
  z-index: 3;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.favorit-recipe-card:hover .favorit-heart-icon {
  opacity: 1;
  transform: scale(1.2);
}

/* Mobile menu toggle untuk favorit */
.favorit-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* ==== Footer Umum ==== */
.footer {
  background-color: #FFB22C;
  color: #000000;
  padding: 40px 20px;
  border-radius: 28px 28px 0 0;
  margin-top: 50px;
  font-family: 'Inter', sans-serif; /* Terapkan ke seluruh footer */
}

.footer-content h6 {
  font-size: 20px;
  font-weight: 700; /* Bold */
  margin-bottom: 10px;
}

.footer-content p {
  font-size: 18px;
  font-weight: 400; /* Regular */
  margin: 0;
  line-height: 1.6;
}

.footer-content a {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
}


/* ==== Gambar Artikel Responsif ==== */
.img-fluid {
  border-radius: 12px;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}

/* ==== Tombol tambah favorit ==== */
.btn-outline-warning {
  color: #FFB22C;
  border: 2px solid #FFB22C;
  font-weight: bold;
  border-radius: 25px;
}

.btn-outline-warning:hover {
  background-color: #FFB22C;
  color: white;
}

/* ==== Responsif Tablet & Mobile ==== */
@media (max-width: 768px) {
  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  .info-card {
    width: 100%;
  }
}
/* ==== === Halaman Artikel === ==== */



/* Judul Artikel */
.article-subtext {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

.artikel-section {
  margin-bottom: 40px;
}

.artikel-judul-poin {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.artikel-deskripsi {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.article-title-wrapper {
  position: relative;
  z-index: 2;
}

.article-title {
  display: inline-block;
  background: white;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Gambar Artikel */
.article-image-wrapper {
  margin-top: -30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.article-image-wrapper img {
  width: 1278px;
  height: 702px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Isi Artikel */
.article-content {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}
#sub-list {
  list-style: none;        /* Menghilangkan bullet */
  padding-left: 0;         /* Hilangkan padding default */
}

#sub-list li {
  margin-bottom: 15px;     /* Jarak antar paragraf */
  line-height: 1.8;        /* Tinggi baris agar enak dibaca */
  text-align: justify;     /* Rata kiri-kanan agar rapi */
}

/* Artikel responsif */
@media (max-width: 768px) {
  .article-title {
    font-size: 24px;
    padding: 15px;
  }

  .main-salad {
    font-size: 16px;
    padding: 15px;
  }
}
/* tentang kami */
.tentang-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 45px;
  text-align: center;
}

.tentang-desc {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  color: #333;
  line-height: 1.6;
}

.tentang-img {
  max-width: 47%;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.membantu-section {
  background-color: #F8D660;
  text-align: center;
  padding: 50px 40px;
}

.membantu-section h2 {
  font-size: 45px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.membantu-section p {
  font-size: 27px;
  font-family: 'Inter', sans-serif;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cara-kerja-section {
  padding: 60px 40px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.cara-kerja-section h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 40px;
}

.cara-kerja-card h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 600;
  margin-top: 20px;
}

.cara-kerja-card p {
  font-family: 'Inter', sans-serif;
  font-size: 25px;
  font-weight: 400;
  margin-top: 10px;
  line-height: 1.4;
}
.cara-kerja-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  text-align: center;
}

.cara-kerja-card {
  flex: 1 1 300px;
  max-width: 350px;
}

.cara-kerja-card img {
  width: 100%;
  max-width: 438px;
  height: auto;
  aspect-ratio: 438 / 282;
  border-radius: 43px;
  object-fit: cover;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.element-pilihan-mode .div {
  background-color : #ffffff;
  overflow: hidden;
  width: 1728px;
  height: 2673px;
  position : relative;
}
.element-pilihan-mode .overlap {
  position: absolute;
  width : 1766px;
  height: 363px;
  top: 2322px;
  left: -15px;
  background-color: #FFB22C;
  border-radius: 28px;
  border: 1px solid;
  border-color: #ffffff;
}

/* ==== Mode Lambat ==== */
/* Container Umum */
.mode-container {
  padding: 30px;
}

.mode-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: #222;
}

/* ==== Container Mode ==== */
.container-mode {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 20px auto; /* tengah horizontal, jarak atas */
  text-align: center;
}

/* ==== Paragraf Mode ==== */
.mode-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}
h3 {
  font-size: 18px;
  text-align: left;
  margin: 24px 16px 16px 40px; /* Atas, kanan, bawah, kiri */
}

 /* Search Bar */
   .search-bar {
      display: flex;
      align-items: center;
      background-color: rgba(255, 255, 255, 0.95);
      border-radius: 69px;
      width: calc(100% - 32px); /* Sejajar dengan padding navbar */
      max-width: none;
      height: 60px;
      padding: 0 25px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      margin: 0 16px 40px 16px; /* Margin yang sama dengan padding navbar */
      backdrop-filter: blur(10px);
    }

    .search-bar input {
      flex: 1;
      border: none;
      outline: none;
      font-size: 16px;
      padding: 8px 12px;
      background: transparent;
      color: #333;
    }

    .search-bar input::placeholder {
      color: #888;
    }

    .search-bar button {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      display: flex;
      align-items: center;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .search-bar button:hover {
      background: rgba(102, 126, 234, 0.1);
    }

    .search-bar .search-icon {
      width: 24px;
      height: 24px;
    }


/* Container list resep */
#mode-resep {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 16px 40px 16px;
}

/* Recipe Card */
.recipe-card-mode {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover effect */
.recipe-card-mode:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

/* Recipe image (left) */
.recipe-card-mode img.recipe-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Recipe info (right) */
.recipe-info {
  flex: 1;
}

.recipe-info h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.recipe-time {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #666;
  margin-top: 8px;
}

.recipe-time img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}