:root {
  --primary: #274472;
  --background: #F6F8FB;
  --gold: #D4AF37;
  --text: #333;
  --primary-font: "Gabarito", sans-serif;
  --quran-font: "Katibeh", serif;
}

.quran {
  font-family: var(--quran-font);
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
  margin: 40px 0;
}
article {
  margin-bottom: 20px;
}

section {
  margin: 2rem 0;
}

.header {
  margin: 2rem 0;
  background-color: var(--background);
  border: none;
}

article p {
  text-align: justify;
}

section p, li {
  text-align: justify;
}

.download-button {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.download-button:hover {
  background-color: var(--text);
}


.blog-article .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.6rem;
  line-height: 1.7;
  background: #fff;
  color: var(--text);
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.blog-article h1 {
  font-size: 2em;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.blog-article .meta {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: left;
}

.blog-article h2 {
  margin-top: 2rem;
  color: var(--primary);
  margin: 10px 0;
  line-height: 1.2;
}

.blog-article h3 {
  margin: 25px 0 5px 0;
}

.blog-article .closing {
  margin-top: 2rem;
  font-weight: bold;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb span {
  color: var(--text);
}

section ul, ol {
  margin: 10px;
}

blockquote {
  text-align: justify;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1150px;
  margin: 50px 10px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-content h3 a {
  text-decoration: none;
  color: inherit;
}

.card-content p {
  color: var(--text);
  font-size: 0.95rem;
}

.related-posts {
  max-width: 800px;
  margin: 50px auto;
  padding: 0;
  line-height: 1.7;
  background: #fff;
  color: var(--text);
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
/* figure */
figure {
  margin: 25px 0;
}

.featured-img {
  width: 100%;
  border-radius: 8px;
  margin: 0;
}

figcaption {
  text-align: center;
}

/* Pre */
pre {
  background: #f5f5f5;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 1em;
  text-align: left;
}

/* Warna highlight */
.highlight {
  background-color: var(--gold);
  font-weight: bold;
  padding: 0 2px;
  border-radius: 3px;
}

/* Tombol Back to Top */
#backToTop {
  position: fixed;
  bottom: 30px; /* Jarak dari bawah layar */
  right: 30px;  /* Jarak dari kanan layar */
  z-index: 999; /* Pastikan muncul di atas elemen lain */
}

#backToTop {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  font-size: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#backToTop {
  background-color: #555;
}

#backToTop {
  opacity: 0;
  pointer-events: none;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Style untuk tabel anggaran pernikahan */
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid #ddd;
}

.blog-article table thead {
  background-color: #f4f4f4;
}

.blog-article table th,
.blog-article table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.blog-article table th {
  font-weight: bold;
  color: #333;
}

.blog-article table tr:hover {
  background-color: #f9f9f9;
}

.blog-article table tbody tr:last-child th,
.blog-article table tbody tr:last-child td {
  font-weight: bold;
  background-color: #f0f8ff;
  color: #000;
}


.btn-primary {
  background-color: rgba(0,0,0,0.1);
  color: var(--text);
  padding: 6px;
  text-decoration: none;
  border-left: 2px solid var(--gold);
}


/* Responsif untuk layar kecil */
@media (max-width: 600px) {
  .blog-article table,
  .blog-article table thead,
  .blog-article table tbody,
  .blog-article table th,
  .blog-article table td,
  .blog-article table tr {
    display: block;
    width: 100%;
  }

  .blog-article table thead {
    display: none;
  }

  .blog-article table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
  }

  .blog-article table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .blog-article table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    text-align: left;
    font-weight: bold;
    color: #555;
  }
}

 /* Responsive */
 @media (max-width: 768px) {
    .blog-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 0;
      margin: 0;
    }
    
  }