/* ===== ZAFFILIA.ONLINE - MAIN STYLESHEET ===== */
:root {
  --primary: #1a3c5e;
  --accent: #2e8b57;
  --accent-light: #3aa86a;
  --text: #222222;
  --text-muted: #555555;
  --bg: #ffffff;
  --bg-light: #f7f9fc;
  --bg-alt: #eef2f7;
  --border: #d8e0ea;
  --red: #c0392b;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

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

/* ===== HEADER ===== */
#site-header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-svg { width: 44px; height: 44px; flex-shrink: 0; }

.logo-text { color: #fff; }
.logo-text .brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.5px; }
.logo-text .tagline { font-size: 0.7rem; color: rgba(255,255,255,0.7); letter-spacing: 1px; text-transform: uppercase; }

/* ===== NAV ===== */
nav#main-nav { display: flex; align-items: center; }
nav#main-nav ul { list-style: none; display: flex; gap: 4px; }
nav#main-nav ul li a {
  color: rgba(255,255,255,0.88);
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: block;
}
nav#main-nav ul li a:hover,
nav#main-nav ul li a.active { background: var(--accent); color: #fff; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 580px; margin: 0 auto 28px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); }

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 36px; font-size: 0.95rem; }
.section-header { margin-bottom: 36px; }
.section-header .divider { width: 50px; height: 3px; background: var(--accent); margin: 10px 0 12px; border-radius: 2px; }

/* ===== BLOG GRID ===== */
.blog-section { padding: 60px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-img { position: relative; overflow: hidden; height: 210px; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 3px 9px; border-radius: 3px;
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.card-title { font-family: var(--font-display); font-size: 1.08rem; color: var(--primary); margin-bottom: 10px; line-height: 1.45; }
.card-excerpt { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.card-link:hover { color: var(--primary); }

/* ===== POST PAGE ===== */
.post-hero { background: var(--bg-alt); padding: 50px 0 40px; border-bottom: 1px solid var(--border); }
.post-hero .cat-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  padding: 3px 12px; border-radius: 3px; margin-bottom: 14px;
}
.post-hero h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.3rem); color: var(--primary); line-height: 1.3; margin-bottom: 14px; }
.post-meta { font-size: 0.82rem; color: var(--text-muted); }
.post-meta span + span::before { content: ' • '; }

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 50px 0; align-items: start; }

.post-content { font-size: 1rem; line-height: 1.8; }
.post-content h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); margin: 32px 0 14px; }
.post-content h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); margin: 24px 0 10px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content img { border-radius: var(--radius); margin: 24px 0; width: 100%; }
.post-content strong { color: var(--primary); }
.post-content blockquote {
  border-left: 4px solid var(--accent); padding: 14px 20px;
  background: var(--bg-light); margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted);
}

/* ===== AFFILIATE DISCLOSURE ===== */
.affiliate-disclosure {
  background: #fff8e1;
  border: 1px solid #f0c040;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.84rem;
  color: #6b5700;
  line-height: 1.6;
}
.affiliate-disclosure strong { color: #5a4700; }

/* ===== BUY NOW CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  margin: 36px 0;
  text-align: center;
}
.cta-box h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; }
.cta-box p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.widget-title { font-family: var(--font-display); font-size: 1rem; color: var(--primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.widget ul { list-style: none; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.widget ul li:last-child { border: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }

/* ===== CATEGORIES ===== */
.cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tag {
  display: inline-block; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem; padding: 4px 12px; border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.cat-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== ABOUT STRIP ===== */
.about-strip { background: var(--bg-alt); padding: 60px 0; border-top: 1px solid var(--border); }
.about-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-strip h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); margin-bottom: 14px; }
.about-strip p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.stats-row { display: flex; gap: 32px; margin-top: 20px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); font-weight: 700; }
.stat .lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== FOOTER ===== */
#site-footer {
  background: #0f1e33;
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; margin-bottom: 36px; }
.footer-logo { margin-bottom: 14px; }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.2rem; font-weight: 700; }
.footer-about { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span + span::before { content: ' › '; margin: 0 4px; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon { width: 40px; height: 40px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.info-text strong { display: block; font-size: 0.85rem; color: var(--primary); margin-bottom: 2px; }
.info-text span, .info-text a { font-size: 0.9rem; color: var(--text-muted); }

.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font-body);
  background: var(--bg); color: var(--text); transition: border-color 0.2s;
  margin-bottom: 18px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form button {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 12px 32px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--accent-light); }

/* ===== PRIVACY PAGE ===== */
.policy-section { padding: 60px 0; }
.policy-content h2 { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary); margin: 30px 0 12px; }
.policy-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.policy-content ul { margin: 0 0 16px 24px; }
.policy-content ul li { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 6px; }

/* ===== ABOUT PAGE ===== */
.about-section { padding: 60px 0; }
.about-section h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); margin-bottom: 14px; }
.about-section p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.95rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.team-card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; text-align: center; }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.team-card h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.team-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  color: #fff; padding: 50px 0;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 500px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  nav#main-nav ul { display: none; flex-direction: column; gap: 0; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary); padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  nav#main-nav ul.open { display: flex; }
  nav#main-nav ul li a { border-radius: 0; padding: 12px 20px; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { gap: 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero { padding: 48px 0 40px; }
}

/* ===== MISC ===== */
.tag-fitness { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.tag-medicine { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.tag-nutrition { background: #fff3e0; color: #e65100; border: 1px solid #ffcc02; }

.notice-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 20px;
}
.notice-bar a { color: #fff; text-decoration: underline; }

.related-posts { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border); }
.related-posts h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 680px) {
  .related-grid { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
