/* =============================================================
   TSP Team Showcase — v2.0  Clean & Creative  |  Poppins
   ============================================================= */

/* ── Google Font fallback (loaded by PHP; this is a safety net) ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ── Base ── */
.tst-wrapper,
.tst-wrapper * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.tst-wrapper {
    width: 100%;
}

/* =============================================================
   FOUNDER CARD
   ============================================================= */

.tst-founder-section {
    margin-bottom: 56px;
}

/* Card shell */
.tst-founder-card {
    display: flex;
    align-items: center;
    gap: 56px;
    background: linear-gradient(135deg, #0B315E 0%, #061d3a 100%);
    border-radius: 20px;
    padding: 48px 52px 48px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 64px rgba(11, 49, 94, 0.36);
}

/* ── Background decorative elements ── */

/* Large translucent dot grid — top-right */
.tst-founder-card::before {
    content: '';
    position: absolute;
    right: -10px;
    top: -10px;
    width: 260px;
    height: 260px;
    background-image: radial-gradient(
        circle,
        rgba(210, 156, 52, 0.22) 1.5px,
        transparent 1.5px
    );
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 0;
}

/* Large translucent " character — right side */
.tst-founder-card::after {
    content: '\201C';
    position: absolute;
    right: 52px;
    bottom: -40px;
    font-size: 260px;
    font-weight: 900;
    font-family: Georgia, serif;
    color: rgba(210, 156, 52, 0.055);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* ── Photo column ── */
.tst-founder-photo-col {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    min-width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Outer decorative gold ring */
.tst-photo-ring-outer {
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 1.5px solid rgba(210, 156, 52, 0.3);
    pointer-events: none;
}

/* Inner subtle ring */
.tst-photo-ring-inner {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(210, 156, 52, 0.18);
    pointer-events: none;
}

/* Portrait frame — the actual photo container */
.tst-photo-frame {
    width: 240px;
    aspect-ratio: 3 / 3.8;     /* portrait proportion */
    border-radius: 140px 140px 120px 120px;  /* rounded top, slightly less at bottom */
    overflow: hidden;
    border: 3px solid #D29C34;
    box-shadow:
        0 0 0 8px rgba(210, 156, 52, 0.12),
        0 18px 48px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
}

.tst-founder-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Placeholder when no image uploaded */
.tst-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
}
.tst-photo-placeholder i {
    font-size: 72px !important;
    color: rgba(255, 255, 255, 0.22) !important;
}

/* ── Content column ── */
.tst-founder-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Eyebrow */
.tst-founder-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #D29C34;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-bottom: 12px;
}

.tst-eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D29C34;
    flex-shrink: 0;
}

/* Name */
.tst-founder-name {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin: 0 0 8px;
}

/* Role */
.tst-founder-role {
    font-family: 'Poppins', sans-serif;
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #D29C34;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px;
}

/* Gold gradient rule */
.tst-founder-rule {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, #D29C34 0%, rgba(210,156,52,0.2) 100%);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Bio */
.tst-founder-bio {
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.80);
    margin: 0 0 20px;
    max-width: 520px;
}

/* Quote block */
.tst-founder-quote {
    margin: 0 0 26px;
    padding: 0 0 0 18px;
    border-left: 3px solid rgba(210, 156, 52, 0.5);
    border-radius: 0 4px 4px 0;
}

.tst-founder-quote-mark {
    display: block;
    font-family: Georgia, serif;
    font-size: 44px;
    color: #D29C34;
    line-height: 0.7;
    margin-bottom: 8px;
    opacity: 0.85;
}

.tst-founder-quote-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
}

/* =============================================================
   SECTION DIVIDER  — "THE TEAM"
   ============================================================= */

.tst-section-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 36px;
}

.tst-section-divider::before,
.tst-section-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: #D29C34;
    opacity: 0.35;
}

.tst-section-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #D29C34;
    text-transform: uppercase;
    letter-spacing: 4.5px;
    white-space: nowrap;
}

/* =============================================================
   TEAM GRID
   ============================================================= */

.tst-team-grid {
    display: grid;
    gap: 28px;
}

.tst-team-grid.tst-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tst-team-grid.tst-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tst-team-grid.tst-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Member Card ── */
.tst-member-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(11, 49, 94, 0.09);
    transition: transform 0.30s ease, box-shadow 0.30s ease;
    display: flex;
    flex-direction: column;
}

.tst-member-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 52px rgba(11, 49, 94, 0.18);
}

/* ── Photo area ── */
.tst-member-photo-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #0B315E;
    flex-shrink: 0;
}

.tst-member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.50s ease;
}

.tst-member-card:hover .tst-member-photo-img {
    transform: scale(1.06);
}

.tst-photo-placeholder--member {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tst-photo-placeholder--member i {
    font-size: 64px !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Gold slide-in bar at top of photo */
.tst-member-photo-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #D29C34;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s ease;
    z-index: 3;
}

.tst-member-card:hover .tst-member-photo-bar {
    transform: scaleX(1);
}

/* ── Info section ── */
.tst-member-info {
    padding: 22px 22px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Animated gold bottom accent line */
.tst-member-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    background: #D29C34;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s ease;
    border-radius: 1px;
}

.tst-member-card:hover .tst-member-info::after {
    transform: scaleX(1);
}

.tst-member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0B315E;
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.tst-member-role {
    font-family: 'Poppins', sans-serif;
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #D29C34;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 4px;
}

/* Short divider line below role */
.tst-member-role-line {
    width: 28px;
    height: 2px;
    background: #D29C34;
    border-radius: 1px;
    margin: 8px 0 14px;
    opacity: 0.6;
}

/* Bio text (visible when "show bio" is on) */
.tst-member-bio-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 1.75;
    margin: 0 0 16px;
    flex-grow: 1;
}

/* =============================================================
   SOCIAL ICONS  (shared)
   ============================================================= */

.tst-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* On founder card (light bg icons) */
.tst-socials--light { margin-top: 6px; }

/* On team card (dark icons, placed in info) */
.tst-socials--dark .tst-social-link {
    background: #f0f4fa;
    color: #0B315E;
}
.tst-socials--dark .tst-social-link i   { color: #0B315E !important; }
.tst-socials--dark .tst-social-link svg { fill: #0B315E !important; }

.tst-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.22s, color 0.22s, transform 0.18s;
    flex-shrink: 0;
    line-height: 1;
}

.tst-social-link:hover {
    background: #D29C34;
    color: #0B315E;
    transform: translateY(-3px) scale(1.1);
}

.tst-social-link i {
    font-size: 14px !important;
    color: inherit !important;
    display: block;
    pointer-events: none;
    line-height: 1;
}

.tst-social-link svg {
    width:  14px !important;
    height: 14px !important;
    fill: currentColor !important;
    display: block;
    pointer-events: none;
}

.tst-social-link:hover i,
.tst-social-link:hover svg {
    color: #0B315E !important;
    fill:  #0B315E !important;
}

/* =============================================================
   LOAD ANIMATION
   ============================================================= */

@keyframes tst-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tst-founder-card { animation: tst-rise 0.6s cubic-bezier(.22,.61,.36,1) both; }

.tst-member-card                 { animation: tst-rise 0.50s cubic-bezier(.22,.61,.36,1) both; }
.tst-member-card:nth-child(2)    { animation-delay: 0.09s; }
.tst-member-card:nth-child(3)    { animation-delay: 0.18s; }
.tst-member-card:nth-child(4)    { animation-delay: 0.26s; }
.tst-member-card:nth-child(5)    { animation-delay: 0.34s; }
.tst-member-card:nth-child(6)    { animation-delay: 0.40s; }
.tst-member-card:nth-child(7)    { animation-delay: 0.46s; }
.tst-member-card:nth-child(8)    { animation-delay: 0.52s; }

/* =============================================================
   RESPONSIVE — Tablet ≤ 1024px
   ============================================================= */

@media (max-width: 1024px) {
    .tst-founder-card {
        gap: 36px;
        padding: 40px 40px;
    }

    .tst-founder-photo-col { width: 200px; min-width: 200px; }
    .tst-photo-frame       { width: 200px; }

    .tst-founder-name  { font-size: 32px; }
    .tst-founder-bio   { font-size: 13.5px; }

    .tst-team-grid.tst-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   RESPONSIVE — Mobile ≤ 768px
   ============================================================= */

@media (max-width: 768px) {
    /* Stack founder vertically */
    .tst-founder-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 36px 28px 40px;
        gap: 32px;
    }

    .tst-founder-photo-col  { width: 180px; min-width: 180px; }
    .tst-photo-frame        { width: 180px; }

    .tst-photo-ring-outer   { inset: -18px; }
    .tst-photo-ring-inner   { inset: -8px; }

    .tst-founder-eyebrow    { justify-content: center; }
    .tst-founder-name       { font-size: 28px; letter-spacing: -0.4px; }

    .tst-founder-rule       { margin-left: auto; margin-right: auto; }
    .tst-founder-bio        { font-size: 13.5px; }

    .tst-founder-quote {
        border-left: none;
        border-top: 2px solid rgba(210, 156, 52, 0.4);
        padding: 14px 0 0;
    }

    .tst-socials { justify-content: center; }

    /* 2-col team grid */
    .tst-team-grid.tst-cols-3,
    .tst-team-grid.tst-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tst-team-grid { gap: 20px; }
}

/* =============================================================
   RESPONSIVE — Small mobile ≤ 540px
   ============================================================= */

@media (max-width: 540px) {
    .tst-founder-card   { padding: 28px 20px 32px; }
    .tst-founder-photo-col { width: 160px; min-width: 160px; }
    .tst-photo-frame    { width: 160px; }
    .tst-founder-name   { font-size: 24px; }

    /* 1-col team grid */
    .tst-team-grid,
    .tst-team-grid.tst-cols-2,
    .tst-team-grid.tst-cols-3,
    .tst-team-grid.tst-cols-4 {
        grid-template-columns: 1fr;
    }

    .tst-member-photo-wrap { height: 260px; }
    .tst-member-name       { font-size: 16px; }
}
