/* =============================================
   STUDYCORE — Global Stylesheet v2.0
   By Dr. Relentless | Stay Curious & Winning
   ============================================= */

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

:root {
  --teal: #1A9E8F;
  --teal-light: #22C5B3;
  --teal-dark: #137A6F;
  --navy: #1A3A5C;
  --navy-light: #2B5280;
  --amber: #F5A623;
  --amber-light: #FFD080;
  --bg: #F0F7FF;
  --bg-card: #FFFFFF;
  --text: #1A2E44;
  --text-muted: #5A7490;
  --border: #D0E4F0;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --shadow-hover: 0 8px 36px rgba(26,158,143,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; min-height: 100vh; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 10px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 12px; color: var(--navy); }
.section-sub { text-align: center; margin-bottom: 48px; font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.25s ease; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-amber { background: linear-gradient(135deg, var(--amber), #e8912a); color: #fff; }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.35); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-ghost { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── TOP ANNOUNCEMENT BAR ── */
.top-bar {
  background: linear-gradient(90deg, var(--navy), var(--teal-dark), var(--navy));
  color: rgba(255,255,255,0.9); text-align: center; padding: 10px 24px;
  font-size: 0.83rem; font-weight: 500; position: relative; z-index: 1001;
  background-size: 200% auto; animation: bar-slide 4s linear infinite;
}
.top-bar strong { color: var(--amber-light); }
@keyframes bar-slide { 0%{background-position:0% center} 100%{background-position:200% center} }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 40px; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 12px 0; transition: box-shadow 0.3s, top 0.3s; }
.navbar.scrolled { box-shadow: var(--shadow); top: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 44px; width: 44px; border-radius: 10px; object-fit: cover; }
.nav-brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.nav-brand-text span:first-child { color: var(--teal); }
.nav-brand-text span:last-child { color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text); transition: color 0.2s; font-size: 0.92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 4px; transition: all 0.3s; }

/* ── DR RELENTLESS BADGE ── */
.dr-badge {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(26,58,92,0.06));
  border: 1px solid rgba(245,166,35,0.3); border-radius: 50px;
  padding: 5px 14px 5px 5px; font-size: 0.82rem;
}
.dr-badge-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; color: #fff; font-family: var(--font-display); }
.dr-badge span { font-weight: 600; color: var(--navy); }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #e8f6f4 0%, #dceeff 60%, #fef6e4 100%); padding-top: 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(26,158,143,0.10) 0%, transparent 70%); }
.hero::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,0.10) 0%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,158,143,0.12); border: 1px solid rgba(26,158,143,0.3); color: var(--teal-dark); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero-title { color: var(--navy); margin-bottom: 20px; }
.hero-title em { color: var(--teal); font-style: normal; }
.hero-desc { font-size: 1.1rem; margin-bottom: 16px; max-width: 480px; }
.curiosity-quote { font-family: var(--font-serif); font-size: 1.05rem; color: var(--amber); font-style: italic; margin-bottom: 28px; padding: 12px 18px; background: rgba(245,166,35,0.08); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; }
.stat { text-align: left; }
.stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.stat-num span { color: var(--teal); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-logo-wrap { width: 320px; height: 320px; border-radius: 50%; background: linear-gradient(145deg, rgba(26,158,143,0.12), rgba(26,58,92,0.08)); border: 2px solid rgba(26,158,143,0.2); display: flex; align-items: center; justify-content: center; animation: float 4s ease-in-out infinite; box-shadow: 0 20px 60px rgba(26,158,143,0.15); }
.hero-logo-wrap img { width: 240px; height: 240px; object-fit: contain; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
.floating-card { position: absolute; background: #fff; border-radius: var(--radius-sm); padding: 12px 18px; box-shadow: var(--shadow); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.floating-card.top-right { top: 20px; right: -20px; animation: float-c 3s ease-in-out infinite 0.5s; }
.floating-card.bottom-left { bottom: 30px; left: -30px; animation: float-c 3s ease-in-out infinite 1.2s; }
.floating-card .icon { font-size: 1.4rem; }
@keyframes float-c { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── LEVEL TABS ── */
.level-tabs { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.level-tab { padding: 10px 24px; border-radius: 50px; border: 2px solid var(--border); background: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; color: var(--text-muted); }
.level-tab:hover { border-color: var(--teal); color: var(--teal); }
.level-tab.active { background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; border-color: transparent; }
.level-tab .level-badge { display: inline-block; margin-left: 6px; background: rgba(255,255,255,0.25); border-radius: 10px; padding: 1px 7px; font-size: 0.72rem; }

/* ── FEATURES ── */
.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--bg); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--border); transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--amber)); transform: scaleX(0); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: linear-gradient(135deg, rgba(26,158,143,0.15), rgba(26,58,92,0.08)); }
.feature-card h3 { color: var(--navy); margin-bottom: 10px; }

/* ── VIDEO SECTION ── */
.videos-section { background: var(--navy); }
.videos-section .section-title { color: #fff; }
.videos-section .section-sub { color: rgba(255,255,255,0.65); }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; cursor: pointer; }
.video-card:hover { transform: translateY(-4px); border-color: var(--teal-light); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(26,158,143,0.2), rgba(26,58,92,0.4)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.video-play-btn { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: transform 0.2s; }
.video-card:hover .video-play-btn { transform: scale(1.1); }
.video-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.75); color: #fff; font-size: 0.75rem; padding: 3px 8px; border-radius: 5px; font-weight: 600; }
.video-subject-tag { position: absolute; top: 10px; left: 10px; background: var(--teal); color: #fff; font-size: 0.72rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; font-family: var(--font-display); }
.video-body { padding: 18px 20px; }
.video-body h4 { color: #fff; font-size: 0.98rem; margin-bottom: 6px; }
.video-body p { font-size: 0.83rem; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.video-meta { display: flex; justify-content: space-between; align-items: center; }
.video-meta span { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.video-upload-slot { border: 2px dashed rgba(255,255,255,0.2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; cursor: pointer; transition: all 0.3s; min-height: 220px; }
.video-upload-slot:hover { border-color: var(--teal-light); background: rgba(26,158,143,0.08); }
.video-upload-slot .upload-icon { font-size: 2.5rem; }
.video-upload-slot h4 { color: rgba(255,255,255,0.7); font-size: 0.95rem; text-align: center; }
.video-upload-slot p { color: rgba(255,255,255,0.4); font-size: 0.8rem; text-align: center; }
.video-upload-input { display: none; }
.video-player-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 3000; align-items: center; justify-content: center; padding: 20px; }
.video-player-modal.open { display: flex; }
.video-player-wrap { width: 100%; max-width: 860px; position: relative; }
.video-player-wrap video { width: 100%; border-radius: 12px; }
.video-player-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ── DOCUMENTS ── */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.doc-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.3s ease; cursor: pointer; }
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--teal-light); }
.doc-thumb { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.doc-thumb.math { background: linear-gradient(135deg, #e8f6f4, #c8eae6); }
.doc-thumb.science { background: linear-gradient(135deg, #e8f0ff, #c8d8f8); }
.doc-thumb.english { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.doc-thumb.history { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.doc-thumb.cs { background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.doc-thumb.university { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }
.doc-thumb.nq { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.doc-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border-radius: 6px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.doc-body { padding: 20px; }
.doc-body h4 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.doc-body p { font-size: 0.85rem; margin-bottom: 14px; }
.doc-meta { display: flex; justify-content: space-between; align-items: center; }
.doc-meta span { font-size: 0.78rem; color: var(--text-muted); }
.doc-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; color: var(--text-muted); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── AI CHAT ── */
.ai-section { background: linear-gradient(135deg, var(--navy) 0%, #0d2847 100%); color: #fff; }
.ai-section .section-title { color: #fff; }
.ai-section .section-sub { color: rgba(255,255,255,0.7); }
.ai-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.ai-info h2 { color: #fff; margin-bottom: 16px; }
.ai-info p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.ai-name-display { display: inline-flex; align-items: center; gap: 10px; background: rgba(26,158,143,0.2); border: 1px solid rgba(26,158,143,0.4); border-radius: 12px; padding: 10px 18px; margin-bottom: 20px; }
.ai-name-display .ai-dot { width: 10px; height: 10px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.ai-name-display span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem; }
.ai-name-display small { color: var(--teal-light); font-size: 0.8rem; }
.ai-features-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ai-features-list li { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.ai-features-list li .check { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: rgba(26,158,143,0.3); border: 1px solid var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.chat-widget { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; overflow: hidden; backdrop-filter: blur(10px); }
.chat-header { background: rgba(26,158,143,0.25); padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy-light)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; font-family: var(--font-display); color: #fff; }
.chat-header-info h4 { color: #fff; font-size: 0.95rem; margin: 0; }
.chat-header-info span { font-size: 0.75rem; color: var(--teal-light); }
.online-dot { width: 9px; height: 9px; background: #4ade80; border-radius: 50%; margin-left: auto; animation: pulse 2s infinite; box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.9)} }
.chat-quick-prompts { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.08); }
.quick-prompt { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.quick-prompt:hover { background: rgba(26,158,143,0.3); border-color: var(--teal-light); color: #fff; }
.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 14px; height: 340px; overflow-y: auto; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.6; }
.msg.ai .msg-bubble { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.92); border-radius: 4px 16px 16px 16px; }
.msg.user .msg-bubble { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border-radius: 16px 4px 16px 16px; }
.msg-time { font-size: 0.68rem; color: rgba(255,255,255,0.3); margin-top: 4px; }
.msg.user .msg-time { text-align: right; }
.msg-icon { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 800; font-family: var(--font-display); }
.msg.ai .msg-icon { background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; }
.msg.user .msg-icon { background: rgba(245,166,35,0.3); }
.typing { display: flex; gap: 5px; align-items: center; padding: 14px 18px; background: rgba(255,255,255,0.10); border-radius: 4px 16px 16px 16px; }
.typing span { width: 7px; height: 7px; background: rgba(255,255,255,0.5); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} }
.chat-input-row { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.15); }
.chat-input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 10px 18px; color: #fff; font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border 0.2s; }
.chat-input::placeholder { color: rgba(255,255,255,0.4); }
.chat-input:focus { border-color: var(--teal-light); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; flex-shrink: 0; }
.chat-send:hover { background: var(--teal-dark); transform: scale(1.08); }

/* ── SUBJECTS ── */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.subject-card { background: #fff; border-radius: var(--radius); padding: 28px 20px; text-align: center; border: 1.5px solid var(--border); transition: all 0.3s; cursor: pointer; text-decoration: none; display: block; }
.subject-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.subject-icon { font-size: 2.4rem; margin-bottom: 14px; }
.subject-card h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.subject-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ── QUIZ SECTION ── */
.quiz-section { background: linear-gradient(135deg, #e8f6f4, #dceeff); }
.quiz-card { background: #fff; border-radius: 20px; max-width: 680px; margin: 0 auto; padding: 40px; box-shadow: var(--shadow); }
.quiz-card h3 { color: var(--navy); margin-bottom: 8px; }
.quiz-card > p { margin-bottom: 28px; }
.quiz-question { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 20px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.quiz-option { padding: 14px 20px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--bg); cursor: pointer; font-family: var(--font-body); font-size: 0.92rem; color: var(--text); transition: all 0.2s; text-align: left; }
.quiz-option:hover { border-color: var(--teal); background: rgba(26,158,143,0.05); }
.quiz-option.correct { border-color: #4ade80; background: rgba(74,222,128,0.1); color: #166534; }
.quiz-option.wrong { border-color: #f87171; background: rgba(248,113,113,0.1); color: #991b1b; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.quiz-progress-bar { flex: 1; height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 10px; transition: width 0.5s ease; }
.quiz-score { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.quiz-result { text-align: center; padding: 20px 0; }
.quiz-result .result-emoji { font-size: 3rem; margin-bottom: 12px; }
.quiz-result h3 { color: var(--navy); margin-bottom: 8px; }

/* ── STUDY TIMER ── */
.tools-section { background: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { background: var(--bg); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
.tool-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.tool-card > p { margin-bottom: 20px; font-size: 0.88rem; }
.timer-display { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--navy); text-align: center; margin: 16px 0; letter-spacing: 2px; }
.timer-controls { display: flex; gap: 10px; justify-content: center; }
.timer-btn { padding: 9px 20px; border-radius: 50px; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; transition: all 0.2s; }
.timer-start { background: var(--teal); color: #fff; }
.timer-pause { background: var(--amber); color: #fff; }
.timer-reset { background: var(--border); color: var(--text-muted); }
.timer-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.timer-modes { display: flex; gap: 8px; margin-bottom: 16px; justify-content: center; }
.timer-mode-btn { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: 0.78rem; font-family: var(--font-display); font-weight: 600; cursor: pointer; color: var(--text-muted); }
.timer-mode-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Calculator */
.calc-display { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 1.6rem; text-align: right; margin-bottom: 14px; min-height: 56px; word-break: break-all; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-btn { padding: 12px 6px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; transition: all 0.15s; }
.calc-btn:hover { transform: scale(1.05); }
.calc-num { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.calc-op { background: rgba(26,158,143,0.12); color: var(--teal-dark); }
.calc-eq { background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; }
.calc-clear { background: rgba(248,113,113,0.15); color: #dc2626; }
/* Notes */
.notes-area { width: 100%; min-height: 140px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: 14px; font-family: var(--font-body); font-size: 0.88rem; color: var(--text); resize: vertical; outline: none; }
.notes-area:focus { border-color: var(--teal); }
.notes-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--bg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); position: relative; }
.testi-card::before { content: '"'; font-size: 5rem; color: var(--teal); opacity: 0.12; position: absolute; top: 10px; left: 20px; font-family: Georgia, serif; line-height: 1; }
.testi-stars { color: var(--amber); font-size: 0.9rem; margin-bottom: 14px; }
.testi-card p { font-size: 0.92rem; font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: #fff; font-family: var(--font-display); }
.testi-author-info h5 { color: var(--navy); font-size: 0.9rem; margin: 0; }
.testi-author-info span { font-size: 0.78rem; color: var(--text-muted); }

/* ── CBU / UNIVERSITY BANNER ── */
.cbu-banner { background: linear-gradient(135deg, #1a2e44, #0d4a3a); padding: 48px 0; }
.cbu-inner { display: flex; align-items: center; gap: 40px; }
.cbu-badge { background: rgba(245,166,35,0.15); border: 2px solid var(--amber); border-radius: var(--radius); padding: 20px 28px; text-align: center; min-width: 180px; }
.cbu-badge .cbu-icon { font-size: 2.5rem; margin-bottom: 8px; }
.cbu-badge h4 { color: var(--amber); font-size: 1rem; margin-bottom: 2px; }
.cbu-badge span { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.cbu-info h2 { color: #fff; margin-bottom: 12px; }
.cbu-info p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.cbu-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.cbu-tag { background: rgba(26,158,143,0.2); border: 1px solid rgba(26,158,143,0.4); color: var(--teal-light); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; font-family: var(--font-display); }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); text-align: center; padding: 80px 24px; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-banner h2, .cta-banner p { color: #fff; position: relative; z-index: 1; }
.cta-banner p { opacity: 0.85; margin-bottom: 32px; font-size: 1.1rem; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-quote { font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; color: var(--amber-light); margin-bottom: 10px; position: relative; z-index: 1; }

/* ── FOOTER ── */
.footer { background: #0d1f35; color: rgba(255,255,255,0.8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand img { height: 50px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-col h5 { color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 18px; font-size: 0.95rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.4); }
.footer-dr { font-family: var(--font-serif); font-style: italic; color: var(--amber); font-size: 0.9rem; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: all 0.2s; text-decoration: none; }
.social-link:hover { background: var(--teal); color: #fff; }

/* ── MOBILE NAV ── */
.mobile-menu { position: fixed; top: 108px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 999; padding: 24px; flex-direction: column; gap: 8px; display: none; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 16px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; font-size: 1rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--teal); background: var(--bg); }
.mobile-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 20px; padding: 40px; max-width: 440px; width: 100%; animation: modal-in 0.3s ease; max-height: 90vh; overflow-y: auto; }
@keyframes modal-in { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal h3 { color: var(--navy); margin-bottom: 8px; }
.modal p { margin-bottom: 24px; }
.modal-close { float: right; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-muted); margin-top: -10px; line-height: 1; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: var(--font-body); font-size: 0.92rem; outline: none; transition: border 0.2s; color: var(--text); }
.form-group input:focus, .form-group select:focus { border-color: var(--teal); }
.form-divider { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 16px 0; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; padding: 14px 22px; border-radius: var(--radius-sm); font-size: 0.9rem; z-index: 3000; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); transform: translateY(80px); opacity: 0; transition: all 0.4s ease; max-width: 320px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #4ade80; }
.toast.error { border-left: 4px solid #f87171; }
.toast.info { border-left: 4px solid var(--teal-light); }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .ai-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-bar { font-size: 0.78rem; padding: 8px 16px; }
  .navbar { top: 36px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc, .curiosity-quote { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { width: 220px; height: 220px; }
  .hero-logo-wrap img { width: 160px; height: 160px; }
  .floating-card { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .cbu-inner { flex-direction: column; text-align: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
