:root {
  --brm-orange: #F58220;
  --brm-orange-dark: #d96e12;
  --brm-green: #0B6E2C;
  --brm-green-dark: #085221;
  --brm-cream: #FFF8F1;
  --brm-ink: #22281f;
  --brm-ink-soft: #55524c;

  /* Baloo Thambi 2 + Hind Madurai: both render Tamil and Latin natively, so headings
     and body copy stay visually consistent across the site's bilingual content
     instead of Tamil silently falling back to a generic system font. */
  --font-display: 'Baloo Thambi 2', 'Noto Sans Tamil', system-ui, sans-serif;
  --font-body: 'Hind Madurai', 'Noto Sans Tamil', system-ui, sans-serif;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--brm-cream);
  color: var(--brm-ink);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.section-title, .navbar-brm .brand-title, .stat-value {
  font-family: var(--font-display);
}

/* Pushes the footer to the bottom of the viewport on short pages (login, contact, etc.)
   instead of letting it float up right after the content. */
body > .container {
  flex: 1 0 auto;
}

.footer-brm {
  flex-shrink: 0;
}

.navbar-brm {
  background: linear-gradient(90deg, var(--brm-green) 0%, var(--brm-green-dark) 100%);
}

.navbar-brm .navbar-brand,
.navbar-brm .nav-link {
  color: #fff !important;
}

.navbar-brm .brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-brm .nav-link:hover,
.navbar-brm .nav-link.active {
  color: var(--brm-orange) !important;
}

.navbar-brm .brand-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  margin-right: 8px;
}

.btn-brm-primary {
  background-color: var(--brm-orange);
  border-color: var(--brm-orange);
  color: #fff;
}

.btn-brm-primary:hover {
  background-color: var(--brm-orange-dark);
  border-color: var(--brm-orange-dark);
  color: #fff;
}

.btn-brm-secondary {
  background-color: var(--brm-green);
  border-color: var(--brm-green);
  color: #fff;
}

.btn-brm-secondary:hover {
  background-color: var(--brm-green-dark);
  border-color: var(--brm-green-dark);
  color: #fff;
}

.badge-status-pending { background-color: #f0ad4e; }
.badge-status-approved { background-color: var(--brm-green); }
.badge-status-rejected { background-color: #b02a2a; }

.card-brm {
  border: 1px solid rgba(11, 110, 44, 0.15);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-brm {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,0.16) 0%, transparent 55%),
    linear-gradient(135deg, var(--brm-orange) 0%, var(--brm-green-dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  overflow: hidden;
}
.hero-brm h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-wrap: balance;
}
.hero-brm .lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* "What We Do" — icon medallion cards */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.row > div:nth-child(odd) .feature-icon {
  background: rgba(11, 110, 44, 0.1);
  color: var(--brm-green);
}
.row > div:nth-child(even) .feature-icon {
  background: rgba(245, 130, 32, 0.12);
  color: var(--brm-orange-dark);
}
.feature-card h6 {
  font-size: 1rem;
  margin: 0;
}
.feature-card:hover {
  transform: translateY(-3px);
}
.feature-card {
  transition: transform 0.2s ease;
}

/* News / Events sidebar */
.news-sidebar-title {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--brm-cream);
  padding-bottom: 0.75rem;
}
.news-chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.news-chip-event { background: #FFF3E0; color: #C97400; }
.news-chip-achievement { background: #E9F6EC; color: var(--brm-green); }
.news-chip-news { background: #EAF0FE; color: #3A56D4; }
.news-sidebar-item {
  border-radius: 10px;
  padding: 0.6rem;
  margin: 0 -0.6rem;
  transition: background-color 0.15s ease;
}
.news-sidebar-item:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.4rem;
  padding-bottom: 1rem;
}
.news-sidebar-item:hover {
  background-color: rgba(11, 110, 44, 0.05);
}
.news-sidebar-item h6 {
  font-size: 0.92rem;
  line-height: 1.35;
}
.news-sidebar-item p {
  color: var(--brm-ink-soft);
  line-height: 1.5;
}

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

.footer-brm {
  background-color: var(--brm-green);
  color: #f2f2f2;
}

.footer-brm a {
  color: #ffe0bd;
}

.stat-tile {
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 6px solid #ccc;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.stat-tile .stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #55524c;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stat-tile .stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 0.15rem;
}

.stat-tile-blue   { background: #EAF0FE; border-left-color: #3A56D4; }
.stat-tile-blue   .stat-value { color: #3A56D4; }
.stat-tile-green  { background: #E9F6EC; border-left-color: var(--brm-green); }
.stat-tile-green  .stat-value { color: var(--brm-green); }
.stat-tile-orange { background: #FFF3E0; border-left-color: #C97400; }
.stat-tile-orange .stat-value { color: #C97400; }
.stat-tile-red    { background: #FDEAEC; border-left-color: #C6273A; }
.stat-tile-red    .stat-value { color: #C6273A; }

.photo-crop-frame {
  width: 180px;
  height: 240px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--brm-orange);
  border-radius: 6px;
  background: #eee;
  cursor: move;
  touch-action: none;
}

.photo-crop-frame img {
  position: absolute;
  left: 0;
  top: 0;
  user-select: none;
  max-width: none;
}

.table-brm thead {
  background-color: var(--brm-green);
  color: #fff;
}

.thumb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}

.thumb-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9e2d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a89f8f;
  font-size: 0.65rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.lang-block + .lang-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(11,110,44,0.25);
}

@media (max-width: 576px) {
  .hero-brm { padding: 1.5rem 1rem; }
}

.news-sidebar {
  top: 12px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .no-print {
    display: none !important;
  }
  body, .container {
    background: #fff !important;
  }
}

/* Plain, formal "statement" layout — deliberately square-cornered and compact,
   and immune to Bootstrap's grid-column print-collapse bug that the old
   rounded stat-tile cards were hitting. */
.stmt-header {
  border: 1px solid rgba(11, 110, 44, 0.2);
  border-radius: 0;
  padding: 1rem;
  margin-bottom: 1rem;
}
.stmt-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e2d8;
}
.stmt-summary-item {
  min-width: 140px;
}
.stmt-summary-label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
}
.stmt-summary-value {
  font-size: 1.15rem;
  font-weight: 800;
}
.stmt-table {
  border: 1px solid rgba(11, 110, 44, 0.2);
  border-radius: 0;
  overflow: hidden;
}
@media print {
  .stmt-header, .stmt-table {
    border-color: #999;
  }
}

.pagination .page-link {
  color: var(--brm-green);
}
.pagination .page-link:hover {
  color: var(--brm-orange-dark);
  background-color: var(--brm-cream);
}
.pagination .page-item.active .page-link {
  background-color: var(--brm-green);
  border-color: var(--brm-green);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #b8b3a6;
}
