/* ========================================
   DPC — Blog Post Detail Page
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --primary: #0A2818;
  --primary-light: #155A30;
  --primary-hero: #052B13;
  --accent: #009E49;
  --accent-hover: #006B32;
  --cream-bg: #F5FAF7;
  --white: #ffffff;
  --text-dark: #061410;
  --text-gray: #4A5D52;
  --font: 'Inter', sans-serif;
  --radius-pill: 100px;
  --radius-card: 24px;
  --radius-section: 60px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* ---------- Utilities & Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-yellow, #FECB00); color: var(--primary, #0A2818); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 12px 20px 12px 24px;
  border-radius: var(--radius-pill); border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: var(--accent-yellow-hover, #C9A200); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(254,203,0,0.35); }
.btn-primary .arrow-circle {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--primary); color: var(--white); font-size: 16px;
}
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid #c0c8d8; color: var(--primary); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 14px 28px; border-radius: var(--radius-pill);
  background: transparent; cursor: pointer; transition: var(--transition);
}
.btn-outline-dark:hover { border-color: var(--primary); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid rgba(255,255,255,0.4); color: var(--white); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 14px 28px; border-radius: var(--radius-pill);
  background: transparent; cursor: pointer; transition: var(--transition);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Header / Navbar ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; padding: 30px 40px; }
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: var(--radius-pill);
  padding: 12px 12px 12px 32px; max-width: 1200px; margin: 0 auto; box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.logo { font-size: 18px; font-weight: 900; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-dark); letter-spacing: 0.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 140px 40px 0;
  max-width: 1200px;
  margin: 0 auto 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-gray);
}
.breadcrumb a {
  color: var(--primary);
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  color: var(--text-gray);
  opacity: 0.5;
}

/* ---------- Blog Layout Grid ---------- */
.blog-wrapper {
  padding: 20px 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ---------- Main Left Column (Hero + Rich Text) ---------- */
.blog-hero {
  position: relative;
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(5,43,19,0.12);
  margin-bottom: 60px;
  aspect-ratio: 16 / 10;
}

.blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0; z-index: 1;
}

.blog-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(5,43,19,0.95) 0%, rgba(5,43,19,0.1) 60%);
  z-index: 2;
}

.blog-hero-text {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 50px;
  z-index: 3;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-meta .tag {
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-meta .date {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
}

.blog-hero-text h1 {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.blog-hero-text p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  max-width: 90%;
  line-height: 1.7;
}

/* Rich Text Formatting */
.rich-text {
  color: var(--text-gray);
  font-size: 17px;
  line-height: 1.8;
}

.rich-text h2 {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.15;
  margin: 60px 0 30px;
  letter-spacing: -0.5px;
}

.rich-text h2:first-child {
  margin-top: 0;
}

.rich-text p {
  margin-bottom: 24px;
}

.rich-text ul {
  padding-left: 20px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.rich-text li {
  margin-bottom: 12px;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}

.rich-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Blockquote Style */
.custom-quote {
  background: linear-gradient(135deg, var(--primary-hero) 0%, #0D3A1F 100%);
  border-radius: 40px;
  padding: 60px;
  margin: 60px 0;
  box-shadow: 0 20px 40px rgba(5,43,19,0.15);
  position: relative;
  overflow: hidden;
}

.custom-quote::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
}

.custom-quote p {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(26,35,56,0.1);
}

.share-bar span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.share-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 158, 73, 0.06);
  color: var(--primary);
  transition: var(--transition);
}
.share-bar a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.share-bar a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Sidebar (Right Column) ---------- */
.sticky-sidebar {
  position: sticky;
  top: 120px;
}

.author-block {
  margin-bottom: 40px;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  border: 3px solid rgba(212,168,67,0.3);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-block h3 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.author-block p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.author-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(26,35,56,0.1);
}

.author-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 158, 73, 0.06);
  color: var(--text-dark);
  transition: var(--transition);
}
.author-socials a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.author-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Sidebar Recent Posts */
.sidebar-recent {
  padding-top: 40px;
}

.sidebar-recent-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 24px;
}

.recent-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(26,35,56,0.1);
}
.recent-item:first-of-type { padding-top: 0; }
.recent-item:last-child { border-bottom: none; }

.recent-item h4 {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.2s ease;
  cursor: pointer;
}
.recent-item h4:hover { color: var(--accent); }

.recent-item span {
  font-size: 13px;
  color: var(--text-gray);
}

/* Sidebar Tags */
.sidebar-tags {
  padding-top: 40px;
  border-top: 1px solid rgba(26,35,56,0.1);
  margin-top: 10px;
}

.sidebar-tags-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 16px;
}

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

.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 158, 73, 0.06);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.tag-pill:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Related Articles Section ---------- */
.related-section {
  padding: 80px 40px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.related-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px;
}
.related-header h2 {
  font-size: clamp(40px, 5vw, 56px); font-weight: 900; text-transform: uppercase; color: var(--primary);
  letter-spacing: -1.5px;
}

.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.article-card {
  background: var(--white);
  border-radius: 30px; overflow: hidden; box-shadow: 0 10px 40px rgba(5,43,19,0.06);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(5,43,19,0.12);
}
.article-img { height: 240px; position: relative; overflow: hidden; }
.article-img img { width: 100%; height: 100%; transition: transform 0.4s ease; }
.article-card:hover .article-img img { transform: scale(1.05); }

.article-tag {
  position: absolute; top: 20px; right: 20px; display: inline-block; padding: 8px 16px;
  background: rgba(5,43,19,0.9); color: var(--white); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px; border-radius: 30px; z-index: 2;
}
.article-info { padding: 30px; }
.article-info h3 {
  font-size: 20px; font-weight: 800; color: var(--primary); text-transform: uppercase;
  line-height: 1.3; margin-bottom: 20px; transition: var(--transition);
}
.article-card:hover h3 { color: var(--accent); }
.article-meta { font-size: 13px; font-weight: 700; color: var(--text-gray); text-transform: uppercase; }

/* ---------- CTA Banner & Footer ---------- */
.cta-banner {
  background: linear-gradient(135deg, #071A0E 0%, #0D3A1F 100%);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.cta-content { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.cta-content h2 { font-size: 48px; font-weight: 900; text-transform: uppercase; color: var(--white); line-height: 1.15; max-width: 520px; }
.cta-buttons { display: flex; align-items: center; gap: 16px; }

.footer { background: linear-gradient(135deg, #071A0E 0%, #0D3A1F 100%); padding: 60px 40px 40px; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 60px; }
.footer-brand .footer-logo { font-size: 18px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 30px; max-width: 280px; }
.newsletter-form { display: flex; align-items: center; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2); border-radius: var(--radius-pill); padding: 8px 8px 8px 24px; max-width: 340px; }
.newsletter-form input { flex: 1; background: transparent; border: none; color: var(--white); font-family: var(--font); font-size: 14px; outline: none; }
.newsletter-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; flex-shrink: 0; transition: var(--transition); }
.newsletter-btn:hover { background: var(--accent-hover); }
.newsletter-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-nav h4, .footer-social h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; color: var(--white); }
.footer-nav ul { display: flex; flex-direction: column; gap: 14px; }
.footer-nav ul li a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-nav ul li a:hover { color: var(--white); }
.footer-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.footer-nav-links li a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-nav-links li a:hover { color: var(--white); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 120px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: rgba(212,168,67,0.25); border-radius: 14px; cursor: pointer; transition: var(--transition); }
.social-icon:hover { background: var(--accent); transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; fill: var(--white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 13px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header { padding: 20px 20px; width: 100%; box-sizing: border-box; }
  .navbar { padding: 12px 16px; width: 100%; box-sizing: border-box; flex-wrap: wrap; }
  .blog-grid { grid-template-columns: 1fr; gap: 60px; }
  .sticky-sidebar { position: static; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .header { position: fixed; top: 0; left: 0; right: 0; padding: 8px 8px; width: 100vw; box-sizing: border-box; z-index: 100; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); }
  .navbar { padding: 8px 12px; width: calc(100vw - 16px); max-width: none; box-sizing: border-box; flex-wrap: nowrap; background: rgba(255, 255, 255, 0.98); border-radius: 8px; margin: 0; justify-content: space-between; }
  .logo { font-size: 16px; flex-shrink: 0; min-width: auto; }
  .logo img { max-height: 32px; width: auto; }
  .breadcrumb { padding: 120px 20px 0; font-size: 12px; }
  .blog-wrapper { padding: 20px 20px 80px; }
  .blog-hero-text h1 { font-size: 28px; }
  .blog-hero-text { padding: 30px; }
  .rich-text h2 { font-size: 26px; }
  .related-header h2, .cta-content h2 { font-size: 36px; }
  .related-header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .articles-grid { grid-template-columns: 1fr; }
  .custom-quote p { font-size: 18px; }
  .custom-quote { padding: 40px; }
  .cta-content { flex-direction: column; gap: 20px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .share-bar { flex-wrap: wrap; }
}
