@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --success: #22c55e;
    --bg: #0a0a1a;
    --bg-secondary: #111127;
    --bg-card: rgba(20, 20, 50, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --text: #f0f0f8;
    --text-secondary: #c4c4d4;
    --text-muted: #8888a8;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
    min-height: 100vh; overflow-x: hidden;
}
body::before {
    content: ''; position: fixed; inset: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(139,92,246,0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 50%);
    pointer-events: none; z-index: 0; animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse { 0%{opacity:1} 50%{opacity:0.7} 100%{opacity:1} }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.8rem 2rem; background: rgba(10,10,26,0.85);
    backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.4rem;
    color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.navbar-brand .brand-dot {
    width: 10px; height: 10px; background: var(--primary);
    border-radius: 50%; animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3);opacity:0.7} }
.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-switcher {
    display: flex; gap: 4px; background: var(--bg-glass);
    border: 1px solid var(--border); border-radius: 8px; padding: 3px; margin-right: 0.5rem;
}
.lang-btn {
    padding: 4px 8px; border: none; background: transparent; color: var(--text-muted);
    font-size: 0.75rem; font-weight: 600; border-radius: 6px; cursor: pointer;
    transition: var(--transition-fast); text-transform: uppercase;
}
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.lang-btn.active { color: white; background: var(--primary); }
.nav-btn {
    padding: 8px 16px; border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: var(--transition); text-decoration: none;
}
.nav-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.nav-btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.nav-btn.primary:hover { background: var(--primary-dark); box-shadow: 0 4px 20px rgba(139,92,246,0.4); transform: translateY(-1px); }

.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; z-index: 1001; }
.hamburger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
    display: none; position: fixed; inset: 0; background: rgba(10,10,26,0.97);
    backdrop-filter: blur(30px); z-index: 999; flex-direction: column;
    justify-content: center; align-items: center; gap: 1rem; padding: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    color: var(--text); text-decoration: none; font-family: 'Outfit', sans-serif;
    font-size: 1.3rem; font-weight: 600; padding: 0.8rem 2rem;
    border-radius: var(--radius-sm); transition: var(--transition-fast);
    width: 100%; max-width: 300px; text-align: center;
}
.mobile-nav a:hover { background: rgba(139,92,246,0.15); color: var(--primary-light); }

.navbar-actions .nav-btn, .navbar-actions .lang-switcher { display: none; }

/* HERO */
.hero {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 8rem 2rem 4rem; z-index: 1;
}
.hero::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    animation: heroGlow 8s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes heroGlow { 0%{transform:translate(-50%,-50%) scale(1);opacity:0.6} 100%{transform:translate(-50%,-50%) scale(1.3);opacity:0.3} }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
    background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
    border-radius: 100px; color: var(--primary-light); font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase; margin-bottom: 2rem; animation: fadeInUp 0.8s ease;
}
.hero h1 {
    font-family: 'Outfit', sans-serif; font-size: clamp(2.5rem,6vw,4.5rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero .subtitle {
    font-family: 'Outfit', sans-serif; font-size: clamp(1.2rem,2.5vw,1.8rem);
    font-weight: 400; color: var(--text-secondary); margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero .description {
    font-size: 1.05rem; color: var(--text-muted); max-width: 600px;
    margin: 0 auto 2.5rem; line-height: 1.7; animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.4s both; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
    border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,0.5); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-light); }

/* INFO SECTION */
.info-section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.info-section-title {
    font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800;
    color: var(--primary-light); margin-bottom: 2rem;
}
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info-panel {
    background: var(--bg-card); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.info-panel:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.info-panel-header {
    display: flex; align-items: center; gap: 12px; padding: 1.2rem 1.5rem;
    cursor: pointer; user-select: none;
}
.info-panel-header:hover { background: rgba(255,255,255,0.02); }
.info-panel-icon { font-size: 1.5rem; }
.info-panel-label { flex: 1; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; }
.info-panel-arrow { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); }
.info-panel.open .info-panel-arrow { transform: rotate(180deg); }
.info-panel-body { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.35s; padding: 0 1.5rem; }
.info-panel.open .info-panel-body { max-height: 1200px; padding: 0 1.5rem 1.5rem; }
.info-panel-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.7rem; }
.info-panel-body p:last-child { margin-bottom: 0; }
.info-panel-body strong { color: var(--text); }
.info-step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.7rem; }
.info-step-num {
    background: var(--primary); color: white; width: 24px; height: 24px;
    border-radius: 50%; font-size: 0.7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 3px;
}

/* EXERCISES */
.exercises-section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.section-title { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -1px; }
.exercises-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.exercise-card {
    position: relative; background: var(--bg-card); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: inherit; transition: var(--transition); animation: fadeInUp 0.6s ease both;
}
.exercise-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow), var(--shadow); }
.exercise-card .card-img-wrapper { height: 160px; overflow: hidden; position: relative; }
.exercise-card .card-img-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(transparent, var(--bg-card));
}
.exercise-card .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.exercise-card:hover .card-img { transform: scale(1.05); }
.exercise-card .card-content { padding: 1.2rem 1.5rem; }
.exercise-card .card-title { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.exercise-card .card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.exercise-card .card-footer { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--primary-light); }
.exercise-card:hover .card-footer svg { transform: translateX(4px); }
.exercise-badge {
    position: absolute; bottom: 12px; right: 12px; background: var(--primary); color: white;
    padding: 3px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* CONTACT */
.contact-section { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.contact-card { background: var(--bg-card); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-card h2 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 2rem; text-align: center; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; background: var(--bg-glass);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* FOOTER */
.footer {
    position: relative; z-index: 1; border-top: 1px solid var(--border);
    padding: 3rem 2rem; text-align: center; background: rgba(10,10,26,0.5);
}
.footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.4rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary-light); }
.social-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
}
.social-share-btn:hover { transform: translateY(-3px); color: white; }
.social-share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }
.social-share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-share-btn.instagram:hover { background: #E1306C; border-color: #E1306C; }

@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.hidden { display: none !important; }

/* ===== EXERCISE PAGE ===== */
.exe-container {
    position: relative; z-index: 1; max-width: 1400px; width: 96%;
    margin: 0 auto; padding: 5rem 1rem 2rem;
}
.exe-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.8rem;
}
.exe-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600;
    transition: var(--transition-fast);
}
.exe-back:hover { color: var(--primary-light); }
.exe-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.exe-badge {
    padding: 4px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 800;
    color: white; text-transform: uppercase; letter-spacing: 0.5px;
}
.exe-badge-outline {
    padding: 4px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 700;
    color: var(--text-secondary); border: 1px solid var(--border); text-transform: uppercase;
}
.exe-title {
    font-family: 'Outfit', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.exe-card {
    background: var(--bg-card); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.exe-card-label {
    font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--primary-light); margin-bottom: 1rem;
}
.exe-quote {
    font-size: 1.15rem; font-weight: 600; color: var(--text);
    border-left: 3px solid var(--primary); padding-left: 1rem; margin: 0 0 1rem; line-height: 1.6;
}
.exe-analysis { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Interactive Grid */
.exe-interactive {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem;
}
@media (max-width: 900px) { .exe-interactive { grid-template-columns: 1fr; } }

/* Editor Panel */
.exe-editor-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.exe-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.exe-panel-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
}
.exe-send-code-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a); color: white; border: none;
    padding: 6px 14px; border-radius: 6px; cursor: pointer; font-weight: 700;
    font-size: 0.8rem; transition: transform 0.2s, box-shadow 0.2s;
}
.exe-send-code-btn:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(34,197,94,0.4); }
.exe-code-editor {
    width: 100%; min-height: 300px; background: transparent; color: var(--text);
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem; padding: 14px; border: none; resize: vertical;
    outline: none; tab-size: 4; line-height: 1.7;
}
.exe-code-editor::placeholder { color: var(--text-muted); }
.exe-code-output {
    border-top: 1px solid var(--border); padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    color: var(--success); background: rgba(255,255,255,0.02);
    min-height: 36px; max-height: 100px; overflow-y: auto; white-space: pre-wrap;
}

/* Chat Panel */
.exe-chat-panel {
    background: var(--bg-card); border: 1px solid rgba(139,92,246,0.2);
    border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.exe-chat-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    padding: 12px 14px; font-weight: 800; font-size: 0.9rem; color: white;
    display: flex; align-items: center;
}
.exe-status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
    margin-right: 8px; background: #ef4444; transition: background 0.3s;
}
.exe-status-dot.online { background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.exe-chat-messages {
    flex: 1; min-height: 280px; max-height: 400px; overflow-y: auto;
    padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.exe-msg {
    max-width: 88%; padding: 10px 14px; border-radius: 12px;
    line-height: 1.5; font-size: 0.88rem; word-wrap: break-word;
}
.exe-msg.user {
    align-self: flex-end; background: rgba(139,92,246,0.12);
    color: var(--text); border: 1px solid rgba(139,92,246,0.15);
    border-bottom-right-radius: 3px;
}
.exe-msg.tutor {
    align-self: flex-start; background: rgba(255,255,255,0.04);
    color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 3px;
}
.exe-msg.tutor strong { color: var(--primary-light); }
.exe-msg.system {
    align-self: center; background: transparent; color: var(--text-muted);
    font-size: 0.78rem; font-style: italic; text-align: center; max-width: 100%;
}
.exe-msg.typing {
    align-self: flex-start; background: rgba(139,92,246,0.08);
    color: var(--primary-light); font-style: italic;
}
.exe-chat-input {
    display: flex; gap: 8px; padding: 10px 12px;
    border-top: 1px solid var(--border); background: rgba(0,0,0,0.15);
}
.exe-chat-input input {
    flex: 1; background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 14px; color: var(--text);
    font-family: 'Inter', sans-serif; font-size: 0.88rem; outline: none;
    transition: border-color 0.2s;
}
.exe-chat-input input:focus { border-color: var(--primary); }
.exe-chat-input button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none; width: 42px; height: 42px; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s; flex-shrink: 0;
}
.exe-chat-input button:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(139,92,246,0.4); }
.exe-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Floating Badge */
.exe-floating-badge {
    position: fixed; bottom: 20px; right: 20px; background: var(--primary); color: white;
    padding: 5px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px; z-index: 999;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3); pointer-events: none;
}

/* ===== SLIDING NEWS ===== */
.sliding-news-container {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 10px 0;
    margin-top: 65px; /* Added to clear the fixed navbar */
    overflow: hidden;
    position: relative;
    z-index: 100;
    display: flex;
    white-space: nowrap;
}
.sliding-news-track {
    display: flex;
    animation: slideNews 25s linear infinite;
}
.sliding-news-text {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 50px;
    letter-spacing: 0.5px;
}
@keyframes slideNews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ARTICLE DETAIL ===== */
.article-detail-container {
    max-width: 900px; width: 94%; margin: 0 auto; padding: 6rem 1rem 4rem;
}
.article-detail-header { margin-bottom: 2rem; }
.article-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
    transition: var(--transition-fast);
}
.article-back:hover { color: var(--primary-light); transform: translateX(-4px); }

.article-full {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-lg);
    padding: 3rem; overflow: hidden;
    color: #1a1a2e; /* Dark text for white background */
    box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}
@media (max-width: 768px) { .article-full { padding: 1.5rem; } }

.article-full-title {
    font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.article-full-image-wrapper {
    margin: 0 -3rem 2.5rem; height: 450px; overflow: hidden;
}
@media (max-width: 768px) { .article-full-image-wrapper { margin: 0 -1.5rem 1.5rem; height: 250px; } }

.article-full-image { width: 100%; height: 100%; object-fit: cover; }

.article-full-content {
    font-size: 1.1rem; line-height: 1.8; color: #33334d;
}
.article-full-content h2, .article-full-content h3 {
    font-family: 'Outfit', sans-serif; color: #1a1a1a; margin: 2.5rem 0 1rem;
}
.article-full-content p { margin-bottom: 1.5rem; }
.article-full-content img {
    max-width: 100%; height: auto; border-radius: var(--radius);
    margin: 2rem 0; box-shadow: var(--shadow);
}
.article-full-content figure { margin: 2rem 0; }
.article-full-content figcaption {
    text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem;
}
.article-full-content ul, .article-full-content ol { margin: 1.5rem 0; padding-left: 1.5rem; }
.article-full-content li { margin-bottom: 0.5rem; }

/* RECENT ARTICLES GRID IN HOME */
.articles-section { max-width: 1200px; margin: 4rem auto; padding: 0 1.5rem; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit; transition: var(--transition);
}
.article-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.article-card-img { height: 180px; width: 100%; object-fit: cover; }
.article-card-body { padding: 1.5rem; }
.article-card-title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.article-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== DASHBOARD CARDS ===== */
.dashboard-section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dashboard-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    text-decoration: none; color: inherit; transition: var(--transition);
    border: 1px solid var(--border); min-height: 320px;
    display: flex; flex-direction: column;
}
.dashboard-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-glow), var(--shadow); }
.dashboard-card-img-wrapper { position: absolute; inset: 0; }
.dashboard-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dashboard-card:hover .dashboard-card-img { transform: scale(1.05); }
.dashboard-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,26,0.3) 0%, rgba(10,10,26,0.92) 100%);
}
.dashboard-card-content {
    position: relative; z-index: 2; margin-top: auto; padding: 2rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.dashboard-card-icon { font-size: 2.5rem; }
.dashboard-card-title {
    font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800;
    letter-spacing: -0.5px; line-height: 1.2;
}
.dashboard-card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.dashboard-card-count {
    font-size: 0.8rem; color: var(--accent-light); font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}
.dashboard-card-cta {
    font-weight: 800; font-size: 0.9rem; color: var(--primary-light);
    margin-top: 0.5rem; transition: transform 0.2s;
}
.dashboard-card:hover .dashboard-card-cta { transform: translateX(6px); }

/* ===== LISTING PAGES ===== */
.listing-container {
    position: relative; z-index: 1; max-width: 1400px; width: 96%;
    margin: 0 auto; padding: 5rem 1rem 4rem;
}
.listing-header { margin-bottom: 1.5rem; }
.listing-title {
    font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900; letter-spacing: -1.5px; margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.listing-subtitle {
    font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem;
}

/* Filters */
.listing-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.listing-filter {
    padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border);
    background: transparent; color: var(--text-secondary); font-size: 0.85rem;
    font-weight: 700; cursor: pointer; transition: var(--transition-fast);
}
.listing-filter:hover { border-color: var(--primary); color: var(--primary-light); }
.listing-filter.active {
    background: var(--primary); border-color: var(--primary); color: white;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

/* Listing Grid - compact */
.listing-grid { display: grid; gap: 1rem; }
.listing-grid-small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 600px) { .listing-grid-small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .listing-grid-small { grid-template-columns: 1fr; } }

.listing-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden; text-decoration: none;
    color: inherit; transition: var(--transition); animation: fadeInUp 0.5s ease both;
}
.listing-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.listing-card-img-wrapper { height: 120px; overflow: hidden; }
.listing-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-card-img { transform: scale(1.06); }

.listing-card-body { padding: 1rem; }
.listing-card-title {
    font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
    margin-bottom: 0.4rem; line-height: 1.3;
}
.listing-card-excerpt {
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Exercise-specific listing */
.listing-card-exercise { display: flex; flex-direction: column; }
.listing-card-badge {
    padding: 6px 10px; color: white; font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.listing-card-page {
    font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
    margin-top: 0.4rem; display: block;
}

::-webkit-scrollbar { width: 8px; }

::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }

