/* ==========================================================================
   El-Islam.org — Modern Static Stylesheet
   Preserving original visual identity (#6f8590, #a29168, PT Sans, Open Sans, Amiri)
   with responsive layout, dark mode, reading comfort, and print support.
   ========================================================================== */

:root {
  --primary: #6f8590;
  --primary-dark: #526771;
  --primary-darker: #475156;
  --primary-light: rgba(111, 133, 144, 0.12);
  --accent-gold: #a29168;
  --accent-gold-light: rgba(162, 145, 104, 0.15);
  --bg-page: #f5f7f8;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef1f3;
  --text-main: #3a3a3a;
  --text-heading: #222629;
  --text-muted: #636b70;
  --border-color: #e2e6e9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-heading: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Sakkal Majalla', 'Traditional Arabic', serif;
  --container-max: 1240px;
  --article-max: 840px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-page: #181a1b;
  --bg-card: #242729;
  --bg-elevated: #2c3033;
  --bg-subtle: #1f2224;
  --text-main: #d0d4d7;
  --text-heading: #f3f5f6;
  --text-muted: #9aa2a8;
  --border-color: #363b3e;
  --primary-light: rgba(111, 133, 144, 0.22);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.35;
  margin-top: 0;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Top Utility Header & Main Navbar
   ========================================================================== */
.top-bar {
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .top-bar {
  background-color: #202426;
  border-bottom-color: var(--border-color);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-switch-slider {
  width: 48px;
  height: 24px;
  background-color: #2c3539;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition);
}

.theme-switch-slider svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.theme-switch-slider .icon-moon {
  color: #f1c40f;
}

.theme-switch-slider .icon-sun {
  color: #f39c12;
}

.theme-switch-ball {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.22s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.theme-switch-input:checked + .theme-switch-slider .theme-switch-ball {
  transform: translateX(24px);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-contact {
  color: #ffffff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact:hover {
  color: #f0f4f6;
  text-decoration: underline;
}

/* Main Header */
.site-header {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-heading);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

[data-theme="dark"] .brand-logo {
  filter: brightness(1.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-heading);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #ffffff;
  background-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-search-trigger,
.btn-mobile-menu {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-search-trigger:hover,
.btn-mobile-menu:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-search-trigger svg,
.btn-mobile-menu svg {
  width: 18px;
  height: 18px;
}

.btn-mobile-menu {
  display: none;
}

/* ==========================================================================
   Hero / Filter & Search Bar (Homepage & Archive Headers)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 42px 0 38px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: url('/wp-content/uploads/logo-simbol-light.svg') no-repeat center/contain;
  opacity: 0.07;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  margin: 0;
  max-width: 680px;
}

/* Filter & Instant Search Toolbar */
.filter-section {
  padding: 28px 0 12px;
}

.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.filter-search-input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-heading);
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-pill {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.filter-pill-count {
  font-size: 0.74rem;
  opacity: 0.8;
}

/* ==========================================================================
   Article Cards Grid (3-column matching Oxygen rep__main-card)
   ========================================================================== */
.cards-section {
  padding: 20px 0 56px;
}

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

.article-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--primary-darker);
}

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

.article-card:hover .card-image {
  transform: scale(1.04);
}

.card-category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: rgba(34, 38, 41, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  z-index: 2;
  transition: background-color var(--transition);
}

.card-category-badge:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 12px;
}

.card-title a {
  color: var(--text-heading);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.card-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.card-author-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary);
  padding: 3px;
  object-fit: contain;
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-read-more {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.article-card:hover .card-read-more {
  background: var(--primary);
  color: #ffffff;
}

.card-read-more svg {
  width: 15px;
  height: 15px;
}

.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Homepage Books Banner Section
   ========================================================================== */
.home-books-section {
  padding: 48px 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Single Article Page (Matching Oxygen template 969)
   ========================================================================== */
.article-page {
  padding: 36px 0 64px;
}

.article-header-wrap {
  max-width: var(--article-max);
  margin: 0 auto 28px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb-nav a {
  color: var(--primary);
  font-weight: 600;
}

.article-title {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  line-height: 1.28;
  margin-bottom: 18px;
  color: var(--text-heading);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.article-motto {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
}

.article-lead-summary {
  padding: 16px 22px;
  border-left: 4px solid var(--primary);
  background-color: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.08rem;
  color: var(--text-heading);
  line-height: 1.6;
}

.article-container {
  max-width: var(--article-max);
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.article-featured-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

/* Font size & utilities toolbar */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.article-toolbar-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.font-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.font-btn,
.print-btn {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-heading);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.font-btn:hover,
.font-btn.active,
.print-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Table of Contents */
.article-toc {
  margin: 28px 36px 0;
  padding: 18px 22px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
}

.article-toc-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.article-toc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
}

.article-toc-list li {
  margin-bottom: 6px;
}

.article-toc-list a {
  color: var(--text-main);
}

.article-toc-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Article Body Typography */
.post-content {
  padding: 36px 42px;
  font-size: 1.14rem;
  line-height: 1.8;
  color: var(--text-main);
  overflow-wrap: break-word;
}

.post-content p {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text-heading);
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  line-height: 1.35;
}

.post-content h2 {
  font-size: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
  font-size: 1.28rem;
}

.post-content ul,
.post-content ol {
  margin-top: 0;
  margin-bottom: 1.4em;
  padding-left: 1.6em;
}

.post-content li {
  margin-bottom: 0.5em;
}

/* Highlighted lists from original Oxygen CSS */
.post-content ol.lista-sa-pozadinom,
.post-content ul.lista-sa-pozadinom {
  background-color: var(--accent-gold);
  color: #ffffff;
  padding: 20px 28px 20px 44px;
  border-radius: var(--radius-sm);
}

.post-content .lista-sa-pozadinom li {
  color: #ffffff;
}

/* Arabic Script & Quotes */
.post-content .arabic,
.arabic {
  font-family: var(--font-arabic);
  font-size: 1.55rem;
  line-height: 2.05;
  text-align: right;
  direction: rtl;
  color: var(--text-heading);
  background-color: var(--bg-page);
  border-right: 4px solid var(--accent-gold);
  padding: 16px 22px;
  margin: 1.4em 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.post-content span.arabic {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  border-right: none;
  background: transparent;
}

.post-content blockquote,
.wp-block-quote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--primary);
  background-color: var(--bg-page);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.post-content blockquote cite,
.wp-block-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.post-content figure {
  margin: 1.8em 0;
  text-align: center;
}

.post-content figure img {
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.post-content figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.post-content hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2.2em 0;
}

/* Responsive Video Embed */
.video-embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.8em 0;
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tooltips / Footnotes */
.tooltip {
  position: relative;
  display: inline;
  border-bottom: 1px dotted var(--primary);
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: #2b3033;
  color: #ffffff;
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  position: absolute;
  z-index: 50;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 400;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Article Share & Tags Footer */
.article-footer {
  padding: 24px 42px 32px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.share-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: #ffffff;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-fb { background-color: #1877f2; }
.share-wa { background-color: #25d366; }
.share-tg { background-color: #0088cc; }
.share-vb { background-color: #7360f2; }
.share-copy { background-color: var(--primary); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.tag-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

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

/* ==========================================================================
   Books & Risale Page (/knjige-risale/)
   ========================================================================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.book-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.book-badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--accent-gold);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.book-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.book-pdf-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-pdf-icon svg {
  width: 22px;
  height: 22px;
}

.book-title {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.35;
}

.book-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.book-meta {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: default;
}

/* ==========================================================================
   Static Pages & Direct Email Cards (Kontakt)
   ========================================================================== */
.static-page-section {
  padding: 40px 0 64px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.info-card h2,
.info-card h3 {
  margin-bottom: 14px;
}

.email-cta-box {
  margin-top: 22px;
  padding: 24px;
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}

.email-cta-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-all;
}

/* ==========================================================================
   Search Modal (Triggered from Header Search Icon, Zero <form> tags)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 20, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 20px 20px;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.search-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-heading);
}

.search-modal-input:focus {
  outline: none;
}

.search-modal-close {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-modal-results {
  max-height: 65vh;
  overflow-y: auto;
  padding: 12px;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  transition: background-color var(--transition);
}

.search-result-item:hover {
  background-color: var(--primary-light);
}

.search-result-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.search-result-snippet {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.search-result-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--primary);
  white-space: nowrap;
}

/* ==========================================================================
   Footer (Matching Oxygen section-88-967)
   ========================================================================== */
.site-footer {
  background-color: var(--primary);
  color: #ffffff;
  margin-top: auto;
  padding: 52px 0 28px;
}

[data-theme="dark"] .site-footer {
  background-color: #202426;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1.1fr 0.8fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-col h2,
.footer-col h3 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  display: inline-block;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

.footer-col a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition);
}

.footer-social-link:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-copy-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-sm {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.footer-links-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition);
}

.footer-btn:hover {
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Design & Print Styles
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid,
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open {
    display: flex;
  }
  .btn-mobile-menu {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .cards-grid,
  .books-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .post-content {
    padding: 24px 20px;
    font-size: 1.06rem;
  }
  .article-toolbar,
  .article-footer {
    padding: 16px 20px;
  }
  .article-toc {
    margin: 20px 20px 0;
  }
  .top-bar-inner {
    font-size: 0.78rem;
  }
}

@media print {
  .top-bar,
  .site-header,
  .article-toolbar,
  .share-row,
  .related-section,
  .site-footer,
  .reading-progress-bar {
    display: none !important;
  }
  body,
  .article-container {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .post-content {
    padding: 0 !important;
  }
}
