/*
Theme Name: PopularFX Child
Theme URI:  https://wzdrowymciele.pl/
Author:     gnstudio
Author URI: gnstudio.pl
Description: Child theme for the PopularFX WordPress theme
Template:   popularfx
Version:    1.0
License:    GNU General Public License v2 or later
*/

.center-column {
  display: flex;
  align-content: center;
}

.subtitle {
  text-align: center;
  color: #ad1f1fff;
}

#hero-subpage {
  min-height: 250px;
  max-height: 350px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  #hero-subpage {
    min-height: 200px;
  }
}

#mobile-menu ul li a {
  display: flex;
  justify-content: center;
}

.pagelayer-contact-holder {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
}

.pagelayer-contact-holder .pagelayer-contact_item:nth-child(1),
.pagelayer-contact-holder .pagelayer-contact_item:nth-child(2) {
  flex: 1 1 49%;
  box-sizing: border-box;
  background-color: #f5f7fa;
  margin-bottom: 10px;
}

.pagelayer-contact-holder .pagelayer-contact_item input {
  padding: 15px;
}
.pagelayer-contact-holder .pagelayer-contact_item textarea {
  padding: 15px;
}

.pagelayer-contact-holder .pagelayer-contact_item:nth-child(3),
.pagelayer-contact-holder .pagelayer-contact_item:nth-child(4) {
  flex: 100%;
  background-color: #f5f7fa;
  margin-bottom: 10px;
}

/* Buttons */

.button-contact a {
  border-radius: 50px;
}

/* Menu overwrite */

.pagelayer-menu-hover-text .pagelayer-wp_menu-ul > li > a:hover {
  transform: scale(1.2) !important;
}

@media (max-width: 992px) {
  li.menu-item-has-children:hover ul.sub-menu {
    display: block !important;
    width: 100%;
  }

  .pagelayer-menu-hover-text .pagelayer-wp_menu-ul > li > a:hover {
    transform: scale(1) !important;
  }
}

li.menu-item-has-children > a {
  position: relative;
  padding-right: 34px;
}

li.menu-item-has-children > a::after {
  content: "\25be"; /* ▼ */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: transform 0.22s ease;
  pointer-events: none;
}

li.menu-item-has-children:hover > a::after,
li.menu-item-has-children.menu-open > a::after,
li.menu-item-has-children.current-menu-item > a::after {
  transform: translateY(-50%) rotate(180deg);
}

li.menu-item-has-children ul.sub-menu {
  position: absolute !important;
  display: none;
  padding-left: 0;
  margin: 0;
}

@media screen and (max-width: 768px) {
  li.menu-item-has-children ul.sub-menu.open {
  position: relative !important;
}
}


/* Blog */

span.pagelayer-post-info-label.pagelayer-terms {
  background-color: #b11c1c !important;
  padding: 0.5em 1em;
  border-radius: 50px;
}

span.pagelayer-post-info-label.pagelayer-terms:hover {
  background-color: #3f3a64 !important;
  transition: 0.3s background-color ease-in-out;
}

span.pagelayer-post-info-label.pagelayer-terms a {
  color: #fff !important;
  background: none;
}

#blog-list .pagelayer-wposts-col {
  box-shadow: 0 83px 23px 0 transparent, 0 53px 21px 0 rgba(0, 0, 0, 0.01),
    0 13px 13px 0 rgba(0, 0, 0, 0.04), 0 3px 7px 0 rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}

/* Blog base styles */

.blog-post {
  margin: 0 auto;
  font-family: Montserrat, sans-serif;
  line-height: 1.8;
  color: #3f3a64;
}

/* Table of contents styling */

.toc {
  margin-bottom: 3rem;
}

.toc h2 {
  font-size: 40px;
  font-weight: 700;
  color: #b11c1c;
  margin-bottom: 1.5rem;
}

.toc ol {
  padding-left: 1.2rem;
}

.toc li {
  margin-bottom: 1rem;
}

.toc a {
  font-size: 16px;
  font-weight: 500;
  color: #8c89a2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: #b11c1c;
}

/* Heading styles */

.blog-post h2 {
  font-size: 28px;
  color: #3f3a64;
}

.blog-post h3 {
  font-size: 22px;
  margin-top: 2rem;
}

/* Quote styling */

.quote {
  background: #f7f7fb;
  border-left: 4px solid #b11c1c;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* List styles */

.blog-post ul,
.blog-post ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-post li {
  margin-bottom: 0.5rem;
  color: #8c89a2;
}

/* CTA box section */

.cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: #f7f7fb;
  border-radius: 20px;
  box-shadow: 0 13px 13px rgba(0,0,0,0.04);
}

.cta h3 {
  margin-top: 0;
  color: #b11c1c;
}

/* Banner First */

#banner_why-us-desktop {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px;
  background-image: url("assets/banner-bg.webp");
  background-size: cover;
  border-radius: 5px;
}

#banner_why-us-desktop .top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
}

#banner_why-us-desktop .logo-col img {
  display: block;
  margin-top: 10px;
  max-width: 180px;
}

#banner_why-us-desktop .image-col img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#banner_why-us-desktop h4.headline-banner {
  font-family: Poppins, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 800;
  margin: 0.5em 0;
  color: #000;
}

#banner_why-us-desktop h5 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  color: #000;
}

#banner_why-us-desktop h4.headline-banner span {
  color: #b11c1c;
}

#banner_why-us-desktop p {
  margin-top: 0;
  color: #000;
  margin-bottom: 0.5em;
}

#banner_why-us-desktop .benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

#banner_why-us-desktop .benefits-col h3 {
  font-family: Poppins, sans-serif;
  font-size: 2rem;
  line-height: 1.5;
  color: #ffff;
  text-align: right;
}

#banner_why-us-desktop .benefits li {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  color: #fff;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

#banner_why-us-desktop .benefits li::after {
  content: "";
  display: block;
  background-image: url("assets/list-icon.webp");
  background-size: cover;
  width: 20px;
  height: 20px;
}

#banner_why-us-desktop .bottom-row {
  display: flex;
  justify-content: flex-start;
  gap: 80px;
}

#banner_why-us-desktop .contact-btn {
  font-family: "Poppins", sans-serif;
  padding: 5px 40px;
  border: none;
  color: #fff;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-right: 20px;
  transition: background-color 0.3s ease-in-out;
}

#banner_why-us-desktop .btn-phone {
  background-color: #ad1f1f;
}

#banner_why-us-desktop .btn-booksy {
  background-color: #218cac;
}

#banner_why-us-desktop .btn-znanylekarz {
  background-color: #00c3a5;
}

#banner_why-us-desktop .contact-btn:hover {
  background-color: #005bb5;
}

@media screen and (max-width: 1400px) and (min-width: 993px) {
  #banner_why-us-desktop {
    background-image: url("assets/banner-bg-laptop.webp");
  }

  #banner_why-us-desktop .bottom-row {
    gap: 25px;
  }
}

@media screen and (max-width: 992px) {
  #banner_why-us-desktop {
    padding: 15px;
    border-radius: 0;
    background-position: center;
    background-image: url("assets/banner-bg-mobile.webp");
  }

  #banner_why-us-desktop .top-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  #banner_why-us-desktop .logo-col img {
    margin: 0 auto 10px;
    max-width: 140px;
  }

  #banner_why-us-desktop h4.headline-banner {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  #banner_why-us-desktop h5 {
    font-size: 1rem;
    line-height: 1.4;
  }

  #banner_why-us-desktop .image-col img {
    width: 80%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  #banner_why-us-desktop .benefits-col h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #b11c1c;
  }

  #banner_why-us-desktop .benefits li {
    justify-content: center;
    font-size: 0.9rem;
    color: #000;
  }

  #banner_why-us-desktop .bottom-row {
    flex-direction: column;
    gap: 25px;
    text-align: center;
    align-items: center;
    margin-top: 30px;
  }

  #banner_why-us-desktop .bottom-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #banner_why-us-desktop .contact-btn {
    width: 100%;
    margin: 8px 0;
    font-size: 1rem;
    padding: 1em 0.5em;
  }

  #banner_why-us-desktop .contact-btn:hover {
    background-color: #b11c1c;
  }
}

/* Kursy */

#course {
  position: relative;
  padding: 40px 0;
}

#course::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #e0e0e0;
  transform: translateX(-50%);
}

.course-item-right {
  position: relative;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
}

.course-item-right .pagelayer-col-holder {
  flex-direction: row-reverse;
}

.course-item {
  position: relative;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
}

.course-item .pagelayer-col-holder,
.course-item-right .pagelayer-col-holder {
  display: flex;
  align-items: center;
}

.course-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: auto;
}

.course-content {
  width: 45%;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: #2c3e50;
  border: 1px solid #e9ecef;
}

.course-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #b30101;
  margin-bottom: 10px;
}

.course-details {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 15px;
}

.course-description {
  color: #34495e;
  line-height: 1.7;
  margin-bottom: 20px;
}

.course-circle {
  width: 120px;
  height: 120px;
  background: white;
  border: 8px solid #3f3a64;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(63, 58, 100, 0.3);
}

.course-year {
  font-weight: 700;
  font-size: 1.8rem;
  color: #3f3a64;
  line-height: 1;
}

.course-month {
  font-size: 0.85rem;
  color: #b30101;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 4px;
}

.view-certificate-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #f8f9fa;
  color: #3f3a64;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
  cursor: pointer;
}

@media (max-width: 768px) {
  #course::before {
    left: 40px;
  }
}

@media (max-width: 968px) {
  #course::before {
    left: 60px;
  }
}

@media (max-width: 968px) {
  .course-item {
    flex-direction: row !important;
  }
}

@media (max-width: 768px) {
  .course-content {
    width: calc(100% - 110px);
    padding: 20px;
  }
}

@media (max-width: 968px) {
  .course-content {
    width: calc(100% - 110px);
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .course-badge {
    left: 40px;
  }
}

@media (max-width: 968px) {
  .course-badge {
    left: 60px;
  }
}

@media (max-width: 768px) {
  .course-title {
    font-size: 1.2rem !important;
  }

  #course .course-description {
    font-size: 1rem !important;
  }

  #course .course-details {
    font-size: 0.95rem !important;
    color: #7f8c8d;
    margin-bottom: 15px;
  }

  #course .view-certificate-btn {
    font-size: 14px !important;
  }

  #course .course-title {
    font-size: 1.2rem !important;
  }
}

#sticky-mobile
  a.pagelayer-btn-holder.pagelayer-ele-link.pagelayer-btn-primary.pagelayer-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  height: 64px;
  background: #ad2020 !important;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
}

@media screen and (max-width: 441px) {
  #sticky-mobile
    a.pagelayer-btn-holder.pagelayer-ele-link.pagelayer-btn-primary.pagelayer-btn-large {
    height: 54px;
  }
}

/* Blog */

#template-post__content p {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #8c89a2;
  margin-bottom: 20px;
  text-align: justify;
}

#template-post__content h2 {
  color: #ad1f1f;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

#template-post__content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #ad1f1f, transparent);
}

#template-post__content h3 {
  color: #ad1f1f;
  font-size: 22px;
  margin: 30px 0 15px;
  font-weight: 600;
}

#template-post__content .exercise-card h4,
#template-post__content .phase-box h3 {
  margin-top: 0;
}

#template-post__content .exercise-card,
#template-post__content .phase-box {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin: 25px 0;
  border-top: 3px solid #ad1f1f;
}

#template-post__content .exercise-card ul,
#template-post__content .phase-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: 20px;
}

#template-post__content .exercise-card li,
#template-post__content .phase-box li {
  padding-left: 30px;
  margin-bottom: 10px;
  position: relative;
}

#template-post__content .phase-box li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ad1f1f;
  font-weight: 700;
}

#template-post__content .toc {
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
  border-left: 4px solid #ad1f1f;
  padding: 30px;
  margin-bottom: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#template-post__content .toc h2 {
  color: #ad1f1f;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

#template-post__content .toc ol {
  margin: 0;
  padding-left: 20px;
}

#template-post__content .toc li {
  counter-increment: toc-counter;
  margin-bottom: 12px;
  position: relative;
}

#template-post__content .toc li {
  list-style: none;
  position: relative;
  padding-left: 35px;
}

#template-post__content .toc li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  background: #ad1f1f;
  color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 700;
}

#template-post__content .toc a:hover {
  color: #ad1f1f;
  transform: translateX(5px);
}

#template-post__content .toc a {
  color: #8c89a2;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
}

#template-post__content .tips-list {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
}
#template-post__content .tips-list ol {
  padding-left: 20px;
  margin: 0;
}

#template-post__content .tips-list li {
  margin-bottom: 15px;
  padding-left: 10px;
}

#template-post__content .exercise-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

#template-post__content .exercise-card:hover {
  border-color: #ad1f1f;
  box-shadow: 0 5px 20px rgba(173, 31, 31, 0.1);
}

#template-post__content .exercise-card h4 {
  color: #ad1f1f;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

#template-post__content .exercise-card ul {
  list-style: none;
  padding: 0;
}

#template-post__content .exercise-card li {
  padding: 8px 0;
}

#template-post__content .exercise-card li:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

#template-post__content .quote {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-left: 4px solid #ad1f1f;
  padding: 25px 30px;
  margin: 30px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  position: relative;
}

#template-post__content .quote::before {
  content: '"';
  font-size: 60px;
  color: #ad1f1f;
  opacity: 0.2;
  position: absolute;
  top: 45px;
  left: 10px;
  font-family: Georgia, serif;
}

#template-post__content .quote p {
  margin: 0;
  position: relative;
  z-index: 1;
}

.blog-info {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.blog-info .pagelayer-post-info-before {
  font-weight: 800;
  color: #8c89a2;
}

.blog-info .pagelayer-post-info-label {
  font-weight: 500;
}

.pagelayer-post_title {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.blog-title h1 {
  font-size: 36px !important;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  #template-post__content .toc h2 {
    margin-top: 0;
    font-size: 24px;
  }

  #template-post__content .tips-list {
    padding: 20px;
  }

  #template-post__content h2 {
    font-size: 24px;
  }

  #template-post__content h3 {
    font-size: 22px;
  }

  #template-post__content .toc ol {
    padding-left: 0;
  }

  .blog-title h1 {
    font-size: 28px !important;
  }
}

li.menu-item-has-children > a::after {
  content: none !important;
}

@media screen and (max-width: 768px) {
  .pagelayer-wp_menu-ul li {
    border-bottom: 1px solid #80808070;
  }
}

.pagelayer-wp_menu-ul li a {
  display: flex;
  justify-content: space-between !important;
}

.pagelayer-wp_menu-close i {
  right: 0;
}

@media screen and (max-width: 768px) {
  .menu-item-has-children .sub-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-item-has-children .sub-menu.open {
    opacity: 1;
    visibility: visible;
    display: block;
    width: 100%;
  }

  .menu-item-has-children .sub-menu {
    display: none;
  }

  .menu-item-has-children .sub-menu.open {
    display: block;
  }
	#primary-menu ul.sub-menu li>a {
    justify-content: space-between !important;
}
}

.pagelayer-wp-menu-container ul.sub-menu .sub-menu.open {
  background-color: #4d4683;
}

.pagelayer-wp-menu-container ul li.menu-item span.after-icon:before {
  position: absolute;
  right: 0;
  font-size: 22px;
  top: -4px;
}



@media screen and (max-width: 768px) {
  .pagelayer-wp_menu-ul li {
    border-bottom: 1px solid #ededed;
  }

  #primary-menu .pagelayer-wp-menu-container .sub-menu a {
    margin-right: 5px;
}

.pagelayer-wp-menu-container ul li.menu-item span.after-icon {
  height: auto;
  width: 100%;
  position: relative;
  pointer-events: auto;
  line-height: inherit;
  color: inherit;
  font-size: inherit;
  margin-left: 10px;
  padding-left: 15px;
  padding-right: 5px;
  border-left: 1px solid #ededed;
}
}

.pagelayer-wp-menu-container ul.sub-menu li.menu-item span.after-icon:before {
  position: absolute;
  right: 0;
  font-size: 18px;
  top: -4px;
}

@media (max-width: 780px) and (min-width: 361px) {
  .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul {
    top: 12% !important;
    transform: translateY(-8%) !important;
  }
}