/* EVV GLOBAL STYLES - VERSION 5.9 */

/* --- LAYOUT --- */
body.evv-takeover-active { margin: 0; padding: 0; background: #fff; }
.evv-library-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Source Serif 4', serif;
    color: #334155;
    background: #fff;
}

/* --- SITE HEADER --- */
.evv-site-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 20px; }
.evv-header-inner { max-width: 1100px; margin: 0 auto; }
.evv-site-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: bold; color: #0f172a; text-decoration: none; }

/* --- HEROES --- */
.evv-hero, .evv-single-header {
    background-color: #0f172a; /* NAVY */
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-bottom: 4px solid #BFA046; /* GOLD */
    border-radius: 4px;
    margin-bottom: 30px;
}
.evv-hero h1, .evv-single-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}
.evv-hero p { font-family: 'Source Serif 4', serif; font-size: 1.2rem; color: #e2e8f0; font-style: italic; margin-top: 15px; }

/* --- SINGLE PAGE ELEMENTS --- */
.evv-audio-container { width: 100%; margin: 20px 0; }
.evv-audio-player { width: 100%; display: block; }

.evv-video-accordion { margin: 20px 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.evv-video-trigger {
    background: #f8fafc; padding: 15px 20px; font-weight: bold; color: #0f172a; cursor: pointer;
    list-style: none; display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-size: 1.1rem;
}
.evv-video-trigger::-webkit-details-marker { display: none; } 
.evv-icon-toggle {
    display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px;
    background: #64748b; color: #fff; border-radius: 50%; font-size: 20px; font-weight: bold; line-height: 1; transition: transform 0.2s;
}
details[open] .evv-icon-toggle { transform: rotate(45deg); background: #0f172a; }
.evv-video-container { background: #000; padding-bottom: 56.25%; position: relative; height: 0; width: 100%; }
.evv-video-embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.evv-downloads-bar {
    margin: 25px 0 10px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px;
    background: #f8fafc; border-radius: 8px 8px 0 0; border: 1px solid #e2e8f0; border-bottom: none;
}
.evv-back-container {
    background: #f1f5f9; padding: 10px 15px; border: 1px solid #e2e8f0; border-top: 1px solid #e2e8f0; border-radius: 0 0 8px 8px; margin-bottom: 30px;
}
.evv-back-link { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; color: #64748b; text-decoration: none; letter-spacing: 0.5px; }
.evv-back-link:hover { color: #0f172a; text-decoration: underline; }

.evv-download-label { font-weight: 700; text-transform: uppercase; font-size: 11px; color: #64748b; margin-right: 5px; }
.evv-pill {
    display: inline-flex; align-items: center; background-color: #BFA046; color: #0f172a;
    padding: 8px 18px; border-radius: 4px; font-size: 12px; font-weight: 800; text-decoration: none;
    text-transform: uppercase; transition: all 0.2s ease; border: 1px solid #A88A38;
}
.evv-pill:hover { background-color: #0f172a; color: #BFA046; transform: translateY(-2px); }

.evv-content { font-size: 1.15rem; line-height: 1.8; color: #1e293b; max-width: 800px; margin: 40px auto; }
.evv-content h2 { font-family: 'Playfair Display', serif; color: #0f172a; margin-top: 40px; }
.evv-content blockquote { border-left: 4px solid #BFA046; padding-left: 20px; font-style: italic; color: #475569; }

.evv-footer-tags { margin-top: 60px; padding-top: 20px; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.evv-meta-tag { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }

/* --- HOME GRID & SEARCH --- */
.evv-search-tank { background: #f8fafc; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 40px; }
.evv-search-tank form { display: flex; gap: 10px; flex-wrap: wrap; }
.evv-search-tank input[type="text"], .evv-search-tank select { padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; }

.evv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.evv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px; transition: transform 0.2s; display: flex; flex-direction: column; }
.evv-card:hover { transform: translateY(-3px); border-color: #BFA046; }

/* FIX: STRICT IMAGE ASPECT RATIO (Prevents tall cards) */
.evv-media-preview-wrapper {
    margin: -25px -25px 20px -25px; /* Pull to edges */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.evv-media-preview-wrapper img { 
    width: 100%; 
    height: 180px; /* Fixed height */
    object-fit: cover; /* Crops center */
    display: block; 
}

.evv-card-title a { text-decoration: none; color: #0f172a; font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.evv-read-more { display: inline-block; margin-top: auto; color: #0f172a; text-decoration: underline; font-weight: bold; }

/* --- PAGINATION (Fixed) --- */
.evv-pagination { margin-top: 50px; text-align: center; }
.evv-pagination ul {
    display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.evv-pagination li { margin: 0; }
.evv-pagination a, .evv-pagination span {
    display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #cbd5e1;
    border-radius: 4px; color: #0f172a; text-decoration: none; font-weight: bold;
    transition: all 0.2s;
}
.evv-pagination a:hover { border-color: #0f172a; background: #f8fafc; }
.evv-pagination .current { background: #0f172a; color: #fff; border-color: #0f172a; }

.evv-footer { text-align: center; padding: 40px; background: #0f172a; color: #fff; margin-top: 60px; }
.evv-footer-links a { color: #BFA046; text-decoration: none; }


/* Force ALL Footer Links to Gold */
.evv-footer-links a, 
.evv-footer-links a:visited, 
.evv-footer-links a:active {
    color: #BFA046 !important;
    text-decoration: none;
    font-weight: normal;
}
.evv-footer-links a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
