:root {
  --frsc-red: #a11d1d;
  --frsc-red-dark: #7a1414;
  --frsc-gold: #c69214;
  --frsc-dark: #1c1f24;
  --frsc-blue: #0fa2d3;
  --frsc-white: #f9fffd;
  --frsc-dark2: #2a2e35;
  --frsc-gray: #f5f6f8;
}

body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #26292f; background: #fff; }
a { text-decoration: none; }

/* ---------- Public top bar / navbar ---------- */
.top-bar { background: var(--frsc-blue); color: #fff; font-size: .82rem; padding: 6px 0; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: #fff; }

.navbar-frsc { background: var(--frsc-blue); box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 12px 0; }
.navbar-frsc .navbar-nav .nav-link { color: var(--frsc-white); font-weight: 600; padding: 8px 14px !important; }
.navbar-frsc .navbar-nav .nav-link:hover, .navbar-frsc .navbar-nav .nav-link.active { color: var(--frsc-red); }
.brand-crest { width: 46px; height: 46px; border-radius: 50%; background: var(--frsc-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-right: 10px; }
.navbar-brand { display: flex; align-items: center; }
.brand-text strong { display: block; color: var(--frsc-white); font-size: 1.02rem; }
.brand-text span { display: block; font-size: .72rem; color: var(--frsc-red); letter-spacing: .04em; }

/* ---------- Homepage hero image carousel ---------- */
#heroCarousel { position: relative; }
#heroCarousel .hero-slide-img { height: 62vh; min-height: 360px; max-height: 620px; object-fit: cover; filter: brightness(0.6); }
#heroCarousel .carousel-caption { bottom: 12%; text-align: left; left: 6%; right: 6%; max-width: 640px; margin: 0; }
#heroCarousel .carousel-caption h2 { font-weight: 800; font-size: 2.1rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
#heroCarousel .carousel-caption p { text-shadow: 0 1px 6px rgba(0,0,0,.5); }
#heroCarousel .carousel-indicators [data-bs-target] { background-color: var(--frsc-gold); }
@media (max-width: 767.98px) {
  #heroCarousel .hero-slide-img { height: 46vh; min-height: 260px; }
  #heroCarousel .carousel-caption h2 { font-size: 1.35rem; }
  #heroCarousel .carousel-caption { bottom: 8%; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--frsc-white) 0%, var(--frsc-white) 100%); color: #4f6c94; padding: 90px 0 70px; }
.hero h1 { font-weight: 800; font-size: 2.6rem; }
.hero .lead { color: var(--frsc-dark); }
.hero-stats .stat { text-align: center; }
.hero-stats .stat h3 { font-weight: 800; color: var(--frsc-gold); margin-bottom: 0; }

.section-title { font-weight: 800; color: var(--frsc-dark); }
.section-title span { color: var(--frsc-red); }
.section-sub { color: #6b7280; max-width: 640px; }

/* ---------- Cards ---------- */
.frsc-card { background: #fff; border: 1px solid #edeef1; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.exec-card { text-align: center; padding: 26px 18px; }
.exec-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid var(--frsc-gray); margin-bottom: 14px; }
.exec-card h6 { font-weight: 700; margin-bottom: 2px; }
.exec-card .pos { color: var(--frsc-red); font-size: .82rem; font-weight: 600; }

.member-card { padding: 20px; text-align: center; }
.member-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }

.news-card img { height: 180px; object-fit: cover; width: 100%; border-radius: 12px 12px 0 0; }

/* ---------- Buttons ---------- */
.btn-frsc-red { background: var(--frsc-red); border-color: var(--frsc-red); color: #fff; font-weight: 600; }
.btn-frsc-red:hover { background: var(--frsc-red-dark); border-color: var(--frsc-red-dark); color: #fff; }
.btn-outline-frsc-red { border: 1px solid var(--frsc-red); color: var(--frsc-red); font-weight: 600; }
.btn-outline-frsc-red:hover { background: var(--frsc-red); color: #fff; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--frsc-blue); color: #fff; padding: 50px 0 20px; margin-top: 60px; }
footer.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
footer.site-footer a { color: #fff; }
footer.site-footer a:hover { color: var(--frsc-gold); }
.footer-bottom { border-top: 1px solid #33373f; margin-top: 30px; padding-top: 16px; font-size: .82rem; text-align: center; color: #00000; }

/* ---------- Auth pages ---------- */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--frsc-dark) 0%, var(--frsc-red-dark) 100%); padding: 20px; }
.auth-card { background: #fff; border-radius: 16px; padding: 40px 34px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card .crest { width: 60px; height: 60px; border-radius: 50%; background: var(--frsc-red); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.4rem; }

/* ---------- Admin / member app shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 250px; background: var(--frsc-dark); color: #c7cad0; flex-shrink: 0; overflow-y: auto; position: sticky; top: 0; height: 100vh; }
.app-sidebar .sidebar-brand { padding: 20px 18px; border-bottom: 1px solid #2f333b; }
.app-sidebar .sidebar-brand strong { display: block; color: #fff; font-size: .95rem; }
.app-sidebar .sidebar-brand span { font-size: .72rem; color: var(--frsc-gold); }
.app-sidebar .nav-section-title { text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; color: #6d717b; padding: 14px 18px 4px; }
.app-sidebar .nav-link { color: #c7cad0; padding: 9px 18px; font-size: .87rem; border-left: 3px solid transparent; }
.app-sidebar .nav-link:hover { background: #262a31; color: #fff; }
.app-sidebar .nav-link.active { background: #262a31; color: #fff; border-left-color: var(--frsc-red); font-weight: 600; }

.app-main { flex: 1; min-width: 0; background: var(--frsc-gray); }
.app-topbar { background: #fff; border-bottom: 1px solid #e9eaec; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 50; }
.app-content { padding: 22px; }
.avatar-sm-fallback { width: 34px; height: 34px; border-radius: 50%; background: var(--frsc-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.stat-card { border-radius: 14px; padding: 20px; color: #fff; position: relative; overflow: hidden; }
.stat-card .icon { font-size: 1.6rem; opacity: .5; position: absolute; right: 16px; top: 16px; }
.stat-card h3 { font-weight: 800; margin-bottom: 2px; }
.stat-card .label { font-size: .8rem; opacity: .9; }
.stat-card.bg-red { background: linear-gradient(135deg, var(--frsc-red), var(--frsc-red-dark)); }
.stat-card.bg-green { background: linear-gradient(135deg, #2f9e5b, #217544); }
.stat-card.bg-dark2 { background: linear-gradient(135deg, #3a3f47, #22252b); }
.stat-card.bg-gold { background: linear-gradient(135deg, var(--frsc-gold), #a97710); }
.stat-card.bg-blue { background: linear-gradient(135deg, #2f6fa8, #1f4d78); }

.table-frsc thead { background: var(--frsc-gray); }
.table-frsc th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; font-weight: 700; }

@media (max-width: 767.98px) {
  .app-sidebar { position: fixed; left: -260px; top: 0; height: 100vh; z-index: 1050; transition: left .2s ease; }
  .app-sidebar.open { left: 0; }
}
