/* ========================================
   Featured Cards Section - Swiper Container
======================================== */

.featured-cards-section {
    position: relative;
    padding: 0;
}

.featured-cards-swiper {
    padding: 30px 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.featured-cards-swiper .swiper-wrapper {
    padding-left: 15px;
}

.featured-cards-swiper .swiper-slide {
    height: auto;
    display: flex;
    position: relative;
}

/* ========================================
   Section Borders
======================================== */

.featured-cards-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    width: 100%;
    background: rgba(234, 234, 234, 0.20);
    z-index: -1;
}

.featured-cards-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 80px;
    height: 1px;
    width: 100%;
    background: #dedede;
}

/* Slide Dividers */
.featured-cards-swiper .swiper-slide:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 1px;
    height: calc(100% + 60px);
    background: #dedede;
}

/* Gradien Wrapper Slide Dividers */

.gradient-wrapper .featured-cards-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    width: 100%;
    background: rgba(234, 234, 234, 0.20);
}

.gradient-wrapper .featured-cards-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 80px;
    height: 1px;
    width: 100%;
    background: rgba(234, 234, 234, 0.20);
}

.gradient-wrapper .featured-cards-swiper .swiper-slide:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 1px;
    height: calc(100% + 60px);
    background: rgba(234, 234, 234, 0.20);
}

.gradient-wrapper.featured-cards-swiper .swiper-slide:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 1px;
    height: calc(100% + 60px);
    background: rgba(234, 234, 234, 0.20);
}

/* ========================================
   Swiper Controls Wrapper
======================================== */

.featured-cards-section .swiper-controls {
    margin-top: 80px;
}

.gradient-wrapper .featured-cards-swiper:not(:last-child) .swiper-pagination-bullet-active {
    background-color: var(--white);
}

/* ========================================
   Featured Card
======================================== */

.featured-card {
    color: var(--white);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ========================================
   Card Background Variations
======================================== */

.featured-cards-section .background-black {
    background-color: var(--black);
}

.featured-cards-section .background-glass {
    background: rgba(255, 255, 255, 0.06);
}

.featured-cards-section .background-purple {
    background: var(--Lavender-Gradient, linear-gradient(351deg, #8862FF 0%, #C1A7FF 100%));
}

.featured-cards-section .background-red {
    background: var(--Peach-Gradient, linear-gradient(352deg, #F9646A 0.97%, #F8868A 100%));
}

.featured-cards-section .background-blue {
    background: var(--Light-Blue-Gradient, linear-gradient(351deg, #21A2BC 0%, #C8E2E8 100%));
}

.featured-cards-section .background-glass .card-content::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0%, rgba(32, 54, 89, 0.5) 40%, rgb(42 67 107 / 50%) 50%, rgba(32, 54, 89, 0.5) 60%, rgb(255 255 255 / .5) 100%);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

/* ========================================
   Card Content
======================================== */

.featured-cards-section .card-content {
    padding: 20px;
}

.featured-cards-section .card-content p {
    margin-bottom: 0;
}

/* ========================================
   Swiper Navigation Arrows
======================================== */

.featured-cards-swiper .swiper-button-next,
.featured-cards-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: #d5deef;
    border-radius: 50%;
    transition: all 0.3s ease;
    top: auto;
    bottom: 0px;
}
.featured-cards-swiper .swiper-button-prev {
    left: 77px; 
}

.featured-cards-swiper .swiper-button-next {
    right: 77px; 
}
.featured-cards-swiper .swiper-button-next:hover,
.featured-cards-swiper .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.featured-cards-swiper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.featured-cards-swiper .swiper-button-prev svg,
.featured-cards-swiper .swiper-button-next svg {
    width: 20px;
    height: 15px; 
}

.featured-cards-swiper .swiper-button-prev::after,
.featured-cards-swiper .swiper-button-next::after,
.featured-cards-swiper .swiper-button-prev::before,
.featured-cards-swiper .swiper-button-next::before {
    content: none;
}

/* ========================================
   Swiper Pagination
======================================== */

.featured-cards-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
}

.featured-cards-swiper .swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
    background-color: var(--deep-navy);
    border-radius: 10px;
    transform: scale(1.1);
    opacity: 1;
}

.featured-cards-swiper .swiper-pagination-bullet-active-prev,
.featured-cards-swiper .swiper-pagination-bullet-active-next {
    transform: scale(0.85);
    opacity: 0.8;
}

.featured-cards-swiper .swiper-pagination-bullet-active::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 12px;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(46,22,117,0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* ========================================
   Media Queries
======================================== */

@media (max-width: 991px) {
    .featured-cards-swiper .swiper-button-next,
    .featured-cards-swiper .swiper-button-prev {
        display: none;
    }
    
    .featured-cards-swiper {
        margin-bottom: 0;
    }
}
