/* ==========================================================================
   Common Styles for Sofreirani Elementor Widgets
   ========================================================================== */


/* ==========================================================================
   Product Slider Widget Styles
   ========================================================================== */

.sofreirani-product-slider-wrapper {
    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

/* Header Section */
.sofreirani-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    width: 100%;
}

.sofreirani-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.sofreirani-title-pill {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    height: 48px;
    padding: 0 16px;
    flex-grow: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.sofreirani-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #129b5e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

.sofreirani-header-icon i,
.sofreirani-header-icon svg {
    display: inline-block;
    width: 1em;
    height: 1em;
}

.sofreirani-slider-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #129b5e;
}

.sofreirani-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sofreirani-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background-color: #129b5e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sofreirani-header-btn:hover {
    background-color: #0e7c4b;
    color: #ffffff;
}

/* Slider Nav Arrows */
.sofreirani-slider-nav {
    display: flex;
    gap: 8px;
}

.sofreirani-nav-button {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: none;
    background-color: #58bf7a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    padding: 0;
}

.sofreirani-nav-button:hover {
    background-color: #4cb570;
}

.sofreirani-nav-button:active {
    transform: scale(0.95);
}

/* Swiper Container */
.sofreirani-swiper-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 4px 20px 4px !important;
}

.sofreirani-swiper-container .swiper-wrapper {
    overflow: visible !important;
}

/* Product Card */
.sofreirani-product-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.sofreirani-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Product Image */
.sofreirani-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
}

.sofreirani-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.sofreirani-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.sofreirani-product-card:hover .sofreirani-card-image img {
    transform: scale(1.05);
}

/* Product Title */
.sofreirani-product-title {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
}

.sofreirani-product-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.sofreirani-product-title a:hover {
    color: #129b5e;
}

/* Badges Container */
.sofreirani-badges-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.sofreirani-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff4eb;
    color: #e67e22;
    border: 1px solid #ffe5d4;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    justify-content: center;
}

.sofreirani-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sofreirani-badge-icon i,
.sofreirani-badge-icon svg {
    color: #d35400;
    font-size: 24px;
}

.sofreirani-badge-text {
    white-space: nowrap;
}

/* Card Footer */
.sofreirani-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f9f9f9;
    padding-top: 16px;
    margin-top: auto;
}

/* Price Box */
.sofreirani-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
}

.sofreirani-price-regular {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.sofreirani-price-sale {
    color: #2c3e50;
    font-size: 17px;
    font-weight: 800;
}

/* Register Button */
.sofreirani-btn-wrapper {
    display: block;
}

.sofreirani-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #27ae60;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sofreirani-card-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.sofreirani-card-btn:hover {
    background-color: #219653;
    color: #ffffff;
}

.sofreirani-card-btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 767px) {
    .sofreirani-slider-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .sofreirani-header-right {
        gap: 8px;
        flex-grow: 1;
    }

    .sofreirani-title-pill {
        height: 38px;
        padding: 0 10px;
    }

    .sofreirani-header-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .sofreirani-slider-title {
        font-size: 13px;
    }

    .sofreirani-header-btn {
        height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .sofreirani-slider-nav {
        display: none !important;
    }

    .sofreirani-badge-icon i,
    .sofreirani-badge-icon svg {
        font-size: 18px;
    }
}

/* ==========================================================================
   Tabbed Slider Widget Styles
   ========================================================================== */

/* Tabs Navigation */
.sofreirani-tabs-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    direction: rtl;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sofreirani-tabs-nav::-webkit-scrollbar {
    display: none;
}

.sofreirani-tab-pane active .sofreirani-swiper-container {
    position: relative;
}

.sofreirani-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sofreirani-tab-btn .sofreirani-tab-title {
    font-size: 14px;
    font-weight: 700;
    color: #129b5e;
    transition: color 0.3s ease;
}

.sofreirani-tab-btn .sofreirani-tab-icon {
    font-size: 18px;
    color: #129b5e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.sofreirani-tab-btn .sofreirani-tab-icon i,
.sofreirani-tab-btn .sofreirani-tab-icon svg {
    display: inline-block;
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.sofreirani-tab-btn .sofreirani-tab-arrow {
    font-size: 13px;
    color: #129b5e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: auto;
    /* Pushes the arrow to the left edge in RTL */
}

.sofreirani-tab-btn:hover {
    border-color: #129b5e;
    background-color: #f7fbf9;
}

/* Active tab button */
.sofreirani-tab-btn.active {
    background-color: #129b5e;
    border-color: #129b5e;
    box-shadow: 0 4px 12px rgba(18, 155, 94, 0.15);
}

.sofreirani-tab-btn.active .sofreirani-tab-title,
.sofreirani-tab-btn.active .sofreirani-tab-icon,
.sofreirani-tab-btn.active .sofreirani-tab-arrow {
    color: #ffffff;
}

.sofreirani-tab-btn.active .sofreirani-tab-arrow {
    transform: translateX(-4px);
}

/* AJAX Loader Spinner */
.sofreirani-tab-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
}

.sofreirani-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #129b5e;
    border-radius: 50%;
    animation: sofreirani-spin 1s linear infinite;
}

@keyframes sofreirani-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Tab Panes */
.sofreirani-tab-pane {
    display: none;
}

.sofreirani-tab-pane.active {
    display: block;
    animation: sofreirani-fadeIn 0.4s ease;
}

@keyframes sofreirani-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tabbed Card (Horizontal in Desktop, Vertical in Mobile) */
.sofreirani-tabbed-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    padding: 24px;
}

.sofreirani-tabbed-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-color: #e5e5e5;
}

.sofreirani-tabbed-card-inner {
    display: flex;
    flex-direction: row;
    gap: 32px;
    height: 100%;
    box-sizing: border-box;
    padding-right: 108px;
    /* Create right pocket for absolute positioned nav controls */
}

.sofreirani-tabbed-card-content {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    box-sizing: border-box;
    min-height: 240px;
}

.sofreirani-tabbed-card-image {
    flex-shrink: 0;
    border-radius: 18px;
    /* Rounded corners on all 4 sides! */
    overflow: hidden;
    position: relative;
}

.sofreirani-tabbed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sofreirani-tabbed-card:hover .sofreirani-tabbed-card-image img {
    transform: scale(1.04);
}

.sofreirani-tabbed-card-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.sofreirani-tabbed-card-title a {
    color: #129b5e;
    text-decoration: none;
    transition: color 0.2s;
}

.sofreirani-tabbed-card-title a:hover {
    color: #0e7c4b;
}

.sofreirani-tabbed-card-excerpt {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.8;
    flex: 1;
    max-height: 230px;
    overflow-y: auto;
}

.sofreirani-tabbed-card-excerpt ul {
    list-style-type: none;
    padding-right: 0;
    margin: 8px 0 0 0;
}

.sofreirani-tabbed-card-excerpt li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 6px;
}

.sofreirani-tabbed-card-excerpt li::before {
    content: "•";
    color: #129b5e;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    right: 0;
    top: -1px;
}

.sofreirani-tabbed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid #f9f9f9;
    padding-top: 16px;
}

.sofreirani-tabbed-card-price {
    font-size: 17px;
    font-weight: 800;
    color: #2c3e50;
}

.sofreirani-tabbed-card-price del {
    font-size: 13px;
    color: #b2bec3;
    font-weight: 400;
    margin-left: 8px;
}

.sofreirani-tabbed-card-price ins {
    text-decoration: none;
    color: #2c3e50;
}

.sofreirani-tabbed-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background-color: #58bf7a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sofreirani-tabbed-card-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.sofreirani-tabbed-card-btn:hover {
    background-color: #4cb570;
}

.sofreirani-tabbed-card-btn:hover i {
    transform: rotate(90deg);
}

/* Vertical controls box (overlayed inside Swiper container on desktop) */
.sofreirani-vertical-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 88px;
    padding: 16px 0;
    border: 1px solid #F0F1F1;
    border-radius: 20px;
    background-color: #ffffff;
    position: absolute !important;
    right: 24px;
    top: 30px;
    z-index: 10;
    bottom: 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sofreirani-vertical-prev,
.sofreirani-vertical-next {
    background: none;
    border: none;
    color: #e67e22;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FDFAE8;
    border-radius: 8px;
    border: 1px solid #E86824;
}

.sofreirani-vertical-prev:hover,
.sofreirani-vertical-next:hover {
    color: #d35400;
}

.sofreirani-vertical-pagination.swiper-pagination {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    position: relative;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
}

.sofreirani-vertical-pagination .swiper-pagination-bullet {
    width: 36px;
    height: 8px;
    border-radius: 4px;
    background-color: #dcdde1;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.sofreirani-vertical-pagination .swiper-pagination-bullet-active {
    background-color: #129b5e;
}

/* Responsive Mobile overrides for Tabbed Widget */
@media (max-width: 767px) {
    .sofreirani-tabs-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-x: visible;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .sofreirani-tab-btn {
        padding: 0 10px;
        height: 42px;
        border-radius: 10px;
        gap: 6px;
        justify-content: space-between;
    }

    .sofreirani-tab-btn .sofreirani-tab-title {
        font-size: 12px;
    }

    .sofreirani-tab-btn .sofreirani-tab-icon {
        font-size: 15px;
    }

    .sofreirani-tab-btn .sofreirani-tab-arrow {
        font-size: 11px;
    }

    .sofreirani-swiper-outer-wrapper {
        display: block;
    }

    .sofreirani-vertical-nav {
        display: none !important;
    }

    .sofreirani-tabbed-card {
        padding: 16px;
        border-radius: 20px;
    }

    .sofreirani-tabbed-card-inner {
        flex-direction: column-reverse;
        padding-right: 0;
        gap: 16px;
    }

    .sofreirani-tabbed-card-image {
        width: 100%;
        border-radius: 14px;
    }

    .sofreirani-tabbed-card-content {
        padding: 0;
        min-height: auto;
    }

    .sofreirani-tabbed-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .sofreirani-tabbed-card-excerpt {
        font-size: 12px;
        margin-bottom: 12px;
        height: 80px !important;
        max-height: 80px;
        flex: none;
    }

    .sofreirani-tabbed-card-footer {
        padding-top: 12px;
    }

    .sofreirani-tabbed-card-price {
        font-size: 14px;
    }

    .sofreirani-tabbed-card-btn {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .sofreirani-tab-btn .sofreirani-tab-icon i,
    .sofreirani-tab-btn .sofreirani-tab-icon svg {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }
}

/* Tab Buttons Alignment and Layout Options */
.sofreirani-tabbed-slider-wrapper.sofreirani-tabs-align-right .sofreirani-tabs-nav {
    justify-content: flex-start;
}

.sofreirani-tabbed-slider-wrapper.sofreirani-tabs-align-left .sofreirani-tabs-nav {
    justify-content: flex-end;
}

.sofreirani-tabbed-slider-wrapper.sofreirani-tabs-align-center .sofreirani-tabs-nav {
    justify-content: center;
}

.sofreirani-tabbed-slider-wrapper.sofreirani-tabs-align-stretch .sofreirani-tabs-nav {
    justify-content: stretch;
}

.sofreirani-tabbed-slider-wrapper.sofreirani-tabs-align-stretch .sofreirani-tabs-nav .sofreirani-tab-btn {
    flex: 1;
    justify-content: center;
}

/* ==========================================================================
   Books Slider Widget Styles
   ========================================================================== */

.sofreirani-books-slider-wrapper {
    width: 100%;
}

/* Book Card */
.sofreirani-book-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.sofreirani-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Book Cover Image */
.sofreirani-book-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 14px;
    position: relative;
    background-color: #f9f9f9;
}

.sofreirani-book-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.sofreirani-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.sofreirani-book-card:hover .sofreirani-book-image img {
    transform: scale(1.04);
}

/* Book Title */
.sofreirani-book-title {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sofreirani-book-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.sofreirani-book-title a:hover {
    color: #129b5e;
}

/* Book Footer */
.sofreirani-book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
    margin-top: auto;
    direction: rtl;
}

/* Price & Discount Section */
.sofreirani-book-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sofreirani-book-discount-badge {
    order: 2;
    background-color: #d63031;
    border-radius: 12px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sofreirani-book-discount-badge span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    width: 20px;
}

.sofreirani-book-prices {
    order: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
}

.sofreirani-book-prices.solo-price {
    flex-direction: row;
    align-items: center;
}

.sofreirani-book-price-regular {
    font-size: 15px;
    color: #95a5a6;
    text-decoration: line-through;
    line-height: 1;
}

.sofreirani-book-price-sale {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

/* Cart Button Section */
.sofreirani-book-action-section {
    display: flex;
    align-items: center;
}

.sofreirani-book-cart-btn {
    width: 50px;
    height: 50px;
    background-color: #56C06E;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sofreirani-book-cart-btn:hover {
    background-color: #0e7c4b;
    border-color: #0e7c4b;
    transform: scale(1.05);
}

.sofreirani-book-cart-btn i {
    font-size: 20px;
}

/* Responsive adjustment for Mobile view */
@media (max-width: 767px) {
    .sofreirani-book-card {
        padding: 12px;
        border-radius: 18px;
    }

    .sofreirani-book-image {
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .sofreirani-book-title {
        font-size: 13px;
        height: 38px;
        margin-bottom: 10px;
    }

    .sofreirani-book-price-sale {
        font-size: 15px;
    }

    .sofreirani-book-price-regular {
        font-size: 13px;
    }

    .sofreirani-book-discount-badge span {
        font-size: 16px;
        width: 16px;
    }


    .sofreirani-book-cart-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .sofreirani-book-cart-btn i {
        font-size: 18px;
    }
}

/* ==========================================================================
   Articles Slider Widget Styles
   ========================================================================== */

.sofreirani-articles-slider-wrapper {
    width: 100%;
}

/* Article Card */
.sofreirani-article-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.sofreirani-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Article Image */
.sofreirani-article-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 16px;
    position: relative;
    background-color: #f9f9f9;
}

.sofreirani-article-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.sofreirani-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.sofreirani-article-card:hover .sofreirani-article-image img {
    transform: scale(1.05);
}

/* Article Title */
.sofreirani-article-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sofreirani-article-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.sofreirani-article-title a:hover {
    color: #129b5e;
}

/* Article Excerpt */
.sofreirani-article-excerpt {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.8;
    text-align: right;
    height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 16px;
}

/* Divider */
.sofreirani-article-divider {
    height: 1px;
    background-color: #eaeaea;
    margin-bottom: 16px;
    width: 100%;
}

/* Article Footer */
.sofreirani-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    direction: rtl;
}

/* Article Date (Right side in RTL) */
.sofreirani-article-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 8px 12px;
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.sofreirani-article-date-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sofreirani-article-date-icon i {
    font-size: 14px;
    color: #7f8c8d;
}

/* Study Button (Left side in RTL) */
.sofreirani-article-read-btn-wrapper {
    display: flex;
}

.sofreirani-article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #d5ebd8;
    color: #129b5e;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s ease;
}

.sofreirani-article-read-btn:hover {
    background-color: #b8dfbd;
    transform: translateY(-2px);
}

.sofreirani-article-read-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sofreirani-article-read-icon i {
    font-size: 14px;
    color: #129b5e;
}

/* Responsive adjustment for Mobile view */
@media (max-width: 767px) {
    .sofreirani-article-card {
        padding: 12px;
        border-radius: 18px;
    }
    
    .sofreirani-article-image {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .sofreirani-article-title {
        font-size: 13px;
        height: 38px;
        margin-bottom: 8px;
    }

    .sofreirani-article-excerpt {
        font-size: 11px;
        height: 52px;
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .sofreirani-article-divider {
        margin-bottom: 12px;
    }

    .sofreirani-article-date {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .sofreirani-article-date-icon i {
        font-size: 12px;
    }

    .sofreirani-article-read-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 8px;
    }

    .sofreirani-article-read-icon i {
        font-size: 12px;
    }
}

/* ==========================================================================
   Discount Form Widget Styles
   ========================================================================== */

.sofreirani-discount-form-wrapper {
    direction: rtl;
    width: 100%;
    margin: 0 auto;
}

.sofreirani-df-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sofreirani-df-bottom-row {
    align-items: stretch;
}

.sofreirani-df-col {
    flex: 1;
}

.sofreirani-df-phone-col {
    flex: 2;
}

.sofreirani-df-btn-col {
    flex: 1;
}

.sofreirani-df-input {
    width: 100%;
    background-color: #fcebd7 !important;
    border: 1px solid #f89761 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 14px;
    color: #8f654b;
    box-sizing: border-box;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    height: 56px;
}

.sofreirani-df-input::placeholder {
    color: #bfa18f;
}

.sofreirani-df-input:focus {
    border-color: #f17631 !important;
    background-color: #fdf2e6 !important;
}

.sofreirani-df-submit {
    width: 100%;
    height: 56px;
    background-color: #58bf7a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sofreirani-df-submit:hover {
    background-color: #4cb570;
}

.sofreirani-df-submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    margin-top: 3px;
}

.sofreirani-df-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.sofreirani-df-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.sofreirani-df-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.sofreirani-discount-form {
    position: relative;
}

.sofreirani-discount-form.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.sofreirani-discount-form.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #58bf7a;
    border-radius: 50%;
    animation: sofreirani-spin 1s linear infinite;
    z-index: 10;
}

@media(max-width: 767px) {
    .sofreirani-df-row {
        flex-direction: column;
        gap: 12px;
    }
    .sofreirani-df-btn-col {
        order: 2;
    }
    .sofreirani-df-phone-col {
        order: 1;
    }
}