/* ==========================================================================
   Meet Our Team / Profile Cards Component - SS Healing Rays
   Matches UI Screenshot:
     - Section Pretitle "MEET OUR TEAM" in Marcellus font
     - Section Heading "Meet the People / Who Make It Sacred"
     - 2 Profile Cards (Sreeparvathy & Sravanti)
     - 36px border-radius with full-bleed image
     - Atmospheric dark gradient overlay (smooth fade from transparent to deep dark)
     - Name with verified checkmark badge
     - Bio description in Lato
     - Bottom row: 3 circular purple social icons (IG, FB, YT) & "Open Profile ↗" pill CTA
   ========================================================================== */

.team-section {
    position: relative;
    padding: 0rem 0 6.5rem;
    background-color: #ffffff;
    overflow: hidden;
}

/* 1. Header Typography */
.team-header {
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.team-pretitle {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--heading-color, #111133);
    margin-bottom: 10px;
}

.team-heading {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(2.3rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.22;
    color: var(--heading-color, #111133);
    margin: 0 auto;
    letter-spacing: -0.015em;
}

.team-heading .title-highlight {
    font-family: var(--brand-font-serif, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-weight: 600;
    color: #c43666;
    margin-left: 0.25rem;
}

/* 2. Profile Cards Container (Strict 20px Gap) */
.team-cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 940px;
    margin: 0 auto;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 600px;
    margin: 0;
    flex: 0 1 440px;
    border-radius: 36px;
    overflow: hidden;
    background-color: #0f0d1e;
    box-shadow: 0 20px 45px -10px rgba(17, 17, 51, 0.22);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 65px -12px rgba(84, 32, 95, 0.35);
}

/* Full-Bleed Image */
.profile-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Atmospheric Dark Gradient Overlay */
.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 3rem 1.85rem 1.85rem;
    background: linear-gradient(
        180deg,
        rgba(15, 13, 30, 0) 0%,
        rgba(15, 13, 30, 0.35) 20%,
        rgba(15, 13, 30, 0.85) 55%,
        rgba(15, 13, 30, 0.98) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Name Row with Marcellus Font */
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.65rem;
}

.profile-name {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: 1.85rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.profile-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3897f0; /* Verified Blue Badge */
    flex-shrink: 0;
}

/* Bio Text */
.profile-bio {
    font-family: var(--brand-font-sans, 'Lato', system-ui, sans-serif);
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Bottom Action Row */
.profile-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Social Buttons */
.profile-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #54205f; /* Brand Plum Purple */
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.profile-social-btn:hover {
    background-color: #82387a;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 14px rgba(130, 56, 122, 0.4);
}

.profile-social-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Actual Reusable Button Component (.Btn-Container.Btn-Team-Profile)
   Transparent with the actual button, without background fill
   ========================================================================== */
.Btn-Team-Profile {
    background-color: transparent !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    height: 44px !important;
    padding: 2px 4px 2px 18px !important;
    gap: 8px !important;
    box-shadow: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.Btn-Team-Profile .text {
    font-family: var(--brand-font-btn, 'Outfit', 'Lato', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff !important;
    letter-spacing: 0.01em;
}

.Btn-Team-Profile .icon-Container {
    width: 34px !important;
    height: 34px !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.Btn-Team-Profile .icon-Container .btn-arrow-svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
    stroke-width: 2.4 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.Btn-Team-Profile:hover {
    background-color: rgba(255, 255, 255, 0.16) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.Btn-Team-Profile:hover .text {
    color: #ffffff !important;
}

.Btn-Team-Profile:hover .icon-Container .btn-arrow-svg {
    transform: translate(2px, -2px);
}

.Btn-Team-Profile:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive queries */
@media (max-width: 991.98px) {
    .team-section {
        padding: 4.5rem 0 5rem;
    }
    .team-header {
        margin-bottom: 3rem;
    }
    .profile-card {
        height: 540px;
        max-width: 400px;
        flex: 0 1 400px;
    }
}

@media (max-width: 575.98px) {
    .team-cards-wrapper {
        gap: 20px;
    }
    .profile-card {
        height: 520px;
        border-radius: 28px;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .profile-overlay {
        padding: 2.25rem 1.35rem 1.35rem;
    }
    .profile-name {
        font-size: 1.6rem;
    }
    .profile-actions-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }
    .Btn-Team-Profile {
        padding: 2px 2px 2px 14px !important;
        height: 40px !important;
        gap: 6px !important;
    }
    .Btn-Team-Profile .text {
        font-size: 0.88rem;
    }
    .Btn-Team-Profile .icon-Container {
        width: 30px !important;
        height: 30px !important;
    }
    .profile-social-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}
