/* GHI Color Palette - CSS Custom Properties */
:root {
  --ghi-primary: #000656;
  --ghi-secondary: #f1b829;
  --ghi-accent-3: #f4f7fa;
  --ghi-accent-4: #7695bb;
  --ghi-accent-5: #01317a;
  --ghi-accent-6: #41699f;
  --ghi-accent-7: #aec6dc;
  --quote-banner-bg: url('../Banners-and-portraits/pexels-belle-co-99483-1000445.jpg');
  --counter-banner-bg: url('../Banners-and-portraits/pexels-speakmediauganda-34249567.jpg');
  --hero-causes-bg: url('../Banners-and-portraits/pexels-lagosfoodbank-6472487.jpg');
  --hero-initiatives-bg: url('../Banners-and-portraits/pexels-speakmediauganda-33749790.jpg');
  --hero-events-bg: url('../Banners-and-portraits/pexels-rdne-6646883.jpg');
  --hero-impact-bg: url('../Banners-and-portraits/pexels-speakmediauganda-34249567.jpg');
  --hero-stories-bg: url('../Banners-and-portraits/pexels-ezeguna_graphy-sulaiman-muhammad-2153324075-34536427.jpg');
}

/* Animation Initial States - Prevent FOUC */
[data-animate-on-scroll] {
  opacity: 0;
  will-change: transform, opacity;
}

/* Show elements immediately on mobile to prevent visibility issues */
@media (max-width: 768px) {
  [data-animate-on-scroll] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Ensure sections are visible by default - animations will handle opacity */
.container-fluid,
.container {
  opacity: 1;
}

/* Only hide elements that explicitly have animation attributes */
[data-animate-on-scroll]:not(.animated),
[data-aos]:not(.aos-animate) {
  opacity: 0;
}

/* Disable animations for opted-out sections */
.no-animation,
.no-animation *,
[data-disable-animation],
[data-disable-animation] * {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Show elements when animations are disabled or finished */
.gsap-marker-scroller-start,
.gsap-marker-scroller-end,
body.no-js [data-animate-on-scroll] {
  opacity: 1 !important;
}

/* Optimize animations for performance */
[data-animate-on-scroll],
[data-aos],
[data-parallax] {
  backface-visibility: hidden;
  perspective: 1000px;
  transform: translateZ(0);
}

/* Global Image Overflow Prevention */
img {
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Override Bootstrap primary and secondary colors */
:root {
  --bs-primary: #000656;
  --bs-secondary: #f1b829;
}

.text-primary {
  color: var(--ghi-primary) !important;
}

.bg-primary {
  background-color: var(--ghi-primary) !important;
}

.btn-primary {
  background-color: var(--ghi-primary);
  border-color: var(--ghi-primary);
}
.bg-subtle {
  background-color: #dbc9a3;
}

.btn-primary:hover {
  background-color: var(--ghi-accent-5);
  border-color: var(--ghi-accent-5);
}

.text-secondary {
  color: var(--ghi-secondary) !important;
}

.bg-secondary {
  background-color: var(--ghi-secondary) !important;
}

.btn-secondary {
  background-color: var(--ghi-secondary);
  border-color: var(--ghi-secondary);
  color: var(--ghi-primary);
}

.btn-secondary:hover {
  background-color: #d4a324;
  border-color: #d4a324;
  color: var(--ghi-primary);
}

/* Foundation Card Styles */
.foundation-card {
  box-shadow: 0 2px 10px rgba(0, 6, 86, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.foundation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 6, 86, 0.15);
}

/* Initiative Card Styles - Equal Height */
.causes-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.causes-item .causes-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Blog/Story Item Styles - Equal Height */
.blog-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-item .text-dark {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 992px) {
  .core-value-card {
    min-height: 280px;
  }

  .core-values-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .core-value-col {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .core-objective-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (min-width: 992px) {
  .core-objective-col {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .initiatives-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .initiative-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/*** Spinner Start ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
  background: var(--ghi-primary) !important;
}

#spinner.show {
  transition:
    opacity 0.8s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

#spinner .spinner-grow {
  display: none;
}

#spinner::before {
  content: '';
  display: block;
  width: 80px;
  height: 80px;
  background-image: url('../loader-icon/cube-loader.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: spin 1s linear infinite;
  filter: brightness(0) invert(1);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/*** Spinner End ***/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  color: white !important;
  transition: 0.5s;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.table-context-menu {
  position: fixed;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  min-width: 150px;
  overflow: hidden;
}

.table-context-menu-item {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333333;
  transition: background-color 0.2s, color 0.2s;
}

.table-context-menu-item.is-danger {
  color: #dc3545;
}

.table-context-menu-item:hover {
  background-color: #f8f9fa;
}

.table-context-menu-item.is-danger:hover {
  background-color: #fff5f5;
}

.auto-save-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 10001;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  color: #ffffff;
}

.auto-save-indicator.is-visible {
  opacity: 1;
}

.auto-save-indicator--saving {
  background-color: #6c757d;
}

.auto-save-indicator--saved {
  background-color: #28a745;
}

.auto-save-indicator--error {
  background-color: #dc3545;
}

/*** Button Start ***/
.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square {
  width: 32px;
  height: 32px;
}

.btn-sm-square {
  width: 34px;
  height: 34px;
}

.btn-md-square {
  width: 44px;
  height: 44px;
}

.btn-lg-square {
  width: 56px;
  height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-hover-bg {
  transition: 0.5s;
}

.btn-hover-bg:hover {
  background: var(--bs-secondary) !important;
  color: var(--bs-primary) !important;
}

.btn-hover-color {
  transition: 0.5s;
}

.btn-hover-color:hover {
  color: var(--bs-secondary) !important;
}
/*** Topbar Start ***/
.fixed-top .container {
  max-width: 85%;
  transition: 0.5s;
}

.topbar {
  padding: 2px 10px 2px 20px;
  background: var(--ghi-primary) !important;
}

.topbar a,
.topbar a i {
  transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
  color: var(--ghi-secondary) !important;
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar {
  padding: 0;
}

.navbar .navbar-nav .nav-link {
  padding: 10px 15px;
  font-size: 16px;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 600;
  vertical-align: middle;
  margin-left: 8px;
}

@media (min-width: 1200px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    border: 0;
    transition: 0.5s;
    opacity: 0;
  }
}

@media (max-width: 1200px) {
  .navbar .collapse.navbar-collapse .btn-hover-bg.btn {
    margin-bottom: 20px;
  }
}

.dropdown .dropdown-menu a:hover {
  background: var(--bs-secondary);
  color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
  transform: rotateX(0deg);
  visibility: visible;
  background: var(--bs-light) !important;
  transition: 0.5s;
  opacity: 1;
}
/*** Navbar End ***/

/*** Carousel Start ***/
.carousel-header #carouselId .carousel-control-prev,
.carousel-header #carouselId .carousel-control-next {
  background: transparent;
}

.carousel-header #carouselId .carousel-inner {
  perspective: 1000px;
}

.carousel-header #carouselId .carousel-inner .carousel-item {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.carousel-header #carouselId .carousel-inner .carousel-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out;
  transform: scale(1.1);
  will-change: transform;
  backface-visibility: hidden;
}

/* Fade transition for carousel */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
}

/* 3D Animation for active slide background - Using GSAP instead of CSS */
/* Removed CSS keyframes to prevent conflicts with GSAP animations */
/* Animation is now handled by GSAP in animations-optimized.js */
.carousel-header #carouselId .carousel-inner .carousel-item.active img {
  /* GSAP will handle the animation */
  will-change: transform;
  backface-visibility: hidden;
}

.carousel-header #carouselId .carousel-inner .carousel-item .carousel-caption {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  background-size: cover;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0;
}

.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
  background: transparent !important;
}

.carousel-header #carouselId.carousel {
  position: relative;
}

.carousel-header #carouselId.carousel .carousel-indicators {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.carousel-header #carouselId.carousel .carousel-indicators li,
.carousel-header #carouselId.carousel .carousel-indicators li,
.carousel-header #carouselId.carousel .carousel-indicators li {
  margin-right: 30px !important;
}

.carousel-header #carouselId.carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 12px !important;
  border: 5px solid transparent;
  transition: 0.5s;
}

.carousel-header #carouselId.carousel .carousel-indicators li.active {
  border: 5px solid var(--bs-primary) !important;
  border-radius: 10px;
}
/*** Carousel End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/breadcrumb-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 100px 0 0 0;
}
/*** Single Page Hero Header End ***/

/*** About Start ***/
.about .tab-class .nav .nav-item a.active,
.about .tab-class .nav .nav-item a.active span {
  background: var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

/*** About End ***/

/*** Service Start ***/
.service .service-item {
  position: relative;
  overflow: hidden;
  height: 400px;
  transition: all 0.3s ease;
  will-change: auto;
}

.service .service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: all 0.3s ease;
  will-change: auto;
}

.service .service-item .service-link {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.service .service-item .service-link:hover {
  background: rgba(0, 0, 0, 0.6);
}

.service .service-item .service-link a {
  color: var(--bs-white);
  font-size: 1.5rem;
  border-left: 4px solid var(--bs-secondary);
  padding-left: 6px;
  transform: translateX(0) translateY(0);
  transition: all 0.3s ease;
  will-change: auto;
}

.service .service-item:hover img {
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.service .service-item .service-link:hover a,
.service .service-item:hover .service-link a:hover,
.service .service-item:hover .service-link a {
  transform: translateX(0) translateY(-10px);
  color: var(--bs-secondary);
}
/*** Service End ***/

/*** Donation Start ***/
.donation .donation-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 500px;
}

.donation .donation-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donation .donation-item::after {
  width: 100%;
  height: 100%;
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.donation .donation-item .donation-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  justify-content: end;
  bottom: -60px;
  left: 0;
  transition: 0.5s;
  z-index: 3;
}

/* Badge positioning for Planting Seeds of Hope cards */
.donation .donation-item .badge,
.donation .donation-item span.bg-white {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
}

.donation .donation-item:hover .donation-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  justify-content: end;
  bottom: 0px;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
}

.donation .donation-item .donation-btn {
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
}

.donation .donation-item:hover .donation-btn {
  visibility: visible;
  opacity: 1;
}

/*** Donation End ***/

/*** Counter Start ***/
.counter .counter-item {
  border: none !important;
}

.counter .counter-item .counter-counting {
  width: 100%;
  text-align: center;
  border: none !important;
  font-size: 30px;
}
/*** Counter End ***/

/*** causes Start ***/
.causes .causes-item {
  overflow: hidden;
}

.causes .causes-item .causes-img {
  position: relative;
  transition: 0.5s;
  height: 250px;
  overflow: hidden;
}

.causes .causes-item .causes-img .causes-link {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0 !important;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: rgba(0, 0, 0, 0.2);
  transition: 0.5s;
}

.causes .causes-item .causes-img:hover .causes-link {
  background: rgba(0, 0, 0, 0.6);
}

.causes .causes-item .causes-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.causes .causes-item .causes-img:hover img {
  transform: scalex(-1);
}

.causes .causes-item .causes-img .causes-dination {
  position: absolute;
  top: 0;
  right: 0;
}

.causes .causes-item .causes-img .causes-dination a {
  font-size: 14px;
}

.causes .causes-item .causes-content {
  background: var(--bs-secondary);
  border-color: var(--bs-white);
  border-style: dotted;
  border-top: 0;
}

.causes .causes-item .progress {
  height: 10px;
  overflow: visible;
}

.causes .causes-item .progress .progress-bar {
  position: relative;
  width: 0;
  overflow: visible;
  background: var(--bs-primary);
  transition: 2s;
}

.causes .causes-item .progress .progress-bar span {
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  padding: 1px 5px;
  font-size: 12px;
  color: var(--bs-white);
  background: var(--bs-dark);
  z-index: 1;
}
/*** causes End ***/

/*** Events Start ***/
/* Events List Layout (Landing Page) */
.events-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-list-item {
  display: flex;
  align-items: center;
  background: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  height: 120px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-list-item:hover {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  background-color: #dae3ec;
}

.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  margin-right: 1.5rem;
}

.event-day {
  font-size: 2.5rem;
  font-weight: 600;
  color: #666;
  line-height: 1;
}

.event-month {
  font-size: 0.875rem;
  color: #999;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.event-image-container {
  width: 100px;
  height: 100px;
  min-width: 100px;
  overflow: hidden;
  border-radius: 4px;
  margin-right: 1.5rem;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-subtitle {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #666;
}

.event-location,
.event-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-location i,
.event-time i {
  color: var(--ghi-primary);
  font-size: 0.75rem;
}

.event-action {
  margin-left: auto;
  padding-left: 1rem;
}

.event-action .btn {
  text-transform: lowercase;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

.event .event-carousel.owl-carousel {
  position: relative;
}
.event .event-carousel.owl-carousel .owl-nav .owl-prev {
  position: absolute;
  top: -60px;
  left: 0;
  width: 80px;
  height: 40px;
  border: 1px solid var(--bs-primary);
  background: var(--bs-primary);
  color: var(--bs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.event .event-carousel.owl-carousel .owl-nav .owl-next {
  position: absolute;
  top: -60px;
  right: 0;
  width: 80px;
  height: 40px;
  border: 1px solid var(--bs-primary);
  background: var(--bs-primary);
  color: var(--bs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.event .event-carousel.owl-carousel .owl-nav .owl-prev:hover,
.event .event-carousel.owl-carousel .owl-nav .owl-next:hover {
  background: var(--bs-secondary);
  color: var(--bs-primary);
}
.event .event-carousel .event-item {
  height: 400px;
  overflow: hidden;
}

.event .event-carousel .event-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.event .event-carousel .event-item .event-content {
  background: white !important;
  border-left: 4px solid var(--ghi-secondary);
  position: relative;
  border-style: none;
  border-top: 0;
  height: calc(100% - 250px);
}
/*** Events End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.blog .blog-item .blog-img .blog-info {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--bs-white) !important;
  display: flex;
  align-items: end;
  justify-content: space-between;
  transition: 0.5s;
}

.blog .blog-item .blog-img:hover .blog-info {
  background: rgba(0, 0, 0, 0.6);
}

.blog .blog-item .blog-img .search-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.5s;
}

.blog .blog-item .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog .blog-item .blog-img:hover img {
  transform: scale(1.3);
}

.blog .blog-item .blog-img:hover .search-icon {
  opacity: 1;
}
/*** Blog End ***/

/*** Gallery Start ***/
.gallery .gallery-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 350px;
}

.gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery .gallery-item:hover img {
  transform: scale(1.2);
}

.gallery .gallery-item .gallery-content {
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  background: rgba(249, 195, 123, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: 0.5s;
  z-index: 2;
}

.gallery .gallery-item:hover .gallery-content {
  height: 100%;
}

.gallery .gallery-item .gallery-content .gallery-inner {
  transition: 0.5s;
  background: rgba(0, 0, 0, 0.1);
  padding-top: 40px;
}

.gallery .gallery-item:hover .gallery-content .gallery-inner {
  background: rgba(249, 195, 123, 1);
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery .gallery-item .search-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -80px;
  opacity: 0;
  transition: 0.5s;
  z-index: 3;
}

.gallery .gallery-item:hover .search-icon {
  opacity: 1;
}
/*** Gallery End ***/

/*** Volunteer Start ***/
.volunteer {
  background: rgba(249, 195, 123, 0.1);
}
.volunteer .volunteer-img {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.volunteer .volunteer-img .volunteer-title {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: end;
  transition: 0.5s;
}

.volunteer .volunteer-img:hover .volunteer-title {
  background: rgba(0, 0, 0, 0.5);
}

.volunteer .volunteer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.volunteer .volunteer-img:hover img {
  transform: scale(1.2);
}
/*** Volunteer End ***/

/*** Contact Start ***/
.contact {
  background: rgba(249, 195, 123, 0.4);
  border-style: dotted;
  border-color: var(--bs-white);
}

/*** Contact End ***/

/*** Footer Start ***/
.footer {
  border-top: 3px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-style: dotted;
  border-color: var(--bs-light);
}
.footer .footer-item a,
.footer .footer-item p {
  line-height: 35px;
  color: var(--bs-body);
  transition: 0.5s;
}

.footer .footer-item a:hover {
  color: var(--bs-primary);
  letter-spacing: 1px;
}

.footer .footer-item .footer-gallery {
  position: relative;
  overflow: hidden;
}

.footer .footer-item .footer-gallery img {
  transition: 0.5s;
}

.footer .footer-item .footer-gallery:hover img {
  transform: scale(1.2);
}

.footer .footer-item .footer-gallery .footer-search-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  opacity: 0;
}

.footer .footer-item .footer-gallery:hover .footer-search-icon {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bs-dark) !important;
}
/*** copyright end ***/

/*** Grid/List View Toggle Start ***/
.view-toggle {
  display: flex;
  justify-content: flex-end;
}

.content-container {
  transition: all 0.3s ease;
}

.content-container.grid-view .listing-item {
  margin-bottom: 0;
}

.content-container.list-view .listing-item {
  margin-bottom: 2rem;
}

.content-container.list-view .listing-item .row {
  align-items: center;
}

.content-container.list-view .listing-item {
  width: 100%;
}

.content-container.list-view .listing-item .card {
  flex-direction: row;
}

.content-container.list-view .listing-item img {
  width: 300px;
  max-height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.content-container.list-view .listing-item .card-body {
  flex: 1;
}

.sidebar {
  background: rgba(222, 236, 249, 0.953);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.sidebar-widget {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.sidebar-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-widget h5 {
  color: black;
  font-weight: 600;
}

.sidebar-widget label {
  color: black;
}

.sidebar-widget .form-control,
.sidebar-widget .form-select {
  background: white;
  color: var(--ghi-primary);
}

.sidebar-widget .form-check-label {
  color: black;
}

.sidebar-widget ul li {
  margin-bottom: 0.5rem;
}

.sidebar-widget ul li a {
  color: black;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-widget ul li a:hover {
  color: var(--ghi-secondary);
}

.sidebar-widget .btn-primary {
  background: var(--ghi-secondary);
  color: black;
  border: none;
}

.sidebar-widget .btn-primary:hover {
  background: var(--ghi-secondary);
  color: black;
  opacity: 0.9;
}

.sidebar-widget .btn-outline-secondary {
  background: transparent;
  color: black;
  border-color: black;
}

.sidebar-widget .btn-outline-secondary:hover {
  background: white;
  color: var(--ghi-primary);
}

/* View Details Button Styling */
.listing-item .btn-primary {
  background: var(--ghi-secondary);
  color: black;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.listing-item .btn-primary:hover {
  background: var(--ghi-secondary);
  color: black;
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Page Header Hero Styling */
.page-header {
  position: relative;
  background:
    linear-gradient(rgba(0, 6, 86, 0.2), rgba(0, 6, 86, 0.2)), url(../img/breadcrumb-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 120px 0 80px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.page-header .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-header h1 {
  margin-top: 0;
  line-height: 1.2;
  word-wrap: break-word;
}

.page-header.hero-causes {
  background-image:
    linear-gradient(rgba(0, 6, 86, 0.2), rgba(0, 6, 86, 0.2)),
    var(--hero-causes-bg);
  background-size: cover;
  overflow: hidden;
}

.page-header.hero-initiatives {
  background-image:
    linear-gradient(rgba(0, 6, 86, 0.2), rgba(0, 6, 86, 0.2)),
    var(--hero-initiatives-bg);
  background-size: cover;
  overflow: hidden;
}

.page-header.hero-events {
  background-image:
    linear-gradient(rgba(0, 6, 86, 0.2), rgba(0, 6, 86, 0.2)),
    var(--hero-events-bg);
  background-size: cover;
  overflow: hidden;
}

.page-header.hero-impact {
  background-image:
    linear-gradient(rgba(0, 6, 86, 0.2), rgba(0, 6, 86, 0.2)),
    var(--hero-impact-bg);
  background-size: cover;
  overflow: hidden;
}

.page-header.hero-stories {
  background-image:
    linear-gradient(rgba(0, 6, 86, 0.2), rgba(0, 6, 86, 0.2)),
    var(--hero-stories-bg);
  background-size: cover;
  overflow: hidden;
}

/* Breadcrumb Styling */
.page-header .breadcrumb {
  background: var(--ghi-accent-3);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
}

.page-header .breadcrumb-item a {
  color: black;
  text-decoration: none;
}

.page-header .breadcrumb-item.active {
  color: black;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: black;
  content: '>';
}

.sidebar .breadcrumb {
  background: rgba(255, 255, 255, 0.321);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.sidebar .breadcrumb-item a {
  color: black;
  text-decoration: none;
}

.sidebar .breadcrumb-item.active {
  color: black;
}

.sidebar .breadcrumb-item + .breadcrumb-item::before {
  color: black;
  content: '>';
}

/* Listing Cards - Planting Seeds of Hope Style */
.listing-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.listing-item .card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  height: 500px;
}

.listing-item img {
  overflow: hidden;
  object-fit: cover;
}

.listing-item .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.listing-item:hover .card-img-top {
  transform: scale(1.05);
}

.listing-item .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 2;
}

/* Remove overlay in list view - ensure it's removed */
.content-container.list-view .listing-item .card::after {
  display: none !important;
}

.listing-item .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 3;
  background: transparent;
  color: white;
}

.listing-item .badge {
  background: black !important;
  color: white !important;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.75rem;
  margin-bottom: 0;
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-item .badge + .badge {
  left: auto;
  right: 10px;
}

.listing-item .card-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.listing-item .card-text {
  color: white;
  margin-bottom: 1rem;
}

.listing-item .btn-primary {
  background: var(--ghi-secondary);
  color: black;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  margin-top: auto;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.listing-item .btn-primary:hover {
  background: var(--ghi-secondary);
  color: black;
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* List View Adjustments */
.content-container.list-view .listing-item {
  margin-bottom: 2rem;
}

.content-container.list-view .listing-item .card {
  height: auto;
  min-height: 200px;
  display: flex;
  flex-direction: row;
  background: white;
  position: relative;
  overflow: hidden;
}

.content-container.list-view .listing-item .card::after {
  display: none; /* Remove overlay in list view */
}

.content-container.list-view .listing-item .card-img-top {
  width: 300px;
  min-width: 300px;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  position: relative;
}

.content-container.list-view .listing-item .card-body {
  position: relative;
  left: 0;
  width: calc(100% - 300px);
  padding: 1.5rem;
  background: white;
  color: var(--ghi-primary);
  display: flex;
  flex-direction: column;
}

.content-container.list-view .listing-item .card-title {
  color: var(--ghi-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.content-container.list-view .listing-item .card-text {
  color: #333;
  margin-bottom: 1rem;
}

.content-container.list-view .listing-item .badge {
  background: black !important;
  color: white !important;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.75rem;
  margin-bottom: 0;
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  max-width: calc(300px - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-container.list-view .listing-item .badge + .badge {
  left: auto;
  right: 10px;
  max-width: calc(300px - 20px);
}

/* Modal Header with Image */
.modal-header-with-image {
  border-bottom: none !important;
  position: relative;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  padding: 0;
}

.modal-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.modal-header-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: white;
}

.modal-header-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.modal-header-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 0.5rem;
}

.content-container.list-view .listing-item small {
  color: #666 !important;
}

.content-container.list-view .listing-item .btn-primary {
  background: var(--ghi-secondary);
  color: black;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  margin-top: auto;
  align-self: flex-start;
}
/*** Grid/List View Toggle End ***/

/*** Mobile Visibility Fixes ***/
@media (max-width: 768px) {
  /* Ensure About section tabs wrap properly on mobile */
  .tab-class .nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab-class .nav-item {
    width: 100%;
    margin: 0 0 0.5rem 0 !important;
  }
  
  .tab-class .nav-item a {
    width: 100%;
    margin: 0 !important;
  }
  
  .tab-class .nav-item span {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  
  /* Ensure About section columns stack properly */
  .about .col-xl-5,
  .about .col-xl-7 {
    width: 100%;
    max-width: 100%;
  }
  
  /* Ensure Foundation section displays properly */
  .foundation-card {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  /* Force visibility for About sections */
  .about h1,
  .about h5,
  .about p,
  .tab-class {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/*** Tablet Specific Fixes ***/
@media (min-width: 769px) and (max-width: 1024px) {
  .tab-class .nav {
    flex-wrap: wrap;
  }
  
  .tab-class .nav-item {
    flex: 0 0 auto;
  }
}
/*** Mobile Visibility Fixes End ***/

/* ============================================
   INLINE STYLES MIGRATION - UTILITY CLASSES
   ============================================ */

/* === MAX-WIDTH CONTAINERS === */
.max-w-600 {
  max-width: 600px;
  margin: 0 auto;
}

.max-w-700 {
  max-width: 700px;
  margin: 0 auto;
}

.max-w-800 {
  max-width: 800px;
  margin: 0 auto;
}

.max-w-900 {
  max-width: 900px;
  margin: 0 auto;
}

/* === ICON CIRCLES === */
.icon-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-sm {
  width: 60px;
  height: 60px;
}

.icon-circle-lg {
  width: 70px;
  height: 70px;
}

/* Icon Circle Gradient Variants */
.icon-circle-gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-circle-gradient-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-circle-gradient-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-circle-gradient-green {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-circle-gradient-sunrise {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.icon-circle-gradient-deepsea {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* === HERO/CAROUSEL COMPONENTS === */
.hero-carousel-img {
  object-fit: cover;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-caption-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-subheading {
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.hero-page-subtitle {
  max-width: 720px;
  font-size: 1.1rem;
}

/* === ABOUT SECTION === */
.about-feature-img {
  object-fit: cover;
  overflow: hidden;
}

.about-tab-label {
  min-width: 100px;
  width: 100%;
  max-width: 150px;
  padding: 0 10px;
}

/* === QUOTE SECTION === */
.quote-banner-bg {
  background:
    linear-gradient(rgba(0, 6, 86, 0.3), rgba(0, 6, 86, 0.3)),
    var(--quote-banner-bg) center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.quote-container {
  max-width: 800px;
}

.quote-citation {
  color: var(--ghi-secondary);
}

/* === FOUNDATION SECTION === */
.foundation-section-bg {
  background: var(--ghi-accent-3);
}

.foundation-card-gradient {
  background: linear-gradient(135deg, var(--ghi-primary) 0%, var(--ghi-accent-5) 100%);
}

.foundation-icon {
  font-size: 2rem;
}

.value-description {
  color: var(--ghi-primary);
}

/* === SECTION HEADERS === */
.section-header-container {
  max-width: 800px;
}

/* === IMPACT/CARDS === */
.impact-card-img {
  object-fit: cover;
  overflow: hidden;
}

/* === COUNTER SECTION === */
.counter-section-bg {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    var(--counter-banner-bg) center center / cover no-repeat;
  overflow: hidden;
}

.counter-display {
  font-size: 30px;
}

/* === BADGES === */
.badge-right {
  left: auto;
  right: 10px;
}

.badge-upcoming {
  background: #28a745 !important;
  color: white !important;
}

.badge-ongoing {
  background: #ffc107 !important;
  color: white !important;
}

.badge-completed {
  background: #6c757d !important;
  color: white !important;
}

/* === PROGRESS BARS === */
.initiative-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.15);
}

.initiative-progress-track::-webkit-progress-bar {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.initiative-progress-track::-webkit-progress-value {
  background: var(--progress-color, var(--bs-primary));
  border-radius: 999px;
}

.initiative-progress-track::-moz-progress-bar {
  background: var(--progress-color, var(--bs-primary));
  border-radius: 999px;
}

.progress-color-primary {
  --progress-color: var(--bs-primary);
}

.progress-color-secondary {
  --progress-color: var(--bs-secondary);
}

/* === SOCIAL BUTTONS (Stories) === */
.story-social-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
}

.story-social-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* === ERROR PAGE === */
.error-hero-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 120px 0 80px;
}

.error-code {
  font-size: 120px;
  font-weight: bold;
  opacity: 0.3;
  margin-bottom: 20px;
}

.error-lead-text {
  max-width: 600px;
  margin: 0 auto;
}

/* === COMING SOON PAGE === */
.coming-soon-hero {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content-layer {
  position: relative;
  z-index: 2;
}

.coming-soon-icon-large {
  font-size: 100px;
  opacity: 0.9;
}

.coming-soon-subtitle {
  font-size: 2rem;
  font-weight: 300;
}

.coming-soon-description {
  max-width: 700px;
  margin: 0 auto;
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.animated-bg .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

.animated-bg .circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

.animated-bg .circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 30%;
  left: -100px;
  animation-delay: 5s;
}

.animated-bg .circle:nth-child(3) {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: 20%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-50px) rotate(180deg);
  }
}

/* === HEADER/NAVIGATION === */
.navbar-logo-img {
  max-height: 60px;
}

.navbar-cta-container {
  margin-left: 15px;
}

/* === FOOTER === */
.footer-bg {
  background: var(--ghi-accent-3);
}

.footer-text {
  color: var(--ghi-primary);
}

/* === BREADCRUMBS === */
.breadcrumb-link {
  color: black;
}

.breadcrumb-item-custom {
  color: black;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .hero-carousel-img {
    height: 60vh;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .coming-soon-icon-large {
    font-size: 60px;
  }
  
  .foundation-icon {
    font-size: 1.5rem;
  }
}
