/*---------------------------------------------------
01. Blog Hero Section - Enhanced with Gradient
---------------------------------------------------*/
.blog-hero {
  background: linear-gradient(135deg, #F7F7F9 0%, #EEF3FF 50%, #FFF3E9 100%);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 106, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero__title {
  color: var(--secondary-900);
  position: relative;
  z-index: 2;
}
.blog-hero__subtitle {
  font-size: 1.125rem;
  color: var(--neutral-500);
  max-width: 650px;
  margin: 1rem auto 0;
  position: relative;
  z-index: 2;
}
.blog-hero__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.blog-hero__stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 500;
}
.blog-hero__stat-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-500);
}
.blog-search {
  margin-top: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.blog-search__input {
  width: 100%;
  height: 3.5rem;
  border-radius: 999px;
  border: 2px solid var(--neutral-200);
  padding: 0 4rem 0 1.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all var(--t-normal);
  background: white;
}
.blog-search__input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 4px 20px rgba(231, 106, 46, 0.2), 0 0 0 4px rgba(231, 106, 46, 0.1);
  transform: translateY(-2px);
}
.blog-search__button {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--primary-500);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.blog-search__button:hover {
  background: #CF5F29;
  transform: scale(1.08) rotate(5deg);
}
.blog-search__icon {
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

/*---------------------------------------------------
02. Category Grid - Enhanced with Icons & Hover Effects
---------------------------------------------------*/
.category-section {
  padding: 4rem 0;
  background: white;
}
.category-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.category-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-900);
  margin-bottom: 0.5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  position: relative;
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all var(--t-normal);
  border: 2px solid transparent;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.2);
}

.category-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-card:hover .category-card__image {
  transform: scale(1.08);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  transition: background var(--t-normal);
}
.category-card--science .category-card__overlay {
  background: linear-gradient(135deg, rgba(40, 75, 156, 0.75) 0%, rgba(40, 75, 156, 0.5) 50%, rgba(40, 75, 156, 0.2) 100%);
}
.category-card--practical .category-card__overlay {
  background: linear-gradient(135deg, rgba(231, 106, 46, 0.75) 0%, rgba(231, 106, 46, 0.5) 50%, rgba(231, 106, 46, 0.2) 100%);
}
.category-card--health .category-card__overlay {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.75) 0%, rgba(22, 163, 74, 0.5) 50%, rgba(22, 163, 74, 0.2) 100%);
}
.category-card--family .category-card__overlay {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.75) 0%, rgba(147, 51, 234, 0.5) 50%, rgba(147, 51, 234, 0.2) 100%);
}
.category-card--video .category-card__overlay {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.75) 0%, rgba(220, 38, 38, 0.5) 50%, rgba(220, 38, 38, 0.2) 100%);
}
.category-card--faq .category-card__overlay {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.75) 0%, rgba(107, 114, 128, 0.5) 50%, rgba(107, 114, 128, 0.2) 100%);
}
.category-card:hover .category-card__overlay {
  opacity: 0.95;
}

.category-card__content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category-card__icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--t-normal);
}
.category-card:hover .category-card__icon {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1) rotate(5deg);
}
.category-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-top: 0.5rem;
}
.category-card__description {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.category-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.category-card__meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}
.category-card__topics {
  display: none;
  position: absolute;
  bottom: 4.5rem;
  left: 1.75rem;
  right: 1.75rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 1rem;
  animation: slideUp 0.3s ease-out;
}
.category-card:hover .category-card__topics {
  display: block;
}
.category-card__topics-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.category-card__topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
}
.category-card__topics-list li:before {
  content: '→';
  margin-right: 0.5rem;
  color: rgba(255,255,255,0.7);
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*---------------------------------------------------
03. Popular Articles Section - Horizontal Scroller
---------------------------------------------------*/
.popular-section {
  padding: 4rem 0;
  background: var(--neutral-50);
  overflow: hidden;
}
.popular-section__header {
  text-align: center;
  margin-bottom: 2rem;
}
.popular-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-900);
}
.popular-carousel {
  position: relative;
  padding: 0 0 1rem;
  margin: 0 -1rem;
}
@media (min-width: 768px) {
  .popular-carousel {
    margin: 0;
  }
}
.popular-carousel__wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-500) var(--neutral-100);
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .popular-carousel__wrapper {
    padding: 0;
  }
}
.popular-carousel__wrapper::-webkit-scrollbar {
  height: 6px;
}
.popular-carousel__wrapper::-webkit-scrollbar-track {
  background: var(--neutral-100);
  border-radius: 3px;
}
.popular-carousel__wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-500);
  border-radius: 3px;
}
.popular-carousel__track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}
.popular-article {
  flex: 0 0 320px;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all var(--t-normal);
  text-decoration: none;
  display: block;
}
.popular-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.popular-article__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.popular-article:hover .popular-article__image {
  transform: scale(1.05);
}
.popular-article__content {
  padding: 1.25rem;
}
.popular-article__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-500);
  background: rgba(231, 106, 46, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}
.popular-article__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary-900);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.popular-article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--neutral-500);
  margin-top: 0.75rem;
}

/*---------------------------------------------------
04. Collections Section - Tabs/Accordion
---------------------------------------------------*/
.collections-section {
  padding: 4rem 0;
  background: white;
}
.collections-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.collections-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-900);
  margin-bottom: 0.5rem;
}
.collections-section__subtitle {
  font-size: 1.125rem;
  color: var(--neutral-500);
}
.collections-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--neutral-100);
  flex-wrap: wrap;
}
.collections-tab {
  background: none;
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
  position: relative;
}
.collections-tab:hover {
  color: var(--primary-500);
}
.collections-tab.is-active {
  color: var(--primary-500);
  border-bottom-color: var(--primary-500);
  font-weight: 600;
}
.collections-content {
  display: none;
}
.collections-content.is-active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}
.collections-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.collections-list__item {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all var(--t-fast);
}
.collections-list__item:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.collections-list__item a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collections-list__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary-900);
}
.collections-list__arrow {
  color: var(--primary-500);
  font-size: 1.25rem;
  transition: transform var(--t-fast);
}
.collections-list__item:hover .collections-list__arrow {
  transform: translateX(4px);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/*---------------------------------------------------
05. CTA Section - Question Form
---------------------------------------------------*/
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-900) 100%);
  color: white;
}
.cta-section__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.cta-section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-section__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}
.cta-form {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.cta-form__row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .cta-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.cta-form__input,
.cta-form__textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.95);
  font-size: 1rem;
  transition: all var(--t-fast);
}
.cta-form__input:focus,
.cta-form__textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: white;
}
.cta-form__textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: 1 / -1;
}
.cta-form__button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.cta-form__button:hover {
  background: #CF5F29;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 106, 46, 0.4);
}
.cta-section__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}
