/**
 * Responsive styles for Officers single template
 * 
 * Adding responsive behavior to match the events template
 *
 * @package Nilea_Plugin
 */

/* Officer layout structure for single officer page */
.department-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.department-sidebar {
    flex: 0 0 250px;
    position: relative;
}

.department-content-area {
    flex: 1;
    min-width: 0; /* Fix for flexbox items with long content */
}

/* Responsive layout for tablets and mobile */
@media (max-width: 768px) {
    .department-layout {
        flex-direction: column;
    }
    
    .department-sidebar {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
    }
    
    .department-content-area {
        flex: 0 0 100%;
    }
    
    /* Navigation menu becomes horizontal on mobile */
    .department-nav {
        background-color: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .department-menu {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .department-menu .menu-item {
        margin: 0;
        flex: 1 1 auto;
    }
    
    .department-menu .menu-item a {
        padding: 10px 15px;
        display: block;
        text-align: center;
    }
    
    /* Improve officer details display on mobile */
    .officer-details dl {
        grid-template-columns: 1fr;
    }
    
    .officer-details dl dt {
        font-weight: bold;
        color: #333;
        padding: 0.5rem 0 0.25rem;
    }
    
    .officer-details dl dd {
        margin: 0 0 0.5rem;
        padding: 0 0 0.5rem;
        border-bottom: 1px solid #eaeaea;
    }
    
    /* Fix any tables on mobile */
    .tabulator {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .officer-main-content {
        padding: 1rem;
    }
}
