

/* Container */
.staff-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Main Staff Card */
.staff-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 31, 77, 0.08);
    overflow: hidden;
    display: flex;
    min-height: 400px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.staff-card:hover {
    box-shadow: 0 12px 35px rgba(0, 31, 77, 0.12);
    transform: translateY(-2px);
}

/* Left Side - Full Height Image Section */
.staff-image-section {
    flex: 0 0 320px;
    position: relative;
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--brand-blue) 50%, var(--brand-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.no-image-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.no-image-text {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* Right Side - Staff Details Section */
.staff-details-section {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-header {
    margin-bottom: 2.5rem;
}

.staff-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.staff-position {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Info Grid: make each row flex */
.staff-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space between rows */
}

.info-item {
    display: flex;
    align-items: center; /* vertically center label and value */
    gap: 1rem;           /* space between label and value */
}

/* Label styling */
.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;               /* remove bottom margin */
    min-width: 120px;        /* fixed width to align labels vertically; adjust as needed */
    text-align: right;       /* optional: align label text to right */
    white-space: nowrap;     /* keep label on one line */
}

/* Value box styling */
.info-value {
    flex: 1; /* take remaining space */
    font-size: 1.125rem;
    color: var(--brand-dark);
    line-height: 1.6;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--brand-yellow);
}

/* Description Section - Below Card */
.description-container {
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 31, 77, 0.06);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.description-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--brand-dark), #002a66);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.description-toggle:hover {
    background: linear-gradient(135deg, #002a66, var(--brand-dark));
}

.toggle-text {
    font-family: inherit;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.description-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.description-content.expanded {
    max-height: 400px;
}

.description-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding: 2rem;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid var(--brand-yellow);
    padding-bottom: 0.5rem;
}

.description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.description-text p {
    margin-bottom: 1rem;
}

.description-text p:last-child {
    margin-bottom: 0;
}

/* Custom Scrollbar */
.description-scroll::-webkit-scrollbar {
    width: 6px;
}

.description-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.description-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-blue-light);
    border-radius: 3px;
}

.description-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}


@media (max-width: 768px) {
    .staff-details-page *,
    .staff-details-page *::before,
    .staff-details-page *::after {
        box-sizing: border-box;
    }

    .staff-detail-container {
        display: block;
        width: 100%;
        height: auto;
    }

    .staff-card {
        flex-direction: column;
        min-height: auto; /* Allow height to be determined by content */
        height: auto;
    }

    .staff-image-section {
        flex: none;
        width: 100%;
        height: 300px;
    }

    .staff-details-section {
        padding: 2rem 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        min-width: unset;
        text-align: left;
    }

    .info-value {
        width: 100%;
    }

    .staff-name {
        font-size: 2rem;
    }

    .staff-position {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}
}

