:root {
  --navy: #061B33;
  --navy-2: #08294f;
  --red: #D71920;
  --white: #FFFFFF;
  --light: #F5F7FA;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --shadow: 0 18px 50px rgba(6, 27, 51, 0.10);
}

* {
  letter-spacing: 0;
}

body {
  background: var(--light);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Local Bootstrap-like fallback for demos/VPS where CDN assets are blocked. */
.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1320px;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.75rem;
  margin-right: -.75rem;
}

.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  max-width: 100%;
  padding-left: .75rem;
  padding-right: .75rem;
  width: 100%;
}

.g-0 { margin-left: 0; margin-right: 0; }
.g-0 > * { padding-left: 0; padding-right: 0; }
.g-2 { row-gap: .5rem; }
.g-3 { row-gap: 1rem; }
.g-4 { row-gap: 1.5rem; }
.g-5 { row-gap: 3rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.col, .col-auto { flex: 1 0 0%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }

.d-block { display: block !important; }
.d-flex { display: flex !important; }
.grid { display: grid !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-md-end { text-align: right !important; }
.position-fixed { position: fixed !important; }
.top-0 { top: 0 !important; }
.start-50 { left: 50% !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.overflow-hidden { overflow: hidden !important; }
.table-responsive { overflow-x: auto; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.ms-auto { margin-left: auto !important; }
.ms-lg-3 { margin-left: 1rem !important; }
.me-1 { margin-right: .25rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-2 { padding-bottom: .5rem !important; padding-top: .5rem !important; }
.py-3 { padding-bottom: 1rem !important; padding-top: 1rem !important; }
.py-4 { padding-bottom: 1.5rem !important; padding-top: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.lh-lg { line-height: 1.8 !important; }

.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }
.h4, .h5, .h6 { line-height: 1.25; margin-top: 0; }
.display-5 { font-size: clamp(2rem, 4vw, 3rem); }
.fs-2 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fw-bold { font-weight: 800 !important; }
.small, small { font-size: .875rem; }
.text-muted { color: var(--muted) !important; }
.text-danger { color: var(--red) !important; }
.text-success { color: #15803d !important; }
.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255,255,255,.72) !important; }
.bg-white { background: #fff !important; }
.border { border: 1px solid var(--line) !important; }
.border-bottom { border-bottom: 1px solid var(--line) !important; }
.rounded-2 { border-radius: 8px !important; }

.navbar {
  align-items: center;
  display: flex;
  min-height: 82px;
  padding: 0;
}

.navbar > .container,
.navbar-collapse,
.navbar-nav {
  align-items: center;
  display: flex;
}

.navbar-collapse {
  flex-basis: auto;
  flex-grow: 1;
}

.navbar-nav {
  flex-direction: row;
  gap: .55rem;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.navbar-toggler {
  display: none;
}

.nav-item {
  list-style: none;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: .55rem .9rem;
}

.btn-sm {
  font-size: .875rem;
  min-height: 34px;
  padding: .42rem .7rem;
}

.btn-success {
  background: #16a34a;
  border-color: #16a34a;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
}

.btn-outline-danger {
  background: transparent;
  border-color: #dc2626;
  border-radius: 6px;
  color: #991b1b;
  font-weight: 800;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
}

.alert {
  border-radius: 8px;
  padding: 1rem;
}

.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e3a8a; }

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: .9rem 1rem;
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding-left: 0;
}

.nav-underline .nav-link.active {
  border-bottom: 2px solid var(--red);
}

.tab-pane { display: none; }
.tab-pane.active,
.tab-pane.show { display: block; }

@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .flex-md-row { flex-direction: row !important; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .ms-lg-3 { margin-left: 1rem !important; }
}

@media (min-width: 1200px) {
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  gap: .65rem;
  font-weight: 800;
  line-height: 1;
  max-width: 260px;
  text-transform: uppercase;
}

.brand-shield {
  align-items: center;
  background: linear-gradient(145deg, var(--white), #dbeafe);
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--red);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 34px;
}

.brand-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 46px;
  object-fit: contain;
  padding: .25rem;
  width: 46px;
}

.sidebar .brand-logo,
footer .brand-logo {
  background: rgba(255,255,255,.95);
}

.settings-logo-preview {
  align-items: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  height: 130px;
  justify-content: center;
  padding: 1rem;
}

.settings-logo-preview img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.bank-info {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.translation-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
  padding: 1rem;
}

.translation-panel-rtl,
.rtl-input {
  direction: rtl;
  text-align: right;
}

.affiliation-summary {
  border-left: 4px solid var(--red);
}

.summary-metrics {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(620px, 100%);
}

.summary-metrics div,
.info-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem 1rem;
}

.summary-metrics small,
.info-item span,
.info-list span,
.receipt-box small {
  color: var(--muted);
  display: block;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-metrics strong,
.info-item strong,
.info-list strong {
  color: var(--navy);
  display: block;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.review-panel {
  position: sticky;
  top: 1rem;
}

.review-checklist {
  display: grid;
  gap: .85rem;
}

.review-check {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: .8rem;
  padding: .8rem;
}

.review-check-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: .68rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.review-check strong {
  color: var(--navy);
  display: block;
  line-height: 1.2;
}

.review-check span {
  color: var(--muted);
  font-size: .82rem;
}

.review-check.is-done .review-check-icon {
  background: #dcfce7;
  color: #166534;
}

.review-check.is-warning .review-check-icon {
  background: #fef3c7;
  color: #92400e;
}

.review-check.is-muted .review-check-icon {
  background: #e5e7eb;
  color: #374151;
}

.info-list {
  display: grid;
  gap: .75rem;
}

.info-list div {
  border-bottom: 1px solid var(--line);
  padding-bottom: .75rem;
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.receipt-box {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: var(--navy);
  display: flex;
  gap: .9rem;
  padding: 1rem;
  text-decoration: none;
}

.receipt-box:hover {
  border-color: var(--red);
  color: var(--red);
}

.receipt-file-mark {
  background: var(--navy);
  border-radius: 6px;
  color: #fff;
  flex: 0 0 auto;
  font-size: .75rem;
  padding: .45rem .55rem;
}

.decision-panel .status-badge {
  width: fit-content;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-item-wide {
  grid-column: 1 / -1;
}

.decision-panel {
  border-top: 4px solid var(--navy);
}

.approval-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.danger-zone {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.club-form label {
  color: var(--navy);
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.club-form p {
  margin-bottom: 1rem;
}

.club-form .errorlist {
  color: #991b1b;
  font-size: .8rem;
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
}

.athlete-photo,
.athlete-photo-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 150px;
  object-fit: cover;
  width: 150px;
}

.license-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.document-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.document-check {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  gap: .3rem;
  padding: .3rem .55rem;
}

.document-check.is-ok {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.document-check.is-missing {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.news-cover-frame {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(6, 27, 51, .12);
  display: block;
  max-height: 360px;
  overflow: hidden;
  width: 100%;
}

.news-cover-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card-cover,
.hero-news-cover {
  background: linear-gradient(135deg, #061b33, #0d345f);
  display: block;
  overflow: hidden;
  position: relative;
}

.news-card-cover {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.hero-news-cover {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.news-card-cover img,
.hero-news-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
  width: 100%;
}

.news-card:hover .news-card-cover img,
.hero-news-cover:hover img {
  transform: scale(1.035);
}

.news-card-placeholder,
.hero-news-cover span {
  align-items: center;
  color: rgba(255, 255, 255, .88);
  display: flex;
  font-size: .8rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  letter-spacing: 0;
  text-transform: uppercase;
  width: 100%;
}

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

.news-card-body p {
  flex: 1;
}

.article-gallery-grid,
.public-gallery-grid,
.gallery-admin-grid,
.news-photo-admin-grid {
  display: grid;
  gap: 1rem;
}

.article-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-gallery-item,
.public-gallery-card {
  aspect-ratio: 4 / 3;
  background: #061b33;
  border: 1px solid rgba(6, 27, 51, .08);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(6, 27, 51, .08);
  display: block;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}

.article-gallery-item:hover,
.public-gallery-card:hover {
  box-shadow: 0 18px 34px rgba(6, 27, 51, .14);
  transform: translateY(-2px);
}

.article-gallery-item img,
.public-gallery-card img,
.gallery-admin-card img,
.news-photo-admin-card img,
.gallery-admin-preview {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.article-gallery-item span,
.public-gallery-card span {
  background: linear-gradient(0deg, rgba(6, 27, 51, .9), rgba(6, 27, 51, .1));
  bottom: 0;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  left: 0;
  line-height: 1.35;
  padding: 2.75rem .9rem .85rem;
  position: absolute;
  right: 0;
}

.public-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-gallery-card small {
  color: rgba(255, 255, 255, .78);
  display: block;
  font-weight: 650;
  margin-top: .25rem;
}

.gallery-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-admin-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.gallery-admin-preview {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  max-height: 220px;
}

.news-photo-admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-photo-admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.news-photo-admin-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.brand-shield .bi::before {
  content: "◆";
  font-style: normal;
  line-height: 1;
}

.navbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-link {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.btn-primary,
.btn-danger {
  background: var(--red);
  border-color: var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.btn-primary:hover,
.btn-danger:hover {
  background: #b9141a;
  border-color: #b9141a;
}

.btn-outline-primary {
  border-color: var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 800;
}

.btn-outline-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.section-title {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  background:
    linear-gradient(90deg, rgba(6, 27, 51, .95), rgba(6, 27, 51, .72), rgba(6, 27, 51, .25)),
    url("../img/taekwondo-hero-premium.png") center/cover;
  color: var(--white);
  min-height: 610px;
  padding: 8rem 0 2.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 5.8rem);
  font-weight: 950;
  line-height: .96;
  max-width: 760px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--red);
}

.hero-copy {
  color: rgba(255, 255, 255, .86);
  max-width: 540px;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4rem;
}

.surface-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  min-height: 210px;
  padding: 1.25rem;
}

.hero-card .eyebrow,
.eyebrow {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sport-strip,
.stat-strip {
  background: var(--navy);
  color: var(--white);
}

.stat-strip .stat {
  border-right: 1px solid rgba(255, 255, 255, .16);
  padding: 1.5rem;
  text-align: center;
}

.stat-strip .stat:last-child {
  border-right: 0;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 950;
}

.stat-value-text {
  font-size: 1.25rem;
}

.club-logo-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}

.club-logo-panel {
  background: linear-gradient(135deg, rgba(6, 27, 51, .04), rgba(215, 25, 32, .05));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 1.25rem;
}

.club-logo-header {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.club-logo-marquee {
  overflow: hidden;
  position: relative;
}

.club-logo-marquee::before,
.club-logo-marquee::after {
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 56px;
  z-index: 2;
}

.club-logo-marquee::before {
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  left: 0;
}

.club-logo-marquee::after {
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
  right: 0;
}

.club-logo-rail,
.club-logo-track {
  align-items: stretch;
  display: flex;
}

.club-logo-rail {
  gap: 0;
  width: max-content;
}

.club-logo-marquee.is-animated .club-logo-rail {
  animation: clubLogoScroll 30s linear infinite;
}

.club-logo-marquee.is-animated:hover .club-logo-rail {
  animation-play-state: paused;
}

.club-logo-marquee.is-single .club-logo-rail {
  justify-content: center;
  width: 100%;
}

.club-logo-track {
  flex: 0 0 auto;
  gap: 1rem;
  padding-right: 1rem;
}

.club-logo-item {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(6, 27, 51, .12);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(6, 27, 51, .08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  padding: .85rem;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
  width: 150px;
}

.club-logo-item:hover {
  border-color: rgba(215, 25, 32, .45);
  transform: translateY(-2px);
}

.club-logo-item img {
  height: 64px;
  max-width: 120px;
  object-fit: contain;
  width: 100%;
}

.club-logo-item span {
  color: var(--navy);
  display: -webkit-box;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: .7rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes clubLogoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(6, 27, 51, .96), rgba(6, 27, 51, .72)),
    url("../img/taekwondo-hero-premium.png") center/cover;
  color: var(--white);
  padding: 6.5rem 0 3.5rem;
}

.content-band {
  padding: 4rem 0;
}

.data-table {
  margin: 0;
}

.data-table th {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  padding: .35rem .7rem;
  text-transform: uppercase;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-muted {
  background: #e5e7eb;
  color: #374151;
}

.avatar-fallback {
  align-items: center;
  background: linear-gradient(145deg, #dbeafe, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--navy), #03101f);
  color: var(--white);
  flex: 0 0 260px;
  min-height: 100vh;
  padding: 1.25rem;
  position: sticky;
  top: 0;
}

.sidebar .brand-mark {
  color: var(--white);
  margin-bottom: 2rem;
}

.sidebar-nav {
  display: grid;
  gap: .35rem;
}

.sidebar-link {
  align-items: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, .82);
  display: flex;
  font-size: .92rem;
  font-weight: 750;
  gap: .75rem;
  padding: .82rem .9rem;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--red);
  color: var(--white);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
}

.topbar {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.dashboard-content {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
  padding: 1.5rem;
}

.dashboard-stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.stat-card {
  min-width: 0;
  padding: 1.25rem;
}

.stat-card small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--navy);
  display: block;
  font-size: 2rem;
  font-weight: 950;
}

.stat-card-action .btn {
  width: fit-content;
}

.form-control,
.form-select {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--ink);
  display: block;
  font: inherit;
  min-height: 42px;
  padding: .65rem .75rem;
  width: 100%;
}

.form-control-sm,
.form-select-sm {
  min-height: 34px;
  padding: .42rem .6rem;
}

textarea.form-control {
  min-height: 96px;
}

.form-label,
label {
  color: var(--navy);
  font-weight: 750;
}

.form-check {
  align-items: flex-start;
  display: flex;
  gap: .6rem;
}

.form-check-input {
  height: 18px;
  margin-top: .15rem;
  width: 18px;
}

.errorlist {
  color: #991b1b;
  font-size: .86rem;
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
}

.choice-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  min-height: 54px;
  padding: .85rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.choice-card:hover {
  border-color: rgba(215, 25, 32, .45);
  box-shadow: 0 10px 26px rgba(6, 27, 51, .08);
}

.choice-card input {
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.choice-card label {
  margin: 0;
}

.checkbox-group {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.checkbox-group > div label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: .65rem;
  min-height: 46px;
  padding: .7rem .85rem;
}

.checkbox-group input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.surface-card form p {
  margin-bottom: 1rem;
}

.surface-card form p label {
  display: block;
  margin-bottom: .35rem;
}

.language-form {
  min-width: 116px;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .hero {
  background:
    linear-gradient(270deg, rgba(6, 27, 51, .95), rgba(6, 27, 51, .72), rgba(6, 27, 51, .25)),
    url("../img/taekwondo-hero-premium.png") center/cover;
}

[dir="rtl"] .page-hero {
  background:
    linear-gradient(270deg, rgba(6, 27, 51, .96), rgba(6, 27, 51, .72)),
    url("../img/taekwondo-hero-premium.png") center/cover;
}

[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="rtl"] .ms-lg-3 {
  margin-left: 0 !important;
  margin-right: 1rem !important;
}

[dir="rtl"] .text-md-end {
  text-align: left !important;
}

[dir="rtl"] .sidebar-link i {
  margin-left: 0;
}

.mobile-sidebar-toggle {
  display: none;
}

@media (max-width: 991px) {
  .navbar {
    min-height: 72px;
  }

  .navbar > .container {
    flex-wrap: wrap;
  }

  .navbar-toggler {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-left: auto;
    width: 42px;
  }

  .navbar-collapse {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }

  .navbar-collapse.show {
    display: flex;
  }

  .navbar-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .stat-strip .stat {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    border-right: 0;
  }

  .club-logo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .club-logo-item {
    min-height: 100px;
    width: 124px;
  }

  .club-logo-item img {
    height: 54px;
    max-width: 100px;
  }

  .dashboard-shell {
    display: block;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-content,
  .topbar {
    padding: 1rem;
  }

  .review-panel {
    position: static;
  }

  .summary-metrics,
  .info-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .article-gallery-grid,
  .public-gallery-grid,
  .gallery-admin-grid,
  .news-photo-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .brand-mark span {
    font-size: .8rem;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .article-gallery-grid,
  .public-gallery-grid,
  .gallery-admin-grid,
  .news-photo-admin-grid {
    grid-template-columns: 1fr;
  }
}
