/* ═══════════════════════════════════════════════════════════════
   QUESTO HUB – SCHOLARSHIPS & TRAVEL (Directory, Tracker & Reviews)
   Luxury Dark Clinical System:
   Solid Charcoal (#1C1F26), Deep Inner (#14171E), Signature Gold (#D4AF37),
   Emerald Teal (#00C2A8), Floating Elevation Shadows, Minimal Executive Buttons
   ═══════════════════════════════════════════════════════════════ */

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

* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent !important;
}

html, body {
    background-color: #0F1115 !important;
    background: #0F1115 !important;
    background-image: none !important;
    color: #E2E8F0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   BULLETPROOF FONT AWESOME 6 ICON PROTECTION
   ═══════════════════════════════════════════════════════════════ */
.fa,
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fab,
.fa-brands,
[class*="fa-brands"] {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fa::before,
.fas::before,
.far::before,
.fab::before,
.fa-solid::before,
.fa-regular::before,
.fa-brands::before,
[class*="fa-"]::before {
    font-family: inherit !important;
    font-style: inherit !important;
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
    --sch-bg: #0F1115;
    --sch-surface: #1C1F26;
    --sch-surface-inner: #14171E;
    --sch-surface-hover: #222630;
    --sch-border: #252830;
    --sch-border-hover: rgba(212, 175, 55, 0.45);

    --sch-text: #FFFFFF;
    --sch-text-secondary: #E2E8F0;
    --sch-text-muted: #94A3B8;
    --sch-text-dim: #64748B;

    --sch-gold: #D4AF37;
    --sch-gold-bright: #F5D77F;
    --sch-gold-dim: rgba(212, 175, 55, 0.1);
    --sch-gold-border: rgba(212, 175, 55, 0.28);
    --sch-gold-glow: rgba(212, 175, 55, 0.14);

    --sch-teal: #00C2A8;
    --sch-teal-bright: #2DD4BF;
    --sch-teal-dim: rgba(0, 194, 168, 0.1);
    --sch-teal-border: rgba(0, 194, 168, 0.28);
    --sch-teal-glow: rgba(0, 194, 168, 0.14);

    --sch-danger: #FF4D6A;
    --sch-danger-dim: rgba(255, 77, 106, 0.1);
    --sch-danger-border: rgba(255, 77, 106, 0.3);

    --sch-warning: #F59E0B;
    --sch-warning-dim: rgba(245, 158, 11, 0.1);
    --sch-warning-border: rgba(245, 158, 11, 0.3);

    --sch-success: #10B981;
    --sch-success-dim: rgba(16, 185, 129, 0.1);
    --sch-success-border: rgba(16, 185, 129, 0.3);

    --sch-radius: 18px;
    --sch-radius-sm: 8px;
    --sch-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sch-shadow-card: 0 16px 38px -4px rgba(0, 0, 0, 0.72), 0 6px 16px -2px rgba(0, 0, 0, 0.50);
}

/* Faint Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Zero Button & Text Shadows */
button, .btn, .tab-link, .btn-apply, .btn-filter-apply-primary, .btn-filter-reset-secondary,
.btn-review-essay, .btn-submit-essay, .opp-page-btn, .btn-track {
    text-shadow: none !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.scholarships-page {
    max-width: 1280px;
    margin: 85px auto 40px;
    padding: 0 20px;
    font-family: "Inter", sans-serif;
    color: var(--sch-text-secondary);
}

@media (max-width: 768px) {
    .scholarships-page {
        margin: 75px auto 25px;
        padding: 0 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER BANNER (Matching Opportunities Hero Banner)
   ═══════════════════════════════════════════════════════════════ */
.scholarships-header {
    position: relative;
    background: var(--sch-surface) !important;
    border: 1px solid var(--sch-border) !important;
    border-top: 2.5px solid var(--sch-gold) !important;
    border-radius: var(--sch-radius);
    padding: 26px 30px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--sch-shadow-card) !important;
}

.scholarships-title {
    color: #FFFFFF !important;
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scholarships-title i {
    color: var(--sch-gold) !important;
    font-size: 1.35rem;
}

.scholarships-subtitle {
    color: var(--sch-text-muted) !important;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* Metric Stats Row in Header */
.scholarships-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-pill-card {
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-gold-border) !important;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    transition: var(--sch-transition);
}

.stat-pill-card:hover {
    border-color: var(--sch-gold) !important;
    background: var(--sch-gold-dim) !important;
    transform: translateY(-1px);
}

.stat-pill-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sch-gold) !important;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}

.stat-pill-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sch-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .scholarships-header {
        padding: 20px 16px;
    }

    .scholarships-title {
        font-size: 1.35rem;
    }

    .scholarships-stats-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 14px;
    }

    .stat-pill-card {
        min-width: 0 !important;
        width: 100% !important;
        padding: 8px 4px !important;
    }

    .stat-pill-val {
        font-size: 1.1rem !important;
    }

    .stat-pill-lbl {
        font-size: 0.62rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION TABS (Matching Questo Luxury Dark Clinical)
   ═══════════════════════════════════════════════════════════════ */
.scholarships-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--sch-border);
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.scholarships-tabs::-webkit-scrollbar {
    display: none;
}

.tab-link {
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    color: var(--sch-text-muted) !important;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--sch-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.tab-link i {
    font-size: 0.85rem;
    color: var(--sch-text-dim);
    transition: color 0.2s;
}

.tab-link:hover {
    color: #FFFFFF !important;
    background: var(--sch-surface-hover) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.tab-link:hover i {
    color: #FFFFFF;
}

.tab-link.active {
    color: #FFFFFF !important;
    background: var(--sch-gold-dim) !important;
    border: 1px solid var(--sch-gold) !important;
}

.tab-link.active i {
    color: var(--sch-gold) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DIRECTORY LAYOUT & SIDEBAR FILTERS
   ═══════════════════════════════════════════════════════════════ */
.scholarship-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

@media (max-width: 992px) {
    .scholarship-layout {
        grid-template-columns: 1fr;
    }
}

.scholarship-sidebar {
    background: var(--sch-surface) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: var(--sch-radius);
    padding: 22px;
    box-shadow: var(--sch-shadow-card) !important;
    position: sticky;
    top: 90px;
}

.filter-section {
    margin-bottom: 16px;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF !important;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.05em;
}

.filter-select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    height: 40px;
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: 8px;
    color: #FFFFFF !important;
    font-size: 0.88rem;
    font-family: "Inter", sans-serif;
    outline: none;
    transition: var(--sch-transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L5 5.5L9 1.5' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--sch-gold) !important;
    background-color: #171B24 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15) !important;
}

.filter-select option {
    background: #14171E !important;
    color: #FFFFFF !important;
    padding: 8px;
}

/* Custom Checkbox Filter */
.filter-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sch-border);
    cursor: pointer;
    user-select: none;
}

.filter-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    background: var(--sch-surface-inner) !important;
    border: 1.5px solid var(--sch-border) !important;
    border-radius: 5px;
    position: relative;
    transition: var(--sch-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-checkbox-wrapper:hover .custom-checkbox {
    border-color: var(--sch-gold) !important;
}

.filter-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--sch-gold) !important;
    border-color: var(--sch-gold) !important;
}

.custom-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0F1115;
    font-size: 10px;
    display: none;
}

.filter-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox::after {
    display: block;
}

.checkbox-label {
    font-size: 0.84rem;
    color: var(--sch-text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.filter-checkbox-wrapper:hover .checkbox-label {
    color: #FFFFFF;
}

/* Sidebar Action Buttons (Compact, Basic, Chic) */
.btn-filter-apply-primary {
    background: var(--sch-gold-dim) !important;
    border: 1px solid var(--sch-gold-border) !important;
    color: var(--sch-gold) !important;
    border-radius: 8px;
    padding: 8px 14px;
    height: 38px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--sch-transition);
    box-sizing: border-box;
}

.btn-filter-apply-primary:hover {
    background: rgba(212, 175, 55, 0.22) !important;
    border-color: var(--sch-gold) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.btn-filter-reset-secondary {
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    color: var(--sch-text-muted) !important;
    border-radius: 8px;
    padding: 8px 14px;
    height: 38px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    text-decoration: none !important;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--sch-transition);
    box-sizing: border-box;
}

.btn-filter-reset-secondary:hover {
    background: var(--sch-surface-hover) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   SCHOLARSHIP CARDS GRID
   ═══════════════════════════════════════════════════════════════ */
.scholarship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.scholarship-card {
    background: var(--sch-surface) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: 14px;
    padding: 22px 24px;
    position: relative;
    box-shadow: var(--sch-shadow-card) !important;
    transition: var(--sch-transition);
    overflow: hidden;
}

.scholarship-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.card-critical {
    border-left: 3.5px solid var(--sch-danger) !important;
}

.card-warning {
    border-left: 3.5px solid var(--sch-warning) !important;
}

.card-normal {
    border-left: 3.5px solid var(--sch-success) !important;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.35;
}

.card-provider {
    color: var(--sch-teal) !important;
    font-size: 0.84rem;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-provider i {
    color: var(--sch-teal) !important;
}

.card-actions-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-track {
    background: none !important;
    border: none !important;
    color: var(--sch-text-dim) !important;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--sch-transition);
    padding: 4px;
}

.btn-track:hover {
    color: var(--sch-gold) !important;
    transform: scale(1.15);
}

.btn-track.active {
    color: var(--sch-gold) !important;
}

/* Card Meta Pills */
.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    color: var(--sch-text-secondary) !important;
}

.meta-pill i {
    font-size: 0.75rem;
}

.meta-pill.deadline-critical {
    background: var(--sch-danger-dim) !important;
    border-color: var(--sch-danger-border) !important;
    color: #FF7089 !important;
}

.meta-pill.deadline-warning {
    background: var(--sch-warning-dim) !important;
    border-color: var(--sch-warning-border) !important;
    color: #FBBF24 !important;
}

.meta-pill.deadline-normal {
    background: var(--sch-success-dim) !important;
    border-color: var(--sch-success-border) !important;
    color: #34D399 !important;
}

.card-description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--sch-text-muted) !important;
    margin-bottom: 16px;
}

/* Requirements Box */
.requirements-box {
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.requirements-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sch-teal) !important;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.requirements-title i {
    color: var(--sch-teal) !important;
}

.requirements-list {
    font-size: 0.84rem;
    color: var(--sch-text-muted) !important;
    line-height: 1.55;
    white-space: pre-line;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--sch-border);
}

/* Apply Officially Button (Compact, Basic, Chic) */
.btn-apply {
    background: var(--sch-teal-dim) !important;
    border: 1px solid var(--sch-teal-border) !important;
    color: var(--sch-teal) !important;
    padding: 7px 16px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--sch-transition);
    text-decoration: none !important;
}

.btn-apply:hover {
    background: rgba(0, 194, 168, 0.22) !important;
    border-color: var(--sch-teal) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   ESSAY REVIEW BOARD & DETAIL PAGES
   ═══════════════════════════════════════════════════════════════ */
.essay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
}

@media (max-width: 992px) {
    .essay-layout {
        grid-template-columns: 1fr;
    }
}

.essay-card {
    background: var(--sch-surface) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--sch-shadow-card) !important;
    transition: var(--sch-transition);
}

.essay-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.essay-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.essay-meta-details {
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--sch-text-muted) !important;
}

.essay-badge-pending {
    background: var(--sch-gold-dim) !important;
    border: 1px solid var(--sch-gold-border) !important;
    color: var(--sch-gold) !important;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
}

.essay-badge-reviewed {
    background: var(--sch-teal-dim) !important;
    border: 1px solid var(--sch-teal-border) !important;
    color: var(--sch-teal) !important;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
}

.essay-excerpt {
    font-family: "Georgia", serif;
    font-style: italic;
    color: var(--sch-text-secondary) !important;
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    line-height: 1.65;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.essay-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--sch-border);
}

.essay-comments-count {
    font-size: 0.82rem;
    color: var(--sch-text-muted) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-review-essay {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--sch-teal-border) !important;
    background: var(--sch-teal-dim) !important;
    color: var(--sch-teal) !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--sch-transition);
}

.btn-review-essay:hover {
    background: rgba(0, 194, 168, 0.22) !important;
    border-color: var(--sch-teal) !important;
    color: #FFFFFF !important;
}

/* Submit Essay Form Card */
.essay-form-card {
    background: var(--sch-surface) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: var(--sch-radius);
    padding: 24px;
    box-shadow: var(--sch-shadow-card) !important;
    position: sticky;
    top: 90px;
}

.essay-form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.essay-form-title i {
    color: var(--sch-gold) !important;
}

.form-group-essay {
    margin-bottom: 14px;
}

.form-group-essay label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sch-text-secondary) !important;
    margin-bottom: 6px;
}

.form-group-essay input,
.form-group-essay textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: 8px;
    color: #FFFFFF !important;
    outline: none;
    font-size: 0.88rem;
    font-family: "Inter", sans-serif;
    transition: var(--sch-transition);
    box-shadow: none !important;
}

.form-group-essay input:focus,
.form-group-essay textarea:focus {
    border-color: var(--sch-gold) !important;
    background-color: #171B24 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15) !important;
}

.btn-submit-essay {
    width: 100%;
    padding: 9px 16px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--sch-gold-border) !important;
    background: var(--sch-gold-dim) !important;
    color: var(--sch-gold) !important;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.86rem;
    font-family: "Inter", sans-serif;
    transition: var(--sch-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-submit-essay:hover {
    background: rgba(212, 175, 55, 0.22) !important;
    border-color: var(--sch-gold) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   ESSAY SHOW DETAILS PAGE
   ═══════════════════════════════════════════════════════════════ */
.essay-show-container {
    background: var(--sch-surface) !important;
    border: 1px solid var(--sch-border) !important;
    border-top: 2.5px solid var(--sch-teal) !important;
    border-radius: var(--sch-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--sch-shadow-card) !important;
}

.essay-show-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 10px;
}

.essay-full-text {
    font-family: "Georgia", serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #E2E8F0 !important;
    white-space: pre-wrap;
    padding: 24px;
    background: var(--sch-surface-inner) !important;
    border-radius: 10px;
    border: 1px solid var(--sch-border) !important;
    margin: 22px 0;
}

/* Comments Section */
.comments-section {
    margin-top: 36px;
}

.comments-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title i {
    color: var(--sch-gold);
}

.comment-bubble {
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--sch-text-muted) !important;
}

.comment-author {
    font-weight: 600;
    color: var(--sch-teal) !important;
}

.comment-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--sch-text-secondary) !important;
}

.comment-form {
    margin-top: 22px;
}

.empty-comments {
    color: var(--sch-text-muted) !important;
    font-style: italic;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE PAGINATION (Matching Opportunities & Recalls)
   ═══════════════════════════════════════════════════════════════ */
.opportunities-pagination-wrapper,
.opp-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    width: 100%;
}

.opp-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.opp-page-btn {
    box-shadow: none !important;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--sch-surface-inner) !important;
    border: 1px solid var(--sch-border) !important;
    color: var(--sch-text-muted) !important;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--sch-transition);
    cursor: pointer;
    box-sizing: border-box;
}

.opp-page-btn:hover:not(.disabled):not(.active) {
    background: var(--sch-surface-hover) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.opp-page-btn.active {
    background: var(--sch-gold) !important;
    border-color: var(--sch-gold) !important;
    color: #0F1115 !important;
    font-weight: 700 !important;
}

.opp-page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.opp-page-btn.disableddots {
    border: none !important;
    background: transparent !important;
    min-width: 18px !important;
    padding: 0 4px !important;
    color: var(--sch-text-dim) !important;
    font-weight: 700 !important;
    pointer-events: none !important;
}

@media (max-width: 640px) {
    .opp-pagination-wrapper {
        gap: 4px;
        margin-top: 22px;
    }
    
    .opp-page-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 0.78rem;
    }
}
