* {
    box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6, button, a, li, span {
    font-family: "Roboto", Arial, sans-serif;
}

body {
    background-color: #f5f5f9;
    background-size: cover;
    width: auto;
    overflow-x: hidden;
    font-family: "Roboto", Arial, sans-serif;
    margin: 0;
    color: #172033;
}

/* Navigation */

.nav-bar {
    width: 100%;
    background-color: #1C539F;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 700;
    padding: 10px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 210px;
    max-width: 100%;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    border-bottom: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Existing profile pages */

.profile {
    background-color: #1d539f !important;
    text-align: center;
    height: 320px;
    margin-bottom: 50px;
    padding-top: 20px;
}

.profile h1 {
    font-size: 50px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.profile img {
    border-radius: 50%;
    max-width: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 20px;
}

.profile .profile-picture {
    margin-bottom: 30px;
    height: 200px;
}

.profile-small {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner {
    padding: 20px 0 50px 0;
    height: 150px;
    background-color: #1d539f;
}

.banner .logo {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
}

.banner .title {
    color: white;
    font-size: 50px;
    font-weight: 700;
}

.content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    color: #1d539f;
    border-bottom: 2px solid #1d539f;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.section p {
    line-height: 1.7;
    color: #374151;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 20px 24px;
    margin-bottom: 18px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    margin: 0;
}

.card-dates {
    color: #777;
    font-size: 0.9em;
}

.card-subtitle {
    color: #1d539f;
    font-weight: 500;
    margin: 4px 0 10px 0;
}

.card ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
    color: #374151;
}

.travel-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    background-color: #e8eef7;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.hobby-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 18px;
    text-align: center;
}

.hobby-card h3 {
    color: #172033;
    margin: 12px 0 8px;
}

.hobby-card p {
    color: #4b5563;
    line-height: 1.6;
}

.hobby-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Shared team homepage */

.team-homepage {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 64px 0 80px;
}

.team-hero {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 28px;
    padding: 56px 34px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
    margin-bottom: 34px;
    border: 1px solid rgba(28, 83, 159, 0.08);
}

.team-hero .eyebrow {
    color: #1c539f;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
    font-size: 14px;
}

.team-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    margin: 0 0 20px;
    color: #172033;
    font-weight: 900;
}

.team-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.75;
}

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

.team-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 38px 34px;
    text-align: center;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(28, 83, 159, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.team-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, #1c539f, #315fb3);
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    border: 8px solid #eaf1ff;
    box-shadow: 0 10px 28px rgba(28, 83, 159, 0.20);
}

.team-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto 22px;
    background: white;
    border: 8px solid #eaf1ff;
    box-shadow: 0 10px 28px rgba(28, 83, 159, 0.20);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-body {
    flex: 1;
}

.team-card h2 {
    margin: 0;
    color: #172033;
    font-size: 30px;
    font-weight: 900;
}

.team-role {
    color: #1c539f;
    font-weight: 800;
    margin: 12px 0 16px;
    font-size: 16px;
}

.team-description {
    color: #4b5563;
    line-height: 1.75;
    margin: 0 auto 26px;
    max-width: 420px;
    font-size: 16px;
}

.team-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.team-actions.single-action {
    margin-top: 28px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1c539f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(28, 83, 159, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button-link:hover {
    background: #16427d;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(28, 83, 159, 0.28);
}

.button-link.secondary {
    background: #eef4ff;
    color: #1c539f;
    box-shadow: none;
}

.button-link.secondary:hover {
    background: #dceafe;
    box-shadow: none;
}

/* Aziz portfolio page */

.person-hero {
    width: min(1120px, 92%);
    margin: 54px auto 42px;
    text-align: center;
    background: linear-gradient(135deg, #1c539f 0%, #315fb3 100%);
    color: white;
    border-radius: 28px;
    padding: 56px 32px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.person-hero .eyebrow {
    color: #dbeafe;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    font-size: 14px;
}

.person-hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    margin: 0 0 18px;
    font-weight: 900;
}

.person-hero p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #eef4ff;
    font-size: 18px;
    line-height: 1.75;
}

.person-avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    background: white;
    color: #1c539f;
    font-size: 38px;
    font-weight: 900;
    border: 8px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.person-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    margin: 0 auto 22px;
    background: white;
    border: 8px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-hero .button-link {
    background: white;
    color: #1c539f;
    box-shadow: none;
}

.person-hero .button-link:hover {
    background: #eef4ff;
    box-shadow: none;
}

.person-hero .button-link.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.person-hero .button-link.secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}

.person-content {
    max-width: 900px;
}

.map-card {
    background-color: white;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    margin-top: 18px;
}

#aziz-travel-map {
    height: 420px;
    width: 100%;
    border-radius: 14px;
}

/* Responsive */

@media (max-width: 850px) {
    .nav-content {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-hero {
        padding: 40px 24px;
    }

    .team-card {
        min-height: auto;
    }

    .profile h1 {
        font-size: 38px;
    }
}

@media (max-width: 650px) {
    .person-hero {
        margin-top: 34px;
        padding: 42px 22px;
    }

    .person-hero h1 {
        font-size: 42px;
    }

    #aziz-travel-map {
        height: 340px;
    }
}

@media (max-width: 520px) {
    .team-homepage {
        width: min(94%, 1120px);
        padding: 38px 0 56px;
    }

    .team-hero h1 {
        font-size: 34px;
    }

    .team-hero p {
        font-size: 16px;
    }

    .team-card {
        padding: 30px 22px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 14px;
    }
}



/* Aziz hobbies page */

.aziz-hobby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.aziz-hobby-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(28, 83, 159, 0.08);
}

.aziz-hobby-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.aziz-hobby-content {
    padding: 22px;
    text-align: center;
}

.aziz-hobby-content h3 {
    color: #172033;
    font-size: 22px;
    margin: 0 0 10px;
}

.aziz-hobby-content p {
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 850px) {
    .aziz-hobby-grid {
        grid-template-columns: 1fr;
    }

    .aziz-hobby-image {
        height: 240px;
    }
}


/* Final shared styling improvements */

.hobby-grid {
    max-width: 920px;
    margin: 0 auto;
    justify-content: center;
}

.hobby-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card,
.card,
.hobby-card,
.aziz-hobby-card,
.team-hero,
.person-hero {
    animation: fadeInUp 0.35s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Image safety fixes */

.team-photo,
.person-photo {
    overflow: hidden;
}

.team-photo img,
.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    border-radius: 0;
}

.aziz-hobby-image {
    object-fit: cover;
}