/* Base Reset */

:root {
  --primary-color: #008080;
  --grey: #222;
  --mobile-gutter: 24px; /* страничен простор на мобилен */
  --section-gap: 30px; /* растојание меѓу деловите, на сите екрани */

  /* --main-font: 'Arial', sans-serif; */
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  border-bottom: 1px solid #ccc;
  padding: 0px 1.5rem;
}

.header .logo img {
  height: 32px;
}

.nav-item:not(:last-child) {
  margin-right: 1.5rem;
}

.nav-item .nav-link,
.dropdown-menu .dropdown-item {
  color: var(--primary-color) !important;
  transition: background-color 0.3s ease;
}

.dropdown-menu .dropdown-item {
  
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    width: 220px;
    padding: 8px;
}

.dropdown-menu .dropdown-item {
  border-bottom: 1px solid #ddd;
}
.dropdown-menu .dropdown-item:last-of-type {
  border-bottom: none;
}

.nav-item .nav-link {
  border-radius: 5px;
  padding-right: 1.25rem !important;
  padding-left: 1.25rem !important;
  font-weight: bold;
}

.navbar-nav:not(.inside) .nav-link.active,
.dropdown-menu .dropdown-item.active {
  color: white !important;
  background-color: var(--primary-color);
  border-radius: 6px;
}

@media (hover: hover) {
  .nav-item .nav-link:hover,
  .dropdown-menu .dropdown-item:hover {
    color: white !important;
    background-color: var(--primary-color);
    border-radius: 6px;
  }
}

.inside {
  padding-left: 10px;
}

.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  /* спречува "потрес" */
}

.navbar .navbar-toggler {
  border: none;
}

.navbar .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,128,128, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,128,128, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M6 6L24 24M24 6L6 24'/%3E%3C/svg%3E") !important;
}

/* Hero Section */

.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(images/cover.png) no-repeat center 20%/ cover;
  background-attachment: fixed;
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* исто како top:0; left:0; right:0; bottom:0; */
  background-color: rgba(0, 0, 0, 0.6);
  /* 0.4 = колку е темно */
}

/* Override for iOS devices */
/* @supports (-webkit-overflow-scrolling: touch) {
  .hero {
    background-attachment: scroll;
  }
} */
.hero-wrapper {
  position: relative;
  z-index: 1;
  height: 100svh;
  max-width: 1200px;
  margin: auto;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8rem 1rem;
  box-sizing: border-box;
}

.hero-text {
  z-index: 1;
}

.hero-text h1 {
  font-size: 2rem;
  line-height: 1.4;
}

.hero-text a {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: white;
  border: white 2px solid;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.5s ease, color 0.5s ease;
  font-weight: 500;
}

.hero-text a:hover {
  color: white;
  background-color: var(--primary-color);
}

/* Intro Section */
.intro {
  background: var(--primary-color);
  width: 100%;
}

.intro .intro-wrapper {
  max-width: 1200px;
  margin: auto;
  color: white;
  padding: 5rem 2rem;
  text-align: left;
  display: flex;
  gap: 2rem;

}

.intro .intro-wrapper .title {
  line-height: 3.4rem;
}

.intro .intro-wrapper .title-wrapper {
  width: -webkit-fill-available;
}

.intro .intro-wrapper .double-line {
  width: 60px;
  height: 7px;
  position: relative;
  margin-top: 10px;
}

.intro .intro-wrapper .double-line::before,
.intro .intro-wrapper .double-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
}

.intro .intro-wrapper .double-line::before {
  top: 0;
}

.intro .intro-wrapper .double-line::after {
  bottom: 0;
}


/* Quote Section */
.quote {
  text-align: center;
  padding: 6rem 1rem;
  background: #f1f1f1;
}

.quote h2 {
  margin-bottom: 1rem;
}

#moto .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

#moto .logo img {
  height: 50px;
}

/* Teachers Section */
.team {
  max-width: 1200px;
  margin: auto;
  padding: 5rem 1rem;
  text-align: center;
}

.team-cards {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.kard {
  max-width: 300px;
  width: 100%;
  margin: 1rem;
  padding: 1rem;
  border: none;
}

.kard img.marija {
  height: 160px;
  margin: auto;
  border-radius: 50%;
}

.kard .name {
  margin-top: 20px;
}

.kard .social-media .svg-icon {
  height: 30px;
  width: 30px;
  border: var(--grey) 2px solid;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;

}

.kard .social-media .svg-icon svg {
  max-height: 13px;
  max-width: 13px;

}

.kard .social-media .svg-icon:hover {
  background-color: var(--grey);
}

.kard .social-media .svg-icon:hover svg path {
  fill: #fff;
}

.kard .social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.kard .image-container {

  width: 160px;
  height: 160px;
  overflow: hidden;
  margin: auto;
  border-radius: 50%;
}

.kard .image-container img.monika {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.6);
  /* Зумирање */
}

/* Footer */
.footer {
  background: #0f2f2f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 58px 24px 34px;
  text-align: left;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  column-gap: 56px;
  row-gap: 44px;
  align-items: start;
}

.quote .gradient,
.footer .gradient {
  font-weight: bold;
  background: linear-gradient(90deg, #3ec782 0 45%, #13a2ef 60% 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover,
.footer a:focus-visible {
  color: #3ec782;
}

.footer-muted {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1;
}

.footer-logo img {
  height: 34px;
}

.footer-brand .footer-muted {
  max-width: 420px;
}

/* е-пошта и мрежи: под колоните, големи и бели како порано */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3.5rem;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.footer .footer-social a:hover,
.footer .footer-social a:focus-visible {
  color: #3ec782;
}

.footer-social svg {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.footer-social a:last-child svg {
  height: 25px;
}

.footer-links {
  margin-top: 4px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255);
  margin-bottom: 13px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.4;
}

/* Стариот едноставен футер (само на 404) */
.footer.footer-simple {
  text-align: center;
  border-top: 0;
  padding: 1.25rem 1rem;
}

.footer-simple .contact {
  max-width: 1200px;
  margin: auto;
}

.footer-simple .social-media {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
}

.footer-simple .contact a,
.footer-simple .contact a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-simple .mailto svg,
.footer-simple .linkedIn svg {
  height: 30px;
}

.footer-simple .instagram svg {
  height: 25px;
}

@media (max-width: 576px) {
  .footer-simple .social-media {
    gap: 1.5rem;
    flex-direction: column;
    margin: 1.5rem auto;
  }
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }

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

  .footer-brand .footer-muted {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    flex-direction: column;
  }

  .footer-links ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 22px;
  }
}

a.teal-button {
  margin-top: 1rem;
  padding: 0.6rem 1.6rem;
  background: transparent;
  color: white;
  background-color: var(--primary-color);
  cursor: pointer;
  border-radius: 3px;
  font-weight: 500;
  text-decoration: none;
}

/* retrospektiva */
#retrospective .event-content,
#mental-health-in-sports .event-content,
#step-up-for-climate .event-content,
#empowering-rights .event-content,
#where-is-your-mind .event-content,
#bidi-covek .event-content,
#basketball-for-good .event-content
{
      max-width: 1000px;
    margin: var(--section-gap) auto;
}

/*  */
/* mobile */
@media  (max-width: 586px) {

  .hero-bg {
    background-position: center top;
  }
}
@media (max-width: 576px) {
  .team-cards {
    display: block;
  }

  .kard {
    margin: auto;
  }

  .kard:first-of-type {
    margin-bottom: 25px;
  }

  .hero-wrapper {
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
  }
  #retrospective .event-content, #mental-health-in-sports .event-content, #step-up-for-climate .event-content, #empowering-rights .event-content, #where-is-your-mind .event-content, #bidi-covek .event-content, #basketball-for-good .event-content
  {
      margin: var(--section-gap) auto;
  }

}
@media (max-width: 567px) {

  .hero-bg {
    background-position: center;
  }
}

/* by author */
.bio{
  display: flex;
  align-items: center;
  justify-content: end;
  margin-top: var(--section-gap);
}
.circle-img {
    --size: 40px;            /* default големина, промени ја */
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    border: 2px solid white; /* опционално */
    margin-right: 10px;
  }
  .circle-img.leonida,
  .circle-img.ema,
  .circle-img.monika{
      --size: 50px;
  }
  .circle-img.ema img{
      object-position: center 20%;
  }

  .circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* растегнува/исечува за да го пополни кругот */
    display: block;
  }

/*  */

@media (max-width: 768px) {
  .nav-item .nav-link {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 10px 20px;
  }
  .nav-item{
    width: 100%;
    border-bottom: 1px solid #ddd;
  }
  .nav-item:last-of-type {
    border-bottom: none;
  }
  .navbar-nav:not(.inside) .nav-item:has(.nav-link.active) {
    color: white !important;
    background-color: var(--primary-color);
    border-radius: 6px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    transition: min-height 0.55s ease;
  }

  .navbar-collapse.collapsing {
    transition: height 0.55s ease;
  }

  .header:has(.navbar-toggler[aria-expanded="true"]) {
    min-height: 100dvh;
    overflow-y: auto;
  }

  #navbarSupportedContent {
    justify-content: flex-start !important;
  }

  .navbar-nav {
    width: 100%;
    align-items: flex-start;
  }

  .header:has(.navbar-toggler[aria-expanded="true"]) .mobile-menu-footer {
    display: flex;
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid #ddd;
    justify-content: center;
  }

  .mobile-menu-footer .social-media {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }

  .mobile-menu-footer .social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-footer .social-media svg {
    height: 30px;
    width: 30px;
    &
  }
  .mobile-menu-footer .social-media .instagram svg
  {
    height: 26px;
    width: 26px;
  }

  .mobile-menu-footer .social-media svg path {
    fill: var(--primary-color);
  }
}

.mobile-menu-footer {
  display: none;
}


@media (max-width: 992px) {

  .intro .intro-wrapper {
    display: block;
  }

  .intro .intro-wrapper .title-wrapper {
    margin-bottom: 35px;
  }

}





.event-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}


.date-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  font-weight: 600;
}


.date-day {
  font-size: 22px;
  line-height: 1;
  color: var(--grey);
}

.date-day .od {
  font-size: 14px;
}


.date-month {
  font-size: 12px;
  color: #475569;
}


@media (min-width: 768px) {
  .event-img-wrap, .event-video-wrap {
    min-height: 320px;
  }
  .navbar-expand-md .navbar-nav .dropdown-menu{
    padding: 10px;
  }
}

/* where is your mind vo index */
.where-is-your-mind, .where-is-your-mind-workshop, .step-up-for-climate, .empowering-rights, .basketball-for-good {
  background-color: white;
}
.event-video-wrap
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.bidi-covek .event-video-wrap {
  overflow: hidden;
  background-color: #0b1220;
}

.bidi-covek .event-video-wrap video,
#bidi-covek .event-video-wrap video,
#basketball-for-good .event-video-wrap video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.15);
}

.bidi-covek .event-video-wrap video.video-backdrop,
#bidi-covek .event-video-wrap video.video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.15);
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.bidi-covek .event-video-wrap > video:not(.video-backdrop),
#bidi-covek .event-video-wrap > video:not(.video-backdrop) {
  position: relative;
  z-index: 1;
}

.bidi-covek .event-video-wrap .date-badge,
#bidi-covek .event-video-wrap .date-badge {
  z-index: 2;
}

#bidi-covek .slogan {
  margin-top: var(--section-gap);
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #3ec782;
}

@media (max-width: 992px) {
  .bidi-covek .event-video-wrap video {
    max-height: 80vh;
  }

  .bidi-covek .event-video-wrap video.video-backdrop {
    display: none;
  }

  .bidi-covek .event-video-wrap {
    background-color: transparent;
  }
}

/* Кога колоните се редат една под друга (под lg) видеото го зема
   целиот простор на екранот, без внатрешен padding, во својот сооднос */
@media (max-width: 991.98px) {
  #bidi-covek .event-video-wrap,
  #basketball-for-good .event-video-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  #bidi-covek .event-video-wrap video,
  #basketball-for-good .event-video-wrap video {
    max-height: 85vh;
  }
}

.event-content {
  align-content: center;
}

.event-content .content-wrapper {
  padding: 2rem;
}

.event-title {
  padding-bottom: 20px;
  color: var(--primary-color);
}

.event-summary {
  color: var(--grey);
}
.bidi-covek .slogan{
  font-weight: bold;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  color: #3ec782;
}

.event-button {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: end;
}
@media (max-width: 1200px) {
  .event-content .content-wrapper {
    padding: 5rem 4rem 6rem 4rem;
  }
  .where-is-your-mind-workshop .event-title {
    text-align: center;
  }

  .where-is-your-mind-workshop .event-summary {
    text-align: center;
  }
    .where-is-your-mind-workshop .event-video-wrap video
  {
    width: 100%;
  }
  .intro .intro-wrapper{
    padding: 4rem 2rem;
  }
  .where-is-your-mind-workshop .event-video-wrap{

    max-width: 768px;
    margin: auto;
  }
}
@media (max-width: 992px) {
   .event-content .content-wrapper {
    padding: 5rem 4rem 6rem 4rem;
  }

  .event-title {
    text-align: center;
  }

  .event-summary, .slogan {
    text-align: center;
  }

  .event-button {
    justify-content: center;
  }

}

@media (max-width: 576px) {
  .event-content .content-wrapper {
    padding: 4rem 1rem 3rem 1rem;
  }

  .date-day {
    font-size: 16px;
  }
}

/* end where is your mind in index */

/* ############################ where is your mind  #############################*/
.event-style .title-wrapper {
  margin-top: 59px;
  background-color: var(--primary-color);
  text-align: center;
  padding: 4rem;
  color: white;
}

.event-style .title-wrapper .title-slogan {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}


.event-content p {
  color: var(--grey);
}

@media(max-width:992px) {
  .text-under-picture {
    margin-top: var(--section-gap) !important;
  }
}

@media(max-width:576px) {
  .event-style .title-wrapper {
    padding: 4rem 15px;
  }
}










@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic);

.otro-blockquote {
  font-size: 1em;
  width: fit-content;
  font-family: Open Sans;
  font-style: italic;
  color: var(--grey);
  padding: 2em 3em 2em 4em !important;
  border-left: 8px solid var(--primary-color);
  line-height: 1.6;
  position: relative;
  background: #EDEDED;
}

@media(max-width:576px) {
  .otro-blockquote {
    padding-left: 45px !important;
    padding-right: 20px !important;
    font-size: 14px;
  }
  .nav-item
  {
    margin-right: 0px!important;
  }
}

.otro-blockquote::before {
  font-family: Arial;
  content: "\201C";
  color: var(--primary-color);
  font-size: 4em;
  position: absolute;
  left: 10px;
  top: 0px;
}

.otro-blockquote::after {
  content: '';
}

.otro-blockquote span {
  display: block;
  color: var(--grey);
  font-style: normal;
  font-weight: bold;
  margin-top: 0.3em;
}

/* end where is your mind  */
.step-up-for-climate{

}

#step-up-for-climate .event-gallery,
#empowering-rights .event-gallery,
#basketball-for-good .event-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: var(--section-gap) 0;
}

#step-up-for-climate .event-gallery img,
#empowering-rights .event-gallery img,
#basketball-for-good .event-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  #step-up-for-climate .event-gallery,
  #empowering-rights .event-gallery,
  #basketball-for-good .event-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

#step-up-for-climate .otro-blockquote .quote-author,
#empowering-rights .otro-blockquote .quote-author,
#basketball-for-good .otro-blockquote .quote-author {
  display: flex;
  align-items: center;
}

#step-up-for-climate .otro-blockquote .quote-author .circle-img,
#empowering-rights .otro-blockquote .quote-author .circle-img,
#basketball-for-good .otro-blockquote .quote-author .circle-img {
  display: inline-block;
  font-weight: normal;
  margin-top: 0;
}

#step-up-for-climate .event-img-link,
#empowering-rights .event-img-link,
#basketball-for-good .event-img-link {
  display: block;
  cursor: zoom-in;
}

#step-up-for-climate .event-img-link img,
#empowering-rights .event-img-link img,
#basketball-for-good .event-img-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

#step-up-for-climate .event-img-link:hover img,
#empowering-rights .event-img-link:hover img,
#basketball-for-good .event-img-link:hover img {
  opacity: 0.9;
}

/* basketball for good */
#basketball-for-good .article-section {
  margin-top: var(--section-gap);
}

#basketball-for-good .quote-logo {
  width: auto;
  height: 40px;
}

/* кога колоните се редат една под друга */
@media (max-width: 991.98px) {
  #basketball-for-good .article-section > * + * {
    margin-top: var(--section-gap);
  }
}

#basketball-for-good .article-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

#basketball-for-good .article-closing {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: white;
  background-color: var(--primary-color);
  border-radius: 12px;
  padding: 3.5rem;
}

@media (max-width: 576px) {
  #basketball-for-good .article-closing {
    padding: 2rem 1.5rem;
    font-size: 1rem;
  }
}

/* Галерија без празнини: групната слика е широка, видеото високо.
   Висината на мрежата ја држи aspect-ratio, за плочките да останат квадратни. */
#basketball-for-good .event-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  aspect-ratio: 2 / 5;
}

#basketball-for-good .event-gallery > * {
  min-height: 0;
}

#basketball-for-good .event-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 6px;
}

#basketball-for-good .gallery-wide,
#basketball-for-good .gallery-wide-sm {
  grid-column: span 2;
}

#basketball-for-good .gallery-video {
  position: relative;
  grid-row: span 2;
}

#basketball-for-good .gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#basketball-for-good .gallery-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

/* графиката со текст: да се гледа целиот цитат */
#basketball-for-good .gallery-quote img {
  object-position: center 75%;
}

@media (min-width: 768px) {
  #basketball-for-good .event-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    aspect-ratio: 1 / 1;
  }

  #basketball-for-good .gallery-wide-sm {
    grid-column: auto;
  }
}
/* end basketball for good */

#galleryModal {
  background-color: rgba(0, 0, 0, 0.85);
}

#galleryModal .modal-dialog {
  max-width: 95vw;
}

#galleryModal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

#galleryModal .carousel-item img,
#galleryModal .carousel-item video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
  width: 6%;
  opacity: 0.8;
}

#galleryModal .carousel-indicators {
  margin-bottom: 0.5rem;
  list-style: none;
  padding-left: 0;
}

#galleryModal .carousel-indicators li {
  list-style: none;
}

#galleryModal .carousel:has(.carousel-item.active video) .carousel-indicators {
  display: none;
}

#galleryModal .gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1056;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.9;
}

@media (max-width: 576px) {
  #galleryModal .carousel-item img,
  #galleryModal .carousel-item video {
    max-height: 75vh;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .where-is-your-mind-workshop .event-video-wrap{
    margin: 2rem auto 0rem auto;
  }
}

/* ############################ 404 #############################*/
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(59px + 3rem) 1.25rem 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(62, 199, 130, 0.14), transparent 42%),
    radial-gradient(circle at 50% 75%, rgba(19, 162, 239, 0.08), transparent 50%),
    #fff;
}

.not-found .nf-wrapper {
  max-width: 640px;
}

/* 4 + логото како 0 + 4, во градиентот од мотото */
.not-found .nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
  margin: 0;
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(90deg, #3ec782 0 35%, #13a2ef 65% 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.not-found .nf-zero {
  display: inline-flex;
  width: 0.72em;
  height: 0.72em;
}

.not-found .nf-zero img {
  width: 100%;
  height: 100%;
  animation: nf-breathe 8s ease-in-out infinite;
}

/* „Вдиши“ и „Издиши“ стојат една врз друга и се менуваат со дишењето на логото */
.not-found .nf-cue {
  display: grid;
  justify-content: center;
  margin: 0.75rem 0 1.75rem;
  padding-left: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.not-found .nf-cue span {
  grid-area: 1 / 1;
}

.not-found .nf-cue .nf-in {
  animation: nf-in 8s ease-in-out infinite;
}

.not-found .nf-cue .nf-out {
  opacity: 0;
  animation: nf-out 8s ease-in-out infinite;
}

.not-found h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  color: var(--grey);
}

.not-found .nf-lead {
  margin-bottom: 2rem;
  color: #475569;
}

.not-found .teal-button {
  display: inline-block;
  margin-top: 0;
}

.not-found .nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.95rem;
  color: #475569;
}

.not-found .nf-links a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.not-found .nf-links a:hover {
  text-decoration: underline;
}

@keyframes nf-breathe {
  0%, 100% { transform: scale(0.88); }
  50% { transform: scale(1.04); }
}

@keyframes nf-in {
  0% { opacity: 0; }
  8%, 42% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes nf-out {
  0%, 50% { opacity: 0; }
  58%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .not-found .nf-zero img,
  .not-found .nf-cue .nf-in,
  .not-found .nf-cue .nf-out {
    animation: none;
  }

  .not-found .nf-cue .nf-out {
    display: none;
  }
}
/* end 404 */

/* ############################ мобилни растојанија #############################*/
/* На крајот од датотеката за да ги надјача правилата погоре */
@media (max-width: 576px) {
  /* ист страничен простор насекаде */
  .header,
  .intro .intro-wrapper,
  .event-style .title-wrapper,
  .event-content.container,
  .event-content .content-wrapper,
  .quote,
  .footer,
  .not-found {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .otro-blockquote {
    width: 100%;
  }

  /* картичките на почетна: порамнети лево, како воведот над нив */
  /* .content-wrapper .event-title,
  .content-wrapper .event-summary {
    text-align: left;
  }

  .content-wrapper .event-button {
    justify-content: flex-start;
  } */
}
/* Без ова, на таблет содржината би стоела на само 12px од работ */
@media (max-width: 1023.98px) {
  .event-content.container {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }
}

@media (max-width: 991.98px) {
  /* Биди човек: видеото останува преку цел екран, текстот се порамнува со другите */
  #bidi-covek .event-content .row {
    margin-left: calc(-1 * var(--mobile-gutter));
    margin-right: calc(-1 * var(--mobile-gutter));
  }

  #bidi-covek .text-under-picture {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  /* Текстот нема слика над себе, па важи само растојанието од насловот */
  #bidi-covek .text-under-picture,
  .event-content.container > .row:first-child > .text-under-picture:first-child {
    margin-top: 0 !important;
  }

  #bidi-covek .event-video-wrap {
    margin-top: var(--section-gap) !important;
  }
}
/* Исти растојанија на сите екрани и на сите објави */
.event-style .event-content.container > .row + .row {
  margin-top: var(--section-gap) !important;
}

/* без дополнителна маргина на крајот од делот, за да остане само --section-gap */
.event-style .event-content.container p:last-child,
.event-style .event-content.container .row > :last-child > blockquote:last-child {
  margin-bottom: 0;
}

#bidi-covek .content {
  margin: 0 !important;
}
/* end мобилни растојанија */

/* ############################ Анимации #############################*/
/* Мирно, „дишечко“ движење: меко појавување и кратко лизгање нагоре.
   Класите .reveal и .is-visible ги додава animations.js; без него сè е видливо. */

/* Појавување при скролање */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease-out,
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

/* Сликите/видеата на почетна доаѓаат од својата страна */
.reveal.reveal--from-left {
  transform: translateX(-28px);
}

.reveal.reveal--from-right {
  transform: translateX(28px);
}

/* Сликите што лизгаат од страна не смеат да создадат хоризонтален скрол */
article {
  overflow-x: clip;
}

/* transform: none, за по појавувањето да не остане нов containing block */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Почетна: „Почувствувај / Преиспитај / Напредувај“ се појавуваат еден по друг,
   па копчето */
.hero-bg {
  animation: anim-hero-bg 1.8s ease-out backwards;
}

.hero-text .hero-word {
  display: inline-block;
  animation: anim-fade-up 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s backwards;
}

.hero-text .hero-word:nth-of-type(2) {
  animation-delay: 0.9s;
}

.hero-text .hero-word:nth-of-type(3) {
  animation-delay: 1.5s;
}

.hero-text a {
  display: inline-block;
  animation: anim-fade-up 1s cubic-bezier(0.22, 0.61, 0.36, 1) 2.2s backwards;
}

/* Објави: насловот во тиркизната лента */
.event-style .title-wrapper > * {
  animation: anim-fade-up 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s backwards;
}

.event-style .title-wrapper > * + * {
  animation-delay: 0.35s;
}

/* Сенка под заглавјето по скролање */
.header {
  transition: box-shadow 0.35s ease, min-height 0.55s ease;
}

.header.header--scrolled {
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.07);
}

/* Копчиња: лесно подигнување */
a.teal-button,
.hero-text a {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (hover: hover) {
  a.teal-button:hover,
  a.teal-button:focus-visible {
    color: white;
    background-color: #006d6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 128, 128, 0.25);
  }

  .hero-text a:hover,
  .hero-text a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }

  /* Галерија во објавите */
  #step-up-for-climate .event-img-link,
  #empowering-rights .event-img-link,
  #basketball-for-good .event-img-link {
    overflow: hidden;
    border-radius: 6px;
  }

  #step-up-for-climate .event-img-link img,
  #empowering-rights .event-img-link img,
  #basketball-for-good .event-img-link img {
    transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  #step-up-for-climate .event-img-link:hover img,
  #empowering-rights .event-img-link:hover img,
  #basketball-for-good .event-img-link:hover img {
    transform: scale(1.03);
  }
}

@keyframes anim-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* без transform: hero-bg користи background-attachment: fixed */
@keyframes anim-hero-bg {
  from {
    filter: brightness(0.55);
  }
  to {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal--from-left,
  .reveal.reveal--from-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg,
  .hero-text .hero-word,
  .hero-text a,
  .event-style .title-wrapper > * {
    animation: none;
  }

  a.teal-button,
  .hero-text a,
  .event-img-link img {
    transition: none !important;
  }

  a.teal-button:hover,
  .hero-text a:hover,
  .event-img-link:hover img {
    transform: none !important;
  }
}
/* end Анимации */
