/* ============================================
   EDUCATION & ARTICLE PAGES - SHARED STYLES
   Provision Connect | Phase 4
   ============================================ */

/* ---- Education Hero ---- */
.edu-hero {
    background: linear-gradient(135deg, #262b2f 0%, #31383c 50%, #1a1f22 100%);
    color: #fff;
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.edu-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(255,127,75,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.edu-hero .edu-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,127,75,0.15);
    border: 1px solid rgba(255,127,75,0.3);
    color: #ff9a6e;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.edu-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
}

.edu-hero h2,
.edu-hero h3,
.edu-hero h4 {
    color: #ffffff !important;
}

.edu-hero p {
    color: rgba(255,255,255,0.8) !important;
}

.edu-hero .edu-lead {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7) !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Layout ---- */
.edu-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 960px) {
    .edu-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---- Main Content ---- */
.edu-content {
    min-width: 0;
}

.edu-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 14px;
    padding-top: 8px;
}

.edu-content h2:first-child {
    margin-top: 0;
}

.edu-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #31383c;
    margin: 28px 0 10px;
}

.edu-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.02rem;
    color: #4a5568;
    line-height: 1.75;
    margin-bottom: 18px;
}

.edu-content ul, .edu-content ol {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 20px;
}

.edu-content li {
    margin-bottom: 8px;
}

.edu-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.edu-content a {
    color: #ff7f4b;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,127,75,0.3);
    transition: border-color 0.2s, color 0.2s;
}

.edu-content a:hover {
    color: #e66a36;
    border-color: #e66a36;
}

/* Key Points Box */
.key-points {
    background: linear-gradient(135deg, rgba(255,127,75,0.06), rgba(255,127,75,0.02));
    border: 1px solid rgba(255,127,75,0.2);
    border-left: 4px solid #ff7f4b;
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin: 32px 0;
}

.key-points h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ff7f4b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.key-points ul {
    margin: 0;
    padding-left: 20px;
}

.key-points li {
    font-family: 'DM Sans', sans-serif;
    color: #4a5568;
    font-size: 0.98rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Info Cards Grid */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 22px 20px;
}

.info-card .info-card-icon {
    font-size: 1.4rem;
    color: #ff7f4b;
    margin-bottom: 10px;
}

.info-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.info-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.87rem;
    color: #5a6c7d;
    line-height: 1.55;
    margin: 0;
}

/* How Provision Connect Helps box */
.pc-helps-box {
    background: linear-gradient(135deg, #262b2f, #31383c);
    border-radius: 16px;
    padding: 36px;
    margin: 40px 0;
    color: #fff;
}

.pc-helps-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-helps-box h3 i {
    color: #ff7f4b !important;
}

.pc-helps-box p {
    color: rgba(255,255,255,0.8) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.pc-helps-box strong {
    color: #ffffff !important;
}

.pc-helps-box li {
    color: rgba(255,255,255,0.8) !important;
}

.pc-helps-box .btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pc-helps-box .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,127,75,0.4);
    border: none;
}

/* ---- Sidebar ---- */
.edu-sidebar {
    position: sticky;
    top: 24px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #5a6c7d;
    margin-bottom: 18px;
}

.sidebar-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-links li {
    border-bottom: 1px solid #f0f2f4;
}

.sidebar-nav-links li:last-child {
    border-bottom: none;
}

.sidebar-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-nav-links a:hover {
    color: #ff7f4b;
}

.sidebar-nav-links a i {
    color: #ff7f4b;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sidebar-nav-links a.active {
    color: #ff7f4b;
    font-weight: 600;
}

.sidebar-cta {
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #fff;
}

.sidebar-cta h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.6;
    margin-bottom: 18px;
}

.sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #ff7f4b;
    padding: 11px 22px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s;
    border: none;
}

.sidebar-cta a:hover {
    transform: translateY(-2px);
    border: none;
    color: #e66a36;
}

/* ---- Article style (for /article/ pages) ---- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-top: 18px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: #ff7f4b;
}

/* ---- Steps List (numbered) ---- */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.steps-list li {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-text {
    font-family: 'DM Sans', sans-serif;
    color: #4a5568;
    font-size: 0.98rem;
    line-height: 1.7;
}

.step-text strong {
    color: #2c3e50;
}

/* ---- Related Articles ---- */
.related-section {
    background: #f8f9fa;
    padding: 72px 0;
    border-top: 1px solid #eef0f3;
}

.related-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.related-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 36px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border-color: rgba(255,127,75,0.3);
}

.related-card .tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #ff7f4b;
    margin-bottom: 10px;
}

.related-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: #5a6c7d;
    line-height: 1.55;
    margin: 0;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, #262b2f 0%, #31383c 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,127,75,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 14px;
}

.cta-section p {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255,255,255,0.75) !important;
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section h3,
.cta-section h4,
.cta-section span,
.cta-section li {
    color: #ffffff !important;
}

.btn-large {
    padding: 15px 38px;
    font-size: 1rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,127,75,0.4);
}

/* ============================================
   DARK SECTION TEXT OVERRIDES
   Ensures text stays light regardless of
   site theme (dark/light mode CSS variables).
   !important needed because theme rules target
   elements directly (h1, p) beating inherited.
   ============================================ */

.edu-hero *:not(.edu-category):not(i):not(.btn-orange):not(.btn-large) {
    color: inherit;
}

/* Hero — lock all text to white */
.edu-hero,
.edu-hero h1,
.edu-hero h2,
.edu-hero h3,
.edu-hero p,
.edu-hero span,
.edu-hero li {
    color: #ffffff !important;
}
.edu-hero .edu-lead {
    color: rgba(255,255,255,0.75) !important;
}
.edu-hero .edu-category {
    color: #ff9a6e !important;
}

/* PC Helps box — dark background, all text white */
.pc-helps-box,
.pc-helps-box h3,
.pc-helps-box h4,
.pc-helps-box p,
.pc-helps-box span,
.pc-helps-box li,
.pc-helps-box strong,
.pc-helps-box em {
    color: #ffffff !important;
}
.pc-helps-box p,
.pc-helps-box li {
    color: rgba(255,255,255,0.82) !important;
}
.pc-helps-box h3 i {
    color: #ff7f4b !important;
}

/* CTA section — dark background, all text white */
.cta-section,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section p,
.cta-section span,
.cta-section li,
.cta-section strong {
    color: #ffffff !important;
}
.cta-section p {
    color: rgba(255,255,255,0.75) !important;
}

/* Sidebar CTA — orange background, all text white */
.sidebar-cta,
.sidebar-cta h4,
.sidebar-cta p,
.sidebar-cta span {
    color: #ffffff !important;
}
.sidebar-cta p {
    color: rgba(255,255,255,0.9) !important;
}

/* ============================================
   DARK MODE OVERRIDES
   When [data-theme="dark"] is active, main.css
   sets a dark bg but education-pages.css has
   hardcoded dark text colors that don't adapt.
   These overrides fix all content to be readable.
   ============================================ */

[data-theme="dark"] .edu-content h2,
[data-theme="dark"] .edu-content h3,
[data-theme="dark"] .edu-content h4,
[data-theme="dark"] .edu-content strong {
    color: #e8eaed;
}

[data-theme="dark"] .edu-content p,
[data-theme="dark"] .edu-content ul,
[data-theme="dark"] .edu-content ol,
[data-theme="dark"] .edu-content li,
[data-theme="dark"] .step-text {
    color: #b8bdc5;
}

[data-theme="dark"] .step-text strong {
    color: #e8eaed;
}

[data-theme="dark"] .key-points {
    background: rgba(255,127,75,0.08);
    border-color: rgba(255,127,75,0.25);
}

[data-theme="dark"] .key-points li {
    color: #b8bdc5;
}

[data-theme="dark"] .info-card {
    background: #252b3b;
    border-color: #3a4150;
}

[data-theme="dark"] .info-card h4 {
    color: #e8eaed;
}

[data-theme="dark"] .info-card p {
    color: #b8bdc5;
}

[data-theme="dark"] .sidebar-card {
    background: #252b3b;
    border-color: #3a4150;
}

[data-theme="dark"] .sidebar-card h4 {
    color: #8b92a0;
}

[data-theme="dark"] .sidebar-nav-links li {
    border-color: #2f3647;
}

[data-theme="dark"] .sidebar-nav-links a {
    color: #b8bdc5;
}

[data-theme="dark"] .related-section {
    background: #252b3b;
    border-color: #3a4150;
}

[data-theme="dark"] .related-section h2 {
    color: #e8eaed;
}

[data-theme="dark"] .related-card {
    background: #2f3647;
    border-color: #3a4150;
}

[data-theme="dark"] .related-card h4 {
    color: #e8eaed;
}

[data-theme="dark"] .related-card p {
    color: #b8bdc5;
}
