@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(5%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.fadeInUp-animation {
  animation: 1.5s fadeInUp;
}

body {
  position: relative;
  /* font-family: HelveticaNeue,"Helvetica Neue",Arial,Helvetica,sans-serif;; */
  /* font-size: 13px; */
  color: #071751;
  min-width: 280px;
  max-width: 1352px;
  padding-inline: 1rem;
  margin: auto;
  font-family: "Montserrat", sans-serif;
}

h1, h2 {
  font-family: "Playfair";
  margin-bottom: 0;
}

h1 { font-size: 48px; white-space: pretty; }
h2 {
  font-weight: 900;
  font-size: 36px;
  color: #4224D3;
}

@media (max-width: 1096px) {
  h1 { font-size: 40px; margin-block: 0.75rem; }
  h2 { font-size: 28px;}
  h3 { font-size: 20px;}
  p { font-size: 14px;}
}

@media (max-width: 400px) {
  h1 { font-size: 30px; margin-block: 0; }
}

h3 {
  color: #FF661A;
  font-weight: 700;
  font-size: 24px;;
}

/* caushing header to shrink */
iframe, img {
  max-width: 100%;
}
img {
  height: auto;
}

a.button-styles {
  all: unset;
  background-color: #FF661A;
  color: white;
  padding: 18px 32px;
  border-radius: 4px;
  box-shadow: 0px 4px 4px 0 #00000072;
  cursor: pointer;
}
button {
  all: unset;
}


a.primary-link, button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #FF661A;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

a.text-link {
  color: #FF661A;
  cursor: pointer;
}

/* Donate Button */
a.nav-primary-link-btn {
  top: 1rem;
  right: 4rem;
  z-index: 50;
  margin: 0 0.25rem;
  display: flex;
  @media (max-width: 1040px) {
    display: none;
  }
}

.primary-link:visited {
  color: white;
}

.primary-link:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0.9;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

@media (min-width: 1040px) {
  .primary-link {
    position: static;
    z-index: auto;
  }
}

a, a:hover, a:visited, a:active { text-decoration: none; }
a:hover { color: #FF661A; text-decoration: none; }


#site-content p {
  line-height: 22px;
}

#home-header {
  position: relative;
  background: #fff;
  box-shadow: 0 21px 20px -3px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

#home-header img.bg {
  position: absolute;
  width: 1200px;
  height: auto;
  right: 0;
}

@media (min-width:510px) {
  #home-spacer {
    display: block !important;
  }
}

/* Header component */
header {
  height: 424px;
  background-color: #071751;
  color: #FFE7DC;
  display: grid;
  grid-template-columns: 55% auto;
  justify-content: space-between;
  border-radius: 8px;
  position: relative;
}

header .header-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  align-self: center;
  height: auto;
  width: 60%;
}

header .header-page-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  padding-left: 7rem;
  z-index: 9;
}
header .header-hero-container {
  position: relative;
  overflow: hidden;
}
header .header-hero-container img {
  position: relative;
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
  max-width: unset;
  left: 3px;
}

@media (max-width: 800px ) {
  header { grid-template-columns: 1fr;}
  header .header-hero-container { display: none; }
  header .header-bg-image {height: auto; width: 100%;}
}


/* hopmepage hero */
.homepage-hero {
  position: relative;
  height: 542px;
  background-image: url("/images/hero-homepage.png");
  color: #FFE7DC;
  background-size: cover;
}
.homepage-hero .header-page-info {
  max-width: 640px;
  padding: 5rem;
  padding-bottom: 0;
  @media (max-width: 800px ) {
    padding: 3rem;
  }
}
.homepage-hero h1 {
  color: #FFE7DC;
  margin: 0;
  font-weight: 700;
}
.homepage-hero .header-stat-image-wrap {
  padding: 5rem; 
  padding-top: 2rem;
}
.homepage-hero .header-stat-image-wrap img {
  height: auto;
  max-width: 100%;
}

@media (max-width: 630px) {
  header .header-page-info { padding: 1rem; }
}

/* Footer styles */
footer {
  background-color: #D6DDF3;
  padding: 4rem;
  padding-left: 7rem ;
  padding-right: 7rem ;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-radius: 8px;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  footer { grid-template-columns: 1fr 1fr 1fr; padding: 3rem; gap: 2rem;}
}
@media (max-width: 630px) {
  footer { grid-template-columns: 1fr; padding: 1rem; gap: 2rem;}
}

footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  @media (max-width: 900px) { margin: auto; }
}

footer .footer-logo {
  max-width: 220px;
  height: auto;
  display: block;
}

footer .footer-title {
  color: #4224D3;
  font-family: "Playfair";
  font-size: 24px;
}

footer .footer-link-group {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.75rem;
  margin: auto;
}

footer .footer-site-info {
  align-self: baseline;
  color: gray;
  font-style: italic;
  font-size: 14px;
  padding-left: 12px;
  margin-top: auto;
}

footer a {
  color: #071751;
  cursor: pointer;
}

/* nav styles */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
  align-items: center;
}

.nav-wrapper .nav {
  display: flex;
  gap: 2rem;
} 

.nav-wrapper .nav a {
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
}

#about-btn:hover .sub-nav {
  display: flex;
}

#about-btn, #work-btn {
  position: relative;
}

.text-title-block {
  max-width: 1096px; 
  font-weight: 700; 
  text-align: center; 
  margin: 100px 7rem;
}
@media (max-width: 800px ) {
  .text-title-block { margin: 1rem;}
}

/* backgrounds */
.coral-bg { background-color: #FFE7DC; }
.light-bg { background-color: #FFE7DC80; border-radius: 8px;}

/* Basic container with header and paragraph */
.text-block-container {
  padding: 3rem;
  padding-left: 7rem ;
  padding-right: 7rem ;
  margin: auto;
}

.centered-block-container { 
  padding: 5rem 7rem;
  /* padding: 3rem; */
  text-align: center;
  /* margin-top: 5rem; */
  border-radius: 8px;
}

/* Two column container */
.split-text-container {
  padding: 0 7rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.split-text-container ul li {
  margin-bottom: 1rem;
}
@media (max-width: 800px ) {
  .split-text-container { grid-template-columns: 1fr;}
}

/* Container 2 columns, 1 img 1 text section with header, paragraph and action buttons */
.split-image-text-container {
  padding: 3rem 7rem;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin: auto;
  gap: 4rem; 
  align-items:center;
}

@media (max-width: 900px) {
  .split-image-text-container, .centered-block-container, .text-block-container, .split-text-container { padding: 3rem; gap: 1rem; }
}

@media (max-width: 650px) {
  .split-image-text-container, .centered-block-container, .text-block-container, .split-text-container { padding: 1rem 2rem; gap: 0; }
}

.partnerships-stat-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.split-image-text-container.text-content {
  display: flex;
  flex-direction: column;
}

/* Statistic component */
.stat-container {
  position: relative;
  max-width: 1096px;
  margin-left: 7rem ;
  margin-right: 7rem ;
  height: 240px;
  background-image: url("/images/stat-bg.png");
  background-size: cover;
  border-radius: 8px;
  @media (max-width: 650px) {
    margin: 0.5rem;
  }
}
.stat-overlay-img {
  position: absolute;
  inset: 0;
  place-self: center;
  width: 90%;
  height: auto;
}

/* Bio section */
.bio-container {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 2rem;
  margin: 3rem 7rem;
  border-radius: 8px;
  @media (max-width: 650px) {
    margin: 1rem;
  }
}

.bio-container h2 {
  margin: 0;
}

.bio-container .bio-title {
  font-weight: 400;
  font-size: 21px;
  color: #FF661A;
}
.bio-container .bio-img {
  margin: auto;
}

.bio-container .bio-text {
  flex-grow: 1;
  flex-basis: 350px;
}

.tri-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
  padding: 4rem 107px;
}
@media (max-width: 900px) {
  .tri-grid-layout {
    padding: 2rem 1rem; 
  }
}

.title-and-icon {
  display: flex;
  justify-content: space-between;
}
.title-and-icon h2 {
  margin: 0;
}
.text-icon-container {
  display: flex;
  flex-direction: column;
}

/* Form component */
.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .form-container {
    grid-template-columns: 1fr;
  }
}

.form-container .form-row {
  display: flex;
  width: 100%;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  .form-container .form-row {
    flex-direction: column;
  }
}

.form-container .form-row label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  width: 100%;
}

.form-container .form-row label input {
  all: unset;
  border: 2px solid #D6DDF3;
  height: 47px;
  border-radius: 2px;
  padding: 0 1rem;
}

.form-container .form-row label input:active, 
.form-container .form-row label input:focus, 
.form-container .form-row label textarea:active,
.form-container .form-row label textarea:focus {
  border-color: #4224D3;
}

.form-container .form-row label textarea {
  all: unset;
  border-radius: 2px;
  border: 2px solid #D6DDF3;
  height: 320px;
  padding: 0.75rem 1rem;
}

.testimonials-outer {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 20px;
}

.testimonials-col {
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

.testimonial {
  max-width: 424px;
  width: 100%;
  background-color: #FFE7DC;
  border-radius: 8px;
  padding: 3rem;
  flex-shrink: 0;
  scroll-snap-align: center;

  @media (max-width: 951px ) {
      margin-left: max(100% - 424px, 10%);
  }
}



.testimonial::after {
  content: url("/images/quote.svg");
}

.testimonial-info {
  font-size: 20px;
}

.testimonial-img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
}

.testimonial-carousel-outer {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  overflow: scroll;
  scrollbar-width: none;

  scroll-snap-type: x mandatory;
  margin-bottom: 2rem;

}

.testimonial-carousel-outer::after {
  content: '';
  margin-left: max(100% - 424px, 10%);
} 

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 3rem;
}

.pager-btn {
  padding: 0;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  /* aspect-ratio: 1; */
}


.pager-btn.active {
  background-color: blue;
}

.scholarship-steps {
  h3 { margin-bottom: 0.5rem};
  p {margin-top: 0 };
}

.elg-details {
  li {
    margin-bottom: 0.5rem;
  }
}

.hide-in-mobile {
  @media (max-width: 950px ) {
    display: none;
  }
}

.hide-in-desktop {
  @media (min-width: 951px ) {
    display: none;
  }
}

