
/* ===========================================
   ERCS International - Team Profile Page
   =========================================== */

.profile-hero,
.profile-section {
    --profile-navy: #142b43;
    --profile-gold: #b69a6a;
    --profile-text: #526071;
    --profile-ivory: #faf8f3;
}

.profile-hero {
    background: linear-gradient(135deg, #faf8f3, #ffffff);
    padding: 95px 0 75px;
    position: relative;
}

.profile-hero .container,
.profile-section .container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-bottom: 35px;
    color: #7c8793;
}

.profile-breadcrumb a {
    text-decoration: none;
    color: var(--profile-navy);
}

.profile-eyebrow {
    display: inline-block;
    color: var(--profile-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.profile-hero h1 {
    color: var(--profile-navy);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 18px;
}

.profile-hero p {
    color: var(--profile-text);
    font-size: 17px;
}

/* Main profile layout */

.profile-section {
    padding: 90px 0 110px;
    background: #ffffff;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 75px;
    align-items: start;
}

/* Profile image */

.profile-image-card {
    overflow: hidden;
    background: var(--profile-ivory);
    border-radius: 10px;
}

.profile-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Contact card */

.profile-contact-card {
    margin-top: 30px;
    padding: 30px;
    background: var(--profile-ivory);
    border: 1px solid #eee9df;
    border-radius: 10px;
}

.profile-contact-card h2 {
    font-size: 22px;
    color: var(--profile-navy);
    margin: 0 0 28px;
}

.profile-contact-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 20px;
    overflow-wrap: anywhere;
}

.profile-contact-item span {
    color: var(--profile-text);
    font-size: 13px;
    font-weight: 600;
}

.profile-contact-item a {
    font-size: 15px;
    color: var(--profile-navy);
    text-decoration: none;
}

.profile-contact-item a:hover {
    color: var(--profile-gold);
}

/* Main content */

.profile-main {
    min-width: 0;
}

.profile-main h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--profile-navy);
}

.profile-designation {
    color: var(--profile-gold);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 30px;
}

.profile-intro p,
.profile-biography p {
    color: var(--profile-text);
    font-size: 15px;
    line-height: 1.95;
    margin-bottom: 18px;
}

/* Skills */

.profile-skills {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.profile-skills h3,
.profile-biography h3 {
    font-size: 25px;
    color: var(--profile-navy);
    margin: 0 0 26px;
}

.skill-item {
    margin-bottom: 28px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--profile-navy);
}

.skill-top strong {
    color: var(--profile-gold);
}

.skill-track {
    width: 100%;
    height: 7px;
    background: #ebe9e5;
    border-radius: 20px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #142b43, #b69a6a);
    border-radius: 20px;
}

/* Biography */

.profile-biography {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e8e8e8;
}

/* Back button */

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 24px;
    margin-top: 30px;
    background: var(--profile-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.25s ease,
                transform 0.25s ease;
}

.profile-back-btn:hover {
    color: #ffffff;
    background: #294763;
    transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .profile-sidebar {
        max-width: 520px;
    }

    .profile-section {
        padding: 65px 0;
    }
}

@media (max-width: 600px) {
    .profile-hero {
        padding: 65px 0 50px;
    }

    .profile-section {
        padding: 45px 0 70px;
    }

    .profile-hero .container,
    .profile-section .container {
        width: calc(100% - 32px);
    }

    .profile-contact-card {
        padding: 24px;
    }

    .profile-skills h3,
    .profile-biography h3 {
        font-size: 22px;
    }
}
/* Team Image Clickable */
.team-photo a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.team-photo a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-photo a:hover img {
    transform: scale(1.04);
}

/* Team Name Link */
.team-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-body h3 a:hover {
    color: #b69a6a;
}


/* Director Social Link */

.profile-social {
    margin-bottom: 28px;
}

.profile-social a {
    display: inline-flex;
    align-items: center;
    color: #142b43;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #b69a6a;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.profile-social a:hover {
    color: #b69a6a;
}
