/* ==========================================================================
   100 WANITA TERPOPULER DI DUNIA - ENSIKLOPEDIA EDITORIAL
   Modern, Elegant, Responsive, Multilingual (10 Languages), Dark Mode & RTL
   ========================================================================== */

:root {
  --primary: #9b2c5c;
  --primary-hover: #7b1c43;
  --primary-light: #fdf2f6;
  --accent-gold: #c59b27;
  --accent-gold-light: #fef9e7;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #c59b27;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #d46b96;
  --primary-hover: #e487ad;
  --primary-light: #2c1221;
  --accent-gold: #dfb746;
  --accent-gold-light: #2d2613;
  --secondary: #f8fafc;
  --secondary-light: #cbd5e1;
  
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-subtle: #1e293b;
  --bg-glass: rgba(19, 27, 46, 0.88);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0b0f19;
  
  --border-color: #243049;
  --border-focus: #dfb746;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.55);
}

/* RTL Support for Arabic */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .hero-stats {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}
[dir="rtl"] .dropdown-menu {
  left: 0;
  right: auto;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-gold);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(155, 44, 92, 0.3);
}

.brand-badge {
  font-size: 0.7rem;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Selector Dropdown */
.lang-selector-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 0.4rem;
  z-index: 1000;
}
.lang-dropdown.show {
  display: flex;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-main);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.lang-option:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.lang-option.active {
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #2c0f21 0%, #170d1e 50%, #0c1427 100%);
  color: white;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd978;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-title span {
  background: linear-gradient(90deg, #ffd978, #f8a5c2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* Hero Metrics Stats */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.metric-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  text-align: center;
  min-width: 110px;
}
.metric-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffd978;
  font-family: var(--font-serif);
}
.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}

/* Interactive Search Bar in Hero */
.search-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.4rem;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  outline: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}
.search-input:focus {
  border-color: #ffd978;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.search-icon-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: none;
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.search-icon-btn:hover {
  background: var(--accent-gold);
}

[dir="rtl"] .search-input {
  padding: 1rem 1.4rem 1rem 3.5rem;
}
[dir="rtl"] .search-icon-btn {
  right: auto;
  left: 0.6rem;
}

/* Ads Slot Containers (Complying with AdSense Policies) */
.adsense-wrapper {
  margin: 2rem auto;
  text-align: center;
  max-width: 970px;
  padding: 0.5rem;
}
.adsense-label {
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.adsense-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Controls Bar (Filter Chips & Sorting) */
.filter-section {
  padding: 1.75rem 0 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.filter-group {
  margin-bottom: 1rem;
}
.filter-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chip-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.view-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.results-count strong {
  color: var(--primary);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sort-select {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}
.sort-select:focus {
  border-color: var(--primary);
}

/* 100 Women Cards Grid */
.cards-section {
  padding: 2.5rem 0 4rem;
}

.women-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Profile Card */
.woman-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.woman-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(197, 155, 39, 0.4);
}

.card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.woman-card:hover .card-img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.card-category-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffd978;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.card-era-badge {
  background: rgba(155, 44, 92, 0.88);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
}

.card-bookmark-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.card-bookmark-btn:hover {
  background: var(--primary);
  color: white;
}
.card-bookmark-btn.active {
  background: var(--accent-gold);
  color: #0f172a;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.card-country {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}
.card-dates {
  font-family: var(--font-sans);
  color: var(--text-light);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  line-height: 1.25;
}
.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--primary);
}

.card-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--primary);
  border-left: 2px solid var(--accent-gold);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[dir="rtl"] .card-quote {
  border-left: none;
  border-right: 2px solid var(--accent-gold);
  padding-left: 0;
  padding-right: 0.6rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-detail:hover {
  background: var(--primary);
  color: white;
}

.btn-article-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.btn-article-link:hover {
  color: var(--accent-gold);
}

/* Modal Popup (for Quick View) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}
.modal-close-btn:hover {
  background: var(--primary);
  color: white;
}
[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1rem;
}

.modal-header-banner {
  display: flex;
  background: linear-gradient(135deg, #240c1a 0%, #101827 100%);
  color: white;
  padding: 2rem 2rem 1.5rem;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.modal-portrait {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.modal-header-text {
  flex: 1;
}

.modal-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  color: #ffd978;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.modal-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content-body {
  padding: 1.75rem 2rem 2rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.specs-table th, .specs-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
[dir="rtl"] .specs-table th, [dir="rtl"] .specs-table td {
  text-align: right;
}
.specs-table th {
  width: 32%;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-card-subtle);
}
.specs-table td {
  color: var(--text-main);
  font-weight: 500;
}

.modal-section-title {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.4rem;
}

.bio-paragraph {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.modal-quote-box {
  background: var(--accent-gold-light);
  border-left: 4px solid var(--accent-gold);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #78350f;
  margin: 1.25rem 0;
}
[dir="rtl"] .modal-quote-box {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

/* Individual Profile Article Page Styles */
.article-page {
  padding: 2.5rem 0 4rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.breadcrumb-separator {
  color: var(--text-light);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.article-hero-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.75rem;
}

.article-h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.profile-card-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-widget-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-widget-body {
  padding: 1.25rem;
}

.social-share-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.share-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}
.share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Static Information Pages (About, Privacy, Terms, Contact) */
.page-prose {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  max-width: 900px;
  margin: 2.5rem auto;
  box-shadow: var(--shadow-sm);
}
.page-prose h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}
.page-prose h2 {
  font-size: 1.4rem;
  margin: 1.8rem 0 0.75rem;
  color: var(--primary);
}
.page-prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
}
.page-prose ul, .page-prose ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  border-top: 3px solid var(--accent-gold);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-title {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 1.25rem;
}

.footer-col-title {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a, .footer-btn-link {
  color: #94a3b8;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
[dir="rtl"] .footer-links a, [dir="rtl"] .footer-btn-link {
  text-align: right;
}
.footer-links a:hover, .footer-btn-link:hover {
  color: #ffd978;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Fallback Cookie Consent Dialog */
.consent-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  display: none;
}
.consent-banner.show {
  display: block;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.consent-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}
.consent-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.consent-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  transition: var(--transition);
}
.btn-sm:hover {
  background: var(--border-color);
}
.btn-sm.btn-accept {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-sm.btn-accept:hover {
  background: var(--primary-hover);
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .header-nav {
    display: none; /* can be reached via footer or bottom bar */
  }
  .article-main {
    padding: 1.5rem;
  }
  .page-prose {
    padding: 1.5rem;
  }
}
