/* VCE 2026 Core Brand Styles - WCAG 2.1 AA Compliant */
:root {
    /* Mathematically verified for 4.5:1+ contrast ratios */
    --vce-maroon: #861F41;      /* VCE Maroon */
    --vce-dark-blue: #002D72;   /* VCE Heritage Blue */
    --vce-hokie-orange: #E87722;/* Secondary Accent */
    --vce-white: #ffffff;
    --vce-light-grey: #f4f4f4;
    --vce-dark-grey: #333333;
}

body {
    font-family: 'Epilogue', sans-serif; /* VCE Primary Font */
    color: var(--vce-dark-grey); 
    background-color: var(--vce-white);
    line-height: 1.6;
    margin: 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--vce-maroon);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- NAVIGATION STYLES --- */
nav[role="navigation"] ul li a {
    text-decoration: none;
    color: #002D72 !important; /* Heritage Blue - High Contrast */
    font-weight: 800 !important; 
    transition: color 0.2s;
}

nav[role="navigation"] ul li a:hover,
nav[role="navigation"] ul li a:focus {
    color: var(--vce-maroon) !important;
    text-decoration: underline;
}

/* Specific fix for the Login link button style in Nav */
nav[role="navigation"] ul li a[href*="login.php"] {
    color: var(--vce-maroon) !important;
    border: 2px solid var(--vce-maroon);
    padding: 6px 15px;
    border-radius: 4px;
}

nav[role="navigation"] ul li a[href*="login.php"]:hover {
    background-color: var(--vce-maroon) !important;
    color: white !important;
}

/* --- GLOBAL COMPONENT STYLES --- */
.vce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vce-page-header h1 {
    color: var(--vce-maroon);
    border-bottom: 4px solid var(--vce-maroon);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.file-tile {
    background: var(--vce-white);
    border: 1px solid #ddd;
    border-left: 8px solid var(--vce-dark-blue); 
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ACCESSIBLE BUTTON CLASS 
   This fixes the "Events" button contrast error.
*/
.vce-button {
    background-color: #861F41 !important; /* Maroon background */
    color: #ffffff !important;           /* Pure white text */
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 800;                    /* High weight for readability */
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.vce-button:hover, .vce-button:focus {
    background-color: #002D72 !important; /* Dark Blue on hover */
    color: #ffffff !important;
}

.btn-filter {
    background: var(--vce-white);
    color: var(--vce-dark-blue);
    border: 2px solid var(--vce-dark-blue);
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--vce-dark-blue);
    color: var(--vce-white);
}