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

:root {
  --pink-light: #fce4ec;
  --pink-mid: #f48fb1;
  --pink-dark: #c2185b;
  --rose: #e91e63;
  --nude: #f5e6e0;
  --text: #3d2b2b;
  --text-soft: #7a5c5c;
  --white: #fff;
  --shadow: 0 4px 24px rgba(194, 24, 91, 0.10);
  --radius: 18px;
  --font: 'Georgia', serif;
  --font-sans: 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--nude);
  color: var(--text);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  border-radius: var(--radius);
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 50%, #f48fb1 100%);
  color: var(--white);
  padding: 0;
  box-shadow: 0 4px 20px rgba(194,24,91,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-logo {
  font-size: 2.8rem;
  font-family: var(--font);
  font-style: italic;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 6px;
}

.header-logo span {
  color: #fff8fb;
  font-weight: 400;
}

.header-tagline {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.88;
  font-family: var(--font-sans);
}

/* ===== NAV ===== */
nav {
  background: var(--white);
  border-bottom: 2px solid var(--pink-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(194,24,91,0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 24px;
  align-items: center;
}

nav a {
  padding: 16px 18px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--pink-dark);
  border-bottom-color: var(--rose);
}

/* ===== HERO (homepage) ===== */
.hero {
  background: linear-gradient(120deg, #fce4ec 60%, #f8bbd0 100%);
  border-bottom: 1px solid #f8bbd0;
  padding: 56px 24px 48px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font);
  font-size: 2.4rem;
  color: var(--pink-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #c2185b, #e91e63);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(233,30,99,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,99,0.38);
}

/* ===== MAIN LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-family: var(--font);
  font-size: 1.7rem;
  color: var(--pink-dark);
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60%;
  background: linear-gradient(90deg, #e91e63, transparent);
  border-radius: 2px;
  margin-top: 6px;
}

/* ===== ARTICLE CARDS GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(194,24,91,0.16);
}

.card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.card-thumb-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
}

.card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font);
  font-size: 1.22rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-excerpt {
  font-size: 0.91rem;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #b07070;
}

.card-read-more {
  color: var(--rose);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.card-read-more:hover {
  gap: 8px;
}

/* ===== FEATURED CARD ===== */
.card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: 280px;
}

.card-featured .card-thumb-placeholder {
  min-width: 280px;
  max-width: 280px;
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 5rem;
}

.card-featured .card-body {
  justify-content: center;
}

.card-featured .card-title {
  font-size: 1.55rem;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 1px solid #f8bbd0;
}

.article-tag {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font);
  font-size: 2.4rem;
  color: var(--pink-dark);
  max-width: 720px;
  margin: 0 auto 14px;
  line-height: 1.25;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.article-emoji-banner {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 36px;
}

.article-body h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--pink-dark);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--rose);
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 28px 0 10px;
  font-weight: 700;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 18px;
}

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

.article-body li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--pink-dark);
}

.tip-box {
  background: var(--pink-light);
  border-left: 5px solid var(--rose);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.tip-box p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text);
}

.tip-box strong {
  color: var(--pink-dark);
  display: block;
  margin-bottom: 4px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}

.product-item {
  background: var(--white);
  border: 1.5px solid var(--pink-light);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: var(--shadow);
}

.product-item .product-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

/* ===== SIDEBAR ===== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.sidebar-widget h3 {
  font-family: var(--font);
  font-size: 1.08rem;
  color: var(--pink-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-light);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag {
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  transition: background 0.15s;
}

.sidebar-tag:hover {
  background: var(--pink-mid);
  color: var(--white);
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--pink-light);
  font-size: 0.91rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--text-soft);
  transition: color 0.15s;
}

.sidebar-list a:hover {
  color: var(--rose);
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--rose);
}

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: #e0c0c8;
  text-align: center;
  padding: 36px 24px;
  font-size: 0.88rem;
  margin-top: 40px;
}

footer strong {
  color: var(--pink-mid);
}

footer p {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-logo { font-size: 2rem; }
  .hero h1 { font-size: 1.7rem; }
  .article-title { font-size: 1.7rem; }
  .card-featured { flex-direction: column; max-height: none; }
  .card-featured .card-thumb-placeholder { min-width: 100%; height: 180px; border-radius: var(--radius) var(--radius) 0 0; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}
