/* =====================================================
   Indo Sea Shell - Blog Style
   File: blog-style.css
   Notes:
   - Navbar styles are handled by navbar.php with iss-* classes.
   - This file styles blog.php, blog-detail.php, and shared footer.
===================================================== */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --text: #171717;
  --muted: #6a6660;
  --line: rgba(0,0,0,.08);
  --brand: #9f0d15;
  --brand-2: #c3181f;
  --gold: #c9a14a;
  --gold-2: #ead3a1;
  --shadow: 0 24px 60px rgba(18,18,18,.08);
  --shadow-2: 0 12px 30px rgba(18,18,18,.10);
  --radius: 28px;
  --container: min(100% - 32px, 1360px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  min-height: 56px;
  border-radius: 999px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(159,13,21,.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(159,13,21,.28);
}

.btn-ghost {
  background: #ffffff;
  color: #171717;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.04);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(159,13,21,.22);
  color: var(--brand);
}

/* =====================================================
   BLOG HERO - MATCH ABOUT.PHP HERO SIZE
===================================================== */

.blog-hero {
  position: relative !important;
  min-height: 520px !important;
  height: 520px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  background:
    linear-gradient(90deg, rgba(22,18,12,.62), rgba(22,18,12,.30) 52%, rgba(22,18,12,.42)),
    url("blog/images/blog-bg.jpg") center center / cover no-repeat !important;
  color: #ffffff !important;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(90deg, rgba(33,21,8,.26), rgba(33,21,8,.08) 58%, rgba(33,21,8,.20));
  z-index: 1;
  pointer-events: none;
}

.blog-hero .container {
  width: min(100% - 32px, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.blog-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
  color: #ead3a1 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .34em !important;
  text-transform: uppercase !important;
}

.blog-kicker::before {
  content: "" !important;
  width: 42px !important;
  height: 1px !important;
  background: currentColor !important;
  display: inline-block !important;
}

.blog-hero h1 {
  margin: 0 0 22px !important;
  max-width: 900px !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(56px, 5.3vw, 86px) !important;
  line-height: .95 !important;
  letter-spacing: -0.04em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-wrap: balance;
}

.blog-hero p {
  margin: 0 0 30px !important;
  max-width: 760px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  letter-spacing: .01em !important;
  color: rgba(255,255,255,.92) !important;
}

.blog-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

/* =====================================================
   BLOG LIST SECTION
===================================================== */

.blog-section {
  background: #ffffff;
  padding: 96px 0 110px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.055);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0,0,0,.11);
  border-color: rgba(159,13,21,.14);
}

.blog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f3f0ea;
  transition: filter .32s ease, transform .45s ease;
}

.blog-card:hover .blog-thumb {
  filter: brightness(.96);
}

.blog-body {
  padding: 26px;
}

.blog-category {
  display: block;
  margin-bottom: 13px;
  color: #9c8b74;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.blog-body h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: #171717;
}

.blog-body p {
  margin: 0 0 20px;
  color: #5f5850;
  font-size: 15px;
  line-height: 1.75;
}

.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 22px;
  color: #77716a;
  font-size: 13px;
  font-weight: 700;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-meta i {
  color: #9f0d15;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  transition: color .28s ease;
}

.read-link i {
  transition: transform .28s ease;
}

.read-link:hover {
  color: #c9a14a;
}

.read-link:hover i {
  transform: translateX(5px);
}

/* =====================================================
   BLOG DETAIL PAGE
   Supports blog-detail.php if it uses these classes.
===================================================== */

.article-hero {
  background: linear-gradient(180deg, #fffaf2, #ffffff);
  padding: 92px 0 64px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.article-hero .container {
  max-width: 1040px;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.article-kicker::before {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.article-hero h1 {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 5.6vw, 90px);
  line-height: .95;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: #171717;
  text-wrap: balance;
}

.article-hero p,
.article-excerpt {
  margin: 0;
  max-width: 820px;
  color: #5f5850;
  font-size: 18px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
  color: #77716a;
  font-size: 14px;
  font-weight: 700;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-cover {
  width: var(--container);
  max-width: 1180px;
  margin: 56px auto 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3f0ea;
}

.article-cover img,
.article-cover-image {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.article-section,
.article-content-section {
  background: #ffffff;
  padding: 86px 0 100px;
}

.article-content {
  max-width: 880px;
  margin: 0 auto;
  color: #2e2b27;
  font-size: 18px;
  line-height: 1.9;
}

.article-content p {
  margin: 0 0 26px;
}

.article-content h2 {
  margin: 46px 0 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #171717;
}

.article-content h3 {
  margin: 34px 0 14px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #171717;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px 22px;
  padding: 0;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content blockquote {
  margin: 42px 0;
  padding: 30px 34px;
  border-left: 4px solid var(--brand);
  border-radius: 22px;
  background: #fff8ed;
  color: #3b332b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.35;
}

.article-back {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 900;
}

.article-back i {
  transition: transform .28s ease;
}

.article-back:hover i {
  transform: translateX(-5px);
}

/* =====================================================
   MODERN DARK FOOTER
===================================================== */

.modern-dark-footer {
  background: #800000;
  color: #ffffff;
  padding: 72px 0 28px;
  font-family: Inter, system-ui, sans-serif;
}

.dark-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2.2fr;
  gap: 64px;
  align-items: start;
}

.dark-footer-col,
.dark-footer-newsletter {
  display: flex;
  flex-direction: column;
}

.dark-footer-col h4,
.dark-footer-newsletter h4 {
  margin: 0 0 26px;
  color: #ead3a1;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.dark-footer-col a {
  color: rgba(255,255,255,.80);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .25s ease, transform .25s ease;
}

.dark-footer-col a:hover {
  color: #ead3a1;
  transform: translateX(4px);
}

.dark-footer-newsletter p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255,255,255,.72);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 500;
}

.dark-newsletter-form {
  display: grid;
  grid-template-columns: 1fr 220px;
  max-width: 640px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.dark-newsletter-form input {
  height: 64px;
  border: none;
  outline: none;
  padding: 0 24px;
  background: #fffaf2;
  color: #171717;
  font-size: 16px;
}

.dark-newsletter-form input::placeholder {
  color: #7c7c7c;
}

.dark-newsletter-form button {
  height: 64px;
  border: none;
  background: #9f0d15;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .25s ease;
}

.dark-newsletter-form button:hover {
  background: #7f0d13;
}

.dark-footer-divider {
  height: 1px;
  background: rgba(255,255,255,.14);
  margin: 76px 0 40px;
}

.dark-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dark-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.dark-footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 5px;
}

.dark-footer-brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.88);
}

.dark-footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dark-footer-social a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #b98a2f;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 18px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.dark-footer-social a:hover {
  background: #ead3a1;
  color: #800000;
  transform: translateY(-4px);
}

.dark-footer-copy {
  margin-top: 26px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  letter-spacing: .02em;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1180px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dark-footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
  }

  .dark-footer-newsletter {
    grid-column: 1 / -1;
  }

  .dark-newsletter-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1360px);
  }

  .blog-hero {
    min-height: 460px !important;
    height: auto !important;
    padding: 72px 0 !important;
    background-position: center center !important;
  }

  .blog-hero .container {
    width: min(100% - 24px, 1360px) !important;
    padding: 0 !important;
  }

  .blog-kicker {
    gap: 10px !important;
    margin-bottom: 16px !important;
    font-size: 11px !important;
    letter-spacing: .24em !important;
  }

  .blog-kicker::before {
    width: 28px !important;
  }

  .blog-hero h1 {
    max-width: 100% !important;
    font-size: 44px !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
  }

  .blog-hero p {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .blog-actions {
    gap: 10px !important;
  }

  .btn {
    min-height: 50px;
    padding: 0 20px;
    font-size: 14px;
  }

  .blog-section {
    padding: 64px 0 76px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-body {
    padding: 21px;
  }

  .blog-body h2 {
    font-size: 21px;
  }

  .article-hero {
    padding: 66px 0 46px;
  }

  .article-hero h1 {
    font-size: clamp(42px, 11vw, 60px);
    line-height: .98;
  }

  .article-hero p,
  .article-excerpt {
    font-size: 15.5px;
  }

  .article-cover {
    width: min(100% - 24px, 1180px);
    margin-top: 34px;
    border-radius: 24px;
  }

  .article-cover img,
  .article-cover-image {
    min-height: 280px;
  }

  .article-section,
  .article-content-section {
    padding: 58px 0 70px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.82;
  }

  .article-content blockquote {
    padding: 24px;
    font-size: 24px;
  }

  .modern-dark-footer {
    padding: 54px 0 28px;
  }

  .dark-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dark-footer-col h4,
  .dark-footer-newsletter h4 {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .dark-footer-col a {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .dark-footer-newsletter p {
    font-size: 18px;
    line-height: 1.55;
  }

  .dark-newsletter-form {
    grid-template-columns: 1fr;
  }

  .dark-newsletter-form input,
  .dark-newsletter-form button {
    height: 54px;
  }

  .dark-footer-divider {
    margin: 44px 0 30px;
  }

  .dark-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .dark-footer-brand span {
    font-size: 38px;
  }

  .dark-footer-social {
    flex-wrap: wrap;
    gap: 10px;
  }

  .dark-footer-social a {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .dark-footer-copy {
    text-align: left;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .blog-hero h1 {
    font-size: 38px !important;
  }

  .btn {
    width: 100%;
  }
}

/* =====================================================
   BLOG HERO HEIGHT - MATCH ABOUT.PHP HERO
===================================================== */

.blog-hero {
  position: relative !important;
  min-height: 620px !important;
  height: 620px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  background:
    linear-gradient(
      90deg,
      rgba(20, 16, 10, .68),
      rgba(20, 16, 10, .36) 52%,
      rgba(20, 16, 10, .44)
    ),
    url("blog/images/blog-bg.jpg") center center / cover no-repeat !important;
  color: #ffffff !important;
}

.blog-hero .container {
  width: min(100% - 32px, 1360px) !important;
  max-width: 1360px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.blog-hero h1 {
  max-width: 980px !important;
  margin: 0 0 24px !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(58px, 5.8vw, 96px) !important;
  line-height: .92 !important;
  letter-spacing: -0.045em !important;
  color: #ffffff !important;
}

.blog-hero p {
  max-width: 820px !important;
  margin: 0 0 32px !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

.blog-kicker {
  color: #ead3a1 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .blog-hero {
    min-height: 520px !important;
    height: auto !important;
    padding: 82px 0 !important;
  }

  .blog-hero h1 {
    font-size: 44px !important;
    line-height: 1 !important;
    max-width: 100% !important;
  }

  .blog-hero p {
    font-size: 15px !important;
    max-width: 100% !important;
  }
}

/* =====================================================
   BLOG HERO HEIGHT FIX - SAME AS ABOUT.PHP
===================================================== */

.blog-hero {
  min-height: 520px !important;
  height: 520px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  background:
    linear-gradient(
      90deg,
      rgba(20, 16, 10, .66),
      rgba(20, 16, 10, .34) 52%,
      rgba(20, 16, 10, .44)
    ),
    url("blog/images/blog-bg.jpg") center center / cover no-repeat !important;
}

.blog-hero .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.blog-hero h1 {
  max-width: 980px !important;
  font-size: clamp(52px, 5.4vw, 88px) !important;
  line-height: .94 !important;
  margin-bottom: 24px !important;
}

.blog-hero p {
  max-width: 820px !important;
  margin-bottom: 30px !important;
}

/* Kurangi jarak putih setelah hero */
.blog-hero + .blog-section {
  padding-top: 84px !important;
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 460px !important;
    height: auto !important;
    padding: 72px 0 !important;
  }

  .blog-hero h1 {
    font-size: 42px !important;
    line-height: 1.02 !important;
  }
}

/* =====================================================
   BLOG DETAIL WIDTH - WIDER ARTICLE CONTENT
===================================================== */

.blog-detail-section,
.detail-section,
.article-detail-section {
  background: #fbfaf7 !important;
}

.blog-detail-container,
.detail-container,
.article-container,
.post-detail-container {
  width: min(100% - 32px, 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

/* Wrapper utama artikel */
.blog-detail-content,
.detail-content,
.article-content,
.post-content {
  max-width: 980px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

/* Kalau content sekarang terlalu sempit karena selector khusus */
.blog-detail-main,
.article-main,
.post-main {
  max-width: 980px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

/* Heading dan body text */
.blog-detail-content h1,
.article-content h1,
.post-content h1 {
  max-width: 980px !important;
}

.blog-detail-content h2,
.article-content h2,
.post-content h2 {
  max-width: 980px !important;
}

.blog-detail-content p,
.article-content p,
.post-content p {
  max-width: 980px !important;
}

/* Kalau ada gambar artikel */
.blog-detail-content img,
.article-content img,
.post-content img {
  width: 100% !important;
  max-width: 980px !important;
  height: auto !important;
  border-radius: 24px !important;
}

/* Mobile */
@media (max-width: 768px) {
  .blog-detail-container,
  .detail-container,
  .article-container,
  .post-detail-container {
    width: min(100% - 24px, 1180px) !important;
  }

  .blog-detail-content,
  .detail-content,
  .article-content,
  .post-content,
  .blog-detail-main,
  .article-main,
  .post-main {
    max-width: 100% !important;
  }
}