/* Archive Team Section */
.archive-team-section {
    padding: 0 2rem;
    background-color: var(--white-bg);
    color: #333;
}

.archive-team-section h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    color: var(--violet-dark);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Team Member Container */
/* Keep cards tidy in their own container */
.archive-team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    margin-bottom: 2rem; /* space before pagination */
}


/* Team Member Card */
.archive-team-member {
    background: var(--lavender-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 300px;
}

.archive-team-member:hover {
    transform: translateY(-10px); /* Smooth upward lift on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Team Member Photo */
.archive-team-photo img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.archive-team-member:hover .archive-team-photo img {
    transform: scale(1.05); /* Zoom-in effect on hover */
}

/* Team Member Info */
.archive-team-info {
    text-align: center;
}

.archive-team-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.archive-team-job-title {
    font-style: italic;
    font-size: 1rem;
    color: var(--violet-dark);
    margin-bottom: 1.2rem;
    font-weight: 200;
    opacity: 0.8;
}

.archive-team-name:hover {
    color: var(--violet-dark);
}

/* Link */
.archive-team-member a {
    color: var(--violet-dark);
    text-decoration: none;
    padding: 8px 16px;
    background: #fff;
    border-radius: 25px;
    border: 2px solid var(--violet-dark);
    transition: background-color 0.3s, color 0.3s;
}

.archive-team-member a:hover {
    background-color: var(--violet-dark);
    color: #fff;
}

/* Pagination Styles */
/* Separate pagination as a clean single row */
.archive-team-pagination {
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding: 2rem 0 2rem;
}

.archive-team-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.archive-team-pagination .page-numbers:hover {
    background: var(--violet-dark);
    color: #fff;
}

.archive-team-pagination .page-numbers.current {
    background: var(--violet-dark);
    color: #fff;
    border: none;
}

.archive-team-pagination .page-numbers.dots {
    pointer-events: none;
}

.pagination h2 {
    display: none;
}

/* Why Choose Our Team Section */
.why-choose-team {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    background-color: var(--white-bg);
    padding: 4rem 2rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.why-choose-team .feature {
    background-color: var(--lavender-bg);
    border-radius: 1rem;
    padding: 2rem;
    flex: 1 1 250px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-team .feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.why-choose-team .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--violet-dark);
}

.why-choose-team h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--violet-dark);
    margin-bottom: 0.8rem;
}

.why-choose-team p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}


/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--white-bg);
    padding: 3rem 2rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.stats-section .stat {
    flex: 1 1 150px;
    background-color: var(--lavender-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-section .stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stats-section .stat strong {
    display: flex;
    align-items: center;     /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    font-size: 2rem;
    color: var(--violet-dark);
    margin-bottom: 0.5rem;
    height: 100%;             /* Ensure it uses full height of parent */
    gap: 5px;
}


.stats-section .stat img {
    max-width: 35px;
    max-height: 35px;
}

.stats-section .stat span {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

/* === Feature Card === */
.feature {
    position: relative;
    background-color: var(--lavender-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-6px);
}

/* Optional glow effect on hover */
.feature:hover::before {
    opacity: 0.15;
    text-shadow: 0 0 12px rgba(102, 51, 153, 0.4); /* violet glow */
}

/* === Feature Card === */
.feature-1 {
    position: relative;
    background-color: var(--lavender-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* === Overlay Animation === */
.feature-1::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -3rem;
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    background-image: url('../../assets/img/member.svg'); /* Update path */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transform: translate(5%, 5%);
    animation: floatOverlay 6s ease-in-out infinite;
}

/* === Feature Card === */
.feature-2 {
    position: relative;
    background-color: var(--lavender-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}


/* === Overlay Animation === */
.feature-2::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -3rem;
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    background-image: url('../../assets/img/earth.svg'); /* Update path */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transform: translate(5%, 5%);
    animation: floatOverlay 6s ease-in-out infinite;
}

/* === Feature Card === */
.feature-3 {
    position: relative;
    background-color: var(--lavender-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}


/* === Overlay Animation === */
.feature-3::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -3rem;
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    background-image: url('../../assets/img/marker.svg'); /* Update path */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transform: translate(5%, 5%);
    animation: floatOverlay 6s ease-in-out infinite;
}

/* === Floating Animation === */
@keyframes floatOverlay {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}


/* === HERO SECTION === */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-dark);
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--violet-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-section p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-specializations {
    padding: 2rem 0 0 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
    max-width: 90%;         /* Slightly constrain for nicer margins */
    margin: 0 auto;         /* Center inside the card */
}

.specialization-badge,
.specialization-more {
    background-color: #a59bd6;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;     /* Slightly smaller text */
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
}

.specialization-badge:hover {
    background-color: #8e82c9;
    color: #fff;
    cursor: default;
}

.specialization-more {
    background-color: transparent;
    color: #666;
    font-weight: 700;
}


@media (max-width: 768px) {
    .archive-team-section {
        padding: 0 1rem;
    }

    .archive-team-section h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .archive-team-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    .archive-team-member {
        max-width: 100%;
        padding: 1.2rem;
    }

    .archive-team-photo img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .archive-team-name {
        font-size: 1rem;
    }

    .archive-team-job-title {
        font-size: 0.95rem;
    }

    .archive-team-member a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .why-choose-team {
        flex-direction: column;
        gap: 1.5rem;
        padding: 3rem 1rem;
    }

    .why-choose-team .feature {
        padding: 1.5rem;
    }

    .why-choose-team h3 {
        font-size: 1.1rem;
    }

    .stats-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 1rem;
        text-align: center;

    }

    .stats-section .stat {
        padding: 0.5rem;
        min-height: 120px;
    }

    .stats-section .stat strong {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .team-specializations {
        flex-wrap: wrap;
        gap: 0.4rem;
        max-width: 100%;
        justify-content: center;
    }

    .specialization-badge,
    .specialization-more {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    .archive-team-pagination {
        padding: 1.5rem 0;
        flex-wrap: wrap;
    }

    .archive-team-pagination .page-numbers {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    .pagination {
        display: block !important;
    }
}
