

/* General reset & font */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #ffffff;
  color: #e7e6e6;
}

/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8E2E2E;
  padding: 10px 10px;
  border-bottom: 1px solid #ffffff;
}

.social img {
  height: 24px;
}

.secondary-menu a {
  margin-left: 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  background: lab(100% 0.01 -0.01 / 0.48);
  border-bottom: 1px solid rgb(217, 202, 202);
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: #b6a344;
  text-decoration: none;
}

.main-menu a {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; /* or 800 if you want it extra bold */
   font-size: 20px;  
  margin-left: 45px;
  color: #963d02;
  text-decoration: none;
  font-weight: bold;
}

.main-menu .dropdown {
  position: relative;
  display: inline-block;
}

.main-menu .dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 8px 16px rgba(139, 106, 106, 0.2);
  z-index: 3;
  padding: 15px;
}

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

.dropdown-content a {
  display: block;
  margin: 5px 20px;
  color: #000000;
  text-decoration: none;
}


.search-button {
  all: unset;             /* Reset all default browser styles */
  font-size: 22px;        /* Size of the emoji */
  cursor: pointer;
  display: inline-block;
  line-height: 1;
  margin-left: 15px;      /* spacing from previous item */
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  vertical-align: middle;
}
.search-button:hover {
  transform: scale(1.1);
}







.welcome-banner {
  background-color: #fafaf0;
  text-align: center;
  padding: 15px 20px;
  font-family: 'Open Sans', sans-serif;
  color: #0b0b0b;
}

.welcome-banner h1 {
  font-size: 2.5rem;
  font-family: 'Brush Script MT', cursive;
  margin-bottom: 10px;
}

.welcome-banner p {
  font-size: 1.2rem;
  color: #4e4c4c;
}


/* Hero Section */
.hero {
  text-align: center;
  padding: 30px 20px;
}

.hero h2 {

  font-size: 33px;
  margin-bottom: 10px;
  color: #6d2e2e;
}


/* Category Grid */
/* Grid Row Wrappers */
.category-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Icon Styling */
.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.icon-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.icon-wrapper span {
  margin-top: 8px;
  font-weight: bold;
  color: #454545;
}





.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.icon-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.icon-wrapper span {
  margin-top: 8px;
  font-weight: bold;
  color: #000;
}


.about-me-wrapper {
  background-color: #d3d30c;
  padding: 10px 0;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}



.about-me-section {
  padding: 50px 0;
  background-color: #fafaf1;
}

.about-me-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;

}

.about-me-image img {
  width: 180px;
  height: auto;
  border-radius: 12px;
}

.about-me-text {
  flex: 1;
}

.about-me-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
    color: #333;
}

.about-me-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
    font-family: 'Jost', sans-serif;

}

.about-me-button {
  display: inline-block;
  background-color: #8b2c2c;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}






.newest-recipes {
  padding: 10px 10px;
  background-color: #ffffff;
  color: #454545;
    font-family: 'Jost', sans-serif;

}

.newest-recipes .container {
  max-width: 1200px;
  margin: 0 auto;
      font-family: 'Jost', sans-serif;

}

.newest-recipes .header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
      font-family: 'Jost', sans-serif;

}

.newest-recipes h2 {

  font-size: 36px;
  margin-bottom: 10px;
}

.newest-recipes .see-all {
  color: #8b2c2c;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 10px;
      font-family: 'Jost', sans-serif;

}

.newest-recipes .intro-text {
  font-size: 20px;
  color: #535151;
  margin: 1rem 0 2rem 0;
  padding: 0;
  max-width: none;
  text-align: left;
      font-family: 'Jost', sans-serif;


}












.recipe-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  

}




@media (max-width: 768px) {
  .recipe-cards,
  .recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on mobile */
    gap: 20px;
    padding: 0 10px;
    
  }

  .recipe-card {
    width: 100%;
  }

  .recipe-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .recipe-card {
    padding: 8px;
  }

  .recipe-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .recipe-card .recipe-category {
    font-size: 11px;
    font-weight: bold;
    color: #b63636;
    margin-top: 6px;
    margin-bottom: 2px;
  }

  .recipe-card .recipe-title,
  .recipe-card h3.recipe-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    margin: 2px 0 8px 0;
  }
}

@media (max-width: 480px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}







.recipe-card {
  text-align: left;
}

/* DESKTOP & TABLET */
.recipe-card img {
  width: 100%;
  height: 350px;         /* consistent height on desktop */
  object-fit: cover;
  border-radius: 6px;
}

/* MOBILE */
@media (max-width: 768px) {
  .recipe-card img {
    height: 220px;       /* shorter height on mobile */
    object-fit: cover;
    border-radius: 6px;
  }
}



.recipe-card .category {
  font-size: 14px;
  color: #8b2c2c;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 3px;
}

.recipe-card .recipe-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: #282727;
}






/* Shake animation */
@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.icon-wrapper:hover img {
  animation: shake 0.4s ease;
}

/* Footer */
footer {
  text-align: center;
  background: #8b2c2c;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 14px;
  color: #ffffff;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #ffffff;
  text-decoration: none;
}


@media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-me-text {
    text-align: center;
  }
}


.featured-recipe {
  background-color: #ffffff;
  padding: 10px 10px;
  padding-top: 1.5rem; /* reduce top padding */
  margin-top: 1rem;  /* reduce top margin */
}

.featured-recipe-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fafaf0;
  border: 4px dotted #ebeacc;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;  /* ⬅️ REDUCED GAP */
  flex-wrap: wrap;
  font-family: 'Jost', sans-serif;
}

.featured-image img {
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-content {
  max-width: 700px;
  flex: 1;
}

.featured-badge {
  font-size: 22px;
  font-family: 'Brush Script MT', cursive;
  color: #a52a2a;
  margin-bottom: 10px;
}



.featured-title {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Anton', sans-serif;
  margin-bottom: 10px;
  color: #000000;
}

.featured-description {
  font-size: 20px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
  
}

.featured-button {
  display: inline-block;
  background-color: #8b2c2c;
  color: white;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s;
}

.featured-button:hover {
  background-color: #6a1e1e;
}

@media (max-width: 768px) {
  .featured-recipe-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .featured-content {
    max-width: 100%;
  }
}










.dinner-recipe-2 {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.dinner-recipe-2 .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.dinner-recipe-2 .header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dinner-recipe-2 .section-title {
  font-size: 34px;
  font-weight: 800;
  font-family: 'Anton', sans-serif;
  color: #040404;
  margin: 0;
}

.dinner-recipe-2 .see-all-link {
  font-weight: bold;
  text-decoration: underline;
  color: #8b2e2e;
  font-size: 0.95rem;
    font-size: 19px;
}

.dinner-recipe-2 {
  padding: 2rem 1rem 1rem 1rem; /* Less bottom padding */
}

.dinner-recipe-2 .section-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 0.5rem; /* smaller space below */
  margin-top: 0.5rem;     /* smaller space above */
}


.recipe-grid {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  box-sizing: border-box;
}






.newest-recipes {
  margin-bottom: 40px; /* You can increase this number if needed */
}

.newsletter-section {
    margin-bottom: 20px;
}






@media (max-width: 767px) {
  .dinner-recipe-2 .header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .dinner-recipe-2 .section-title {
    font-size: 28px;
    text-align: left;
  }



  .dinner-recipe-2 .section-subtitle {
    font-size: 16px;
    text-align: left;
    margin-top: 10px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .dinner-recipe-2 .container {
    padding: 0 10px;
  }
}


.recipe-grid {
  padding-left: 10px;  /* Match this with header-wrapper */
}





.custom-search-section {
  background-color: #f4f4ea; /* light cream */
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 0;
}

.custom-search-section .subheading {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 0.3rem;
}

.custom-search-section .search-title {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #2e2e2e;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  border: 3px solid #edece2;
  border-radius: 50px;
  overflow: hidden;
  background-color: white;
}

.search-bar input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
  border-radius: 50px 0 0 50px;
}

.search-bar button {
  background-color: #ffffff;
  color: white;
  border: none;
  padding: 0 1.5rem;
  font-size: 1.2rem;
  height: 100%;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
}

.or-text {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.browse-link {
  font-weight: bold;
  text-decoration: underline;
  color: #662828;
  margin-left: 0.25rem;
}



.category-section {
  padding: 3rem 1rem;
  border-top: 3px dotted #f2f2c7;
  text-align: left;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 1200px;
  margin: 0 auto 0.5rem auto; /* reduced bottom margin */
  flex-wrap: wrap;
  gap: 1rem;
}

.category-title {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 2rem;
  margin: 0; /* remove default spacing */
}

.see-all-link {
  font-weight: bold;
  text-decoration: underline;
  color: #8b2e2e;
  font-size: 0.95rem;
    font-size: 19px;

}

 

.category-description {
  margin: 0.5rem 0 2rem 0;
  color: #555;
  font-size: 1.125rem;
  text-align: left;
  padding: 0;
  max-width: none;
    font-size: clamp(18px, 2vw, 20px); /* Grows with screen size */


}

.category-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.category-label {
  font-weight: bold;                 /* Make text bold */
  color: #8E2E2E;                    /* Use your theme color (dark red example) */
  font-family: 'Jost', sans-serif;  /* Ensure it's consistent with your body text */
  font-size: 15px;                   /* Adjust size as you prefer */
  text-transform: uppercase;        /* Makes sure it stays in all caps */
  letter-spacing: 0.5px;            /* Optional: nice spacing between letters */
  display: block;                   /* Ensures it behaves like a paragraph under the image */
  margin-top: 10px;                 /* Space between image and label */
}



.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-card {
  text-align: left;
}

.recipe-card img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.recipe-category {
  color: #8b2e2e;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0.75rem 0 0.3rem;
}

.recipe-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
}


.newsletter-section {
  background-color: #f7f7ea;
  padding: 15px 20px;
}

.newsletter-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 90px;
}

.newsletter-image img {
  max-width: 300px;
  border: 10px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.newsletter-form {
  flex: 1;
  max-width: 1200px;
}

.newsletter-form h2 {
  font-size: 2rem;
  font-family: 'Georgia', serif;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.newsletter-form p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.newsletter-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 1rem;
  border: 1px solid #bcbcbc;
  border-radius: 5px;
}

.newsletter-form button {
  width: 100%;
  padding: 15px;
  background-color: #f4431e;
  color: rgb(13, 0, 0);
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
   margin-bottom: 20px;
}

.newsletter-form button:hover {
  background-color: #c53412;
}


















/* OPTIONAL: Make sure mobile menu appears properly on small screens */
@media (max-width: 768px) {
  .mobile-header {
    display: block;
    width: 100%;
    background: white;
    z-index: 1000;
  }

  .mobile-header nav,
  .mobile-header .logo,
  .mobile-header button {
    display: inline-block;
    vertical-align: middle;
  }

  .mobile-menu-toggle {
    font-size: 22px;
    margin: 10px;
    cursor: pointer;
    background: none;
    border: none;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    border-top: 1px solid #ddd;
  }

  .mobile-menu a {
    padding: 10px 0;
    text-decoration: none;
    color: #2d2b2b;
    font-weight: bold;
  }

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





@media (max-width: 768px) {
  .mobile-header {
    display: block;
  }

}


.mobile-header a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
/* and the rest I gave you */










/* Show/hide headers based on screen size */
.mobile-header {
  display: none;
}
.desktop-header {
  display: block;
}

@media (max-width: 768px) {
  .mobile-header {
    display: block;
    background: white;
    z-index: 1000;
  }
  .desktop-header {
    display: none;
  }

  .mobile-header .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  .mobile-menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ccc;
  }

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

  .mobile-menu a {
    padding: 10px 0;
    text-decoration: none;
    color: #353535;
    font-weight: bold;
  }
}




@media (max-width: 768px) {
  .category-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
    margin: 20px auto;
  }

  .icon-wrapper {
    width: 100px;
  }
}









/* Hide horizontal scroll globally */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent image overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix category icons layout */
@media (max-width: 768px) {
  .category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
    margin: 20px auto;
    width: 100%;
  }

  .icon-wrapper {
    width: 100px;
    text-align: center;
  }
}

/* Fix logo area if it’s overflowing */
.mobile-header .main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Prevent nav menu from overflowing */
.mobile-header nav {
  overflow-x: hidden;
  max-width: 100%;
}





@media (max-width: 768px) {
  .featured-recipe-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .featured-content {
    text-align: center;
    padding: 12px;
  }

  .featured-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .featured-description {
    font-size: 19px;
    line-height: 1.5;
  }

  .featured-button {
    font-size: 14px;
    padding: 10px 16px;
    margin-top: 12px;
    display: inline-block;
  }
}



@media (min-width: 769px) {
  .featured-recipe-wrapper {
    display: flex;
    gap: 12px;  /* ⬅️ ALSO REDUCED GAP HERE */
    align-items: center;
  }
}

  .featured-image {
    flex: 1;
  }

  .featured-content {
    flex: 1;
  }



.category-title {
  color: #000;
  opacity: 1;
  text-shadow: none;
}


.welcome-banner {
  padding-bottom: 10px; /* reduce spacing */
  margin-bottom: 0;
}

.about-divider {
  margin: 10px auto;  /* reduce vertical spacing */
}

.hero {
  padding-top: 10px;  /* less space above 'Find Your Perfect Recipe Here' */
}









/* === CATEGORY GRID LAYOUT === */

.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

.icon-wrapper img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.icon-wrapper span {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
}


/* === MOBILE STYLES: 2 rows x 3 icons === */
@media (max-width: 768px) {
  .category-row {
    gap: 20px;
  }

  .icon-wrapper {
    width: 30%;         /* 3 icons per row */
    max-width: 100px;
  }

  .icon-wrapper img {
    width: 60px;
    height: 60px;
  }

  .icon-wrapper span {
    font-size: 0.85rem;
  }
}



/* ✅ Apply Suez One to all h2 and styled h2 equivalents */
h2,
.section-title,
.category-title,
.search-title,
.newsletter-form h2,
.about-me-text h2,
.hero h2,
.featured-title,
.dinner-recipe-2 .section-title {
  font-family: 'Suez One', serif !important;
}

/* Set Jost as the default font for the entire page */
body {
  font-family: 'Jost', sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
}





.about-me-text h2,
.hero h2,
.newsletter-form h2,
.dinner-recipe-2 
.section-title {
  font-family: 'Suez One', serif !important;
  font-weight: 400; /* or bold, depending on style */
}




@media (min-width: 769px) {
  .icon-wrapper img {
    width: 100px;
    height: 100px;
  }

  .icon-wrapper span {
    font-size: 1.1rem;
  }
}



.recipe-title {
  font-family: 'Jost', sans-serif !important;
}






/* Scrollbar styling for WebKit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background-color: #8E2E2E; /* Dark pink theme */
  border-radius: 10px;
  border: 2px solid #f5f5f5;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #8E2E2E #f5f5f5;
}
