/**
 * Our Staff - Attractive front styles
 * Inspired by the provided design: soft yellow background, white cards,
 * teal circular photos & borders, clean typography.
 *
 * @author xAI-Han
 */

/* Page container */
.ourstaff-page {
    background: linear-gradient(180deg, #fff9e6 0%, #fff3cc 40%, #ffefb8 100%);
    padding: 40px 20px 60px;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* Title */
.ourstaff-header {
    text-align: center;
    margin-bottom: 40px;
}

.ourstaff-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a2a4a;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.ourstaff-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00b4b4;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Grid */
.ourstaff-grid {
    display: grid;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.ourstaff-cols-1 { grid-template-columns: 1fr; }
.ourstaff-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ourstaff-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ourstaff-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .ourstaff-cols-3,
    .ourstaff-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ourstaff-cols-2,
    .ourstaff-cols-3,
    .ourstaff-cols-4 {
        grid-template-columns: 1fr;
    }
    .ourstaff-title {
        font-size: 1.8rem;
    }
}

/* Card */
.ourstaff-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 80, 100, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.ourstaff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 120, 140, 0.15);
}

.ourstaff-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 22px;
}

/* Photo */
.ourstaff-photo-wrap {
    flex-shrink: 0;
}

.ourstaff-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #00b4b4;
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.15);
    display: block;
    background: #e8f7f7;
}

/* Info */
.ourstaff-info {
    flex: 1;
    min-width: 0;
}

.ourstaff-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a4a;
    margin: 0 0 10px;
    line-height: 1.35;
}

.ourstaff-desc {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.55;
    margin-bottom: 12px;
    border: 1px solid #c8e8e8;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8fcfc;
}

.ourstaff-desc p {
    margin: 0 0 0.5em;
}

.ourstaff-desc p:last-child {
    margin-bottom: 0;
}

/* Social icons */
.ourstaff-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6f7f7;
    color: #00a0a0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #00b4b4;
    color: #fff;
    transform: scale(1.1);
}

.social-twitter:hover { background: #1da1f2; }
.social-facebook:hover { background: #1877f2; }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-linkedin:hover { background: #0a66c2; }

/* Responsive card layout: stack on very small screens */
@media (max-width: 480px) {
    .ourstaff-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ourstaff-photo {
        width: 130px;
        height: 130px;
    }
    .ourstaff-social {
        justify-content: center;
    }
}

/* Homepage block extra */
.ourstaff-home-block {
    margin-top: 20px;
    margin-bottom: 40px;
}

.ourstaff-view-all {
    margin-top: 30px;
}

.ourstaff-btn {
    background: #00b4b4 !important;
    border-color: #00b4b4 !important;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    display: inline-block;
}

.ourstaff-btn:hover {
    background: #008f8f !important;
    border-color: #008f8f !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 180, 0.35);
}
