/* Hero Slider Styles */
#hero {
    padding: 0;
    margin: 0;
}

#hero .hero-swiper {
    width: 100%;
    height: 100%;
}

#hero .swiper-slide {
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

#hero .swiper-slide .container {
    position: relative;
    z-index: 2;
}

/* Premium Pagination Styling */
.swiper-pagination {
    bottom: 30px !important;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    width: fit-content !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    width: 12px !important;
    height: 12px !important;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    margin: 0 6px !important;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.3);
}

.swiper-pagination-bullet-active {
    background: #fcae30 !important;
    width: 36px !important;
    border-radius: 6px !important;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(252, 174, 48, 0.5);
}

/* Navigation Arrows Styling */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    background: rgba(35, 149, 160, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(35, 149, 160, 0.95);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(35, 149, 160, 0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-prev {
    left: 30px;
}

.swiper-button-next {
    right: 30px;
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    #hero .swiper-slide {
        height: 100%;
        min-height: 300px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 20px !important;
        padding: 8px 0;
    }

    .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
    }

    .swiper-pagination-bullet-active {
        width: 28px !important;
    }
}

@media (max-width: 480px) {
    #hero .swiper-slide {
        height: 100%;
        min-height: 200px;
    }

    .swiper-pagination {
        bottom: 15px !important;
        padding: 6px 0;
    }
}

/* Partners marquee styles */
.partners-viewport {
    overflow: hidden;
    width: 100%;
    padding: 28px 0;
}

.partners-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    will-change: transform;
}

.partner-item {
    flex: 0 0 var(--partner-basis, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.partner-item img {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
}

/* animation uses CSS variable --scroll-distance and duration set by JS */
.partners-track.scrolling {
    animation-name: partners-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--scroll-distance));
    }
}

/* Team Section Enhancements */
#team .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    direction: rtl;
}

.team-member-wrapper {
    width: 100%;
}

.member-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.member {
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
}

.member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(35, 149, 160, 0.3);
}

.member-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
    height: 280px;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member:hover .member-img img {
    transform: scale(1.1);
}

.member-info {
    text-align: right;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 0 0 15px 15px;
}

.member-info h4 {
    font-family: 'Cairo', sans-serif;
    color: #2395a0;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-info span {
    font-family: 'Cairo', sans-serif;
    color: #7f8c8d;
    font-size: 1rem;
}

@media (max-width: 768px) {
    #team .row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    #team .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #team .row {
        grid-template-columns: repeat(4, 1fr);
    }
}