/* ===== SVG Icon Utilities ===== */

/* Inline SVG icon inside .contact section info-icon box */
.contact .info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-bottom: 0;
}
.contact .info-icon svg {
    width: 22px;
    height: 22px;
}

/* Service card — invert icon to white on hover */
.service-card:hover .service-icon {
    color: white;
}

/* Challenge card accent colour */
.challenge-card:hover .challenge-icon {
    color: var(--primary-dark);
}

/* How-to section icon */
.ht-icon {
    color: #0ea5e9;
}

/* For-Whom icon */
.fw-icon svg {
    stroke: #38bdf8;
}
.fw-item:hover .fw-icon svg {
    stroke: #0ea5e9;
}

/* Footer logo icon */
.footer-brand .logo-icon svg {
    stroke: white;
}

/* ===== Futuristic Leadership Section ===== */
.leadership-section {
    /* Break out of the .aj-inner (max-width:960px) container to full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 4rem;
    padding: 5rem clamp(1.5rem, 6vw, 6rem);
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    background-color: #1a1a1a; /* Dark futuristic base */
    /* Subtle tiled grid pattern, faintly visible */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.10), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.10), transparent 45%);
    background-size:
        48px 48px,
        48px 48px,
        100% 100%,
        100% 100%;
    background-position: center;
    overflow: hidden;
}

/* Soft vignette so tiles fade at the edges for a subtle UI feel */
.leadership-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 0;
}

.leadership-section > * {
    position: relative;
    z-index: 1;
}

.leadership-header {
    text-align: center;
    margin-bottom: 4rem;
}

.leadership-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.leadership-header p {
    color: #a3a3a3;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.leadership-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

/* ===== Flip Card ===== */
.leader-card {
    width: 250px;
    height: 360px;
    perspective: 1400px;
    background: transparent;
}

.leader-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.leader-card:hover .leader-card-inner {
    transform: rotateY(180deg);
}

.leader-card-front,
.leader-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.leader-card-front {
    background: linear-gradient(180deg, #313131 0%, #242424 100%);
    padding: 2rem 1.5rem;
    justify-content: flex-start;
}

.leader-card-back {
    background: linear-gradient(155deg, #2d2b4a 0%, #1e1e1e 70%);
    transform: rotateY(180deg);
    justify-content: center;
    padding: 0.8rem;
}

.leader-img-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 4px solid rgba(255, 255, 255, 0.12);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info h3,
.leader-back-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.leader-info .leader-role {
    font-size: 0.9rem;
    color: #bbb;
}

/* Email shown on the front of the card */
.leader-card-front .leader-img-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
}
.leader-contact-front {
    margin-top: 0.6rem;
}
.leader-contact-front .leader-contact-item {
    font-size: 0.74rem;
}

.leader-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.leader-desc-full {
    font-size: 0.78rem;
    color: #d0d0d8;
    line-height: 1.55;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-line;
    text-align: left;
    padding: 0 0.25rem;
}

.leader-desc-full::-webkit-scrollbar {
    width: 4px;
}
.leader-desc-full::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.leader-contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.25rem;
    width: 100%;
}

.leader-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #c7c7d1;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.leader-contact-item:hover {
    color: #818cf8;
}

.leader-contact-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: #818cf8;
}

/* Initials fallback when no photo */
.leader-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

/* Section subtitles */
.section-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .leadership-section {
        padding: 4rem 1.5rem;
    }
    .leadership-header h2 {
        font-size: 2.5rem;
    }
    .leadership-header p {
        font-size: 1rem;
    }
    .leadership-grid {
        gap: 2rem;
    }
    .leader-card {
        width: 240px;
        height: 350px;
    }
    .leader-img-wrapper {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .leadership-section {
        padding: 3rem 1.5rem;
        margin-top: 3rem;
    }
    .leadership-header {
        margin-bottom: 2.5rem;
    }
    .leadership-header h2 {
        font-size: 2rem;
    }
    .leadership-header p {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .leadership-grid {
        gap: 1.5rem;
        justify-content: space-around;
    }
    .leader-card {
        width: 220px;
        height: 340px;
    }
    .leader-img-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
    }
    .leader-info h3,
    .leader-back-content h3 {
        font-size: 1.05rem;
    }
    .leader-info .leader-role {
        font-size: 0.85rem;
    }
    .leader-contact-item {
        font-size: 0.74rem;
    }
    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 600px) {
    .leadership-section {
        padding: 2.5rem 1rem;
        margin-top: 2rem;
    }
    .leadership-header {
        margin-bottom: 2rem;
    }
    .leadership-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    .leadership-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .leadership-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
    .leader-card {
        width: 100%;
        max-width: 280px;
        height: 360px;
    }
    .leader-img-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
    .leader-info h3,
    .leader-back-content h3 {
        font-size: 1.05rem;
    }
    .leader-info .leader-role {
        font-size: 0.82rem;
    }
    .leader-contact {
        gap: 0.35rem;
        margin-top: 0.5rem;
    }
    .leader-contact-item {
        font-size: 0.72rem;
    }
    .leader-initials {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.65rem;
    }
}

@media (max-width: 480px) {
    .leadership-section {
        padding: 2rem 0.75rem;
        margin-top: 1.5rem;
    }
    .leadership-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .leadership-header p {
        font-size: 0.85rem;
    }
    .leadership-grid {
        gap: 1rem;
    }
    .leader-card {
        width: 90%;
        max-width: 250px;
        height: 350px;
    }
    .leader-img-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 0.75rem;
    }
    .leader-info h3,
    .leader-back-content h3 {
        font-size: 0.98rem;
    }
    .leader-info .leader-role {
        font-size: 0.8rem;
    }
    .leader-contact {
        gap: 0.3rem;
        margin-top: 0.4rem;
    }
    .leader-contact-item {
        font-size: 0.66rem;
    }
    .leader-contact-item svg {
        width: 13px;
        height: 13px;
    }
    .leader-initials {
        font-size: 1.75rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
}
