/**
 * EduPaperHub Scholarship Theme - Main Styles
 * Colors: Royal Blue #1E40AF, Light Blue #3B82F6, Gold #F59E0B
 */

:root {
    --eph-primary: #1E40AF;
    --eph-primary-dark: #1E3A8A;
    --eph-primary-light: #3B82F6;
    --eph-primary-50: #EFF6FF;
    --eph-primary-100: #DBEAFE;
    --eph-primary-200: #BFDBFE;
    --eph-accent: #F59E0B;
    --eph-accent-dark: #D97706;
    --eph-accent-light: #FCD34D;
    --eph-success: #10B981;
    --eph-warning: #F59E0B;
    --eph-danger: #EF4444;
    --eph-text: #1F2937;
    --eph-text-light: #6B7280;
    --eph-text-lighter: #9CA3AF;
    --eph-bg: #FFFFFF;
    --eph-bg-light: #F8FAFC;
    --eph-bg-gray: #F1F5F9;
    --eph-border: #E5E7EB;
    --eph-border-light: #F3F4F6;
    --eph-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --eph-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --eph-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --eph-radius: 10px;
    --eph-radius-lg: 16px;
    --eph-radius-sm: 6px;
    --eph-transition: all 0.25s ease;
    --eph-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --eph-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --eph-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--eph-font-body);
    color: var(--eph-text);
    background: var(--eph-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--eph-container);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--eph-primary); text-decoration: none; transition: var(--eph-transition); }
a:hover { color: var(--eph-primary-dark); }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--eph-font-heading); color: var(--eph-text); line-height: 1.3; font-weight: 700; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ========== HEADER ========== */
.site-header { position: relative; z-index: 100; }

.header-top {
    background: var(--eph-primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.social-links-header { display: flex; gap: 12px; }
.social-links-header .social-link {
    color: rgba(255,255,255,0.7);
    display: flex; align-items: center; transition: var(--eph-transition);
}
.social-links-header .social-link:hover { color: #fff; }

.header-main {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 14px 0;
}
.header-main-inner { display: flex; align-items: center; gap: 32px; }

.site-branding .site-title-link {
    display: flex; align-items: center; gap: 10px;
    color: var(--eph-primary); font-family: var(--eph-font-heading);
    font-size: 22px; font-weight: 800; text-decoration: none;
}
.site-logo-icon { color: var(--eph-primary); display: flex; }

.header-search { flex: 1; max-width: 420px; margin-left: auto; }
.header-search-form {
    display: flex; border: 2px solid var(--eph-border); border-radius: 50px;
    overflow: hidden; transition: var(--eph-transition);
}
.header-search-form:focus-within { border-color: var(--eph-primary); box-shadow: 0 0 0 3px rgba(30,64,175,0.1); }
.header-search-input {
    flex: 1; border: none; padding: 10px 18px; font-size: 14px;
    font-family: var(--eph-font-body); outline: none; background: transparent;
}
.header-search-btn {
    background: var(--eph-primary); color: #fff; border: none; padding: 10px 18px;
    cursor: pointer; display: flex; align-items: center; transition: var(--eph-transition);
}
.header-search-btn:hover { background: var(--eph-primary-dark); }

/* Main Navigation */
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; list-style: none; gap: 4px; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
    display: block; padding: 10px 16px; font-size: 15px; font-weight: 500;
    color: var(--eph-text); border-radius: var(--eph-radius-sm); transition: var(--eph-transition);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    color: var(--eph-primary); background: var(--eph-primary-50);
}
.main-navigation ul li ul {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 220px; box-shadow: var(--eph-shadow-lg);
    border-radius: var(--eph-radius); padding: 8px 0; z-index: 200;
    border: 1px solid var(--eph-border-light);
}
.main-navigation ul li:hover > ul { display: block; }
.main-navigation ul li ul li a { padding: 8px 20px; font-size: 14px; border-radius: 0; }
.main-navigation ul li ul li a:hover { background: var(--eph-primary-50); }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    align-items: center; gap: 8px; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--eph-text);
}
.menu-icon { display: flex; flex-direction: column; gap: 4px; }
.menu-icon span {
    display: block; width: 22px; height: 2px; background: var(--eph-text);
    border-radius: 2px; transition: var(--eph-transition);
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--eph-accent); color: #fff; font-weight: 600;
    padding: 12px 28px; border-radius: 50px; font-size: 15px;
    transition: var(--eph-transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--eph-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--eph-primary); font-weight: 600;
    padding: 12px 28px; border-radius: 50px; font-size: 15px;
    transition: var(--eph-transition); border: 2px solid var(--eph-primary); cursor: pointer;
}
.btn-secondary:hover { background: var(--eph-primary); color: #fff; }

/* ========== FOOTER ========== */
.footer-newsletter {
    background: linear-gradient(135deg, var(--eph-primary) 0%, var(--eph-primary-light) 100%);
    padding: 50px 0;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter-title { color: #fff; font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.newsletter-desc { color: rgba(255,255,255,0.8); font-size: 15px; }
.newsletter-form { flex-shrink: 0; }
.subscribe-form { display: flex; gap: 0; }
.newsletter-input {
    padding: 14px 22px; border: none; border-radius: 50px 0 0 50px;
    font-size: 15px; width: 300px; font-family: var(--eph-font-body);
    outline: none;
}
.newsletter-btn {
    padding: 14px 30px; background: var(--eph-accent); color: #fff;
    border: none; border-radius: 0 50px 50px 0; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: var(--eph-transition);
    font-family: var(--eph-font-body);
}
.newsletter-btn:hover { background: var(--eph-accent-dark); }

.footer-main { background: var(--eph-text); color: rgba(255,255,255,0.75); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo .site-title-link {
    display: flex; align-items: center; gap: 10px; color: #fff;
    font-family: var(--eph-font-heading); font-size: 20px; font-weight: 700;
}
.footer-about-text { margin: 16px 0 20px; font-size: 14px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; }
.footer-social .social-link {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    border-radius: 50%; transition: var(--eph-transition);
}
.footer-social .social-link:hover { background: var(--eph-primary-light); color: #fff; }

.footer-heading { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; transition: var(--eph-transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
    background: rgba(0,0,0,0.2); padding: 18px 0;
}
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.copyright { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-bottom-links a:hover { color: #fff; }

/* ========== SECTION HEADERS ========== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-title {
    font-size: 24px; display: flex; align-items: center; gap: 10px; color: var(--eph-text);
}
.section-title svg { color: var(--eph-primary); }
.section-link { color: var(--eph-primary); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--eph-primary-dark); }

/* ========== SCHOLARSHIP CARDS ========== */
.scholarship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.scholarship-card {
    background: #fff; border-radius: var(--eph-radius-lg); overflow: hidden;
    box-shadow: var(--eph-shadow); transition: var(--eph-transition);
    border: 1px solid var(--eph-border-light); display: flex; flex-direction: column;
}
.scholarship-card:hover { transform: translateY(-4px); box-shadow: var(--eph-shadow-lg); }

.card-image { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--eph-bg-gray); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.scholarship-card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--eph-primary-50), var(--eph-primary-100));
    color: var(--eph-primary-light);
}

.card-badge {
    position: absolute; top: 12px; padding: 5px 12px; border-radius: 50px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.card-badge.funded, .card-badge.fully-funded { background: var(--eph-success); color: #fff; right: 12px; }
.card-badge.partial, .card-badge.full-tuition, .card-badge.tuition-stipend { background: var(--eph-primary); color: #fff; right: 12px; }
.card-badge.stipend { background: #8B5CF6; color: #fff; right: 12px; }
.card-badge.featured-badge { background: var(--eph-accent); color: #fff; left: 12px; right: auto; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.meta-country {
    display: flex; align-items: center; gap: 5px; font-size: 13px;
    color: var(--eph-text-light); font-weight: 500;
}
.meta-country svg { color: var(--eph-primary-light); }
.meta-amount { font-size: 13px; color: var(--eph-success); font-weight: 600; }

.card-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; flex: 1; }
.card-title a { color: var(--eph-text); }
.card-title a:hover { color: var(--eph-primary); }

.card-excerpt { font-size: 13px; color: var(--eph-text-light); line-height: 1.6; margin-bottom: 12px; }

.card-meta-bottom { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.meta-deadline {
    display: flex; align-items: center; gap: 5px; font-size: 12px;
    font-weight: 600; padding: 4px 10px; border-radius: 50px;
}
.meta-deadline.open { background: #ECFDF5; color: #065F46; }
.meta-deadline.open svg { color: var(--eph-success); }
.meta-deadline.closing-soon { background: #FEF3C7; color: #92400E; }
.meta-deadline.closing-soon svg { color: var(--eph-warning); }
.meta-deadline.expired { background: #FEE2E2; color: #991B1B; }
.meta-deadline.expired svg { color: var(--eph-danger); }
.meta-deadline.unknown { background: var(--eph-bg-gray); color: var(--eph-text-light); }

.meta-views { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--eph-text-lighter); }

.card-btn {
    display: block; text-align: center; padding: 10px 20px;
    background: var(--eph-primary-50); color: var(--eph-primary);
    border-radius: var(--eph-radius-sm); font-weight: 600; font-size: 14px;
    transition: var(--eph-transition); border: 1px solid var(--eph-primary-100);
}
.card-btn:hover { background: var(--eph-primary); color: #fff; }

/* ========== SINGLE SCHOLARSHIP ========== */
.scholarship-hero-image { border-radius: var(--eph-radius-lg); overflow: hidden; margin-bottom: 32px; max-height: 420px; }
.scholarship-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.scholarship-hero-placeholder {
    width: 100%; height: 320px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--eph-primary-50), var(--eph-primary-100));
    color: var(--eph-primary-light);
}

.scholarship-single-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }

.scholarship-header { margin-bottom: 32px; }
.scholarship-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
    padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-funding.fully-funded { background: #ECFDF5; color: #065F46; }
.badge-funding.partial { background: var(--eph-primary-50); color: var(--eph-primary); }
.badge-funding.full-tuition { background: var(--eph-primary-100); color: var(--eph-primary-dark); }
.badge-funding.stipend { background: #F3E8FF; color: #7C3AED; }
.badge-funding.tuition-stipend { background: #ECFDF5; color: #065F46; }
.badge-urgent { background: #FEF3C7; color: #92400E; }
.badge-degree { background: var(--eph-bg-gray); color: var(--eph-text-light); }

.scholarship-title { font-size: 30px; margin-bottom: 16px; line-height: 1.3; }
.scholarship-meta-row { display: flex; flex-wrap: wrap; gap: 20px; }
.scholarship-meta-row .meta-item {
    display: flex; align-items: center; gap: 6px; font-size: 15px;
    color: var(--eph-text-light);
}
.scholarship-meta-row .meta-item svg { color: var(--eph-primary-light); flex-shrink: 0; }
.scholarship-meta-row .meta-item.deadline { font-weight: 600; }
.scholarship-meta-row .meta-item.deadline.open { color: #065F46; }
.scholarship-meta-row .meta-item.deadline.closing-soon { color: #92400E; }

.scholarship-description { font-size: 16px; line-height: 1.8; margin-bottom: 36px; }
.scholarship-description p { margin-bottom: 16px; }

.scholarship-section { margin-bottom: 36px; }
.section-heading {
    display: flex; align-items: center; gap: 10px; font-size: 20px;
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--eph-primary-100);
}
.section-heading svg { color: var(--eph-primary); }

.checklist { list-style: none; }
.checklist li {
    padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--eph-border-light);
}
.checklist li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 18px; height: 18px; background: var(--eph-success); border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px; background-position: center; background-repeat: no-repeat;
}

.steps-list { list-style: none; counter-reset: step-counter; }
.steps-list li {
    padding: 14px 0 14px 50px; position: relative; border-bottom: 1px solid var(--eph-border-light);
    counter-increment: step-counter;
}
.steps-list li::before {
    content: counter(step-counter); position: absolute; left: 0; top: 10px;
    width: 30px; height: 30px; background: var(--eph-primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

/* Sidebar */
.sidebar-card {
    background: #fff; border: 1px solid var(--eph-border); border-radius: var(--eph-radius-lg);
    padding: 24px; margin-bottom: 24px;
}
.sidebar-card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 2px solid var(--eph-primary-100);
}
.summary-list { display: flex; flex-direction: column; gap: 14px; }
.summary-item { display: flex; flex-direction: column; gap: 4px; }
.summary-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--eph-text-light); font-weight: 600; }
.summary-value { font-size: 15px; font-weight: 600; color: var(--eph-text); }
.summary-value.deadline-value small { display: block; font-weight: 400; color: var(--eph-text-light); font-size: 12px; margin-top: 2px; }
.summary-value.deadline-value.closing-soon { color: #92400E; }

.apply-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 24px; background: var(--eph-accent); color: #fff;
    border-radius: var(--eph-radius); font-size: 16px; font-weight: 700;
    margin-top: 20px; transition: var(--eph-transition); text-decoration: none;
}
.apply-btn:hover { background: var(--eph-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,158,11,0.3); }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
    padding: 5px 14px; background: var(--eph-primary-50); color: var(--eph-primary);
    border-radius: 50px; font-size: 13px; font-weight: 500; transition: var(--eph-transition);
}
.sidebar-tag:hover { background: var(--eph-primary); color: #fff; }

.share-links { display: flex; gap: 10px; }
.share-link {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--eph-bg-gray); color: var(--eph-text-light);
    border-radius: 50%; transition: var(--eph-transition);
}
.share-link:hover { color: #fff; }
.share-link.facebook:hover { background: #1877F2; }
.share-link.twitter:hover { background: #1DA1F2; }
.share-link.linkedin:hover { background: #0A66C2; }
.share-link.whatsapp:hover { background: #25D366; }

/* Related Scholarships */
.related-scholarships { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--eph-border); }
.related-title { font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.related-title svg { color: var(--eph-primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card .card-body { padding: 16px; }
.related-card .card-title { font-size: 14px; margin-bottom: 8px; }

/* ========== ARCHIVE / LISTING ========== */
.archive-hero {
    background: linear-gradient(135deg, var(--eph-primary) 0%, var(--eph-primary-light) 100%);
    padding: 50px 0; color: #fff;
}
.archive-title { font-size: 32px; color: #fff; margin-bottom: 10px; }
.archive-desc { color: rgba(255,255,255,0.8); font-size: 16px; }

.archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; }

.archive-sidebar { position: sticky; top: 20px; align-self: start; }
.sidebar-toggle-mobile { display: none; }
.filter-toggle-btn {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 12px 18px; background: var(--eph-primary); color: #fff;
    border: none; border-radius: var(--eph-radius-sm); font-size: 15px;
    font-weight: 600; cursor: pointer;
}

.filter-form { background: #fff; border: 1px solid var(--eph-border); border-radius: var(--eph-radius-lg); padding: 24px; }
.filter-group { margin-bottom: 24px; }
.filter-title {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--eph-text); margin-bottom: 12px;
}
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
    display: flex; align-items: center; gap: 10px; font-size: 14px;
    color: var(--eph-text); cursor: pointer; padding: 6px 0;
}
.filter-option input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--eph-primary); cursor: pointer;
}
.filter-actions { display: flex; gap: 12px; margin-top: 8px; }
.filter-apply-btn {
    flex: 1; padding: 12px; background: var(--eph-primary); color: #fff;
    border: none; border-radius: var(--eph-radius-sm); font-weight: 600;
    font-size: 14px; cursor: pointer; transition: var(--eph-transition);
}
.filter-apply-btn:hover { background: var(--eph-primary-dark); }
.filter-reset-btn {
    padding: 12px 20px; background: transparent; color: var(--eph-text-light);
    border: 1px solid var(--eph-border); border-radius: var(--eph-radius-sm);
    font-weight: 500; font-size: 14px; cursor: pointer; transition: var(--eph-transition);
    text-decoration: none;
}
.filter-reset-btn:hover { border-color: var(--eph-primary); color: var(--eph-primary); }

.archive-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.results-count { font-size: 14px; color: var(--eph-text-light); }
.view-toggles { display: flex; gap: 4px; }
.view-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--eph-bg-gray); color: var(--eph-text-light); border: 1px solid var(--eph-border);
    border-radius: var(--eph-radius-sm); cursor: pointer; transition: var(--eph-transition);
}
.view-btn.active, .view-btn:hover { background: var(--eph-primary); color: #fff; border-color: var(--eph-primary); }

.no-results {
    grid-column: 1 / -1; text-align: center; padding: 80px 20px;
    color: var(--eph-text-light);
}
.no-results svg { color: var(--eph-border); margin-bottom: 16px; }
.no-results h3 { font-size: 20px; color: var(--eph-text); margin-bottom: 8px; }
.no-results p { margin-bottom: 20px; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links {
    display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.pagination .page-numbers {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    background: var(--eph-bg-gray); color: var(--eph-text); font-size: 14px;
    font-weight: 500; border-radius: var(--eph-radius-sm); border: 1px solid var(--eph-border);
    transition: var(--eph-transition); text-decoration: none;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
    background: var(--eph-primary); color: #fff; border-color: var(--eph-primary);
}

/* ========== 404 PAGE ========== */
.error-404-main { padding: 80px 0; }
.error-404-content { text-align: center; max-width: 500px; margin: 0 auto; }
.error-404-icon { color: var(--eph-border); margin-bottom: 24px; }
.error-404-title { font-size: 80px; color: var(--eph-primary); margin-bottom: 8px; }
.error-404-subtitle { font-size: 24px; margin-bottom: 12px; }
.error-404-desc { color: var(--eph-text-light); margin-bottom: 32px; }
.error-404-search { max-width: 450px; margin: 0 auto 32px; }
.error-404-links { display: flex; justify-content: center; gap: 16px; }

/* ========== PAGE TEMPLATES ========== */
.page-main { padding: 60px 0; }
.page-article { max-width: 800px; margin: 0 auto; }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 32px; }
.page-content { font-size: 16px; line-height: 1.8; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 16px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--eph-radius); margin: 24px 0; }

/* ========== SINGLE POST CONTENT ========== */
.single-post-content { font-size: 17px; line-height: 1.85; color: var(--eph-text); }
.single-post-content p { margin-bottom: 22px; }
.single-post-content h2 { margin: 40px 0 18px; font-size: 26px; font-family: var(--eph-font-heading); font-weight: 700; color: var(--eph-primary-dark); line-height: 1.3; }
.single-post-content h3 { margin: 32px 0 14px; font-size: 22px; font-family: var(--eph-font-heading); font-weight: 600; color: var(--eph-text); line-height: 1.35; }
.single-post-content h4 { margin: 28px 0 12px; font-size: 19px; font-family: var(--eph-font-heading); font-weight: 600; color: var(--eph-text); line-height: 1.4; }
.single-post-content ul, .single-post-content ol { margin: 16px 0 22px; padding-left: 0; text-align: center; list-style-position: inside; }
.single-post-content ul li, .single-post-content ol li { margin-bottom: 6px; }
.single-post-content ul li::before { color: var(--eph-primary); }
.single-post-content ol li { counter-increment: none; }
.single-post-content img { width: 100%; height: auto; border-radius: var(--eph-radius); margin: 24px 0; display: block; }
.single-post-content figure { margin: 24px 0; }
.single-post-content figure.wp-block-image { margin: 28px 0; }
.single-post-content figure.wp-block-image img { width: 100%; height: auto; }
.single-post-content table { margin: 24px 0; width: 100%; border-collapse: collapse; }
.single-post-content a { color: var(--eph-primary); text-decoration: underline; text-underline-offset: 2px; }
.single-post-content a:hover { color: var(--eph-primary-dark); }
.single-post-content blockquote { border-left: 4px solid var(--eph-primary); background: var(--eph-bg-light); padding: 16px 24px; margin: 24px 0; border-radius: 0 var(--eph-radius-sm) var(--eph-radius-sm) 0; font-style: italic; }
.single-post-content hr { border: none; height: 1px; background: var(--eph-border); margin: 32px 0; }
.single-post-content strong { font-weight: 700; }

/* Search Results */
.search-main { padding: 0 0 60px; }
.search-results-grid { padding: 40px 0; }
.search-query { color: var(--eph-accent); }
.post-type-badge {
    display: inline-block; padding: 3px 10px; background: var(--eph-primary-50);
    color: var(--eph-primary); font-size: 11px; font-weight: 600;
    text-transform: uppercase; border-radius: 50px; margin-bottom: 8px;
}
