/*
 * LSL Employee Grid Styles
 * Version 1.9.3 (Mobile Padding Fix)
 */

/* --- Page Body Transition --- */
body {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

html.lsl-panel-open {
    overflow: hidden;
}

/* --- Grid Styles --- */
.lsl-employee-grid-container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 20px; padding: 20px 0; }
.lsl-employee-card { border: none; background-color: transparent; text-align: center; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.lsl-employee-card:hover, .lsl-employee-card:focus { transform: translateY(-5px); }
.lsl-card-image-wrapper { margin-bottom: 15px; }
.lsl-card-image-wrapper img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: box-shadow 0.3s ease; }
.lsl-employee-card:hover .lsl-card-image-wrapper img { box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.lsl-image-placeholder { width: 160px; height: 160px; border-radius: 50%; background-color: #e0e0e0; margin: 0 auto; }
.lsl-card-content { padding: 0; }
.lsl-card-name { margin: 0 0 5px 0; font-size: 1.2em; color: #333; font-weight: 600; }
.lsl-card-title { margin: 0; font-size: 1em; color: #777; font-weight: normal; }

/* --- Slide-in Panel Styles --- */
.lsl-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.lsl-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 500px;
    max-width: 90%;
    background-color: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}
/* UPDATED: Increased bottom padding */
.lsl-panel-body-content {
    padding: 40px 40px 100px 40px; /* Added 100px padding to the bottom */
    text-align: center;
}

/* --- State when panel is open --- */
body.lsl-panel-open { overflow: hidden; }
body.lsl-panel-open .lsl-panel-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
body.lsl-panel-open .lsl-slide-panel { transform: translateX(0); }

/* Content inside the panel */
.lsl-panel-photo-wrapper { margin-bottom: 20px; }
.lsl-panel-photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 5px solid #f0f0f0; margin: 0 auto; display: block; }
.lsl-image-placeholder-panel { width: 180px; height: 180px; background-color: #ddd; border-radius: 50%; margin: 0 auto; }
.lsl-panel-name { margin: 0 0 5px 0; font-size: 1.5em; color: #222; font-weight: 300; }
.lsl-panel-title { margin: 0 0 25px 0; font-size: 1.3em; color: #666; font-weight: 400; }
.lsl-panel-contact-info { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #eee; }
.lsl-contact-item { margin: 0 0 12px 0; font-size: .8em; color: #555; }
.lsl-contact-item:last-child { margin-bottom: 0; }
.lsl-contact-item strong { color: #333; }
.lsl-contact-item a { color: #0073aa; text-decoration: none; }
.lsl-contact-item a:hover { text-decoration: underline; }
.lsl-contact-linkedin a { display: inline-block; background-color: #0077b5; color: #fff; padding: 10px 20px; border-radius: 5px; font-weight: bold; text-decoration: none; transition: background-color 0.2s ease; }
.lsl-contact-linkedin a:hover { background-color: #005e94; }
.lsl-panel-bio { font-size: 1em; line-height: 1.7; color: #444; text-align: left; }
.lsl-panel-bio p:last-child { margin-bottom: 0; }
.lsl-panel-bio h2 { font-size: 1.3em; }
.lsl-panel-close-button { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 3em; line-height: 1; color: #aaa; cursor: pointer; transition: color 0.2s ease, transform 0.2s ease; }
.lsl-panel-close-button:hover { color: #333; transform: rotate(90deg); }

/* Panel Actions & Full Profile Button */
.lsl-panel-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.lsl-full-profile-button {
    display: inline-block;
    background-color: #00a19b;
    color: #fff;
    border: 2px solid #00a19b;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.lsl-full-profile-button:visited {
    color: #fff;
}
.lsl-full-profile-button:hover {
    background-color: #fff;
    color: #00a19b;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) { .lsl-employee-grid-container { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .lsl-employee-grid-container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .lsl-employee-grid-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lsl-employee-grid-container { grid-template-columns: 1fr; } }