/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
}

body.team-page {
    margin: 0;
    font-family: 'Avenir', sans-serif;
    background: linear-gradient(135deg, #102833, #132F3D 60%, #0e2530);
    color: white;
    overflow-x: hidden;
}

/* ================= HERO (SAME AS CONTACT) ================= */
.team-hero {
    height: 45vh;
    background: linear-gradient(rgba(19,47,61,0.8), rgba(19,47,61,0.8)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay h1 {
    color: #e1c885;
    font-size: 48px;
    letter-spacing: 1px;
}

.hero-overlay p {
    margin-top: 15px;
    font-size: 16px;
    opacity: 0.85;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #e1c885;
    text-decoration: none;
}

/* ================= SECTION TITLES ================= */
.section-title {
    color: #e1c885;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 80px auto;
    letter-spacing: 1px;
    position: relative;
    display: block;
}

.section-title::after {
    content: "";
    width: 70px;
    height: 3px;
    background: #e1c885;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    border-radius: 3px;
}

.section-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e1c885, transparent);
    margin: 40px auto 80px auto;
    opacity: 0.6;
}

/* ================= WRAPPER ================= */
.team-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 140px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ================= GRID ================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-grid + .section-title {
    margin-top: 50px;
}

/* ================= CARD ================= */
.team-card {
    background: #1C3B56;
    border-left: 4px solid #e1c885;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

/* Image */
.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-grid + .section-title {
    margin-top: 70px;
}

/* Info */
.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.card-content span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #e1c885;
    letter-spacing: 0.5px;
}

.card-content small {
    display: block;
    margin-top: 12px;
    opacity: 0.6;
    font-size: 13px;
}

/* ================= MODAL ================= */
/* ================= PREMIUM MODAL ================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    z-index: 2000;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-up Animation */
.modal-content {
    background: #1C3B56;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    overflow: hidden;

    transform: scale(0.95) translateY(40px);
    transition: all 0.4s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* LEFT SIDE */
.modal-left {
    padding: 50px;
    overflow-y: auto;
    max-height: 90vh;
}

/* Custom Scroll */
.modal-left::-webkit-scrollbar {
    width: 6px;
}
.modal-left::-webkit-scrollbar-thumb {
    background: #e1c885;
    border-radius: 3px;
}

/* Executive Header */
.profile-role {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e1c885;   /* GOLD */
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-left h2 {
    margin: 0;
    font-size: 34px;
    color: #e1c885;
}

.profile-email {
    margin-top: 12px;
    font-size: 15px;
    opacity: 0.8;
}

/* Thin Gold Line */
.gold-divider {
    width: 60px;
    height: 2px;
    background: #e1c885;
    margin: 30px 0 30px 0;
}

/* Biography */
.modal-left p {
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}

/* RIGHT SIDE IMAGE */
.modal-right {
    background: #132F3D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-right img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.modal-right img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.modal-right {
    padding: 50px 40px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: #132F3D;
    color: #e1c885;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    background: #e1c885;
    color: #132F3D;
}

.close-btn:hover {
    opacity: 0.7;
}

/* Mobile Responsive */
@media(max-width: 900px) {

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .modal-right {
        display: none;
    }

    .modal-left {
        padding: 30px;
        max-height: 95vh;
    }

}

/* ================= RESPONSIVE ================= */
@media(max-width: 992px) {
    
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;   /* Perfect square */
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Proper fit */
    display: block;
}

/* Gold Expand Icon Button */
.expand-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: #1C3B56;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.expand-btn i {
    color: #e1c885;
    font-size: 14px;
}

.expand-btn:hover {
    transform: scale(1.1);
}

@media(max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay h1 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}

/* ================= SCROLL ANIMATION ================= */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.team-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease;
}

.team-card.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .section-title {
        font-size: 26px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .card-content span {
        font-size: 13px;
    }
}

/* ================= CTA SECTION ================= */

.team-cta {
    text-align: center;
    padding: 50px 20px; /* Reduced spacing */
    background: linear-gradient(135deg, #132F3D, #0f2430);
    position: relative;
}

.team-cta h3 {
    font-size: 30px;
    font-weight: 600;
    color: #e1c885;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.team-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 32px; /* Controlled spacing */
    line-height: 1.6;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 14px 42px;
    background: #e1c885;
    color: #132F3D;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hover – Dim Gold */
.cta-btn:hover {
    background: #cbb06a; /* Dim gold */
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* ================= BOARD PREMIUM UPGRADE ================= */

/* Subtle separation before Board */
.section-title + .team-grid {
    margin-bottom: 50px;
}

.section-title {
    margin-top: 140px;
}

/* Slightly elevate board cards only */
.section-title + .team-grid .team-card {
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
    border-left: 5px solid #e1c885;
}

/* ================= LEGAL PAGE WRAPPER ================= */

.legal-container {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
}

/* Two column layout */
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
}

/* ================= SIDEBAR ================= */

.legal-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.toc {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(225,200,133,0.15);
    border-radius: 10px;
    padding: 25px;
}

.toc h4 {
    color: #e1c885;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    text-decoration: none;
    color: #9ca9b3;
    font-size: 14px;
    transition: 0.3s;
}

.toc a:hover {
    color: #e1c885;
    padding-left: 4px;
}

/* ================= CONTENT ================= */

.legal-content {
    max-width: 800px;
}

.legal-header {
    margin-bottom: 50px;
}

.legal-header h2 {
    color: #e1c885;
    margin-bottom: 8px;
}

.effective-date {
    font-size: 14px;
    opacity: 0.7;
}

/* ================= LEGAL BLOCK ================= */

.legal-block {
    margin-bottom: 45px;
    line-height: 1.8;
}

.legal-block h3 {
    color: #e1c885;
    font-size: 20px;
    margin-bottom: 12px;
}

.legal-block p {
    margin-bottom: 12px;
    color: #cfd6db;
}

.legal-block ul {
    padding-left: 20px;
    margin: 12px 0;
}

.legal-block li {
    margin-bottom: 8px;
}

/* Elegant divider between sections */

.legal-block:not(:last-child)::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 30px;
    background: linear-gradient(to right, transparent, rgba(225,200,133,0.4), transparent);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

}

body.legal-page {
    min-height: 100vh;
}

.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COMPACT TEAM LAYOUT AND CAREER CTA ===== */
.team-hero {
    min-height: 260px;
    height: 35vh;
    max-height: 380px;
    margin-top: 80px;
    background: linear-gradient(rgba(8,26,34,0.8), rgba(8,26,34,0.88)), url('/GT-Website/assets/images/adedeji.jpg') center 22%/cover no-repeat;
}

.team-wrapper {
    max-width: 1240px;
    margin: clamp(48px, 6vw, 72px) auto;
    padding: 0 clamp(16px, 4vw, 28px);
}

.team-group + .team-group {
    margin-top: clamp(48px, 6vw, 66px);
}

.team-wrapper .section-title {
    margin: 0 auto clamp(34px, 5vw, 48px);
    font-size: clamp(27px, 3vw, 34px);
    letter-spacing: 0;
}

.team-wrapper .section-title::after {
    bottom: -14px;
    height: 2px;
    width: 54px;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
    gap: clamp(18px, 2.6vw, 26px);
    margin-top: 0;
}

.team-grid + .section-title,
.section-title + .team-grid {
    margin-bottom: 0;
}

.team-card {
    border-left: 3px solid #e1c885;
    border-radius: 8px;
    background: #173442;
    box-shadow: 0 16px 38px rgba(0,0,0,0.2);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.3);
}

.image-wrapper {
    aspect-ratio: 0.92;
}

.expand-btn {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(225,200,133,0.3);
}

.card-content {
    min-height: 86px;
    padding: 17px 13px 18px;
}

.card-content h3 {
    font-size: 19px;
}

.card-content span {
    margin-top: 7px;
    line-height: 1.35;
}

.modal {
    padding: clamp(16px, 4vw, 36px);
}

.modal-content {
    max-width: 980px;
}

.modal-left {
    padding: clamp(28px, 5vw, 42px);
}

.team-cta {
    min-height: clamp(300px, 37vw, 410px);
    padding: clamp(46px, 8vw, 70px) 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(8,26,34,0.9), rgba(15,44,56,0.77), rgba(8,26,34,0.9)),
        url('/GT-Website/assets/images/career-cta-bg.png') center/cover no-repeat;
    border-top: 1px solid rgba(225,200,133,0.2);
    border-bottom: 1px solid rgba(225,200,133,0.2);
}

.team-cta-content {
    width: min(740px, 100%);
    text-align: center;
}

.team-cta-kicker {
    margin: 0 auto 12px !important;
    color: #e1c885 !important;
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-cta h3 {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(31px, 5vw, 46px);
    line-height: 1.12;
    letter-spacing: 0;
}

.team-cta p:not(.team-cta-kicker) {
    max-width: 590px;
    margin: 0 auto 27px;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
}

.team-cta .cta-btn {
    padding: 14px 32px;
    border-radius: 6px;
    background: #e1c885;
    color: #102833;
    font-weight: 700;
}

@media (max-width: 992px) {
    .team-hero {
        margin-top: 72px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .team-wrapper {
        margin: 42px auto 50px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 355px;
        margin-left: auto;
        margin-right: auto;
    }

    .image-wrapper {
        aspect-ratio: 1 / 0.9;
    }

    .team-cta {
        min-height: 300px;
        padding: 42px 18px;
        background-position: 67% center;
    }
}
