/*
Theme Name: Divi Child
Theme URI: https://medissima.pl
Description: Child theme dla Medissima - klinika medycyny estetycznej
Author: Medissima
Author URI: https://medissima.pl
Template: Divi
Version: 1.2.7
License: Private
Text Domain: medissima-child
*/

/* ====================================
   WIDGET LEKARZA - Styling
   ==================================== */

.doctor-widget {
    max-width: 400px;
    margin: 0 auto;
}

.doctor-widget-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.doctor-widget-panel {
    background: #2c3e7d;
    color: white;
    padding: 30px;
}

.doctor-widget-panel h2,
.doctor-widget-panel h3,
.doctor-widget-panel h3.kontakt-title {
    color: white !important;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.godziny-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.godziny-table {
    width: 100%;
    margin-bottom: 30px;
}

.godziny-table td {
    padding: 12px 0;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.godziny-table td.day {
    font-weight: 500;
}

.godziny-table td.hours {
    text-align: right;
}

.kontakt-title {
    margin-top: 30px !important;
}

.kontakt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.kontakt-item svg {
    color: white;
    flex-shrink: 0;
}

.kontakt-item a {
    color: white;
    text-decoration: none;
}

.kontakt-item a:hover {
    text-decoration: underline;
}

.btn-umow-wizyte {
    display: block;
    background: white;
    color: #2c3e7d;
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.btn-umow-wizyte:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ====================================
   OPIS LEKARZA - Styling
   ==================================== */

.doctor-description-content {
    margin-bottom: 30px;
}

.doctor-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1b2f68;
}

.doctor-spec {
    font-size: 24px;
    color: #666;
    margin: 0 0 25px 0;
}

.doctor-desc {
    line-height: 1.7;
}

/* ====================================
   RESPONSYWNOŚĆ - Widget Lekarza
   ==================================== */

@media (max-width: 768px) {
    .doctor-widget {
        max-width: 100%;
    }

    .doctor-widget-panel {
        padding: 20px;
    }

    .doctor-widget-panel h3 {
        font-size: 20px;
    }

    .kontakt-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ====================================
   DOCTORS SLIDER - Karuzela lekarzy
   ==================================== */

.doctors-slider-main {
    position: relative;
    width: 100%;
    max-width: 1404px;
    margin: 0 auto;
    padding: 0 60px;
}

.doctors-slider-container {
    width: 100%;
    background: transparent;
}

.doctors-slider-viewport {
    overflow: hidden;
    border-radius: 20px;
    padding: 20px 0;
}

.doctors-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.doctor-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 15px;
    box-sizing: border-box;
}

/* Strzałki nawigacji */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: white;
    border: 2px solid #1b2f68;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover:not(:disabled) {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-arrow svg {
    color: #1b2f68;
}

/* Kropki nawigacji */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: #1b2f68;
    transform: scale(1.2);
}

/* Karta lekarza w sliderze */
.doctor-slide .doctor-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.doctor-slide .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.doctor-slide .doctor-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.doctor-slide .doctor-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.doctor-slide .doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-slide .doctor-image-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.doctor-slide .doctor-image-default::after {
    content: "👨‍⚕️";
    opacity: 0.7;
}

.doctor-slide .doctor-card:hover .doctor-image {
    transform: scale(1.1);
}

.doctor-slide .doctor-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    transition: all 0.4s ease;
}

.doctor-slide .doctor-card:hover .doctor-gradient {
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.3) 100%);
}

.doctor-slide .doctor-basic-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    transition: all 0.4s ease;
}

.doctor-slide .doctor-card:hover .doctor-basic-info {
    bottom: 50%;
    transform: translateY(50%);
}

.doctor-slide .doctor-name {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.doctor-slide .doctor-specialization {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.doctor-slide .doctor-hover-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.doctor-slide .doctor-card:hover .doctor-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.doctor-slide .doctor-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1b2f68;
    padding: 10px 16px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.doctor-slide .doctor-cta:hover {
    background: #2a3b6b;
}

.no-doctors {
    text-align: center;
    color: #666;
    font-size: 18px;
    padding: 60px 20px;
}

/* ====================================
   DOCTORS SLIDER - Responsywność
   ==================================== */

@media (max-width: 1024px) {
    .doctors-slider-main {
        padding: 0 70px;
    }

    .doctor-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .doctors-slider-main {
        padding: 0 60px;
    }

    .doctor-slide {
        flex: 0 0 100%;
        padding: 0 10px;
    }

    .doctor-slide .doctor-card {
        height: 400px;
    }

    .doctor-slide .doctor-name {
        font-size: 20px;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
    }

    .doctor-slide .doctor-basic-info,
    .doctor-slide .doctor-hover-info {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .doctor-slide .doctor-card:hover .doctor-basic-info {
        bottom: 45%;
    }
}

@media (max-width: 580px) {
    .doctors-slider-main {
        padding: 0 50px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .doctor-slide .doctor-card {
        height: 350px;
    }
}

/* ====================================
   SERVICES GRID - Karty usług
   ==================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-link {
    display: flex;
    flex-direction: column;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-icon {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #1b2f68;
    margin: 0 0 10px 0;
}

.service-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.service-price {
    margin-top: auto;
    padding-top: 15px;
    color: #1b2f68;
    font-size: 16px;
}

/* ====================================
   DOCTORS GRID - Siatka lekarzy
   ==================================== */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.doctors-grid .doctor-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.doctors-grid .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.doctors-grid .doctor-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.doctors-grid .doctor-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.doctors-grid .doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctors-grid .doctor-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.doctors-grid .doctor-basic-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: white;
}

.doctors-grid .doctor-basic-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.doctors-grid .doctor-basic-info p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* ====================================
   DIVI HELPERS
   ==================================== */

.reverse-columns-image-left .et_pb_row {
    display: flex;
    flex-direction: row-reverse;
}

/* ====================================
   KORZYŚCI LISTA
   ==================================== */

.cdi-korzysci {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdi-korzysci__item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.cdi-korzysci__icon {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(9,162,214,0.11);
    color: rgba(8,24,48,0.21);
    font-size: 14px;
    flex: 0 0 25px;
}

.cdi-korzysci__icon::before {
    content: "✓";
    line-height: 1;
}

.cdi-korzysci__text {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #081830;
}

/* ====================================
   FAQ AKORDEON
   ==================================== */

.cdi-faq-wrap {
    max-width: var(--cdi-faq-max, 860px);
    width: 100%;
}

.cdi-faq-wrap--center {
    margin-left: auto;
    margin-right: auto;
}

.cdi-faq-wrap--left {
    margin-left: 0;
    margin-right: 0;
}

.cdi-faq {
    max-width: 760px;
}

.cdi-faq__item {
    margin: 0 0 22px 0;
}

.cdi-faq__q {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 18px 22px;
    border-radius: 14px;
    background: #12a6d6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.cdi-faq__qtext {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.cdi-faq__chev {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    flex: 0 0 34px;
    position: relative;
}

.cdi-faq__chev::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.95);
    border-bottom: 2px solid rgba(255,255,255,0.95);
    transform: translate(-50%,-55%) rotate(45deg);
}

.cdi-faq__q[aria-expanded="true"] .cdi-faq__chev::before {
    transform: translate(-50%,-40%) rotate(225deg);
}

.cdi-faq__a {
    margin-top: 12px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.cdi-faq__acontent {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(8,24,48,0.70);
}

/* ====================================
   RESPONSYWNOŚĆ - Services & Doctors Grid
   ==================================== */

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .doctors-grid .doctor-card {
        height: 400px;
    }
}

/* ====================================
   RESPONSYWNOŚĆ - Korzyści
   ==================================== */

@media (max-width: 767px) {
    .cdi-korzysci__item {
        gap: 12px;
        margin: 14px 0;
    }

    .cdi-korzysci__icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
        flex: 0 0 22px;
    }

    .cdi-korzysci__text {
        font-size: 16px;
    }
}

/* ====================================
   RESPONSYWNOŚĆ - FAQ
   ==================================== */

@media (max-width: 767px) {
    .cdi-faq__q {
        padding: 16px 14px 16px 16px;
        border-radius: 12px;
    }

    .cdi-faq__qtext {
        font-size: 18px;
    }

    .cdi-faq__chev {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .cdi-faq__a {
        padding: 16px;
        border-radius: 12px;
    }
}