/* ==========================================================================
   TEAM SCREEN - MODERN & MOBILE-FRIENDLY RESPONSIVE STYLES
   Regency Estate Saidham Utsav Mandal (RESUM) Executive Committee
   ========================================================================== */

.wrapper {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* --------------------------------------------------------------------------
   1. Banner Section Enhancements
   -------------------------------------------------------------------------- */
.innerbannerwrap {
    position: relative;
    width: 100%;
}

.innerbanner {
    position: relative !important;
    overflow: hidden;
}

@media (max-width: 768px) {
    .innerbanner {
        height: 280px !important;
    }
}

@media (max-width: 480px) {
    .innerbanner {
        height: 240px !important;
    }
}

.innerbannerwrap .innerbanner-content {
    position: absolute !important;
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 90% !important;
    max-width: 650px !important;
    z-index: 5 !important;
}

.innerbannerwrap .innerbanner-content h2.bannerHeadline {
    position: static !important;
    transform: none !important;
    display: block !important;
    margin: 0 !important;
    font-size: clamp(28px, 6vw, 52px) !important;
    letter-spacing: 2px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.bannerHeadline span {
    color: #ed6755 !important;
}

.banner-subtag {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 480px) {
    .banner-subtag {
        font-size: 11px;
        padding: 4px 12px;
        margin-top: 8px;
    }
}

/* --------------------------------------------------------------------------
   2. Team Section Header & Introduction
   -------------------------------------------------------------------------- */
.team-page-section {
    padding: 60px 0 70px;
    background: #0f1316;
    color: #ffffff;
    position: relative;
}

@media (max-width: 768px) {
    .team-page-section {
        padding: 40px 0 50px;
    }
}

.team-header-wrap {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 35px;
    padding: 0 15px;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(237, 103, 85, 0.15);
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
    border: 1px solid rgba(237, 103, 85, 0.3);
}

.team-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.team-section-title {
    font-size: clamp(26px, 4.5vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    margin: 0 0 14px !important;
    text-transform: uppercase !important;
}

.team-section-title span {
    color: #ff5252 !important;
}

.team-subtitle {
    font-size: 15.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 auto;
    max-width: 720px;
}

@media (max-width: 480px) {
    .team-subtitle {
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   3. Interactive Controls Bar (Search & View Toggles)
   -------------------------------------------------------------------------- */
.team-controls-bar {
    max-width: 1140px;
    margin: 0 auto 30px;
    padding: 16px 20px;
    background: #181d22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .team-controls-bar {
        padding: 14px 16px;
        margin-bottom: 24px;
    }
}

.team-search-wrap {
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    position: relative;
}

@media (max-width: 768px) {
    .team-search-wrap {
        max-width: 100%;
        width: 100%;
    }
}

.team-search-wrap svg.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #64748b;
    pointer-events: none;
}

.team-search-input {
    width: 100%;
    padding: 10px 38px 10px 40px;
    background: #111417;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.team-search-input:focus {
    border-color: #ff5252;
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.15);
}

.team-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    display: none;
    padding: 0;
    line-height: 1;
}

.team-search-clear:hover {
    color: #ff5252;
}

.team-actions-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .team-actions-wrap {
        width: 100%;
        justify-content: space-between;
    }
}

.team-count-badge {
    background: #111417;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.team-count-badge strong {
    color: #ff5252;
}

.team-view-toggle {
    display: inline-flex;
    background: #111417;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.view-btn:hover {
    color: #ffffff;
}

.view-btn.is-active {
    background: #ff5252;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 82, 82, 0.4);
}

/* --------------------------------------------------------------------------
   4. Grid View Layout
   -------------------------------------------------------------------------- */
.team-grid-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    transition: opacity 0.25s ease;
}

@media (max-width: 1200px) {
    .team-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .team-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .team-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 8px;
    }
}

@media (max-width: 340px) {
    .team-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px;
    }
}

/* --------------------------------------------------------------------------
   5. Team Member Cards (Grid & Carousel)
   -------------------------------------------------------------------------- */
.team-card-item {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.team-card-box {
    background: #181d22;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card-box:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 82, 82, 0.45);
    box-shadow: 0 14px 30px rgba(211, 47, 47, 0.25);
}

.team-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    position: relative;
    background: #0d1117;
    overflow: hidden;
    cursor: pointer;
}

.team-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-photo-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-photo-zoom-hint svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.team-card-box:hover .team-photo-zoom-hint {
    opacity: 1;
    background: #ff5252;
    transform: scale(1.1);
}

.team-card-box:hover .team-photo-img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #181d22;
}

@media (max-width: 640px) {
    .team-card-box {
        border-radius: 12px;
    }
    .team-photo-wrap {
        border-radius: 12px 12px 0 0;
    }
    .team-card-body {
        padding: 12px 9px !important;
    }
    .team-name {
        font-size: 14px !important;
        margin: 0 0 4px !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .team-role-pill {
        font-size: 9px !important;
        padding: 2px 7px !important;
        margin-bottom: 8px !important;
        letter-spacing: 0.5px !important;
    }
    .team-desc {
        display: none !important;
    }
    .team-address-bar {
        font-size: 10.5px !important;
        padding: 6px 8px !important;
        gap: 4px !important;
        line-height: 1.25 !important;
    }
    .team-address-bar svg {
        width: 11px !important;
        height: 11px !important;
    }
    .team-photo-zoom-hint {
        width: 24px;
        height: 24px;
        bottom: 6px;
        right: 6px;
    }
    .team-photo-zoom-hint svg {
        width: 12px;
        height: 12px;
    }
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.team-role-pill {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: #ff5252;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(255, 82, 82, 0.12);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 14px;
    flex: 1;
    text-align: left;
}

.team-address-bar {
    margin-top: auto;
    padding: 8px 12px;
    background: #b71c1c;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.team-address-bar svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Carousel View Layout (Alternative Toggle)
   -------------------------------------------------------------------------- */
.team-carousel-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: none; /* Hidden by default when grid active */
}

.team-carousel-container.is-active {
    display: block;
}

.wrapplayer {
    position: relative !important;
    height: auto !important;
    margin-bottom: 20px !important;
    padding: 0 50px !important;
}

@media (max-width: 768px) {
    .wrapplayer {
        padding: 0 24px !important;
    }
    .boardmember li {
        padding: 0 6px !important;
    }
    .boardmember li .team-card-box {
        max-width: 310px;
        margin: 0 auto;
    }
    .boardmember li .team-photo-wrap {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: 290px !important;
    }
    .wrapplayer .prv.prev-player {
        left: -4px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .wrapplayer .nxt.next-player {
        right: -4px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

.wrapplayer .prv.prev-player,
.wrapplayer .nxt.next-player {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(211, 47, 47, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: #ffffff !important;
    position: absolute !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.wrapplayer .prv.prev-player:hover,
.wrapplayer .nxt.next-player:hover {
    background: #b71c1c !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.wrapplayer .prv.prev-player {
    left: 0 !important;
}

.wrapplayer .nxt.next-player {
    right: 0 !important;
}

@media (max-width: 768px) {
    .wrapplayer .prv.prev-player {
        left: -4px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .wrapplayer .nxt.next-player {
        right: -4px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

.wrapplayer .prv.prev-player svg,
.wrapplayer .nxt.next-player svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.boardmember {
    list-style: none;
    padding: 0;
    margin: 0;
}

.boardmember li {
    padding: 10px 12px;
}

/* Slick dots */
.boardmember .slick-dots {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.boardmember .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.boardmember .slick-dots li.slick-active button {
    width: 28px;
    background: #ff5252;
}

/* --------------------------------------------------------------------------
   7. No Results Notice
   -------------------------------------------------------------------------- */
.team-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #181d22;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #94a3b8;
    display: none;
}

.team-no-results svg {
    width: 44px;
    height: 44px;
    fill: #64748b;
    margin-bottom: 12px;
}

.team-no-results h4 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 6px;
}

/* --------------------------------------------------------------------------
   8. Volunteer & Contact Call-To-Action Banner
   -------------------------------------------------------------------------- */
.team-cta-section {
    max-width: 1140px;
    margin: 60px auto 0;
    padding: 0 15px;
}

.team-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.team-cta-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(237, 103, 85, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.team-cta-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.team-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(237, 103, 85, 0.15);
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(237, 103, 85, 0.3);
}

.team-cta-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.team-cta-desc {
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

.team-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ed6755 0%, #d32f2f 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4);
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.team-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(211, 47, 47, 0.55);
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.team-cta-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.team-cta-btn:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Fullscreen Photo Lightbox Modal
   -------------------------------------------------------------------------- */
.team-photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.team-photo-lightbox.is-open {
    display: flex;
    animation: fadeInTeamModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 13, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.team-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
    background: #181d22;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
}

.team-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.team-lightbox-close:hover {
    background: #ff5252;
    border-color: #ff5252;
    transform: scale(1.1);
}

.team-lightbox-img-wrap {
    width: 100%;
    max-height: 62vh;
    background: #0b0e11;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-lightbox-img {
    max-width: 100%;
    max-height: 62vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.team-lightbox-caption {
    padding: 16px 20px;
    background: #181d22;
    text-align: center;
}

.team-lightbox-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.team-lightbox-role {
    display: inline-block;
    color: #ff5252;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255, 82, 82, 0.12);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.team-lightbox-address {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

@keyframes fadeInTeamModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
