/* ===================================================================
   Eat to Fit - Main Stylesheet (No Header Version)
=================================================================== */

/* --- Variables and Basic Setup --- */
:root {
    --primary: #4CAF50;
    --secondary: #FF9800;
    --text: #333;
    --bg: #fff;
    --shadow: rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; } 
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text); background-color: #f9f9f9; } 

h1, h2, h3 { color: var(--primary); } 
a { color: var(--primary); text-decoration: none; } 
.button, button { background: var(--primary); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 16px; text-decoration: none; display: inline-block; text-align: center; transition: background 0.3s, transform 0.2s; } 
.button:hover, button:hover { background: #43A047; transform: translateY(-2px); color: #fff; }

/* --- Main Sections & Other Styles --- */
main section { padding: 30px 20px; }
#hero { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("media/Hero.jpg"); background-size: cover; background-position: center; text-align: center; color: #fff; padding: 80px 20px; } 
#hero h1 { color: #fff; font-size: 42px; margin-bottom: 10px; } 
#hero p { font-style: italic; font-size: 20px; margin-bottom: 30px; } 
.categories { display: flex; overflow-x: auto; padding: 15px 0; scrollbar-width: none; } 
.categories::-webkit-scrollbar { display: none; } 
.category-btn { background: #e0e0e0; color: var(--text); border: none; padding: 12px 24px; margin-right: 15px; border-radius: 30px; cursor: pointer; white-space: nowrap; } 
.category-btn.active { background: var(--primary); color: #fff; } 
.grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 30px; } 
.card { display: block; color: var(--text); text-decoration: none; background: var(--bg); box-shadow: 0 4px 15px var(--shadow); border-radius: 15px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; } 
.card:hover { transform: translateY(-10px); box-shadow: 0 8px 20px var(--shadow); } 
.card img { width: 100%; height: 220px; object-fit: cover; display: block; } 
.card-content { padding: 20px; } 
.card-content h3 { font-size: 22px; } 
.card-content p { font-size: 16px; margin-bottom: 15px; } 
#detail-title { text-align: center; margin-top: 20px; }
.testimonials-wrapper { background-color: #e9f5e9; padding: 50px 20px; }
.testimonial-slider { max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 15px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); } 
.slides-container { display: flex; transition: transform 0.5s ease-in-out; } 
.slide { min-width: 100%; background: var(--bg); padding: 40px; text-align: center; } 
.slide img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--primary); } 
.slide .comment { font-style: italic; font-size: 18px; margin-bottom: 15px; color: #555; } 
.slide .author { font-weight: bold; font-size: 16px; color: var(--primary); } 
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.7); border: none; color: var(--primary); font-size: 24px; cursor: pointer; padding: 10px; border-radius: 50%; width: 50px; height: 50px; z-index: 10; transition: none; } 
.prev-btn { left: 15px; } 
.next-btn { right: 15px; } 
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
footer { background: var(--primary); color: #fff; text-align: center; padding: 20px; margin-top: 30px; } 
footer a { color: #fff; margin: 0 10px; text-decoration: underline; } 
.footer-links { margin-top: 15px; }

/* Responsive Styles */
@media (min-width: 768px) { 
    .grid { grid-template-columns: repeat(2, 1fr); } 
    .categories { justify-content: center; } 
} 
@media (min-width: 1024px) { 
    .grid { grid-template-columns: repeat(3, 1fr); } 
}
/*---Header Start---*/
:root {
  --primary: #4CAF50;
  --secondary: #FF9800;
  --text: #333;
  --bg: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  box-shadow: 0 4px 10px var(--shadow);
  z-index: 1000;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 15px;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 30px;
}

nav ul li a {
  font-size: 16px;
  transition: color 0.3s;
  padding: 15px;
  text-decoration: none;
  color: var(--text);
}

nav ul li a:hover {
  color: var(--secondary);
}

.hamburger {
  display: block;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger div {
  width: 30px;
  height: 4px;
  background: var(--text);
  margin: 6px;
  transition: 0.3s;
}

#nav-menu {
  display: none;
  position: absolute;
  top: 80px;
  right: 20px;
  background: var(--bg);
  box-shadow: 0 4px 10px var(--shadow);
  padding: 20px;
  border-radius: 8px;
}

#nav-menu.active {
  display: block;
}

#nav-menu li {
  margin: 15px 0;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  #nav-menu {
    display: flex !important;
    position: static;
    box-shadow: none;
    padding: 0;
  }
}
/*---Header End---*/

/* --- Legal Pages (Privacy, Terms, etc.) --- */

        /* Styles for Legal Pages */
        .legal-page { padding: 30px 20px; }
        .legal-page .container { max-width: 800px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px var(--shadow); }
        .legal-page h1 { font-size: 28px; margin-bottom: 20px; color: var(--primary); }
        .legal-page p { margin-bottom: 15px; }
        
        
/* --- Search Bar Styles --- */
#hero .search-container { max-width: 600px; margin: 0 auto; position: relative; }
#hero .search-input { width: 100%; padding: 15px 25px; font-size: 18px; border-radius: 30px; border: 2px solid #fff; background-color: rgba(255, 255, 255, 0.2); color: #fff; }
#hero .search-input::placeholder { color: rgba(255, 255, 255, 0.8); }
#hero .search-results { text-align: left; }

.search-container { position: relative; }
.search-input { width: 100%; max-width: 600px; margin: 0 auto; display: block; padding: 15px; font-size: 18px; border-radius: 30px; border: 1px solid #ddd; }
.search-results { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; background: var(--bg); border: 1px solid #ddd; border-top: none; border-radius: 0 0 10px 10px; box-shadow: 0 8px 16px var(--shadow); z-index: 999; max-height: 400px; overflow-y: auto; }
.search-result-item { display: block; padding: 15px; border-bottom: 1px solid #eee; text-decoration: none; color: var(--text); }
.search-result-item:hover { background-color: #f5f5f5; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h4 { color: var(--primary); margin-bottom: 5px; }
.search-result-item p { font-size: 14px; color: #666; }
.no-results { padding: 20px; text-align: center; color: #888; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
#goals-search-container { width: 100%; max-width: 300px; }
#goals-search-container .search-input { font-size: 16px; padding: 10px 15px; }
#goals-search-container .search-results { max-width: 300px; left: auto; right: 0; transform: none; }