/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Georgia', 'Times New Roman', serif; color: #222; background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1a5c8a; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --primary: #1a5c8a;
  --primary-dark: #134569;
  --accent: #2eaa6e;
  --accent-dark: #228855;
  --text: #222222;
  --text-light: #555;
  --border: #ddd;
  --bg-light: #f7f9fc;
  --bg-alt: #eef2f7;
  --white: #ffffff;
  --red: #c0392b;
  --max-width: 1200px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: var(--primary-dark); }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 36px; }
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.tag { display: inline-block; background: var(--bg-alt); color: var(--primary); font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 30px; text-transform: uppercase; letter-spacing: 0.5px; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }

/* ===== AFFILIATE DISCLOSURE ===== */
.affiliate-disclosure {
  background: #fffbe6;
  border-left: 4px solid #f0c040;
  padding: 14px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: #7a6800;
  margin: 20px 0 30px;
}
.affiliate-disclosure strong { color: #5a4c00; }

/* ===== HEADER ===== */
#site-header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-svg { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.55rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; line-height: 1; }
.logo-tagline { font-size: 0.72rem; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }

/* ===== NAV ===== */
nav#main-nav ul { display: flex; gap: 6px; align-items: center; }
nav#main-nav ul li a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
nav#main-nav ul li a:hover, nav#main-nav ul li a.active { background: var(--primary); color: #fff; text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e7aba 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 18px; line-height: 1.2; }
.hero p { font-size: 1.2rem; max-width: 620px; margin: 0 auto 30px; opacity: 0.92; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FEATURED POSTS GRID ===== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.post-card-img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-body .tag { margin-bottom: 10px; }
.post-card-body h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card-body p { font-size: 0.93rem; color: var(--text-light); flex: 1; margin-bottom: 18px; }
.post-meta { font-size: 0.82rem; color: #888; margin-bottom: 8px; }

/* ===== SINGLE POST ===== */
.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.post-content { max-width: 780px; }
.post-content h2 { font-size: 1.5rem; color: var(--primary-dark); margin: 32px 0 12px; }
.post-content h3 { font-size: 1.2rem; color: var(--primary); margin: 24px 0 10px; }
.post-content p { margin-bottom: 18px; font-size: 1rem; color: var(--text); }
.post-content ul, .post-content ol { margin: 0 0 18px 22px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; font-size: 0.98rem; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--bg-light);
  font-style: italic;
  color: var(--text-light);
}
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 36px 0;
}
.cta-box h3 { font-size: 1.4rem; margin-bottom: 10px; }
.cta-box p { opacity: 0.9; margin-bottom: 20px; }
.btn-cta { background: var(--accent); color: #fff; padding: 14px 36px; font-size: 1.05rem; font-weight: 700; border-radius: var(--radius); display: inline-block; transition: background 0.2s; }
.btn-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ===== SIDEBAR ===== */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sidebar-widget { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.sidebar-widget h4 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text); }
.sidebar-widget ul li a:hover { color: var(--primary); }

/* ===== CATEGORIES SECTION ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.category-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: background 0.2s;
}
.category-card:hover { background: var(--primary); color: #fff; text-decoration: none; }
.category-card:hover span { color: #fff; }
.category-card .cat-icon { font-size: 2rem; margin-bottom: 10px; }
.category-card span { display: block; font-weight: 600; color: var(--text); font-size: 0.95rem; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--bg-alt);
  padding: 50px 0;
  text-align: center;
}
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}
.newsletter-form button { padding: 12px 24px; }

/* ===== ABOUT / CONTACT / PRIVACY ===== */
.page-hero {
  background: var(--bg-alt);
  padding: 50px 0 36px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.2rem; color: var(--primary-dark); }
.page-hero p { color: var(--text-light); font-size: 1.05rem; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; color: var(--primary-dark); margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; margin: 0 0 16px 22px; }
.prose ul li { margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { margin-bottom: 14px; }
.contact-info a { color: var(--primary); }
.contact-form-box input, .contact-form-box textarea, .contact-form-box select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.97rem;
  margin-bottom: 14px;
  font-family: inherit;
}
.contact-form-box textarea { height: 130px; resize: vertical; }
.contact-form-box button { width: 100%; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; font-size: 0.88rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== FOOTER ===== */
#site-footer {
  background: #0f2f47;
  color: #b0c4d8;
  padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-about .logo-name { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #8aaec8; font-size: 0.9rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.83rem;
  color: #607d92;
}
.footer-bottom a { color: #8aaec8; }

/* ===== ALL POSTS PAGE ===== */
.posts-list .post-card { flex-direction: row; }
.posts-list .post-card-img { width: 220px; height: 160px; flex-shrink: 0; }
@media (max-width: 600px) {
  .posts-list .post-card { flex-direction: column; }
  .posts-list .post-card-img { width: 100%; height: 200px; }
}

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: background 0.15s;
}
.pagination a:hover, .pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  nav#main-nav { display: none; width: 100%; }
  nav#main-nav.open { display: block; }
  nav#main-nav ul { flex-direction: column; gap: 0; }
  nav#main-nav ul li a { display: block; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .logo-name { font-size: 1.25rem; }
}
