/* UA Korukalp Tedavi Widget Styles */

.ua-korukalp-tedavi-widget {
    font-family: 'Exo', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Break out of Elementor containers */
.elementor-widget-ua_korukalp_tedavi,
.elementor-element.elementor-widget-ua_korukalp_tedavi {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Section - Full Width */
.ua-hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 50% !important;
    right: auto !important;
    margin-left: -50vw !important;
    margin-right: 0 !important;
}

/* Break out of all containers */
.elementor-widget-ua_korukalp_tedavi .ua-hero-section,
.elementor-column .ua-hero-section,
.elementor-container .ua-hero-section,
.elementor-row .ua-hero-section,
.elementor-section .ua-hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    left: 0 !important;
    right: 0 !important;
    position: relative;
}

.ua-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.ua-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: var(--hero-bg-fit, cover);
    object-position: var(--hero-bg-focus-x, 50%) var(--hero-bg-focus-y, 50%);
    display: block;
}

.ua-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: var(--hero-card-align, center);
    justify-content: var(--hero-card-justify, center);
}

.ua-ghost-box {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 20px;
    box-sizing: border-box;
    transform: translate(var(--hero-card-offset-x, 0px), var(--hero-card-offset-y, 0px));
}

.ua-ghost-box:hover {
    transform: translate(var(--hero-card-offset-x, 0px), var(--hero-card-offset-y, 0px));
}

.ua-hero-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ua-hero-description {
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 550px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Content */
.ua-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Full Width Container - Break out of parent containers */
.ua-container-full-width {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative;
    left: 0;
    right: 0;
}

/* Break out of Elementor containers */
.elementor-widget-ua_korukalp_tedavi .ua-container-full-width,
.elementor-column .ua-container-full-width,
.elementor-container .ua-container-full-width,
.elementor-row .ua-container-full-width,
.elementor-section .ua-container-full-width {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    left: 0 !important;
    right: 0 !important;
    position: relative;
}

.ua-content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

/* Left Content */
.ua-main-content {
    flex: 0 0 70%;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ua-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.ua-main-content[style*="background-image"]::before {
    background-image: var(--content-bg-image, none);
}

.ua-main-content > * {
    position: relative;
    z-index: 1;
}

.ua-content-title {
    font-size: 2rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #267C92;
}

.ua-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.ua-article-content p {
    margin-bottom: 20px;
}

/* Right Sidebar */
.ua-sidebar {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.ua-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.ua-sidebar[style*="background-image"]::before {
    background-image: var(--sidebar-bg-image, none);
}

.ua-sidebar > * {
    position: relative;
    z-index: 1;
}

.ua-other-treatments {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ua-other-treatments::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.ua-other-treatments > * {
    position: relative;
    z-index: 1;
}

.ua-sidebar-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #267C92;
}

.ua-treatment-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #267C92;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.ua-treatment-item:hover {
    transform: translateX(5px);
}

/* Hover shadow will be controlled via Elementor settings */
.ua-treatment-item[data-hover-shadow="yes"]:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.ua-treatment-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ua-treatment-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.ua-treatment-item p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ua-content-wrapper {
        flex-direction: column;
    }

    .ua-main-content,
    .ua-sidebar {
        flex: 1 1 100% !important;
    }

    .ua-hero-title {
        font-size: 1.8rem;
    }

    .ua-hero-description {
        font-size: 1rem;
    }

    .ua-container {
        padding: 20px 0 !important;
        margin: 0;
        max-width: 100%;
    }

    .ua-content-wrapper {
        margin-top: 0;
        gap: 20px;
        padding: 0 15px;
    }

    .ua-main-content {
        padding: 25px 15px !important;
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ua-sidebar {
        padding: 0 !important;
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ua-other-treatments {
        padding: 20px 15px !important;
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ua-article-content {
        text-align: justify;
    }

    .ua-treatment-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .ua-hero-title {
        font-size: 1.5rem;
    }

    .ua-hero-description {
        font-size: 0.9rem;
    }

    .ua-content-title {
        font-size: 1.5rem;
    }

    .ua-article-content {
        font-size: 1rem;
    }

    .ua-container {
        padding: 15px 0 !important;
    }

    .ua-content-wrapper {
        padding: 0 10px;
    }

    .ua-main-content {
        padding: 20px 10px !important;
    }

    .ua-other-treatments {
        padding: 15px 10px !important;
    }
}

