/* Custom Treatment Layout Styles */
.body_wrap {
    overflow: visible !important;
}

.hg-treatment-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.hg-hero-banner {
    background: linear-gradient(135deg, #fdfafb 0%, #f4eff2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 10px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid #efe8ec;
}

.hg-hero-banner h1 {
    color: #323232;
    font-size: 2.2em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hg-hero-banner .lead-text {
    color: #b3a7b0;
    font-size: 1.25em;
    font-style: italic;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.6;
}

.hg-quick-facts {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.hg-fact-item {
    text-align: center;
    flex: 1;
    border-right: 1px solid #f2eef0;
}

.hg-fact-item:last-child {
    border-right: none;
}

.hg-fact-item i {
    color: #b3a7b0;
    font-size: 1.8em;
    margin-bottom: 10px;
    display: block;
}

.hg-fact-item span {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 5px;
}

.hg-fact-item strong {
    color: #323232;
    font-size: 1.1em;
}

.hg-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.hg-benefit-card {
    background: #fdfafb;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #f2eef0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hg-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(179, 167, 176, 0.15);
    border-color: #b3a7b0;
}

.hg-benefit-card i {
    color: #b3a7b0;
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
}

.hg-benefit-card h4 {
    font-size: 1.1em !important;
    color: #323232 !important;
    margin-bottom: 10px !important;
}

.hg-benefit-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.hg-timeline {
    position: relative;
    padding-left: 30px;
    margin: 30px 0 40px 0;
    list-style: none !important;
}

.hg-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f2eef0;
}

.hg-timeline li {
    position: relative;
    margin-bottom: 25px;
    padding-left: 0 !important;
}

.hg-timeline li::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #b3a7b0;
    z-index: 2;
}

.hg-timeline h4 {
    font-size: 1.1em !important;
    color: #b3a7b0 !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
}

.hg-timeline p {
    margin-bottom: 0;
}

.hg-sidebar-wrap {
    position: -webkit-sticky;
    position: sticky;
    top: 130px;
    z-index: 10;
    align-self: start;
}

.hg-price-box {
    background: #fdfafb;
    color: #444;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #efe8ec;
}

.hg-price-box h3 {
    color: #323232 !important;
    margin-top: 0 !important;
    font-size: 1.4em !important;
    margin-bottom: 10px !important;
}

.hg-price-box .price {
    font-size: 2.5em;
    font-weight: 700;
    color: #b3a7b0;
    margin-bottom: 20px;
    display: block;
    font-family: 'Great Vibes', cursive;
}

.hg-price-box .sc_button span {
    white-space: normal !important;
    line-height: 1.3 !important;
}

.hg-indications-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.hg-indications-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.95em;
    color: #444;
}

.hg-indications-list li::before {
    content: '\e875';
    font-family: 'fontello';
    position: absolute;
    left: 0;
    color: #b3a7b0;
    font-size: 1.1em;
}

.hg-contra-list li::before {
    content: '\e874';
    color: #e59a9a;
}

.section-title-wrapper {
    margin-top: 50px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f2eef0;
    padding-bottom: 15px;
}

.section-title-wrapper h2 {
    font-size: 1.8em !important;
    color: #323232 !important;
    margin: 0 !important;
    display: inline-block;
    position: relative;
}

.section-title-wrapper h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 50px;
    height: 3px;
    background: #b3a7b0;
}

.hg-photo-placeholder {
    background-color: #f5f5f5;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 30px;
    color: #b3a7b0;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px dashed #dcd6da;
    position: relative;
    overflow: hidden;
}

.hg-photo-placeholder::before {
    content: 'Miejsce na zdjęcie zabiegu';
}

@media (max-width: 991px) {
    .hg-treatment-layout {
        grid-template-columns: 1fr;
    }
    .hg-sidebar-wrap {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hg-benefits-grid {
        grid-template-columns: 1fr;
    }
    .hg-quick-facts {
        flex-direction: column;
    }
    .hg-fact-item {
        flex: 0 0 100%;
        border-right: none !important;
        border-bottom: 1px solid #f2eef0;
        padding: 15px 0;
    }
    .hg-fact-item:last-child {
        border-bottom: none;
    }
    .hg-hero-banner h1 {
        font-size: 1.8em;
    }
    .hg-hero-banner .lead-text {
        max-width: 100%;
    }
}

/* Related Treatments CSS - Premium Redesign */
.hg-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.hg-related-card {
    background: #ffffff;
    border: 1px solid rgba(179, 167, 176, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
    text-decoration: none !important;
    z-index: 1;
}

/* Elegant gradient background that fades in on hover */
.hg-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179,167,176,0.06) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.hg-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(179, 167, 176, 0.12);
    border-color: #b3a7b0;
}

.hg-related-card:hover::before {
    opacity: 1;
}

.hg-related-card .card-title {
    font-size: 1.25em !important;
    color: #2c2c2c !important;
    margin-bottom: 25px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    margin-top: 0 !important;
    position: relative;
}

/* Custom underline effect */
.hg-related-card .card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 30px;
    height: 2px;
    background-color: #b3a7b0;
    transition: width 0.4s ease;
}

.hg-related-card:hover .card-title::after {
    width: 50px;
}

.hg-related-card .card-action {
    color: #b3a7b0;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.hg-related-card .card-action::after {
    content: '\2192'; /* Right arrow unicode */
    font-size: 1.4em;
    transition: transform 0.3s ease;
}

.hg-related-card:hover .card-action {
    color: #8c7e86;
}

.hg-related-card:hover .card-action::after {
    transform: translateX(8px);
    color: #8c7e86;
}

@media (max-width: 991px) {
    .hg-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .hg-related-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .hg-related-card {
        padding: 25px 20px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        min-height: 80px;
    }
    .hg-related-card .card-title {
        margin-bottom: 0 !important;
        font-size: 1.1em !important;
        max-width: 80%;
        line-height: 1.2 !important;
    }
    .hg-related-card .card-title::after {
        display: none !important;
    }
    .hg-related-card .card-action {
        font-size: 0 !important; /* Hide text on mobile, keep arrow */
        margin-top: 0 !important;
        line-height: 1 !important;
    }
    .hg-related-card .card-action::after {
        font-size: 24px !important;
        color: #b3a7b0 !important;
        transform: translateX(0) !important;
        line-height: 1 !important;
        display: block !important;
    }
    .hg-related-card:active .card-action::after {
        transform: translateX(5px) !important;
    }
    .hg-related-card:active {
        transform: scale(0.98) !important;
        border-color: #b3a7b0 !important;
    }
}

/* Pricing Box Buttons Fix */
.hg-price-box > div {
    display: flex;
    gap: 12px !important;
    margin-top: 20px;
}

.hg-price-box a.sc_button {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden !important;
    position: relative !important;
    line-height: 1 !important;
    min-height: 44px !important; /* Touch target size */
    box-sizing: border-box !important;
}

/* Fix inner structure for hover effects */
.hg-price-box a.sc_button > div {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 20px !important;
    line-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure spans are centered and legible */
.hg-price-box a.sc_button span {
    grid-area: 1 / 1 !important;
    position: static !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.hg-price-box a.sc_button span.first {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.hg-price-box a.sc_button span.second {
    transform: translateY(100%) !important;
    opacity: 0 !important;
}

.hg-price-box a.sc_button:hover span.first {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}

.hg-price-box a.sc_button:hover span.second {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Filled Button Styles */
.hg-price-box a.sc_button_style_filled {
    background-color: #b3a7b0 !important;
    border: 1px solid #b3a7b0 !important;
}
.hg-price-box a.sc_button_style_filled span {
    color: #ffffff !important;
}
.hg-price-box a.sc_button_style_filled:hover {
    background-color: #9e919c !important;
    border-color: #9e919c !important;
    box-shadow: 0 4px 12px rgba(179, 167, 176, 0.35) !important;
}

/* Border Button Styles */
.hg-price-box a.sc_button_style_border {
    background-color: transparent !important;
    border: 1px solid #b3a7b0 !important;
}
.hg-price-box a.sc_button_style_border span {
    color: #b3a7b0 !important;
}
.hg-price-box a.sc_button_style_border:hover {
    background-color: #b3a7b0 !important;
    box-shadow: 0 4px 12px rgba(179, 167, 176, 0.2) !important;
}
.hg-price-box a.sc_button_style_border:hover span {
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .hg-price-box > div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hg-price-box a.sc_button {
        width: 100% !important;
        flex: none !important;
        min-height: 48px !important;
    }
    .hg-price-box a.sc_button span {
        font-size: 13px !important;
    }
}
