/*=============== GOOGLE FONTS ===============*/
/* Fonts are now loaded via <link> tags in HTML for better performance */
/* Removed @import statements as they are render-blocking */
/* Fonts are loaded asynchronously with media="print" onload="this.media='all'" */

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem; /*56px*/

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --hue: 215;
  --first-color: hsl(var(--hue), 80%, 32%);
  --first-color-alt: hsl(var(--hue), 24%, 28%);
  --first-color-light: hsl(var(--hue), 24%, 66%);
  --first-color-lighten: hsl(var(--hue), 24%, 92%);
  --title-color: hsl(var(--hue), 4%, 15%);
  --text-color: hsl(var(--hue), 4%, 35%);
  --text-color-light: hsl(var(--hue), 4%, 55%);
  --body-color: hsl(var(--hue), 0%, 100%);
  --container-color: #fff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /*========== Border radius ==========*/
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 50px;
  --radius-full: 50px;
}

/* Define the keyframes for the scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Apply the animation to the partner wrapper */
.scroll-animation {
  display: flex;
  animation: scroll var(--animation-duration) linear infinite;
}

/* Ensure the partner wrapper and its contents are styled correctly */
.partner-container {
  overflow: hidden;
  white-space: nowrap;
}

.partner-wrapper {
  display: inline-flex;
  align-items: center;
}

.partner {
  display: inline-block;
  padding: 0 1rem;
}

.partner img {
  max-height: 50px;
  object-fit: contain;
}

.pub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  width: calc(100% - 40px);
}
/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-snap-type: y mandatory;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  margin: var(--header-height) 0 0 0;
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.3s; /*For animation dark mode*/
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color-dark: hsl(var(--hue), 80%, 20%);
  --title-color: hsl(var(--hue), 30%, 95%);
  --text-color: hsl(var(--hue), 0%, 75%);
  --body-color: hsl(var(--hue), 8%, 12%);
  --container-color: hsl(var(--hue), 40%, 16%);
}

/*========== Button Dark/Light ==========*/
.change-theme {
  color: var(--title-color);
  font-size: 1.15rem;
  cursor: pointer;
}

.nav__btns {
  display: inline-flex;
  align-items: center;
  column-gap: 1rem;
}

/*========== 
Color changes in some parts of 
the website, in dark theme 
==========*/

.dark-theme .steps__bg,
.dark-theme .questions {
  background-color: var(--first-color-dark);
}

.dark-theme .product__circle,
.dark-theme .footer__subscribe {
  background-color: var(--container-color);
}

.dark-theme .scroll-header {
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 4%, 0.3);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 5.5rem 0 1rem;
}
/* Left side: logo and social icons */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-social {
  margin-top: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 60px;
  margin-right: 15px;
}

.footer-logo span {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 18px;
  text-decoration: none;
}

.footer-social a:hover {
  color: #333;
}

/* Right side: navigation links */
.footer-right {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.footer-nav li {
  margin: 0 15px;
  position: relative;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  margin-top: 10px;
}

.footer-nav li ul {
  margin-top: 10px;
}

.footer-nav li ul li {
  margin-bottom: 5px;
}

.footer-nav a:hover {
  font-weight: bold;
  color: white;
}

.section__title,
.section__title-center {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  line-height: 140%;
}
.section__text,
.section__text-center {
  font-size: 0.85rem;
  margin-bottom: var(--mb-2);
  line-height: 140%;
}
.section__title-center {
  text-align: center;
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

.main {
  overflow: hidden; /*For animation*/
}

/*=============== HEADER ===============*/
.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: 0.3s; /*For animation dark mode*/
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Dark mode glass styling */
.dark-theme .glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make glass background invisible for home image in dark mode */
.dark-theme .home__img.glass {
  background: none;
  border: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.nav__logo,
.nav__toggle,
.nav__close {
  color: var(--title-color);
}

.nav__logo {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: 0.3s;
}

.nav__logo img {
  width: 2rem;
  height: 2rem;
}

.nav__logo-icon {
  font-size: 1.15rem;
  color: var(--first-color);
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle {
  display: inline-flex;
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--container-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: -4px 0 20px hsla(var(--hue), 24%, 15%, 0.2);
    padding: 4rem 0 2rem 3rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transition: 0.3s;
    z-index: var(--z-fixed);
    overflow-y: auto;
  }

  /* Ensure visibility of menu items */
  .nav__menu,
  .nav__menu * {
    color: var(--title-color);
  }

  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    cursor: pointer;
  }

  .nav__list {
    row-gap: 1.5rem;
    padding-right: 1rem;
  }

  .nav__link {
    font-size: 1rem;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    transition: color 0.3s ease;
  }
}

/* nav__close is defined in mobile media query */

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: 0.3s;
}

.nav__link:hover {
  color: var(--first-color);
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, 0.1);
}

/* Active link */
.active-link {
  position: relative;
  color: var(--first-color);
}

.active-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  padding: 3.5rem 0 2rem;
}

.home__container {
  position: relative;
  row-gap: 2rem;
}

.home__img {
  width: 200px;
  justify-self: center;
  border-radius: var(--radius-round);
  overflow: hidden;
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.home__img img {
  width: 100%;
  height: auto; /* revert to natural aspect ratio */
  object-fit: contain;
  display: block;
}

/* Dark mode home image styling */
.dark-theme .home__img {
  background-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .home__img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dark-theme .home__img img {
  opacity: 1;
}

.home__img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home__title {
  font-size: var(--big-font-size);
  line-height: 140%;
  margin-bottom: var(--mb-1);
}

.home__description {
  margin-bottom: var(--mb-2-5);
}

.home__social {
  position: absolute;
  top: 2rem;
  right: -1rem;
  display: grid;
  justify-items: center;
  row-gap: 3.5rem;
}

.home__social-follow {
  font-weight: var(--font-medium);
  font-size: var(--smaller-font-size);
  color: var(--first-color);
  position: relative;
  transform: rotate(90deg);
}

.home__social-follow::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 2px;
  background-color: var(--first-color);
  right: -45%;
  top: 50%;
}

.home__social-links {
  display: inline-flex;
  flex-direction: column;
  row-gap: 0.25rem;
}

.home__social-link {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: 0.3s;
}

.home__social-link:hover {
  transform: translateX(0.25rem);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  transition: 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__icon {
  transition: 0.3s;
}

.button:hover .button__icon {
  transform: translateX(0.25rem);
}

.button--flex {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
}

.button--link {
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.button--link:hover .button__icon {
  transform: translateX(0.25rem);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2rem;
}

.about__img {
  width: 280px;
  justify-self: center;
}

.about__title {
  margin-bottom: var(--mb-1);
}

.about__description {
  margin-bottom: var(--mb-2);
}

.about__details {
  display: grid;
  row-gap: 1rem;
  margin-bottom: var(--mb-2-5);
}

.about__details-description {
  display: inline-flex;
  column-gap: 0.5rem;
  font-size: var(--small-font-size);
}

.about__details-icon {
  font-size: 1rem;
  color: var(--first-color);
  margin-top: 0.15rem;
}

/*=============== STEPS ===============*/
.steps__bg {
  background-color: var(--first-color);
  padding: 3rem 2rem 2rem;
  border-radius: var(--radius-lg);
}

.steps__container {
  gap: 2rem;
  padding-top: 1rem;
}

.steps__title {
  color: #fff;
}

.steps__card {
  background-color: var(--container-color);
  padding: 2.5rem 3rem 2rem 1.5rem;
  border-radius: var(--radius-lg);
}

.steps__card-number {
  display: inline-block;
  background-color: var(--first-color-alt);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1-5);
  transition: 0.3s;
}

.steps__card-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.steps__card-description {
  font-size: var(--small-font-size);
}

.steps__card:hover .steps__card-number {
  transform: translateY(-0.25rem);
}

/*=============== PRODUCTS ===============*/
.product__description {
  text-align: center;
}

.product__container {
  padding: 3rem 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}

.product__card {
  display: grid;
  position: relative;
}

.product__img {
  position: relative;
  width: 120px;
  justify-self: center;
  margin-bottom: var(--mb-0-75);
  transition: 0.3s;
}

.product__title,
.product__price {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.product__title {
  margin-bottom: 0.25rem;
}

.product__button {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.25rem;
  border-radius: 0.35rem;
  font-size: 1.15rem;
}

.product__button:hover {
  background-color: var(--first-color-alt);
}

.product__circle {
  width: 90px;
  height: 90px;
  background-color: var(--first-color-lighten);
  border-radius: 50%;
  position: absolute;
  top: 18%;
  left: 5%;
}

.product__card:hover .product__img {
  transform: translateY(-0.5rem);
}

/*=============== Publications ===============*/
.questions {
  background-color: var(--first-color-lighten);
}

.questions__container {
  gap: 2rem;
  padding: 2rem 1rem;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure FAQ container displays 2 columns on desktop */
@media screen and (min-width: 768px) {
  .questions__container.container.grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.questions__group {
  display: grid;
  row-gap: 1.5rem;
}

.questions__item {
  background-color: var(--container-color);
  border-radius: var(--radius-md);
  width: 100%;
  border: 1px solid hsla(var(--hue), 10%, 50%, 0.08);
}

.dark-theme .questions__item {
  border-color: rgba(255, 255, 255, 0.08);
}

.questions__item-title {
  font-size: var(--normal-font-size);
  line-height: 1.5;
  font-weight: var(--font-medium);
}

.questions__icon {
  font-size: 1.25rem;
  color: var(--title-color);
}

.questions__description {
  font-size: var(--smaller-font-size);
  padding: 0 1.25rem 1.25rem 2.5rem;
}

.questions__header {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.questions__content {
  overflow: hidden;
  height: 0;
}

.questions__item,
.questions__header,
.questions__item-title,
.questions__icon,
.questions__description,
.questions__content {
  transition: 0.3s;
}

.questions__item:hover {
  box-shadow: 0 2px 8px hsla(var(--hue), 4%, 15%, 0.15);
}

/*Rotate icon, change color of titles and background*/
.accordion-open .questions__header,
.accordion-open .questions__content {
  background-color: var(--first-color);
}

.accordion-open .questions__item-title,
.accordion-open .questions__description,
.accordion-open .questions__icon {
  color: #fff;
}

.accordion-open .questions__icon {
  transform: rotate(45deg);
}
/*=============== Interviews ===============*/

.interview_container {
  left: 0;
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 56.25%; /* Aspect ratio for 16:9 */
  border-radius: 10px;
  overflow: hidden;
  margin: 2%;
}


/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3.5rem;
}

.contact__data {
  display: grid;
  row-gap: 2rem;
}

.contact__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: var(--mb-0-5);
}

.contact__description {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.contact__icon {
  font-size: 1.25rem;
}

.contact__inputs {
  display: grid;
  row-gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.contact__content {
  position: relative;
  height: 3rem;
  border-bottom: 1px solid var(--text-color-light);
}

.contact__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 1rem 0;
  background: none;

  color: var(--text-color);

  border: none;
  outline: none;
  z-index: 1;
}

.contact__label {
  position: absolute;
  top: 0.75rem;
  width: 100%;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  transition: 0.3s;
}

.contact__area {
  height: 7rem;
}

.contact__area textarea {
  resize: none;
}

/*Input focus move up label*/
.contact__input:focus + .contact__label {
  top: -0.75rem;
  left: 0;
  font-size: var(--smaller-font-size);
  z-index: 10;
}

/*Input focus sticky top label*/
.contact__input:not(:placeholder-shown).contact__input:not(:focus)
  + .contact__label {
  top: -0.75rem;
  font-size: var(--smaller-font-size);
  z-index: 10;
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: var(--mb-2-5);
  transition: 0.3s;
}

.footer__logo-icon {
  font-size: 1.15rem;
  color: var(--first-color);
}

.footer__logo:hover {
  color: var(--first-color);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
}

.footer__subscribe {
  background-color: var(--first-color-lighten);
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  border-radius: 0.5rem;
}

.footer__input {
  width: 70%;
  padding: 0 0.5rem;
  background: none;
  color: var(--text-color);
  border: none;
  outline: none;
}

.footer__button {
  padding: 1rem;
}

.footer__data {
  display: grid;
  row-gap: 0.75rem;
}

.footer__information {
  font-size: var(--small-font-size);
}

.footer__social {
  display: inline-flex;
  column-gap: 0.75rem;
}

.footer__social-link {
  font-size: 1rem;
  color: var(--text-color);
  transition: 0.3s;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
}

.footer__cards {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
}
.footer__card {
  width: 35px;
}

.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin: 5rem 0 1rem;
}

/* New footer design */

.ft {
  width: 100%;
  display: flex;
  padding: 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  align-self: stretch;
  /* background: #273469; */
  background: var(--first-color);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.bars {
  display: flex;
  padding: 1.5rem;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
}

.left-bar {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  flex: 1 0 auto;
  align-self: stretch;
}

.left-logo {
  display: flex;
  padding: 0.5rem;
  align-items: center;
  gap: 2rem;
  align-self: stretch;
}

.left-logo img {
  width: 5rem;
  height: 5rem;
}

.left-logo p {
  color: #eee;
  font-family: var(--body-font);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.left-socials {
  display: flex;
  padding: 1rem 0.5rem;
  align-items: center;
  align-content: center;
  gap: 1.5rem;
  align-self: stretch;
  flex-wrap: wrap;
}

.left-socials div {
  width: 1.5rem;
  height: 1.5rem;
}

.right-bar {
  display: flex;
  padding: 0.5rem;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 1;
}

.space {
  height: 2.5rem;
  width: 2.5rem;
}

.right-bar-links {
  display: flex;
  /* height: 296px; */
  padding: 1rem;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.5rem;
}

.right-bar-links .col {
  display: flex;
  padding: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.right-bar-links .col a {
  text-decoration: none;
}

.right-bar-links .col .head {
  color: #eee;
  font-family: var(--body-font);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.right-bar-links .col .sub {
  color: #eee;
  font-family: var(--body-font);
  font-size: 1rem;
  font-style: normal;
  font-weight: 200;
  line-height: normal;
}

.right-review {
  display: flex;
  height: 4rem;
  overflow: hidden;
  /* padding: 2rem 1.5rem 1.5rem 1.5rem; */
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.5rem;
}

.copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.copy-txt {
  color: #eee;
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

/* Footer design end */

/* Animations */

.ft {
  width: 100%;
  display: flex;
  padding: 2rem;
  flex-direction: column;
  justify-content: center; /* This might be part of the issue for vertical alignment if not overridden by children */
  align-items: center; /* This might be part of the issue for horizontal alignment if not overridden by children */
  gap: 1rem;
  align-self: stretch;
  background: var(--first-color);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  transition: all 0.2s ease-in-out;
}

.left-socials div:hover {
  transform: scale(1.3);
  opacity: 0.9;
}

/* Animations End */

/* Responsiveness */

@media (max-width: 1200px) {
  :root {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  :root {
    font-size: 12px;
  }
  .bars {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 1.5rem 0rem;
  }
  .right-bar {
    padding: 0;
    align-items: flex-start;
  }
  .right-review {
    display: none;
  }
  .right-bar-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .left-logo {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 8px;
  }
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  background-color: var(--first-color);
  right: 1rem;
  bottom: -30%;
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 0.25rem;
  z-index: var(--z-tooltip);
  opacity: 0.8;
  transition: 0.4s;
}

.scrollup__icon {
  font-size: 1rem;
  color: #fff;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
  opacity: 1;
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 3rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background: hsl(var(--hue), 4%, 53%);
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--hue), 4%, 29%);
  border-radius: 0.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .bulb {
    width: 100px;
    height: 180px;
    cursor: pointer;
  }
  .home__img {
    width: 180px;
  }
  .home__title {
    font-size: var(--h1-font-size);
  }

  .steps__bg {
    padding: 2rem 1rem;
  }
  .steps__card {
    padding: 1.5rem;
  }

  .steps__card_2 {
    padding: 1.5rem;
    align-items: center;
  }

  .product__container {
    grid-template-columns: 0.6fr;
    justify-content: center;
  }
}

.wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
}
.wrapper iframe {
  position: absolute;
  border-radius: 20px;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .steps__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__description {
    padding: 0 4rem;
  }
  .product__container {
    grid-template-columns: repeat(2, 170px);
    justify-content: center;
    column-gap: 5rem;
  }

  .footer__subscribe {
    width: 400px;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 3rem;
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  .nav__menu {
    margin-left: auto;
  }

  .home__container,
  .about__container,
  /* keep publications as a single column for readability */
  .contact__container,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home {
    padding: 10rem 0 5rem;
  }
  .home__container {
    align-items: center;
  }
  .home__img {
    width: 100%;
    max-width: 350px;
    order: 1;
  }
  .home__social {
    top: 30%;
  }

  /* FAQ section - keep 2 columns on larger screens */
  .questions__container {
    align-items: flex-start;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }

  .footer__container {
    column-gap: 3rem;
  }
  .footer__subscribe {
    width: initial;
  }
}

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .wrapper iframe.pad {
    position: absolute;
    border-radius: 20px;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
  }
  .steps__cards {
    scale: 0.8;
  }
  .section {
    padding: 8rem 0 1rem;
  }
  .section__title,
  .section__title-center {
    font-size: var(--h1-font-size);
  }

  .home {
    padding: 13rem 0 5rem;
  }
  .home__img {
    width: 600px;
  }
  .home__description {
    padding-right: 7rem;
  }

  .about__img {
    width: 380px;
  }

  .steps__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps__container.grid.pad {
    grid-template-columns: repeat(2, 1fr);
    padding: 50px;
  }
  .steps__bg {
    padding: 3.5rem 2.5rem;
  }
  .steps__card-title {
    font-size: var(--normal-font-size);
  }

  .product__description {
    padding: 0 16rem;
  }
  .product__container {
    padding: 4rem 0;
    grid-template-columns: repeat(3, 185px);
    gap: 4rem 6rem;
  }
  .product__img {
    width: 160px;
  }
  .product__circle {
    width: 110px;
    height: 110px;
  }
  .product__title,
  .product__price {
    font-size: var(--normal-font-size);
  }

  .questions__container {
    padding: 1rem 0 4rem;
  }
  .questions__title {
    text-align: initial;
  }
  .questions__group {
    row-gap: 2rem;
  }
  .questions__header {
    padding: 1rem;
  }
  .questions__description {
    padding: 0 3.5rem 2.25rem 2.75rem;
  }

  .footer__logo {
    font-size: var(--h3-font-size);
  }
  .footer__container {
    grid-template-columns: 1fr 0.5fr 0.5fr 0.5fr;
  }
  .footer__copy {
    margin: 7rem 0 2rem;
  }
}

@media screen and (min-width: 1200px) {
  .home__social {
    right: -3rem;
    row-gap: 4.5rem;
  }
  .home__social-follow {
    font-size: var(--small-font-size);
  }
  .home__social-follow::after {
    width: 1.5rem;
    right: -60%;
  }
  .home__social-link {
    font-size: 1.15rem;
  }

  .about__container {
    column-gap: 7rem;
  }

  .scrollup {
    right: 3rem;
  }
}

/* Volunteers */
.main_container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-color: rgba(255, 255, 255, 0);
  overflow: hidden;
}
.content {
  text-align: center;
  width: 100%;
}

.partner_title {
  font-size: 2vw;
  font-weight: bold;
  color: #2d2728;
  font-family: sans-serif;
  margin-bottom: 2vw;
}

.partner-container {
  width: 100%;
  overflow: hidden;
  background-color: #ffffff00;
  padding: 10px 0;
  box-shadow: 1px 2px 4px rgba(1, 1, 0, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: flex-start;
}

.partner-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  white-space: nowrap;
}

.partner {
  flex: 0 1 auto;
}

.partner img {
  max-height: 8vw;
  max-width: 150px;
  width: auto;
  display: block;
}
/* Responsive design */

@media (max-width: 1200px) {
  .title {
    font-size: 4vw;
  }

  .partner img {
    max-height: 10vw;
    max-width: 120px;
  }
}

@media (max-width: 992px) {
  .title {
    font-size: 5vw;
  }

  .partner img {
    max-height: 12vw;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 6vw;
  }

  .partner img {
    max-height: 14vw;
    max-width: 80px;
  }
}

@media (max-width: 576px) {
  .title {
    font-size: 7vw;
  }

  .partner img {
    max-height: 16vw;
    max-width: 60px;
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Google Sign-In Popup Styles */
#google-signin-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: var(--z-fixed);
  padding: 10px;
}
#google-signin-container .g_id_signin {
  display: flex;
  justify-content: center;
  align-items: center;
}
#google-signin-container .g_id_signin button {
  background-color: var(--first-color);
  color: var(--body-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

#google-signin-container .g_id_signin button:hover {
  background-color: var(--first-color-light);
}

/* ============= MOBILE PERFORMANCE & RESPONSIVENESS OPTIMIZATIONS ============= */

/* Improved touch targets for mobile (minimum 44x44px) */
@media screen and (max-width: 767px) {
  button,
  .button,
  a.nav__link,
  .nav__toggle,
  .nav__close,
  .contact__input,
  .change-theme {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1rem;
  }

  /* Better mobile navigation */
  .nav__menu {
    width: 85%;
    max-width: 320px;
    padding: 4rem 0 2rem 2rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .nav__list {
    row-gap: 1.5rem;
    padding-right: 1rem;
  }

  .nav__link {
    font-size: 1rem;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
  }

  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }

  /* Optimized home section for mobile */
  .home__container {
    grid-template-columns: 1fr;
    row-gap: 3rem;
    text-align: center;
  }

  .home__img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .home__title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .home__social {
    position: static;
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-top: 2rem;
    transform: none;
  }

  .home__social-follow {
    display: none;
  }

  .home__social-link {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  /* Stats section mobile optimization */
  .stats__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .stats__card {
    padding: 1rem;
  }

  .stats__icon {
    font-size: 1.5rem;
  }

  .stats__number {
    font-size: 1.25rem;
  }

  /* About section mobile */
  .about__description {
    font-size: 0.938rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  /* Steps/Approach section mobile */
  .steps__container {
    gap: 1.5rem;
  }

  .steps__container.about__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .steps__container.about__container img {
    width: 80px;
    height: 80px;
  }

  .steps__card {
    padding: 1.25rem;
  }

  /* Forms section mobile */
  .forms-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .form-wrapper {
    aspect-ratio: 1 / 1.4;
    min-height: 500px;
  }

  /* Contact form mobile */
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__inputs {
    gap: 1rem;
  }

  .contact__input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem;
  }

  /* Publications section mobile - single column on small screens */
  .questions__container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .pub {
    width: 100%;
  }

  /* Video embeds mobile */
  .steps__container.grid > div {
    margin: 2% !important;
    padding-bottom: 56.25%;
  }

  /* Footer mobile */
  .ft .bars {
    flex-direction: column;
    gap: 2rem;
  }

  .left-bar,
  .right-bar {
    width: 100%;
  }

  .right-bar-links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Better text readability */
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Optimize scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* Small mobile devices (320px - 480px) */
@media screen and (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home__title {
    font-size: 1.5rem;
  }

  .section__title,
  .section__title-center {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .stats__container {
    grid-template-columns: 1fr;
  }

  .steps__container.about__container {
    /* 2-up on phones: a single column leaves the directional arrows orphaned
       and the section tall and empty. */
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .partner img {
    max-height: 40px;
    max-width: 80px;
  }
}

/* Performance optimizations */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Will-change for animated elements */
.scroll-animation,
.stats__number span {
  will-change: transform;
}

/* Optimize animations on mobile for better performance */
@media screen and (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  /* Reduce animation duration for better performance */
  .nav__menu {
    transition-duration: 0.2s;
  }

  /* Keep essential animations smooth */
  .scroll-animation {
    animation-duration: var(--animation-duration);
  }

  .stats__number span {
    transition-duration: 0.5s;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Note: Font-display swap is handled via Google Fonts URL parameter */

/* Optimize container widths */
@media screen and (max-width: 767px) {
  .container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Consistent border-radius for questions/accordion items */
.questions__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Styles moved from inline in index.html for better performance */
#google-signin-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: none; /* hidden, popup will appear automatically */
}

.stats__container {
  display: grid;
  /* auto-fit keeps this responsive on its own: 4-up on desktop, 2-up on phones.
     (This rule sits after the media queries, so an explicit 4-col value here
     would override them — the intrinsic grid avoids that source-order trap.) */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}

.stats__card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.stats__card.glass {
  background-color: transparent;
  box-shadow: var(--box-shadow);
}

.stats__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.stats__number {
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.stats__title {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.animated-number {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.5rem;
}

.animated-number span {
  display: block;
  line-height: 1.5rem;
  transition: transform 0.5s ease-in-out;
}

/* FAQ ACCORDION STYLES */
.questions__group {
  display: grid;
  row-gap: 1.5rem;
}

.questions__item-title {
  font-size: var(--small-font-size, 0.938rem);
  font-weight: 600;
  color: var(--title-color, #fff);
}

.questions__icon {
  font-size: 1.5rem;
  color: var(--first-color, #00abe7);
  margin-right: 0.5rem;
  transition: 0.3s;
}

.questions__description {
  font-size: var(--smaller-font-size, 0.813rem);
  padding: 0 1.25rem 1.25rem 2.5rem;
  color: var(--text-color-light, #e0e0e0);
  line-height: 1.5;
}

.questions__header {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
}

.questions__content {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}

/* Rotate icon when open */
.accordion-open .questions__icon {
  transform: rotate(45deg);
}

/* Ensure glass effect is applied to items */
.questions__item {
  border-radius: 0.5rem;
}

.questions__header {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.questions__content {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Form wrapper styling */
.form-wrapper {
  border-radius: var(--radius-md);
}

/* Button with email style */
button.glass[type="submit"] {
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
}

/* Video embed container styling */
.steps__container.grid > div[style*="padding-bottom: 56.25%"] {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

/*=============== GRADUATES TESTIMONIALS ===============*/
@keyframes graduates-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.graduates {
  padding-bottom: 2rem;
}

.graduates__header {
  margin-bottom: var(--mb-1-5);
}

/* Outer mask — hides overflow and adds fade edges */
.graduates__track-container {
  overflow: hidden;
  position: relative;
  /* Match the site-wide .container width & center it */
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* The scrolling row */
.graduates__track {
  display: flex;
  width: max-content;
  animation: graduates-scroll 55s linear infinite;
  will-change: transform;
}

/* Pause on hover */
.graduates__track-container:hover .graduates__track {
  animation-play-state: paused;
}

/* Individual card */
.graduates__card {
  flex: 0 0 auto;
  width: 280px;
  margin: 0 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-color: var(--container-color);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-theme .graduates__card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    0 1px 4px rgba(0, 0, 0, 0.18);
}

.graduates__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Trustpilot screenshot fills the card width, 16:9 ratio */
.graduates__tp-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.graduates__tp-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* High-school name caption */
.graduates__school {
  width: 100%;
  padding: 0.45rem 0.75rem 0.55rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme .graduates__school {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .graduates__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
  }
}

/*=============== EXCLUSIVE INTERVIEWS — YOUTUBE EMBEDS ===============*/
.video-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.10),
    0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-color: var(--container-color);
  border: 1px solid rgba(0, 0, 0, 0.06);
  /* Prevent grid cell from stretching card taller than the video */
  align-self: start;
}

.dark-theme .video-embed {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.2);
}

.video-embed:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 16:9 responsive ratio container */
.video-embed__ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-embed__ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*=============== VOLUNTEER CONTAINERS — WIDTH + FADE ONLY ===============*/
/* Only the outer container gets constrained width & fade edges.
   Logos remain as plain images — no card background / shadow on .partner. */
.partner-container {
  overflow: hidden;
  white-space: nowrap;
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
  /* Horizontal fade matching the graduates section */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* Reset .partner to plain image holder — no card decoration */
.partner {
  display: inline-block;
  padding: 0 1rem;
}

.dark-theme .partner,
.partner:hover {
  transform: none;
  box-shadow: none;
  background: none;
  border: none;
}
