/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: linear-gradient(135deg, #183a5a 0%, #0a223a 100%) !important;
}
body {
  background: #fff !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  position: static !important;
  overflow: visible !important;
}

/* Header & Navigation */
header.site-header {
  background: linear-gradient(135deg, #183a5a 0%, #0a223a 100%);
  color: #fff;
  padding: 18px 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 64, 128, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  border-radius: 0 !important;
}

header.site-header > .container {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.5rem 0 1.5rem 0;
  position: relative;
  flex-wrap: nowrap;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: static !important;
  overflow: visible !important;
}

/* Logo Styling */
.logo-container {
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  border-radius: 8px;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Modern Header Search Bar */
.header-search-bar {
  width: 100%;
  max-width: 600px;
  margin: 20px auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border-radius: 32px;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0,128,128,0.10);
}
.header-search-bar .search-input {
  flex: 1;
  padding: 0.9em 1.2em;
  border-radius: 30px 0 0 30px;
  border: none;
  font-size: 1.1em;
  outline: none;
  background: transparent;
  color: #004080;
}
.header-search-bar .search-input::placeholder {
  color: #008080;
  opacity: 0.7;
}
.header-search-bar .search-btn {
  padding: 0.9em 1.3em;
  border-radius: 0 30px 30px 0;
  border: none;
  background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,128,128,0.10);
}
.header-search-bar .search-btn:hover {
  background: linear-gradient(135deg, #20B2AA 0%, #008080 100%);
  box-shadow: 0 4px 16px rgba(0,128,128,0.18);
}

/* Modern Nav Bar Glassmorphism */
.main-nav {
  background: rgba(255,255,255,0.13);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,64,128,0.18);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(32,178,170,0.10);
  padding: 0.1rem 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  margin-top: 16px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Nav Link Styles */
.nav-link {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.24rem 0.75rem;
  border-radius: 20px;
  transition: all 0.22s cubic-bezier(.4,1.5,.5,1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  background: transparent;
  box-shadow: none;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  overflow: visible;
}

.nav-link span {
  line-height: 1;
  display: inline-block;
  margin: 1px;
  padding-top: 3px; /* fine-tuning */
  padding-bottom: 3px;
}

.nav-link.active, .nav-link:hover {
  background: linear-gradient(90deg, #008080 0%, #20B2AA 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(0,128,128,0.13);
  transform: translateY(-2px) scale(1.06);
  z-index: 2;
}
.nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.nav-link:hover i, .nav-link.active i {
  transform: scale(1.18);
}

/* Remove nav link separators (dots) except between items */
.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-links li:not(:last-child)::after {
  content: '·';
  color: #183a5a;
  opacity: 0.8;
  margin: 0 0.7rem;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1;
}
.nav-links li:first-child::after {
  /* No dot before the first item, only after */
}

.nav-links li:first-child::before {
  content: none !important;
}

/* Prevent nav link text from wrapping (keep GET INVOLVED on one line) */
.nav-link span {
  white-space: nowrap;
}

/* Make the site title larger and bolder */
.site-title h1 {
  font-size: 2.3em !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  margin: 0;
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  display: inline-block;
  padding: 0.2em 1.2em;
  background: linear-gradient(90deg, #b2ffff 0%, #20B2AA 30%, #008080 70%, #b2ffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.08);
  text-shadow: 0 1px 0 #fff;
  z-index: 1;
}
.site-title h1::before {
  content: none;
}

/* Ensure the search button shows the magnifying glass icon clearly */
.header-search-bar .search-btn i {
  font-size: 1.2em;
  margin-left: 0;
  margin-right: 0;
  display: inline-block;
}

/* Responsive Header/Nav */
@media (max-width: 900px) {
  .main-nav {
    border-radius: 14px;
    padding: 0.08rem 0.08rem;
    margin-top: 18px;
  }
  .nav-links {
    gap: 0.3rem;
  }
  .header-search-bar {
    max-width: 98vw !important;
  }
  .nav-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.97rem;
  }
}
@media (max-width: 600px) {
  .main-nav {
    border-radius: 12px;
    padding: 0.2rem 0.1rem;
    margin-top: 10px;
  }
  .nav-links {
    gap: 0.2rem;
  }
  .nav-link {
    padding: 0.7rem 1.1rem;
    font-size: 0.98rem;
  }
  .header-search-bar {
    max-width: 100vw;
    margin: 10px auto 6px auto;
  }
  .header-top h1 {
    font-size: 1.2em !important;
  }
  .involve-card, .testimonial-card {
    border-radius: 12px;
    padding: 1.1rem 0.7rem;
  }
}

/* Remove old search overlay and nav-actions styles if present */
.search-overlay, .nav-actions, .search-toggle, .search-close { display: none !important; }

/* HERO SECTION */
#hero {
  background: linear-gradient(135deg, rgba(0, 64, 128, 0.4) 0%, rgba(0, 86, 179, 0.4) 100%), 
              url('../assets/DrHenryCharles_HeroBanner.jpg') no-repeat 10% center/cover;
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin: 0 0;
  position: right;
  margin-left: 6vw;
  transform: none;
}

.hero-quote {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtext {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.8s;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,128,128,0.10);
}

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

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 128, 128, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #183a5a 0%, #0a223a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 64, 128, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 64, 128, 0.4);
}

/* Section Styling */
.section-header {
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #004080;
  position: relative;
  font-family: 'Raleway', Arial, sans-serif;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #008080, #20B2AA);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.title-underline::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #008080, #20B2AA);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.3;
}

.section-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  color: black;
   font-family: 'Raleway', Arial, sans-serif !important;
}

.foundation-mission-text {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  font-size: 1.13rem;
  color: black;
  line-height: 1.7;
  font-family: 'Raleway', Arial, sans-serif !important;
}

/* FEATURED PROJECT */
#featured-project {
  padding: 4rem 0;
  /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
}

.featured-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image-container {
  flex: 1 1 400px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.featured-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.3s ease;
}

.image-overlay i {
  font-size: 3rem;
  color: white;
}

.featured-content {
  flex: 1 1 400px;
}

.featured-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: black;
}

/* QUICK LINKS */
#quick-links {
  padding: 4rem 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.quick-link-card {
  background: linear-gradient(135deg, #183a5a 0%, #0a223a 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  border: 3px solid #005a63;
  z-index: 1;
}

.quick-link-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.32) 40%, rgba(255,255,255,0.12) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%) skewX(-20deg);
  transition: opacity 0.3s;
  z-index: 2;
}

.quick-link-card:hover::after {
  opacity: 1;
  animation: glisten-move 0.8s linear forwards;
}

@keyframes glisten-move {
  0% {
    transform: translateX(-100%) skewX(-20deg);
  }
  100% {
    transform: translateX(100%) skewX(-20deg);
  }
}

.quick-link-card span {
  font-size: 1.1rem;
}

/* SOCIAL FEED */
#social-feed {
  padding: 4rem 0;
  /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
}

.social-embed {
  margin-top: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: black;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #183a5a 0%, #0a223a 100%) !important;
  color: #fff;
  padding: 4rem 0 2rem 0;
  text-align: center;
  border-top: 3px solid #008080;
  box-shadow: 0 -2px 16px rgba(0,64,128,0.10);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  justify-items: center;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #008080;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.footer-logo h4 {
  margin: 0;
  font-size: 1.3rem;
  text-align: center;
}

.footer-section p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Raleway', Arial, sans-serif !important ;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.15), 0 0 0 4px rgba(255,255,255,0.05) inset;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.social-link::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.social-link:hover {
  background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
  color: #fff;
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 8px 32px rgba(0, 128, 128, 0.25), 0 0 0 6px rgba(255,255,255,0.10) inset;
  z-index: 1;
}

.footer-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: #008080;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 1.1rem 1.2rem;
  border: none;
  border-radius: 25px 0 0 25px;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.newsletter-form input::placeholder {
  color: #ccc;
  font-size: 1.05rem;
}

.newsletter-form button {
  padding: 1.1rem 1.6rem;
  border-radius: 0 25px 25px 0;
  border: none;
  background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 128, 128, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, #20B2AA 0%, #008080 100%);
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0, 128, 128, 0.25);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer-bottom p {
  color: #999;
  margin: 0;
  text-align: center;
  font-size: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.footer-bottom-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-bottom-links a:hover {
  color: #008080;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
  }
}

@media (max-width: 768px) {
  header.site-header {
    padding: 0.5rem 0;
  }
  .nav-container {
    flex-direction: row;
    align-items: center;
    padding: 0.7rem 0.5rem;
  }
  .logo-container {
    margin-right: 1rem;
  }
  .main-nav {
    width: 100%;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    width: 100%;
    justify-content: flex-start;
  }
  .container {
    padding: 1.2rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .gallery-grid,
  .quick-links-grid,
  .testimonials-grid,
  .project-grid,
  .resource-grid,
  .involve-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }
  .footer-section {
    margin-bottom: 1.2rem;
  }
  .footer-bottom {
    padding-top: 1.2rem;
  }
  .btn, .newsletter-form input, .newsletter-form button {
    min-height: 44px;
    font-size: 1.1rem;
  }
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 36px;
    margin-right: 6px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .container {
    padding: 0.7rem 0.2rem;
  }
  .btn, .newsletter-form input, .newsletter-form button {
    min-height: 44px;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.js-enabled .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.js-enabled .animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Delays */
.js-enabled .animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.js-enabled .animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.js-enabled .animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.js-enabled .animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Accessibility */
.skip-link {
    position: absolute;
    top: -999px;
    left: 6px;
    background: #008080;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Split Bio Section for About Page */
.split-bio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.bio-image {
  flex: 1 1 300px;
  max-width: 400px;
}

.bio-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bio-text {
  flex: 1 1 500px;
  color: black
}

/* Testimonials Section (Voices Page) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.85);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,64,128,0.10);
  border-left: 5px solid #183a5a;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.22s;
}

.testimonial-text {
  font-style: italic;
  color:black;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-text::before {
  content: '“';
  font-size: 2.5rem;
  color:black;
  font-weight: 700;
  line-height: 1;
  margin-right: 0.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: #008080;
  align-self: flex-end;
}

/* Media Gallery (Voices Page) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,64,128,0.10);
  border: 3px solid transparent;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  filter: brightness(1.2) blur(0.5px);
  transition: filter 0.2s, opacity 0.2s;
}
.gallery-item:hover::before {
  filter: brightness(1.4) blur(0.5px);
  opacity: 1;
}
.gallery-item:hover {
  box-shadow: 0 8px 36px #20B2AA44, 0 2px 24px #00808022;
  border-color: #20B2AA;
  transform: translateY(-6px) scale(1.03);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(.4,1.5,.5,1);
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 64, 128, 0.9), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-weight: 600;
  font-size: 1.2rem;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.video-container {
  text-align: center;
  margin-top: 2rem;
}

.story-video {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Timeline (About Page) */
.timeline-grid {
  position: relative;
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 2.5rem 0;
}

.timeline-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  height: 100%;
  width: 6px;
  background: linear-gradient(180deg, #20B2AA 0%, #183a5a 100%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 80px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid #20B2AA;
  box-shadow: 0 0 0 4px #183a5a22;
  margin-left: 8px;
  transition: transform 0.3s cubic-bezier(.4,1.5,.5,1), box-shadow 0.3s;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25) rotate(-8deg);
  box-shadow: 0 0 16px 4px #20B2AA88, 0 0 0 8px #183a5a22;
}

.timeline-content { 
  background: #fff;
  padding: 2.25rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(32,178,170,0.10);
  border: 3px solid #20B2AA;
  position: relative;
  font-size: 1.18rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 16px 48px rgba(24,58,90,0.18), 0 0 0 4px #20B2AA33;
  transform: translateY(-6px) scale(1.03);
}

.timeline-content h4 {
  color: #183a5a;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  font-weight: 700;
}

/* Masonry Gallery (About Page) */
.masonry-gallery {
  column-count: 3;
  column-gap: 2rem;
  margin-top: 2rem;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 2rem;
  break-inside: avoid;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,64,128,0.10);
  border: 3px solid transparent;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.masonry-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  filter: brightness(1.2) blur(0.5px);
  transition: filter 0.2s, opacity 0.2s;
}
.masonry-item:hover::before {
  filter: brightness(1.4) blur(0.5px);
  opacity: 1;
}
.masonry-item img {
  width: 100%;
  border-radius: 16px;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(.4,1.5,.5,1);
  display: block;
}

.masonry-item:hover {
  box-shadow: 0 8px 36px #20B2AA44, 0 2px 24px #00808022;
  border-color: #20B2AA;
  transform: translateY(-6px) scale(1.03);
}

.masonry-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .masonry-gallery {
    column-count: 2;
    column-gap: 1.2rem;
  }
  .masonry-item {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 600px) {
  .masonry-gallery {
    column-count: 1;
    column-gap: 0;
  }
  .masonry-item {
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  .masonry-item img {
    border-radius: 10px;
  }
}

/* 'Get Involved' Page Styles */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.involve-card {
  background: rgba(255,255,255,0.85);
  padding: 2rem;
  text-align: center;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,64,128,0.10);
  transition: box-shadow 0.25s, transform 0.22s;
}

.involve-card:hover {
  box-shadow: 0 12px 36px rgba(0,128,128,0.18);
  transform: translateY(-6px) scale(1.03);
}

.involve-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.involve-card h4 {
  color: #0056b3;
  margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 2rem auto;
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  flex: 1 1 100%;
}

.form-row .form-group {
  flex: 1 1 calc(50% - 0.5rem);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.contact-form button {
  width: 100%;
}

/* Social CTA */
#social-cta {
  text-align: center;
}

.social-links-large {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links-large .social-link {
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
}

.social-links-large .social-link i {
  font-size: 1.8rem;
}

/* Popup (Legacy) */
.popup {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.popup-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.popup-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #004080 0%, #0056b3 100%);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .main-nav.mobile-active .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-quote {
    font-size: 2.5rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .featured-card {
    flex-direction: column;
    text-align: center;
  }

  .featured-img,
  .featured-image-container {
    flex: none;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .footer-section {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    width: 95%;
    padding: 1.5rem 0;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .search-container {
    width: 95%;
  }

  .timeline-grid::before {
    left: 9px;
  }

  .timeline-item {
    padding-left: 35px;
  }
  
  .timeline-dot {
    margin-left: 0;
  }

  .masonry-gallery {
    column-count: 2;
  }

  .form-row .form-group {
    flex-basis: 100%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .hero-quote {
    font-size: 2rem;
  }
  
  .hero-overlay {
    padding: 2rem 1rem;
    margin: 0 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .nav-container {
    padding: 0.75rem 0;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo {
    width: 40px;
    margin-right: 8px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .featured-card {
    padding: 1.5rem;
    gap: 2rem;
  }
  

  
  .footer-content {
    gap: 1.5rem;
    justify-items: center;
  }
  
  .footer-section {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form button {
    width: 100%;
  }

  .masonry-gallery {
    column-count: 1;
  }
}

/* 'Initiatives' Page Styles */
.details-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.details-list li {
  margin-bottom: 0.5rem;
  color: black;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.project-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.project-card-content h4 {
  color: #0056b3;
  margin-bottom: 0.5rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15);
}

.resource-icon {
  font-size: 2rem;
  color: #0056b3;
}

.resource-content h4 {
  margin-bottom: 0.5rem;
  color: #0056b3;
}

.resource-content p {
  font-size: 0.95rem;
  color: black;
  margin-bottom: 0.5rem;
}

.resource-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #008080;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  display: inline-block;
}

/* 'Contact' Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #004080;
  margin-bottom: 1.5rem;
}

.contact-info-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.contact-info-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-card i {
  font-size: 2rem;
  color: #0056b3;
  margin-bottom: 1rem;
}

.contact-info-card h4 {
  color: #0056b3;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: black;
  margin-bottom: 1rem;
}

.contact-info-card a,
.contact-info-card span {
  font-weight: 600;
  color: #008080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

main {
  display: block;
  margin-bottom: 4rem;
  margin-top: 2.5rem;
}

/* For extra safety, also add margin-bottom to the last .container before the footer */
.container:last-of-type {
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  main {
    margin-top: 1.2rem;
  }
  .container:last-of-type {
    margin-bottom: 2rem;
  }
}
nav a {
  text-transform: uppercase;
}

.nav-contact-icon {
  margin-left: 8px; /* Adjust value as needed */
}

/* Small, centered nav search bar below nav */
.nav-search-bar {
  max-width: 260px !important;
  width: 100%;
  margin: 18px auto 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,128,128,0.10);
  transition: box-shadow 0.2s, max-width 0.3s cubic-bezier(.4,1.5,.5,1);
  margin-top: 22px !important;
}
.nav-search-input {
  flex: 1;
  padding: 0.45em 0.8em;
  border-radius: 22px 0 0 22px;
  border: none;
  font-size: 0.98em;
  outline: none;
  background: transparent;
  color: #000 !important;
}
.nav-search-input::placeholder {
  color: #000 !important;
  opacity: 0.5;
}
.nav-search-btn {
  padding: 0.45em 0.8em;
  border-radius: 0 22px 22px 0;
  border: none;
  background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,128,128,0.08);
}
.nav-search-btn i {
  font-size: 1em;
  margin-left: 0;
  margin-right: 0;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.4,1.5,.5,1), color 0.2s;
}
.nav-search-input:focus + .nav-search-btn i,
.nav-search-btn:hover i {
  transform: rotate(20deg) scale(1.18);
  color: #C0C0C0;
}
@media (max-width: 600px) {
  .nav-search-bar {
    max-width: 98vw !important;
    margin-top: 12px !important;
  }
  .nav-search-input, .nav-search-btn {
    font-size: 0.93em;
    padding: 0.35em 0.6em;
  }
}

/* Add space between header and nav bar, and bring nav/search bar down */
.header-top {
  margin-bottom: 0 !important;
}

/* 4. Search bar: shadow, glow, animate width on focus */
.nav-search-bar:focus-within {
  box-shadow: 0 6px 28px 0 rgba(0,128,128,0.18), 0 0 0 3px #20B2AA33;
  max-width: 320px !important;
}

/* 5. Clear 'X' button for search bar */
.nav-search-bar {
  position: relative;
}
.nav-search-clear {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  font-size: 1.1em;
  cursor: pointer;
  display: none;
  z-index: 2;
}
.nav-search-input:not(:placeholder-shown) ~ .nav-search-clear {
  display: block;
}

/* 6. Typography: headings use Raleway, body uses Inter */
h1, h2, h3, h4, h5, h6, .section-title, .form-title {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
body, p, li, .section-text {
 font-family: 'Raleway', Arial, sans-serif !important;
  line-height: 1.7;
}

/* 7. Card-style backgrounds and hover for .involve-card, .testimonial-card */
.involve-card, .testimonial-card {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,64,128,0.10);
  transition: box-shadow 0.25s, transform 0.22s;
}
.involve-card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(0,128,128,0.18);
  transform: translateY(-6px) scale(1.03);
}

/* 8. Button shadow and scale on hover */
.btn, .btn-primary {
  box-shadow: 0 2px 8px rgba(0,128,128,0.10);
  transition: box-shadow 0.18s, transform 0.18s;
}
.btn:hover, .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,128,128,0.18);
  transform: scale(1.04);
}

/* 9. Footer: top border, darker background */
.site-footer {
  background: linear-gradient(135deg, #183a5a 0%, #0a223a 100%) !important;
  border-top: 3px solid #008080;
  box-shadow: 0 -2px 16px rgba(0,64,128,0.10);
}

/* 10. Utility: Hide clear button on search if empty */
.nav-search-bar .nav-search-clear {
  display: none;
}
.nav-search-input:not(:placeholder-shown) ~ .nav-search-clear {
  display: block;
}

@media (max-width: 700px) {
  .timeline-grid {
    max-width: 98vw;
    padding-left: 0;
    align-items: center;
  }
  .timeline-grid::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-item {
    flex-direction: column;
    align-items: center;
  }
  .timeline-dot {
    margin: 0 0 1rem 0;
    left: 0;
    transform: none;
  }
  .timeline-content {
    width: 98vw;
    max-width: 98vw;
    min-width: 0;
    margin: 0 auto 2.5rem auto;
    border-left: none;
    border-top: 4px solid #20B2AA;
    border-radius: 18px;
    padding: 1.1rem 0.7rem;
    text-align: left;
  }
}

.foundation-list-card {
  background: linear-gradient(135deg, #e0f7fa 0%, #f8fafd 100%);
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(32,178,170,0.13);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin: 4.5rem 0 2.5rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 2.5px dashed #20B2AA;
  position: relative;
}
.fun-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 2.5rem;
  justify-items: center;
}
.fun-list-hover-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; }
.fun-popup-modal {
  display: none;
  position: static;
  left: unset;
  top: unset;
  transform: none;
  z-index: 1;
  background: none;
  pointer-events: none;
  width: 100%;
  margin-top: 0.7rem;
}
.fun-list-hover-wrap:hover .fun-popup-modal,
.fun-list-hover-wrap:focus-within .fun-popup-modal {
  display: block;
  pointer-events: auto;
}
.fun-popup-content {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  color: #183a5a;
  border-radius: 18px;
  padding: 1.1rem 1.5rem 1rem 1.5rem;
  box-shadow: 0 8px 32px #20B2AA33, 0 0 0 4px #20B2AA22, 0 2px 18px rgba(0,0,0,0.10);
  font-size: 1.08rem;
  font-family: 'Raleway', Arial, sans-serif !important;
  text-align: center;
  animation: popIn 0.25s cubic-bezier(.4,1.5,.5,1);
  margin: 0 auto;
}
.fun-popup-content::after { display: none; }
@media (max-width: 900px) {
  .fun-list {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
  }
}

/* New Carousel Styles */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.carousel-inner {
  display: flex;
  transition: transform 0.6s cubic-bezier(.4,1.5,.5,1);
}
.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #000;
  padding: 3rem;
  text-align: center;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(32, 178, 170, 0.2);
  color: #20B2AA;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: rgba(32, 178, 170, 0.4); }

.carousel .quick-link-card {
  padding: 3.5rem 2rem;
  font-size: 1.25rem;
  width: calc(100% - 120px);
  max-width: 700px;
  margin: 0 auto;
}
.carousel .quick-link-card i {
  font-size: 2.5rem;
}

.sticky-test {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #183a5a !important;
  width: 100% !important;
}

.directors-section {
  padding: 3rem 1rem;
  text-align: center;
}

.directors-section h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 2rem;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  justify-items: center;
}


.card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 220px;
  text-align: center;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

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

.card p {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #333;
}

/* Popup Modal */
.popup {
  position: fixed;
  display: none;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.popup-content {
  background-color: #d3d3d3;
  margin: 10% auto;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 800px;
}

.popup-content img {
  width: 300px;
  height: 350px;
  border-radius: 10px;
}

.bio-text {
  text-align: left;
  margin-bottom: 15rem;
}

.bio-text h3 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.bio-text p {
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/*end*/
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #004080;
  padding: 0.5rem 0;
  border-radius: 8px;
  z-index: 1000;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: white;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #0056b3;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.trustees-section {
  padding: 2rem 1rem 3rem;
  text-align: center;
  background-color: #f9f9f9;
}

.trustees-section .section-header {
  margin-bottom: 1.5rem;
}

.trustees-section .section-title {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #004080;
}

.trustees-section .title-underline {
  width: 60px;
  height: 3px;
  background-color: #004080;
  margin: 0 auto;
  border-radius: 2px;
}

.trustees-section .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.trustees-section .card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.trustees-section .card:hover {
  transform: translateY(-5px);
}

.trustees-section .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.trustees-section .card p {
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

@media (max-width: 500px){ 
    .card-container{
        gap: 1rem; 
    }

    .card{
        max-width: 100%; 
    }

    .directors-section h2,
    .trustees-section .section-title{
        font-size: 1.5rem;
    }

    .popup-content{
        flex-direction: column;
        margin: 5% auto; 
        max-width: 95vw;
        padding: 1rem; 
        box-sizing: border-box; 
        max-height: 90vh;
        overflow-y: auto; 
    }

    .popup-content img{
        width: 80%; 
        height: auto; 
        object-fit: cover; 
        margin-bottom: 1rem; 
        margin-left: auto;
        margin-right: auto; 
        display: block; 
    }

    .bio-text{
        margin-bottom: 1rem;
        text-align: left; 
        padding: 0 0.5rem; 
    }

    .close{
        top: 10px; 
        right: 10px;
        font-size: 2rem; 
        color: #cbc9c9; 
    }
}

.header-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Stylish circular social icons */
.header-socials {
  display: flex;
  gap: 0.6rem;
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 128, 128, 0.1);
  opacity: 0.85;
}

.header-socials a:hover {
  background: linear-gradient(135deg, #008080 0%, #20B2AA 100%);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(0, 128, 128, 0.2);
  opacity: 1;
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 8px;
}

.header-search input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 6px 8px;
  font-size: 0.9rem;
  width: 140px;
  transition: width 0.3s ease;
}

.header-search input[type="text"]:focus {
  width: 200px;
}

.header-search input::placeholder {
  color: #ccc;
}

.header-search button {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-search button:hover {
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .header-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-search {
    width: 100%;
    justify-content: space-between;
  }

  .header-search input[type="text"] {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .header-socials a {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

p {
  font-family: 'Raleway', Arial, sans-serif !important;
}

.featured-video-container {
  flex: 2.5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
