/* About Us Page Styles */

/* Hero Section with Gradient Overlay */
.about-hero-section {
    position: relative;
    min-height: 400px;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #051C2C 0%, rgba(5, 28, 44, 0) 100%);
    z-index: 1;
}

/* Ensure content is above gradient */
.about-hero-section > * {
    position: relative;
    z-index: 2;
}

/* Footer Section with Vertical Gradient Overlay */
.footer-gradient-section {
    position: relative;
}

.footer-gradient-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #051C2C 0%, rgba(5, 28, 44, 0) 100%);
    z-index: 1;
}

/* Ensure content is above gradient */
.footer-gradient-section > * {
    position: relative;
    z-index: 2;
}

/* Team Member Card Gradient Overlay */
.team-member-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 10%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    border-radius: 20px;
}

/* Team Member Card Wrapper */
.team-member-card-wrapper {
    position: relative;
    width: 100%;
}

/* Normal Card Styles */
.team-member-card-normal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Expanded Card Styles */
.team-member-card-expanded {
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Bottom Bar Transition */
.team-member-bottom-bar {
    transition: opacity 0.3s ease;
}

/* Custom Scrollbar for Description */
.team-member-description {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    padding-right: 8px;
}

.team-member-description::-webkit-scrollbar {
    width: 6px;
}

.team-member-description::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.team-member-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.team-member-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Close Button Hover Effect */
.team-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
}

/* Smooth Transitions */
.team-member-card-normal,
.team-member-card-expanded {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Team Members Swiper Styles */
.teamMembersSwiper {
    width: 100%;
    padding-bottom: 80px;
    position: relative;
}

.teamMembersSwiper .swiper-slide {
    height: auto;
}

/* Ensure grid always shows exactly 2 rows */
.teamMembersSwiper .row {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* Ensure cards maintain consistent height for 2-row layout */
.teamMembersSwiper .team-member-card-wrapper {
    height: 100%;
    cursor: pointer;
}

.teamMembersSwiper .team-member-card-normal,
.teamMembersSwiper .team-member-card-expanded {
    height: 340px;
}

/* Swiper Navigation Buttons - Centered at Bottom */
.teamMembersSwiper {
    position: relative;
    padding-bottom: 80px;
}

.team-members-button-next,
.team-members-button-prev {
    color: #039BC1;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    top: auto;
    margin-top: 0;
    z-index: 10;
}

.team-members-button-next {
    right: calc(50% - 60px);
    left: auto;
}

.team-members-button-prev {
    left: calc(50% - 60px);
    right: auto;
}

.team-members-button-next:hover,
.team-members-button-prev:hover {
    background: #039BC1;
    color: white;
    transform: scale(1.1);
}

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

/* Hide Pagination */
.team-members-pagination {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-hero-section {
        min-height: 300px;
    }
    
    .team-member-card-expanded {
        height: auto !important;
        min-height: 340px;
    }
    
    .team-member-description {
        max-height: 150px !important;
    }

    .teamMembersSwiper {
        padding-bottom: 70px;
    }

    .team-members-button-next,
    .team-members-button-prev {
        width: 40px;
        height: 40px;
    }

    .team-members-button-next {
        right: calc(50% - 50px);
    }

    .team-members-button-prev {
        left: calc(50% - 50px);
    }

    .team-members-button-next::after,
    .team-members-button-prev::after {
        font-size: 16px;
    }
}

/* News & Updates Swiper Styles */
.newsUpdatesSwiper {
    width: 100%;
    padding: 20px 0;
}

.news-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    padding: 15px;
    padding-bottom: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    color: #051c2c;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.news-card-link {
    color: #039BC1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.news-card-link:hover {
    color: #0288a1;
    text-decoration: none;
}

.news-card-link span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.news-card-link:hover span {
    transform: translateX(5px);
}

/* News Swiper Navigation Buttons */
.news-swiper-navigation {
    position: relative;
}

.news-button-next,
.news-button-prev {
    color: #039BC1;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #039BC1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

.news-button-next {
    background: #039BC1;
    color: white;
    border: 1px solid #039BC1;
}

.news-button-prev {
    background: white;
    color: #039BC1;
    border: 1px solid #039BC1;
}

.news-button-next:hover,
.news-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(3, 155, 193, 0.3);
}

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

/* Responsive News Swiper */
@media (max-width: 768px) {
    .news-swiper-navigation {
        display: none;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-content {
        padding: 16px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .news-card-description {
        font-size: 13px;
    }
}

.team-expand-icon {
    width: auto !important;
}

.swiper {
    height: auto;
}