/* === RUANGSANTRI THEME EXTENDED CSS === */

/* Card shadow effect (desktop & mobile) */
/* Card shadow effect (desktop & mobile) */
.card.border-0,
.card.border-0.h-100.overflow-hidden,
.masonry-card-featured,
.masonry-card-side {
  box-shadow: 0 1px 2.5px #0d6efd0a;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.masonry-card-featured {
  border-radius: 12px;
  border: 1px solid #f1f3f4;
}
.masonry-card-side {
  border-radius: 8px;
  border: 1px solid #f1f3f4;
}
.position-relative.overflow-hidden.height-400 {
  height: 400px;
}
.position-relative.overflow-hidden.height-180 {
  height: 180px !important;
}
.object-cover {
  object-fit: cover !important;
}
.rounded-3 {
  border-radius: 1rem !important;
}
.rounded-2 {
  border-radius: 0.5rem !important;
}
.rounded-circle {
  border-radius: 50% !important;
}
.border-f1 {
  border: 1px solid #f1f3f4 !important;
}
.border-e4 {
  border: 1.2px solid #e4eaf1 !important;
}
.border-b1 {
  border: 1.1px solid #0d6efd !important;
}
.border-b2 {
  border: 2.2px solid #0d6efd !important;
}
.bg-light {
  background: #f8f9fa !important;
}
.bg-primary {
  background: rgba(13, 110, 253, 0.1) !important;
  color: #0d6efd !important;
}
.badge.bg-primary {
  border: 1.1px solid #0d6efd !important;
  font-weight: 600;
}
.badge.bg-primary:focus,
.badge.bg-primary:active {
  outline: none;
  border: 1.5px solid #0d6efd !important;
}
.badge.bg-light {
  font-size: 0.85rem !important;
  padding: 0.22em 0.85em 0.22em 0.7em !important;
}
.badge.bg-light.text-dark.mb-1 {
  background: rgba(13, 110, 253, 0.07) !important;
  color: #0d6efd !important;
}
.badge.bg-light.text-dark.mb-1:focus,
.badge.bg-light.text-dark.mb-1:active {
  outline: none;
  border: 2px solid #0d6efd !important;
}
.ruang-author-box {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px #0d6efd0a;
}
.ruang-author-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid #e4eaf1;
}
.ruang-author-name {
  font-size: 1.13rem;
  font-weight: 700;
}
.ruang-author-bio {
  font-size: 0.97rem;
  color: #6c757d;
  line-height: 1.5;
  margin-top: 0.1rem;
  max-width: 420px;
}
.ruang-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  transition: all 0.16s;
  box-shadow: 0 1px 6px #0d6efd0a;
  padding: 0.36em 1.1em 0.36em 1em;
  background: #fff;
  min-width: 40px;
  min-height: 36px;
  line-height: 1.1;
  margin-bottom: 0;
}

/* Additional styles for responsive design */
@media (max-width: 575.98px) {
  .ruang-share-btn {
    font-size: 0.93rem;
    padding: 0.28em 0.7em 0.28em 0.7em;
    min-width: 34px;
    min-height: 32px;
    margin-bottom: 0.3rem;
  }
  .ruang-share-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}
.col-lg-4,
.col-lg-4 .bg-white,
.col-lg-4 .p-4,
.col-lg-4 .mb-4 {
  font-size: 0.97rem;
}
.sidebar-article-title {
  font-size: 0.97rem;
  line-height: 1.35;
  margin-bottom: 0.3rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7em;
  max-height: 2.7em;
}
:root {
  --navbar-height: 72px;
}
@media (max-width: 991.98px) {
  :root {
    --navbar-height: 60px;
  }
}
.ruang-sticky-sidebar {
  top: calc(var(--navbar-height) + 18px) !important;
}
.meta-modern {
  color: #222;
  font-size: 0.83rem;
  opacity: 0.92;
  font-weight: 500;
  gap: 0.32rem;
  background: rgba(13, 110, 253, 0.06);
  border-radius: 2rem;
  padding: 0.18em 0.8em 0.18em 0.6em;
  box-shadow: 0 1px 8px #0d6efd0a;
  transition: background 0.18s;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.meta-modern .meta-date {
  letter-spacing: 0.01em;
  font-size: 0.78rem;
  color: #0d6efd;
  font-weight: 600;
}
.meta-modern .meta-icon {
  width: 2em;
  height: 2em;
  background: #eaf1ff;
  box-shadow: 0 1px 4px #0d6efd11;
  margin-right: 0.5em;
}
@media (max-width: 575.98px) {
  .meta-modern {
    font-size: 0.79rem;
    gap: 0.18rem;
    padding: 0.16em 0.6em 0.16em 0.4em;
  }
  .meta-modern .meta-date {
    font-size: 0.72rem;
  }
  .meta-modern .meta-icon {
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.3em;
  }
  .meta-modern svg {
    width: 14px;
    height: 14px;
    margin-right: 4px !important;
  }
}
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c3e50;
  font-family: "Archivo", Arial, "Segoe UI", sans-serif;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
.article-content blockquote {
  border-left: 4px solid #007bff;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.375rem;
}
@media (max-width: 991.98px) {
  .sticky-top,
  .ruang-sticky-sidebar {
    position: static !important;
    top: auto !important;
  }
}
@media (max-width: 575.98px) {
  .p-4 {
    padding: 1rem !important;
  }
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  .mb-5 {
    margin-bottom: 1.2rem !important;
  }
  .mt-5,
  .pt-5 {
    margin-top: 1.2rem !important;
    padding-top: 1.2rem !important;
  }
  .article-content {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}
.sidebar-article-title ~ small.text-muted,
.d-flex.flex-column.gap-3 small.text-muted {
  font-size: 0.81rem !important;
}
.card.border-0 {
  border: 1px solid #f1f3f4;
  transition: border-color 0.25s, box-shadow 0.25s;
}
/* No hover/focus shadow or border effect for masonry cards */
@media (max-width: 575.98px) {
  .container.py-5 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .row.mb-4 {
    margin-bottom: 1rem !important;
  }
  .card.border-0 {
    min-width: 0;
    border-radius: 6px;
  }
  .card-body.p-3 {
    padding: 1rem !important;
  }
  .badge.bg-light.text-dark.mb-2 {
    font-size: 0.7rem !important;
    padding: 0.3em 0.7em !important;
  }
  .h3,
  h2.fw-bold {
    font-size: 1.25rem !important;
  }
  .h6.fw-bold {
    font-size: 1rem !important;
  }
  .modern-pagination {
    gap: 0.25rem;
  }
  .modern-page-link {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.95rem;
  }
  .row.g-4 > [class^="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .position-relative.overflow-hidden[style*="height: 200px;"] {
    height: 140px !important;
  }
}

.modern-pagination {
  gap: 0.5rem;
  padding: 0;
}
.modern-pagination li {
  list-style: none;
}
.modern-page-link {
  display: inline-block;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  color: #0d6efd;
  border: 1.5px solid #e3e6ee;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px #0d6efd09;
  text-decoration: none;
  margin: 0 2px;
  position: relative;
}
.modern-page-link:hover,
.modern-page-link:focus {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  box-shadow: 0 2px 12px #0d6efd22;
  text-decoration: none;
}
.modern-page-link.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  box-shadow: 0 2px 12px #0d6efd22;
  cursor: default;
}
.modern-page-link.disabled {
  background: #f8f9fa;
  color: #b0b8c9;
  border-color: #e3e6ee;
  cursor: not-allowed;
  pointer-events: none;
}

/* === NAVBAR STYLES === */
.ruang-navbar-blur {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 20, 0.92) 0%,
    rgba(20, 30, 60, 0.92) 100%
  );
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ruang-navbar-search {
  min-width: 320px;
  max-width: 520px;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: background 0.2s, box-shadow 0.2s;
}

.ruang-navbar-search:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #222;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
}

.ruang-navbar-search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.ruang-navbar-search:focus::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* Responsive positioning for search results */
@media (max-width: 991.98px) {
  .ruang-navbar-search {
    min-width: 100%;
    max-width: 100%;
  }

  #navbarSearchResults,
  #navbarSearchResultsMobile {
    left: 0 !important;
    right: 0 !important;
    min-width: 100% !important;
    position: fixed !important;
    top: auto !important;
    transform: none !important;
    z-index: 9999 !important;
  }
}

@media (min-width: 992px) {
  #navbarSearchResults {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    z-index: 9999 !important;
  }
}

/* Modern Search Results Styling */
#navbarSearchResults,
#navbarSearchResultsMobile {
  background: rgba(20, 25, 45, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.2s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 9999 !important;
  border-radius: 12px;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

#navbarSearchResults .dropdown-item,
#navbarSearchResultsMobile .dropdown-item {
  white-space: normal;
  word-break: break-word;
  border: none;
  padding: 14px 18px;
  margin: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
  background: transparent;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: #e8eaed;
}

#navbarSearchResults .dropdown-item:hover,
#navbarSearchResultsMobile .dropdown-item:hover {
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.15) 0%,
    rgba(0, 242, 254, 0.1) 100%
  );
  border-left-color: #4facfe;
  transform: translateX(3px);
  box-shadow: 0 2px 12px rgba(79, 172, 254, 0.2);
  text-decoration: none;
  color: #fff;
}

#navbarSearchResults .dropdown-item strong,
#navbarSearchResultsMobile .dropdown-item strong {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

#navbarSearchResults .dropdown-item .text-muted,
#navbarSearchResultsMobile .dropdown-item .text-muted {
  color: #bdc1c6 !important;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#navbarSearchResults .dropdown-item:first-child,
#navbarSearchResultsMobile .dropdown-item:first-child {
  margin-top: 8px;
}

#navbarSearchResults .dropdown-item:last-child,
#navbarSearchResultsMobile .dropdown-item:last-child {
  margin-bottom: 8px;
}

/* Empty state and loading styles */
#navbarSearchResults .dropdown-item.text-muted:only-child,
#navbarSearchResults .dropdown-item.text-warning:only-child,
#navbarSearchResultsMobile .dropdown-item.text-muted:only-child,
#navbarSearchResultsMobile .dropdown-item.text-warning:only-child {
  text-align: center;
  font-style: italic;
  opacity: 0.7;
  margin: 16px 8px;
  background: rgba(79, 172, 254, 0.1);
  border-left: none;
  color: #bdc1c6;
}

#navbarSearchResults .dropdown-item.text-muted:only-child:hover,
#navbarSearchResults .dropdown-item.text-warning:only-child:hover,
#navbarSearchResultsMobile .dropdown-item.text-muted:only-child:hover,
#navbarSearchResultsMobile .dropdown-item.text-warning:only-child:hover {
  background: rgba(79, 172, 254, 0.1);
  transform: none;
  box-shadow: none;
  cursor: default;
  color: #bdc1c6;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar for search results */
#navbarSearchResults::-webkit-scrollbar,
#navbarSearchResultsMobile::-webkit-scrollbar {
  width: 4px;
}

#navbarSearchResults::-webkit-scrollbar-track,
#navbarSearchResultsMobile::-webkit-scrollbar-track {
  background: transparent;
}

#navbarSearchResults::-webkit-scrollbar-thumb,
#navbarSearchResultsMobile::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 2px;
}

#navbarSearchResults::-webkit-scrollbar-thumb:hover,
#navbarSearchResultsMobile::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* === ARABIC TEXT SUPPORT === */
/* Arabic text styling using Amiri font */
.arabic-text {
  font-family: "Amiri", "Times New Roman", serif !important;
  font-size: 1.25em;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  font-weight: 400;
}

/* Arabic text in headings */
.arabic-heading {
  font-family: "Amiri", "Times New Roman", serif !important;
  font-size: 1.4em;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
}

/* Arabic quote styling */
.arabic-quote {
  font-family: "Amiri", "Times New Roman", serif !important;
  font-size: 1.3em;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  font-style: italic;
  font-weight: 400;
  background: rgba(13, 110, 253, 0.05);
  border-right: 4px solid #0d6efd;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Inline Arabic text within paragraphs */
.arabic-inline {
  font-family: "Amiri", "Times New Roman", serif !important;
  font-size: 1.15em;
  direction: rtl;
  unicode-bidi: isolate;
  font-weight: 400;
}

/* Arabic verse styling for Quran */
.arabic-verse {
  font-family: "Amiri", "Times New Roman", serif !important;
  font-size: 1.4em;
  line-height: 1.9;
  direction: rtl;
  text-align: center;
  unicode-bidi: isolate;
  font-weight: 400;
  background: rgba(13, 110, 253, 0.03);
  border: 1px solid rgba(13, 110, 253, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 12px;
}

/* Mixed content container for Arabic + Latin text */
.mixed-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 14px;
}

.mixed-content .arabic-text {
  margin-bottom: 0.5rem;
}

.mixed-content .latin-text {
  font-family: "Archivo", Arial, "Segoe UI", sans-serif;
  font-style: italic;
  color: #6c757d;
  font-size: 0.95em;
}

/* Responsive adjustments for Arabic text */
@media (max-width: 768px) {
  .arabic-text {
    font-size: 1.1em;
    line-height: 1.7;
  }

  .arabic-heading {
    font-size: 1.25em;
    line-height: 1.5;
  }

  .arabic-quote {
    font-size: 1.15em;
    padding: 0.8rem 1rem;
  }

  .arabic-verse {
    font-size: 1.25em;
    line-height: 1.8;
    padding: 1rem;
  }
}

/* RTL support for entire content if needed */
.rtl-content {
  direction: rtl;
  text-align: right;
}

.rtl-content h1,
.rtl-content h2,
.rtl-content h3,
.rtl-content h4,
.rtl-content h5,
.rtl-content h6 {
  text-align: right;
}

.rtl-content .arabic-text {
  text-align: right;
}

/* === PAGINATION STYLES === */
.modern-page-link {
  padding: 3px 10px;
  font-size: 0.9rem;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #0d8174;
  color: #0d8174;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: transparent;
}

.modern-page-link:hover {
  background-color: #0d8174;
  color: white;
  text-decoration: none;
  border-color: #0d8174;
}

.modern-page-link.active {
  background-color: #0d8174;
  color: white;
  border-color: #0d8174;
}

.modern-page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #0d8174;
}

.modern-page-link.disabled:hover {
  background-color: transparent;
  color: #0d8174;
  border-color: #0d8174;
}

/* Pagination container */
.pagination {
  padding: 0;
  margin: 0;
  gap: 4px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.pagination li {
  margin: 0;
}
