/* ══════════════════════════════════════════════════════
   SEIF Static Site — Main Stylesheet
   Brand colour: #3dcd58
   ══════════════════════════════════════════════════════ */

/* ── Variables & Base ─────────────────────────────── */
:root {
  --green: #3dcd58;
  --green-d: #2ea649;
  --text: #626469;
  --dark: #333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial Rounded MT Bold", Arial;
  background: #fafafa;
  color: var(--text);
  font-size: 16px;
  line-height: 28px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Arial Rounded MT Bold", Arial;
  font-weight: 500;
  line-height: 36px;
  margin: 0 0 16px;
}

h1 { font-size: 56px; }
h2 { font-size: 36px; color: var(--green); }
h3 { font-size: 36px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 15px;
  padding: 0;
}

a {
  text-decoration: none;
}

.sep {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--green);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ── NAVBAR ────────────────────────────────────────── */
#main-nav {
  background: var(--green);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1040;
  padding: 0;
}

#main-nav .navbar-brand img {
  height: 52px;
  width: auto;
}

#main-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* White hamburger icon on green bg */
#main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hide Bootstrap dropdown caret entirely */
#main-nav .nav-link.dropdown-toggle::after {
  display: none;
}

#main-nav .nav-link {
  font-size: 14px;
  font-weight: 900;
  font-family: "Arial Rounded MT Bold", Arial;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #fff !important;
  padding: 24px 14px !important;
  transition: opacity 0.2s;
}

/* hover only — slight dim on green bg */
#main-nav .nav-link:hover {
  opacity: 0.82;
  color: #fff !important;
}

#main-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  padding: 6px 0;
  min-width: 200px;
}

#main-nav .dropdown-item {
  font-size: 13px;
  font-weight: 600;
  font-family: "Arial Rounded MT Bold", Arial;
  color: #333;
  padding: 8px 20px;
  letter-spacing: 0.5px;
  background: #fafafa;
}

#main-nav .dropdown-item:hover {
  background: #f0fdf4;
  color: var(--green);
}

@media (max-width: 991px) {
  #main-nav .nav-link {
    padding: 10px 14px !important;
  }

  #main-nav .dropdown-menu {
    box-shadow: none;
    background: #f9f9f9;
  }

  /* Collapsed nav links colour on green bg */
  #main-nav .navbar-collapse {
    background: var(--green);
    padding: 0 10px 10px;
  }
}

/* ── HERO CAROUSEL ─────────────────────────────────── */
#heroSlider {
  cursor: grab;
}

#heroSlider.dragging {
  cursor: grabbing;
}

#heroSlider .carousel-item {
  height: 580px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  user-select: none;
}

#heroSlider .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .10) 80%);
}

#heroSlider .carousel-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}

#heroSlider .carousel-caption h2 {
  color: #fff !important;
  font-size: 2.25rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .50);
  margin-bottom: 28px;
  line-height: 1.35;
}

.btn-hero {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 11px 34px;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-hero:hover {
  background: var(--green-d);
}

#heroSlider .carousel-indicators {
  margin-bottom: 22px;
}

#heroSlider .carousel-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff !important;
  background: transparent;
  opacity: 0.75;
}

#heroSlider .carousel-indicators .active {
  background: var(--green);
  border-color: var(--green) !important;
  opacity: 1;
}

/* hero mobile handled in global responsive block below */

/* ── IMPACT ────────────────────────────────────────── */
#impact {
  background: #fff;
  padding: 46px 0 40px;
}

#impact .sep {
  margin: 8px auto 32px;
}

.counter-box {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 28px 16px 22px;
  border-radius: 3px;
}

.counter-box .icon-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.counter-box .icon-wrap img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.counter-box .countno {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 10px;
}

.counter-box p {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}

/* ── WHAT WE DO ────────────────────────────────────── */
#what-we-do {
  padding: 16px 0 30px;
}

.wwd-card {
  background: #fff;
  padding: 28px 40px 30px;
  border: 1px solid #e7e6e6;
  position: relative;
}

.wwd-card .section-title {
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.wwd-card .sep {
  margin: 8px 0 22px;
}

#wwdCarousel {
  cursor: grab;
}

#wwdCarousel.dragging {
  cursor: grabbing;
}

#wwdCarousel .carousel-item {
  user-select: none;
}

#wwdCarousel .carousel-item p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.85;
}

.read-more-link {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  color: var(--green-d);
}

#wwdCarousel video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #000;
  border-radius: 2px;
}

.wwd-prev,
.wwd-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 20px;
  color: #9fa0a4;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0 6px;
}

.wwd-prev {
  left: -22px;
}

.wwd-next {
  right: -22px;
}

.wwd-prev:hover,
.wwd-next:hover {
  color: var(--green);
}

/* ── FOCUS AREAS ───────────────────────────────────── */
#focus-areas {
  padding: 30px 0 40px;
  background: #fff;
}

.focus-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform .2s, box-shadow .2s;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.13);
}

.focus-card figure {
  margin: 0;
}

.focus-card figure img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.focus-card .fc-body {
  padding: 18px 20px 20px;
}

.focus-card h5 {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.focus-card p {
  font-size: 13.5px;
  margin-bottom: 12px;
}

/* ── OUR PARTNERS (auto-scroll marquee) ─────────────── */
#partners {
  padding: 36px 0 44px;
  background: #fafafa;
}

#partners .sep {
  margin: 8px auto 6px;
}

#partners .subtitle {
  text-align: center;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Marquee wrapper — clips the track */
.partners-ticker {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Optional fade edges */
.partners-ticker::before,
.partners-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.partners-ticker::before {
  left: 0;
  background: linear-gradient(to right, #fafafa, transparent);
}

.partners-ticker::after {
  right: 0;
  background: linear-gradient(to left, #fafafa, transparent);
}

/* The scrolling track — duplicate logos inside for seamless loop */
.partners-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: partners-scroll 28s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-logo-item {
  flex: 0 0 auto;
  width: 170px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.partner-logo-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.2s;
}

.partner-logo-item:hover img {
  filter: none;
}

/* ── PARTNER TESTIMONIALS ──────────────────────────── */
#testimonials {
  padding: 36px 0 44px;
  background: #fafafa;
}

.testimonial-sep-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.testimonial-sep-row>span {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.testimonial-sep-row h2 {
  color: var(--green);
  font-weight: 700;
  margin: 0;
}

#testimonialCarousel {
  cursor: grab;
}

#testimonialCarousel.dragging {
  cursor: grabbing;
}

#testimonialCarousel .carousel-item {
  user-select: none;
}

#testimonialCarousel .carousel-item blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  text-align: center;
  font-style: italic;
  max-width: 860px;
  margin: 0 auto 18px;
}

.testimonial-author {
  text-align: center;
  font-size: 14px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.5;
}

.testimonial-author span {
  display: block;
  font-weight: 400;
  color: var(--text);
}

.testimonial-dots {
  text-align: center;
  margin-top: 18px;
}

.testimonial-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.2s;
}

/* ── PARTNER WITH US (email contact) ───────────────── */
#contact {
  background: #fff;
}

.contact-img-col {
  padding: 0;
  overflow: hidden;
}

.contact-img-col img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.contact-info-col {
  padding: 52px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-col h2 {
  color: var(--green);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.contact-info-col .note-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  width: fit-content;
}

.contact-email-link i {
  font-size: 18px;
}

.contact-email-link:hover {
  background: var(--green);
  color: #fff !important;
}

.contact-info-note {
  margin-top: 18px;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

@media (max-width: 991px) {
  .contact-info-col {
    padding: 36px 24px;
  }

  .contact-img-col {
    display: none;
  }
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: #e7e6e6;
}

.footer-top {
  padding: 36px 0 28px;
  border-bottom: 1px solid #d0cfcf;
}

.footer-logo img {
  max-width: 280px;
  height: auto;
}

.footer-about p {
  font-size: 13px;
  color: var(--text);
  font-family: "Arial Rounded MT Bold", Arial;
  line-height: 1.7;
  margin-top: 10px;
}

.footer-address-label {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  font-family: "Arial Rounded MT Bold", Arial;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.footer-address-text {
  font-size: 13px;
  color: var(--text);
  font-family: "Arial Rounded MT Bold", Arial;
  line-height: 1.6;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  font-family: "Arial Rounded MT Bold", Arial;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #444;
  margin-bottom: 12px;
  padding-top: 4px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text);
  font-family: "Arial Rounded MT Bold", Arial;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-social a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #fff;
  color: #555;
  border-radius: 3px;
  margin: 0 3px 4px 0;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--green);
  color: #fff;
}

.footer-bottom {
  background: var(--green);
  padding: 10px 0;
}

.footer-bottom p {
  color: #fff;
  font-size: 12.5px;
  margin: 0;
  font-family: "Arial Rounded MT Bold", Arial;
}

.footer-bottom a {
  color: #fff;
  transition: opacity 0.2s;
}

.footer-bottom a:hover {
  opacity: 0.8;
  color: #fff;
}

/* ── BACK TO TOP ───────────────────────────────────── */
#backTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(61, 205, 88, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9999;
}

#backTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backTop:hover {
  background: var(--green-d);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════════════ */

/* ── Tablet landscape (≤1199px) ─────────────────────── */
@media (max-width: 1199px) {
  .wwd-prev { left: -16px; }
  .wwd-next { right: -16px; }
}

/* ── Tablet portrait (≤991px) ───────────────────────── */
@media (max-width: 991px) {
  h2 { font-size: 28px; line-height: 32px; }
  h3 { font-size: 28px; line-height: 32px; }

  #heroSlider .carousel-item   { height: 420px; }
  #heroSlider .carousel-caption h2 { font-size: 1.75rem; }

  #impact { padding: 34px 0 28px; }

  .wwd-card  { padding: 22px 28px 26px; }
  .wwd-prev  { left: -12px; }
  .wwd-next  { right: -12px; }

  #focus-areas { padding: 24px 0 32px; }

  .footer-top { padding: 28px 0 22px; }
  .footer-bottom .col-md-5,
  .footer-bottom .col-md-7 { text-align: center !important; }
}

/* ── Mobile landscape (≤767px) ──────────────────────── */
@media (max-width: 767px) {
  h2 { font-size: 24px; line-height: 30px; }
  h3 { font-size: 24px; line-height: 30px; }
  h4 { font-size: 20px; }

  /* Hero */
  #heroSlider .carousel-item   { height: 280px; }
  #heroSlider .carousel-caption { padding: 0 20px; }
  #heroSlider .carousel-caption h2 { font-size: 1.15rem; margin-bottom: 14px; }
  .btn-hero { padding: 9px 24px; font-size: 12px; }

  /* Impact */
  #impact { padding: 26px 0 20px; }
  .counter-box { padding: 22px 12px 18px; }

  /* What We Do */
  .wwd-card  { padding: 20px 20px 24px; }
  .wwd-prev  { left: 2px;  font-size: 1.6rem; }
  .wwd-next  { right: 2px; font-size: 1.6rem; }
  #wwdCarousel .carousel-item .row { flex-direction: column-reverse; }
  #wwdCarousel video { height: 200px; }

  /* Partners */
  #partners { padding: 26px 0 32px; }

  /* Testimonials */
  #testimonials { padding: 26px 0 32px; }
  #testimonialCarousel .carousel-item blockquote { font-size: 14px; }

  /* Contact */
  .contact-info-col { padding: 30px 24px; }

  /* Footer */
  .footer-top  { padding: 24px 0 18px; }
  .footer-bottom .col-md-5,
  .footer-bottom .col-md-7 { text-align: center !important; }
  .footer-bottom .row { gap: 0; }
}

/* ── Mobile portrait (≤575px) ───────────────────────── */
@media (max-width: 575px) {
  body { font-size: 14px; line-height: 24px; }
  p    { font-size: 14px; line-height: 22px; }

  h2 { font-size: 20px; line-height: 26px; }
  h3 { font-size: 20px; line-height: 26px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }

  #main-nav .navbar-brand img { height: 42px; }

  /* Hero */
  #heroSlider .carousel-item   { height: 220px; }
  #heroSlider .carousel-caption h2 { font-size: 0.95rem; margin-bottom: 10px; line-height: 1.3; }
  .btn-hero { padding: 7px 18px; font-size: 11px; }
  #heroSlider .carousel-indicators { margin-bottom: 10px; }

  /* Impact */
  #impact { padding: 22px 0 16px; }
  .counter-box          { padding: 18px 10px 14px; }
  .counter-box .countno { font-size: 1.55rem; }
  .counter-box p        { font-size: 11.5px; }

  /* What We Do */
  .wwd-card { padding: 16px 14px 18px; }
  .wwd-card .section-title { font-size: 1.1rem; }
  #wwdCarousel video { height: 175px; }
  #wwdCarousel .carousel-item p { font-size: 13.5px; }

  /* Focus Areas */
  #focus-areas { padding: 20px 0 26px; }
  .focus-card figure img { height: 180px; }
  .focus-card h5 { font-size: 14px; }
  .focus-card p  { font-size: 13px; }

  /* Partners */
  .partner-logo-item { width: 130px; height: 72px; padding: 8px 12px; }

  /* Testimonials */
  .testimonial-sep-row h2 { font-size: 20px; }
  #testimonialCarousel .carousel-item blockquote { font-size: 13px; }

  /* Contact */
  .contact-info-col          { padding: 26px 16px 30px; }
  .contact-info-col h2       { font-size: 1.2rem; }
  .contact-info-col .note-text { font-size: 13.5px; }
  .contact-email-link        { font-size: 13px; padding: 10px 16px; }

  /* Footer */
  .footer-logo img      { max-width: 200px; }
  .footer-about p       { font-size: 12px; }
  .footer-address-text  { font-size: 12px; }
  .footer-links a       { font-size: 12px; }
  .footer-bottom p      { font-size: 11.5px; }
}