/* =========================
   Core variables
   ========================= */
:root {
  --mhoba-blue: #0066cc;
  --mhoba-blue-dark: #004a99;
  --mhoba-red: #b81414;
  --mhoba-white: #ffffff;
  --mhoba-grey-light: #f2f2f2;
  --mhoba-grey-dark: #1f1f1f;

  --font-heading: "Merriweather", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   Global
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #333;
  margin: 0;
  padding-top: 80px; /* fixed navbar offset */
  background-color: #ffffff;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--mhoba-grey-dark);
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  max-width: 640px;
  margin: 0.5rem auto 0;
  color: #6b7280;
}

.section-tag {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mhoba-blue);
  font-weight: 600;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  padding: 0.6rem 1rem;
}

.navbar .navbar-brand .logo-img {
  width: 38px;
  height: 38px;
}

.brand-text {
  font-weight: 700;
  color: var(--mhoba-blue-dark);
  letter-spacing: 0.04em;
}

.navbar-light .navbar-nav .nav-link {
  color: #111827;
  font-weight: 500;
  margin-left: 0.75rem;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--mhoba-blue);
}

.navbar-light .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--mhoba-red);
  border-radius: 2px;
}

.navbar-toggler-icon {
  color: var(--mhoba-blue-dark);
}

/* =========================
   Layout
   ========================= */
.section-padding {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--mhoba-grey-light) !important;
}

/* =========================
   Hero with slider
   ========================= */
.hero-section {
  position: relative;
  min-height: 80vh;
  color: #0f172a;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-carousel .carousel-item {
  width: 100%;
  height: 100%;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.hero-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.75), rgba(3, 7, 18, 0.3));
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #e5e7eb;
  max-width: 540px;
}

.eyebrow-text {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #bfdbfe;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-buttons .btn {
  margin-top: 0.5rem;
}

.hero-image-placeholder {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 8px solid var(--mhoba-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--mhoba-blue-dark);
  font-size: 4rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

/* =========================
   About
   ========================= */
.about-photo-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mhoba-blue), var(--mhoba-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5f1ff;
  font-size: 3rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  margin: 0 auto;
}

.about-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
}

.about-text {
  font-size: 0.96rem;
  color: #4b5563;
}

/* Governance mini cards */
.mini-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  height: 100%;
}

.mini-card h5 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* =========================
   Pillars
   ========================= */
.pillar-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card h3 {
  font-size: 1.15rem;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: #4b5563;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.06);
  color: var(--mhoba-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* =========================
   Membership
   ========================= */
.membership-section {
  background: linear-gradient(135deg, var(--mhoba-blue-dark), #020617);
  position: relative;
  overflow: hidden;
}

.membership-section::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 20%, #ffffff 0, transparent 55%),
    radial-gradient(circle at 80% 80%, #ffffff 0, transparent 55%);
}

.membership-section > .container {
  position: relative;
  z-index: 1;
}

.membership-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.8rem 1.7rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.membership-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* =========================
   Feature cards (Giving back)
   ========================= */
.feature-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.feature-card p {
  font-size: 0.97rem;
  color: #4b5563;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.icon-circle-alt {
  background: rgba(184, 20, 20, 0.08);
  color: var(--mhoba-red);
}

/* =========================
   Links
   ========================= */
.link-more,
.link-more-sm {
  color: var(--mhoba-blue-dark);
  font-weight: 500;
  text-decoration: none;
}

.link-more-sm {
  font-size: 0.9rem;
}

.link-more:hover,
.link-more-sm:hover {
  color: var(--mhoba-red);
}

/* =========================
   Gallery
   ========================= */
.gallery-thumb {
  position: relative;
  width: 100%;
  padding-top: 70%;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 102, 204, 0.7), rgba(0, 74, 153, 0.85)),
    url("assets/img/gallery-placeholder.jpg") center / cover no-repeat;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.36);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0, transparent 45%);
}

/* =========================
   Resources
   ========================= */
.resource-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-top: 1rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: #4b5563;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.resource-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.08);
  color: var(--mhoba-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* =========================
   Contact
   ========================= */
.contact-section {
  position: relative;
}

.contact-card {
  background: #111827;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.contact-card .form-label {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.contact-card .form-control,
.contact-card .form-select {
  background: #020617;
  border: 1px solid #374151;
  color: #f9fafb;
}

.contact-card .form-control::placeholder {
  color: #6b7280;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: var(--mhoba-blue);
  box-shadow: 0 0 0 0.15rem rgba(0, 102, 204, 0.4);
}

.contact-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: #e5e7eb;
  text-decoration: none;
}

.contact-list a:hover {
  color: #ffffff;
}

/* =========================
   Footer
   ========================= */
.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0;
}

.footer-link {
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--mhoba-blue);
}

.motto {
  font-weight: 600;
  color: #e5e7eb;
}

/* =========================
   Buttons
   ========================= */
.btn-primary {
  background-color: var(--mhoba-blue);
  border-color: var(--mhoba-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--mhoba-blue-dark);
  border-color: var(--mhoba-blue-dark);
}

.btn-outline-primary {
  color: var(--mhoba-blue-dark);
  border-color: var(--mhoba-blue);
}

.btn-outline-primary:hover {
  background-color: var(--mhoba-blue);
  color: #ffffff;
}

/* =========================
   Fade-up helper (kept if you want to use)
   ========================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .hero-section {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .membership-card {
    margin-top: 1.5rem;
  }
}
