/* Article Patchwork Widget Styles */

.article-patchwork {
    padding-bottom: 55px;
}

@media (min-width: 768px) {
    .article-patchwork {
        padding-bottom: 65px;
    }
}

@media (min-width: 992px) {
    .article-patchwork {
        padding-bottom: 75px;
    }
}

@media (min-width: 1200px) {
    .article-patchwork {
        padding-bottom: 90px;
    }
}

/* Title Section */
.article-patchwork__section-header {
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-patchwork__section-title {
    color: #102335;
    font-family: Dinamit, serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    margin-top: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Two-line title support (h2-04 style) */
.article-patchwork__section-title .line-1 {
    display: block;
    font-family: Dinamit, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 120%;
}

.article-patchwork__section-title .line-2 {
    display: block;
    font-family: Lumios Marker, sans-serif;
    font-size: 70px;
    font-weight: 400;
    line-height: 70%;
    margin-bottom: 30px;
}

/* Mobile font sizes for two-line titles */
@media (max-width: 991px) {
    .article-patchwork__section-title .line-1 {
        font-size: 14px;
    }
    
    .article-patchwork__section-title .line-2 {
        font-size: 50px;
    }
}

/* Single-line title (h2-00 style) - fallback */
.article-patchwork__section-title.single-line .line-1 {
    font-size: 32px;
}

/* Mobile font size for single-line */
@media (max-width: 991px) {
    .article-patchwork__section-title.single-line .line-1 {
        font-size: 20px;
    }
}

.article-patchwork__section-title .line-1 b,
.article-patchwork__section-title .line-2 b {
    display: inline-block;
    font-weight: inherit;
    position: relative;
    z-index: 2;
}

/* Burst Icon Styles (for burst icons like burst-black-left) */
.article-patchwork__section-title.burst-black-left b:after,
.article-patchwork__section-title.burst-black-right b:after {
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: block;
    height: 45px;
    position: absolute;
    top: -30px;
    width: 45px;
    z-index: -1;
}

.article-patchwork__section-title.burst-black-left b:after {
    left: -30px;
}

.article-patchwork__section-title.burst-black-right b:after {
    right: -30px;
}

/* Hide burst icons on mobile */
@media (max-width: 767px) {
    .article-patchwork__section-title.burst-black-left b:after,
    .article-patchwork__section-title.burst-black-right b:after {
        display: none;
    }
}

/* Oval Icon Styles (for oval icons like oval-blue2) */
.article-patchwork__section-title.oval-blue2 .line-2 b:after,
.article-patchwork__section-title[class*="oval"] .line-2 b:after {
    content: "";
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 115%;
    width: 115%;
    left: 50%;
    position: absolute;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Center alignment support */
.article-patchwork__section-title.ce-headline-center {
    text-align: center;
}

/* RTL Support for Burst Icons */
[dir="rtl"] .article-patchwork__section-title.burst-black-left b:after {
    left: auto;
    right: -30px;
}

[dir="rtl"] .article-patchwork__section-title.burst-black-right b:after {
    right: auto;
    left: -30px;
}

.article-patchwork__section-description {
    font-size: 1.3rem;
    line-height: 2.3rem;
    margin-top: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.article-patchwork__section-description p {
    margin: 0 0 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Article Image */
.article-patchwork__img {
    position: relative;
}

.article-patchwork__img img {
    height: 220px;
    margin-bottom: 16px;
    object-fit: cover;
    -o-object-fit: cover;
    width: 100%;
}

@media (min-width: 768px) {
    .article-patchwork__img img {
        height: 250px;
        margin-bottom: 24px;
    }
}

/* Favorite Button */
.article-patchwork__img .add-favorites {
    align-items: center;
    background-color: #fff;
    border-radius: 100%;
    border: none;
    cursor: pointer;
    display: flex;
    font-family: icomoon;
    font-size: 0;
    height: 40px;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    z-index: 1;
    transition: background-color 0.25s;
}

/* RTL: Favorite button on left */
[dir="rtl"] .article-patchwork__img .add-favorites {
    right: auto;
    left: 20px;
}

.article-patchwork__img .add-favorites:hover {
    background-color: #102335;
}

.article-patchwork__img .add-favorites:hover:before {
    color: #fff;
}

.article-patchwork__img .add-favorites:before {
    color: #102335;
    content: "\e914";
    font-size: 2rem;
}

.article-patchwork__img .add-favorites.active:before {
    content: "\e915";
}

.article-patchwork__img .add-favorites.unavailable {
    background: #eee;
    opacity: 0.3;
    pointer-events: none;
}

.article-patchwork__img .add-favorites.unavailable:hover:before {
    color: #102335;
}

/* Article Title */
.article-patchwork__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    margin: 0 0 8px;
}

@media (min-width: 768px) {
    .article-patchwork__title {
        margin-bottom: 16px;
    }
}

/* Article Description - NO TRUNCATION */
.article-patchwork__description {
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    margin: 0;
}

.article-patchwork__description p {
    margin: 0;
}

.article-patchwork__description a {
    text-decoration: underline;
    transition: all 0.25s;
}

.article-patchwork__description a:hover {
    color: #bb4f8d;
    transition: all 0.25s;
}

/* Swiper Wrapper - Desktop Grid Layout */
@media (min-width: 768px) {
    .article-patchwork .swiper-wrapper {
        display: flex;
        flex-flow: row wrap;
        /* Gap controlled by Elementor responsive controls */
    }
}

/* Swiper Slide */
.article-patchwork .swiper-slide {
    width: 300px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .article-patchwork .swiper-slide {
        /* Width dynamically calculated by Elementor columns control */
        width: calc(50% - 16px);
    }
}

/* Navigation Buttons - Hidden */
.article-patchwork .swiper-button {
    display: none;
}

/* Scrollbar - Hidden on Desktop only */
@media (min-width: 768px) {
    .article-patchwork .swiper-scrollbar {
        display: none;
    }
}

/* Scrollbar Styles - Mobile Only */
.article-patchwork .swiper-container-horizontal .swiper-scrollbar,
.article-patchwork .swiper-horizontal .swiper-scrollbar {
    background: transparent;
    cursor: pointer;
    height: 8px;
    left: 0;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.article-patchwork .swiper-container-horizontal .swiper-scrollbar:before,
.article-patchwork .swiper-horizontal .swiper-scrollbar:before {
    background: hsla(0, 0%, 77%, 0.4);
    border-radius: 10px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    top: 3px;
    width: 100%;
    z-index: 1;
}

.article-patchwork .swiper-container-horizontal .swiper-scrollbar-drag,
.article-patchwork .swiper-horizontal .swiper-scrollbar-drag {
    background: #102335;
    height: 2px;
    top: 3px;
    z-index: 1;
}

/* Scrollbar Hover/Focus Effects */
.article-patchwork:focus-within .swiper-scrollbar-drag,
.article-patchwork:focus-within .swiper-scrollbar:before,
.article-patchwork:hover .swiper-scrollbar-drag,
.article-patchwork:hover .swiper-scrollbar:before {
    height: 8px;
    top: 0;
}

/* Container - Controlled by Elementor max-width slider */
.article-patchwork .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 12.5px;
    padding-right: 12.5px;
    width: 100%;
    max-width: 1170px; /* Default, can be overridden by Elementor control */
}

.article-patchwork .container:before,
.article-patchwork .container:after {
    content: " ";
    display: table;
}

.article-patchwork .container:after {
    clear: both;
}

/* RTL Support - Swiper */
[dir="rtl"] .article-patchwork .swiper-wrapper {
    direction: rtl;
}

[dir="rtl"] .article-patchwork .swiper-slide {
    text-align: right;
}

/* Swiper Container Override */
.article-patchwork .swiper-container {
    overflow: visible;
}

/* Mobile only - contain overflow */
@media (max-width: 767px) {
    .article-patchwork .swiper-container {
        overflow: hidden;
    }
}
