/* General resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background-color: white;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    padding-top: 10px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-width: 100px;
    height: auto;
}

.contact {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.contact a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 24px;
    display: block;
    cursor: pointer;
    margin-left: 10px;
}

/* Navigation pane */
.nav-pane {
    position: fixed;
    left: -100%;
    top: 0;
    width: 28%;
    height: 100%;
    background-color: #f4f4f4;
    padding: 20px;
    transition: left 0.4s ease;
    z-index: 1000;
}

.nav-pane.open {
    left: 0;
}

.nav-pane ul {
    list-style-type: none;
    padding: 0;
    margin-top: 5em;
    margin-left: 2em;
}

.nav-pane ul li {
    margin: 20px 0;
}

.nav-pane ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 10px;
}

.nav-pane ul li a:hover {
    color: coral;
}

/* Close button styling */
.close-btn {
    font-size: 45px;
    cursor: pointer;
    position: absolute;
    top: 1.5em;
    right: 30px;
}

.close-btn:hover {
    color: coral;
}

/* Footer styling */
.footer {
    text-align: center;
    margin-top: 50px;
    font-size: 1rem;
    color: black;
}

/* ===========================
   Mentorship (page-specific)
   =========================== */

.mentorship {
    margin-top: 50px;
    text-align: left;
}

.mentorship h1 {
    text-align: center;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 16px;
}

.mentorship .mentorship-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 28px;
}

/* Grid of mentees */
.mentorship .mentees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}

/* Card */
.mentorship .mentee-card {
    background: #fff;
    border: 1px solid #e7e7e9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mentorship .mentee-card:hover,
.mentorship .mentee-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    border-color: #d8d8dc;
}

/* Link + photo */
.mentorship .mentee-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.mentorship .mentee-photo {
    position: relative;
    aspect-ratio: 1 / 1;  /* square */
    overflow: hidden;
    background: #f2f2f4;
}

.mentorship .mentee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.001);
    transition: transform 220ms ease;
}

.mentorship .mentee-link:hover .mentee-photo img,
.mentorship .mentee-link:focus .mentee-photo img {
    transform: scale(1.035);
}

/* Hover overlay */
.mentorship .photo-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.15));
    opacity: 0;
    transition: opacity 200ms ease;
}

.mentorship .mentee-link:hover .photo-overlay,
.mentorship .mentee-link:focus .photo-overlay {
    opacity: 1;
}

.mentorship .overlay-text {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    color: #fff;
    backdrop-filter: blur(2px);
}

/* Meta */
.mentorship .mentee-meta {
    padding: 14px 14px 16px;
}

.mentorship .mentee-name {
    margin: 0 0 6px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

.mentorship .mentee-blurb {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #444;
}

/* Keyboard focus */
.mentorship .mentee-link:focus .mentee-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    outline: 2px solid #7aa2ff;
    outline-offset: -2px;
    pointer-events: none;
}

/* Responsive styles */
@media (max-width: 768px) {

    .menu-icon {
        display: block;
    }

    .nav-pane {
        width: 100%;
    }

    .mentorship h1 {
        font-size: 2rem;
        text-align: center;
    }

    .logo img {
        max-width: 80px;
        height: auto;
    }

    .mentorship .mentees-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 80px;
    }
    .nav-pane {
        width: 100%;
    }
    .mentorship .mentees-grid {
        grid-template-columns: 1fr;
    }
}
