/* =============================================
   Blog Article Page — PetikLaut
   Selaras dengan style-v2.css ocean theme
   Fonts: Playfair Display (display) + DM Sans (body)
============================================= */

/* ── Main layout ──────────────────────────── */
.blog-main {
  min-height: 100vh;
  /* background: transparent; */
  /* padding-top: 70px;  */
}

/* ── Blog Hero Header ─────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0e4f82 55%, #1a8fe3 100%);
  padding: 7rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26, 143, 227, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(91, 196, 245, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #f0f8ff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
}

/* Back link */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s, gap 0.2s;
}

.blog-back-link:hover {
  color: #5bc4f5;
  gap: 0.75rem;
}

/* Category badge */
.blog-category-badge {
  display: inline-block;
  background: rgba(91, 196, 245, 0.18);
  border: 1px solid rgba(91, 196, 245, 0.4);
  color: #5bc4f5;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

/* Blog hero title */
.blog-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* Blog hero description */
.blog-hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

/* Meta row */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'DM Sans', sans-serif;
}

.blog-meta-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Hero Image ───────────────────────────── */
.blog-hero-image-wrap {
  max-width: 900px;
  margin: -1.5rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.blog-hero-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
  box-shadow: 0 24px 64px -12px rgba(10, 37, 64, 0.35);
}

/* ── Article Wrapper ──────────────────────── */
.blog-article-wrapper {
  max-width: 800px;
  margin: 3.5rem auto 5rem;
  padding: 0 2rem;
}

/* ── Blog Content Typography ──────────────── */
.blog-content {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.85;
  color: #1f2937;
  font-size: 1.0625rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ocean-mid, #0e4f82);
  float: left;
  line-height: 0.85;
  margin-right: 0.15em;
  margin-top: 0.05em;
}

.blog-content strong {
  font-weight: 700;
  color: #111827;
}

.blog-content em {
  font-style: italic;
  color: #374151;
}

.blog-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--ocean-deep, #0a2540);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(14, 79, 130, 0.12);
}

.blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--ocean-mid, #0e4f82);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Figures & Images ─────────────────────── */
.blog-figure {
  margin: 2.5rem 0;
  text-align: center;
}

.blog-img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
  box-shadow: 0 12px 40px -8px rgba(10, 37, 64, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-img:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px -12px rgba(10, 37, 64, 0.28);
}

/* Photo caption / figcaption */
.blog-caption {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  padding: 0.5rem 1rem 0;
  border-top: 1px solid rgba(14, 79, 130, 0.1);
  position: relative;
}

.blog-caption::before {
  content: '📷 ';
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.6;
}


/* ── Tables ───────────────────────────────── */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}

.blog-table td,
.blog-table th {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(14, 79, 130, 0.1);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.blog-table tr:nth-child(even) td {
  background: rgba(208, 240, 253, 0.25);
}

.blog-table tr:first-child td {
  background: rgba(14, 79, 130, 0.06);
  font-weight: 600;
  color: #0a2540;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .blog-hero {
    padding: 5rem 1.25rem 3rem;
  }

  .blog-hero-image-wrap {
    padding: 0 1.25rem;
    margin-top: -1rem;
  }

  .blog-hero-image {
    max-height: 260px;
    border-radius: 0.875rem;
  }

  .blog-article-wrapper {
    padding: 0 1.25rem;
    margin-top: 2.5rem;
  }

  .blog-content p:first-of-type::first-letter {
    font-size: 2.75rem;
  }

  .blog-meta {
    gap: 0.75rem;
  }
}

/* ============================================
   HOMEPAGE BLOG SECTION
   (section#blog di index.html)
============================================= */
#blog {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #f0f8ff 0%, #d0f0fd 40%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}

#blog::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120px;
  background: #f0f8ff;
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.blog-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog section header */
.blog-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Blog cards grid */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* Blog card */
.blog-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(14, 79, 130, 0.07);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -12px rgba(10, 37, 64, 0.18);
}

/* Card thumbnail */
.blog-card-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

/* Card category badge overlay */
.blog-card-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #5bc4f5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(91, 196, 245, 0.3);
}

/* Card body */
.blog-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.3;
  margin: 0;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(14, 79, 130, 0.08);
  margin-top: auto;
}

.blog-card-read-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0e4f82;
  transition: gap 0.2s, color 0.2s;
}

.blog-card:hover .blog-card-cta {
  gap: 0.6rem;
  color: #1a8fe3;
}

/* Blog section CTA button */
.blog-section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Responsive Blog Grid ─────────────────── */
@media (max-width: 768px) {
  #blog {
    padding: 4rem 1.25rem;
  }

  .blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-thumb {
    height: 200px;
  }
}