@import './base.css';

/* Container layout */
.temaun-staff-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Responsive: 2 columns on mobile */
@media (max-width: 768px) {
    .temaun-staff-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Staff card element */
.temaun-staff-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

/* Hover animation */
.temaun-staff-card:hover {
    transform: translateY(-5px);
}

/* Staff avatar */
.temaun-staff-avatar img {
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    max-height: 160px;
    min-height: 160px;
    min-width: 160px;
}

/* Staff info section */
.temaun-staff-info {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.temaun-staff-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.temaun-staff-department,
.temaun-staff-positions {
    font-size: 14px;
    color: #666;
}

/* Card footer */
.temaun-staff-footer {
    background: #f5f5f5;
    padding: 12px;
    width: 100%;
    border-radius: 0 0 12px 12px;
    font-weight: bold;
}

/* Social links group */
.temaun-staff-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.temaun-staff-socials a {
    font-size: 16px;
    color: #555;
    transition: color 0.2s;
}

.temaun-staff-socials a:hover {
    color: #007bff;
}

/* Enhanced social button layout */
.temaun-staff-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.temaun-staff-socials a {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.temaun-staff-socials a:hover {
    transform: scale(1.1);
}

.temaun-social-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Author box component */
.temaun-author-box {
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #ebebeb;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* Header: avatar and info row */
.temaun-author-box .author-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Avatar block */
.temaun-author-box .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.temaun-author-box .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info block next to avatar */
.temaun-author-box .author-info-block {
    display: flex;
    align-items: center;
}

.temaun-author-box .author-info {
    flex: 1;
    margin-left: 15px;
}

.temaun-author-box .author-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.temaun-author-box .author-title {
    font-size: 13px;
}

.temaun-author-box .branch-title {
    font-size: 11px;
}

/* Social links section */
.temaun-author-box .author-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.temaun-author-box .author-social img {
    width: 36px !important;
    height: 36px !important;
}

.temaun-author-box .author-social a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

/* Biography text block */
.temaun-author-box .author-bio {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .temaun-author-box .author-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .temaun-author-box .author-info-block {
        margin-bottom: 10px;
    }

    .temaun-author-box .author-social {
        align-items: center;
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

/* END author box */
