/* Representative List Styles */
:root {
    --rep-primary: #2563eb;
    --rep-accent: #3b82f6;
    --rep-bg: #f8fafc;
    --rep-text: #1e293b;
    --rep-text-muted: #64748b;
    --rep-card-bg: #ffffff;
    --rep-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --rep-radius: 12px;
}

.rep-list-container {
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--rep-text);
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.rep-category-section {
    margin-bottom: 40px;
}

.rep-category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--rep-primary);
    display: inline-block;
    color: var(--rep-primary);
}

.rep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.rep-card {
    background: var(--rep-card-bg);
    border-radius: var(--rep-radius);
    overflow: hidden;
    box-shadow: var(--rep-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e2e8f0;
}

.rep-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.rep-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f1f5f9;
}

.rep-card-content {
    padding: 20px;
    text-align: center;
}

.rep-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--rep-text);
}

.rep-designation-label {
    font-size: 14px;
    color: var(--rep-text-muted);
    margin-bottom: 10px;
}

.rep-area {
    font-size: 14px;
    color: #475569;
    margin-bottom: 15px;
}

.rep-btn {
    display: inline-block;
    background: var(--rep-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.rep-btn:hover {
    background: var(--rep-accent);
    color: #fff;
}

.rep-empty-msg {
    text-align: center;
    padding: 30px;
    background: #f1f5f9;
    border-radius: var(--rep-radius);
    color: var(--rep-text-muted);
    font-style: italic;
    border: 2px dashed #cbd5e1;
}

/* Modal/Details Overlay */
.rep-modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.rep-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--rep-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    overflow: hidden;
    animation: repFadeIn 0.3s ease;
}

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

.rep-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.rep-modal-header {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.rep-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.rep-modal-title-wrap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
}

.rep-modal-body {
    padding: 30px;
}

.rep-info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.rep-info-label {
    width: 100px;
    font-weight: bold;
    color: var(--rep-primary);
}

.rep-info-value {
    flex: 1;
}

/* Animations */
.rep-card:nth-child(1) { animation-delay: 0.1s; }
.rep-card:nth-child(2) { animation-delay: 0.2s; }
.rep-card:nth-child(3) { animation-delay: 0.3s; }
.rep-card:animate {
    animation: slideUp 0.5s ease backwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
