/* Custom CSS - SIT Mutiara Hati Modern Blue & White Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --primary-light: #eff6ff;
  --secondary: #f59e0b;
  --accent: #2563eb;
  --dark: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

.font-arabic {
  font-family: 'Amiri', serif;
}

/* Islamic Geometric Background Pattern Overlay */
.bg-islamic-pattern {
  background-color: #1e3a8a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, 0.12) 1px, #1e3a8a 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.bg-pattern-light {
  background-image: radial-gradient(#2563eb 0.5px, transparent 0.5px), radial-gradient(#2563eb 0.5px, #f8fafc 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-opacity: 0.05;
}

/* Smooth Tab Transitions */
.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* Card Hover Elevation */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.12), 0 8px 10px -6px rgba(30, 58, 138, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* Glassmorphism Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Rich Content & Article Formatting (Summernote HTML Renderer) */
.article-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h1 { font-size: 1.875rem; font-weight: 800; color: #0f172a; margin-top: 1.5rem; margin-bottom: 1rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-top: 1.5rem; margin-bottom: 0.875rem; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-top: 1.25rem; margin-bottom: 0.75rem; }
.article-content h4 { font-size: 1.125rem; font-weight: 700; color: #1e293b; margin-top: 1rem; margin-bottom: 0.5rem; }

.article-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: 0.375rem; }

.article-content strong, .article-content b { font-weight: 700; color: #0f172a; }
.article-content em, .article-content i { font-style: italic; }
.article-content u { text-decoration: underline; }

.article-content blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #475569;
  background-color: #f8fafc;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0 12px 12px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.article-content table th, .article-content table td {
  border: 1px solid #cbd5e1;
  padding: 0.625rem 0.875rem;
  text-align: left;
}
.article-content table th {
  background-color: #f1f5f9;
  font-weight: 700;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.25rem 0;
}