/* ==========================================================================
   E8Learnings — Modern EdTech Design System
   Corporate & Student Training in Data Engineering, AI & Quantum
   Supports Light & Dark Modes
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --bg-card-hover: #ffffff;
    --border: #e2e8f0;
    --border-accent: rgba(245, 158, 11, 0.35);
    
    --brand-amber: #f59e0b;
    --brand-amber-light: #fbbf24;
    --brand-amber-glow: rgba(245, 158, 11, 0.2);
    
    --brand-indigo: #4f46e5;
    --brand-indigo-light: #6366f1;
    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text: #334155;
    --text-muted: #64748b;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #030712;
    --modal-bg: #ffffff;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.12);
    
    --radius: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-page: #070b14;
    --bg-card: #0e1526;
    --bg-surface: #0a0f1d;
    --bg-surface-alt: #0f182e;
    --bg-card-hover: #131d33;
    --border: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(245, 158, 11, 0.45);
    
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text: #cbd5e1;
    --text-muted: #94a3b8;
    --navbar-bg: rgba(7, 11, 20, 0.94);
    --footer-bg: #03050a;
    --modal-bg: #0e1526;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.7);
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

/* Brand number 8 in #1e70eb across all platforms */
.brand-num,
.navbar-brand .brand-num,
.footer-brand span {
    color: #1e70eb !important;
}

/* Form asterisks */
.brand-req,
.required-star,
.req-star,
.text-danger,
span.required {
    color: #1e70eb !important;
    font-weight: 700;
}

a {
    color: var(--brand-indigo);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-amber);
}

/* ==================== ECOSYSTEM TOP BAR ==================== */
.ecosystem-bar {
    background: #03070f;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ecosystem-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ecosystem-title {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ecosystem-links {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.ecosystem-links a {
    color: #94a3b8;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.ecosystem-links a.active {
    color: #ffffff;
    font-weight: 600;
}

.ecosystem-badge-labs { background: rgba(16, 185, 129, 0.15); color: #10b981; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.ecosystem-badge-qube { background: rgba(0, 229, 255, 0.15); color: #00e5ff; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.ecosystem-badge-learn { background: rgba(245, 158, 11, 0.2); color: #f59e0b; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

/* ==================== NAVBAR ==================== */
.learnings-navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: background-color 0.3s ease;
}

.learnings-navbar .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.learnings-navbar .navbar-brand .logo-tag {
    color: var(--brand-amber);
}

.learnings-navbar .nav-link {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.learnings-navbar .nav-link:hover,
.learnings-navbar .nav-link.active {
    color: var(--brand-amber);
}

.btn-enroll-nav {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-enroll-nav:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* ==================== HERO SECTION ==================== */
.learnings-hero {
    position: relative;
    padding: 110px 0 90px;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.1) 0%, transparent 45%),
                var(--bg-page);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.badge-edtech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--brand-amber);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.learnings-hero h1 {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.learnings-hero h1 .text-highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.learnings-hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 2.25rem;
}

.trust-stats-bar {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-item h5 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-heading);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==================== COURSE CARDS ==================== */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    border-color: var(--brand-amber);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.course-badge-top {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--brand-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.course-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-track-tag {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-indigo-light);
    margin-bottom: 0.5rem;
}

.course-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.course-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.course-meta span i {
    color: var(--brand-amber);
    margin-right: 4px;
}

.course-price-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.price-main {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-heading);
}

.price-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== PRICING TABLES ==================== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--brand-amber);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, var(--bg-card) 40%);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-tag-banner {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-amber);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 1rem 0 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.94rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-body);
}

.pricing-features li i {
    color: #10b981;
    margin-top: 4px;
}

/* ==================== FOOTER ==================== */
.learnings-footer,
.footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 65px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.learnings-footer a,
.footer a {
    color: rgba(255, 255, 255, 0.82) !important;
}

.learnings-footer a:hover,
.footer a:hover {
    color: #ffffff !important;
}

/* Division highlights in footer */
.learnings-footer a[href*="e8labs"],
.footer a[href*="e8labs"] {
    color: #34d399 !important;
    font-weight: 600;
}
.learnings-footer a[href*="qube8"],
.footer a[href*="qube8"] {
    color: #38bdf8 !important;
    font-weight: 600;
}
.learnings-footer a[href*="e8learnings"],
.footer a[href*="e8learnings"] {
    color: #fbbf24 !important;
    font-weight: 600;
}

.learnings-footer .brand-num,
.footer .brand-num,
.footer-brand .brand-num {
    color: #38bdf8 !important;
}

/* ==================== CONTACT SIDEBAR & NOTICE CARDS ==================== */
.contact-sidebar-card,
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.75rem;
    height: auto !important;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

[data-theme="dark"] .contact-sidebar-card,
[data-theme="dark"] .contact-info-card {
    background: #0e1526;
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-notice-card {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 5px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.75rem;
    height: auto !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

[data-theme="dark"] .contact-notice-card {
    background: #171104;
    border-color: rgba(245, 158, 11, 0.25);
    border-left-color: #f59e0b;
}

.contact-notice-card .notice-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
}

.contact-notice-card .notice-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 0.85rem;
}
