/* =====================================================================
   SEF — sefbd.org theme on top of Bootstrap 5.3
   Brand: red #E30613 · green #006A4E · dark green #0F2D24 · light #F3F8F5
   ===================================================================== */
:root {
  --sef-red: #e30613;
  --sef-red-dark: #b8040f;
  --sef-green: #006a4e;
  --sef-green-dark: #004d38;
  --sef-ink: #0f2d24;
  --sef-light: #f3f8f5;
  --sef-mint: #dcefe5;
  --sef-line: #d9e6df;
  --sef-muted: #5a6a63;
  --sef-text: #1b1f1d;
  --sef-radius: 16px;

  --bs-primary: #006a4e;
  --bs-primary-rgb: 0, 106, 78;
  --bs-danger: #e30613;
  --bs-danger-rgb: 227, 6, 19;
  --bs-body-font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: #1b1f1d;
  --bs-link-color: #006a4e;
  --bs-link-hover-color: #e30613;
  --bs-border-color: #d9e6df;
}

body { font-family: var(--bs-body-font-family); color: var(--sef-text); background: #fff; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; color: var(--sef-ink); }
.text-red { color: var(--sef-red) !important; }
.text-green { color: var(--sef-green) !important; }
.text-ink { color: var(--sef-ink) !important; }
.text-soft { color: var(--sef-muted) !important; }
.bg-light-green { background: var(--sef-light) !important; }
.bg-blush { background: #fff5f5 !important; }
.bg-mint { background: var(--sef-mint) !important; }
.bg-ink { background: var(--sef-ink) !important; }
.bg-green-dark { background: var(--sef-green-dark) !important; }
.rounded-sef { border-radius: var(--sef-radius) !important; }
.rounded-xl { border-radius: 24px !important; }

/* Buttons */
.btn { font-weight: 600; }
.btn-primary { --bs-btn-bg: #006a4e; --bs-btn-border-color: #006a4e; --bs-btn-hover-bg: #004d38; --bs-btn-hover-border-color: #004d38; --bs-btn-active-bg: #004d38; }
.btn-danger, .btn-red { --bs-btn-bg: #e30613; --bs-btn-border-color: #e30613; --bs-btn-hover-bg: #b8040f; --bs-btn-hover-border-color: #b8040f; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #b8040f; --bs-btn-active-color: #fff; }
.btn-outline-primary { --bs-btn-color: #006a4e; --bs-btn-border-color: #006a4e; --bs-btn-hover-bg: #006a4e; --bs-btn-hover-border-color: #006a4e; }
.btn-outline-light-sef { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.6); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #0f2d24; }
.btn-dark-green { --bs-btn-bg: #0f2d24; --bs-btn-border-color: #0f2d24; --bs-btn-color: #fff; --bs-btn-hover-bg: #04281e; --bs-btn-hover-border-color: #04281e; --bs-btn-hover-color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.btn-pill { border-radius: 999px; padding-left: 1.4rem; padding-right: 1.4rem; }
.btn-lg.btn-pill { padding: .8rem 1.8rem; }

/* Forms */
.form-control, .form-select { border-color: #cfe3d9; border-radius: 12px; min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--sef-green); box-shadow: 0 0 0 .2rem rgba(0,106,78,.15); }
textarea.form-control { min-height: 140px; }
.form-label { font-weight: 600; }
.req { color: var(--sef-red); }
.form-check-input:checked { background-color: var(--sef-green); border-color: var(--sef-green); }

/* Badges / chips */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--sef-line); color: var(--sef-ink); background: #fff; white-space: nowrap; }
.chip.active, .chip:hover { background: var(--sef-ink); color: #fff; border-color: var(--sef-ink); }
.chip-red { background: #fde8ea; color: var(--sef-red); border-color: #fde8ea; }
.chip-green { background: var(--sef-mint); color: var(--sef-green); border-color: var(--sef-mint); }
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.eyebrow { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--sef-red); }

/* Top bar + navbar */
.topbar { background: var(--sef-green-dark); color: #d9efe6; font-size: .875rem; }
.topbar a { color: #d9efe6; }
.topbar a:hover { color: #fff; }
.navbar-sef { background: #fff; border-bottom: 1px solid #e6ebe8; padding-top: .6rem; padding-bottom: .6rem; }
.navbar-sef .navbar-brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.brand-name { font-weight: 700; color: var(--sef-green); font-size: 1.15rem; line-height: 1.1; }
.brand-sub { font-size: .65rem; letter-spacing: 2px; color: var(--sef-red); font-weight: 600; }
.navbar-sef .nav-link { color: var(--sef-text); font-weight: 500; padding: .5rem .8rem; }
.navbar-sef .nav-link.active, .navbar-sef .nav-link:hover { color: var(--sef-red); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }
.offcanvas-sef .nav-link { font-size: 1.05rem; font-weight: 600; padding: .8rem 0; border-bottom: 1px solid #eef2f0; color: var(--sef-ink); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--sef-ink); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,45,36,.95) 0%, rgba(15,45,36,.75) 55%, rgba(15,45,36,.35) 100%); }
.hero__content { position: relative; padding: 4rem 0; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.15; }
.hero .lead { color: #d9efe6; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; }
@media (min-width: 992px) { .hero__content { padding: 6.5rem 0; } }

/* Page header */
.page-header { background: var(--sef-ink); color: #fff; padding: 3rem 0; }
.page-header h1 { color: #fff; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: #8fb3a3; margin: 0 0 .75rem; }
.page-header .breadcrumb a { color: #cfe8dc; }
.page-header .breadcrumb-item.active { color: #fff; }
@media (min-width: 992px) { .page-header { padding: 4.5rem 0; } }

/* Page header — image variant */
.page-header-img { position: relative; color: #fff; overflow: hidden; background: #04281e; padding: 2.5rem 0 2rem; }
.page-header-img__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-header-img__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,40,30,.35) 0%, rgba(4,40,30,.94) 100%); }
.page-header-img__content { position: relative; }
.page-header-img .breadcrumb { --bs-breadcrumb-divider-color: #8fb3a3; margin: 0 0 .6rem; font-size: .85rem; }
.page-header-img .breadcrumb a { color: #8fb3a3; }
.page-header-img .breadcrumb-item.active { color: #fff; }
.page-header-img .eyebrow-light { display: block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; color: #ff6b74; margin-bottom: .5rem; }
.page-header-img h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin-bottom: .5rem; }
.page-header-img .lead { color: #cfe8dc; max-width: 720px; }
@media (min-width: 992px) { .page-header-img { padding: 3rem 0 3.5rem; } }

/* Section pill tabs */
.section-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem 0; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { flex-shrink: 0; padding: .5rem 1.1rem; border-radius: 999px; background: var(--sef-light); color: var(--sef-ink); font-size: .85rem; font-weight: 600; }
.section-tabs a:hover { color: var(--sef-ink); background: #e6f0eb; }
.section-tabs a.active { background: var(--sef-green); color: #fff; }

/* Numbered goal cards (About mission grid) */
.goal-num-card { background: #fff; border: 1px solid var(--sef-line); border-radius: 18px; padding: 1.35rem; display: flex; flex-direction: column; gap: .75rem; min-height: 150px; height: 100%; box-sizing: border-box; }
.goal-num-card__badge { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; }
.goal-num-card__badge.green { background: var(--sef-mint); color: var(--sef-green); }
.goal-num-card__badge.red { background: #fde8ea; color: var(--sef-red); }
.goal-num-card__text { font-size: 1rem; font-weight: 600; color: var(--sef-text); line-height: 1.4; }
.goal-cta-card { background: var(--sef-red); border-radius: 18px; padding: 1.35rem; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: .4rem; height: 100%; box-sizing: border-box; }

/* Image collage (About intro) */
.collage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.collage-grid .wide { grid-column: span 2; aspect-ratio: 20/9; }
.collage-grid .sq { aspect-ratio: 4/3; }
.collage-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }

/* Leadership card (horizontal, About page) */
.leader-card-h { display: flex; gap: 1.5rem; align-items: center; background: var(--sef-light); border: 1px solid var(--sef-line); border-radius: 24px; padding: 1.5rem; height: 100%; }
.leader-card-h img { width: 140px; height: 170px; object-fit: cover; object-position: top; border-radius: 16px; flex-shrink: 0; }
@media (max-width: 575.98px) { .leader-card-h { flex-direction: column; text-align: center; } .leader-card-h img { width: 130px; height: 160px; } }
.leader-card-h .role { font-size: .8rem; font-weight: 700; color: var(--sef-red); }
.leader-card-h .name { font-size: 1.4rem; font-weight: 700; color: var(--sef-ink); }
.leader-card-h .bio { font-size: .92rem; color: var(--sef-muted); line-height: 1.6; }
.leader-social { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--sef-line); display: inline-flex; align-items: center; justify-content: center; color: var(--sef-green); }

/* Member profile */
.profile-hero { height: 180px; position: relative; overflow: hidden; background: var(--sef-ink); border-radius: 0; }
@media (min-width: 992px) { .profile-hero { height: 220px; } }
.profile-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .6; display: block; }
.profile-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,40,30,.4) 0%, rgba(4,40,30,.92) 100%); }
.profile-side { background: #fff; border: 1px solid var(--sef-line); border-radius: 24px; padding: 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(15,45,36,.08); margin-top: -70px; position: relative; z-index: 1; }
.profile-side img.avatar-xl { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.15); margin-top: -70px; }

/* Album tile (Gallery index) */
.album-tile { position: relative; height: 260px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
@media (min-width: 992px) { .album-tile { height: 300px; } }
.album-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.album-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,45,36,0) 35%, rgba(15,45,36,.92) 100%); }
.album-tile .tile-count { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: .3rem .8rem; border-radius: 999px; }
.album-tile .tile-body { position: relative; z-index: 1; padding: 1.1rem; }
.album-tile .tile-cat { display: block; font-size: .72rem; font-weight: 700; color: #ff6b74; margin-bottom: .2rem; }
.album-tile .tile-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; display: block; }
.album-tile .tile-date { font-size: .78rem; color: #cfe8dc; }

.gallery-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gallery-grid-6 img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
@media (min-width: 576px) { .gallery-grid-6 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .gallery-grid-6 { grid-template-columns: repeat(6, 1fr); gap: .65rem; } }

.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.album-grid .big { grid-column: span 2; aspect-ratio: 4/3; }
.album-grid a:not(.big) { aspect-ratio: 1; }
.album-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
@media (min-width: 576px) { .album-grid { grid-template-columns: repeat(4, 1fr); } .album-grid .big { grid-row: span 2; aspect-ratio: auto; } }

/* Detail info chip */
.detail-chip { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--sef-light); border-radius: 14px; }
.detail-chip__icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--sef-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.detail-chip .l1 { font-size: .72rem; color: #7a8a83; display: block; }
.detail-chip .l2 { font-size: .92rem; font-weight: 700; color: var(--sef-ink); }

/* Category detail list row */
.cat-row-card { display: flex; gap: 1.25rem; background: #fff; border: 1px solid var(--sef-line); border-radius: 20px; padding: .75rem; align-items: center; color: var(--sef-text); }
.cat-row-card img { width: 220px; height: 150px; object-fit: cover; border-radius: 14px; flex-shrink: 0; display: block; }
@media (max-width: 767.98px) { .cat-row-card { flex-direction: column; align-items: stretch; } .cat-row-card img { width: 100%; height: 180px; } }
.other-cat-list a { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #e0eae5; font-size: .95rem; color: var(--sef-text); }
.other-cat-list a.active { color: var(--sef-red); font-weight: 700; }
.other-cat-list a:last-child { border-bottom: 0; }

/* Contact tile v2 (icon left, on light card) */
.contact-tile2 { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--sef-light); color: var(--sef-text); }
.contact-tile2__icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; flex: 0 0 48px; }

/* Step card (How-To-Join) */
.step-card { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 1px solid var(--sef-line); border-radius: 20px; padding: 1.5rem; }
.step-card__no { width: 56px; height: 56px; border-radius: 16px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; flex-shrink: 0; }
.faq-item { padding: 1rem 0; border-bottom: 1px solid #e0eae5; }
.faq-item__q { font-weight: 700; color: var(--sef-ink); margin-bottom: .3rem; }
.faq-item__a { font-size: .9rem; color: var(--sef-muted); }
.side-card { border-radius: 20px; padding: 1.5rem; }
.side-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin-bottom: .7rem; }
.side-check:last-child { margin-bottom: 0; }
.side-check__dot { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; color: #fff; font-size: .7rem; }

/* Rule cards (Code of Conduct) */
.rule-card { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--sef-line); border-radius: 18px; padding: 1.35rem; margin-bottom: 1rem; }
.rule-card__no { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; flex-shrink: 0; }
.rule-card__title { font-size: 1.15rem; font-weight: 700; color: var(--sef-ink); margin-bottom: .35rem; }
.rule-card__text { font-size: .92rem; color: var(--sef-muted); line-height: 1.7; }
.penalty-step { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .8rem; }
.penalty-step:last-child { margin-bottom: 0; }
.penalty-step__no { width: 26px; height: 26px; border-radius: 999px; background: var(--sef-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }

/* Section heading */
.section { padding: 3.5rem 0; }
@media (min-width: 992px) { .section { padding: 5.5rem 0; } }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Cards */
.card-sef { border: 1px solid var(--sef-line); border-radius: var(--sef-radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; height: 100%; }
.card-sef:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,45,36,.10); }
.card-sef .card-img-top { aspect-ratio: 16/10; object-fit: cover; }
.card-sef .card-body { padding: 1.1rem 1.2rem; }
.card-sef .card-title { font-size: 1.1rem; font-weight: 700; color: var(--sef-ink); }
.card-sef .card-title a { color: inherit; }
.card-sef .card-title a:hover { color: var(--sef-red); }
.card-meta { font-size: .8rem; color: var(--sef-muted); display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.card-sef.story .card-img-top { aspect-ratio: 4/5; }

/* Activity hub bento */
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; border-radius: 20px; overflow: hidden; color: #fff; background: var(--sef-ink); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .35s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,45,36,0) 20%, rgba(15,45,36,.92) 100%); }
.cat-card__body { position: relative; z-index: 1; padding: 1.25rem; }
.cat-card__no { font-size: .8rem; letter-spacing: 2px; color: #cfe8dc; }
.cat-card__title { color: #fff; font-size: 1.15rem; font-weight: 700; margin: .25rem 0; }
.cat-card__desc { color: #cfe8dc; font-size: .85rem; }
.cat-card.lg { min-height: 300px; }
@media (min-width: 992px) { .cat-card.lg { min-height: 100%; } .cat-card.lg .cat-card__title { font-size: 1.6rem; } }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bento-big { grid-column: span 2 / span 2; border-radius: 20px; padding: 1.75rem; box-sizing: border-box; display: flex; flex-direction: column; gap: .9rem; color: #fff; position: relative; overflow: hidden; min-height: 260px; background: linear-gradient(135deg, var(--sef-red) 0%, #9c0a14 100%); }
@media (min-width: 768px) { .bento-big { grid-row: span 2 / span 2; padding: 2.25rem; } }
.bento-big::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 999px; background: rgba(255,255,255,.08); }
.bento-big::after { content: ""; position: absolute; right: 40px; bottom: -80px; width: 180px; height: 180px; border-radius: 999px; background: rgba(255,255,255,.06); }
.bento-big__head { position: relative; display: flex; justify-content: space-between; align-items: center; }
.bento-big__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.bento-big__tag { position: relative; font-size: .8rem; font-weight: 700; color: #ffd9dc; letter-spacing: 1px; }
.bento-big__title { position: relative; font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.bento-big__desc { position: relative; font-size: .9rem; line-height: 1.6; color: #ffd9dc; }
.bento-big__pills { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; }
.bento-big__pills span { font-size: .75rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.16); }
.bento-big__cta { position: relative; margin-top: auto; align-self: flex-start; background: #fff; color: var(--sef-red); padding: .65rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.bento-mini { background: #fff; border: 1px solid var(--sef-line); border-radius: 20px; padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; color: var(--sef-text); min-height: 180px; }
.bento-mini__head { display: flex; justify-content: space-between; align-items: center; }
.bento-mini__icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.bento-mini__icon.green { background: var(--sef-mint); color: var(--sef-green); }
.bento-mini__icon.red { background: #fde8ea; color: var(--sef-red); }
.bento-mini__no { font-size: .75rem; font-weight: 700; color: #9aa8a2; letter-spacing: 1px; }
.bento-mini__title { font-size: 1.05rem; font-weight: 700; color: var(--sef-ink); line-height: 1.3; }
.bento-mini__desc { font-size: .82rem; color: var(--sef-muted); line-height: 1.5; }
.bento-mini__link { margin-top: auto; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.bento-mini__link.green { color: var(--sef-green); }
.bento-mini__link.red { color: var(--sef-red); }
.bento-mini.wide { grid-column: span 2 / span 2; }
@media (min-width: 768px) { .bento-mini.wide { grid-column: span 2 / span 2; } }

.activity-tile { position: relative; height: 260px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
@media (min-width: 992px) { .activity-tile { height: 300px; } }
.activity-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,45,36,0) 30%, rgba(15,45,36,.92) 100%); }
.activity-tile .tile-cat { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: .72rem; font-weight: 700; color: #fff; background: var(--sef-red); padding: .3rem .8rem; border-radius: 999px; }
.activity-tile .tile-body { position: relative; z-index: 1; padding: 1.1rem; }
.activity-tile .tile-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; display: block; }
.activity-tile .tile-meta { font-size: .78rem; color: #cfe8dc; }

/* Icon feature */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--sef-mint); color: var(--sef-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.feature__icon.red { background: #fde8ea; color: var(--sef-red); }

.feature-h { display: flex; align-items: center; gap: 1rem; background: var(--sef-light); border-radius: 16px; padding: 1.1rem 1.2rem; height: 100%; }
.feature-h__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sef-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: 0 0 44px; }
.feature-h__icon.red { background: var(--sef-red); }
.feature-h__title { font-weight: 700; color: var(--sef-ink); font-size: 1rem; }
.feature-h__desc { font-size: .82rem; color: var(--sef-muted); }

/* CEO message */
.ceo-photo { border-radius: 24px; box-shadow: 14px 14px 0 var(--sef-mint); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.ceo-quote { font-size: 1.15rem; line-height: 1.8; color: #3d4a44; }
.ceo-quote::before { content: "\201C"; font-size: 4rem; line-height: 0; color: var(--sef-red); display: block; margin: 1.5rem 0 .5rem; }
.leader-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--sef-line); border-radius: 16px; padding: 1rem; }
.leader-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

.ceo-photo-wrap { position: relative; display: block; max-width: 320px; margin: 0 auto; }
.ceo-photo-wrap .ceo-photo { box-shadow: 14px 14px 0 var(--sef-red); }
.ceo-badge { position: absolute; left: 1rem; bottom: -1.25rem; background: #fff; border-radius: 14px; padding: .6rem .9rem; display: flex; align-items: center; gap: .6rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100% - 2rem); }
.ceo-badge img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ceo-badge .t1 { font-size: .78rem; font-weight: 700; color: var(--sef-ink); }
.ceo-badge .t2 { font-size: .7rem; color: var(--sef-muted); }
.ceo-quote-mark { color: var(--sef-red); opacity: .9; margin-bottom: .25rem; }

/* Mission goals */
.goal-item { display: flex; gap: .75rem; align-items: flex-start; background: var(--sef-light); border-radius: 12px; padding: .85rem 1rem; height: 100%; }
.goal-item__check { width: 24px; height: 24px; border-radius: 50%; background: var(--sef-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; margin-top: .1rem; }
.goal-item__text { font-size: .95rem; line-height: 1.5; color: var(--sef-text); }

/* Ads */
.ad-slot { border: 1px dashed #cfe3d9; border-radius: 16px; overflow: hidden; background: var(--sef-light); position: relative; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; display: block; }
.ad-slot .ad-tag { position: absolute; top: .6rem; left: .6rem; background: rgba(15,45,36,.75); color: #fff; font-size: .7rem; padding: .2rem .55rem; border-radius: 999px; letter-spacing: 1px; }
.ad-empty { border: 1px dashed #9cc4b4; border-radius: 16px; background: #fff; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #2f6b56; text-align: center; padding: 1.5rem; aspect-ratio: 16/9; }
.ad-empty__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sef-mint); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--sef-green); }

/* Blog feature */
.blog-feature { position: relative; border-radius: 24px; overflow: hidden; color: #fff; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--sef-green-dark); }
@media (min-width: 992px) { .blog-feature { min-height: 100%; } }
.blog-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,45,36,0) 25%, rgba(15,45,36,.95) 100%); }
.blog-feature .blog-tag { position: relative; z-index: 1; align-self: flex-start; margin: 1.25rem 0 0 1.25rem; font-size: .75rem; font-weight: 700; background: var(--sef-green); padding: .4rem .85rem; border-radius: 999px; display: flex; align-items: center; gap: .4rem; }
.blog-feature .blog-body { position: relative; z-index: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.blog-feature .blog-body .eyebrow-light { font-size: .8rem; font-weight: 700; color: #ff6b74; }
.blog-feature .blog-body .blog-title { font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
.blog-feature .blog-body .blog-desc { font-size: .9rem; color: #cfe8dc; }

.blog-row { display: flex; gap: 1rem; align-items: center; background: var(--sef-light); border-radius: 18px; padding: .8rem; height: 100%; }
.blog-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; flex: 0 0 88px; }
@media (min-width: 576px) { .blog-row img { width: 120px; height: 120px; flex-basis: 120px; } }
.blog-row__cat { font-size: .75rem; font-weight: 700; color: var(--sef-red); }
.blog-row__title { font-size: 1rem; font-weight: 700; color: var(--sef-ink); line-height: 1.35; }
.blog-row__excerpt { font-size: .82rem; color: var(--sef-muted); }

/* Stats CTA */
.stat-box { background: rgba(255,255,255,.14); border-radius: 16px; padding: 1.25rem; color: #fff; }
.stat-box__value { font-size: 1.7rem; font-weight: 700; line-height: 1; }
@media (min-width: 992px) { .stat-box__value { font-size: 2.1rem; } }
.stat-box__label { font-size: .82rem; color: #ffd9dc; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 1030; font-size: 1.5rem; }
.wa-float:hover { color: #fff; filter: brightness(1.06); }

/* Partner */
.partner-box { background: var(--sef-ink); color: #cfe8dc; border-radius: 24px; padding: 2.5rem; }
.partner-box img { width: 120px; height: 120px; object-fit: cover; border-radius: 24px; background: #fff; padding: .5rem; }
.partner-box h3 { color: #fff; }

.partner-box2 { border-radius: 24px; overflow: hidden; background: var(--sef-light); border: 1px solid var(--sef-line); display: flex; flex-direction: column; }
@media (min-width: 768px) { .partner-box2 { flex-direction: row; } }
.partner-box2__badge { background: var(--sef-green); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .partner-box2__badge { flex: 0 0 260px; } }
.partner-box2__logo { width: 140px; height: 140px; border-radius: 50%; background: #fff; padding: .5rem; box-shadow: 0 12px 32px rgba(0,0,0,.2); box-sizing: border-box; }
.partner-box2__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.partner-box2__body { padding: 1.75rem; }
.founder-chip { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--sef-line); border-radius: 999px; padding: .35rem .9rem .35rem .35rem; font-size: .82rem; }
.founder-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery-grid a { display: block; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.album-card .card-img-top { aspect-ratio: 4/3; }

/* Members */
.member-card { text-align: center; border: 1px solid var(--sef-line); border-radius: 18px; padding: 1.5rem 1rem; background: #fff; height: 100%; }
.member-card img, .avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--sef-mint); }
.avatar-lg { width: 150px; height: 150px; border: 6px solid #fff; }
.profile-cover { background: var(--sef-green-dark); height: 180px; border-radius: 24px 24px 0 0; }
.member-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--sef-light); padding: .2rem .6rem; border-radius: 999px; }

/* Auth cards */
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; background: var(--sef-light); padding: 2rem 0; }
.auth-card { background: #fff; border-radius: 24px; padding: 2rem; border: 1px solid var(--sef-line); }
@media (min-width: 768px) { .auth-card { padding: 2.75rem; } }
.auth-side { background: var(--sef-ink); color: #cfe8dc; border-radius: 24px; padding: 2.5rem; height: 100%; }
.auth-side h2 { color: #fff; }

/* Step list */
.step { display: flex; gap: 1rem; }
.step__no { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--sef-red); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Dashboard (member) */
.dash-nav .list-group-item { border: 0; border-radius: 12px !important; margin-bottom: .25rem; font-weight: 600; color: var(--sef-ink); }
.dash-nav .list-group-item.active { background: var(--sef-mint); color: var(--sef-green); }
.dash-nav .list-group-item i { width: 24px; }
.dash-nav-link { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 12px; color: #fff; font-size: .92rem; font-weight: 600; }
.dash-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-nav-link.active { background: var(--sef-red); color: #fff; }
.dash-nav-link i { width: 20px; text-align: center; }

/* Article */
.article-body { font-size: 1.05rem; line-height: 1.9; color: #2b3531; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-cover { border-radius: 24px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-frame { aspect-ratio: 16/9; border-radius: 24px; background: var(--sef-ink); display: flex; align-items: center; justify-content: center; color: #fff; position: relative; overflow: hidden; }
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.video-frame .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--sef-red); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sef-light); color: var(--sef-ink); }
.share-btn:hover { background: var(--sef-ink); color: #fff; }

/* Footer */
.footer { background: var(--sef-ink); color: #cfe8dc; padding: 3.5rem 0 1.5rem; }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer a { color: #cfe8dc; }
.footer a:hover { color: #fff; }
.footer .list-unstyled li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #8fb3a3; }
.social { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; }
.social:hover { background: var(--sef-red); color: #fff; }

/* Contact */
.contact-tile { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--sef-light); color: var(--sef-text); }
.contact-tile__icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; flex: 0 0 48px; }

/* 404 */
.err-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; color: var(--sef-mint); line-height: 1; }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin-body { background: #f3f6f4; }
.admin-sidebar { width: 260px; background: var(--sef-ink); color: #cfe8dc; min-height: 100vh; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 1040; transition: transform .25s; }
.admin-sidebar .brand { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; color: #fff; }
.admin-sidebar .brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.admin-sidebar .nav-link { display: flex; align-items: center; gap: .75rem; color: #cfe8dc; padding: .7rem 1.25rem; font-weight: 500; border-radius: 12px; margin: .1rem .75rem; }
.admin-sidebar .nav-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-sidebar .nav-link.active { background: var(--sef-red); color: #fff; }
.admin-sidebar .nav-link .badge { margin-left: auto; background: rgba(255,255,255,.18); }
.admin-sidebar .nav-link.active .badge { background: rgba(255,255,255,.3); }
.admin-main { margin-left: 260px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--sef-line); padding: .75rem 1.25rem; position: sticky; top: 0; z-index: 1020; }
.admin-topbar .search { max-width: 360px; }
.admin-content { padding: 1.25rem; flex: 1; }
@media (min-width: 992px) { .admin-content { padding: 1.75rem 2rem; } }
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); box-shadow: 0 0 0 100vw rgba(15,45,36,.45); }
  .admin-main { margin-left: 0; }
}
.stat-card { background: #fff; border: 1px solid var(--sef-line); border-radius: 16px; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; height: 100%; }
.stat-card__icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--sef-mint); color: var(--sef-green); flex: 0 0 52px; }
.stat-card__icon.red { background: #fde8ea; color: var(--sef-red); }
.stat-card__value { font-size: 1.6rem; font-weight: 700; color: var(--sef-ink); line-height: 1; }
.stat-card__label { font-size: .85rem; color: var(--sef-muted); }
.panel { background: #fff; border: 1px solid var(--sef-line); border-radius: 16px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #eef2f0; flex-wrap: wrap; }
.panel__title { font-weight: 700; margin: 0; font-size: 1.05rem; }
.panel__body { padding: 1.25rem; }
.table-sef { margin: 0; }
.table-sef th { font-size: .8rem; color: var(--sef-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; border-bottom-color: var(--sef-line) !important; white-space: nowrap; }
.table-sef td { vertical-align: middle; padding: .8rem .75rem; border-color: #eef2f0; }
.table-sef .avatar-sm { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.status { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-ok { background: var(--sef-mint); color: var(--sef-green); }
.status-warn { background: #fff4d6; color: #8a5a00; }
.status-off { background: #eef2f0; color: #5a6a63; }
.status-bad { background: #fde8ea; color: var(--sef-red); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.tab-pills .nav-link { border-radius: 999px; color: var(--sef-ink); font-weight: 600; padding: .45rem 1rem; border: 1px solid var(--sef-line); margin-right: .35rem; margin-bottom: .35rem; }
.tab-pills .nav-link.active { background: var(--sef-ink); color: #fff; border-color: var(--sef-ink); }
.upload-box { border: 2px dashed #cfe3d9; border-radius: 16px; padding: 2rem 1rem; text-align: center; color: var(--sef-muted); background: var(--sef-light); }
.toolbar { display: flex; gap: .35rem; border: 1px solid #cfe3d9; border-bottom: 0; border-radius: 12px 12px 0 0; padding: .5rem; background: var(--sef-light); }
.toolbar .btn { width: 36px; height: 36px; padding: 0; }
.toolbar + textarea { border-radius: 0 0 12px 12px; }
.quick-type { border: 2px solid #cfe3d9; border-radius: 14px; background: #fff; padding: .9rem .5rem; text-align: center; font-weight: 700; color: #3d4a44; cursor: pointer; }
.quick-type i { font-size: 1.4rem; display: block; margin-bottom: .25rem; }
.btn-check:checked + .quick-type { border-color: var(--sef-red); background: #fde8ea; color: var(--sef-red); }
.admin-login { min-height: 100vh; background: var(--sef-ink); display: flex; align-items: center; }
.menu-tree .item { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--sef-line); border-radius: 12px; padding: .6rem .9rem; margin-bottom: .5rem; }
.menu-tree .item.child { margin-left: 2rem; }
.sortable-handle { color: #9aa8a2; cursor: grab; }
.color-swatch { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--sef-line); }
.min-w-0 { min-width: 0 !important; }
