/* Team Page Specific Styles */

/* Page-specific body adjustments */
body {
    display: flex;
    flex-direction: column;
}

/* Main Content */
main {
    flex: 1;
    padding: 60px 0;
}

/* Title and Navigation Section */
.title-nav-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 40px;
}

.title-content {
    flex: 1;
    max-width: 600px;
}

.main-title {
    font-size: 48px;
    font-weight: bold;
    color: #B8A06F;
    margin-bottom: 5px;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: #B8A06F;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 2px;
    align-self: flex-start;
    margin-top: 10px; /* Align with title baseline */
}

.nav-submenu .nav-link {
    font-size: 14px;
    text-align: right;
}

/* Team Section */
.team-section {
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background-color: rgba(217, 185, 110, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(217, 185, 110, 0.15);
}

.team-image {
    width: 100%;
    margin-bottom: 20px;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #1a5962;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #B8A06F;
    line-height: 1.3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background-color: #0F2F35;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close {
    color: #B8A06F;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close:hover,
.close:focus {
    background-color: rgba(184, 160, 111, 0.1);
    text-decoration: none;
}

.modal-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #1a5962;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #B8A06F;
    margin-bottom: 10px;
}

.modal-info .position {
    font-size: 16px;
    color: rgba(184, 160, 111, 0.8);
    margin-bottom: 15px;
    font-style: italic;
}

.modal-info .description {
    font-size: 15px;
    color: rgba(184, 160, 111, 0.9);
    line-height: 1.6;
    text-align: justify;
}

/* Mobile Responsive Design - Preserving Desktop Look */

/* Tablet Layout */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .title-nav-section {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    
    .nav-submenu {
        flex-direction: row;
        gap: 5px;
        align-self: center;
    }
    
    .nav-submenu .nav-link {
        text-align: center;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-card {
        padding: 25px 20px;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .team-card:active {
        transform: scale(0.98);
    }
    
    .team-image {
        margin-bottom: 20px;
    }
    
    .team-image img {
        height: 250px;
    }
}

/* Small Mobile Layout */
@media (max-width: 480px) {
    .main-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .team-grid {
        gap: 20px;
    }
    
    .team-card {
        padding: 20px 15px;
    }
    
    .team-image img {
        height: 220px;
        object-position: 50% 25%;
    }
    
    .team-name {
        font-size: 16px;
        line-height: 1.3;
    }
} 