/* 99 Business Club — Malaysia Chapter Theme */
:root {
  --chapter-primary: #010066;
  --chapter-secondary: #CC0001;
  --chapter-accent: #FFD700;
  --chapter-gradient: linear-gradient(135deg, #010066 0%, #1a1a8f 40%, #CC0001 100%);
  --chapter-hero-overlay: linear-gradient(120deg, rgba(1, 0, 102, 0.92) 0%, rgba(204, 0, 1, 0.75) 100%);
}

body.chapter-malaysia {
  --brand-primary: var(--chapter-secondary);
  --brand-bg: #f8f9fc;
}

body.chapter-malaysia .premium-navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 3px solid var(--chapter-accent);
}

body.chapter-malaysia .navbar-brand span,
body.chapter-malaysia .nav-link:hover,
body.chapter-malaysia .text-primary {
  color: var(--chapter-primary) !important;
}

body.chapter-malaysia .btn-primary,
body.chapter-malaysia .btn-brand {
  background: var(--chapter-gradient) !important;
  border: none !important;
  color: #fff !important;
}

body.chapter-malaysia .btn-outline-primary {
  border-color: var(--chapter-primary) !important;
  color: var(--chapter-primary) !important;
}

body.chapter-malaysia .btn-outline-primary:hover {
  background: var(--chapter-primary) !important;
  color: #fff !important;
}

.chapter-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.chapter-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.chapter-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--chapter-hero-overlay);
}

.chapter-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    45deg,
    #FFD700 0,
    #FFD700 2px,
    transparent 2px,
    transparent 12px
  );
}

.chapter-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.chapter-hero__flag {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.chapter-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.chapter-hero__sub {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 540px;
}

.chapter-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(1, 0, 102, 0.08);
  border-left: 4px solid var(--chapter-accent);
  height: 100%;
}

.chapter-stat-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--chapter-primary);
}

.chapter-leader-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(1, 0, 102, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.chapter-leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(204, 0, 1, 0.15);
}

.chapter-leader-card__photo {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(180deg, #010066 0%, #CC0001 100%);
}

.chapter-leader-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.chapter-leader-card__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--chapter-primary);
  margin-bottom: 0.25rem;
}

.chapter-leader-card__role {
  color: var(--chapter-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.chapter-leader-card__co {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.chapter-section-title {
  font-weight: 800;
  color: var(--chapter-primary);
  letter-spacing: -0.02em;
}

.chapter-section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--chapter-accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.chapter-cta-band {
  background: var(--chapter-gradient);
  color: #fff;
  border-radius: 24px;
  padding: 3rem 2rem;
}

.chapter-scope-toggle .btn.active {
  background: var(--chapter-primary);
  color: #fff;
  border-color: var(--chapter-primary);
}

.chapter-global-link {
  font-size: 0.875rem;
  color: var(--chapter-primary);
}

body.chapter-malaysia .chapter-hero__bg {
  background-image: url('../chapters/malaysia-hero.svg');
}
