/* Ported verbatim from website-landingpage CSS modules (own codebase). */
/* Class names de-scoped: .<prefix>-<localName> */

/* ===== TopHeader.module.css (th-) ===== */
.th-topHeader {
  background-color: var(--color-primary);
  border-bottom: 1px solid var(--mantine-color-gray-2);
  padding: 8px 0;
  color: white;
}

.th-header {
  background-color: var(--color-primary);
  border-bottom: 1px solid var(--mantine-color-gray-2);
  padding: 8px clamp(16px, 4vw, 32px);
  color: white;
}

.th-wrapper {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.th-container {
  background-color: var(--color-primary);
  max-width: var(--mantine-container-size-xl);
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 16px);
}

.th-rightSection {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.th-orgName {
  color: white !important;
  font-weight: 700;
}

.th-contactItem {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.th-contactIcon {
  color: rgb(0, 0, 0);
}

.th-contactText {
  color: white;
  text-decoration: none;
  font-size: 12px;
}

.th-contactText:hover {
  text-decoration: underline;
}

.th-joinButton {
  padding: 4px 8px;
  font-size: 12px;

  color: var(--color-primary-light);
  background-color: var(--mantine-color-orange-filled);
}

.th-joinButton:hover {
  background-color: var(--color-gray-100);
}

.th-socialLinks {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  gap: 12px;
}

.th-socialIcon {
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.th-socialIcon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.th-socialIcon:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile styles */
@media (max-width: 768px) {
  .th-topHeader,
  .th-header {
    padding: 4px clamp(12px, 3vw, 24px);
    border-bottom: none;
    height: auto;
    min-height: 40px;
    max-height: none;
  }

  .th-container {
    padding: 0 clamp(8px, 2vw, 16px);
    margin: 0;
  }

  .th-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px clamp(8px, 2vw, 16px);
    min-height: 40px;
    height: auto;
  }

  .th-orgName {
    font-size: 11px;
    margin: 0;
    padding: 0;
    text-align: center;
    order: 1;
  }

  .th-orgName:after {
    content: " | " attr(data-tagline);
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 10px;
  }

  .th-socialLinks {
    display: flex; /* Show social links again */
    gap: 6px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    order: 3;
  }

  .th-socialIcon {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
  }

  .th-rightSection {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    order: 2;
    justify-content: center;
    align-items: center;
  }

  .th-contactItem {
    display: flex; /* Show both email and phone */
  }

  .th-contactText {
    font-size: 9px;
    padding: 0;
    margin: 0;
  }

  .th-contactIcon {
    width: 12px;
    height: 12px;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .th-slogan {
    display: block;
  }

  .th-orgName:after {
    /* tagline rendered inline from Site branding settings (localized) */
    content: "";
  }

  .th-wrapper {
    padding: 8px clamp(16px, 2vw, 24px);
  }

  .th-rightSection {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .th-wrapper {
    padding: 3px clamp(6px, 2vw, 12px);
    gap: 2px;
    min-height: 36px;
  }

  .th-orgName {
    font-size: 10px;
  }

  .th-orgName:after {
    content: " | " attr(data-tagline);
    margin-left: 3px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 9px;
  }

  .th-contactText {
    font-size: 8px;
  }

  .th-contactIcon {
    width: 10px;
    height: 10px;
  }

  .th-rightSection {
    gap: 10px;
  }
}

/* ===== HeaderMenu.module.css (hm-) ===== */
.hm-header {
  height: 90px;
  width: 100%;
  /* background-color: var(--mantine-color-body); */
  background-color: #fffdff;
  border-bottom: 1px solid var(--mantine-color-gray-3);
  z-index: 100;
}

/* Make header sticky o/* Enhance drawer content scrolling */
.hm-drawerContent {
  max-height: 100vh;
  overflow-y: auto;
  padding: var(--spacing-4);
  padding-bottom: var(--spacing-8);
  -webkit-overflow-scrolling: touch;
}

.hm-drawerHeader {
  padding: var(--spacing-4);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  border-bottom: 1px solid var(--color-gray-200);
  background-color: var(--color-background);
  position: sticky;
  top: 0;
  z-index: 10;
}

@media (min-width: 992px) {
  .hm-header {
    position: sticky;
    top: 0;
  }
}

.hm-inner {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

}

@media (max-width: 768px) {
  .hm-inner {
    padding: 5px var(--mantine-spacing-md);
    min-height: 45px;
    gap: 8px;
  }

  .hm-header {
    height: 50px;
    min-height: 50px;
    width: 100%;
    /* reduced from 60px for better mobile experience */
  }

  .hm-mobileGroup {
    display: flex;
    align-items: center;
  }
}

.hm-links {
  @media (min-width: 62em) {
    display: flex;
    gap: var(--mantine-spacing-xs);
  }
}

.hm-search {
  width: 250px;
  display: none;

  @media (min-width: 992px) {
    /* md breakpoint */
    display: block;
  }
}

.hm-searchContainer {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.hm-desktopGroup {
  display: none;

  @media (min-width: 992px) {
    /* md breakpoint */
    display: flex;
    align-items: center;
    gap: var(--mantine-spacing-md);
  }
}

.hm-mobileGroup {
  display: flex;
  align-items: center;
  gap: var(--mantine-spacing-sm);

  @media (min-width: 992px) {
    /* md breakpoint */
    display: none;
  }
}

.hm-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--mantine-font-size-sm);
  /* color: var(--mantine-color-gray-7); */
  color: var(--color-primary);
  padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
  font-weight: 1000;
  border-radius: var(--mantine-radius-sm);
  transition: all var(--transition-normal);

  &:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
  }
}

.hm-dropdownLink {
  text-decoration: none;
  font-size: var(--mantine-font-size-sm);
  color: var(--color-primary);
  padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
  font-weight: 1000;
  display: block;
  width: 100%;
  transition: all var(--transition-normal);

  &:hover {

    background-color: var(--color-primary);
    color: var(--color-background);
  }
}

.hm-mobileSearch {
  display: block;
  width: calc(100% - 2rem);
  margin: 1rem;
  padding: 16px;

  @media (min-width: 992px) {
    /* md breakpoint */
    display: none;
  }
}

/* Remove the problematic drawer styles */

/* Mobile Enhancements */
.hm-mobileDrawer {
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll on iOS */
  width: 85vw !important;
  /* Increase width for better mobile experience */
  min-width: 320px !important;
  /* Minimum width for usability */
  max-width: 400px !important;
  /* Maximum width for larger screens */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  background-color: var(--color-background);
  z-index: 1000;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.hm-mobileNavigation {
  padding: var(--spacing-4);
}

.hm-mobileMenuItem {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);

  &:active {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: scale(0.98);
  }
}

.hm-mobileSubMenu {
  margin-left: var(--spacing-4);
  border-left: 2px solid var(--color-primary);
  padding-left: var(--spacing-2);
}

/* Enhance touch targets */
.hm-mobileGroup {
  padding: var(--spacing-2);

  button {
    min-height: 44px;
    /* iOS minimum touch target */
    min-width: 44px;
  }
}

/* Update mobile search for better spacing */
.hm-mobileSearch {
  padding: var(--spacing-4);
  position: sticky;
  top: 0;
  background: var(--color-background);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* Enhance drawer content scrolling */
.hm-drawerContent {
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--spacing-8);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.hm-drawerHeader {
  padding: var(--spacing-4);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  border-bottom: 1px solid var(--color-gray-200);
  background-color: var(--color-background);
}

.hm-drawerTitle {
  flex: 1;
}

.hm-foundationName {
  font-size: var(--font-size-lg);
  /* font-weight: var(--font-weight-bold); */
  font-weight: 1000;
  color: var(--color-primary);
  margin: 0;
}

.hm-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin: 0;
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
  .hm-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    height: 50px;
    min-height: 50px;
    width: 100%;
  }

  .hm-searchContainer {
    display: none;
  }
}

.hm-joinUsCta {
  margin-right: 16px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.2);
}

.hm-joinUsCta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: all 0.5s ease;
}

.hm-joinUsCta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 75, 43, 0.3);
}

.hm-joinUsCta:hover::before {
  left: 100%;
}

.hm-joinUsCta:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hm-joinUsCta {
    display: none;
  }
}

/* ===== FooterLinks.module.css (fl-) ===== */
.fl-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding-top: calc(var(--mantine-spacing-xl) * 2);
}

.fl-inner {
  display: flex;
  justify-content: space-between;
  padding-bottom: calc(var(--mantine-spacing-xl) * 2);
}

.fl-logo {
  max-width: 300px;
}

.fl-description {
  margin-top: var(--mantine-spacing-md);
  color: var(--mantine-color-orange-6);
}

.fl-address {
  margin-top: var(--mantine-spacing-sm);
  line-height: 1.6;
}

.fl-title {
  font-size: var(--mantine-font-size-lg);
  font-weight: 700;
  margin-bottom: var(--mantine-spacing-md);
  color: var(--mantine-color-orange-6);
}

.fl-wrapper {
  width: 160px;
}

.fl-link {
  display: block;
  color: var(--mantine-color-gray-6);
  font-size: var(--mantine-font-size-sm);
  padding-top: 3px;
  padding-bottom: 3px;
  text-decoration: none;
  transition: color 0.2s ease;

  &:hover {
    color: var(--mantine-color-orange-6);
    text-decoration: none;
  }
}

.fl-afterFooter {
  padding-top: var(--mantine-spacing-xl);
  padding-bottom: var(--mantine-spacing-xl);
  border-top: 1px solid var(--mantine-color-gray-2);
}

.fl-groups {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--mantine-spacing-xl) * 2);
}

.fl-social {
  gap: var(--mantine-spacing-lg);
}

.fl-registration {
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .fl-inner {
    flex-direction: column;
  }

  .fl-logo {
    max-width: 100%;
    margin-bottom: var(--mantine-spacing-xl);
  }

  .fl-groups {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .fl-groups {
    flex-direction: column;
    gap: var(--mantine-spacing-xl);
  }

  .fl-wrapper {
    width: 100%;
  }
}

/* ===== CardsCarousel.module.css (cc-) ===== */
:root {
  --carousel-height: 60vh;
  --carousel-indicator-bottom: 40px;
}

/* Mobile specific height */
@media (max-width: 768px) {
  :root {
    --carousel-height: 40vh;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  :root {
    --carousel-height: 35vh;
  }
}

.cc-wrapper {
  position: relative;
  width: 100vw;
  height: var(--carousel-height);
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.cc-videoBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 100%);
}

.cc-container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.cc-content {
  max-width: 800px;
  color: white;
}

.cc-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, white, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cc-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cc-primaryButton {
  background: var(--color-primary);
  transition: transform 0.3s ease;
}

.cc-primaryButton:hover {
  transform: translateX(5px);
}

.cc-secondaryButton {
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
}

.cc-secondaryButton:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cc-carousel {
  width: 100vw;
  height: var(--carousel-height);
  margin: 0;
  padding: 0;
  position: relative;
}

/* Tablet styles */
@media (max-width: 1024px) {
  :root {
    --carousel-height: 50vh !important;
  }

  .cc-carousel,
  .cc-wrapper,
  .cc-container,
  .cc-videoBackground,
  .cc-video,
  .cc-overlay {
    height: 50vh !important;
    min-height: 50vh !important;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  :root {
    --carousel-height: 40vh !important;
    --carousel-indicator-bottom: 10px;
  }

  .cc-carousel,
  .cc-wrapper,
  .cc-container,
  .cc-videoBackground,
  .cc-video,
  .cc-overlay {
    height: var(--carousel-height) !important;
    min-height: var(--carousel-height) !important;
  }

  /* Reset any max-height constraints */
  .cc-wrapper,
  .cc-carousel {
    max-height: 40vh !important;
  }
}

  .cc-content {
    text-align: center;
    padding: 0 1rem;
    max-height: 40vh !important;
    overflow: hidden;
  }

  .cc-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
  }

  .cc-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: 1rem;
  }

  .cc-primaryButton,
  .cc-secondaryButton {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .cc-contentWrapper {
    padding: 0 1rem;
  }

  .cc-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin-bottom: 0.5rem;
  }

  .cc-description {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: none;
  }

  .cc-ctaButton {
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    height: auto;
  }

  .cc-indicators {
    bottom: 10px;
  }

  .cc-videoContainer video,
  .cc-card [style*="background-image"] {
    height: 40vh;
  }

  /* Ensure video maintains aspect ratio */
  .cc-video {
    object-fit: cover !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  :root {
    --carousel-height: 35vh !important;
    --carousel-indicator-bottom: 8px;
  }

  .cc-carousel,
  .cc-wrapper,
  .cc-container,
  .cc-videoBackground,
  .cc-video,
  .cc-overlay {
    height: 35vh !important;
    min-height: 35vh !important;
    max-height: 35vh !important;
  }

  .cc-content {
    max-height: 35vh !important;
    padding: 0 0.75rem;
  }

  .cc-title {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    margin-bottom: 0.25rem;
  }

  .cc-description {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 0.5rem;
  }

  .cc-ctaButton {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }
}

/* ===== hero-section.module.css (hero-) ===== */
.hero-container {
  padding: var(--mantine-spacing-xl) 0;
}

.hero-featureCard {
  background: var(--mantine-color-body);
  border-radius: var(--mantine-radius-md);
  overflow: hidden;
  box-shadow: var(--mantine-shadow-sm);
  transition: transform 0.2s ease;
  margin-bottom: var(--mantine-spacing-md);
}

.hero-featureCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--mantine-shadow-lg);
}

.hero-mediaContainer {
  position: relative;
  width: 100%;
  height: 300px; /* Increased height for better visibility */
  border-radius: var(--mantine-radius-md);
  overflow: hidden;
  cursor: pointer;
}

.hero-contentContainer {
  padding: var(--mantine-spacing-lg); /* Increased padding for better spacing */
  height: 100%; /* Ensure it takes full height of the parent */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically within the container */
}

.hero-featureTitle {
  font-size: 1.75rem; /* Slightly larger for better hierarchy */
  font-weight: 600;
  margin-bottom: var(--mantine-spacing-md);
  color: var(--mantine-color-dark-7);
  line-height: 1.2;
}

.hero-description {
  color: var(--mantine-color-gray-7);
  line-height: 1.7; /* Improved readability */
  font-size: 1rem;
  max-height: 300px; /* Match media height to prevent overflow */
  overflow-y: auto; /* Scroll if content exceeds max-height */
  padding-right: var(--mantine-spacing-sm); /* Prevent scrollbar overlap */
}

/* Style HTML elements within description */
.hero-description p {
  margin: 0 0 var(--mantine-spacing-md) 0;
}

.hero-description h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--mantine-spacing-md) 0;
  color: var(--mantine-color-dark-6);
}

.hero-description strong {
  font-weight: 600;
  color: var(--mantine-color-dark-7);
}

.hero-playIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 12px;
  transition: transform 0.2s ease;
}

.hero-mediaContainer:hover .hero-playIcon {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== features-section.module.css (feat-) ===== */
/* Container */
.feat-container {
  padding: 0;
  max-width: 100%;
  margin: 0;
  width: 100%;
}

/* Section Title */
.feat-sectionTitle {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 600;
  background: linear-gradient(45deg, #FF4B2B, #FF416C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Features Container */
.feat-featuresContainer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Feature Card */
.feat-featureCard {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feat-featureCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Desktop Layout */
.feat-desktopLayout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem;
}

.feat-contentContainer {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.feat-mediaContainer {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.feat-mediaContainer img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.feat-playIcon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feat-playIcon:hover {
  background: white;
  transform: scale(1.1);
}

/* Mobile Layout */
.feat-mobileLayout {
  display: flex;
  flex-direction: column;
}

.feat-mediaSection {
  position: relative;
  width: 100%;
}

.feat-mobileMediaContainer {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.feat-mediaImage {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feat-featureCard:hover .feat-mediaImage {
  transform: scale(1.05);
}

/* Video Overlay for Mobile */
.feat-videoOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.feat-playButton {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feat-playButton:hover {
  background: white;
  transform: scale(1.1);
}

/* Text Content for Mobile */
.feat-textContent {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.feat-featureTitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.feat-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
}

.feat-description p {
  margin: 0 0 0.75rem 0;
}

.feat-description p:last-child {
  margin-bottom: 0;
}

/* Learn More Button */
.feat-learnMoreButton {
  align-self: center;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Desktop/Mobile Display Control */
.feat-desktopOnly {
  display: block;
}

.feat-mobileOnly {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .feat-container {
    padding: 2rem 1rem;
  }
  
  .feat-featuresContainer {
    gap: 1.5rem;
  }

  .feat-featureCard {
    border-radius: 12px;
  }
  
  .feat-desktopOnly {
    display: none;
  }
  
  .feat-mobileOnly {
    display: block;
  }
  
  .feat-textContent {
    padding: 1.5rem;
  }
  
  .feat-featureTitle {
    font-size: 1.2rem;
  }
  
  .feat-description {
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) {
  .feat-container {
    padding: 4rem 2rem;
  }
  
  .feat-featuresContainer {
    gap: 4rem;
  }
  
  .feat-featureTitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  
  .feat-description {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

/* Legacy styles for backwards compatibility */
.feat-wrapper {
  padding: 0;
  background: transparent;
}

.feat-feature {
  display: none; /* Hide old layout */
}

.feat-content,
.feat-title {
  display: none; /* Hide old styles */
}

/* Clean up orphaned rules */
.feat-oldDescription {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.feat-media {
  flex: 1;

  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feat-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feat-videoWrapper {
  position: relative;
}

.feat-overlay {
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.feat-playButton {
  color: white;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.feat-videoWrapper:hover {
  .feat-overlay {
    background: rgba(0, 0, 0, 0.5);
  }

  .feat-playButton {
    transform: scale(1.1);
  }

  .feat-image {
    transform: scale(1.05);
  }
}

/* Legacy container styles removed to prevent conflicts */

.feat-featureCard {
  width: 100%;
  display: flex;
  padding: 3rem 0;
  /* Reduced from 8rem to 3rem */
  background: transparent;
  border: none;
  position: relative;
  overflow: hidden;
}

.feat-featureCard:nth-child(even) {
  background: rgba(255, 255, 255, 0.8);
}

.feat-featureContent {
  max-width: var(--mantine-container-size-xl);
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  padding: 0 2rem;
}

.feat-mediaSection {
  flex: 1;
  max-width: 50%;
}

.feat-textSection {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-featureTitle {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.feat-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--mantine-color-gray-7);
  position: relative;
  padding-left: 2rem;
  /* border-left: 4px solid var(--color-primary); */
}

.feat-description p {
  margin-bottom: 0.5rem;
}

.feat-featureImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-learnMore {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Legacy styles cleaned up */
.feat-contentContainer {
  width: 45%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Fixed media container for proper desktop layout */
.feat-mediaContainer {
  width: 55%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 75, 43, 0.05);
  transform: perspective(1000px) rotateY(0deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-mediaContainer:hover {
  transform: perspective(1000px) rotateY(2deg) translateY(-10px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(255, 75, 43, 0.1);
}

.feat-mediaContainer img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove conflicting legacy styles */
.feat-mediaContainer:hover img {
  transform: scale(1.05);
}

.feat-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--mantine-color-gray-7);
  padding-left: 2rem;
  /* border-left: 4px solid var(--color-primary); */
  margin-left: 1rem;
}

.feat-description p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.feat-playIcon {
  background: linear-gradient(45deg, #FF4B2B, #FF416C);
  border-radius: 50%;
  padding: 1.5rem;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
}

.feat-mediaContainer:hover .feat-playIcon {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 15px 30px rgba(255, 75, 43, 0.4);
}

@media (max-width: 768px) {
  .feat-container {
    padding: 1rem;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
  }

  .feat-featureCard {
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .feat-featureContent {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .feat-mediaSection,
  .feat-textSection {
    max-width: 100%;
    padding: 0;
  }

  .feat-featureTitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .feat-description {
    font-size: 1rem;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .feat-sectionTitle {
    font-size: 1.75rem !important;
    padding: 0;
    margin-bottom: 0.5rem !important;
  }

  .feat-mobileLayout {
    gap: 0.5rem;
    padding: 0;
  }

  .feat-contentContainer {
    padding: 0;
    width: 100%;
  }

  .feat-mediaContainer {
    height: 200px;
    width: 100%;
    margin: 0;
  }
}

.feat-featureCard {
  @media (max-width: 768px) {
    padding: 2rem 1rem;
  }
}

.feat-container {
  @media (max-width: 768px) {
    padding: 0 1rem;
  }
}

.feat-contentContainer {
  @media (max-width: 768px) {
    width: 100%;
    padding: 1rem;
    order: 2;
  }
}

.feat-mediaContainer {
  @media (max-width: 768px) {
    width: 100%;
    height: 300px;
    order: 1;
    margin-bottom: 1rem;
  }
}

.feat-featureTitle {
  @media (max-width: 768px) {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
}

.feat-description {
  @media (max-width: 768px) {
    font-size: 1rem;
    padding-left: 0;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .feat-featureCard Container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .feat-sectionTitle {
    font-size: 2.5rem !important;
    padding: 0 1rem;
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .feat-container {
    padding: 0.75rem;
    margin: 0 auto;
    max-width: 100%;
  }

  .feat-featureCard {
    padding: 0;
    margin: 0;
  }

  .feat-contentContainer {
    width: 100% !important;
    padding: 0;
    order: 2 !important;
  }

  .feat-mediaContainer {
    width: 100% !important;
    height: 150px !important;
    order: 1 !important;
    margin: 0;
    transform: none !important;
    box-shadow: none !important;
  }

  .feat-featureTitle {
    font-size: 1.25rem !important;
    text-align: left !important;
    margin-bottom: 0.25rem;
    padding: 0;
  }

  .feat-description {
    font-size: 0.9rem;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.3;
  }

  .feat-sectionTitle {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0;
  }

  .feat-mobileLayout {
    gap: 0.25rem;
    padding: 0;
  }

  /* Remove hover effects on mobile */
  .feat-mediaContainer:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .feat-mediaContainer:hover img {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .feat-featureCard {
    padding: 2rem 0;
  }

  .feat-contentContainer {
    width: 100% !important;
    padding: 1rem;
    order: 2 !important;
    /* Force order regardless of original layout */
  }

  .feat-mediaContainer {
    width: 100% !important;
    height: 250px !important;
    order: 1 !important;
    /* Force order regardless of original layout */
    margin-bottom: 1rem;
    transform: none !important;
  }

  .feat-featureTitle {
    font-size: 1.75rem !important;
    text-align: center !important;
    margin-bottom: 1rem;
  }

  .feat-description {
    font-size: 1rem;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .feat-sectionTitle {
    font-size: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Remove hover effects on mobile */
  .feat-mediaContainer:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .feat-mediaContainer:hover img {
    transform: none !important;
  }
}

.feat-desktopLayout {
  display: flex;
  gap: 6rem;
  align-items: center;
}

.feat-mobileLayout {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feat-desktopOnly {
  display: none;
}

.feat-mobileOnly {
  display: none;
}

/* Update desktop breakpoint from 769px to 1024px */
@media (min-width: 1024px) {
  .feat-desktopOnly {
    display: block;
  }

  .feat-mobileOnly {
    display: none;
  }

  .feat-contentContainer {
    width: 45%;
    padding: 2rem;
  }

  .feat-mediaContainer {
    width: 55%;
  }
}

/* Update mobile/tablet breakpoint from 768px to 1023px */
@media (max-width: 1023px) {
  .feat-desktopOnly {
    display: none;
  }

  .feat-mobileOnly {
    display: block;
  }

  .feat-contentContainer {
    width: 100%;
    padding: 0;
    text-align: center;
    order: 2;
  }

  .feat-mediaContainer {
    width: 100%;
    order: 1;
    margin: 0;
  }

  .feat-featureTitle {
    font-size: 2rem;
    /* Slightly larger for tablets */
    margin-bottom: 1rem;
    text-align: center;
  }

  .feat-description {
    font-size: 1.1rem;
    /* Slightly larger for tablets */
    padding: 0;
    margin: 0;
    text-align: center;
  }

  /* Remove hover effects on tablet */
  .feat-mediaContainer:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .feat-mediaContainer:hover img {
    transform: none !important;
  }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
  .feat-mediaContainer {
    height: 150px;
    margin: 0;
    padding: 0;
  }

  .feat-featureTitle {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    padding: 0;
  }

  .feat-description {
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
  }

  .feat-mobileLayout {
    gap: 0.25rem;
    padding: 0;
  }

  .feat-contentContainer {
    padding: 0;
    margin: 0;
  }
}

@media (min-width: 769px) {
  .feat-desktopOnly {
    display: block;
  }

  .feat-mobileOnly {
    display: none;
  }

  .feat-contentContainer {
    width: 45%;
    padding: 2rem;
  }

  .feat-mediaContainer {
    width: 55%;
  }
}

@media (max-width: 768px) {
  .feat-desktopOnly {
    display: none;
  }

  .feat-mobileOnly {
    display: block;
  }

  .feat-contentContainer {
    width: 100%;
    padding: 1rem;
    text-align: center;
  }

  .feat-mediaContainer {
    width: 100%;
  }

  .feat-featureTitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .feat-description {
    font-size: 1rem;
    padding: 0;
    margin: 0;
  }
}

/* ===== stats-section.module.css (stats-) ===== */
.stats-wrapper {
  width: 100%;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a5934 100%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  background-blend-mode: overlay;
}

.stats-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.stats-w3.stats-org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-sectionTitle {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
}

.stats-statCard {
  flex: 1;
  max-width: 280px;
  min-width: 180px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.stats-statCard:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

.stats-statCard::after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.stats-statCard:last-child::after {
  display: none;
}

.stats-valueWrapper {
  position: relative;
  margin-bottom: 0.9375rem;
}

.stats-value {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 100%;
  word-break: keep-all;
  white-space: nowrap;
}

.stats-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-skeletonCard {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.0000rem;
  padding: 2.5000rem;
}

.stats-errorContainer {
  text-align: center;
  padding: 3.7500rem 0;
}

.stats-errorText {
  font-size: 1.1250rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-wrapper {
    padding: 2rem 0;
  }

  .stats-sectionTitle {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .stats-statsGrid {
    gap: 0.75rem;
    padding: 0.25rem;
  }

  .stats-statCard {
    min-width: 100px;
    min-height: 140px;
    padding: 1rem 0.75rem;
  }

  .stats-iconWrapper {
    margin-bottom: 0.6rem;
    padding: 0.4rem;
  }

  .stats-iconWrapper svg {
    width: 20px;
    height: 20px;
  }

  .stats-value {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .stats-label {
    font-size: 0.75rem;
    line-height: 1.1;
  }
}

@media (max-width: 576px) {
  .stats-wrapper {
    padding: 1.5rem 0;
  }

  .stats-sectionTitle {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .stats-statsGrid {
    gap: 0.5rem;
    padding: 0.125rem;
  }

  .stats-statCard {
    min-width: 90px;
    min-height: 120px;
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
  }

  .stats-iconWrapper {
    margin-bottom: 0.4rem;
    padding: 0.3rem;
  }

  .stats-iconWrapper svg {
    width: 18px;
    height: 18px;
  }

  .stats-value {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
  }

  .stats-label {
    font-size: 0.7rem;
    line-height: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-statCard:nth-child(1) {
  animation-delay: 0.1s;
}

.stats-statCard:nth-child(2) {
  animation-delay: 0.2s;
}

.stats-statCard:nth-child(3) {
  animation-delay: 0.3s;
}

.stats-statCard:nth-child(4) {
  animation-delay: 0.4s;
}

.stats-statsGrid {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
}

.stats-statCard {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 160px;
  min-width: 110px;
  flex: 1 1 0;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-iconWrapper {
  margin-bottom: 0.8rem;
  color: var(--mantine-color-pink-6);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-iconWrapper svg {
  width: 24px;
  height: 24px;
}

.stats-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.stats-label {
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.92;
  text-align: center;
  font-weight: 500;
  margin-top: 0.2rem;
  line-height: 1.2;
}

.stats-skeletonIcon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 1.2rem auto;
}

.stats-skeletonValue {
  width: 80px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 0.5rem auto;
}

.stats-skeletonLabel {
  width: 60px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto;
}

.stats-statsGrid::-webkit-scrollbar {
  display: none;
}

/* ===== Initiatives.module.css (ini-) ===== */
.ini-wrapper {
  background: linear-gradient(135deg,
      var(--color-gray-50) 0%,
      white 100%);
}

.ini-initiativeCard {
  background: white;
  border-radius: 1.0000rem;
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
}

.ini-initiativeCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(42, 139, 82, 0.1);
}

.ini-imageWrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.ini-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ini-initiativeCard:hover .ini-image {
  transform: scale(1.05);
}

.ini-content {
  padding: 1.5000rem;
}

.ini-title {
  color: var(--color-gray-900);
  font-size: 1.5000rem;
  font-weight: 600;
  margin-bottom: 0.7500rem;
}

.ini-description {
  color: var(--color-gray-600);
  margin-bottom: 1.5000rem;
  line-height: 1.6;
}

.ini-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.3750rem 0.7500rem;
  border-radius: 1.2500rem;
  font-size: 0.8750rem;
  font-weight: 500;
  margin-bottom: 1.0000rem;
}

.ini-button {
  background: var(--color-primary);
  color: white;
  transition: all 0.3s ease;
}

.ini-button:hover {
  background: var(--color-tertiary);
  transform: translateX(5px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .ini-imageWrapper {
    height: 180px;
  }

  .ini-content {
    padding: 1.0000rem;
  }

  .ini-title {
    font-size: 1.2500rem;
    margin-bottom: 0.5000rem;
  }

  .ini-description {
    margin-bottom: 1.0000rem;
    font-size: 0.8750rem;
  }

  .ini-initiativeCard:hover {
    transform: translateY(-2px);
  }

  /* Remove hover effects on mobile for better performance */
  .ini-initiativeCard:hover .ini-image {
    transform: scale(1);
  }

  .ini-button:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .ini-imageWrapper {
    height: 160px;
  }

  .ini-content {
    padding: 0.7500rem;
  }

  .ini-title {
    font-size: 1.1250rem;
  }

  .ini-description {
    font-size: 0.8125rem;
  }
}

/* ===== success-stories-section.module.css (ss-) ===== */
.ss-scrollContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.ss-scrollContainer::-webkit-scrollbar {
  display: none;
}

.ss-card {
  height: 100%;
  cursor: pointer;
  min-width: 300px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--mantine-color-gray-2);
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  flex: 0 0 auto;
  perspective: 1000px;
  /* Prevents shrinking/growing */
}

@media (min-width: 768px) {
  .ss-card {
    min-width: 320px;
    max-width: 320px;
    /* Fixed width to prevent overlap */
    height: 280px;
    min-height: 280px;
  }
}

.ss-card:hover .ss-cardInner {
  transform: rotateY(180deg);
}

.ss-cardInner {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.ss-cardFront,
.ss-cardBack {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.ss-cardBack {
  transform: rotateY(180deg);
  background: var(--mantine-color-blue-0);
  padding: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ss-cardBack .ss-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--mantine-color-blue-8);
}

.ss-cardBack .ss-content {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mantine-color-gray-7);
  max-height: none;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
}

.ss-imageContainer {
  position: relative;
  overflow: hidden;
}

.ss-imageSection {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.ss-image {
  width: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.ss-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.ss-imageCaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 200ms ease;
}

.ss-card:hover .ss-image {
  transform: scale(1.05);
}

.ss-imageSection:hover .ss-image {
  transform: scale(1.05);
}

.ss-card:hover .ss-overlay {
  opacity: 1;
}

.ss-imageSection:hover .ss-overlay {
  opacity: 1;
}

.ss-imageSection:hover .ss-imageCaption {
  opacity: 1;
  transform: translateY(0);
}

.ss-scrollButton {
  transition: opacity 0.3s ease;
}

.ss-scrollButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ss-wrapper {
  padding: 4rem 0;
  background: var(--mantine-color-gray-0);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ss-wrapper::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 114, 245, 0.05);
  z-index: 0;
}

.ss-container {
  max-width: var(--mantine-container-size-xl);
  margin: 0 auto;
  padding: 0 1rem;
}

.ss-sectionTitle {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ss-sectionSubtitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--mantine-color-blue-6);
  margin-bottom: 0.25rem;
}

.ss-viewAllButton {
  transition: transform 0.2s ease;
  border-width: 1.5px;
  margin-bottom: 2rem;
}

.ss-viewAllButton:hover {
  transform: translateX(3px);
}

.ss-cardInner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ss-imageWrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.ss-featuredBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.ss-cardContent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 1rem;
}

.ss-cardContent>*:not(:last-child) {
  margin-bottom: 0.5rem;
}

.ss-quoteIcon {
  color: var(--mantine-color-blue-4);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.ss-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--mantine-color-dark-8);
}

.ss-contentWrapper {
  flex: 1;
  margin-bottom: 0.5rem;
}

.ss-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mantine-color-dark-5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 0.5rem;
}

.ss-content p {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.ss-content p:last-child {
  margin-bottom: 0;
}

.ss-content a {
  color: var(--mantine-color-blue-6);
  text-decoration: none;
}

.ss-content a:hover {
  text-decoration: underline;
}

.ss-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--mantine-color-gray-2);
}

.ss-avatar {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ss-personName {
  color: var(--mantine-color-dark-7);
  line-height: 1.2;
}

.ss-date {
  color: var(--mantine-color-gray-6);
}

.ss-readMoreButton {
  margin-top: 0.5rem;
  transition: background-color 0.2s ease;
  background-color: var(--mantine-color-blue-1);
  color: var(--mantine-color-blue-7);
}

.ss-readMoreButton:hover {
  background-color: var(--mantine-color-blue-2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ss-scrollContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .ss-title {
    font-size: 1.25rem;
  }

  .ss-wrapper {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .ss-sectionTitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .ss-wrapper {
    padding: 1rem 0;
  }

  .ss-scrollContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.5rem;
    overflow-x: visible;
  }

  .ss-card {
    margin-bottom: 0.75rem;
    min-width: unset;
    min-height: 280px;
    perspective: none;
    transform-style: flat;
  }

  .ss-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  .ss-cardInner {
    transform-style: flat;
  }

  .ss-cardFront {
    position: relative;
  }

  .ss-cardFront .ss-content {
    display: block !important;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .ss-cardBack {
    display: none;
  }

  .ss-imageWrapper {
    height: 160px;
  }

  .ss-cardContent {
    padding: 0.5rem;
  }

  .ss-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .ss-content {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
  }

  .ss-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-top: 0.25rem;
  }

  .ss-viewAllButton {
    width: 100%;
    margin: 1rem 0.5rem 0 0.5rem;
  }
}

@media (max-width: 576px) {
  .ss-wrapper {
    padding: 2rem 0;
  }

  .ss-scrollContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    overflow-x: visible;
  }

  .ss-card {
    perspective: none;
    transform-style: flat;
  }

  .ss-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  .ss-cardInner {
    transform-style: flat;
  }

  .ss-cardFront {
    position: relative;
  }

  .ss-cardFront .ss-content {
    display: block !important;
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .ss-cardBack {
    display: none;
  }

  .ss-imageWrapper {
    height: 140px;
  }

  .ss-cardContent {
    padding: 0.5rem;
  }

  .ss-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .ss-content {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .ss-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .ss-sectionTitle {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .ss-wrapper {
    padding: 0.75rem 0;
  }

  .ss-scrollContainer {
    padding: 0 0.25rem;
    gap: 0.5rem;
  }

  .ss-card {
    margin-bottom: 0.5rem;
  }

  .ss-imageWrapper {
    height: 140px;
  }

  .ss-cardContent {
    padding: 0.5rem;
  }

  .ss-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .ss-content {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .ss-footer {
    gap: 0.25rem;
  }

  .ss-viewAllButton {
    margin: 0.75rem 0.25rem 0 0.25rem;
  }
}

/* ===== news-coverage.module.css (news-) ===== */
.news-wrapper {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
  position: relative;
}

.news-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.news-w3.news-org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f8f9fa' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
  z-index: 0;
}

.news-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--mantine-color-dark-8);
  position: relative;
  z-index: 1;
}

.news-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mantine-color-gray-6);
  position: relative;
  z-index: 1;
}

.news-newsCard {
  border: 1px solid var(--mantine-color-gray-2);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}

.news-newsCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--mantine-color-blue-4);
  text-decoration: none;
  color: inherit;
}

.news-newsImage {
  transition: transform 0.3s ease;
}

.news-newsCard:hover .news-newsImage {
  transform: scale(1.05);
}

.news-loadingCard {
  height: 280px;
  border: 1px solid var(--mantine-color-gray-2);
  position: relative;
  overflow: hidden;
}

.news-loadingImage {
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.news-loadingContent {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-loadingLine {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.news-loadingLine:nth-child(1) {
  width: 80%;
}

.news-loadingLine:nth-child(2) {
  width: 60%;
}

.news-loadingLine:nth-child(3) {
  width: 90%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .news-wrapper {
    padding: clamp(1.5rem, 4vw, 2rem) 0;
  }
  
  .news-newsCard {
    margin-bottom: 0.5rem;
  }
  
  .news-title {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  
  .news-subtitle {
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
}

/* Extra small mobile optimization for 2-column layout */
@media (max-width: 480px) {
  .news-newsCard {
    padding: 0.5rem;
  }
  
  .news-newsImage {
    height: 130px;
  }
  
  .news-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }
  
  .news-subtitle {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .news-loadingCard {
    height: 240px;
  }

  .news-loadingImage {
    height: 130px;
  }
}


/* ===== Testimonials.module.css (tst-) ===== */
.tst-testimonialGrid {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  width: max-content;
  margin: 0 auto;
}

.tst-testimonialCard {
  flex: 0 0 400px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tst-testimonialCard::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 120px;
  color: var(--color-primary);
  opacity: 0.1;
  font-family: serif;
}

.tst-testimonialCard:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-primary);
}

.tst-quoteIcon {
  color: var(--color-primary);
  opacity: 0.2;
  margin-bottom: 1.0000rem;
}

.tst-content {
  color: var(--color-gray-700);
  font-size: 1.0000rem;
  line-height: 1.6;
  margin-bottom: 1.5000rem;
}

.tst-authorInfo {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mantine-color-gray-2);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: linear-gradient(90deg, var(--color-gray-50), transparent);
  margin: 0 -24px -24px;
  padding: 20px 24px;
  text-align: left;
  /* Add this line */
  align-items: flex-end;
  /* Add this line */
}

.tst-authorName {
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.2500rem;
}

.tst-authorRole {
  color: var(--color-primary);
  font-size: 0.8750rem;
}

/* ===== GallerySection.module.css (gal-) ===== */
.gal-container {
  background: linear-gradient(135deg, rgba(255, 75, 43, 0.05), rgba(255, 65, 108, 0.08));
  position: relative;
  overflow: hidden;
}

.gal-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.gal-w3.gal-org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF4B2B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gal-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--mantine-spacing-xl) 0;
  background: linear-gradient(135deg, rgba(42, 139, 82, 0.05), rgba(42, 139, 82, 0.1));
  position: relative;
  overflow: hidden;
}

.gal-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.gal-w3.gal-org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232a8b52' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--mantine-spacing-xl);
  flex-wrap: wrap;
  gap: var(--mantine-spacing-md);
}

.gal-title {
  font-family: var(--mantine-font-family);
  font-weight: 800;
  font-size: 2rem;
  color: var(--mantine-color-dark-8);
}

.gal-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--mantine-color-gray-6);
}

.gal-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gal-card {
  transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gal-cardTitle {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  line-height: 1.3;
}

.gal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mantine-shadow-md);
}

.gal-imageSection {
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* Default mobile-first approach */
@media (max-width: 576px) {
  .gal-imageSection {
    height: 120px;
  }
  
  .gal-card {
    padding: 0.25rem !important;
    margin-bottom: 0.25rem;
  }
  
  .gal-cardTitle {
    font-size: 0.75rem !important;
    line-height: 1.2;
    margin-top: 0.25rem !important;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .gal-imageSection {
    height: 160px;
  }
  
  .gal-cardTitle {
    font-size: 0.9rem !important;
  }
}

@media (min-width: 769px) {
  .gal-imageSection {
    height: 200px;
  }
  
  .gal-cardTitle {
    font-size: 1.1rem !important;
  }
}

.gal-image {
  transition: transform 300ms ease-in-out;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gal-card:hover .gal-image {
  transform: scale(1.1);
}

.gal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 300ms ease;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.gal-imageSection:hover .gal-overlay {
  opacity: 1;
}

.gal-imageSection:hover .gal-image {
  transform: scale(1.05);
}

.gal-viewButton {
  background: rgba(255, 255, 255, 0.9);
  color: var(--mantine-color-dark-8);
  padding: 0.5rem 1rem;
  border-radius: var(--mantine-radius-md);
  font-weight: 500;
  transform: translateY(20px);
  transition: transform 300ms ease;
}

.gal-imageSection:hover .gal-viewButton {
  transform: translateY(0);
}

/* Modal Styles */
.gal-modalBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 200ms ease;
}

.gal-modalContainer {
  position: relative;
  width: 90vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gal-modalImageWrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gal-modalImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gal-navButton {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: background-color 200ms ease;
  z-index: 10001;
}

.gal-navButton:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.gal-prevButton {
  left: 20px;
}

.gal-nextButton {
  right: 20px;
}

.gal-closeButton {
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: background-color 200ms ease;
  z-index: 10001;
}

.gal-closeButton:hover {
  background-color: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .gal-wrapper {
    padding: 1.5rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .gal-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .gal-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .gal-card {
    margin-bottom: 0.5rem;
  }

  .gal-modalContainer {
    width: 95vw;
    height: 95vh;
  }

  .gal-navButton,
  .gal-closeButton {
    width: 35px;
    height: 35px;
  }

  .gal-prevButton {
    left: 10px;
  }

  .gal-nextButton {
    right: 10px;
  }

  .gal-closeButton {
    top: 70px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gal-wrapper {
    padding: 1rem 0;
  }

  .gal-title {
    font-size: clamp(1.2rem, 3.5vw, 1.75rem);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  .gal-description {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  .gal-card {
    padding: 0.2rem !important;
    margin-bottom: 0.25rem;
  }

  .gal-cardTitle {
    font-size: 0.7rem !important;
    margin-top: 0.2rem !important;
  }

  .gal-modalContainer {
    width: 98vw;
    height: 98vh;
  }
}

@media (max-width: 360px) {
  .gal-wrapper {
    padding: 0.75rem 0;
  }

  .gal-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
  }

  .gal-description {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    margin-bottom: 0.5rem;
  }

  .gal-card {
    padding: 0.15rem !important;
  }

  .gal-cardTitle {
    font-size: 0.65rem !important;
    margin-top: 0.15rem !important;
  }

  .gal-closeButton {
    top: 80px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
}

/* ===== JoinUs.module.css (join-) ===== */
.join-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 8px;
  background: rgb(230, 70, 11);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.join-joinButton {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--mantine-color-blue-filled);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.join-joinButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .join-joinButton {
    bottom: 1rem;
    right: 1rem;
  }
}

.join-joinUsWrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  max-width: 400px;
  width: 100%;
}

.join-joinUsContainer {
  background: var(--mantine-color-body);
  padding: 1rem 1.5rem;
  border-radius: var(--mantine-radius-md);
  box-shadow: var(--mantine-shadow-lg);
  border: 1px solid var(--mantine-color-gray-2);
  transition: all 0.2s ease;
}

.join-joinUsContainer:hover {
  transform: translateY(-2px);
  box-shadow: var(--mantine-shadow-xl);
}

.join-description {
  max-width: 200px;
}

.join-ctaButton {
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.join-ctaButton:hover {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .join-joinUsWrapper {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .join-joinUsContainer {
    padding: 0.75rem 1rem;
  }

  .join-description {
    display: none;
  }
}

.join-section {
  background: linear-gradient(135deg,
      rgba(255, 75, 43, 0.05) 0%,
      rgba(255, 65, 108, 0.08) 100%);
  position: relative;
  border-top: 1px solid var(--mantine-color-gray-2);
  border-bottom: 1px solid var(--mantine-color-gray-2);
  overflow: hidden;
}

.join-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.join-w3.join-org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF4B2B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.join-icon {
  color: var(--mantine-color-orange-filled);
}

.join-socialSection {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mantine-color-gray-2);
  width: 100%;
  max-width: 500px;
}

.join-socialButton {
  transition: all 0.3s ease;
  border: 1px solid var(--mantine-color-gray-2);
  background: white;
}

.join-socialButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.join-downloadBtn {
  background: linear-gradient(135deg, #FF4B2B, #FF416C);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.join-downloadBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
  background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.join-joinBtn {
  transition: all 0.3s ease;
}

.join-joinBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.join-optionsGrid {
  width: 100%;
  margin: 2rem 0;
}

.join-optionCard {
  background: white;
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid var(--mantine-color-gray-2);
}

.join-optionCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 75, 43, 0.15);
}

.join-optionIcon {
  color: var(--color-primary-second);
}

@media (max-width: 768px) {
  .join-joinButton {
    bottom: 1rem;
    right: 1rem;
  }

  .join-joinUsWrapper {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .join-joinUsContainer {
    padding: 0.75rem 1rem;
  }

  .join-description {
    display: none;
  }
}

/* ===== Banner.module.css (ban-) ===== */
.ban-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.ban-home {
  min-height: 700px;
}

.ban-blog {
  min-height: 500px;
}

.ban-about {
  min-height: 400px;
}

.ban-initiatives {
  min-height: 450px;
}

.ban-success-stories {
  min-height: 500px;
}

/* Mobile optimizations - reduce banner heights significantly */
@media (max-width: 768px) {
  .ban-banner {
    min-height: 100px;
  }

  .ban-home {
    min-height: 140px;
  }

  .ban-blog {
    min-height: 120px;
  }

  .ban-about {
    min-height: 100px;
  }

  .ban-initiatives {
    min-height: 110px;
  }

  .ban-success-stories {
    min-height: 120px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .ban-banner {
    min-height: 80px;
  }

  .ban-home {
    min-height: 110px;
  }

  .ban-blog {
    min-height: 80px;
  }

  .ban-about {
    min-height: 80px;
  }

  .ban-initiatives {
    min-height: 80px;
  }

  .ban-success-stories {
    min-height: 80px;
  }
}

.ban-container {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--mantine-spacing-xl) * 3);
  padding-bottom: calc(var(--mantine-spacing-xl) * 3);
}

/* Mobile optimizations - reduce container padding */
@media (max-width: 768px) {
  .ban-container {
    padding-top: var(--mantine-spacing-sm);
    padding-bottom: var(--mantine-spacing-sm);
  }
}

@media (max-width: 480px) {
  .ban-container {
    padding-top: var(--mantine-spacing-xs);
    padding-bottom: var(--mantine-spacing-xs);
  }
}

.ban-title {
  color: var(--mantine-color-white);
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--mantine-spacing-md);
}

/* Mobile title optimizations */
@media (max-width: 768px) {
  .ban-title {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .ban-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.125rem;
  }
}

.ban-description {
  color: var(--mantine-color-white);
  max-width: 600px;
}

/* Mobile description optimizations */
@media (max-width: 768px) {
  .ban-description {
    max-width: 100%;
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .ban-description {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

.ban-control {
  margin-top: calc(var(--mantine-spacing-xl) * 1.5);
}

/* Mobile control optimizations */
@media (max-width: 768px) {
  .ban-control {
    margin-top: var(--mantine-spacing-md);
  }
}

@media (max-width: 480px) {
  .ban-control {
    margin-top: var(--mantine-spacing-sm);
  }
}

.ban-breadcrumbs {
  color: var(--mantine-color-gray-3);
}

.ban-breadcrumbItem {
  display: flex;
  align-items: center;

  &:not(:last-child)::after {
    content: '/';
    margin: 0 var(--mantine-spacing-xs);
    color: var(--mantine-color-gray-5);
  }

  a {
    color: var(--mantine-color-gray-3);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--mantine-color-white);
    }
  }
}

.ban-meta {
  color: var(--mantine-color-gray-3);
}

.ban-author {
  position: relative;
  padding-left: var(--mantine-spacing-md);

  &::before {
    content: '•';
    position: absolute;
    left: 0;
  }
}


/* ===== helpers (Django port) ===== */
:root { --carousel-height: min(78vh, 640px); }

.rj-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.rj-section { padding: var(--section-spacing-y, 80px) 0; }

.rj-section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 2rem;
}

.rj-view-all {
  display: inline-block;
  background: var(--gradient-hero, linear-gradient(45deg, #FF4B2B, #FF416C));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rj-view-all:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(255 75 43 / 0.35); }

.cc-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 600ms ease; z-index: 0;
}
.cc-slide.active { opacity: 1; z-index: 1; }
.cc-slide::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 1; }
.cc-slide > * { position: relative; }
.cc-slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cc-slide .cc-contentWrapper { z-index: 2; }

/* Hover dropdown menus for the exact-markup nav (Mantine menus are JS-driven upstream) */
.rj-dropdown { position: relative; display: inline-flex; }
.rj-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--mantine-color-gray-2);
  border-radius: var(--mantine-radius-md);
  box-shadow: var(--mantine-shadow-md);
  padding: 0.25rem;
  z-index: 400;
  flex-direction: column;
}
.rj-dropdown:hover .rj-dropdown-menu,
.rj-dropdown:focus-within .rj-dropdown-menu { display: flex; }
.rj-dropdown-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--mantine-radius-sm);
  text-decoration: none;
  color: var(--mantine-color-gray-9);
  font-size: var(--mantine-font-size-sm);
  white-space: nowrap;
}
.rj-dropdown-menu a:hover { background: var(--mantine-color-gray-0); color: var(--color-primary); }

.rj-langSwitch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--mantine-font-size-sm); }
.rj-langSwitch a { text-decoration: none; color: var(--mantine-color-gray-6); padding: 0.25rem 0.4rem; border-radius: var(--mantine-radius-sm); }
.rj-langSwitch a.active { color: #fff; background: var(--color-primary); font-weight: 600; }
.rj-langSwitch span { color: var(--mantine-color-gray-4); }

/* Scroll-reveal like the original AnimatedSection */
.rj-reveal { opacity: 0; transform: translateY(50px); transition: opacity 600ms ease, transform 600ms ease; }
.rj-reveal.rj-visible { opacity: 1; transform: none; }

/* Stats band: red-pink hero gradient to match the reference deployment */
.stats-wrapper {
  background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%) !important;
}
.cc-indicators { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.cc-indicators button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.cc-indicators button.active { background: #fff; }

.ini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.stats-flex { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }

.feat-row-reverse .feat-desktopLayout { flex-direction: row-reverse; }

@media (max-width: 48em) {
  .feat-desktopLayout, .feat-row-reverse .feat-desktopLayout { flex-direction: column; }
  .fl-inner { flex-direction: column; gap: 2rem; }
  .hm-inner { justify-content: center; }
}

/* ===== section-page helpers (pixel port) ===== */
.rj-page-container { max-width: var(--mantine-container-size-xl, 1320px); margin: 0 auto; padding: calc(var(--mantine-spacing-xl) * 2) 1rem; }
.rj-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.rj-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rj-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 62em) { .rj-grid3, .rj-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48em) { .rj-grid2, .rj-grid3, .rj-grid4 { grid-template-columns: 1fr; } }
.rj-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.rj-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.rj-page-title {
  font-weight: var(--mantine-h2-font-weight, 700);
  font-size: var(--mantine-h2-font-size, 1.625rem);
  margin: 0 0 var(--mantine-spacing-lg);
  color: var(--color-primary);
}
.rj-richtext { line-height: var(--mantine-line-height-lg); max-width: 820px; }
.rj-richtext h2, .rj-richtext h3 { color: var(--color-primary); margin: var(--mantine-spacing-xl) 0 var(--mantine-spacing-sm); }
.rj-richtext p { margin: 0 0 var(--mantine-spacing-md); }
.rj-richtext img { max-width: 100%; height: auto; border-radius: var(--mantine-radius-md); }
.rj-richtext ul, .rj-richtext ol { margin: 0 0 var(--mantine-spacing-md); padding-left: 1.5rem; }

/* ===== navbar search suggestions + mobile menu ===== */
.HeaderMenu_searchContainer__HD0ZZ { position: relative; }
.rj-search-suggest {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--mantine-color-gray-2);
  border-radius: var(--mantine-radius-md);
  box-shadow: var(--mantine-shadow-md);
  z-index: 500;
  overflow: hidden;
}
.rj-search-suggest a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none; color: var(--mantine-color-gray-9);
  font-size: var(--mantine-font-size-sm);
  border-bottom: 1px solid var(--mantine-color-gray-1);
}
.rj-search-suggest a:last-child { border-bottom: 0; }
.rj-search-suggest a:hover { background: var(--mantine-color-gray-0); }
.rj-suggest-type {
  flex-shrink: 0;
  background: var(--mantine-color-gray-1); color: var(--mantine-color-gray-6);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 999px; padding: 0.1rem 0.45rem;
}
.rj-suggest-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rj-mobileMenu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--mantine-color-gray-2);
  box-shadow: var(--mantine-shadow-md);
  padding: 0.75rem 1rem 1rem;
}
.rj-mobileMenu a { padding: 0.55rem 0.25rem; text-decoration: none; color: var(--mantine-color-gray-9); font-weight: 600; border-bottom: 1px solid var(--mantine-color-gray-1); }
.rj-mobileMenu a.rj-mobileMenu-sub { padding-left: 1.25rem; font-weight: 400; }
.rj-mobileMenu-group { padding: 0.55rem 0.25rem 0.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary); }
.rj-mobileMenu-search input { width: 100%; padding: 0.55rem 0.9rem; border: 1px solid var(--mantine-color-gray-3); border-radius: var(--mantine-radius-md); font-size: var(--mantine-font-size-sm); margin-bottom: 0.5rem; }
.rj-mobileMenu-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.rj-mobileMenu-join {
  border: 0; cursor: pointer; color: #fff; font-weight: 600;
  background: linear-gradient(45deg, #FF4B2B 0%, #FF416C 100%);
  border-radius: var(--mantine-radius-md); padding: 0.55rem 1.4rem;
}

@media (max-width: 62em) {
  .rj-mobileMenu:not([hidden]) { display: flex; }
  .HeaderMenu_searchContainer__HD0ZZ { display: none; }
  .HeaderMenu_desktopGroup__z3Nvt { display: none !important; }
  .mantine-Burger-root { display: block !important; }
  .hm-header, .HeaderMenu_header__LD6ya { height: auto; }
}
@media (min-width: 62em) {
  .rj-mobileMenu { display: none !important; }
  .mantine-Burger-root { display: none !important; }
}

@media (max-width: 62em) {
  .HeaderMenu_links__X6w3N { display: none !important; }
  .HeaderMenu_inner__bOHsi { justify-content: space-between; }
}

/* Join button visible in the collapsed mobile header row */
.rj-mobileJoin {
  display: none;
  border: 0; cursor: pointer; color: #fff; font-weight: 600;
  font-size: var(--mantine-font-size-sm);
  background: linear-gradient(45deg, #FF4B2B 0%, #FF416C 100%);
  border-radius: var(--mantine-radius-md);
  padding: 0.45rem 1.1rem;
  margin-right: 0.6rem;
}
@media (max-width: 62em) {
  .rj-mobileJoin { display: inline-block; }
}

/* Mobile header icon buttons (search + language switch) */
.rj-mobileIcon {
  display: none;
  align-items: center; justify-content: center;
  background: #fff; color: var(--color-primary);
  border: 1px solid var(--mantine-color-gray-3);
  border-radius: var(--mantine-radius-md);
  min-width: 38px; height: 38px;
  padding: 0 0.5rem;
  margin-right: 0.55rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700; font-size: 0.8rem;
  line-height: 1;
}
.rj-mobileIcon:active { background: var(--mantine-color-gray-0); }
@media (max-width: 62em) {
  .rj-mobileIcon { display: inline-flex; }
}

/* Single-row mobile header: compact logo + actions */
@media (max-width: 62em) {
  .HeaderMenu_inner__bOHsi { flex-wrap: nowrap; gap: 0.25rem; }
  .HeaderMenu_inner__bOHsi > a:first-child { flex-shrink: 1; min-width: 0; }
  .HeaderMenu_inner__bOHsi > a:first-child img { width: auto; max-width: 118px; height: 52px; object-fit: contain; }
  .rj-mobileJoin { padding: 0.4rem 0.8rem; margin-right: 0.35rem; font-size: 0.75rem; white-space: nowrap; }
  .rj-mobileIcon { min-width: 34px; height: 34px; margin-right: 0.35rem; padding: 0 0.4rem; }
}

/* ===== Homepage gallery: bento grid on mobile, section capped at 100vh ===== */
@media (max-width: 62em) {
  .rj-galleryBento {
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .rj-galleryBento .rj-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
  }
  .rj-galleryBento .gal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 88px;
    grid-auto-flow: dense;
    gap: 0.5rem;
    min-height: 0;
    overflow: hidden;
  }
  .rj-galleryBento .gal-card {
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
  }
  .rj-galleryBento .gal-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px;
  }
  /* bento pattern: tall / wide feature tiles */
  .rj-galleryBento .gal-card:nth-child(6n+1) { grid-row: span 2; }
  .rj-galleryBento .gal-card:nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }
  .rj-galleryBento .gal-card:nth-child(6n+6) { grid-row: span 2; }
  /* keep the section inside one viewport: show at most 7 tiles on mobile */
  .rj-galleryBento .gal-card:nth-child(n+8) { display: none; }
  .rj-galleryBento .rj-section-title { margin-bottom: 1.25rem; }
  .rj-galleryBento p[style*="text-align:center"] { margin-top: 1rem !important; }
}

/* ===== Gallery bento masonry =====
   Photos come from the CMS at wildly different aspect ratios (portrait phone
   shots, wide event photos, square logos). Every tile is sized from its own
   image — width: 100% + height: auto — so nothing is ever cropped to fit a
   uniform box. gallery.html packs the tiles into rows and promotes a few
   landscape photos to double-width feature tiles for the bento rhythm. */
.rj-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 22vw, 280px), 1fr));
  column-gap: 1rem;
  row-gap: 0;                 /* vertical rhythm comes from .gal-tile margin */
  align-items: start;         /* tiles keep their content height, never stretch */
}
/* Applied by JS once tile heights are known. Until then the grid degrades to a
   plain uncropped grid with ragged rows — still readable with JS disabled. */
.rj-masonry.is-packed { grid-auto-rows: 4px; }
/* Packed mode pins tiles to explicit rows, so spacing comes from the balancer. */
.rj-masonry.is-packed .gal-tile { margin-bottom: 0; }

.rj-masonry .gal-tile {
  margin: 0 0 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--mantine-radius-md, 8px);
  background: var(--mantine-color-gray-1, #f1f3f5);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.rj-masonry .gal-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(0 0 0 / 0.14); }

.rj-masonry .gal-tile img {
  display: block;
  width: 100%;
  height: auto;               /* the whole point: intrinsic ratio preserved */
}
/* Legacy rows carry no stored dimensions, so an unloaded tile would measure 0px
   and the first packing pass would be nonsense. Reserve a plausible box until
   the image arrives — on the figure, not the image, so nothing is distorted. */
.rj-masonry .gal-tile { min-height: 150px; }
.rj-masonry .gal-tile.is-loaded { min-height: 0; }

.rj-masonry .gal-tile--wide { grid-column: span 2; }

.rj-masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.75rem 0.75rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: var(--mantine-font-size-sm, 0.875rem);
  line-height: 1.3;
}
.rj-masonry .gal-tile-title { font-weight: 600; }
.rj-masonry .gal-tile-cat {
  flex: none;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

/* Category filter chips */
.gal-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.gal-filter {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--mantine-color-gray-3, #dee2e6);
  text-decoration: none;
  font-size: var(--mantine-font-size-sm, 0.875rem);
  color: var(--mantine-color-gray-7, #495057);
  text-transform: capitalize;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.gal-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gal-filter.is-active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 48em) {
  .rj-masonry { column-gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
  .rj-masonry .gal-tile { margin-bottom: 0.6rem; }
  .rj-masonry figcaption { padding: 1.25rem 0.5rem 0.45rem; font-size: 0.75rem; }
  .rj-masonry .gal-tile-cat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rj-masonry .gal-tile { transition: none; }
  .rj-masonry .gal-tile:hover { transform: none; }
}
