/* ==========================================================================
   about.css — About page styles
   Shared utilities, buttons, text classes, subnav → moved to base.css / subnav.css
   ========================================================================== */

/* ==========================================================================
   Mission Section
   ========================================================================== */
.mission {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 5%;
  padding-top: 5%;
  height: auto;
}
.mission h5 {
  margin-bottom: 3%;
  letter-spacing: 1.5px;
  font-size: clamp(16px, 1vw, 1.3vw);
}
.mission .panel-img {
  margin-top: 10%;
}

/* ==========================================================================
   Advocacy Section
   ========================================================================== */
.advocacy,
.advocacy-center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.advocacy-center h5 {
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
  text-align: center;
}
.advocacy-center h3 {
  color: var(--color-lime);
  font-family: var(--font-ui);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 100%;
  text-align: center;
}
.advocacy-center p {
  width: 40%;
  text-align: center;
  margin-top: -1%;
}
.advocacy-center button {
  margin-top: 1%;
}

/* Marquee */
.marquee-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: fit-content;
  background-color: var(--color-off-white);
  display: flex;
  align-items: center;
  padding-block: 20px;
}
.marquee {
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2dvw;
}
.marquee-item {
  font-size: var(--text-h4);
  color: var(--color-green-dark);
  font-family: var(--font-ui);
  font-weight: bold;
  text-wrap: nowrap;
}
.seia,
.solar-aliance {
  display: flex;
  justify-content: center;
  align-items: center;
}
.seia img { width: 9.2dvw; }
.solar-aliance img { width: 15dvw; }

/* ==========================================================================
   Newsroom Preview Section (on About page)
   ========================================================================== */
.swiper {
  overflow: visible !important;
}

.newsroom {
  display: flex;
}
.newsroom-left {
  margin-left: 2.5dvw;
  padding-top: 14%;
}
.newsroom-text {
  min-width: 25vw;
}
.newsroom-text h5 {
  color: var(--color-gray-dark);
  font-family: var(--font-ui);
  font-size: clamp(16px, 1vw, 1.3vw);
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 2%;
}
.newsroom-text h3 {
  color: var(--color-green-dark);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 100%;
  margin-bottom: 3%;
}
.newsroom-text p {
  color: var(--color-gray-dark);
  font-family: var(--font-body);
  font-size: clamp(16px, 1vw, 1.3vw);
  font-weight: 400;
  line-height: 120%;
  max-width: 60%;
  margin-bottom: 10%;
}

/* News cards (Swiper slides) */
.newsroom-right {
  display: flex;
  gap: 20px;
  justify-content: end;
  align-self: center;
}

.swiper-slide.news-card {
  border-radius: 22px;
  border: 1px solid var(--color-green-dark);
  background: var(--color-white);
  width: 18dvw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding-bottom: 20px;
  height: 58vh;
  min-height: 400px;
}
.swiper-slide .card-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  height: 100%;
}
.news-card .img-container {
  height: clamp(150px, 25vw, 25vw);
  width: 100%;
  min-height: clamp(150px, 18vw, 25vw);
  overflow: hidden;
  border-radius: 0 0 5% 5%;
}
.swiper.news-container {
  height: 60vh;
}
.news-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card a {
  color: var(--color-green-dark);
  font-family: var(--font-display);
  font-size: var(--text-card);
  text-align: start;
  padding-inline: 20px;
  font-weight: 700;
  line-height: 130%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card h6 {
  color: var(--color-gray-mid);
  font-family: var(--font-ui);
  font-size: var(--text-card);
  font-weight: 500;
  line-height: 100%;
  padding-inline: 20px;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team {
  display: flex;
  flex-direction: column;
}
.team h2 {
  color: var(--color-green-dark);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 100%;
  align-self: center;
  margin-bottom: 1%;
}
.team p {
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 350;
  line-height: 120%;
  max-width: 50%;
  text-align: center;
  margin-bottom: 2%;
  align-self: center;
}
.team button,
.team a {
  align-self: center;
  margin-bottom: 5%;
}

/* Team slider */
.slider-team {
  position: relative;
}
.slider-team-container .swiper-slide {
  width: fit-content;
}
.swiper.slider-team-container .swiper-slide {
  opacity: 0.5;
  transition: var(--transition-menu);
  transform: scale(0.8);
}
.swiper.slider-team-container .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* Team thumbnails */
.thumbnail-team h4 {
  color: var(--color-green-dark);
  font-family: var(--font-ui);
  font-size: var(--text-h4);
  font-weight: bold;
  line-height: 130%;
  text-align: center;
  margin-top: 20px;
}
.thumbnail-team h5 {
  color: var(--color-gray-dark);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 100%;
  text-align: center;
  margin-bottom: 20px;
}
.thumbnail-team .swiper-slide {
  opacity: 0 !important;
  transition: opacity 0.5s;
}
.thumbnail-team .swiper-slide-thumb-active {
  opacity: 1 !important;
}

/* Team controls (prev/next) */
.team-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 5%;
  position: absolute;
  right: 2.5dvw;
  bottom: -2dvw;
  z-index: 2;
}
.team-controls div {
  border-radius: 25%;
  border: 1px solid var(--color-green-dark);
  backdrop-filter: blur(3.28px);
  width: 2dvw;
  height: 2dvw;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Flip Card (About page variant — team slider)
   ========================================================================== */
.flip-card {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20dvw;
  height: 20dvw;
  perspective: 1000px;
}
.flip-card img {
  width: 100%;
  border-radius: 18px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: var(--transition-flip);
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
.flip-card-back {
  background-color: var(--color-green-dark);
  color: var(--color-white);
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
}
.flip-card-back p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 350;
  line-height: 120%;
  max-width: 60%;
  text-align: center;
  color: var(--color-white);
}

/* ==========================================================================
   Instagram / Follow Section
   ========================================================================== */
.follow-us {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 5%;
  margin-bottom: 50px;
  height: auto;
}
.follow-us h5 {
  color: var(--color-green-dark);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 800;
  line-height: 100%;
}
.follow-us a {
  color: var(--color-gray-dark);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 100%;
}
.follow-videos {
  width: 100%;
  display: grid;
  gap: 0.7%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.follow-videos img {
  width: 100%;
  height: 15vw;
  object-fit: cover;
}

/* ==========================================================================
   Responsive — Tablet (< 1024px)
   ========================================================================== */
@media (width <= 1024px) {
  * { letter-spacing: 1px; }

  .mission {
    padding-top: 10%;
    height: fit-content;
  }
  .mission-content {
    margin-top: 40px;
    border-radius: 40px;
    min-height: 400px;
  }

  .advocacy {
    height: fit-content;
    padding-top: 50px;
  }
  .advocacy-center p {
    margin-top: 20px;
  }
  .advocacy .btn-white {
    margin-bottom: 50px;
    margin-top: 20px;
  }

  .newsroom {
    height: auto;
    flex-direction: column;
    padding-block: 50px;
    align-items: flex-start;
  }
  .newsroom-left {
    margin-left: 20px;
  }
  .newsroom-left button {
    display: none;
  }
  .newsroom-text p {
    font-size: 16px;
    max-width: 100%;
  }
  .newsroom-text h3 {
    margin-block: 20px;
  }
  .swiper.news-container {
    height: auto;
  }
}

/* Tablet: news cards */
@media (768px <= width <= 1024px) {
  .newsroom-right {
    width: 100%;
    justify-content: center;
  }
  .newsroom-right .swiper-wrapper {
    display: flex;
    justify-content: space-around;
  }
  .newsroom-right .swiper {
    margin: 0;
    width: 100%;
  }
  .swiper-slide.news-card {
    width: 28vw;
  }
}

/* ==========================================================================
   Responsive — Mobile (< 768px)
   ========================================================================== */
@media (width <= 768px) {
  .mission .panel-img {
    margin-top: 0;
  }
  .mission .panel-img img {
    width: 80%;
  }

  .advocacy-center p {
    width: 80%;
  }
  .advocacy-center {
    gap: 10px;
  }

  .seia img { width: 80px; }
  .solar-aliance img { width: 120px; }
  .marquee { gap: 20px; }

  .newsroom {
    height: auto;
    flex-direction: column;
    padding-block: 50px;
  }
  .newsroom-left {
    margin-left: 20px;
  }
  .newsroom-left a {
    display: none;
  }
  .swiper-slide .card-text {
    height: auto;
  }
  .news-card .img-container {
    height: 280px;
  }
  .swiper-slide.news-card {
    width: 80vw;
    height: 450px;
  }

  .team {
    height: auto;
    margin-bottom: 80px;
  }
  .team h2 {
    margin-bottom: 10px;
  }
  .team p {
    font-weight: 400;
    margin-bottom: 30px;
    width: 80%;
    max-width: 80%;
  }

  .swiper.slider-team-container .swiper-slide {
    transform: scale(0.9);
  }
  .swiper.slider-team-container .swiper-slide-active {
    transform: scale(1);
  }

  .flip-card {
    width: 75vw;
    height: 80vw;
  }

  .team-controls {
    position: relative;
    justify-content: flex-end;
    margin-right: 20px;
    gap: 5px;
  }
  .team-controls div {
    width: 50px;
    height: 50px;
    gap: 10px;
  }
  .team-controls .team-prev {
    opacity: 0.4;
  }
  .team-controls .team-prev svg {
    position: relative;
    left: -2px;
  }

  .follow-us h5,
  .follow-us a {
    font-size: 18px;
  }
  .follow-us a {
    width: 46vw;
    height: 46vw;
  }
  .follow-videos {
    gap: 10px;
    padding-inline: 10px;
  }
}
