/**
 * Role Models Widget Styles
 * 
 * Save this file as: assets/css/style.css
 */

.role-models-wrapper {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Arial', sans-serif;
}

.rm-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.rm-main-title {
    font-size: 48px;
    font-weight: 800;
    color: #8B2F5A;
    margin: 0;
    letter-spacing: 8px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.rm-main-title::before,
.rm-main-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 120px;
    height: 2px;
    background-color: #8B2F5A;
}

.rm-main-title::before {
    right: calc(100% + 30px);
}

.rm-main-title::after {
    left: calc(100% + 30px);
}

.rm-title-icon {
    width: 60px;
    height: 60px;
    margin: 20px auto 0;
    color: #8B2F5A;
}

.rm-title-icon svg {
    width: 100%;
    height: 100%;
}

.rm-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.rm-card {
    background-color: #D4E8F0;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.rm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.rm-name {
    background-color: #1E4C7A;
    color: white;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rm-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rm-card:hover .rm-image img {
    transform: scale(1.05);
}

.rm-detail-section {
    background-color: #E8F1F7;
    padding: 25px;
    position: relative;
}

.rm-year {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #1E4C7A;
}

.rm-diamond {
    color: #8B2F5A;
    font-size: 14px;
}

.rm-branch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.rm-dot {
    color: #D4A574;
    font-size: 12px;
}

.rm-icon-badge {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #D4A574 0%, #C89968 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.rm-icon-badge svg {
    width: 40px;
    height: 40px;
}

.rm-position {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1E4C7A;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.4;
}

.rm-company {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-top: 10px;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rm-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .rm-main-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .rm-main-title::before,
    .rm-main-title::after {
        width: 80px;
    }

    .rm-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rm-image {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .role-models-wrapper {
        padding: 40px 15px;
    }

    .rm-main-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .rm-main-title::before,
    .rm-main-title::after {
        width: 50px;
    }

    .rm-title-icon {
        width: 45px;
        height: 45px;
    }

    .rm-name {
        font-size: 18px;
        padding: 15px;
    }

    .rm-image {
        height: 280px;
    }

    .rm-detail-section {
        padding: 20px;
    }
}

/* Animation Classes */
.rm-card.animated {
    opacity: 1;
    transform: translateY(0);
}