/*
Theme Name: Fordent 2025
Theme URI: https://for-dent.pl
Description: Custom theme for Fordent Centrum Medyczne
Version: 2.0
Author: Fordent Team
Text Domain: fordent-2025
*/

/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: "AvenirUltraLight";
  src: url('assets/fonts/AvenirNext-UltraLight.ttf') format('truetype');
  font-weight: 200;
}

@font-face {
  font-family: "AvenirLight";
  src: url('assets/fonts/Avenir-Light.ttf') format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: "AvenirBlack";
  src: url('assets/fonts/Avenir-Black.ttf') format('truetype');
  font-weight: 900;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'AvenirLight', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: rgb(49, 49, 49);
  background-color: #fff;
  overflow-x: hidden;
}

div:focus,
img:focus {
  outline: none !important;
}

:focus {
  outline: none !important;
}

a,
a:focus,
a:hover,
a:visited {
  text-decoration: none;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   HEADER CONTAINER
   ============================================ */
#container {
  z-index: 10;
  background-color: #fff;
  color: #000;
  position: fixed;
  top: 0;
  width: 100%;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Bootstrap-like columns */
.col-12 {
  width: 100%;
  padding: 0 15px;
}

@media (min-width: 992px) {
  .col-lg-2 {
    width: 16.666667%;
    flex: 0 0 16.666667%;
  }
  
  .col-lg-10 {
    width: 83.333333%;
    flex: 0 0 83.333333%;
  }
}

/* ============================================
   LOGO
   ============================================ */
#logoContainer {
  height: 140px;
  transition: height 1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-menu #logoContainer {
  height: 110px;
  transition: height 1s;
}

#logo {
  background: url(assets/fd_logo.svg) no-repeat;
  background-position: center;
  background-size: contain;
  height: 115px;
  width: 140px;
  display: block;
  transition: all 1s;
}

.small-menu #logo {
  height: 100px;
  width: 100px;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
#menu {
  font-family: 'AvenirLight', sans-serif;
  display: flex;
  align-items: center;
}

#menu .router-link-exact-active,
#menu .current-menu-item > a,
#menu .current_page_item > a {
  text-decoration: underline;
}

#menu a:hover {
  text-decoration: underline;
}

#menu a:visited {
  color: #000;
}

#menu > ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

#menu .menu-item {
  color: #000;
  text-align: center;
  cursor: pointer;
  position: relative;
}

#menu .menu-item > a {
  display: block;
  padding: 15px 10px;
  color: #000;
}

.dropdownMenuItem,
.sub-menu a {
  font-size: 19px;
  color: #2b2b2b;
}

.sub-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.visible {
  display: block !important;
}

.hidden {
  display: none;
}

/* Mobile Menu Button */
#menuBtn {
  display: none;
}

/* ============================================
   CONTENT
   ============================================ */
#content {
  display: block;
  padding-top: 120px;
  font-family: 'AvenirLight', sans-serif;
  color: rgb(49, 49, 49);
  font-size: 19px;
  margin-top: 0px;
  min-height: 74vh;
  margin-bottom: 100px;
}
.home #content {
  padding-top: 60px;

}

.content p {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   TEAM MEMBERS
   ============================================ */
/* Zespół page - hero image should show full width on mobile */
.page-id-30 .wp-block-cover__image-background {
  object-fit: contain !important;
  object-position: center center !important;
}

.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
  padding: 0 20px;
}

.team-member {
  text-align: center;
  padding: 30px;
  max-width: 500px;
  width: 100%;
}

.team-member-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-member-name {
  font-family: 'AvenirBlack', sans-serif;
  font-size: 20px;
  margin: 10px 0;
}

.team-member-position {
  font-family: 'AvenirLight', sans-serif;
  font-size: 16px;
  color: #666;
  text-transform: uppercase;
  margin: 5px 0;
}

.team-member-bio {
  font-size: 19px;
  line-height: 1.6;
  margin-top: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: #f5f5f5;
  padding: 40px 0;
  margin-top: 60px;
  font-family: 'AvenirLight', sans-serif;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  margin: 5px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-info a {
  color: #000;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 15px;
  }

  .footer-info p {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
  }
}

@media only screen and (max-device-width: 480px) {
  .site-footer {
    padding: 30px 15px;
  }

  .footer-info p {
    font-size: 16px;
    line-height: 1.8;
    padding: 5px 10px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max 480px)
   ============================================ */
@media only screen and (max-device-width: 480px) {
  #content {
    font-size: 18px;
    padding-top: 180px;
  }

  #logo {
    height: 120px;
    width: 120px;
  }

  .small-menu #logo {
    height: 80px;
    width: 80px;
    transition: all 1s;
  }

  #logoContainer {
    height: 140px;
  }

  #menu .menu-item {
    font-size: 20px !important;
  }

  #menu .menu-item > a {
    font-size: 20px !important;
  }

  .dropdownMenuItem,
  .sub-menu a {
    font-size: 20px !important;
    padding: 15px !important;
  }

  #menu ul {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* ============================================
   RESPONSIVE - TABLET (max 990px)
   ============================================ */
@media (max-width: 990px) {
  #menu.menuInvisible {
    display: none !important;
  }

  #menu.menu-visible {
    display: block !important;
  }

  #menu > ul {
    display: block !important;
    flex-direction: column;
  }

  #menu .menu-item {
    margin-bottom: 20px;
    width: 100%;
    display: block;
  }

  #menu .menu-item > a {
    font-size: 20px;
  }

  .dropdownMenuItem,
  .sub-menu a {
    margin-bottom: 10px;
    display: block;
    padding: 10px 20px;
  }

  #menuBtn {
    cursor: pointer;
    display: block;
    position: absolute;
    right: 0px;
    top: 0px;
    width: 65px;
    height: 65px;
    background: url(assets/menu-button.svg) no-repeat;
    background-size: 40px;
    background-position: center;
    padding: 40px;
    z-index: 1001;
  }

  .sub-menu {
    position: static !important;
    background: #f9f9f9;
    padding: 10px 0;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP (min 991px)
   ============================================ */
@media (min-width: 991px) {
  #menu > ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    transition: margin 1s;
  }

  .small-menu #menu > ul {
    margin-top: 20px;
    transition: margin 1s;
  }

  #menu > ul > li {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #menu .menu-item > a {
    font-size: 16px;
  }

  #menu li:hover > .sub-menu {
    display: block;
  }

  .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
  }

  .sub-menu li {
    width: 100%;
    text-align: center;
  }

  .sub-menu a {
    padding: 8px 20px;
    display: block;
  }
}

@media (min-width: 1200px) {
  #menu .menu-item > a {
    font-size: 22px;
  }

  .services {
    margin-left: -20px;
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-device-width: 480px) {
  #content {
    font-family: 'AvenirLight', sans-serif;
    color: rgb(49, 49, 49);
  }
}

/* ============================================
   GODZINY PRZYJĘĆ PAGE
   ============================================ */
.godziny-container {
  background-color: #565656;
  padding: 50px 20px;
  color: #fff;
  margin-left: -15px;
  margin-right: -15px;
}
.godziny-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 50px;
  flex-wrap: wrap;
}
.godziny-section {
  flex: 1;
  min-width: 300px;
}
.godziny-section h2 {
  color: #fff;
  border-bottom: 1px solid #fff;
  text-align: center;
  padding-bottom: 5px;
  margin-bottom: 30px;
  font-family: 'AvenirLight', sans-serif;
}
.day-container {
  color: #fff;
  font-family: 'AvenirLight', sans-serif;
  font-size: 26px;
  line-height: 2;
  margin-bottom: 15px;
  text-align: center;
}
.hour-container {
  display: flex;
  color: #fff;
  justify-content: center;
  align-items: baseline;
  margin-top: 5px;
}
.hour {
  display: flex;
  align-items: baseline;
}
.hour-big {
  font-size: 32px;
}
.hour-small {
  font-size: 16px;
  letter-spacing: 2px;
  margin-left: 3px;
}
.hour-separator {
  margin: 0 8px;
  font-size: 32px;
}
.tel-container {
  text-align: center;
  margin-top: 50px;
  color: #fff;
}
.tel-label {
  font-size: 22px;
}
.tel-value {
  font-size: 30px;
  color: #fff;
  font-family: 'AvenirBlack', sans-serif;
  margin-top: 10px;
}
.tel-value a {
  color: #fff;
  text-decoration: none;
}

/* Mobile responsive for godziny section */
@media only screen and (max-device-width: 480px) {
  .godziny-section h2 {
    font-size: 22px;
  }

  .day-container {
    font-size: 18px;
  }

  .hour-big {
    font-size: 24px;
  }

  .hour-small {
    font-size: 14px;
  }

  .hour-separator {
    font-size: 24px;
  }

  .tel-label {
    font-size: 18px;
  }

  .tel-value {
    font-size: 22px;
  }
}

/* ============================================
   ENTRY CONTENT
   ============================================ */
.entry-content > p {
  padding-left: 20px;
  padding-right: 20px;
}

/* Page content padding - applies to all paragraphs, headings, and columns after cover blocks */
.entry-content .wp-block-cover ~ p,
.entry-content .wp-block-cover ~ h2,
.entry-content .wp-block-cover ~ h3,
.entry-content .wp-block-cover ~ .wp-block-columns,
.entry-content .wp-block-cover ~ .wp-block-separator,
.entry-content .wp-block-cover ~ .wp-block-buttons,
.entry-content .wp-block-cover ~ ul {
  padding-left: 20px;
  padding-right: 20px;
}

/* Ensure column content has proper spacing */
.wp-block-column > p {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* But paragraphs with inline styles (like background color) need internal padding */
.wp-block-column p[style*="background-color"],
.wp-block-column p[style*="padding"] {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Mobile padding fixes */
@media (max-width: 768px) {
  .entry-content .wp-block-cover ~ p,
  .entry-content .wp-block-cover ~ h2,
  .entry-content .wp-block-cover ~ h3,
  .entry-content .wp-block-cover ~ .wp-block-columns,
  .entry-content .wp-block-cover ~ .wp-block-separator,
  .entry-content .wp-block-cover ~ .wp-block-buttons,
  .entry-content .wp-block-cover ~ ul {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* On mobile, ensure columns stack properly with padding */
  .wp-block-columns {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wp-block-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */
@media (max-width: 768px) {
  /* Homepage hero boxes - make them full width and stack better */
  .wp-block-cover .wp-block-group {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px !important;
  }

  .wp-block-cover__inner-container {
    padding: 20px !important;
  }

  /* Reduce font sizes on mobile */
  .wp-block-cover h2,
  .wp-block-cover h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .wp-block-cover p {
    font-size: 16px !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Entry content padding adjustment */
  .entry-content > p {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Team members on mobile */
  .team-member {
    padding: 20px;
  }

  .team-member-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
  }

  /* Zespół page - hero image on mobile */
  .page-id-30 .wp-block-cover {
    min-height: 300px !important;
  }

  .page-id-30 .wp-block-cover__image-background {
    object-fit: contain !important;
  }

  /* Buttons on mobile */
  .wp-block-button__link {
    font-size: 14px !important;
    padding: 10px 20px !important;
  }

  /* Prevent text overflow on mobile */
  body, p, div, span, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Blog posts styling */
.wp-block-query {
  padding: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

.wp-block-post-template {
  list-style: none;
  padding: 0;
}

.wp-block-post-title a {
  color: #1b0037;
  text-decoration: none;
  font-family: 'AvenirBlack', sans-serif;
}

.wp-block-post-title a:hover {
  color: #565656;
}

.wp-block-post-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.wp-block-post-excerpt {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .wp-block-query {
    padding: 15px;
  }
  
  .wp-block-post-title {
    font-size: 24px !important;
  }
  
  /* Cover block heading on mobile */
  .wp-block-cover h1 {
    margin-left: 20px !important;
    font-size: 32px !important;
  }
}

/* Override WordPress default post styles for consistency */
.wp-block-post-template > li {
  margin-bottom: 40px;
}

.wp-block-post-template .wp-block-post-title {
  font-size: 32px !important;
  line-height: 1.3;
  margin-bottom: 10px;
}

.wp-block-post-template .wp-block-post-title h2 {
  font-size: 32px !important;
  margin: 0;
}

.wp-block-post-template .wp-block-post-date {
  font-size: 14px !important;
  color: #666;
  margin-bottom: 15px;
}

.wp-block-post-template .wp-block-post-excerpt p {
  font-size: 16px !important;
  line-height: 1.6;
  color: rgb(49, 49, 49);
}

.wp-block-separator {
  margin: 30px 0;
  border-top: 1px solid #ccc;
}

/* Aktualności page - Custom post layout */
.page-id-33 .wp-block-query {
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

.page-id-33 .wp-block-post-template {
  padding: 0 15px;
  display: block !important;
}

.page-id-33 .wp-block-post-template > li {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-bottom: 80px;
  border-bottom: 1px solid #ccc;
  list-style: none;
}

.page-id-33 .wp-block-post-template > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Date section - left side */
.page-id-33 .wp-block-post-template .wp-block-post-date,
.page-id-33 .wp-block-post-template .wp-block-post-title {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
  padding-left: calc(8.333333% + 20px);
  text-align: left;
  order: 1;
}

.page-id-33 .wp-block-post-template .wp-block-post-date {
  font-size: 16px !important;
  font-weight: normal;
  margin-bottom: 5px;
  margin-top: 8px;
  color: rgb(49, 49, 49);
  text-transform: uppercase;
}

.page-id-33 .wp-block-post-template .wp-block-post-title {
  margin-top: 30px;
  margin-bottom: 0;
}

.page-id-33 .wp-block-post-template .wp-block-post-title h2,
.page-id-33 .wp-block-post-template .wp-block-post-title h2 a {
  font-size: 22px !important;
  font-weight: normal;
  font-family: 'AvenirLight', sans-serif;
  color: rgb(49, 49, 49);
  text-decoration: none;
  text-transform: uppercase;
}

/* Content section - right side */
.page-id-33 .wp-block-post-template .wp-block-post-excerpt {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
  order: 2;
}

.page-id-33 .wp-block-post-template .wp-block-post-excerpt p {
  font-size: 16px !important;
  white-space: pre-line;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 15px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Mobile adjustments for blog posts */
@media (max-width: 768px) {
  .wp-block-post-template .wp-block-post-title {
    font-size: 24px !important;
  }

  .wp-block-post-template .wp-block-post-title h2 {
    font-size: 24px !important;
  }

  .wp-block-post-template .wp-block-post-excerpt p {
    font-size: 15px !important;
  }
}

/* ============================================
   AKTUALNOŚCI PAGE - HERO SECTION
   ============================================ */
.contentHeaderImageContainer {
  position: relative;
  margin-bottom: 50px;
}

.contentHeaderImage {
  width: 100%;
  height: auto;
  display: block;
}

#aktu {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  font-size: 46px;
  font-family: 'AvenirLight', sans-serif;
  margin: 0;
}

/* Aktualności page - Gutenberg blocks styling */
.page-id-33 .wp-block-cover {
  margin-bottom: 50px;
  margin-left: -15px;
  margin-right: -15px;
  width: calc(100% + 30px);
}

.page-id-33 .wp-block-cover h1 {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff !important;
  font-size: 46px !important;
  font-family: 'AvenirLight', sans-serif;
  margin: 0 !important;
  text-align: left !important;
}

.page-id-33 .wp-block-cover__inner-container {
  padding: 0 !important;
  max-width: none !important;
}

/* ============================================
   AKTUALNOŚCI PAGE - ARTICLE LAYOUT
   ============================================ */

/* Container for all articles */
.aktualnosci-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px 60px;
}

/* Each article uses CSS Grid for two-column layout */
.aktualnosci-article {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

/* Date and title section (left column) */
.aktualnosci-article-date {
  text-align: left;
}

.aktualnosci-article-date .date-day-month,
.aktualnosci-article-date .date-year {
  display: block;
  font-size: 16px;
  font-weight: normal;
  font-family: 'AvenirLight', sans-serif;
  line-height: 1.4;
  color: #333;
}

.aktualnosci-article-date .article-title {
  margin-top: 25px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: normal;
  font-family: 'AvenirLight', sans-serif;
  line-height: 1.3;
  color: #000;
}

/* Content section (right column) */
.aktualnosci-article-content {
  padding-top: 0;
}

.aktualnosci-article-content p {
  font-size: 16px;
  white-space: pre-line;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-top: 0;
}

/* Separator line spans full width */
.article-separator {
  grid-column: 1 / -1;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 60px 0 40px;
}

/* ============================================
   AKTUALNOŚCI PAGE - RESPONSIVE
   ============================================ */

/* Tablet - narrower left column */
@media (max-width: 900px) {
  .aktualnosci-container {
    padding: 30px 25px 50px;
  }

  .aktualnosci-article {
    grid-template-columns: 160px 1fr;
    gap: 30px;
  }
}

/* Mobile - stack vertically */
@media (max-width: 700px) {
  .aktualnosci-container {
    padding: 25px 20px 40px;
  }

  .aktualnosci-article {
    display: block;
  }

  .aktualnosci-article-date {
    margin-bottom: 20px;
  }

  .aktualnosci-article-date .date-day-month,
  .aktualnosci-article-date .date-year {
    font-size: 15px;
  }

  .aktualnosci-article-date .article-title {
    margin-top: 15px;
    font-size: 18px;
  }

  .aktualnosci-article-content p {
    font-size: 15px;
    text-align: left;
  }

  .article-separator {
    margin: 40px 0 30px;
  }

  #aktu {
    bottom: 30px;
    left: 40px;
    font-size: 46px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .aktualnosci-container {
    padding: 20px 15px 30px;
  }

  #aktu {
    bottom: 20px;
    left: 20px;
    font-size: 32px;
  }

  .aktualnosci-article-date .article-title {
    font-size: 17px;
  }
}

/* ============================================
   CENNIK PAGE
   ============================================ */
.cennik-page .entry-header {
  display: none;
}

.cennik-page .contentHeaderImageContainer {
  position: relative;
  margin-bottom: 50px;
  margin-left: -15px;
  margin-right: -15px;
}

.cennik-page .contentHeaderImage {
  width: 100%;
  max-height: 700px;
  height: auto;
  display: block;
}

#cenn {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #08051f;
  font-size: 46px;
  font-family: 'AvenirLight', sans-serif;
  z-index: 1;
}

.cennik-page .priceList {
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 20px;
  min-height: 350px;
}

/* Pricing Tabs */
.pricing-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid #dcdfe6;
}

.tab-button {
  background: none;
  border: none;
  font-size: 26px;
  font-family: 'AvenirLight', sans-serif;
  padding: 15px 30px;
  cursor: pointer;
  color: #000;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}

.tab-button:hover {
  color: #884290;
}

.tab-button.active {
  color: #884290;
  border-bottom: 2px solid #884290;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Price Categories */
.price-category {
  margin-bottom: 20px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 15px 0;
  font-size: 26px;
  font-family: 'AvenirLight', sans-serif;
}

.category-header:hover {
  color: #884290;
}

.expand-icon {
  font-size: 16px;
  transition: transform 0.3s;
  display: inline-block;
}

.category-name {
  font-weight: normal;
}

.category-items {
  padding-left: 30px;
  display: block;
}

/* Price Items */
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  margin-top: 20px;
  margin-bottom: 10px;
  min-height: 26px;
  white-space: normal;
}

.item-details {
  flex: 1;
  font-size: 26px;
  font-family: 'AvenirLight', sans-serif;
  padding-right: 20px;
}

.item-price {
  font-size: 26px;
  font-family: 'AvenirLight', sans-serif;
  white-space: nowrap;
}

/* MediRaty Banner */
.cennik-page .medirates {
  display: none;
  margin-left: 20px;
  margin-top: 25px;
  margin-bottom: 50px;
}

.cennik-page .medirates img {
  max-width: 100%;
  height: auto;
}

/* Mobile Responsive */
@media only screen and (max-device-width: 480px) {
  .cennik-page .medirates img {
    max-width: 100%;
    height: auto;
  }

  .tab-button {
    font-size: 18px;
    padding: 12px 20px;
  }

  .category-header {
    font-size: 20px;
  }

  .item-details,
  .item-price {
    font-size: 18px;
  }

  .price-item {
    margin-bottom: 15px;
  }

  #cenn {
    font-size: 32px;
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 768px) {
  .tab-button {
    font-size: 20px;
    padding: 10px 15px;
  }

  .category-header {
    font-size: 20px;
  }

  .item-details,
  .item-price {
    font-size: 18px;
  }

  .price-item {
    flex-direction: column;
    gap: 5px;
  }

  .item-price {
    padding-left: 0;
  }
}

/* ============================================
   KONTAKT PAGE - MAP STYLING
   ============================================ */
.page-id-32 .wp-block-columns .wp-block-column:nth-child(2) {
  padding-right: 40px;
}

/* #companyMap iframe,
.wp-block-column iframe {
  margin-top: -60px;
} */

@media (max-width: 990px) {
  .page-id-32 .wp-block-columns .wp-block-column:nth-child(2) {
    padding-right: 15px;
    padding-left: 15px;
  }

  #companyMap iframe,
  .wp-block-column iframe {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 30px;
  }
}

/* ============================================
   MAIN PAGE (Homepage)
   ============================================ */
#mainPage {
  padding-top: 0;
}

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

/* Header Image Boxes */
.headerImg {
  width: 100%;
  height: 570px;
  opacity: 0.85;
  position: relative;
}

.headerBox {
  height: 14em;
  background-color: #e6e6e6;
  display: block;
  position: absolute;
  margin-top: 150px;
  padding: 40px;
  opacity: 0.9;
  width: 450px;
}

.headerBox p {
  font-size: 22px;
  text-align: justify;
  margin: 0;
}

.headerBox p:first-child {
  font-size: 22px;
  margin-bottom: 10px;
}

.headerBox p:nth-child(2) {
  font-size: 18px;
}

/* Stomatologia Section */
.mainPageStomatologyImg {
  background: url('assets/images/stomatologia-pyrzyce.jpeg') no-repeat;
  background-size: 1274px 570px;
}

.mainPageStomatologyImg .headerBox {
  padding: 36px;
  position: absolute;
  right: 100px;
}

/* Dermatologia Section */
.mainPageDermatologyImg {
  background: url('assets/images/dermatologia-pyrzyce.jpg') no-repeat;
  background-size: 2000px 570px;
}

.mainPageDermatologyImg .headerBox {
  left: 100px;
}

/* Company Info Section */
#companyInfo {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

#companyDetails {
  padding-left: 8.333333%;
}

#companyDetails p {
  margin-top: 5px;
  margin-bottom: 5px;
}

#companyDetails a {
  color: rgb(49, 49, 49);
  text-decoration: none;
}

#companyDetails a:hover {
  text-decoration: underline;
}

#companyMap {
  display: flex;
  justify-content: center;
}

#companyMap iframe {
  max-width: 100%;
  border: 0;
}

/* Main Page Responsive - Mobile */
@media only screen and (max-width: 767px) {
  /* Make hero sections taller to accommodate content */
  .headerImg {
    height: auto;
    min-height: 400px;
    background-size: cover !important;
    background-position: center !important;
  }

  .mainPageStomatologyImg {
    background-position: center right !important;
  }

  .mainPageDermatologyImg {
    background-position: center left !important;
  }

  /* Make headerBox responsive */
  .headerBox {
    position: relative !important;
    width: 90% !important;
    max-width: 350px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    margin: 60px auto !important;
    padding: 25px !important;
    height: auto !important;
    min-height: auto;
  }

  .headerBox p:first-child {
    font-size: 20px !important;
    margin-bottom: 12px;
  }

  .headerBox p:nth-child(2) {
    font-size: 16px !important;
    line-height: 1.5;
  }

  /* Company info section */
  #companyInfo {
    margin-top: 40px;
  }

  #companyDetails {
    text-align: center;
    margin-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }

  #companyDetails p {
    font-size: 16px;
  }

  #companyMap {
    width: 100%;
    padding: 0 15px;
  }

  #companyMap iframe {
    width: 100% !important;
    height: 350px !important;
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }
}

/* Very small mobile devices */
@media only screen and (max-width: 480px) {
  .headerImg {
    min-height: 380px;
  }

  .headerBox {
    max-width: 90%;
    padding: 20px !important;
    margin: 40px auto !important;
  }

  .headerBox p:first-child {
    font-size: 18px !important;
  }

  .headerBox p:nth-child(2) {
    font-size: 15px !important;
  }

  #companyDetails p {
    font-size: 15px;
  }

  #companyMap iframe {
    height: 300px !important;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 990px) {
  .headerImg {
    height: 500px;
  }

  .headerBox {
    width: 380px;
    padding: 30px;
  }

  .mainPageStomatologyImg .headerBox {
    right: 50px;
  }

  .mainPageDermatologyImg .headerBox {
    left: 50px;
  }

  #companyDetails {
    text-align: center;
    margin-bottom: 30px;
    padding-left: 15px;
    width: 100%;
  }

  #companyMap {
    width: 100%;
  }

  #companyMap iframe {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
    max-width: 550px;
  }
}

@media (min-width: 1330px) {
  .headerImg.mainPageStomatologyImg {
    background-size: 100%;
    height: 570px;
  }
}

/* ============================================
   NOTIFICATION BAR
   ============================================ */
.notification-bar {
  padding: 5px;
  width: 100%;
  background: #bf8eae;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 190px;
  left: 0;
  right: 0;
  z-index: 9;
  transition: top 1s ease-in-out;
}

.notification-bar-content {
  text-align: center;
  margin-bottom: 0px;
  word-break: break-word;
  font-family: 'AvenirLight', sans-serif;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.notification-bar-content:hover {
  color: #fff!important;
}

.notification-bar-content a {
  color: #fff!important;
  text-decoration: underline;
}

/* Adjust notification bar position when menu shrinks */
.small-menu .notification-bar {
  top: 110px !important;
  transition: top 1s ease-in-out;
}

/* Mobile responsive for notification bar */
@media only screen and (max-device-width: 480px) {
  .notification-bar {
    padding: 12px;
    top: 140px;
  
  }

  .notification-bar-content {
      font-size:16px;
  }

  /* On mobile, keep position fixed regardless of scroll */
  .small-menu .notification-bar {
    top: 295px;
  }
}

@media (max-width: 990px) and (min-width: 481px) {
  .notification-bar {
    top: 140px;
  }

  /* On tablet, keep position fixed regardless of scroll */
  .small-menu .notification-bar {
    top: 140px;
  }
}

@media (min-width: 991px) {
  .notification-bar {
    top: 150px;
    transition: top 1s ease-in-out;
  }

  .small-menu .notification-bar {
    top: 120px !important;
    transition: top 1s ease-in-out;
  }
}

/* When notification bar is active, add margin to sibling site-content */
.notification-bar + .site-content {
  margin-top: 25px !important;
}

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