/* ============================================
   Related Posts & Footer
   ============================================ */
.related-section {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 80px 24px;
}

.related-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.related-titles {
  max-width: 50%;
}

.related-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--whk-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gray-900);
  line-height: 1.2;
}

.inline-search-form {
  position: relative;
  width: 300px;
}

.inline-search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 14px;
  background: var(--gray-50);
  transition: all 0.2s;
}

.inline-search-input:focus {
  outline: none;
  background: white;
  border-color: var(--whk-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.inline-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--whk-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.inline-search-btn:hover {
  transform: scale(1.05);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--gray-100);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--whk-blue);
}

.related-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

/* Related Card Fallback - Professional Design */
.related-card-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  /* Hidden by default, shown by JS */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  color: #64748b;
}

.related-card-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
  stroke: #94a3b8;
}

.related-card-placeholder::after {
  content: 'Artikel';
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.related-card-content {
  padding: 24px;
}

.related-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.related-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.cta-section {
  background: var(--whk-navy);
  padding: 80px 24px;
  text-align: center;
  color: white;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  color: var(--gray-300);
  margin-bottom: 32px;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: white;
  color: var(--whk-navy);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #0d1321;
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: linear-gradient(135deg, #4264D1, #6CE2FF);
  border-color: transparent;
  color: #0d1321;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-column h5,
.footer-column .footer-column-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  line-height: 1.6;
}

.footer-links a:hover {
  color: #6CE2FF;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image {
    max-height: 300px;
  }

  .hero-image img {
    max-height: 300px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-left {
    display: none;
  }

  .related-header {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .related-titles {
    max-width: 100%;
  }

  .inline-search-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  /* Hero Section Mobile */
  .hero {
    padding-top: 72px;
  }

  .hero-container {
    padding: 24px 16px 24px;
    gap: 24px;
  }

  .article-title {
    font-size: clamp(28px, 5vw, 32px);
    line-height: 1.2;
  }

  .article-excerpt {
    font-size: 16px;
  }

  /* Article Meta Mobile */
  .article-meta {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
  }

  .meta-divider {
    display: none;
  }

  .meta-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .author {
    flex: 1 1 100%;
    margin-bottom: 8px;
  }

  /* Content Wrapper Mobile */
  .content-wrapper {
    padding: 0 16px 48px;
    gap: 32px;
  }

  /* Prose Mobile */
  .prose {
    font-size: 17px;
    line-height: 1.7;
  }

  .prose h2 {
    font-size: 28px;
    margin: 40px 0 20px;
  }

  .prose h3 {
    font-size: 22px;
    margin: 32px 0 14px;
  }

  .prose p {
    margin-bottom: 20px;
  }

  .prose img {
    margin: 24px 0;
    border-radius: var(--radius-md);
  }

  .prose blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    font-size: 18px;
  }

  /* Breadcrumb Mobile */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .breadcrumb-current {
    max-width: 150px;
  }

  /* Related Section Mobile */
  .related-section {
    padding: 48px 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .related-titles {
    max-width: 100%;
  }

  .related-title {
    font-size: 28px;
  }

  .inline-search-form {
    width: 100%;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  /* Share Section Mobile */
  .share-section-bottom {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  /* Author Box Mobile */
  .author-box {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    text-align: center;
  }

  .author-box-avatar {
    margin: 0 auto;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 48px 16px;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-text {
    font-size: 16px;
  }

  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }
}

