/*
Theme Name: NK Theme
Author: Marcin Kuśnierz
Author URI: http://www.ffs-video.pl/
Description: Ten motyw jest stowrzony w całości przez Marcina Kuśnierza :-) 
Version: 1.1
Text Domain: NK Theme

*/
.welcome {
  width: 100%;
  height: 920px;
  background: var(--color-blue);
  position: fixed;
  overflow: hidden;
}
.img_rakieta {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.img_chmurka {
  position: absolute;
  top: 110px;
  left: 50%;
}
.img_chmurka2 {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-300%);
}
.img_chmurka3 {
  position: absolute;
  top: 250px;
  left: 50%;
  transform: translateX(400%);
}
.welcome .page-content,
.welcome .page-content-narrow {
  display: flex;
  flex-direction: row;
  background-position: left;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.welcome_text {
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center; /* Wyśrodkowanie poziome */
  align-items: flex-start;
  width: 50%;
}

h1.main-head {
  margin-top: 0;
  font-size: 5rem;
  line-height: 4rem;
  margin-bottom: 0;
}
h1.main-head span {
  display: block;
  font-size: 2rem;
  color: var(--color-orange);
}
p.tagline {
  margin-bottom: 0;
  color: var(--color-white);
}
.welcome_image {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.welcome_image_sq {
  width: 500px;
  height: 500px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle,
    rgba(var(--color-white-rgb), 0.5) 30%,
    transparent 70%
  );
}
.welcome_image_bg1 {
  width: 450px;
  height: 450px;
  background: var(--color-sand);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.welcome_image_bg2 {
  width: 435px;
  height: 435px;
  border-radius: 50%;
  background: var(--color-orange);
  position: absolute;
  bottom: 0;
  left: 51%;
  transform: translateX(-50%);
}
.welcome_image_bg2 img {
  position: absolute;
  width: 600px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1280px) {
  .welcome_text {
    width: 60%;
  }
  .welcome_image {
    width: 40%;
  }
  h1.main-head {
    font-size: 4.6rem;
  }
  .welcome_image_sq {
    width: 400px;
    height: 400px;
  }
  .welcome_image_bg1 {
    width: 360px;
    height: 360px;
  }
  .welcome_image_bg2 {
    width: 348px;
    height: 348px;
  }
  .welcome_image_bg2 img {
    width: 480px;
  }
}
@media (max-width: 1024px) {
  .welcome {
    height: 680px;
  }
  h1.main-head {
    font-size: 3.5rem;
  }
  h1.main-head span {
    font-size: 1.5rem;
    line-height: 3rem;
  }
  .welcome_image_sq {
    width: 288px;
    height: 288px;
  }
  .welcome_image_bg1 {
    width: 260px;
    height: 260px;
  }
  .welcome_image_bg2 {
    width: 250px;
    height: 250px;
  }
  .welcome_image_bg2 img {
    width: 346px;
  }
  .img_rakieta {
    width: 80%;
  }
  .img_chmurka2,
  .img_chmurka3 {
    display: none;
  }
}
@media (max-width: 768px) {
  .welcome {
    height: 920px;
  }
  .welcome .page-content-narrow {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
  }
  .welcome_image,
  .welcome_text {
    width: 100%;
  }
  .welcome_text {
    justify-content: flex-end;
    height: calc(45% - 20px);
  }
  .welcome_image {
    align-items: start;
    height: calc(55% - 20px);
  }
  .welcome_image_sq {
    width: 346px;
    height: 346px;
  }
  .welcome_image_bg1 {
    width: 312px;
    height: 312px;
  }
  .welcome_image_bg2 {
    width: 300px;
    height: 300px;
  }
  .welcome_image_bg2 img {
    width: 415px;
  }
  .img_rakieta {
    width: 600px;
  }
  .img_chmurka {
    opacity: 0.5;
  }
}
@media (max-width: 480px) {
  .welcome_text {
    align-items: center;
  }
  h1.main-head {
    font-size: 3rem;
    text-align: center;
  }
  .welcome_text p {
    text-align: center;
  }
  h1.main-head span {
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin-bottom: 30px;
  }
  .welcome_image_sq {
    width: 288px;
    height: 288px;
  }
  .welcome_image_bg1 {
    width: 260px;
    height: 260px;
  }
  .welcome_image_bg2 {
    width: 250px;
    height: 250px;
  }
  .welcome_image_bg2 img {
    width: 346px;
  }
}
@media (max-width: 409px) {
  h1.main-head {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  h1.main-head span {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }
}
@media (max-width: 350px) {
  h1.main-head {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  h1.main-head span {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }
}

/*------------------
DEVIDER
------------------*/
.devider {
  margin-top: 810px;
}

@media (max-width: 1024px) {
  .devider {
    margin-top: 565px;
  }
}
@media (max-width: 768px) {
  .devider {
    margin-top: 810px;
  }
}
/*------------------
RESZTA STRONY
------------------*/

.rest-of-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-sand);
  position: relative;
  z-index: 4;
}

/*------------------
O NAS - SHORT
------------------*/
.about-us-short {
  width: 100%;
  position: relative;
  background: var(--color-sand);
}

.about {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: 40px;
}
.about-left,
.about-right {
  width: calc(50% - 20px);
}
.about-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    gap: 40px;
  }
  .about-flex-left,
  .about-flex-right {
    width: 100%;
  }
}
.youtube-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}
.youtube-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 1024px) {
  .about {
    flex-direction: column;
  }
  .about-left,
  .about-right {
    width: 100%;
  }
}
@media (max-width: 1024px) {
  .about {
    flex-direction: column;
  }
  .about-left,
  .about-right {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .social-links {
    gap: 5px;
  }
}

/*------------------
DLACZEGO MY
------------------*/
.why_us,
.patronite {
  width: 100%;
  background: var(--color-sand);
  position: relative;
  width: 100%;
}
.why_us .page-content-narrow {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: stretch;
}

.why_us_item {
  flex: 1;
  background-color: var(--color-white);
  border-radius: 15px;
  transition: all 0.3s ease-in-out;
  padding: 30px;
  border: 1px solid rgba(var(--color-orange-rgb), 0.15);
}
.why_us_item:hover {
  box-shadow: 0 15px 30px rgba(var(--color-blue-dark-rgb), 0.05);
  transform: translateY(-5px);
  border-color: var(--color-orange);
}
.why_us_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 30px;
  margin: 0 auto;
  background: var(--color-sand);
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}
.why_us_icon img {
  width: 45px;
  transition: all 0.3s ease;
}
.why_us_item:nth-child(3) img {
  transform: rotate(45deg);
}
.why_us_item:hover img {
  filter: brightness(0) invert(1);
}
.why_us_item:hover .why_us_icon {
  background: var(--color-orange);
  transform: rotateY(180deg);
}
.why_us h3 {
  color: var(--color-blue-dark);
  text-align: center;
}
@media (max-width: 1280px) {
  .why_us .page-content-narrow {
    gap: 10px;
  }
  .why_us_item {
    padding: 30px 15px;
  }
}
@media (max-width: 1024px) {
  .why_us {
    margin-top: 20px;
  }
  .why_us .page-content-narrow {
    flex-wrap: wrap; /* Pozwala elementom przejść do nowej linii */
    gap: 20px;
  }

  .why_us_item {
    flex: 0 0 calc(50% - 10px);
  }
}
@media (max-width: 500px) {
  .why_us_item {
    flex: 0 0 100%;
  }
}

/*------------------
PATRONITE
------------------*/

.patronite {
  width: 100%;
}
.patronite .page-content {
  background: var(--color-white);
  border-radius: 20px;
  position: relative;
  border: 1px solid rgba(var(--color-orange-rgb), 0.15);
}
.patronite h2,
.patronite p {
  color: var(--color-blue-dark);
  margin-top: 0px;
}
.patronite-flex {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.patronite-text {
  width: calc(60% - 20px);
}
.patronite-baner {
  width: calc(40% - 20px);
}
.patronite-baner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.patronite-text p {
  margin-bottom: 15px;
}

.ziemek-patronite {
  position: absolute;
  bottom: -55px;
  right: -10px;
  z-index: 1;
  width: 315px;
}
.patronite-baner img.logo-patronite {
  width: 530px;
  position: relative;
  z-index: 2;
  animation: breathing 3s ease-in-out infinite;
}
.img-sciezka1,
.img-sciezka2 {
  position: absolute;
  left: 0;
  max-width: 120px;
  opacity: 0.3;
  height: 100%;
}
.img-sciezka2 {
  left: auto;
  right: 0;
}
@keyframes breathing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); /* Powiększenie o 5% - subtelne i eleganckie */
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 1780px) {
  .patronite-baner img.logo-patronite {
    width: 90%;
  }
  .img-sciezka1,
  .img-sciezka2 {
    opacity: 0.1;
  }
}
@media (max-width: 1280px) {
  .ziemek-patronite,
  .img-sciezka1,
  .img-sciezka2 {
    display: none;
  }
}
@media (max-width: 1024px) {
  .patronite-flex {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
  .patronite-text,
  .patronite-baner {
    width: 100%;
  }
  .patronite-baner img.logo-patronite {
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }
  .patronite-baner a {
    max-width: 500px;
  }
  .patronite-text .boxed-link {
    margin: 0 auto;
  }
}
/*------------------
STATYSTYKI
------------------*/
.stats-table {
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(var(--color-blue-dark-rgb), 0.3);
  font-weight: 600;
}
.stat-value {
  font-size: 2rem;
  color: var(--color-blue);
  font-weight: 700;
}
.stat-cell {
  border-right: 1px solid #e9ecef;
}
.stat-cell:nth-child(4n) {
  border-right: none;
}
@media (max-width: 1024px) {
  .stat-cell:nth-child(3) .stat-value {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .stats-table {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
  }

  .stat-cell:nth-child(2n) {
    border-right: none;
  }
  .stat-cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .stats-table {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-right: none !important;
    border-bottom: 1px solid #e9ecef !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 24px 0;
  }
  .stat-cell:last-child {
    border-bottom: none !important;
  }
  .stat-value {
    font-size: 1.6rem;
  }
  .stat-cell:nth-child(3) .stat-value {
    font-size: 1.6rem;
  }
}
@media (max-width: 420px) {
  .stat-value {
    font-size: 1.2rem;
  }
  .stat-cell:nth-child(3) .stat-value {
    font-size: 1.2rem;
  }
}
/*------------------
OSTATNIE WPISY
------------------*/
/* Kontener kafelka */
.last-blog .page-content-narrow {
  padding-bottom: 20px;
}
.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}
.post-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  height: 100%; /* Ważne dla równej wysokości */
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgba(var(--color-orange-rgb), 0.15);
}

.post-image {
  border-radius: 10px;
  overflow: hidden;
}
.post-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 15px 0;
  gap: 10px;
  position: relative;
}

.post-date {
  font-size: 0.85rem;
  color: rgba(var(--color-blue-dark-rgb), 1);
  margin-bottom: 10px;
  display: block;
}

.post-card .post-title {
  font-size: 1.2rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
  display: block;
  height: 50px;
  overflow: hidden;
}

.post-title a {
  text-decoration: none;
  color: rgba(var(--color-blue-dark-rgb), 1);
}

.post-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0px;
  line-height: 1.5;
}
.post-card .boxed-link {
  margin: 0;
  height: 10px;
  padding: 20px;
  font-size: 0.7rem;
}

.swiper-button-next,
.swiper-button-prev {
  top: 20px !important;
  color: var(--color-orange) !important;
  border: 1px solid var(--color-orange);
  width: 35px !important;
  height: 35px !important;
  border-radius: 50%;
  display: block;
  background: rgba(var(--color-orange-rgb), 0);
  transition: var(--default-transition);
  padding-left: 2px;
}
.swiper-button-prev {
  left: auto !important;
  right: 55px !important;
  padding-left: 0px;
  padding-right: 2px;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(var(--color-orange-rgb), 1);
  color: var(--color-white) !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 15px !important;
}
.swiper-pagination {
  bottom: -10px !important;
}
.swiper-pagination-bullet {
  background: var(--color-orange) !important;
}
.swiper-pagination-bullet-active {
  background: var(--color-orange) !important;
}
.more-posts .boxed-link {
  margin-top: 30px;
}

/*------------------
O FILMACH
------------------*/
.about-videos {
  background: var(--color-sand);
}
.about-videos .page-content:nth-child(2) {
  background: var(--color-blue-dark);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}
.about-videos-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.about-videos .page-content-narrow p {
  color: var(--color-white);
}
@media (max-width: 768px) {
  .about-videos-container {
    flex-direction: column;
    gap: 20px;
  }
}
/*------------------
NEWSLETTER
------------------*/
.newsletter-content {
  width: 100%;
  height: 250px;
  background: var(--color-magenta);
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  margin-top: 30px;
  background-image: url('../template-images/newsletter_bg.svg');
  background-repeat: no-repeat; /* Nie powielaj obrazka */
  background-position: bottom center;
  background-size: cover;
}
.newsletter-left,
.newsletter-right {
  width: calc(50% - 20px);
  position: relative;
}
.newsletter-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.newsletter-left h3 {
  margin: 0;
  font-size: 0.95rem;
}
.newsletter-left p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 2rem;
  font-weight: 500;
}
.newsletter-baner {
  position: relative;
}
.newsletter-baner .boxed-link {
  margin-top: 0;
  height: 50px;
  position: absolute;
  right: 8px;
  bottom: 8px;
}
.newsletter-baner input {
  height: 66px;
  padding: 0 150px 0 30px;
  width: 100%;
  background: var(--color-white);
  border-radius: 33px;
}
.newsletter-baner input,
.newsletter-baner input:active,
.newsletter-baner input:focus-visible {
  border: 0;
  outline: 0;
}

.small-note {
  position: absolute;
  font-size: 0.8rem;
  text-align: right;
  width: 100%;
  right: 30px;
}
/* Ukrywa ramkę z komunikatem tylko w banerze */
.newsletter-baner .wpcf7-response-output,
.wpcf7-not-valid-tip {
  display: none !important;
}

@media (max-width: 1024px) {
  .newsletter-content {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }
  .newsletter-right,
  .newsletter-left {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .newsletter-left p {
    font-size: 1.4rem;
  }
}
@media (max-width: 580px) {
  .newsletter-left p {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }
  .newsletter-baner {
    height: 140px;
  }
  .newsletter-baner input {
    padding: 0 15px 0 15px;
    font-size: 0.8rem;
  }
}
/*------------------
OBRAZKI TŁA
------------------*/

.img-menzurki {
  position: absolute;
  right: 0px;
  top: -65px;
  width: 350px;
  opacity: 0.5;
}
.img-tablica {
  position: absolute;
  width: 800px;
  bottom: -30px;
  left: 10px;
  opacity: 0.3;
  transform: rotate(-1deg);
}
@media (max-width: 1024px) {
  .img-tablica {
    width: 100%;
    left: 0;
  }
}
@media (max-width: 380px) {
  .img-menzurki {
    width: 100%;
  }
}
