/* ========================================================
   VERZIÓ 23 (2026) - HOMEPAGE STYLES
   Refactored with Native CSS Nesting
   ======================================================== */

:root {
  --color-dark: hsla(0, 0%, 7%, 1);
  --color-white: hsla(0, 0%, 100%, 1);
  --color-border: hsla(0, 0%, 0%, 1);
  --color-border-light: #cccccc;
  --color-bg-light: hsla(0, 0%, 92%, 1);
  --color-placeholder-pink: hsla(0, 30%, 79%, 1);
  --color-placeholder-grey: #9a9ea6;
  --color-split-lavender: hsla(0, 0%, 77%, 1);
  --color-split-slate: hsla(214, 6%, 50%, 1);
  --color-hero-background: hsla(213, 10%, 21%, 1);

  --font-heading: "Mohol-Ultra", sans-serif;
  --font-navigation: "Mohol-Thin", sans-serif;
  --font-body: "Google-Sans-Flex", sans-serif;
  --container-width: 1440px;
  --tablet-breakpoint: 1024px;
  --mobile-breakpoint: 640px;

  --main-padding: 50px;
  --header-item-padding: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h1 span,
h2 span {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
  margin: 0;
}

h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0 0 1em 0;
}

p,
a,
span,
button,
input,
textarea,
select,
.pill,
.card-excerpt,
.about-content,
.footer-bottom-nav,
.header-tagline {
  font-family: var(--font-body);
}

.btn-outline {
  font-family: var(--font-navigation);
  font-weight: 100;
  font-size: 1rem;
  text-transform: uppercase;
}

.verzio-site-wrapper {
  max-width: var(--container-width);
  width: 100%;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
  border: 1px solid var(--color-border);
}

.page-node-type-film .verzio-main {
  margin-top: 35px;

  @media (max-width: 1024px) {
    margin-top: 48px;
  }
}

.verzio-main {
  width: 100%;
  box-sizing: border-box;

  & .verzio-content {
    padding: 0;
    box-sizing: border-box;
    min-height: 400px;
  }

  & .verzio-highlighted,
  & .verzio-help {
    padding: 16px var(--header-item-padding, 16px) 0;
    box-sizing: border-box;
  }

  & .breadcrumb {
    padding: 16px var(--header-item-padding, 16px) 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  border-bottom: 1px solid var(--color-border);
}

/* ========================================================
   GLOBAL COMPONENTS
   ======================================================== */

.btn-outline {
  display: inline-block;
  border: 1px solid var(--color-border);
  padding: 8px 24px;
  background: transparent;
  transition: all 0.2s ease;

  &:hover {
    background: var(--color-border);
    color: var(--color-white);
  }

  &.btn-split {
    border-width: 1px;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  padding: 16px 50px;

  @media (max-width: 1024px) {
    text-align: center;
    margin: 36px 0 20px 0;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.carousel-nav {
  display: flex;
  gap: 32px;
  padding: 0 var(--main-padding);

  @media (max-width: 1024px) {
    display: none !important;
  }

  & .nav-arrow {
    background: url("../images/chevron--black.png") no-repeat center center;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition:
      transform 0.15s ease,
      opacity 0.15s ease;
    user-select: none;

    &:hover {
      opacity: 1;
    }
  }

  & .prev {
    transform: rotate(180deg);
  }
}

/* ========================================================
   1. HEADER & NAVIGATION
   ======================================================== */

.mobile-top-bar {
  display: none;

  @media (max-width: 1024px) {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
  }

  & .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 48px;
    height: 48px;
    padding: 14px 10px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--color-border);
    cursor: pointer;
    box-sizing: border-box;

    & span {
      display: block;
      width: 100%;
      height: 2px;
      background-color: var(--color-border);
    }
  }

  & .mobile-tagline {
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.verzio-header {
  border-bottom: 1px solid var(--color-border);
  max-width: var(--container-width);
  width: 100%;
  height: 35px;
  position: fixed;
  top: 0;
  z-index: 100;
  background-color: white;
  overflow-x: clip;

  @media (max-width: 1024px) {
    padding: 0;
    height: auto;
    overflow-x: visible;
  }

  & .header-inner {
    display: flex;
    align-items: center;
    height: 35px;
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--color-border);

    @media (max-width: 1024px) {
      display: none;
      flex-direction: column;
      padding: 0;
      width: 100%;
      height: auto;
      max-height: calc(100vh - 48px);
      overflow-y: auto;
      border-bottom: 1px solid var(--color-border);
      background-color: var(--color-white);

      &.mobile-open {
        display: flex;
      }
    }
  }

  & .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 0 0 auto;
    padding-inline: 5px;
    border-right: 1px solid var(--color-border);

    @media (max-width: 1024px) {
      display: none !important;
    }
  }

  & .site-logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;

    & .site-logo-img {
      height: 35px;
      width: auto;
      max-width: 100%;
      display: block;
      object-fit: contain;
    }
  }

  & .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
  }

  & .header-tagline {
    font-family: var(--font-navigation);
    font-size: 1rem;
    font-weight: 100;
    border-right: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding-inline: var(--header-item-padding, 16px);

    & p {
      margin: 0;
      display: inline;
    }

    @media (max-width: 1024px) {
      display: none !important;
    }
  }
}

body.has-active-subnav .verzio-header,
.verzio-header.is-hover-open,
.verzio-header:has(.menu-item--has-children:hover) {
  @media (min-width: 1025px) {
    height: 70px;
  }
}

body.has-active-subnav .verzio-hero {
  @media (min-width: 1025px) {
    margin-top: 70px;
  }
}

body.has-active-subnav.page-node-type-film .verzio-main {
  @media (min-width: 1025px) {
    margin-top: 70px;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  position: relative;

  @media (max-width: 1024px) {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    position: static;
  }

  & .region-primary-menu {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;

    @media (max-width: 1024px) {
      display: flex;
      flex-direction: column;
      width: 100%;
      align-items: stretch;
      gap: 0;
      height: auto;
    }
  }

  & .block,
  & [class*="block-"] {
    display: flex;
    align-items: center;
    height: 100%;

    @media (max-width: 1024px) {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: auto;
    }
  }

  & ul.menu--main {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;

    @media (max-width: 1024px) {
      display: flex;
      flex-direction: column;
      width: 100%;
      margin: 0;
      padding: 0;
      height: auto;
    }
  }

  & .menu-item {
    display: flex;
    align-items: center;
    height: 100%;
    position: static;
    padding-top: 0;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;

    &.menu-item--active-trail {
      & .menu-item-row {
        & .menu-link {
          background-color: var(--color-dark);
          color: var(--color-white);
        }
      }
    }

    @media (max-width: 1024px) {
      width: 100%;
      border-bottom: 1px solid var(--color-border);
      border-right: none;
      height: auto;
      position: relative;
    }

    &.menu-item--has-children {
      &.is-open > .sub-menu-bar {
        @media (max-width: 1024px) {
          display: block;
        }
      }

      &.is-open > .menu-item-row .menu-toggle-btn .chevron {
        @media (max-width: 1024px) {
          transform: rotate(180deg);
        }
      }
    }
  }

  & .menu-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;

    @media (max-width: 1024px) {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 20px;
      width: 100%;
      box-sizing: border-box;
      height: auto;
    }
  }

  & .menu-link {
    font-family: var(--font-navigation);
    font-size: 1rem;
    font-weight: 100;
    display: flex;
    height: 100%;
    cursor: pointer;
    align-items: center;
    white-space: nowrap;
    padding-inline: var(--header-item-padding, 16px);

    &:hover {
      text-decoration: none;
      background-color: var(--color-dark);
      color: var(--color-white);
    }

    @media (max-width: 1024px) {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--color-dark);
      flex: 1;
      display: block;
      padding-inline: 0;
      height: auto;
    }
  }

  & .menu-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: none;
    align-items: center;

    @media (max-width: 1024px) {
      display: flex;
      padding: 8px;
      cursor: pointer;
    }

    & .chevron {
      transition: transform 0.2s ease;
    }
  }

  /* Two-tier Row 2 bar */
  & .sub-menu-bar {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-end;

    /* Empty spacer extending to the left under Logo & Tagline */
    &::before {
      content: "";
      position: absolute;
      top: 0;
      right: 100%;
      width: 2000px;
      height: 35px;
      background-color: var(--color-white);
      border-bottom: 1px solid var(--color-border);
      box-sizing: border-box;
    }

    @media (max-width: 1024px) {
      display: none;
      position: static;
      width: 100%;
      height: auto;
      border: none;
      background: none;
      justify-content: flex-start;

      &::before {
        display: none;
      }
    }
  }

  & .sub-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    box-shadow: none;
    background: transparent;
    position: static;

    @media (max-width: 1024px) {
      display: flex;
      flex-direction: column;
      background-color: var(--color-bg-light);
      border: none;
      box-shadow: none;
      width: 100%;
      padding: 0;
      margin: 0;
      box-sizing: border-box;
    }

    & .menu-item {
      height: 100%;
      display: flex;
      align-items: center;
      border-right: 0px none;
      border-left: 1px solid var(--color-border);
      border-bottom: none;
      margin: 0;
      padding: 0;
      flex-shrink: 0;
      position: relative;
      width: auto;

      @media (max-width: 1024px) {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        border-right: none;
        height: auto;

        &:last-child {
          border-bottom: none;
        }
      }
    }

    & a,
    & .menu-link {
      height: 100%;
      display: flex;
      align-items: center;
      font-family: var(--font-navigation);
      font-size: 1rem;
      font-weight: 100;
      white-space: nowrap;

      @media (max-width: 1024px) {
        padding: 12px 20px;
        font-size: 0.95rem;
        font-weight: 500;
        display: block;
        height: auto;

        &:hover {
          background-color: var(--color-bg-light);
          color: var(--color-dark);
        }
      }
    }

    & span {
      color: var(--color-split-lavender);

      &:hover {
        background-color: var(--color-white);
        color: var(--color-split-lavender);
      }
    }

    & a:hover {
      background-color: var(--color-dark);
      color: var(--color-white);
      text-decoration: none;
    }

    & .menu-item.is-active > a,
    & .menu-item.is-active > .menu-link,
    & .menu-item.menu-item--active-trail > a,
    & .menu-item.menu-item--active-trail > .menu-link,
    & a.is-active,
    & .menu-link.is-active {
      background-color: var(--color-dark);
      color: var(--color-white);
    }
  }
}

/* Active section permanently showing on lower-level pages */
body.has-active-subnav .header-nav .menu-item--active-trail > .sub-menu-bar {
  @media (min-width: 1025px) {
    display: flex;
    z-index: 10;
  }
}

/* Desktop: show sub-menu bar on hover and highlight parent */
@media (min-width: 1025px) {
  .header-nav .menu-item--has-children:hover > .sub-menu-bar,
  .header-nav .menu-item--has-children.is-hovered > .sub-menu-bar {
    display: flex !important;
    z-index: 30;
  }

  .header-nav .menu-item--has-children:hover > .menu-item-row > .menu-link,
  .header-nav .menu-item--has-children:hover > .menu-link,
  .header-nav .menu-item--has-children.is-hovered > .menu-item-row > .menu-link,
  .header-nav .menu-item--has-children.is-hovered > .menu-link {
    background-color: var(--color-dark);
    color: var(--color-white);
  }
}

/* Mobile Navigation Drawer & Accordion */
@media (max-width: 1024px) {
  .mobile-top-bar {
    display: flex !important;
  }

  .header-nav .sub-menu-bar {
    display: none;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    justify-content: flex-start !important;
  }

  .header-nav .sub-menu-bar::before {
    display: none !important;
  }

  .header-nav .menu-item--has-children.is-open > .sub-menu-bar,
  .header-nav .menu-item--has-children.menu-item--active-trail > .sub-menu-bar {
    display: block !important;
  }

  .header-nav
    .menu-item--has-children.is-open
    > .menu-item-row
    .menu-toggle-btn
    .chevron,
  .header-nav
    .menu-item--has-children.menu-item--active-trail
    > .menu-item-row
    .menu-toggle-btn
    .chevron {
    transform: rotate(180deg) !important;
  }

  .header-nav .sub-menu-bar .sub-menu {
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--color-bg-light) !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .header-nav .sub-menu-bar .sub-menu .menu-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-right: none !important;
    height: auto !important;
  }

  .header-nav .sub-menu-bar .sub-menu .menu-link {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    display: block !important;
    height: auto !important;
  }
}

/* Drupal Language Switcher Block */
#block-verzio26-languageswitcher,
.block-language {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-shrink: 0;
  margin-left: auto;
  border-left: 1px solid var(--color-border);

  @media (max-width: 1024px) {
    display: flex !important;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    border-left: none;
    margin: 0;
    height: auto;
  }

  & ul {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  & li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;

    &.is-active,
    &:has(.is-active) {
      display: none !important;
    }
  }

  & a,
  & .lang-link {
    font-family: var(--font-navigation);
    font-size: 1rem;
    font-weight: 100;
    text-decoration: none;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: 10px;

    &:hover {
      text-decoration: none;
      background-color: var(--color-dark);
      color: var(--color-white);
    }
  }
}

/* ========================================================
   2. HERO MOTTO BANNER
   ======================================================== */

.verzio-hero {
  background-color: var(--color-hero-background);
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
  height: 365px;
  margin-top: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  :lang(hu) &:not(.verzio-hero--custom),
  html[lang="hu"] &:not(.verzio-hero--custom),
  body.lang-hu &:not(.verzio-hero--custom),
  &.verzio-hero--hu {
    background-image: url("../images/header--hun.png");
  }

  :lang(en) &:not(.verzio-hero--custom),
  html[lang="en"] &:not(.verzio-hero--custom),
  body.lang-en &:not(.verzio-hero--custom),
  &.verzio-hero--en {
    background-image: url("../images/header--eng.png");
  }

  &.verzio-hero--custom {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /*& .hero-motto {
    color: #dfd2d4;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow:
      0 0 16px rgba(255, 255, 255, 0.4),
      2px 2px 8px rgba(0, 0, 0, 0.8);
    filter: blur(0.5px);
    text-transform: uppercase;
  }*/
}

@media (max-width: 1024px) {
  .verzio-hero {
    height: 240px;
    min-height: 200px;
    margin-top: 48px;
  }
}

/* ========================================================
   3. ABOUT
   ======================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }

  & .about-media {
    border-right: 1px solid var(--color-border);
    overflow: hidden;
    width: 100%;

    @media (max-width: 1024px) {
      border-right: none;
      border-bottom: 1px solid var(--color-border);
    }
  }

  & .about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
  }

  & .media-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-placeholder-pink);
  }

  & .about-content {
    padding: 50px;
  }

  & .about-headline {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
  }

  & .about-lead p,
  & .about-content > p {
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 32px;
    margin-top: 0;
    color: #222;
  }
}

/* ========================================================
   4 & 6. CARDS & GRIDS (HÍREK & BLOG)
   ======================================================== */

.news-view-wrapper .views-view-unformatted,
.blog-view-wrapper .views-view-unformatted,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: calc(100% - 2px);

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.verzio-card {
  display: flex;
  flex-direction: column;

  & .card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--color-placeholder-grey);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);

    & a {
      display: block;
      width: 100%;
      height: 100%;
    }

    & picture,
    & .field,
    & .field__item,
    & .media {
      width: 100%;
      height: 100%;
    }

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  & .card-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: space-between;
  }

  & .pill {
    font-family: var(--font-navigation);
    display: inline-block;
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 4px 14px;
    font-size: 1rem;
    font-weight: 100;
    text-transform: uppercase;
    transition: all 0.2s ease;
  }

  & .pill-action:hover {
    background: var(--color-border);
    color: var(--color-white);
  }

  & .card-title {
    margin: 0 0 16px 0;

    & a {
      font-family: var(--font-navigation);
      font-size: 1.85rem;
      font-weight: 100;
      text-transform: uppercase;
    }
  }

  & .card-excerpt {
    font-size: 1.15rem;
  }

  & .blog-affiliation {
    font-size: 0.85rem;
    color: #555;
    margin: -4px 0 16px 0;
  }
}

.section-footer-cta {
  text-align: center;
  margin: 0 0 var(--main-padding) 0;
}

/* ========================================================
   CAROUSELS (NEWS & BLOG SCROLL-SNAP)
   ======================================================== */

.verzio-carousel {
  & .views-view-unformatted {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 32px;
    padding: 8px 0 16px 0;
    margin: 0;
    list-style: none;

    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  & .view-content {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin: 0;
    list-style: none;

    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }

    & .views-row {
      display: flex;
      flex: 0 0 calc(100% / 3);

      @media (max-width: 1024px) {
        flex: 0 0 calc(100% / 2);
      }

      @media (max-width: 640px) {
        flex: 0 0 82%;
      }
    }
  }

  & .verzio-card {
    flex: 0 0 100%;
    scroll-snap-align: start;

    & .card-body {
      padding: 32px var(--main-padding);
    }
  }
}

/* ========================================================
   5. SPLIT CTA (MŰSORLISTA | FILMEK)
   ======================================================== */

.section-split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 190px;

  @media (max-width: 1024px) {
    display: flex !important;
    flex-direction: column !important;
    margin: 36px 0;
  }

  & .split-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--main-padding);

    @media (max-width: 1024px) {
      padding: 40px 20px;
    }
  }

  & .split-program {
    background-color: var(--color-split-lavender);

    @media (max-width: 1024px) {
      order: 2;
      background-color: var(--color-bg-light);
    }
  }

  & .split-films {
    background-color: var(--color-split-slate);

    @media (max-width: 1024px) {
      order: 1;
      background-color: #b5b5b5;
    }
  }

  & .split-title {
    margin: 0 0 32px 0;
    text-transform: uppercase;

    @media (max-width: 1024px) {
      font-size: 2.4rem;
    }
  }
}

/* ========================================================
   7. KÉPGALÉRIA
   ======================================================== */

.gallery-grid {
  & .gallery-item {
    aspect-ratio: 1 / 1;
    background-color: #d1d5db;
    border-right: 1px solid var(--color-border);
  }
  & .gallery-item:nth-child(3n) {
    border-right: none;
  }
}

/* ========================================================
   8. SPONSORS / PARTNERS (ENDLESS MARQUEE)
   ======================================================== */

.section-partners {
  padding: var(--main-padding) 0;
}

.partners-logo-strip {
  width: calc(100% - var(--main-padding));
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  padding-left: var(--main-padding);

  & .view-content,
  & .views-view-unformatted {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: var(--main-padding);
    width: max-content;
    animation: scroll-partners 60s linear infinite;
    animation-delay: 2s;

    &:hover {
      animation-play-state: paused;
    }
  }

  & .views-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  & a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }

  & img {
    height: 100px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition:
      opacity 0.2s,
      filter 0.2s;

    &:hover {
      opacity: 1;
      filter: grayscale(0%);
    }
  }

  & a:hover img {
    opacity: 1;
    filter: grayscale(0%);
  }
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================================
   9. FOOTER
   ======================================================== */

.verzio-footer {
  display: grid;
  align-items: end;
  background-color: var(--color-bg-light);
  padding: var(--main-padding);
  height: 792px;

  & .footer-inner {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
  }

  & .footer-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    margin-bottom: 100px;
    font-size: 1.125rem;
  }

  & a {
    font-family: var(--font-navigation);
    font-weight: 100;
  }

  & p {
    margin: 0;
  }

  & .footer-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  & .footer-bottom-nav {
    padding-top: 20px;
    font-size: 0.75rem;

    & ul.menu,
    & ul.menu--footer,
    & ul.menu--footerhun {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      width: 100%;
      margin: 0;
      padding: 0;
      list-style: none;
      font-size: 0.75rem;
      letter-spacing: 0.5px;
      font-weight: 400;
      text-transform: uppercase;
      gap: 16px;
    }

    & li {
      margin: 0;
      padding: 0;
    }

    & a {
      color: var(--color-dark);
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* ========================================================
   10. ARTICLES & GENERIC PAGES (Page, News, Blog)
   ======================================================== */

.page-node-type-article .block-page-title-block {
  display: none !important;
}

.article-page-layout,
.article-news-layout,
.article-blog-layout {
  border-bottom: 1px solid var(--color-border);
}

.article-header {
  padding: 16px var(--main-padding);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: var(--main-padding);
  align-items: start;
}

.article-page-layout .article-header {
  flex-direction: row;
}

.article-header .page-title,
.article-header .article-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-meta-pills {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  padding: 4px 14px;

  & span {
    font-family: var(--font-navigation);
    font-weight: 100;
    font-size: 1rem;
  }
}

.blog-author-byline {
  font-family: var(--font-navigation);
  font-size: 1.125rem;
  font-weight: 500;
  color: #555;
  margin-top: 12px;
}

.page-featured-media,
.article-featured-media {
  margin-bottom: 32px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.page-featured-media img,
.article-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

.page-lead-text,
.article-lead-text {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.5;
  color: #222;
  margin-bottom: 28px;
  border-left: 3px solid #000;
  padding-left: 16px;
}

.page-body-content,
.article-body-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-dark);
  max-width: 960px;
  padding: var(--main-padding);
  margin: 0 auto 0 calc(var(--main-padding) + 20px);

  & a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}

.page-body-content p,
.article-body-content p {
  margin-bottom: 1.5em;
}

.page-body-content h2,
.article-body-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1em;
}

.page-body-content h3,
.article-body-content h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 1em;
}

.article-page-layout .field__label,
.article-news-layout .field__label,
.article-blog-layout .field__label {
  display: none !important;
}

.page-body-content img,
.article-body-content img {
  max-width: 100%;
  height: auto;
}

.section-blog,
.section-gallery {
  display: none;
  visibility: hidden;
  opacity: 0;
  width: 1px;
  height: 1px;
}
