@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #f4a6b8;
  --primary-dark: #e8899f;
  --secondary: #ffffff;
  --text: #222222;
  --text-light: #555555;
  --muted: #666666;
  --accent: #e6c200;
  --accent-dark: #ccaf00;
  --bg: #fafafa;
  --bg-alt: #f5f5f5;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --content-width: 750px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

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

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

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

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

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #fdf6f8 0%, #fff5f7 100%);
  text-align: center;
}

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

.hero h1 {
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease;
}

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

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btn:hover {
  background: var(--primary-dark);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Featured Posts */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.view-all {
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.view-all:hover svg {
  transform: translateX(4px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.post-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.post-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.post-meta svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* Main Content with Sidebar */
.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 80px 0;
}

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

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.search-widget input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.search-widget input:focus {
  outline: none;
  border-color: var(--primary);
}

.popular-posts-list {
  list-style: none;
}

.popular-post {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post:first-child {
  padding-top: 0;
}

.popular-post-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}

.popular-post-content span {
  font-size: 12px;
  color: var(--muted);
}

.categories-list {
  list-style: none;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.category-item:last-child {
  border-bottom: none;
}

.category-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.category-item a::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.category-count {
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Categories Section */
.categories-section {
  background: var(--secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.category-card:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

.category-card:hover .category-icon,
.category-card:hover h4,
.category-card:hover span {
  color: var(--secondary);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.category-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.category-card span {
  font-size: 13px;
  color: var(--muted);
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--secondary);
  text-align: center;
}

.newsletter h2 {
  color: var(--secondary);
  margin-bottom: 16px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 18px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-form button {
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.newsletter-privacy {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.8;
}

/* Trending */
.trending-posts {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.trending-posts::-webkit-scrollbar {
  height: 6px;
}

.trending-posts::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 3px;
}

.trending-posts::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.trending-card {
  min-width: 280px;
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.trending-card .post-image {
  padding-top: 50%;
}

.trending-card .post-content {
  padding: 16px;
}

.trending-card h4 {
  font-size: 18px;
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--secondary);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin: 16px 0 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  color: var(--secondary);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* Article Page */
.article-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #fdf6f8 0%, #fff5f7 100%);
}

.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.article-category {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.article-featured-image {
  max-width: 900px;
  margin: 0 auto 60px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 28px;
  margin: 48px 0 24px;
}

.article-body h3 {
  font-size: 22px;
  margin: 36px 0 16px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
  font-size: 17px;
}

.article-body a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--bg-alt);
  font-style: italic;
  font-size: 18px;
}

/* Table of Contents */
.toc {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.toc h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 10px;
}

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

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

/* Share Buttons */
.share-buttons {
  position: fixed;
  left: 40px;
  top: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-btn {
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn.facebook:hover { background: #1877f2; color: white; }
.share-btn.twitter:hover { background: #1da1f2; color: white; }
.share-btn.pinterest:hover { background: #e60023; color: white; }
.share-btn.linkedin:hover { background: #0a66c2; color: white; }

/* FAQ Section */
.faq-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 2px solid var(--border);
}

.faq-section h2 {
  margin-bottom: 32px;
}

.faq-item {
  background: var(--secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-light);
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
}

/* About Page */
.about-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #fdf6f8 0%, #fff5f7 100%);
  text-align: center;
}

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

.about-content p {
  font-size: 18px;
  margin-bottom: 24px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.mission-card {
  background: var(--secondary);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.mission-card .icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.mission-card .icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary);
}

/* Contact Page */
.contact-section {
  padding: 160px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--secondary);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary);
  color: var(--secondary);
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-info p {
  margin-bottom: 24px;
  color: var(--text-light);
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-details .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details .icon svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

/* Category Page */
.category-header {
  padding: 160px 0 60px;
  background: linear-gradient(135deg, #fdf6f8 0%, #fff5f7 100%);
  text-align: center;
}

.category-header h1 {
  margin-bottom: 16px;
}

.category-intro {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 18px;
}

.category-posts {
  padding: 60px 0;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--secondary);
  padding: 20px;
  box-shadow: var(--shadow);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .share-buttons {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  
  section {
    padding: 40px 0;
  }
  
  .nav-links, .search-btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .latest-posts .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .article-header h1 {
    font-size: 28px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
  }
}