/* ============================================================
   bosnai.ba — Global Stylesheet
   Bootstrap 5.3 + Bootstrap Icons + Custom Design System
   Bosnian Blue & Gold colour palette
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ─────────────────── */
:root {
  /* Bosnian Blue — the flag's deep navy */
  --bs-primary: #1D3D87;
  --bs-primary-rgb: 29, 61, 135;
  --primary: #1D3D87;
  --primary-dark: #142d66;
  --primary-light: #e8ecf5;

  /* Bosnian Gold — the flag's star yellow */
  --accent: #D4A400;
  --accent-dark: #a87e00;
  --accent-light: #fdf3cc;

  /* Light mode */
  --bg-body: #f8f7fc;
  --bg-surface: #ffffff;
  --bg-surface2: #f0f2f8;
  --text-primary: #0d1b3e;
  --text-secondary: #3d4f6e;
  --text-muted: #8a96aa;
  --border-color: #dde3ef;
  --card-shadow: 0 4px 24px rgba(29,61,135,0.08);
  --navbar-bg: rgba(255,255,255,0.93);
  --hero-gradient: linear-gradient(135deg, #1D3D87 0%, #D4A400 100%);
  --footer-bg: #0d1b3e;
  --footer-text: #a8b8d8;

  /* Premium card tokens (light) */
  --glow-primary: rgba(29, 61, 135, 0.28);
  --glow-accent:  rgba(212, 164, 0, 0.22);
  --card-border-hover: rgba(29, 61, 135, 0.45);
  --card-glass-bg: var(--bg-surface);
}

[data-bs-theme="dark"] {
  --bg-body: #080e1f;
  --bg-surface: #101828;
  --bg-surface2: #192035;
  --text-primary: #e8ecf5;
  --text-secondary: #a8b8d8;
  --text-muted: #5a6a88;
  --border-color: #1e2d4a;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.45);
  --navbar-bg: rgba(8,14,31,0.96);
  --hero-gradient: linear-gradient(135deg, #0d1f50 0%, #7a5a00 100%);
  --footer-bg: #040a18;
  --footer-text: #7a90b5;

  /* Premium card tokens (dark / neon) */
  --glow-primary: rgba(99, 141, 255, 0.45);
  --glow-accent:  rgba(212, 164, 0, 0.32);
  --card-border-hover: rgba(99, 141, 255, 0.5);
  --card-glass-bg: rgba(16, 24, 40, 0.75);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.display-1, .display-2, .display-3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-bosnai {
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  /* Gold top accent — Bosnian flag colours */
  border-top: 3px solid var(--accent);
  transition: background 0.3s ease;
  padding: 0.75rem 0;
}

.navbar-bosnai .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar-bosnai .navbar-brand .brand-accent {
  color: var(--accent);
}

.navbar-bosnai .nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem !important;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

[data-bs-theme="dark"] .navbar-bosnai .nav-link:hover,
[data-bs-theme="dark"] .navbar-bosnai .nav-link.active {
  background: rgba(29,61,135,0.15);
}

.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface2);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  background: var(--hero-gradient);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(29,61,135,0.3);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,61,135,0.4);
}

.btn-outline-custom {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: transparent;
}

.btn-outline-custom:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ── Section Styles ─────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--hero-gradient);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card-bosnai {
  background: var(--card-glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: var(--card-shadow);
}

.card-bosnai:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px var(--glow-primary),
    0 0 0 1px var(--card-border-hover);
  border-color: var(--card-border-hover);
}

[data-bs-theme="dark"] .card-bosnai {
  background: var(--card-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(99, 141, 255, 0.12);
}

[data-bs-theme="dark"] .card-bosnai:hover {
  box-shadow:
    0 16px 56px var(--glow-primary),
    0 0 24px var(--glow-primary),
    0 0 0 1px var(--card-border-hover);
  border-color: var(--card-border-hover);
}

/* ── Video Cards ─────────────────────────────────────────────── */
.video-card {
  cursor: pointer;
}

.video-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 18px;
}

.video-card-thumb {
  position: relative;
  /* aspect-ratio locks 16:9 and prevents layout shift */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface2);
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
  .video-card-thumb {
    padding-top: 56.25%;
    height: 0;
  }
}

.video-card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.07);
}

.video-card-thumb .play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 62px; height: 62px;
  background: linear-gradient(135deg, rgba(29,61,135,0.92) 0%, rgba(99,141,255,0.88) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.55rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
}

.video-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 24px var(--glow-primary);
}

.video-duration-badge {
  position: absolute;
  bottom: 9px; right: 9px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.12);
}

.video-card-body {
  padding: 1.1rem 1.35rem 1.35rem;
}

.video-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.video-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.video-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.5rem;
}

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface2) 0%,
    var(--border-color) 50%,
    var(--bg-surface2) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-thumb {
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  height: 0.85rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }

/* ── Tags / Badges ───────────────────────────────────────────── */
.tag-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.tag-badge:hover,
.tag-badge.active {
  background: var(--primary);
  color: #fff;
}

[data-bs-theme="dark"] .tag-badge {
  background: rgba(29,61,135,0.3);
  color: #a8b8d8;
}

[data-bs-theme="dark"] .tag-badge:hover,
[data-bs-theme="dark"] .tag-badge.active {
  background: var(--primary);
  color: #fff;
}

/* ── Search Bar ──────────────────────────────────────────────── */
.search-wrap {
  position: relative;
}

.search-wrap .bi-search {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,61,135,0.15);
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ── Video Player ────────────────────────────────────────────── */
.video-player-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

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

/* ── Share Buttons ───────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Comments Section ────────────────────────────────────────── */
.comments-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-control-custom,
.form-select-custom {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-control-custom:focus,
.form-select-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,61,135,0.15);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-label-custom {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.honeypot-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Alert / Status Messages ─────────────────────────────────── */
.alert-custom {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.alert-success-custom {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error-custom {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

[data-bs-theme="dark"] .alert-success-custom {
  background: rgba(6,95,70,0.25);
  color: #6ee7b7;
  border-color: rgba(6,95,70,0.4);
}

[data-bs-theme="dark"] .alert-error-custom {
  background: rgba(153,27,27,0.25);
  color: #fca5a5;
  border-color: rgba(153,27,27,0.4);
}

/* ── Stats / Feature Blocks ──────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
}

[data-bs-theme="dark"] .feature-icon {
  background: rgba(29,61,135,0.3);
  color: #a8b8d8;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer-bosnai {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 5rem 0 2rem;
  position: relative;
}

/* Gold accent bar at top of footer */
.footer-bosnai::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 60%, var(--accent) 100%);
}

.footer-bosnai .footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-bosnai .footer-brand span {
  color: var(--accent);
}

.footer-bosnai .footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.4rem;
  line-height: 1.6;
}

.footer-bosnai h6 {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-link {
  display: block;
  color: var(--footer-text);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.social-icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-icon-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(212,164,0,0.35);
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.newsletter-form input {
  background: rgba(255,255,255,0.07);
  border: none;
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  flex: 1;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form input:focus {
  background: rgba(255,255,255,0.11);
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.newsletter-form button:hover {
  background: var(--accent-dark);
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Back to Top Button ──────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(29,61,135,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ── Cookie Consent Banner ───────────────────────────────────── */
#cookieConsent {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: min(600px, calc(100vw - 2rem));
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

#cookieConsent.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
}

[data-bs-theme="dark"] #cookieConsent {
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ── About Page ──────────────────────────────────────────────── */
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* ── Empty & Error States ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h4 {
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadein {
  animation: fadeInUp 0.5s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ── Pagination ──────────────────────────────────────────────── */
.btn-load-more {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,61,135,0.3);
}

/* ── Utility ─────────────────────────────────────────────────── */
.bg-surface {
  background: var(--bg-surface) !important;
}

.bg-surface2 {
  background: var(--bg-surface2) !important;
}

.text-primary-custom {
  color: var(--primary) !important;
}

.border-custom {
  border-color: var(--border-color) !important;
}

.rounded-xl {
  border-radius: 16px !important;
}

.rounded-2xl {
  border-radius: 24px !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .video-player-wrapper {
    border-radius: 10px;
  }

  #backToTop {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.9rem;
  }
}

/* ── YouTube Comments Panel ──────────────────────────────────── */
.comment-tab-btn {
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.comment-tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Hero flag-star decoration ───────────────────────────────── */
.hero-section .flag-star {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  font-size: 8rem;
  top: 1rem;
  right: 3rem;
  transform: rotate(15deg);
  color: #fff;
}

/* ── Gold highlight text ─────────────────────────────────────── */
.text-gold {
  color: var(--accent) !important;
}

/* ── Bosnian flag-stripe accent ──────────────────────────────── */
.bosnia-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  border: none;
  margin: 0;
  opacity: 1;
}

/* ── Trending scroll row (mobile) ────────────────────────────── */
.trending-scroll-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767.98px) {
  .trending-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .trending-scroll-row::-webkit-scrollbar {
    display: none;
  }
  .trending-scroll-row .trending-card {
    flex: 0 0 72vw;
    max-width: 280px;
    scroll-snap-align: start;
  }
}

/* ── Video Modal ─────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.22s ease both;
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: calc(100dvh - 2rem);
  background: var(--bg-surface);
  border-radius: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: modal-slide-in 0.28s ease both;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes modal-slide-out {
  from { opacity: 1; transform: translateY(0)    scale(1);    }
  to   { opacity: 0; transform: translateY(28px) scale(0.96); }
}

.video-modal.is-closing .video-modal-backdrop {
  animation: modal-fade-out 0.2s ease both;
}

.video-modal.is-closing .video-modal-dialog {
  animation: modal-slide-out 0.2s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .video-modal-backdrop,
  .video-modal-dialog,
  .video-modal.is-closing .video-modal-backdrop,
  .video-modal.is-closing .video-modal-dialog {
    animation: none;
  }
}

.video-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  min-width: 0;
}

.video-modal-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.video-modal-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff0000;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 0, 0, 0.28);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.video-modal-yt-link:hover,
.video-modal-yt-link:focus-visible {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.video-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  background: var(--bg-surface2);
  color: var(--text-primary);
}

.video-modal-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.video-modal-player {
  padding: 1.25rem;
}

@media (max-width: 575.98px) {
  .video-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .video-modal-dialog {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90dvh;
    overflow-y: auto;
  }
}

/* ── Contact Page ────────────────────────────────────────────── */
.contact-hero {
  padding-top: 80px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.contact-hero-inner {
  padding: 3.5rem 0 1rem;
  text-align: center;
}

.contact-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.contact-hero-title span {
  color: #c4b5fd;
}

.contact-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 480px;
}

.contact-main {
  padding: 4rem 0 5rem;
}

/* ── Contact info cards ───────────────── */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glow-primary);
  border-color: var(--card-border-hover);
}

[data-bs-theme="dark"] .contact-info-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(167,139,250,0.12);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.contact-icon-email {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

.contact-icon-yt {
  background: linear-gradient(135deg, #ff0000, #ff6b6b);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,0,0,0.3);
}

.contact-icon-loc {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-info-value:hover {
  color: var(--primary);
}

.contact-response-badge {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.08));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-response-badge i {
  color: var(--primary);
  font-size: 1rem;
}

.contact-response-badge strong {
  color: var(--text-primary);
}

/* ── Contact form card ────────────────── */
.contact-form-card {
  background: var(--card-glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

[data-bs-theme="dark"] .contact-form-card {
  background: var(--card-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(167,139,250,0.12);
}

.contact-form-heading {
  padding: 2rem 2rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(6,182,212,0.04) 100%);
}

.contact-form-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.contact-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form-card form {
  padding: 0 2rem 2rem;
}

.contact-submit-btn {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
}

@media (max-width: 767.98px) {
  .contact-hero-inner {
    padding: 2.5rem 0 0.5rem;
  }

  .contact-form-heading {
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .contact-form-card form {
    padding: 0 1.5rem 1.5rem;
  }
}
