/* css/style-new.css */

/*--------------------------------------------------------------
# General & Variables
--------------------------------------------------------------*/
:root {
  --primary-color: #F4A300; /* A vibrant gold for highlights */
  --secondary-color: #212529; /* A deep charcoal for text and dark backgrounds */
  --background-color: #f8f9fa; /* A light grey for content backgrounds */
  --surface-color: #ffffff; /* White for cards and surfaces */
  --light-text: #6c757d; /* Muted text for secondary information */
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--secondary-color);
  background-color: var(--surface-color);
  padding-top: 70px; /* Offset for fixed navbar */
}

.section {
  padding: 80px 0;
}

.section-heading {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-heading::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d18c00;
    border-color: #d18c00;
    transform: translateY(-2px);
}


/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
  background-color: rgba(33, 37, 41, 0.9) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  color: rgba(255,255,255,0.7) !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/*--------------------------------------------------------------
# Hero Section (Home Page)
--------------------------------------------------------------*/
.hero-banner {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('photos/african-community.jpg') center center;
  background-size: cover;
  color: var(--surface-color);
  padding: 120px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-banner h1 {
  color: var(--primary-color);
  font-weight: 700;
}

.hero-banner .lead{
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Carousel
--------------------------------------------------------------*/
#leadersCarousel .carousel-item img {
  height: 600px;
  object-fit: cover;
  filter: brightness(0.7);
  border-radius: 15px;
}

#leadersCarousel .carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  border-radius: 0 0 15px 15px;
  padding: 40px 20px 20px 20px;
  bottom: 0;
  left: 0;
  right: 0;
}

/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.gallery-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item-v2 {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.gallery-item-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-image-wrapper {
  position: relative;
  display: block;
}

.gallery-img-v2 {
  transition: transform 0.4s ease;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.gallery-item-v2:hover .gallery-img-v2 {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: white;
  padding: 40px 20px 20px 20px;
}

.overlay-text h5 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.overlay-text span {
  color: var(--primary-color);
  font-weight: 500;
}

/*--------------------------------------------------------------
# Cards & Lists (Used across multiple pages)
--------------------------------------------------------------*/
.material-list li {
  font-size: 1.1rem;
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}
.material-list li:hover {
    background-color: #e9ecef;
}

#impact .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#impact .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

#impact .card-title {
  color: var(--primary-color);
  font-weight: 700;
}

/*--------------------------------------------------------------
# Contact Form
--------------------------------------------------------------*/
#contact .card {
    background-color: var(--background-color);
}

#contact .form-control {
    min-height: 50px;
    border-radius: 8px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background: var(--secondary-color);
  padding: 20px 0;
  color: rgba(255,255,255,0.7);
}

footer .bi {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer a:hover .bi, footer a:hover {
  color: var(--primary-color) !important;
}
