/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Simple Strata-inspired styles: adjust as needed or replace with official Strata CSS */
:root{
  --accent:#e6007e; /* magenta pink accent */
  --bg:#0b0b0b;
  --muted:#666;
  --maxw:1100px;
  --gap:1.25rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#111;
  background:#fff;
}
*{box-sizing:border-box}
body{margin:0; line-height:1.6; color:#222}
a{color:var(--accent); text-decoration:none}

/* Global container */
.inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:2rem;
}

/* Header */
header#header{
  background:#fff;
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:50;
}
header .inner{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:0.8rem 2rem;      /* reduced padding = shorter header */
}

/* Logo + brand */
.logo{
  display:flex;
  align-items:center;
  gap:.5rem;
  text-decoration:none;
}
.logo-img{
  height:60px;              /* 🔹 updated logo height to 60px */
  width:auto;
  object-fit:contain;
}
.brand{
  font-weight:700;
  color:#111;
  font-size:1.2rem;         /* slightly smaller text */
  white-space: nowrap;      /* keep 'The DOE Foundation' on one line */
}

/* Nav */
#nav{
  margin-left:auto;
  display:flex;
  gap:0.045rem;             /* very small gap between nav items */
  align-items:center;
}
#nav a{
  padding:.4rem .6rem;      /* reduced padding inside links */
  color:#333;
  font-weight:600;          /* make nav items bold */
}
#nav a.active{
  border-bottom:3px solid var(--accent);
  padding-bottom:.25rem;
}

/* CTA button */
.cta{
  background:var(--accent);
  color:#fff;
  padding:.4rem .7rem;      /* slimmer button */
  border-radius:4px;
  margin-left:.6rem;
  font-weight:700;          /* make Join Our Mission stronger */
  white-space: nowrap;      /* keep 'Join Our Mission' on one line */
}

/* Hide "Home" link on the homepage only (body has class="home") */
body.home #nav a[href="index.html"]{
  display:none;
}

/* Banner */
#banner{
  padding:4.5rem 0;         /* slightly reduced from 6rem */
  color:#fff;
  background-size:cover;
  background-position:center;
}
#banner .inner{
  background:rgba(0,0,0,0.45);
  padding:2rem;
  border-radius:8px;
}
#banner h1{
  font-size:2.1rem;
  margin:0 0 1rem;
}
#banner p{
  max-width:60ch;
  margin-bottom:1rem;
}
.actions .button{
  display:inline-block;
  margin-right:.5rem;
  padding:.6rem 1rem;
  border-radius:4px;
  background:rgba(255,255,255,0.12);
  color:#fff;
  border:1px solid rgba(255,255,255,0.15);
}
.button.primary{
  background:var(--accent);
  border:0;
  box-shadow:0 4px 14px rgba(230,0,126,.12);
}

/* Sections */
.wrapper{padding:3rem 0}
.major h2{margin-top:0}
.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1rem;
  margin-top:1rem;
}
.features article{
  background:#fff;
  padding:1rem;
  border-radius:8px;
  box-shadow:0 8px 20px rgba(0,0,0,0.05);
}
.features .icon{
  font-size:1.8rem;
  display:block;
  margin-bottom:.5rem;
}

/* About */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.values{list-style:none; padding:0}
.image-grid{
  display:flex;
  gap:.5rem;
  margin-top:1rem;
}
.image-grid img{
  width:100%;
  max-width:48%;
  border-radius:6px;
}

/* Programs & Projects */
.program-list article{
  display:flex;
  gap:1rem;
  margin-bottom:1rem;
  background:#fff;
  padding:1rem;
  border-radius:8px;
}
.program-list img{
  width:160px;
  height:110px;
  object-fit:cover;
  border-radius:6px;
}
.gallery{
  display:flex;
  gap:.5rem;
}
.gallery figure{flex:1}
.gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:6px;
}

/* Callouts */
.callouts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}
.callouts article{
  background:#fff;
  padding:1rem;
  border-radius:8px;
  text-align:center;
}

/* Contact grid */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}
.contact-card{
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  padding:1rem;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}


/* Footer */
#footer{
  background:#111;
  color:#ddd;
  padding:1.5rem 0;
  margin-top:2rem;
}
#footer a{color:#fff}
.small{
  font-size:.9rem;
  color:var(--muted);
}

/* Responsive */
@media (max-width:800px){
  #nav{display:none}
  header .inner{
    justify-content:space-between;
    padding:0.6rem 1.2rem;  /* even tighter header on mobile */
  }

  /* smaller logo & text on small screens so it fits */
  .logo-img{
    height:40px;
  }
  .brand{
    font-size:1rem;
    white-space: nowrap;    /* keep it on one line on mobile */
  }

  #banner h1{font-size:1.5rem}
  .split{grid-template-columns:1fr}
}
/* Header – default white */
header#header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  transition: 
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;
}

/* Default text colors */
.brand,
#nav a {
  color: #111;
  transition: color 0.3s ease;
}

/* Hover → glass effect */
header#header:hover {
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Hover text turns white */
header#header:hover .brand,
header#header:hover #nav a {
  color: #ffffff;
}

/* Active nav indicator (always visible) */
#nav a.active {
  border-bottom: 3px solid var(--accent);
}
header#header:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
@media (max-width: 800px) {
  header#header {
    background: rgba(10,10,10,0.65);
    backdrop-filter: blur(10px);
  }

  .brand,
  #nav a {
    color: #fff;
  }
}
/* ================================
   Contact Page – Blurred Background
================================ */

/* Target ONLY the contact section */
.wrapper.style6 {
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Blurred image layer */
.wrapper.style6::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/contact-bg.jpg") center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.15); /* prevents blur edges */
  z-index: 0;
}

/* Keep content above blur */
.wrapper.style6 .inner {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 18px;
}
/* Nav hover → pink accent */
#nav a {
  transition: color 0.25s ease;
}

#nav a:hover {
  color: var(--accent);
}

/* Keep active link consistent */
#nav a.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}
#nav a {
  position: relative;
}

#nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

#nav a:hover::after {
  width: 100%;
}
/* ================================
   NAV – GLASS + GLOW + ANIMATION
================================ */

/* Base nav link */
#nav a {
  position: relative;
  padding: .45rem .7rem;
  border-radius: 999px; /* pill shape */
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover: pink text + glass pill + glow */
#nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(230, 0, 126, 0.45);
}

/* Animated underline indicator */
#nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 4px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

/* Expand underline on hover */
#nav a:hover::after {
  width: 60%;
}

/* Active page state */
#nav a.active {
  color: var(--accent);
}

/* Active underline always visible */
#nav a.active::after {
  width: 70%;
}
/* Page fade-in */
body {
  animation: pageFade 0.6s ease both;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Carousel wrapper */
.carousel-wrapper {
  max-width: var(--maxw);
  margin: 4rem auto;
  overflow: hidden;
  padding: 0 1rem;
}

/* Carousel inner container */
.carousel-inner {
  display: flex;
  gap: 1.5rem;
  animation: slideCarousel 12s infinite;
}

/* Each carousel card */
.carousel-card {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(230,0,126,0.55);
}

/* Card headings */
.carousel-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Card paragraph */
.carousel-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85);
}

/* Carousel CTA button */
.carousel-card .cta {
  padding: .5rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(230,0,126,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-card .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(230,0,126,0.65);
}

/* Carousel sliding animation */
@keyframes slideCarousel {
  0% { transform: translateX(0); }
  25% { transform: translateX(-320px); }
  50% { transform: translateX(-640px); }
  75% { transform: translateX(-320px); }
  100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .carousel-inner {
    flex-direction: column;
    animation: none;
  }

  .carousel-card {
    margin-bottom: 1.5rem;
  }
}
/* Hero section buttons only */
#banner .actions .button {
  display: inline-block;
  margin-right: .5rem;
  padding: .6rem 1rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateY(20px);
  animation: heroButtonFade 0.8s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Staggered animation for each hero button */
#banner .actions .button:nth-child(1) { animation-delay: 0.3s; }
#banner .actions .button:nth-child(2) { animation-delay: 0.6s; }
#banner .actions .button:nth-child(3) { animation-delay: 0.9s; }

/* Hover effect: lift + glow */
#banner .actions .button:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 25px rgba(230,0,126,0.6);
}

/* Primary hero button */
#banner .actions .button.primary {
  background: var(--accent);
  border: 0;
  box-shadow: 0 4px 14px rgba(230,0,126,.3);
}

#banner .actions .button.primary:hover {
  box-shadow: 0 0 35px rgba(230,0,126,.8);
}

/* Keyframes */
@keyframes heroButtonFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width:800px){
  #banner .actions .button {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: .5rem;
  }
}
/* ========================
   News Section
======================== */
.news-grid, .programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Glass cards */
.news-card, .program-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover, .program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(230,0,126,0.35);
}

/* Card images */
.news-card img, .program-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Card content */
.news-card h3, .program-card h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 1rem 1rem 0.5rem 1rem;
}

.news-card p, .program-card p {
  font-size: 0.95rem;
  margin: 0 1rem 1rem 1rem;
  color: #fff;
}

/* CTA buttons in news */
.news-card .cta {
  display: inline-block;
  margin: 0 1rem 1rem 1rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(230,0,126,0.45);
  color: #fff;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(230,0,126,0.65);
}

/* Section header */
.news-section header.major h2,
.programs-section header.major h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.news-section header.major p,
.programs-section header.major p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width:800px){
  .news-grid, .programs-grid {
    grid-template-columns: 1fr;
  }
}
.news-section, .programs-section {
  position: relative; /* ensures stacking context */
  z-index: 2;         /* above other pseudo-elements */
}

.news-section .inner, .programs-section .inner {
  position: relative;
  z-index: 2;
}
/* Card content text */
.card-content h3 {
  font-size: 1.25rem;
  color: #111; /* changed from var(--accent) to black */
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #111; /* changed to black for readability */
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

/* CTA button text stays white for contrast */
.card-content .cta {
  color: #fff;
}
/* ===== News Carousel ===== */
.news-card {
  flex: 0 0 280px; /* width of each card */
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(230,0,126,0.35);
}

.news-card .card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card .card-content {
  padding: 1rem;
}

.news-card .card-content h3 {
  font-size: 1.25rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.news-card .card-content p {
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 0.75rem;
}

.news-card .cta {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(230,0,126,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(230,0,126,0.65);
}

/* Carousel container */
.news-section .carousel-wrapper {
  max-width: var(--maxw);
  overflow: hidden;
  padding: 0 1rem;
}

.news-section .carousel-inner {
  display: flex;
  gap: 1.5rem;
  animation: slideNews 20s linear infinite;
}

/* Sliding animation */
@keyframes slideNews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive: vertical stack on small screens */
@media (max-width: 900px) {
  .news-section .carousel-inner {
    flex-direction: column;
    animation: none;
  }

  .news-card {
    flex: 1 0 auto;
    margin-bottom: 1.5rem;
  }
}
.news-card {
  width: 300px;             /* slightly smaller width */
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 16px;      /* slightly smaller radius */
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin: 0.75rem auto;     /* reduce top/bottom spacing */
}

/* Card content spacing */
.card-content {
  padding: 0.75rem 1rem;    /* tighter padding */
}

.card-content h3 {
  font-size: 1.15rem;       /* slightly smaller heading */
  margin-bottom: 0.4rem;
}

.card-content p {
  font-size: 0.9rem;        /* slightly smaller paragraph */
  margin-bottom: 0.5rem;
}

/* Slideshow image height */
.card-image.slideshow {
  height: 160px;             /* reduce height to fit */
}

/* CTA button smaller */
.card-content .cta {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}
/* Carousel wrapper */
.projects-carousel-section .carousel-wrapper {
  overflow: hidden;
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Carousel inner container */
.projects-carousel-section .carousel-inner {
  display: flex;
  gap: 1rem;
  animation: slideProjects 18s linear infinite;
}

/* Each image card */
.carousel-card {
  flex: 0 0 250px;                  /* fixed width */
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card img {
  width: 100%;
  height: 160px;                    /* adjust as needed */
  object-fit: cover;
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(230,0,126,0.3);
}

/* Carousel sliding animation */
@keyframes slideProjects {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Adjust if more images */
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .projects-carousel-section .carousel-inner {
    flex-direction: column;
    animation: none;
  }

  .carousel-card {
    flex: 1 0 auto;
    margin-bottom: 1rem;
  }
}
/* Carousel wrapper */
.projects-carousel-section .carousel-wrapper {
  overflow: hidden;
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Carousel inner container */
.projects-carousel-section .carousel-inner {
  display: flex;
  gap: 1rem;
  animation: slideProjects 18s linear infinite;
}

/* Each image card */
.carousel-card {
  flex: 0 0 250px;                  /* fixed width */
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card img {
  width: 100%;
  height: 160px;                    /* adjust as needed */
  object-fit: cover;
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(230,0,126,0.3);
}

/* Carousel sliding animation */
@keyframes slideProjects {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Adjust if more images */
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .projects-carousel-section .carousel-inner {
    flex-direction: column;
    animation: none;
  }

  .carousel-card {
    flex: 1 0 auto;
    margin-bottom: 1rem;
  }
}
/* Carousel wrapper */
.projects-carousel-section .carousel-wrapper.single-slide {
  overflow: hidden;
  max-width: 100%;
  margin: 2rem auto;
  position: relative;
}

/* Carousel inner container */
.projects-carousel-section .carousel-inner {
  display: flex;
  transition: transform 1s ease-in-out;
}

/* Each carousel card */
.projects-carousel-section .carousel-card {
  flex: 0 0 100%;       /* full width for single image */
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.projects-carousel-section .carousel-card img {
  width: 100%;
  height: 450px;       /* adjust height as needed */
  object-fit: cover;
}

/* Hover effect (optional) */
.projects-carousel-section .carousel-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(230,0,126,0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .projects-carousel-section .carousel-card img {
    height: 300px;
  }
}
/* Remove vertical spacing for sections */
.wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* Remove padding inside inner containers */
.wrapper .inner {
  padding-top: 0.5rem;
  padding-bottom: 0;
}

/* Remove extra spacing for headers */
.wrapper header.major {
  margin-top: 0;
  margin-bottom: 0.5rem; /* small gap below header text */
}

.wrapper header.major h2,
.wrapper header.major p {
  margin-top: 0;
  margin-bottom: 0.5rem; /* adjust as needed */
}
.testimonials {
  margin-top: 0;   /* reduce top gap */
  margin-bottom: 0; /* reduce bottom gap */
  padding: 0;            /* remove inner padding if any */
}

.testimonials blockquote {
  margin: 0.25rem 0;    /* tighter blockquote spacing */
}
