/*
 Theme Name:   Denticare Child
 Theme URI:    http://denticare.bold-themes.com
 Description:  Denticare child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     denticare
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  denticare-child
*/


/* Theme customization starts here
-------------------------------------------------------------- */

/* Before / After Images ============================================*/
.bt_bb_before_after_image-left-arrow:before, .bt_bb_before_after_image-left-arrow:after{
    content: '';
    width: 18px !important;
    height: 18px !important;
    position: absolute;
    border: solid #0e54ae;
    border-width: 0 4px 4px 0;
    top: 50%;
}
.bialy_tekst p, .bialy_tekst .bt_bb_service_content_text, .bialy-tekst .bt_bb_service_content_title {
    color: #fff !important;
}
.sekcja_mobile .bt_bb_service_content_text p, .sekcja_mobile .bt_bb_service_content_title a, .sekcja_mobile .bt_bb_service_content {
    color: #fff !important;
}
/*p#breadcrumbs span {
    font-size: 9px !important;
    font-weight: 200 !important;
}*/
.bt_bb_before_after_image-left-arrow:before{
    display: block;
    right: 20px;
    transform: translatey(-50%) rotate(135deg);
}
.bt_bb_before_after_image-left-arrow:after{
    display: block;
    left: 20px;
    transform: translatey(-50%) rotate(-45deg);
}
.bt_bb_before_after_image .bt_bb_before_after_image-container img{
    width: 100%;
}
.bt_bb_before_after_image .bt_bb_before_after_image_block {
    max-width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .8);
    color: inherit;
    padding: 20px;
    text-align: left;

    -webkit-transition: height .3s ease;
    -moz-transition: height .3s ease;
    transition: height .3s ease;
}
.invisible{
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;

    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}
.btn-info-close{
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    background: unset;
    border: unset;
}
@media (max-width: 768px){
    .bt_bb_before_after_image .bt_bb_before_after_image_block {
        max-width: 100%;
        position: absolute;
    }
}
.bt_bb_before_after_image{
    margin-bottom: 1.5rem;
}
/* END Before / After Images ============================================*/
/*---------------------------============================================*/

.section-hero .bt_bb_port{
    padding-top: 1em !important;
}

@media (max-width: 1200px) {
    .topBarInLogoArea{
        display: none;
    }
}
@media (min-width: 1200px) {
.topBarInLogoAreaCell.mobileBar{
    display: none;
}
}

/*.home .bt_bb_content_slider_item.bt_bb_content_slider_item_responsive_overlay:before{
    display: none;
}*/

/*
.bt_bb_content_slider_item[class*="light_solid"]:before{
    background-color: rgba(255,255,255,.8);
    width: 1000px;
    height: 1000px;
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}*/


/* Fix speed loading */
.btSearchInner {
	display:none;
}
.slick-slider:not(.slick-initialized) {
    overflow: visible;
}
.slick-slider:not(.slick-initialized) #slm1 {
    opacity: 1;
    width: 100%;
}
/* End Fix speed loading */
.naglowek_stopki {
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 15% !important;
    padding-right: 15% !important;
    padding-top: 5% !important;
    padding-bottom: 5% !important;
}
.stopka_teksty {
    padding-left: 15% !important;
    padding-right: 15% !important;
}
.bt_bb_text.tekst_szacunkowy p {
    font-style: italic;
    color: #000000;
    text-transform: uppercase;
    font-weight: 300 !important;
    font-size: 0.60rem !important;
}
.statystyka {
    padding-top: 20px;
    padding-bottom: 20px;
}
.naglowek h1 span.bt_bb_headline_content span,
.naglowek h2 span.bt_bb_headline_content span,
.naglowek h3 span.bt_bb_headline_content span {
    font-size: 35px !important;
    font-weight: 500 !important;
    color: #fff;
    background-color: #0d54ae !important;
    padding: 20px 15px;
    border-radius: 10px 10px 10px 10px;
    text-align: center !important;
}

@media (max-width: 768px) {
  .naglowek h1 span.bt_bb_headline_content span,
  .naglowek h2 span.bt_bb_headline_content span,
  .naglowek h3 span.bt_bb_headline_content span {
      font-size: 28px !important;
      font-weight: 500 !important;
      color: #fff;
      background-color: #0d54ae !important;
      padding: 20px 15px;
      border-radius: 10px 10px 10px 10px;
      text-align: center !important;
  }
}


/* === A.2 - Fix mobile nav: button overlap & clickability === */
@media (max-width: 1199px) {
.btVerticalHeaderTop .btLogoArea .logo {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
.btVerticalHeaderTop .bt_bb_cf7_row {
flex-shrink: 0;
}
.btVerticalHeaderTop .bt_bb_cf7_element a {
display: inline-block;
z-index: 10;
position: relative;
}
.btVerticalHeaderTop button.wpcf7-submit {
font-size: 0.95em !important;
font-weight: 700 !important;
padding: 0.9em 1.8em !important;
white-space: nowrap;
letter-spacing: 0.5px;
box-shadow: 0 3px 8px rgba(181, 63, 175, 0.35);
text-transform: uppercase;
}
}

/* === A.10 - Fix footer mobile alignment === */
@media (max-width: 768px) {
.btSiteFooter .port,
.btSiteFooter .bt_bb_row,
.btSiteFooter .bt_bb_column {
text-align: center !important;
}
.btSiteFooter .bt_bb_row_holder {
justify-content: center !important;
}
.btSiteFooter .bt_bb_column_content {
align-items: center !important;
}
}

/* === A.3/C.1 - Hero images mobile: center-right crop === */
@media (max-width: 991px) {
.bt_bb_content_slider_item {
background-position: center right !important;
}
.home .bt_bb_content_slider .slick-slide img {
object-position: center right !important;
}
}

/* === A.8 - Bigger CTA Skontaktuj sie z nami === */
.bt_bb_button.guzik_umow a,
a.bt_bb_link[href*="kontakt"] {
font-size: 1.1em;
}
@media (max-width: 768px) {
.bt_bb_button.guzik_umow {
width: 100% !important;
}
.bt_bb_button.guzik_umow a {
padding: 1em 2em !important;
font-size: 1.15em !important;
font-weight: 700 !important;
}
}

/* === A.4 - Conversion Bar === */
.jmc-conversion-bar {
background-color: #0d54ae;
padding: 20px 0;
width: 100%;
}
.jmc-conversion-bar__inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
gap: 40px;
padding: 0 20px;
flex-wrap: wrap;
}
.jmc-conversion-bar__phone {
display: flex;
flex-direction: column;
align-items: center;
}
.jmc-conversion-bar__label {
color: #fff;
font-size: 1.1em;
font-weight: 400;
margin-bottom: 4px;
}
.jmc-conversion-bar__number {
color: #fff !important;
font-size: 1.8em;
font-weight: 700;
text-decoration: none;
letter-spacing: 1px;
}
.jmc-conversion-bar__number:hover {
color: #e8b4d9 !important;
}
.jmc-conversion-bar__btn {
display: inline-block;
background-color: #b53faf;
color: #fff !important;
padding: 14px 36px;
border-radius: 8px;
font-size: 1.2em;
font-weight: 700;
text-decoration: none;
text-transform: none;
transition: background-color 0.3s ease;
}
.jmc-conversion-bar__btn:hover {
background-color: #9a3595;
color: #fff !important;
}
@media (max-width: 768px) {
.jmc-conversion-bar__inner {
flex-direction: column;
gap: 15px;
}
.jmc-conversion-bar__number {
font-size: 1.5em;
}
.jmc-conversion-bar__btn {
width: 100%;
text-align: center;
padding: 16px 20px;
}
}

/* === A.11 - Ensure specialty icons and titles are clickable === */
.bt_bb_service[data-bt_bb_service_url] {
cursor: pointer;
}
.bt_bb_service_content_title a,
.bt_bb_service .bt_bb_icon_holder {
pointer-events: auto !important;
cursor: pointer !important;
}
.bt_bb_service a {
display: block;
text-decoration: none;
}

/* === D.4 - Hover states for interactive elements === */
.bt_bb_service:hover {
transform: translateY(-3px);
transition: transform 0.3s ease;
}
.bt_bb_service .bt_bb_icon_holder:hover {
opacity: 0.85;
transition: opacity 0.2s ease;
}
.bt_bb_button a:hover {
opacity: 0.9;
transform: translateY(-1px);
transition: all 0.2s ease;
}
.bt_bb_card:hover,
.btGrid .btGridItem:hover {
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: box-shadow 0.3s ease;
}
a:hover {
transition: color 0.2s ease;
}

/* === A.7 - Text overlay on doctor photo - move down === */
@media (max-width: 768px) {
.bt_bb_content_slider_item .bt_bb_column_inner .bt_bb_text {
margin-top: auto;
}
}

/* === Fix: Center Umow Wizyte button in mobile header === */
@media (max-width: 1199px) {
.btVerticalHeaderTop {
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 10px !important;
padding-right: 10px !important;
}
.btVerticalHeaderTop .btLogoArea {
flex: 1;
display: flex;
justify-content: center;
}
.btVerticalHeaderTop .btLogoArea .logo {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
}
.btVerticalHeaderTop .bt_bb_cf7_row.zero-padding {
order: 1;
flex: 0 0 auto;
}
.btVerticalHeaderTop .btLogoArea .logo > span {
order: 2;
flex: 0 0 auto;
}
.btVerticalHeaderTop button.wpcf7-submit {
padding: 0.7em 1.4em !important;
font-size: 0.95em !important;
font-weight: 700 !important;
white-space: nowrap;
letter-spacing: 0.5px;
box-shadow: 0 3px 8px rgba(181, 63, 175, 0.35);
text-transform: uppercase;
}
}

/* === 0.6 - Move quote text lower on doctor photo === */
.pan_profesor .bt_bb_column:first-child {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.pan_profesor .btAccentQuote {
margin-top: auto;
}
.pan_profesor .bt_bb_separator.mobile-large {
flex-grow: 1;
}

/* === 0.6 - Push quote further down === */
.pan_profesor .bt_bb_column_content {
padding-top: 15em !important;
}
@media (max-width: 991px) {
.pan_profesor .bt_bb_column_content {
padding-top: 12em !important;
}
}

/* === 0.7 - Bigger CTA button in Skontaktuj/Godziny section + reduce spacing === */
#godz-otwarcia .bt_bb_button a,
.kontakt-box .bt_bb_button a {
padding: 1.2em 2.5em !important;
font-size: 1.2em !important;
font-weight: 700 !important;
}
#godz-otwarcia .bt_bb_separator[class*="top_spacing_normal"],
#godz-otwarcia .bt_bb_separator[class*="bottom_spacing_normal"],
.kontakt-box .bt_bb_separator[class*="top_spacing_normal"],
.kontakt-box .bt_bb_separator[class*="bottom_spacing_normal"] {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-top: 5px !important;
padding-bottom: 5px !important;
}

.bt_bb_button a[href*="felgdent"],
.bt_bb_button a[href*="felg.app"] {
padding: 1em 2em !important;
font-size: 1.15em !important;
font-weight: 700 !important;
}

/* === 0.7 fix - Reduce spacing in Godziny otwarcia section === */
#godz-otwarcia .bt_bb_separator {
padding-top: 0 !important;
padding-bottom: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
min-height: 0 !important;
height: 0 !important;
}
#godz-otwarcia .bt_bb_working_hours {
margin-top: -10px !important;
}
#godz-otwarcia .bt_bb_button {
margin-top: 20px !important;
margin-bottom: 10px !important;
}

/* === Reduce gap before working hours table === */
#godz-otwarcia .bt_bb_working_hours {
margin-top: -20px !important;
}

/* === Blue overlay + blur on footer banner === */
.naglowek_stopki {
position: relative;
background-color: transparent !important;
}
.naglowek_stopki > .bt_bb_background_image_holder_wrapper {
position: absolute;
inset: 0;
z-index: 0;
}
.naglowek_stopki > .bt_bb_background_image_holder_wrapper::after {
content: '';
position: absolute;
inset: 0;
background: rgba(14, 36, 108, 0.78);
}
.naglowek_stopki > .bt_bb_port {
position: relative;
z-index: 1;
}

/* === B.1/B.2 - Oferta service cards === */
.bt_bb_highlight .bt_bb_headline_tag a {
text-decoration: underline !important;
text-underline-offset: 3px;
text-decoration-thickness: 2px;
}
.bt_bb_highlight .bt_bb_headline_tag a:hover {
text-decoration-thickness: 3px;
}

@media (max-width: 768px) {
.bt_bb_highlight.bt_bb_column[data-width="3"] {
flex-basis: 50% !important;
max-width: 50% !important;
margin-bottom: 10px !important;
overflow: hidden;
}
.bt_bb_highlight > .bt_bb_column_content {
padding: 0 !important;
position: relative;
height: 180px;
overflow: hidden;
}
.bt_bb_highlight .bt_bb_image {
margin: 0 !important;
width: 100% !important;
}
.bt_bb_highlight .bt_bb_image > a,
.bt_bb_highlight .bt_bb_image > a > picture {
display: block;
width: 100%;
height: 180px;
}
.bt_bb_highlight .bt_bb_image img {
width: 100% !important;
height: 180px !important;
object-fit: cover !important;
display: block;
}
.bt_bb_highlight .bt_bb_image_content {
display: none !important;
}
.bt_bb_highlight .bt_bb_headline {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 2;
background: linear-gradient(transparent, rgba(0,0,0,0.7));
padding: 25px 8px 8px 8px !important;
margin: 0 !important;
}
.bt_bb_highlight .bt_bb_headline_tag {
font-size: 1.05em !important;
line-height: 1.2;
margin: 0;
}
.bt_bb_highlight .bt_bb_headline_tag a {
color: #fff !important;
text-decoration: underline !important;
text-decoration-thickness: 1px;
}
.bt_bb_row:has(.bt_bb_highlight) {
margin-top: 25px;
}
.bt_bb_highlight .bt_bb_text,
.bt_bb_highlight .bt_bb_icon,
.bt_bb_highlight .bt_bb_separator {
display: none !important;
}
}

@media (max-width: 370px) {
.bt_bb_highlight.bt_bb_column[data-width="3"] {
flex-basis: 50% !important;
max-width: 50% !important;
}
.bt_bb_highlight > .bt_bb_column_content {
height: 140px;
}
.bt_bb_highlight .bt_bb_image > a,
.bt_bb_highlight .bt_bb_image > a > picture {
height: 140px;
}
.bt_bb_highlight .bt_bb_image img {
height: 140px !important;
}
}

/* === B.2 - Underline on service titles on /oferta/ === */
.bt_bb_highlight .bt_bb_headline a {
text-decoration: underline;
text-underline-offset: 3px;
}
.bt_bb_highlight .bt_bb_headline a:hover {
text-decoration-color: #b53faf;
}

/* ============================================================
SEKCJA Z - Strona /zespol/ i podstrony specjalistow
============================================================ */

/* --- Z.0a: Biale tlo navbar na wszystkich podstronach --- */
.btTransparentDarkHeader .mainHeader,
.btTransparentLightHeader .mainHeader,
body .mainHeader,
body .mainHeader .mainHeaderInner,
.btTransparentDarkHeader .btVerticalHeaderTop {
background-color: #fff !important;
}
.btTransparentDarkHeader .menuPort nav ul li a,
.btTransparentDarkHeader .btVerticalHeaderTop .topBarInLogoArea a {
color: #333 !important;
}

/* --- Z.0b: Redukcja bialego pola nad hero --- */
.page-id-314 .btContentWrap.btClear {
padding-top: 0 !important;
}

/* --- Z.0c: Hero /zespol/ - rozmiar, tekst, kolory --- */
#zespol.tlo.bt_bb_full_screen {
height: 75vh !important;
min-height: 500px !important;
}
#zespol.tlo .bt_bb_cell {
vertical-align: bottom !important;
}
#zespol.tlo .bt_bb_headline h1 {
font-size: 2.5rem !important;
text-shadow: 2px 2px 6px rgba(0,0,0,.6);
margin-bottom: 30px;
}
#zespol.tlo .bt_bb_headline h1 .bt_bb_headline_content {
color: #b53faf !important;
}
#zespol.tlo .bt_bb_headline h1 .bt_bb_headline_content small {
color: #fff !important;
text-shadow: 1px 1px 4px rgba(0,0,0,.5);
}
#zespol.tlo .bt_bb_headline h1 .bt_bb_headline_content small:last-of-type {
color: #0d54ae !important;
}
#zespol.tlo .bt_bb_background_image_holder,
#zespol.tlo .bt_bb_background_image_holder_wrapper {
background-size: cover !important;
background-position: top !important;
}

/* --- Z.0c+: Wieksza czcionka To ludzie... --- */
.page-id-314 .bt_bb_section:nth-of-type(2) .bt_bb_text p {
font-size: 1.2em !important;
line-height: 1.6;
}

/* --- Z.0e: Redesign kafelkow --- */
.page-id-314 .btIcoFacebook.bt_bb_icon.bt_bb_style_lightfilled {
display: none !important;
}
.page-id-314 .bt_bb_column[data-width="3"] > .bt_bb_column_content,
.page-id-314 .bt_bb_column[data-width="2.4"] > .bt_bb_column_content {
text-align: center;
}
.page-id-314 .bt_bb_headline .bt_bb_headline_content::after {
background-color: #0d54ae !important;
}
.page-id-314 .bt_bb_headline_subheadline {
color: #0d54ae !important;
font-weight: 600;
}
.page-id-314 .umow_wizyte .bt_bb_button_text {
font-weight: 700 !important;
}
.page-id-314 .umow_wizyte .bt_bb_icon_holder {
display: none !important;
}

/* --- Z.1: Ujednolicenie rozmiaru kafelkow i zdjec --- */
.page-id-314 .bt_bb_image.bt_bb_shape_square > a {
display: block;
height: 300px;
overflow: hidden;
}
.page-id-314 .bt_bb_image.bt_bb_shape_square > a > picture,
.page-id-314 .bt_bb_image.bt_bb_shape_square > a > picture > img,
.page-id-314 .bt_bb_image.bt_bb_shape_square > a > img,
.page-id-314 .bt_bb_image.bt_bb_shape_square img {
width: 100% !important;
height: 300px !important;
object-fit: cover !important;
object-position: top center !important;
}

/* --- Z.5: Naprawa sliderow certyfikatow --- */
.certificats .slick-slide img {
object-fit: contain !important;
max-height: 300px;
width: auto !important;
margin: 0 auto;
}
.certificats .slick-track {
display: flex;
align-items: center;
}

/* --- Z.6: Ukrycie formularza kontaktowego na stronach specjalistow --- */
.parent-pageid-314 .bt_bb_section:has(.wpcf7) {
display: none !important;
}

/* --- Z.8: Fix dlugich tytulów na buttonie Umow wizyte --- */
.michal a, .jaroslaw a, .mateusz a, .kolor-lek-zapis a, .jedrzej a, .katarzyna a, .aleksandra a, .paulina a {
font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
word-break: break-word;
line-height: 1.3 !important;
padding: 12px 20px !important;
display: inline-block !important;
background-color: #b53faf !important;
color: #fff !important;
border-radius: 20px !important;
text-decoration: none !important;
}

/* --- Podstrony specjalistow: profil przylegajacy do dolu hero --- */
body.parent-pageid-314 .section-hero .bt_bb_row_holder .bt_bb_column.bt_bb_vertical_align_top {
justify-content: flex-end !important;
}
.parent-pageid-314 .section-hero .bt_bb_background_image_holder {
background-size: cover !important;
background-position: center center !important;
}

/* --- Header: responsywnosc na mniejszych ekranach --- */
@media (max-width: 1200px) {
.mainHeader .topBarInLogoArea {
flex-wrap: wrap;
gap: 5px;
}
.mainHeader .btIconWidget {
font-size: .85em;
}
}

/* --- Fix: spacing below hero on /zespol/ --- */
.page-id-314 .bt_bb_section:nth-of-type(2) { margin-top: 1.5em !important; }

/* --- Fix: image fill full tile width --- */
.page-id-314 .bt_bb_column .bt_bb_column_content .bt_bb_image img,
.page-id-314 .bt_bb_column .bt_bb_image.bt_bb_shape_square img,
.page-id-314 .bt_bb_row_holder .bt_bb_column.bt_bb_padding_text_indent .bt_bb_column_content > .bt_bb_column_content_inner > .bt_bb_image img {
width: 100% !important;
height: 300px !important;
object-fit: cover !important;
object-position: top center !important;
}

/* --- Z.0b-fix: padding pod header --- */
.page-id-314 .btContentWrap.btClear {
padding-top: 190px !important;
}
@media (max-width: 1199px) {
.page-id-314 .btContentWrap.btClear {
padding-top: 70px !important;
}
}
.page-id-314.btStickyHeaderActive .btContentWrap.btClear {
padding-top: 60px !important;
}


/* === Z.9 - Hero image fill for landscape photos on specialist subpages === */
.parent-pageid-314 .section-hero .bt_bb_image.bt_bb_shape_square {
    height: 520px;
    overflow: hidden;
}
.parent-pageid-314 .section-hero .bt_bb_image.bt_bb_shape_square > a,
.parent-pageid-314 .section-hero .bt_bb_image.bt_bb_shape_square > span {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}
.parent-pageid-314 .section-hero .bt_bb_image.bt_bb_shape_square img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}
@media (max-width: 991px) {
    .parent-pageid-314 .section-hero .bt_bb_image.bt_bb_shape_square {
        height: 380px;
    }
}
