/* Base Styles */
:root {
  --primary-color: #f08080; /* Light coral */
  --primary-dark: #e06060;
  --secondary-color: #f5f5f5; /* Light grey */
  --text-color: #333333;
  --light-text: #666666;
  --border-color: #dddddd;
  --white: #ffffff;
  --success-color: #4caf50;
  --error-color: #f44336;
  --font-family: "Arial", sans-serif;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

#logo{
  max-width: 20%;
  height: auto;
}

#foot-logo{
  max-width: 50%;
  height: auto;
}

ul,
ol {
  padding-left: 20px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn.primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn.primary:hover {
  background-color: var(--primary-dark);
}

.btn.secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn.secondary:hover {
  background-color: var(--border-color);
}

.btn.view-recipe {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  /* padding: 8px 16px;
  font-size: 14px; */
}

.btn.view-recipe:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  font-size: 24px;
  color: var(--text-color);
  margin: 0;
}

.logo span {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 22px;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  color: var(--text-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 160px;
  box-shadow: var(--box-shadow);
  z-index: 1;
  border-radius: var(--border-radius);
  padding: 10px 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  margin: 0;
  padding: 0;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 10px 15px;
  display: block;
  font-weight: normal;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
}

.search-icon a {
  color: var(--text-color);
  font-size: 20px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
  display: block;
  padding: 15px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

.mobile-menu a:hover {
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  padding: 60px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--light-text);
}

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

/* Notification */
.notification {
  padding: 15px 0;
  text-align: center;
  margin-bottom: 30px;
}

.notification.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
}

.notification.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.recipe-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipe-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.05);
}

.category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: bold;
}

.recipe-content {
  padding: 20px;
}

.recipe-content h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.recipe-content p {
  color: var(--light-text);
  margin-bottom: 15px;
  font-size: 14px;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  /* margin-bottom: 15px;
  font-size: 12px; */
  color: var(--light-text);
}

/* Categories Section */
.categories-section {
  padding: 50px 0;
  background-color: var(--secondary-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.categories-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.category-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  background-color: var(--white);
  text-align: center;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-image {
  height: 150px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-card h3,
.category-card h4 {
  padding: 15px;
  margin: 0;
  color: var(--text-color);
}

/* Latest Recipes Section */
.latest-recipes {
  padding: 50px 0;
}

/* Ad Container */
.ad-container {
  margin: 30px 0;
  text-align: center;
}

.ad-placeholder {
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: var(--border-radius);
  max-width: 728px;
  margin: 0 auto;
}

.ad-placeholder p {
  color: var(--light-text);
  font-style: italic;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-color);
}

.footer-section p {
  color: var(--light-text);
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-section.newsletter form {
  display: flex;
  flex-direction: column;
}

.footer-section.newsletter input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.footer-section.newsletter button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-section.newsletter button:hover {
  background-color: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--light-text);
  font-size: 14px;
}

/* Category Page */
.category-header {
  background-color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 50px;
}

.category-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.category-header p {
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

.category-recipes {
  padding-bottom: 50px;
}

.no-recipes {
  text-align: center;
  padding: 50px 0;
}

/* Recipe Detail Page */
.recipe-detail {
  padding: 50px 0;
}

.recipe-header {
  text-align: center;
  margin-bottom: 30px;
}

.recipe-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.recipe-meta-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.recipe-meta-top .category {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 14px;
}

.recipe-times {
  display: flex;
  gap: 15px;
  color: var(--light-text);
  font-size: 14px;
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

.recipe-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.recipe-image {
  width: 100%;
  height: auto;
  display: block;
}

.recipe-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recipe-description {
  margin-bottom: 20px;
}

.recipe-meta-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.meta-item {
  background-color: var(--secondary-color);
  padding: 15px;
  border-radius: var(--border-radius);
}

.meta-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.meta-value {
  color: var(--primary-color);
  font-weight: bold;
}

.recipe-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 50px;
}

.ingredients-section,
.instructions-section {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.ingredients-section h3,
.instructions-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.ingredients-list li,
.instructions-list li {
  margin-bottom: 10px;
}

.instructions-list li {
  padding-left: 10px;
}

.recipe-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.nutrition-section,
.notes-section {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.nutrition-section h3,
.notes-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: center;
}

.nutrition-item {
  padding: 10px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
}

.nutrition-value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.nutrition-label {
  font-size: 14px;
  color: var(--light-text);
}

/* About Page */
.about-header {
  background-color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 50px;
}

.about-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-header p {
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  padding-bottom: 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-text h3 {
  margin-bottom: 20px;
}

.mission-section,
.audience-section,
.values-section,
.join-us-section {
  margin-bottom: 50px;
}

.mission-section h3,
.audience-section h3,
.values-section h3,
.join-us-section h3 {
  margin-bottom: 20px;
}

.mission-section ul {
  margin-left: 20px;
}

.mission-section li {
  margin-bottom: 10px;
}

.audience-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.audience-card,
.value-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.audience-card h4,
.value-item h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* Contact Page */
.contact-header {
  background-color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-header p {
  color: var(--light-text);
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  padding-bottom: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.contact-info h3,
.contact-form-container h3 {
  margin-bottom: 20px;
}

.contact-methods {
  margin-top: 30px;
}

.contact-method {
  margin-bottom: 20px;
}

.contact-method h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.social-links {
  margin-top: 30px;
}

.social-links h4 {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.required {
  color: var(--error-color);
}

.form-error {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
  padding: 10px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.form-success {
  text-align: center;
  padding: 30px;
}

.form-success h3 {
  color: var(--success-color);
  margin-bottom: 15px;
}

.form-success p {
  margin-bottom: 20px;
}

.faq-section {
  margin-top: 50px;
}

.faq-section h3 {
  text-align: center;
  margin-bottom: 30px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.faq-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.faq-item h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Privacy, Cookies, Disclaimer Pages */
.privacy-header,
.cookies-header,
.disclaimer-header {
  background-color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 50px;
}

.privacy-header h2,
.cookies-header h2,
.disclaimer-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.privacy-header p,
.cookies-header p,
.disclaimer-header p {
  color: var(--light-text);
}

.privacy-content,
.cookies-content,
.disclaimer-content {
  padding-bottom: 50px;
}

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

.policy-section h3 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.policy-section h4 {
  margin: 20px 0 10px;
  color: var(--primary-color);
}

.policy-section p,
.policy-section ul,
.policy-section ol {
  margin-bottom: 15px;
}

.policy-section ul li,
.policy-section ol li {
  margin-bottom: 5px;
}

/* Search Page */
.search-header {
  background-color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 50px;
}

.search-header h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-container {
  display: flex;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.search-input-container input {
  flex: 1;
  padding: 15px;
  border: none;
  font-size: 16px;
}

.search-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: var(--primary-dark);
}

.search-results {
  padding-bottom: 50px;
}

.search-summary {
  margin-bottom: 30px;
}

.search-summary h3 {
  margin-bottom: 10px;
}

.search-suggestions {
  margin-top: 20px;
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: var(--border-radius);
}

.search-suggestions h4 {
  margin-bottom: 10px;
}

.search-suggestions ul {
  margin-left: 20px;
}

.search-suggestions li {
  margin-bottom: 5px;
}

.popular-searches,
.browse-categories {
  margin-bottom: 50px;
}

.popular-searches h3,
.browse-categories h3 {
  margin-bottom: 20px;
  text-align: center;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-tag {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--secondary-color);
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.search-tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 404 Page */
.error-404 {
  padding: 80px 0;
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto 50px;
}

.error-content h2 {
  font-size: 72px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.error-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.error-content p {
  margin-bottom: 30px;
  color: var(--light-text);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.suggested-content {
  margin-top: 50px;
}

.suggested-content h3 {
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .recipe-content,
  .recipe-main,
  .recipe-footer {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .search-icon {
    margin-right: 20px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .recipe-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .recipe-meta-details {
    grid-template-columns: 1fr;
  }

  .audience-grid,
  .values-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 20px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h2 {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .recipe-card {
    margin-bottom: 20px;
  }

  .recipe-header h2 {
    font-size: 24px;
  }

  .recipe-meta-top {
    flex-direction: column;
    gap: 10px;
  }

  .recipe-times {
    flex-direction: column;
    align-items: center;
  }

  .nutrition-grid {
    grid-template-columns: 1fr;
  }

  .error-content h2 {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
  }
}
