/* ======================= Team Hero Section ============================ */
.team-hero-section {
    background: linear-gradient(135deg, #2c3e5d 0%, #1f2937 100%);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px
    );
    background-size: 50px 50px;
    animation: teamMoveBackground 20s linear infinite;
}

@keyframes teamMoveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.team-floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.team-floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    animation: teamFloat 6s ease-in-out infinite;
}

.team-floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.team-floating-icon:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 2s;
    font-size: 2.5rem;
}

.team-floating-icon:nth-child(3) {
    top: 80%;
    left: 15%;
    animation-delay: 4s;
    font-size: 2rem;
}

.team-floating-icon:nth-child(4) {
    top: 20%;
    left: 80%;
    animation-delay: 1s;
    font-size: 2.8rem;
}

.team-floating-icon:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
    font-size: 2.3rem;
}

@keyframes teamFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.team-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.team-icon-container {
    margin-bottom: 30px;
    animation: teamScaleIn 0.6s ease-out;
}

.team-main-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #ffffff;
    font-size: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: teamPulse 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@keyframes teamPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    }
}

@keyframes teamScaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.team-hero-title {
    font-size: 3.8rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: teamFadeInUp 0.8s ease-out;
    letter-spacing: 1px;
}

.team-hero-tagline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.8px;
    animation: teamFadeInUp 1s ease-out;
    line-height: 1.6;
    margin-bottom: 30px;
}

.team-decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.7),
        transparent
    );
    margin: 0 auto 30px;
    animation: teamExpandLine 1.2s ease-out;
}

@keyframes teamExpandLine {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes teamFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: teamSparkleAnim 3s ease-in-out infinite;
    opacity: 0;
}

.team-sparkle:nth-child(6) {
    top: 25%;
    left: 20%;
    animation-delay: 0.5s;
}

.team-sparkle:nth-child(7) {
    top: 70%;
    left: 75%;
    animation-delay: 1.5s;
}

.team-sparkle:nth-child(8) {
    top: 40%;
    left: 85%;
    animation-delay: 2.5s;
}

@keyframes teamSparkleAnim {
    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======================= Team Navigation Bar ============================ */
.team-department-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(235, 117, 87, 0.3);
}

.team-nav-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.team-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    position: relative;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #eb7557 #1f2937;
}

.team-nav-container::-webkit-scrollbar {
    height: 4px;
}

.team-nav-container::-webkit-scrollbar-track {
    background: #1f2937;
}

.team-nav-container::-webkit-scrollbar-thumb {
    background: #eb7557;
    border-radius: 4px;
}

.team-nav-item {
    flex: 1;
    min-width: 200px;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    text-align: center;
    padding: 28px 20px;
    overflow: hidden;
}

.team-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #eb7557, #5ba7dc);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.team-nav-item:hover::before,
.team-nav-item.active::before {
    width: 100%;
}

.team-nav-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(235, 117, 87, 0.2), transparent);
    transition: all 0.4s ease;
    border-radius: 50%;
    pointer-events: none;
}

.team-nav-item:hover .team-nav-glow {
    width: 200%;
    height: 200%;
}

.team-nav-item.active .team-nav-glow {
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(235, 117, 87, 0.15), transparent);
}

.team-nav-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.team-nav-icon-wrapper i {
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-nav-item:hover .team-nav-icon-wrapper {
    background: rgba(235, 117, 87, 0.15);
    border-color: rgba(235, 117, 87, 0.5);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(235, 117, 87, 0.3);
}

.team-nav-item.active .team-nav-icon-wrapper {
    background: rgba(235, 117, 87, 0.2);
    border-color: #eb7557;
    box-shadow: 0 0 30px rgba(235, 117, 87, 0.5);
    animation: teamNavPulse 2s ease-in-out infinite;
}

@keyframes teamNavPulse {
    0%,
    100% {
        box-shadow: 0 0 30px rgba(235, 117, 87, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(235, 117, 87, 0.7);
    }
}

.team-nav-item:hover .team-nav-icon-wrapper i,
.team-nav-item.active .team-nav-icon-wrapper i {
    color: #eb7557;
    transform: scale(1.2);
}

.team-nav-text {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.team-nav-item:hover,
.team-nav-item.active {
    color: #eb7557;
}

.team-nav-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.team-nav-item.active {
    background: rgba(235, 117, 87, 0.05);
}

.team-nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #eb7557, #5ba7dc);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20%;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 20px rgba(235, 117, 87, 0.6);
}

/* ======================= Team Sections ============================ */
.team-main-sections {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.team-section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-department-section {
    display: none;
    animation: teamFadeIn 0.6s ease-out;
}

.team-department-section.active {
    display: block;
}

@keyframes teamFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-department-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.team-dept-title {
    font-size: 2.8rem;
    color: #2c3e5d;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.team-dept-title i {
    font-size: 2.2rem;
    color: #eb7557;
}

.team-dept-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

.team-department-header::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #eb7557, #5ba7dc);
    margin: 25px auto 0;
    border-radius: 2px;
}

/* ======================= Team Grid ============================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.team-member-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 5px solid #eb7557;
}

.team-member-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(235, 117, 87, 0.05),
        rgba(91, 167, 220, 0.05)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(235, 117, 87, 0.2);
}

.team-member-card:hover::after {
    opacity: 1;
}

.team-member-photo-container {
    padding: 40px 40px 20px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(235, 117, 87, 0.03),
        transparent
    );
}

.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #eb7557;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    box-shadow: 0 10px 30px rgba(235, 117, 87, 0.25);
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(235, 117, 87, 0.35);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.team-member-card:hover .team-member-photo img {
    transform: scale(1.1);
}

.team-member-content {
    padding: 20px 40px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-member-name {
    color: #2c3e5d;
    font-size: 1.7rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.team-member-role {
    text-align: center;
    color: #eb7557;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.team-member-preview {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.8;
    flex: 1;
}

.team-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #eb7557 0%, #5ba7dc 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 5px 20px rgba(235, 117, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.team-more-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.team-more-btn:hover::before {
    left: 100%;
}

.team-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(235, 117, 87, 0.5);
}

.team-more-btn i {
    transition: transform 0.3s ease;
}

.team-more-btn:hover i {
    transform: translateX(5px);
}

/* ======================= Team Modal ============================ */
.team-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 93, 0.9);
    animation: teamFadeIn 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

.team-modal-content {
    background: white;
    margin: 50px auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: teamSlideDown 0.4s ease;
    position: relative;
    overflow: hidden;
}

@keyframes teamSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.team-modal-header {
    background: linear-gradient(135deg, #eb7557 0%, #2c3e5d 100%);
    color: white;
    padding: 45px;
    border-radius: 25px 25px 0 0;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.team-modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.team-modal-header-text h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.team-modal-header-text .team-modal-role {
    font-size: 1.2rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 600;
}

.team-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    line-height: 1;
}

.team-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.team-modal-body {
    padding: 50px;
    background: #ffffff;
}

.team-member-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(
        135deg,
        rgba(235, 117, 87, 0.05) 0%,
        rgba(91, 167, 220, 0.05) 100%
    );
    border-radius: 15px;
    border-left: 5px solid #eb7557;
    transition: all 0.3s ease;
}

.team-member-section:hover {
    background: linear-gradient(
        135deg,
        rgba(235, 117, 87, 0.1) 0%,
        rgba(91, 167, 220, 0.1) 100%
    );
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(235, 117, 87, 0.15);
}

.team-member-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e5d;
    font-weight: 700;
}

.team-member-section h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #eb7557;
    font-size: 1.3rem;
}

.team-member-section:nth-child(1) h3::before {
    content: "\f4fc";
}
.team-member-section:nth-child(2) h3::before {
    content: "\f59f";
}
.team-member-section:nth-child(3) h3::before {
    content: "\f0b1";
}
.team-member-section:nth-child(4) h3::before {
    content: "\f004";
}

.team-member-section p {
    color: #495057;
    line-height: 1.9;
    font-size: 1.1rem;
}

/* ======================= Responsive Design ============================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .team-hero-section {
        padding: 100px 20px;
    }

    .team-hero-title {
        font-size: 3.2rem;
    }

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

    .team-dept-title {
        font-size: 2.4rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .team-hero-section {
        padding: 80px 20px;
    }

    .team-main-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .team-hero-title {
        font-size: 2.8rem;
    }

    .team-hero-tagline {
        font-size: 1.2rem;
    }

    .team-floating-icon {
        font-size: 2rem !important;
    }

    .team-department-nav {
        position: relative;
    }

    .team-nav-container {
        justify-content: flex-start;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .team-nav-item {
        min-width: 160px;
        padding: 24px 15px;
        font-size: 0.95rem;
    }

    .team-nav-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .team-nav-icon-wrapper i {
        font-size: 1.4rem;
    }

    .team-dept-title {
        font-size: 2.2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .team-member-photo {
        width: 160px;
        height: 160px;
    }

    .team-member-content {
        padding: 20px 30px 35px;
    }

    .team-modal-content {
        width: 95%;
        margin: 30px auto;
    }

    .team-modal-header {
        padding: 40px;
    }

    .team-modal-photo {
        width: 130px;
        height: 130px;
    }

    .team-modal-body {
        padding: 40px;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .team-hero-section {
        padding: 70px 15px;
    }

    .team-main-icon {
        width: 90px;
        height: 90px;
        font-size: 2.8rem;
    }

    .team-hero-title {
        font-size: 2.4rem;
    }

    .team-hero-tagline {
        font-size: 1.1rem;
    }

    .team-main-sections {
        padding: 60px 15px;
    }

    .team-nav-item {
        min-width: 150px;
        padding: 22px 12px;
        font-size: 0.9rem;
    }

    .team-nav-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .team-nav-icon-wrapper i {
        font-size: 1.3rem;
    }

    .team-dept-title {
        font-size: 2rem;
    }

    .team-dept-subtitle {
        font-size: 1.1rem;
    }

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

    .team-member-photo {
        width: 150px;
        height: 150px;
    }

    .team-member-name {
        font-size: 1.5rem;
    }

    .team-member-role {
        font-size: 1rem;
    }

    .team-member-preview {
        font-size: 1rem;
    }

    .team-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 35px;
    }

    .team-modal-photo {
        width: 120px;
        height: 120px;
    }

    .team-modal-header-text h2 {
        font-size: 2rem;
    }

    .team-modal-header-text .team-modal-role {
        font-size: 1.1rem;
    }

    .team-modal-body {
        padding: 35px;
    }

    .team-member-section {
        padding: 25px;
    }

    .team-member-section h3 {
        font-size: 1.4rem;
    }
}

/* Mobile Portrait (480px - 575px) */
@media (max-width: 575px) {
    .team-hero-section {
        padding: 60px 15px;
    }

    .team-main-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .team-hero-title {
        font-size: 2rem;
    }

    .team-hero-tagline {
        font-size: 1rem;
    }

    .team-floating-icon {
        font-size: 1.5rem !important;
    }

    .team-nav-item {
        min-width: 140px;
        padding: 20px 10px;
        font-size: 0.85rem;
    }

    .team-nav-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .team-nav-icon-wrapper i {
        font-size: 1.2rem;
    }

    .team-nav-text {
        font-size: 0.85rem;
    }

    .team-dept-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .team-dept-subtitle {
        font-size: 1rem;
    }

    .team-member-photo-container {
        padding: 30px 30px 15px;
    }

    .team-member-photo {
        width: 140px;
        height: 140px;
        border: 5px solid #eb7557;
    }

    .team-member-content {
        padding: 15px 25px 30px;
    }

    .team-member-name {
        font-size: 1.4rem;
    }

    .team-member-role {
        font-size: 0.95rem;
    }

    .team-member-preview {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .team-more-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .team-modal-content {
        margin: 20px auto;
    }

    .team-modal-header {
        padding: 30px 25px;
    }

    .team-modal-photo {
        width: 110px;
        height: 110px;
        border: 5px solid rgba(255, 255, 255, 0.3);
    }

    .team-modal-header-text h2 {
        font-size: 1.8rem;
    }

    .team-modal-header-text .team-modal-role {
        font-size: 1rem;
    }

    .team-close-btn {
        width: 45px;
        height: 45px;
        font-size: 2.2rem;
        top: 20px;
        right: 20px;
    }

    .team-modal-body {
        padding: 30px 25px;
    }

    .team-member-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .team-member-section h3 {
        font-size: 1.3rem;
        gap: 12px;
    }

    .team-member-section h3::before {
        font-size: 1.1rem;
    }

    .team-member-section p {
        font-size: 1rem;
    }
}

/* Extra Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .team-hero-section {
        padding: 50px 10px;
    }

    .team-main-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }

    .team-hero-title {
        font-size: 1.8rem;
    }

    .team-hero-tagline {
        font-size: 0.95rem;
    }

    .team-main-sections {
        padding: 50px 10px;
    }

    .team-nav-item {
        min-width: 130px;
        padding: 18px 8px;
        font-size: 0.8rem;
        gap: 10px;
    }

    .team-nav-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .team-nav-icon-wrapper i {
        font-size: 1.1rem;
    }

    .team-dept-title {
        font-size: 1.6rem;
    }

    .team-dept-title i {
        font-size: 1.8rem;
    }

    .team-grid {
        gap: 20px;
    }

    .team-member-card {
        border-radius: 15px;
    }

    .team-member-photo {
        width: 130px;
        height: 130px;
    }

    .team-member-content {
        padding: 15px 20px 25px;
    }

    .team-member-name {
        font-size: 1.3rem;
    }

    .team-modal-content {
        border-radius: 20px;
    }

    .team-modal-header {
        border-radius: 20px 20px 0 0;
        padding: 25px 20px;
    }

    .team-modal-photo {
        width: 100px;
        height: 100px;
    }

    .team-modal-header-text h2 {
        font-size: 1.6rem;
    }

    .team-modal-body {
        padding: 25px 20px;
    }

    .team-member-section {
        padding: 18px;
        border-radius: 12px;
    }
}
