

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff8f0;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: Georgia, serif;
}



.navbar {
  background-color: #2c2c2c;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 22px;
  font-weight: bold;
  color: #e8a020;
  font-family: Georgia, serif;
}

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

.nav-links a {
  color: #ccc;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e8a020;
  background-color: #444;
}


.nav-search {
  display: flex;
  align-items: center;
  background-color: #444;
  border: 1px solid #666;
  border-radius: 20px;
  padding: 5px 12px;
  gap: 6px;
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 140px;
}

.nav-search input::placeholder {
  color: #999;
}


.hero {
  background-color: #3d2b1f;
  padding: 60px 40px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 40px;
  color: #e8a020;
  margin-bottom: 12px;
}

.hero p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background-color: #e8a020;
  color: white;
  border: 2px solid #e8a020;
}

.btn-primary:hover {
  background-color: #c98010;
  border-color: #c98010;
}

.btn-outline {
  background-color: transparent;
  color: #e8a020;
  border: 2px solid #e8a020;
}

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


.categories {
  background-color: #e8a020;
  padding: 10px 40px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.categories a {
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 16px;
}

.categories a:hover {
  text-decoration: underline;
}


.section {
  padding: 50px 40px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 6px;
}

.section-line {
  width: 50px;
  height: 3px;
  background-color: #e8a020;
  margin: 8px auto 8px;
  border: none;
}

.section-sub {
  text-align: center;
  color: #777;
  font-size: 14px;
  margin-bottom: 36px;
}



.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.recipe-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.recipe-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-img {
  position: relative;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #c0392b;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

.card-link {
  font-size: 13px;
  font-weight: bold;
  color: #e8a020;
}

.card-link:hover {
  text-decoration: underline;
}


.about-section {
  background-color: #2c2c2c;
  padding: 50px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 260px;
}

.about-text h2 {
  color: white;
  font-size: 26px;
  margin-bottom: 12px;
}

.about-text p {
  color: #aaa;
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  min-width: 260px;
}

.about-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}



.footer {
  background-color: #1a1a1a;
  padding: 40px;
  border-top: 3px solid #e8a020;
}

.footer-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-col h3 {
  color: #e8a020;
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col p {
  color: #777;
  font-size: 13px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #777;
  font-size: 13px;
}

.footer-col ul li a:hover {
  color: #e8a020;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #666;
}



.page-hero {
  background-color: #2c2c2c;
  padding: 40px;
  border-bottom: 3px solid #e8a020;
}

.breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #e8a020;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  color: white;
  font-size: 32px;
  margin-bottom: 12px;
}

.recipe-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background-color: #444;
  color: #e8a020;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e8a020;
}

.tag.easy   { color: #27ae60; border-color: #27ae60; }
.tag.medium { color: #e8a020; border-color: #e8a020; }
.tag.hard   { color: #e74c3c; border-color: #e74c3c; }

.recipe-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #e8a020;
  font-family: Georgia, serif;
}

.stat-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}


.recipe-body {
  padding: 40px;
}

.recipe-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.recipe-main {
  flex: 2;
  min-width: 280px;
}

.recipe-main img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 32px;
}

.recipe-section {
  margin-bottom: 36px;
}

.recipe-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8a020;
}

.ingredients-list li {
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  position: relative;
}

.ingredients-list li::before {
  content: '•';
  color: #e8a020;
  position: absolute;
  left: 0;
}

.steps-list {
  list-style: none;
}

.steps-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.steps-list li:last-child {
  border-bottom: none;
}

.step-num {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  color: #ddd;
  line-height: 1;
  min-width: 36px;
}

.step-text {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

/* Sidebar */
.recipe-sidebar {
  flex: 1;
  min-width: 220px;
}

.sidebar-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.nutrition-row:last-child {
  border-bottom: none;
}

.nutrition-row span:last-child {
  font-weight: bold;
}

.tip-box {
  background-color: #fffbf0;
  border-left: 4px solid #e8a020;
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #555;
}


.page-title-section {
  background-color: #2c2c2c;
  padding: 40px;
  text-align: center;
  border-bottom: 3px solid #e8a020;
}

.page-title-section h1 {
  color: white;
  font-size: 30px;
  margin-bottom: 8px;
}

.page-title-section p {
  color: #aaa;
  font-size: 14px;
}

.cat-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cat-tab {
  padding: 7px 20px;
  border: 2px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.cat-tab:hover,
.cat-tab.active {
  border-color: #e8a020;
  color: #e8a020;
}



@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-search {
    display: none;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 36px 20px;
  }

  .about-section {
    flex-direction: column;
    padding: 36px 20px;
  }

  .recipe-body {
    padding: 24px 20px;
  }

  .recipe-layout {
    flex-direction: column;
  }

  .footer {
    padding: 30px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-hero {
    padding: 30px 20px;
  }

  .categories {
    padding: 10px 20px;
  }
}