/* ========================================================
   Kung Fu To'a (کانگ فو ماتوآ) - Elite Design System
   Executive Sports & Martial Arts Portal Palette
   High-Contrast, Modern Typography & Layered Elevation
   ======================================================== */

/* --- Font Declarations (Local IRANSansXFaNum & IRANSansX) --- */
@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../fonts/IRANSansXFaNum-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../fonts/IRANSansXFaNum-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../fonts/IRANSansXFaNum-DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../fonts/IRANSansXFaNum-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../fonts/IRANSansXFaNum-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansXFaNum-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansXFaNum-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Theme Variables --- */
:root {
  /* Brand Core Colors */
  --primary-color: #991b1b;       /* Deep Imperial Crimson */
  --primary-dark: #7f1d1d;        /* Deep Maroon */
  --primary-light: #b91c1c;       /* Vivid Crimson */
  --primary-glow: rgba(153, 27, 27, 0.18);
  --accent-gold: #d97706;         /* Saffron Gold */
  --accent-gold-light: #fef3c7;
  
  /* Surfaces & Backgrounds */
  --body-bg: #f1f5f9;             /* Slate 100 - Rich structural canvas */
  --surface-white: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-elevated: #ffffff;
  --border-light: #e2e8f0;        /* Slate 200 - Clean crisp divider */
  --border-subtle: #f1f5f9;
  
  /* Text & Contrast */
  --text-dark: #0f172a;           /* Slate 900 - Deep, authoritative */
  --text-main: #1e293b;           /* Slate 800 - Crisp high legibility */
  --text-secondary: #475569;      /* Slate 600 - High-contrast supporting */
  --text-muted: #64748b;          /* Slate 500 */
  --text-light: #94a3b8;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 20px 25px -5px rgba(153, 27, 27, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* --- Base Body & Typography --- */
body {
  font-family: 'IRANSansXFaNum', 'IRANSansX', system-ui, -apple-system, sans-serif !important;
  background-color: var(--body-bg);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Lucide Global Styling & Modern Icon System --- */
.lucide {
  width: 1.22em;
  height: 1.22em;
  display: inline-block;
  vertical-align: -0.22em;
  stroke: currentColor;
  stroke-width: 1.85px;
  fill: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease, color 0.2s ease;
}

.lucide-xs {
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
}

.lucide-sm {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
}

.lucide-md {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.25em;
}

.lucide-lg {
  width: 1.7em;
  height: 1.7em;
  vertical-align: -0.3em;
}

.lucide-xl {
  width: 2.2em;
  height: 2.2em;
  vertical-align: -0.35em;
}

/* Harmonious Icon Color System */
.icon-crimson {
  color: var(--primary-color) !important;
}

.icon-slate {
  color: #64748b !important;
}

.icon-slate-dark {
  color: #475569 !important;
}

.icon-amber {
  color: #d97706 !important;
}

.icon-emerald {
  color: #16a34a !important;
}

.icon-subtle {
  color: var(--primary-color) !important;
  opacity: 0.85;
}

.icon-box-tint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(153, 27, 27, 0.15);
  transition: all 0.2s ease;
}

.icon-box-slate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.15);
  transition: all 0.2s ease;
}

/* --- 1. Top Utility Bar --- */
.top-utility-bar {
  background-color: #0b0f17;
  color: #ffffff;
  padding: 7px 0;
  border-bottom: 2px solid var(--primary-color);
  font-size: 0.8rem;
}

.top-badge {
  background: var(--primary-color);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hover-white:hover {
  color: #ffffff !important;
}

/* --- 2. Main Sticky Header --- */
.main-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.brand-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(153, 27, 27, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* Navigation Links */
.nav-link-custom {
  color: var(--text-dark) !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 9px !important;
  margin: 0 1px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap !important;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .nav-item-icon {
    display: none !important;
  }
  .nav-link-text-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
}

@media (min-width: 1400px) {
  .nav-link-custom {
    font-size: 0.88rem;
    padding: 8px 12px !important;
    gap: 4px;
  }
}

/* Remove default Bootstrap triangle caret on dropdown toggles */
.nav-link-custom.dropdown-toggle::after {
  display: none !important;
}

/* Modern Lucide Chevron for Dropdowns (Always Visible) */
.dropdown-chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease, color 0.2s ease;
  display: inline-block;
  vertical-align: middle;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 4px;
}

.nav-link-custom:hover .dropdown-chevron-icon {
  color: var(--primary-color);
}

.nav-link-custom.active .dropdown-chevron-icon {
  color: var(--primary-color) !important;
}

/* Rotate Chevron when menu is open */
.nav-link-custom.dropdown-toggle[aria-expanded="true"] .dropdown-chevron-icon,
.nav-item.dropdown.show .dropdown-chevron-icon {
  transform: rotate(180deg);
}

.nav-link-custom:hover {
  color: var(--primary-color) !important;
  background-color: rgba(153, 27, 27, 0.06);
}

.nav-link-custom.active {
  color: var(--primary-color) !important;
  font-weight: 800;
  background-color: rgba(153, 27, 27, 0.05);
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 14px;
  left: 14px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Dropdown Menus */
.dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  padding: 8px !important;
  min-width: 270px;
  background: #ffffff;
}

.dropdown-item {
  border-radius: 10px !important;
  padding: 8px 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  color: var(--text-dark);
}

.dropdown-item:hover {
  background-color: rgba(153, 27, 27, 0.05) !important;
  color: var(--primary-color) !important;
  transform: translateX(-2px);
}

/* Selected / Active Submenu Item (Ultra Clear High-Contrast) */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #fee2e2 !important;
  color: var(--primary-color) !important;
  border-right: 4px solid var(--primary-color) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.12) !important;
}

.dropdown-item.active .submenu-title {
  color: var(--primary-color) !important;
  font-weight: 800 !important;
}

.dropdown-item.active .submenu-desc {
  color: #7f1d1d !important;
  font-weight: 600 !important;
}

/* Dropdown Icon Box */
.dropdown-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-color);
  transition: all 0.25s ease;
}

.dropdown-item:hover .dropdown-icon-box {
  background: #ffffff;
  border-color: rgba(153, 27, 27, 0.25);
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.12);
}

.dropdown-icon-box.active,
.dropdown-item.active .dropdown-icon-box {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 10px rgba(153, 27, 27, 0.3) !important;
}

.dropdown-icon-box.active svg,
.dropdown-icon-box.active i,
.dropdown-item.active .dropdown-icon-box svg,
.dropdown-item.active .dropdown-icon-box i {
  color: #ffffff !important;
}

/* Submenu Active Indicator Dot */
.submenu-active-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(153, 27, 27, 0.12);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #f1f5f9;
}

/* Responsive Mobile Navigation Drawer/Card */
@media (max-width: 991.98px) {
  .main-header-sticky .navbar-collapse {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16);
    margin-top: 10px;
    margin-bottom: 14px;
    padding: 16px 14px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .mobile-drawer-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }

  .nav-link-custom {
    padding: 10px 12px !important;
    margin: 4px 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b !important;
    border-right: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .nav-link-text-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-grow: 1;
  }

  .nav-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .nav-item-icon .lucide {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
  }

  .nav-link-custom:hover {
    background-color: #f8fafc;
    color: var(--primary-color) !important;
  }

  .nav-link-custom:hover .nav-item-icon {
    background: rgba(153, 27, 27, 0.1);
    color: var(--primary-color);
  }

  .nav-link-custom.active::after {
    display: none;
  }

  .nav-link-custom.active {
    background-color: rgba(153, 27, 27, 0.06);
    color: var(--primary-color) !important;
    border-right: 3.5px solid var(--primary-color);
  }

  .nav-link-custom.active .nav-item-icon {
    background: var(--primary-color);
    color: #ffffff !important;
  }

  .main-header-sticky .dropdown-chevron-icon {
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
  }

  .nav-link-custom:hover .dropdown-chevron-icon,
  .nav-link-custom.active .dropdown-chevron-icon {
    color: var(--primary-color);
  }

  .main-header-sticky .dropdown-menu {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    padding: 8px !important;
    margin: 4px 6px 8px 6px !important;
    border-right: 3px solid rgba(153, 27, 27, 0.25) !important;
  }

  .main-header-sticky .dropdown-item {
    padding: 9px 12px !important;
    margin-bottom: 3px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .main-header-sticky .dropdown-item:hover,
  .main-header-sticky .dropdown-item.active {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  }
}

/* User Auth Pill Button */
.btn-auth-pill {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.28);
  transition: all 0.25s ease;
}

.btn-auth-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153, 27, 27, 0.38);
  color: #ffffff !important;
}

.btn-user-profile-menu {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 5px 14px 5px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-user-profile-menu:hover,
.btn-user-profile-menu[aria-expanded="true"] {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.15);
  background-color: #fffaf0;
}

.header-user-avatar {
  width: 34px;
  height: 34px;
}

.header-user-avatar .user-avatar-img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--primary-color);
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid rgba(254, 182, 2, 0.6);
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.profile-popup-menu {
  min-width: 250px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16) !important;
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-popup-header {
  background: linear-gradient(135deg, #8e1616 0%, #6b1111 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-avatar-fallback {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #feb602;
}

.bg-white-20 {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.text-white-90 {
  color: rgba(255, 255, 255, 0.92) !important;
}

.profile-item {
  color: #1e293b;
  transition: all 0.15s ease-in-out;
  font-size: 0.88rem;
}

.profile-item:hover {
  background-color: #fef2f2;
  color: #991b1b;
  transform: translateX(-3px);
}

.profile-item-logout:hover {
  background-color: #fee2e2;
  color: #7f1d1d !important;
  transform: translateX(-3px);
}

/* --- 3. Hero Slider Section --- */
.hero-slider-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #0f172a;
}

.responsive-slider {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-xl);
}

.slide-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  transition: transform 0.4s ease;
}

.slide-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 45%, transparent 100%);
  color: #ffffff;
  pointer-events: none;
}

.slide-caption-title {
  font-size: 1.65rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
  color: #ffffff;
}

.slide-caption-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  max-width: 650px;
  margin-bottom: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  width: 28px;
  border-radius: 6px;
  opacity: 1;
}

@media (max-width: 992px) {
  .responsive-slider {
    height: 380px;
  }
  .slide-caption-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .responsive-slider {
    height: 240px;
  }
  .slide-caption-title {
    font-size: 1.05rem;
  }
}

/* --- 4. Professional Statistics Strip (Cohesive Martial Arts Theme) --- */
/* --- 4. Professional Statistics Ribbon (Analytical Data Strip) --- */
.stats-strip {
  margin-top: -16px;
  position: relative;
  z-index: 10;
}

.stats-ribbon {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-top: 3px solid #991b1b;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.stat-item {
  position: relative;
  border-left: 1px solid #f1f5f9;
}

.stat-item:last-child {
  border-left: none;
}

.stats-ribbon .stat-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 22px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  transform: none !important;
  cursor: default !important;
}

.stats-ribbon .stat-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.stat-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-metric-badge .lucide {
  color: #991b1b;
  width: 14px;
  height: 14px;
}

.stat-number {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 767.98px) {
  .stat-item:nth-child(odd) {
    border-left: 1px solid #f1f5f9;
  }
  .stat-item:nth-child(even) {
    border-left: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid #f1f5f9;
  }
  .stat-item-inner {
    padding: 16px 10px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Fallback legacy stat-card if needed elsewhere */
.stat-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(153, 27, 27, 0.15);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- 5. Modern Section Titles --- */
.modern-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.section-title-group {
  min-width: 0;
  flex: 1 1 auto;
}

.section-accent-bar {
  width: 5px;
  height: 28px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
  border-radius: 4px;
  flex-shrink: 0;
}

.modern-section-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0;
}

.modern-section-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* View All Link / Button */
.modern-more-link {
  color: var(--primary-color);
  background: #ffffff;
  border: 1px solid rgba(153, 27, 27, 0.22);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-more-link .more-link-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.modern-more-link:hover {
  background: var(--primary-color);
  color: #ffffff !important;
  border-color: var(--primary-color);
  transform: translateX(-4px);
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.28);
}

.modern-more-link:hover .more-link-icon {
  color: #ffffff;
  transform: translateX(-3px);
}

/* Mobile Responsiveness for Section Titles & View All Buttons */
@media (max-width: 576px) {
  .modern-section-header {
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    gap: 8px;
  }
  
  .section-accent-bar {
    width: 4px;
    height: 22px;
  }
  
  .modern-section-title {
    font-size: 1.05rem;
  }
  
  .modern-section-subtitle {
    font-size: 0.74rem;
    color: var(--text-muted);
  }
  
  .modern-more-link {
    padding: 6px 12px;
    font-size: 0.76rem;
    border-radius: 20px;
    gap: 5px;
    background: #fdf2f2;
    border: 1px solid rgba(153, 27, 27, 0.25);
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(153, 27, 27, 0.08);
  }

  .modern-more-link .more-link-icon {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 380px) {
  .modern-section-title {
    font-size: 0.95rem;
  }
  .modern-more-link {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

/* --- 6. Systems / Categories Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.modern-category-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.modern-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.modern-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(153, 27, 27, 0.12);
  border-color: rgba(153, 27, 27, 0.4);
}

.modern-category-card:hover::before {
  background: linear-gradient(90deg, #991b1b, #ef4444);
}

.category-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(153, 27, 27, 0.06);
  border: 1px solid rgba(153, 27, 27, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #991b1b;
  transition: all 0.25s ease;
}

.category-icon-wrapper .lucide {
  width: 26px;
  height: 26px;
  stroke-width: 2px;
}

.modern-category-card:hover .category-icon-wrapper {
  background: #991b1b;
  border-color: #991b1b;
  color: #ffffff !important;
  transform: scale(1.06);
}

.modern-category-card:hover .category-icon-wrapper .icon-crimson {
  color: #ffffff !important;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.category-text-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.modern-category-card:hover .category-name {
  color: #991b1b;
}

.category-action-link {
  font-size: 0.74rem;
  color: #991b1b;
  font-weight: 700;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.modern-category-card:hover .category-action-link {
  background: #991b1b;
  color: #ffffff;
  border-color: #991b1b;
}

.category-action-link .lucide {
  transition: transform 0.2s ease;
}

.modern-category-card:hover .category-action-link .lucide {
  transform: translateX(-3px);
}

@media (min-width: 992px) {
  .row-cols-lg-5 > * {
    flex: 0 0 auto;
    width: 20% !important;
  }
}

/* --- 7. Modern News Cards (Vertical Card Architecture) --- */
.modern-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.modern-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(153, 27, 27, 0.12);
  border-color: rgba(220, 53, 69, 0.4);
}

.news-card-cover {
  position: relative;
  width: 100%;
  height: 185px;
  background: #f1f5f9;
  overflow: hidden;
}

.news-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern-news-card:hover .news-cover-img {
  transform: scale(1.07);
}

.news-badge-vip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.news-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.news-date-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #1e293b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.news-date-overlay i {
  color: #dc3545;
}

.news-title-text {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  color: #1e293b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.modern-news-card:hover .news-title-text {
  color: #dc3545;
}

.news-desc-text {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #64748b !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-source-tag {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.news-action-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc3545;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.modern-news-card:hover .news-action-link {
  transform: translateX(-4px);
}

/* --- 8. Media Cover Cards (Images & Videos) --- */
.modern-media-card {
  width: 100%;
  height: 195px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  background: #0f172a;
}

.modern-media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.media-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.media-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern-media-card:hover .media-card-img {
  transform: scale(1.08);
}

.media-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(15, 23, 42, 0.45) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: background 0.3s ease;
}

.media-card-content {
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.media-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.media-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pulsing Play Button for Video */
.pulsing-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.6);
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.modern-media-card:hover .pulsing-play-btn {
  transform: scale(1.15);
  background: var(--primary-light);
}

/* --- 9. Vertical Item Cards (Posts, Events, Classes) --- */
.modern-item-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.modern-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(153, 27, 27, 0.3);
}

.item-card-thumb {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background-color: #0f172a;
}

.item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.modern-item-card:hover .item-thumb-img {
  transform: scale(1.06);
}

.card-category-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.card-badge-vip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-gold);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

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

.item-meta-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.item-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.item-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-action-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.item-action-btn:hover {
  transform: translateX(-3px);
}

/* Event & Class Specifics */
.event-details-list,
.class-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.event-detail-item,
.class-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 10. About Hero Section (Prestigious Callout Layout) --- */
.about-hero-container {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.badge-official-tag {
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid rgba(153, 27, 27, 0.15);
}

.badge-meta-tag {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid var(--border-light);
}

.about-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
}

.highlight-text {
  color: var(--primary-color);
}

.about-lead-box {
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.95;
}

.text-secondary-dark {
  color: var(--text-main);
}

/* Executive Oath Plaque (No Cheap Pink Dashed Border) */
.oath-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  border-right: 5px solid var(--primary-color);
  box-shadow: var(--shadow-card);
}

.blockquote-oath {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.85;
  font-style: italic;
}

/* Custom Primary Buttons */
.btn-primary-custom {
  background: var(--primary-color);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.3);
  transition: all 0.25s ease;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(153, 27, 27, 0.4);
}

.btn-outline-dark-custom {
  background: #ffffff;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-light);
  font-weight: 700;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
}

.btn-outline-dark-custom:hover {
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.founder-card-frame {
  max-width: 320px;
}

.founder-img-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--surface-white);
  height: 350px;
  background: #0f172a;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.founder-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  color: #ffffff;
  padding: 20px 16px 14px;
  text-align: center;
}

.founder-name {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.founder-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.features-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.feature-card:hover {
  background: #ffffff;
  border-color: rgba(153, 27, 27, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(153, 27, 27, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.feature-icon .lucide {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
}

.feature-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-dark);
}

.feature-description {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- 11. Modern Footer --- */
.modern-footer {
  background: linear-gradient(180deg, #0d121c 0%, #06090f 100%);
  color: #ffffff;
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  padding: 60px 0 28px;
  margin-top: 80px;
  position: relative;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.4), transparent);
}

.footer-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
  object-fit: cover;
}

.footer-brand-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.85;
  margin-top: 12px;
}

.badge-affiliation {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.badge-affiliation:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-color);
}

.footer-links-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.footer-links-list a:hover i,
.footer-links-list a:hover svg {
  color: var(--primary-color) !important;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.hover-primary:hover {
  color: #ef4444 !important;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff !important;
}

.telegram-btn {
  background: #229ED9;
  color: #ffffff !important;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.external-link-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.external-link-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.modern-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 22px;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: #ffffff;
}

.bullet-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* Helpers */
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.76rem !important; }

/* --- 14. Modern Authentication Cards (Unified Executive Design System) --- */
.auth-split-card {
  max-width: 1060px;
  background: var(--surface-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.02) !important;
  overflow: hidden;
}

.auth-split-card-wide {
  max-width: 1140px;
}

.auth-brand-showcase {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #831843 85%, #991b1b 100%);
  position: relative;
  overflow: hidden;
}

.auth-brand-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.auth-brand-showcase::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-fed-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
}

.auth-brand-emblem {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(250, 204, 21, 0.4);
}

.auth-service-item {
  transition: transform 0.2s ease;
}

.auth-service-item:hover {
  transform: translateX(-3px);
}

.auth-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-oath-plaque {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
}

.auth-mobile-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.15);
  border: 2px solid rgba(153, 27, 27, 0.2);
}

/* Tab Switcher between Login & Register */
.auth-nav-tabs {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-nav-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-nav-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.auth-nav-tab.active {
  background: #ffffff;
  color: #991b1b;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.badge-portal-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(153, 27, 27, 0.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Modern Input Groups with Lucide Prepend Icons */
.modern-input-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.modern-input-group:focus-within {
  border-color: #991b1b;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}

.modern-input-group .input-group-text {
  background: #f8fafc;
  border: none;
  color: #64748b;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.modern-input-group .form-control,
.modern-input-group .form-select {
  border: none;
  font-size: 0.88rem;
  padding: 10px 14px;
  color: #1e293b;
  background-color: #ffffff;
}

.modern-input-group .form-control:focus,
.modern-input-group .form-select:focus {
  box-shadow: none;
  background-color: #ffffff;
}

.modern-input-group .form-select {
  cursor: pointer;
  background-position: left 0.75rem center;
}

.btn-password-toggle {
  background: #f8fafc;
  border: none;
  border-right: 1px solid #e2e8f0;
  color: #64748b;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-password-toggle:hover {
  color: #991b1b;
  background: #f1f5f9;
}

/* Captcha Box */
.captcha-executive-box {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
}

.captcha-label-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #991b1b;
}

.captcha-math-formula {
  background: #0f172a;
  color: #facc15;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.captcha-num-input {
  width: 90px;
  height: 38px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.captcha-num-input:focus {
  border-color: #991b1b;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.15);
}

.btn-captcha-reload {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-captcha-reload:hover {
  background: #991b1b;
  color: #ffffff;
  border-color: #991b1b;
}

/* Primary Auth Submit Button */
.btn-auth-submit {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(153, 27, 27, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 27, 27, 0.42);
  color: #ffffff !important;
}

.auth-switch-prompt {
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}

.auth-switch-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-switch-btn:hover {
  border-color: #991b1b;
  color: #991b1b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.1);
}
  background: #f8fafc;
  border: 1px dashed var(--border-light);
}

.hover-underline:hover {
  text-decoration: underline !important;
}

.spin-animation {
  display: inline-block;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 15. Modern Profile Dashboard --- */
.profile-hero-card {
  background: linear-gradient(150deg, #090d16 0%, #1e293b 50%, #450a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-wrapper {
  width: 104px;
  height: 104px;
}

.profile-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-icon {
  font-size: 3.5rem;
}

.profile-status-dot {
  position: absolute;
  bottom: 4px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid #0f172a;
}

.badge-role-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-status-pill {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ade80;
}

.badge-vip-pill {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fde047;
}

.btn-edit-profile {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

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

.btn-logout-profile {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-logout-profile:hover {
  background: #ef4444;
  color: #ffffff;
}

.profile-stat-box {
  border: 1px solid var(--border-light) !important;
  transition: all 0.25s ease;
}

.profile-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(153, 27, 27, 0.25) !important;
}

.profile-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.profile-nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
}

.profile-nav-tabs .nav-link:hover {
  color: var(--primary-color);
}

.profile-nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color);
  background: transparent;
}

.profile-info-item {
  transition: all 0.2s ease;
}

.profile-info-item:hover {
  border-color: rgba(153, 27, 27, 0.3) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}


/* ========================================================
   Matoa Design System (MDS) - Unified Portal Standards
   Executive Martial Arts Portal Component Specifications
   ======================================================== */

/* --- MDS 1. Page Header Standards (.ds-page-header) --- */
.ds-page-header {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.ds-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.ds-breadcrumb-nav .breadcrumb {
  font-size: 0.8rem;
  font-weight: 500;
}

.ds-breadcrumb-nav .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ds-breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--primary-color);
}

.ds-breadcrumb-nav .breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 700;
}

.ds-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: #cbd5e1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.ds-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(153, 27, 27, 0.08);
  border: 1px solid rgba(153, 27, 27, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.ds-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.ds-page-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- MDS 2. Unified Badges & Pills (.ds-badge) --- */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  line-height: 1.4;
  white-space: nowrap;
}

.ds-badge-subtle {
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.ds-badge-crimson {
  background: rgba(153, 27, 27, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.ds-badge-vip {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.ds-badge-emerald {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

/* --- MDS 3. Unified Entity Card Architecture (.ds-card) --- */
.ds-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  text-decoration: none !important;
}

.ds-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(153, 27, 27, 0.32);
}

.ds-card-cover {
  position: relative;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background-color: #0f172a;
}

.ds-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ds-card:hover .ds-card-img {
  transform: scale(1.06);
}

.ds-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-card-vip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-card-date-overlay {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.ds-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.ds-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1rem;
}

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

.ds-card-title a {
  color: inherit;
  text-decoration: none;
}

.ds-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.ds-card-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-light);
}

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

.ds-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ds-card:hover .ds-card-action i,
.ds-card:hover .ds-card-action svg {
  transform: translateX(-4px);
}

.ds-card-btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  border: 1px solid rgba(153, 27, 27, 0.16);
}

.ds-card:hover .ds-card-btn-block,
.ds-card-btn-block:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* --- MDS 4. Standardized Search Bar & Filter Controls --- */
.ds-search-bar {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-search-bar:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}

.ds-search-input {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  width: 100%;
}

.ds-search-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

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

/* --- MDS 5. Standardized Empty States (.ds-empty-state) --- */
.ds-empty-state {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin: 2rem 0;
}

.ds-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.ds-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.ds-empty-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* --- MDS 6. Standardized Section Layouts & Containers --- */
.ds-section {
  margin-bottom: 3.5rem;
}

.ds-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .ds-page-header {
    padding: 1.25rem 1rem;
  }
  .ds-page-title {
    font-size: 1.25rem;
  }
}

/* --- MDS 7. Unified Pagination Standards --- */
.pagination {
  gap: 6px;
  margin: 0;
}

.pagination .page-item .page-link {
  border-radius: 10px !important;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  background: var(--surface-white);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pagination .page-item .page-link:hover {
  background: var(--surface-subtle);
  border-color: rgba(153, 27, 27, 0.3);
  color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(153, 27, 27, 0.25);
}

.pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ========================================================
   15. Single Post & Article Editorial Design
   Prestigious Martial Arts Portal & Editorial Typography
   ======================================================== */

.single-post-container {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.single-post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(153, 27, 27, 0.15);
  margin-bottom: 14px;
}

.single-post-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.6;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.single-post-meta {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.single-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.single-featured-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  margin-bottom: 32px;
  background: #f8fafc;
}

.single-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Body Typography */
.single-post-content {
  font-size: 1.05rem;
  line-height: 2.15;
  color: #334155;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.single-post-content p {
  margin-bottom: 22px;
}

.single-post-content h2 {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-right: 14px;
  border-right: 4px solid var(--primary-color);
  line-height: 1.45;
}

.single-post-content h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.single-post-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 22px;
  margin-bottom: 12px;
}

.single-post-content blockquote {
  background: #fef2f2;
  border-right: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin: 28px 0;
  color: #7f1d1d;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.9;
  position: relative;
}

.single-post-content ul,
.single-post-content ol {
  padding-right: 24px;
  margin-bottom: 24px;
}

.single-post-content li {
  margin-bottom: 8px;
  line-height: 1.95;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px auto;
  display: block;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.single-post-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.single-post-content th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--border-light);
}

.single-post-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

/* Tags & Sharing */
.single-post-tags-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.single-post-tag-pill {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.single-post-tag-pill:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.single-share-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.single-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Single Sidebar Widgets */
.single-sidebar-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.single-sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.single-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.single-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.single-related-item:hover {
  transform: translateX(-3px);
}

.single-related-thumb {
  width: 76px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.single-related-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  transition: color 0.2s ease;
  margin-bottom: 4px;
}

.single-related-item:hover .single-related-item-title {
  color: var(--primary-color);
}

.single-related-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mobile Responsiveness for Single Pages */
@media (max-width: 768px) {
  .single-post-container {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .single-post-title {
    font-size: 1.28rem;
    line-height: 1.5;
  }
  .single-post-content {
    font-size: 0.98rem;
    line-height: 2;
  }
  .single-featured-image {
    max-height: 280px;
  }
  .single-sidebar-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
}


/* ========================================================
   UI/UX Comprehensive Improvements
   2026-11-17 — Antigravity Agent Enhancements
   ======================================================== */

/* --- Back To Top Button --- */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(153, 27, 27, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.5);
  transform: translateY(-3px) scale(1.08);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.96);
}

/* --- About Page: Visual Timeline --- */
.about-timeline {
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.timeline-dot-primary {
  background: var(--primary-color) !important;
  border-color: var(--primary-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(153, 27, 27, 0.35) !important;
  width: 50px !important;
  height: 50px !important;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border-light), var(--border-subtle));
  margin: 4px 0;
  min-height: 32px;
}

.timeline-line-hidden {
  opacity: 0;
}

.timeline-content {
  padding-bottom: 36px;
  padding-top: 6px;
  flex: 1;
  min-width: 0;
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.timeline-year-primary {
  color: var(--primary-color) !important;
  font-size: 0.8rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(153, 27, 27, 0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .about-timeline {
    padding-right: 4px;
  }
  .timeline-dot {
    width: 36px;
    height: 36px;
  }
  .timeline-dot-primary {
    width: 40px !important;
    height: 40px !important;
  }
  .timeline-content {
    padding-bottom: 28px;
  }
  .timeline-title {
    font-size: 0.92rem;
  }
}

/* --- Events Show: Detail Cards Grid --- */
.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.event-detail-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.event-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-detail-icon-red {
  background: rgba(153, 27, 27, 0.1);
  color: var(--primary-color);
}

.event-detail-icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.event-detail-icon-green {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.event-detail-icon-amber {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.event-detail-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.event-detail-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .event-details-grid {
    grid-template-columns: 1fr 1fr;
  }
  .event-detail-card {
    padding: 10px 12px;
  }
}

/* --- Enhanced Pagination --- */
.pagination {
  gap: 4px;
}

.page-item .page-link {
  border-radius: 10px !important;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: none;
  padding: 0 8px;
}

.page-item .page-link:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.25);
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}

.page-item.disabled .page-link {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--surface-subtle);
}

/* --- Reading Typography Enhancements --- */
.single-post-content {
  line-height: 2.1;
  font-size: 1.0rem;
  color: var(--text-main);
}

.single-post-content p {
  margin-bottom: 1.4em;
}

.single-post-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.single-post-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.single-post-content blockquote {
  border-right: 4px solid var(--primary-color);
  border-left: none;
  padding: 16px 20px;
  margin: 1.5em 0;
  background: rgba(153, 27, 27, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.single-post-content ul,
.single-post-content ol {
  padding-right: 24px;
  padding-left: 0;
  margin-bottom: 1.2em;
}

.single-post-content li {
  margin-bottom: 0.5em;
  line-height: 2;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1em 0;
  box-shadow: var(--shadow-card);
}

.single-post-content table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.single-post-content table th {
  background: var(--primary-color);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.875rem;
}

.single-post-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.single-post-content table tr:last-child td {
  border-bottom: none;
}

.single-post-content table tr:nth-child(even) {
  background: var(--surface-subtle);
}

/* --- Loading State Skeleton (Enhanced) --- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 8px;
}

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

/* --- Card Hover Enhancements (Global) --- */
.ds-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.ds-card:hover {
  transform: translateY(-3px);
}

/* --- Modern Empty State --- */
.ds-empty-state {
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ds-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(153, 27, 27, 0.07);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  opacity: 0.75;
}

.ds-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ds-empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Focus Ring Enhancement (Accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Scroll Smooth for anchor links --- */
html {
  scroll-behavior: smooth;
}

/* --- Print Optimization --- */
@media print {
  .back-to-top-btn,
  .main-header-sticky,
  .top-utility-bar,
  .modern-footer {
    display: none !important;
  }

  .single-post-content {
    font-size: 11pt;
    line-height: 1.8;
    color: #000;
  }
}

/* --- RTL Utilities --- */
.text-start-rtl {
  text-align: right !important;
}

.fs-9 {
  font-size: 0.72rem !important;
}


/* --- Provincial & City Representation Components --- */
.province-hero-emblem {
  width: 110px;
  height: 110px;
  background: var(--surface-white);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 10px;
}

.province-hero-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.city-hero-emblem {
  width: 90px;
  height: 90px;
  background: var(--surface-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 8px;
}

.city-hero-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.city-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.city-card:hover {
  background: var(--surface-white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(153, 27, 27, 0.1);
}

.city-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(153, 27, 27, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.city-card:hover .city-card-icon {
  background: rgba(153, 27, 27, 0.14);
}

.city-card-name {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.city-card-btn {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.city-card:hover .city-card-btn {
  transform: translateX(-3px);
}

/* --- Inbox & Messaging Enhancements --- */
.inbox-card-item {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: 12px;
}

.inbox-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(153, 27, 27, 0.2);
}

.inbox-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(153, 27, 27, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
