/* ZODDIAK Foundation – Homepage Styles
   - Home hero
   - About block on home
   - Focus areas grid (home)
   - Home-specific sections (values, projects layout tweaks)
*/

/* ---------------------------------------------
   Homepage 100vh Sections Styles
   (moved from templates/home.html)
--------------------------------------------- */
/* Scope to homepage only */
.home-sections-100vh > section:not(.partners-logos-section):not(.publications-section):not(.programs-events-section):not(.partnership-models-section):not(.focus-areas-section) { 
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

/* Remove large vertical padding when using 100vh */
.home-sections-100vh > section.section:not(.join-banner):not(.partners-logos-section):not(.publications-section):not(.programs-events-section):not(.partnership-models-section):not(.focus-areas-section) {
  padding-top: 0;
  padding-bottom: 0;
}

/* Center hero content horizontally */
.home-sections-100vh > section.hero {
  justify-content: center;
}

/* Remove default hero top padding so it's perfectly centered */
.home-sections-100vh .hero__content {
  padding-top: 0;
}

/* Scale emblem/logo to match layout */
@media (min-width: 992px) {
  .home-sections-100vh .hero__seal { width: 365px; }
}

@media (min-width: 1280px) {
  .home-sections-100vh .hero__seal { width: 365px; }
}

@media (min-width: 1440px) {
  .home-sections-100vh .hero__seal { width: 450px; }
}

/* Slightly darken bottom of hero for readability (overlay already exists) */
.home-sections-100vh .hero__bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.3) 75%),
    url("/static/images/back.12987637c21c.png") center/cover no-repeat;
}

/* Keep join banner centered nicely - remove all padding */
.home-sections-100vh > section.join-banner {
  padding: 0 0 0 0 !important;
  min-height: unset !important;
  display: block !important;
  align-items: unset !important;
}

/* ---------------------------------------------
   Home Hero
--------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  background: url('/img/hero-sphere.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero__inner {
  position: absolute;
  inset: 50% 0 0 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1vh, 1.25rem);
  text-align: center;
  width: 100%;
  z-index: 1;
}

.hero__logo {
  width: clamp(250px, 25vw, 450px);
  height: auto;
}

.hero__subtitle {
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  color: var(--gold-500);
  font-family: var(--font-primary);
  letter-spacing: 0.16em;
  line-height: 1;
  padding-bottom: 30px;
}

.hero__title {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-500);
}

.hero__inner a {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  background: transparent;
  border: 1px solid #FFFFFF80;
  color: #FFFFFF80;
  padding: 1rem 2.2rem;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  text-decoration: none;
  border-radius: 10px;
  pointer-events: auto;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.hero__inner a:hover {
  border: 1px solid #CBA25C;
  background: #CBA25C;
  color: #161616;
}

/* Legacy hero content (seal/tagline) if used in CMS */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 75%),
    url("/static/images/back.12987637c21c.png") center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 25vh;
}

.hero__seal {
  width: 320px;
  height: auto;
  display: block;
  margin: 170px 0 40px 0;
}

.hero__tagline {
  font-family: "Source Serif 4";
  font-weight: 400;
  font-style: Regular;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #CBA25C;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero__tagline.secondary {
  font-family: "Rock Star Narrow";
  font-size: 38px;
}

@media (max-width: 767px) {
  .hero {
    height: 100vh;
  }

  .hero__seal {
    width: 240px;
  }

  .hero__content {
    max-width: 320px;
    padding-top: 20vh;
  }
}

/* Viewport-height based adjustments for home hero seal/tagline */
@media (max-height: 900px) {
  .home-sections-100vh .hero__seal { width: 250px; margin-top: 80px; }
  .home-sections-100vh .hero__content { padding-top: 18vh; }
  .home-sections-100vh .hero__tagline { font-size: 36px; }
  .home-sections-100vh .hero__tagline.secondary { font-size: 34px; }
}

@media (max-height: 800px) {
  .home-sections-100vh .hero__seal { width: 260px; margin-top: 90px; }
  .home-sections-100vh .hero__content { padding-top: 14vh; }
  .home-sections-100vh .hero__tagline { font-size: 32px; }
  .home-sections-100vh .hero__tagline.secondary { font-size: 30px; }
}

@media (max-height: 700px) {
  .home-sections-100vh .hero__seal { width: 220px; margin-top: 70px; }
  .home-sections-100vh .hero__content { padding-top: 10vh; }
  .home-sections-100vh .hero__tagline { font-size: 28px; }
  .home-sections-100vh .hero__tagline.secondary { font-size: 26px; }
}

@media (max-height: 600px) {
  .home-sections-100vh .hero__seal { width: 180px; margin-top: 56px; }
  .home-sections-100vh .hero__content { padding-top: 8vh; }
  .home-sections-100vh .hero__tagline { font-size: 24px; }
  .home-sections-100vh .hero__tagline.secondary { font-size: 22px; }
}

/* Extra mobile tightening */
@media (max-width: 950px) {
  .hero__content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero__seal {
    margin-top: 0px !important;
  }

  .hero__tagline,
  .hero__tagline.secondary {
    font-size: 20px !important;
  }
}

/* ---------------------------------------------
   Homepage About / Values
--------------------------------------------- */
.about-section.homepage {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-section.homepage .container {
  width: 100%;
}

.about-section .about-title { color: #CBA25C; }

.about-section .about-intro p {
  color: #CBA25C;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-section .body-text {
  color: var(--gold-500);
}

.mission-content {
  color: var(--gold-500);
  text-transform: uppercase;
}

.about-section .principles-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 64px 96px;
}

@media (max-width: 991.98px) {
  .about-section .principles-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-section .principle-card { text-align: center; }

.about-section .principle-title {
  color: #CBA25C;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.about-section .principle-text {
  color: #CBA25C;
  font-family: var(--font-secondary);
  letter-spacing: 0.08em;
}

@media (max-width: 950px) {
  .about-section .principle-title {
    font-size: 14px !important;
  }

  .about-section .principle-text {
    font-size: 11px !important;
  }
}

/* Homepage values section using partnership models grid */
.partnership-models-section {
  background-color: #0f0f0f;
  min-height: 100dvh;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partnership-models-section .section-title {
  font-family: 'Rock Star Narrow', serif;
  color: #CBA25C;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  margin-bottom: 4rem;
  text-transform: uppercase;
  font-size: 36px;
}

.partnership-models-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* First 3 items: each takes 2 columns (3 items in top row) */
.partnership-models-grid > :nth-child(1),
.partnership-models-grid > :nth-child(2),
.partnership-models-grid > :nth-child(3) {
  grid-column: span 2;
}

/* Items 4 and 5: each takes 3 columns, centered (2 items in bottom row) */
.partnership-models-grid > :nth-child(4) {
  grid-column: 2 / span 2;
}

.partnership-models-grid > :nth-child(5) {
  grid-column: 4 / span 2;
}

.partnership-model-card {
  background: transparent;
  border: 0px solid rgba(203, 162, 92, 0.2);
  border-radius: 0;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.partnership-models-grid.homepage {
  grid-template-columns: 1fr;
  gap: 56px;
}

.partnership-models-grid.homepage .partnership-model-card {
  padding: 2.5rem 0 1.5rem 0;
  min-height: 140px;
}

.partnership-models-grid.homepage > * {
  grid-column: 1;
}

.partnership-model-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: rgba(203, 162, 92, 0.3);
}

.partnership-models-grid.homepage .partnership-model-card:last-child::after {
  display: none;
}

/* .partnership-model-card:hover {
  border-color: rgba(203, 162, 92, 0.4);
  background: rgba(203, 162, 92, 0.03);
} */

.partnership-model-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.partnership-model-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partnership-model-title, .partnership-model-card h3 {
  font-family: 'Rock Star Narrow', serif;
  color: #CBA25C;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.3;
}

.partnership-model-subtitle, .partnership-model-subtitle p {
  font-family: 'Source Serif 4', serif;
  color: #CBA25C;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  letter-spacing: 0.15em;
  margin-bottom: 0;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 400;
  line-height: 1.5;
  max-width: 90%;
}

.partnership-model-description, .partnership-model-description p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .partnership-models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  /* On tablets: 2 items per row */
  .partnership-models-grid > :nth-child(1),
  .partnership-models-grid > :nth-child(2),
  .partnership-models-grid > :nth-child(3),
  .partnership-models-grid > :nth-child(4),
  .partnership-models-grid > :nth-child(5) {
    grid-column: span 1;
  }
  
  /* Last item takes full width if odd number */
  .partnership-models-grid > :nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .partnership-models-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .partnership-models-grid.homepage {
    grid-template-columns: 1fr;
  }
  
  .partnership-models-grid > :nth-child(1),
  .partnership-models-grid > :nth-child(2),
  .partnership-models-grid > :nth-child(3),
  .partnership-models-grid > :nth-child(4),
  .partnership-models-grid > :nth-child(5) {
    grid-column: 1;
    max-width: 100%;
    margin: 0;
  }
  
  .partnership-model-card {
    padding: 2.5rem 1.5rem;
    min-height: 180px;
  }
  
  .partnership-models-section {
    padding: 3rem 0;
  }
  
  .partnership-models-section .section-title {
    margin-bottom: 2.5rem;
    font-size: 20px;
  }
}

/* ---------------------------------------------
   Focus Areas Section
--------------------------------------------- */
.focus-areas-section {
  min-height: 100dvh;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Focus Areas Grid styles moved to base.css */

/* ---------------------------------------------
   Home 100vh Sections Wrapper
--------------------------------------------- */
.home-sections-100vh .projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991.98px) {
  .home-sections-100vh .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .project-image { height: 320px; }
}

@media (max-width: 575.98px) {
  .home-sections-100vh .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image { height: 320px; }
}

@media (max-width: 950px) {
  .home-sections-100vh > section.section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
}

/* ---------------------------------------------
   Programs and Events Section
--------------------------------------------- */
.programs-events-section {
  background-color: #0f0f0f;
  min-height: auto;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.programs-events-section .section-title {
  font-family: 'Rock Star Narrow', serif;
  color: #CBA25C;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  text-transform: uppercase;
  font-size: 36px;
  text-align: center;
}

.homepage-programs-events-swiper {
  padding: 0 0 60px 0;
  position: relative;
}

.program-event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-event-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
}

.program-event-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.card-image-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.program-event-card:hover .card-image-bg {
  transform: scale(1.05);
}

.program-event-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-event-title {
  font-family: 'Rock Star Narrow', serif;
  color: #CBA25C;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.program-event-description {
  font-family: 'Source Serif 4', serif;
  color: rgba(203, 162, 92, 0.7);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.program-event-date {
  font-family: 'Rock Star Narrow', serif;
  color: #CBA25C;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

/* Swiper Navigation */
.homepage-programs-events-swiper .swiper-button-next,
.homepage-programs-events-swiper .swiper-button-prev {
  color: #CBA25C;
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.homepage-programs-events-swiper .swiper-button-next {
  right: -20px;
}

.homepage-programs-events-swiper .swiper-button-prev {
  left: -20px;
}

.homepage-programs-events-swiper .swiper-button-next::after,
.homepage-programs-events-swiper .swiper-button-prev::after {
  font-size: 24px;
  font-weight: 700;
}

.homepage-programs-events-swiper .swiper-button-next:hover,
.homepage-programs-events-swiper .swiper-button-prev:hover {
  color: #ffffff;
}

/* Swiper Pagination */
.homepage-programs-events-swiper .swiper-pagination {
  position: relative;
  margin-top: 40px;
  bottom: 0;
}

.homepage-programs-events-swiper .swiper-pagination-bullet {
  background: rgba(203, 162, 92, 0.4);
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 6px;
}

.homepage-programs-events-swiper .swiper-pagination-bullet-active {
  background: #CBA25C;
}

/* Tablet: Show 1 card (same as mobile) */
@media (min-width: 768px) and (max-width: 1023px) {
  .homepage-programs-events-swiper {
    padding: 0 0 50px 0;
  }
  
  .program-event-image {
    height: 320px;
  }
  
  .homepage-programs-events-swiper .swiper-button-next,
  .homepage-programs-events-swiper .swiper-button-prev {
    display: none;
  }
}

/* Desktop: Show 3 cards */
@media (min-width: 1024px) {
  .homepage-programs-events-swiper {
    padding: 0 0 60px 0;
  }
  
  .program-event-image {
    height: 400px;
  }
  
  .program-event-image .card-image-bg {
    background-position: center center;
    background-size: cover;
    object-fit: cover;
  }
  
  .homepage-programs-events-swiper .swiper-button-next {
    right: 0;
  }
  
  .homepage-programs-events-swiper .swiper-button-prev {
    left: 0;
  }
}

/* Mobile: Show 1 card */
@media (max-width: 767px) {
  .programs-events-section {
    padding: 3rem 0;
  }
  
  .programs-events-section .section-title {
    font-size: 24px;
    margin-bottom: 2rem;
  }
  
  .homepage-programs-events-swiper {
    padding: 0 0 50px 0;
  }
  
  .program-event-image {
    height: 280px;
  }
  
  .program-event-content {
    padding: 20px 0;
  }
  
  .homepage-programs-events-swiper .swiper-button-next,
  .homepage-programs-events-swiper .swiper-button-prev {
    display: none;
  }
  
  .homepage-programs-events-swiper .swiper-pagination {
    margin-top: 30px;
  }
}

/* ---------------------------------------------
   Publications Section (Homepage)
--------------------------------------------- */
.publications-section {
  background-color: #0f0f0f;
  min-height: auto;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.publications-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.publications-view-more {
  white-space: nowrap;
}

.homepage-publications-swiper {
  margin-top: 3rem;
  padding-bottom: 40px;
  overflow: hidden;
}

.homepage-publications-swiper .swiper-wrapper {
  align-items: stretch;
  justify-content: flex-start;
}

.publication-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.publication-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.publication-image-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.publication-card:hover .publication-image-bg {
  transform: scale(1.04);
}

.publication-content {
  padding-top: 20px;
}

.publication-title {
  font-family: 'Rock Star Narrow', serif;
  color: #CBA25C;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.publication-meta {
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  color: rgba(203, 162, 92, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* Swiper Navigation */
.homepage-publications-swiper .swiper-button-next,
.homepage-publications-swiper .swiper-button-prev {
  color: #CBA25C;
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.homepage-publications-swiper .swiper-button-next {
  right: -20px;
}

.homepage-publications-swiper .swiper-button-prev {
  left: -20px;
}

.homepage-publications-swiper .swiper-button-next::after,
.homepage-publications-swiper .swiper-button-prev::after {
  font-size: 24px;
  font-weight: 700;
}

.homepage-publications-swiper .swiper-button-next:hover,
.homepage-publications-swiper .swiper-button-prev:hover {
  color: #ffffff;
}

/* Swiper Pagination */
.homepage-publications-swiper .swiper-pagination {
  position: relative;
  margin-top: 40px;
  bottom: 0;
}

.homepage-publications-swiper .swiper-pagination-bullet {
  background: rgba(203, 162, 92, 0.4);
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 6px;
}

.homepage-publications-swiper .swiper-pagination-bullet-active {
  background: #CBA25C;
}

.homepage-publications-swiper .swiper-wrapper {
  justify-content: flex-start;
}

.homepage-publications-swiper .swiper-slide {
  width: auto;
  flex-shrink: 0;
}

/* Single publication: center horizontally */
.homepage-publications-swiper.is-single .swiper-wrapper {
  justify-content: center;
}

.homepage-publications-swiper.is-single .swiper-slide {
  max-width: 720px;
}

.homepage-publications-swiper.is-single .swiper-button-next,
.homepage-publications-swiper.is-single .swiper-button-prev {
  display: none;
}

/* Desktop: 2 slides */
@media (min-width: 1024px) {
  .homepage-publications-swiper:not(.is-single) .swiper-slide {
    width: calc((100% - 32px) / 2);
  }
  
  .homepage-publications-swiper.is-single .swiper-slide {
    width: auto;
    max-width: 720px;
  }
}

/* Tablet: Hide navigation arrows */
@media (min-width: 768px) and (max-width: 1023px) {
  .homepage-publications-swiper .swiper-button-next,
  .homepage-publications-swiper .swiper-button-prev {
    display: none;
  }
}

/* Desktop: Show navigation arrows with adjusted positioning */
@media (min-width: 1024px) {
  .homepage-publications-swiper .swiper-button-next {
    right: 0;
  }
  
  .homepage-publications-swiper .swiper-button-prev {
    left: 0;
  }
}

/* Mobile/Tablet: 1 slide */
@media (max-width: 1023px) {
  .homepage-publications-swiper .swiper-slide {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .publications-section {
    padding: 3rem 0;
  }

  .homepage-publications-swiper {
    padding-bottom: 30px;
  }

  .publication-image {
    height: 260px;
  }
  
  .homepage-publications-swiper .swiper-button-next,
  .homepage-publications-swiper .swiper-button-prev {
    display: none;
  }
  
  .homepage-publications-swiper .swiper-pagination {
    margin-top: 30px;
  }
}

/* ---------------------------------------------
   Partners Logos Section (matching partnership page)
--------------------------------------------- */
.partners-logos-section {
  background-color: #0f0f0f;
  min-height: auto;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partners-logos-grid {
  margin-top: 2rem;
}

.partners-logos-item {
  padding: 1.5rem 2.5rem;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.partners-logos-item figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partners-logos-item img {
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partners-logos-item:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 575.98px) {
  .partners-logos-section {
    padding: 60px 0;
  }

  .partners-logos-grid {
    gap: 1.25rem;
    padding-bottom: 3rem;
  }

  .partners-logos-item {
    padding: 1rem 1.5rem;
    min-width: 140px;
  }

  .partners-logos-item img {
    max-height: 90px;
  }
}

