/* =================================
   RAMAZAN CONTAINER & WRAPPER
   ================================= */
.ramazan-container {
    max-width: 100%;
}

.ramazan-wrapper {
    background: url("../i/ramazan-bg.jpg") no-repeat top;
    padding: 60px 0;
    width: 100%;
    position: relative;
    color: #ffffff;
    background-size: cover;
    margin-bottom: 20px;
}

/* =================================
   TITLES
   ================================= */
.ramazan-main-title {
    background: #fcd34d;
    color: #9c2525;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 8px;
    font-family: "Times New Roman", serif;
    font-weight: bold;
    border: 2px solid #b45309;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ramazan-category-title {
    background: linear-gradient(360deg, #fff566 -28.95%, #ffb650 100%);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 8px 15px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/* =================================
   ITEMS & CARDS
   ================================= */
.ramazan-item {
    position: relative;
    padding-bottom: 24px;
}

    .ramazan-item::after {
        content: "";
        display: block;
        width: 100%;
        height: 16px;
        margin-top: 24px;
        background: url("/dist/temp/ramazan-item-separator.png") no-repeat center;
        background-size: contain;
    }

    .ramazan-item:last-child::after {
        display: none;
    }

.ramazan-card {
    background: transparent;
    border: none;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
}

/* =================================
   CARD THUMBNAIL
   ================================= */
.card-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.ramazan-card:hover .card-thumb img {
    transform: scale(1.05);
}

a.card-thumb {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* =================================
   BADGES
   ================================= */
.badge-level,
.badge-time {
    position: absolute;
    bottom: 10px;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(220, 38, 38, 0.95);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.badge-level {
    left: 8px;
}

.badge-time {
    right: 8px;
}

/* =================================
   CARD ACTIONS
   ================================= */
.card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

    .card-actions button {
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.6);
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }

        .card-actions button:hover {
            background: #fff;
            color: #d31a1a;
        }

/* =================================
   CARD DETAILS
   ================================= */
.card-details {
    margin-top: 15px;
    text-align: left;
    padding-left: 5px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card-details h3 {
        font-weight: 700;
        font-size: 22px;
        line-height: 30px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 60px;
    }

    .card-details .card-tag {
        font-weight: 400;
        font-size: 12px;
        line-height: 36px;
        color: #ffabae;
    }

/* =================================
   BUTTONS
   ================================= */
.btn-mini-save {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
}

    .btn-mini-save:hover {
        background-color: #fff;
        color: #d31a1a;
    }



@media (min-width:1400px) {

    .ramazan-card .ramazan-fav-save {
        position: relative;
        top: 0;
        right: 0;
    }
}

.ramazan-fav-save-btn {
    max-width: 26px;
    width: 26px !important;
    min-width: 26px;
}

a.btn-property.ramazan-fav-save-btn.d-inline-flex.align-items-center.justify-content-center.ms-auto {
    padding: 0 5px;
    width: 26px !important;
    min-width: 26px !important;
}

.ramazan-card .bg-white {
    background-color: #fff;
}

.ramazan-card .bg-white:hover {
    background-color: #fff;
}

.ramazan-card .btn-property.btn-save {
    margin-right: 0;
}

/* =================================
   FOOTER
   ================================= */
.ramazan-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-ramazan-all {
    position: relative;
    display: inline-block;
    background: #7f1d1d;
    color: #fcd34d;
    padding: 12px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

    .btn-ramazan-all::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 50px;
        background: linear-gradient(180deg, #d3a239 0%, #ffcc7a 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .btn-ramazan-all:hover {
        background-color: #fcd34d;
        color: #7f1d1d;
        box-shadow: 0 0 15px rgba(252, 211, 77, 0.4);
    }

/* =================================
   ICONS & SVG
   ================================= */
.ramazan-info-btn,
.ramazan-info-btn svg path {
    stroke: #ffabae;
    color: #ffabae;
    border-color: #ffabae;
}

    .ramazan-info-btn:hover svg path {
        stroke: #fff !important;
    }

.ramazan-card .svg-icon.ramazan-save {
    display: inline-flex;
    height: 12px;
    background: url("../i/icon/ramazan-save-icon.svg") no-repeat center / contain;
}

.ramazan-card .svg-icon.ramazan-fav {
    display: inline-flex;
    width: 14px;
    height: 12px;
    background: url("../i/icon/ramazan-fav.svg") no-repeat center / contain;
}

.ramazan-card .ramazan-fav-save-btn svg path {
    color: #ffabae;
    border-color: #ffabae;
}

.ramazan-card .ramazan-fav-save .ramazan-fav-save-btn svg path,
.ramazan-card .ramazan-fav-save .ramazan-fav-save-btn {
    color: #fff;
    border-color: #ffabae;
}

/* =================================
   DIVIDERS
   ================================= */
.ramadan-divider {
    position: relative;
}

    .ramadan-divider::after {
        content: "";
        position: absolute;
        left: auto;
        right: -10px;
        top: 110px;
        background: url(../i/separator-svg.svg) no-repeat;
        width: 20px;
        height: 473px;
        display: none;
    }

.separator-mobile {
    display: none;
    position: relative;
    margin-bottom: 15px;
}

/* =================================
   HOVER STATES
   ================================= */
.ramazan-wrapper .ramazan-fav-save-btn.btn-difficult:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    fill: var(--color-orange);
}

.ramazan-wrapper .ramazan-fav-save-btn.btn-difficult:hover,
.ramazan-wrapper .ramazan-fav-save-btn.btn-easy:hover,
.ramazan-wrapper .ramazan-fav-save-btn.btn-easy:hover svg path {
    color: var(--color-white);
    stroke: var(--color-white);
}

    .ramazan-wrapper .ramazan-fav-save-btn.btn-difficult:hover span {
        color: var(--color-white);
    }

.ramazan-time:hover span {
    color: var(--color-white);
}

/* =================================
   SUCCESS STATES
   ================================= */
.ramazan-wrapper .ramazan-fav-save-btn.btn-save.success-save .svg-icon {
    height: 12px;
}

.ramazan-card .ramazan-fav-save.success-fav svg path {
    fill: var(--color-orange);
}

a.btn-property.ramazan-fav-save-btn.success-fav,
a.btn-property.ramazan-fav-save-btn.success-save {
    background: var(--color-yellow);
}

    a.btn-property.ramazan-fav-save-btn.success-fav svg path,
    a.btn-property.ramazan-fav-save-btn.success-save svg path {
        fill: var(--color-orange);
        background-color: var(--color-orange);
    }

/* =================================
   MEDIA QUERIES
   ================================= */

/* Large Devices */
.ramazan-fav-save {
    position: absolute;
    top: 6px;
    right: 6px;
}

@media (max-width: 1399px) {

    .save-icon {
        width: 10px;
        height: 12px;
        display: inline-block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'><path fill='%23FFABAE' fill-rule='evenodd' clip-rule='evenodd' d='M0 1.7534C0 1.28837 0.184733 0.842386 0.51356 0.51356C0.842386 0.184733 1.28837 0 1.7534 0H7.59807C8.06311 0 8.50909 0.184733 8.83792 0.51356C9.16674 0.842386 9.35148 1.28837 9.35148 1.7534V11.1212C9.35148 11.8343 8.54491 12.2493 7.96512 11.8349L4.67574 9.48532L1.38636 11.8349C0.805981 12.2499 0 11.8349 0 11.1218V1.7534ZM1.7534 1.16893C1.59839 1.16893 1.44973 1.23051 1.34012 1.34012C1.23051 1.44973 1.16893 1.59839 1.16893 1.7534V10.5537L4.16608 8.41282C4.31479 8.30658 4.49298 8.24946 4.67574 8.24946C4.8585 8.24946 5.03669 8.30658 5.18539 8.41282L8.18254 10.5537V1.7534C8.18254 1.59839 8.12097 1.44973 8.01136 1.34012C7.90175 1.23051 7.75309 1.16893 7.59807 1.16893H1.7534Z'/></svg>");
    }

    .ramazan-fav-save-btn {
        background-color: #fff;
    }

    .ramazan-card .ramazan-fav-save .ramazan-fav-save-btn:hover svg path {
        fill: var(--color-orange);
    }

    .ramazan-card .ramazan-fav-save .ramazan-fav-save-btn:hover {
        background-color: var(--color-yellow);
    }
}

/* Medium Devices */
@media (min-width: 1200px) {
    .row .ramadan-divider::after {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .ramazan-card {
        padding: 0 8px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .row .ramadan-divider:nth-of-type(2n)::after {
        display: block !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .ramazan-category-title {
        margin-top: 30px;
        width: 100%;
    }

    .col-12:first-child .ramazan-category-title {
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ramazan-fav-save {
        position: absolute;
    }

    .separator-mobile {
        display: block;
    }

    .row .ramadan-divider:not(:has(~ .ramadan-divider))::after {
        display: none !important;
    }

    .row .ramadan-divider:not(:has(.ramadan-divider))::after {
        display: none !important;
    }

    .ramazan-wrapper .d-flex.gap-2 > :nth-child(2) {
        display: none !important;
    }
}