@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM (LIGHT/DARK)
   ========================================== */
:root {
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme: Light Colors */
  --bg-color: #fbf9f6;
  --card-bg: #ffffff;
  --card-bg-transparent: rgba(255, 255, 255, 0.8);
  --text-color: #2b2b2b;
  --text-muted: #666360;
  --border-color: #eee9e2;
  --shadow-color: rgba(94, 76, 56, 0.08);
  --shadow-hover: rgba(94, 76, 56, 0.15);

  /* Brand Accents */
  --primary-color: #f57421; /* Core Parenting Orange */
  --primary-rgb: 245, 116, 33;
  --primary-hover: #ec5d00;
  --secondary-color: #2a9d8f; /* Health & Growth Teal */
  --secondary-rgb: 42, 157, 143;
  --secondary-hover: #207a6f;
  --accent-color: #e76f51; /* Coral/Peach Accent */
  --light-bg-accent: #fdf5ef;

  /* Status Colors */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-error: #f44336;

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

[data-theme="dark"] {
  /* Theme: Dark Colors */
  --bg-color: #0f0d0b;
  --card-bg: #1a1613;
  --card-bg-transparent: rgba(26, 22, 19, 0.8);
  --text-color: #f3ede6;
  --text-muted: #a39c94;
  --border-color: #2b2621;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(0, 0, 0, 0.6);
  --light-bg-accent: #2c1a10;
}

/* ==========================================
   RESET & SYSTEM BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-sm);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--card-bg-transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px var(--shadow-color);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-color);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-orange 2s infinite;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary-color);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle, .search-toggle, .mobile-menu-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.2rem;
}

.theme-toggle:hover, .search-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: rotate(15deg);
}

.ask-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.ask-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
  color: #fff;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
}

/* ==========================================
   HERO / CAROUSEL & HOME SECTIONS
   ========================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Premium Card Designs */
.feature-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 480px;
  box-shadow: 0 10px 30px var(--shadow-color);
  background-color: var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-hover);
}

.feature-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 90%);
  z-index: 2;
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem;
}

.category-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.feature-card.recipe-theme .category-tag {
  background-color: var(--secondary-color);
}

.card-title {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.card-meta {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  gap: 1.5rem;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mini-card {
  position: relative;
  height: 228px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 6px 20px var(--shadow-color);
  transition: var(--transition-smooth);
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.mini-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

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

.mini-card .card-content {
  padding: 1.5rem;
}

.mini-card .card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ==========================================
   AGE CATEGORIES QUICK BAR
   ========================================== */
.age-bar-section {
  padding: 1.5rem 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.age-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.age-bar-title {
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.age-buttons-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.age-buttons-grid::-webkit-scrollbar {
  display: none;
}

.age-btn {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
}

.age-btn:hover, .age-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
  transform: scale(1.02);
}

/* ==========================================
   SECTION HEADER COMPONENT
   ========================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.section-title-wrap {
  position: relative;
}

.section-title {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.section-title-underline {
  position: absolute;
  bottom: -0.95rem;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  z-index: 2;
  border-radius: 2px;
}

.section-more-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================
   MAIN CARDS GRID (ARTICLES / RECIPES)
   ========================================== */
.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.standard-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.standard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--border-color);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.standard-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-bookmark-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

[data-theme="dark"] .card-bookmark-btn {
  background-color: rgba(26, 22, 19, 0.9);
}

.card-bookmark-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.card-bookmark-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-tag {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.recipe-theme .card-tag {
  color: var(--secondary-color);
}

.card-age-tag {
  font-size: 0.75rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.standard-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: var(--text-color);
}

.standard-card h3 a {
  color: inherit;
}

.standard-card h3 a:hover {
  color: var(--primary-color);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================
   EXPERT BANNER & COMMUNITy SECTION
   ========================================== */
.expert-banner {
  background: linear-gradient(135deg, var(--light-bg-accent) 0%, var(--card-bg) 100%);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.expert-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.expert-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.expert-avatars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.expert-avatar-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: var(--transition-smooth);
}

.expert-avatar-card:hover {
  transform: translateY(-4px);
}

.expert-avatar-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--primary-color);
}

.expert-avatar-card.secondary-theme img {
  border-color: var(--secondary-color);
}

.expert-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
}

.expert-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Forum/Q&A Card List */
.qna-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.qna-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: var(--transition-smooth);
}

.qna-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.qna-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.qna-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-placeholder {
  width: 38px;
  height: 38px;
  background-color: var(--light-bg-accent);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info-text {
  line-height: 1.3;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.qna-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qna-tag {
  font-size: 0.8rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  color: var(--primary-color);
  font-weight: 600;
}

.qna-question {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.qna-answer-box {
  background-color: var(--bg-color);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-bottom: 1.5rem;
}

.qna-answer-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.qna-expert-badge {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.qna-answer-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.qna-actions {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.qna-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
}

.qna-action-btn:hover {
  color: var(--primary-color);
}

/* ==========================================
   NEWSLETTER SUBSCRIPTION SIGNUP
   ========================================== */
.newsletter-section {
  padding: 5rem 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.newsletter-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.newsletter-form input {
  flex-grow: 1;
  border: none;
  background: none;
  padding: 0 1.5rem;
  color: var(--text-color);
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.site-footer {
  background-color: #1a1613;
  color: #a39c94;
  padding: 5rem 0 2rem;
  border-top: 1px solid #2b2621;
}

[data-theme="dark"] .site-footer {
  background-color: #0c0b0a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: #fff;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-about {
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2c2621;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-col h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a39c94;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #2c2621;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #a39c94;
}

/* ==========================================
   PAGE DETAIL STYLING (SINGLE-ARTICLE / RECIPE)
   ========================================== */
.breadcrumbs {
  margin-top: calc(var(--header-height) + 2rem);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--border-color);
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.article-header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-header-meta .author-avatar {
  width: 36px;
  height: 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.article-featured-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2, .article-content h3 {
  margin: 2.5rem 0 1rem;
}

.article-content blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background-color: var(--light-bg-accent);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-style: italic;
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.article-tags {
  display: flex;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.tag-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.widget {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widget-post-item {
  display: flex;
  gap: 1rem;
}

.widget-post-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: var(--border-color);
}

.widget-post-info h4 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Comments Section */
.comments-section {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.comments-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.comment-form {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px var(--shadow-color);
  margin-bottom: 3rem;
}

.comment-form h3 {
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.submit-btn {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

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

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comment-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--border-color);
}

.comment-body {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px var(--shadow-color);
  position: relative;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Recipe specifics */
.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.recipe-meta-item {
  border-right: 1px solid var(--border-color);
}

.recipe-meta-item:last-child {
  border-right: none;
}

.recipe-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.recipe-meta-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.recipe-ingredients-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.ingredients-box, .instructions-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.ingredients-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
}

.ingredients-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
}

.instructions-steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 28px;
  height: 28px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================
   MODAL POPUP SYSTEM
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-color);
}

.modal-close-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Custom Search Overlay Drawers */
.search-drawer {
  position: fixed;
  top: -120px;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: var(--card-bg);
  border-bottom: 2px solid var(--border-color);
  z-index: 1500;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-drawer.active {
  transform: translateY(120px);
}

.search-drawer-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.search-input-wrap {
  position: relative;
  flex-grow: 1;
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 1rem 1.5rem 1rem 3.5rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.search-icon-placeholder {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 116, 33, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 116, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 116, 33, 0);
  }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    height: 380px;
  }
  
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sidebar {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  h1 { font-size: 1.8rem; }
  
  .site-header {
    height: var(--header-height);
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .main-nav.active {
    left: 0;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .ask-btn {
    display: none;
  }
  
  .expert-banner {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  
  .expert-avatars-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .recipe-ingredients-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 576px) {
  .card-content {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.6rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .expert-avatars-grid {
    grid-template-columns: 1fr;
  }
}
