/* ============================================================
   TRULY TUTORS - styles.css
   Professional multi-page design system
   ============================================================ */

/* 1. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 2. Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: #111827; margin-bottom: 8px; letter-spacing: -0.02em; }
.section-sub { font-size: 1rem; color: #6b7280; margin-bottom: 48px; max-width: 580px; line-height: 1.7; }

/* 3. Buttons */
.btn-primary { display: inline-block; background: #008000; color: #fff; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 0.925rem; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; font-family: inherit; }
.btn-primary:hover { background: #006600; transform: translateY(-1px); }
.btn-primary-lg { display: inline-block; background: #fff; color: #008000; padding: 15px 36px; border-radius: 6px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; font-family: inherit; }
.btn-primary-lg:hover { background: #f0fdf4; transform: translateY(-1px); }
.btn-ghost { display: inline-block; color: #23395d; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 0.925rem; border: 1.5px solid #23395d; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-ghost:hover { background: #23395d; color: #fff; }
.btn-sm { padding: 8px 18px !important; font-size: 0.85rem !important; }

/* 4. Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #e5e7eb; transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 24px; }
.nav-brand { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0; }
.nav-brand-truly  { color: #008000; }
.nav-brand-tutors { color: #23395d; }
.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { color: #4b5563; font-weight: 500; font-size: 0.875rem; padding: 6px 11px; border-radius: 6px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #111827; background: #f3f4f6; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.55; }
.nav-dropdown-menu { display: block; visibility: hidden; opacity: 0; pointer-events: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 0 6px; min-width: 185px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 100; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.nav-dropdown:hover .nav-dropdown-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-item { display: block; padding: 9px 16px; font-size: 0.85rem; color: #374151; font-weight: 500; transition: background 0.15s; }
.nav-dropdown-item:hover { background: #f9fafb; color: #111827; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.nav-wa { display: flex; align-items: center; gap: 6px; color: #166534; font-weight: 600; font-size: 0.825rem; padding: 6px 12px; border-radius: 6px; border: 1.5px solid #bbf7d0; background: #f0fdf4; white-space: nowrap; transition: all 0.2s; }
.nav-wa:hover { background: #dcfce7; }

.hamburger { display: none; flex-direction: column; cursor: pointer; background: none; border: none; padding: 4px; }
.bar { width: 22px; height: 2px; background: #1f2937; margin: 3px 0; border-radius: 2px; transition: 0.25s; display: block; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 5. Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(155deg, #ffffff 0%, #f0f9ff 45%, #f0fdf4 100%); padding-top: 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../images/others/homepage.png') center center / cover no-repeat; opacity: 0.15; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.hero-eyebrow { display: inline-block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 100px; padding: 5px 14px; font-size: 0.775rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 22px; animation: fadeUp 0.55s ease 0.15s both; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; color: #111827; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px; animation: fadeUp 0.55s ease 0.3s both; }
.hero-sub { font-size: clamp(0.95rem, 2vw, 1.1rem); color: #4b5563; line-height: 1.75; max-width: 600px; margin: 0 auto 32px; animation: fadeUp 0.55s ease 0.45s both; }
.hero-cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; animation: fadeUp 0.55s ease 0.6s both; }
.hero-trust-strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 0.775rem; color: #4b5563; font-weight: 500; letter-spacing: 0.02em; animation: fadeUp 0.55s ease 0.75s both; }
.hero-trust-strip .sep { color: #9ca3af; }
.hero-scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 36px; animation: fadeUp 0.55s ease 0.9s both; }
.hero-scroll-hint span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; }
.hero-scroll-arrow { width: 20px; height: 20px; border-right: 2px solid #9ca3af; border-bottom: 2px solid #9ca3af; transform: rotate(45deg); animation: scrollBounce 1.4s ease-in-out infinite; }
@keyframes scrollBounce { 0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; } 50% { transform: rotate(45deg) translateY(5px); opacity: 1; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* 6. Stats strip */
.stats-strip { background: #f8fafc; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 44px 0; }
.stats-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: #008000; letter-spacing: -0.02em; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: #6b7280; margin-top: 5px; line-height: 1.5; }

/* 7. How It Works */
.how-it-works { padding: 80px 0; background: #fff; }
.steps-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
.step { flex: 1; text-align: center; padding: 28px 16px; background: #f8fafc; border-radius: 10px; border: 1px solid #e5e7eb; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: #008000; color: #fff; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step h3 { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: #6b7280; line-height: 1.65; }
.step-arrow { color: #d1d5db; font-size: 1.4rem; padding-top: 44px; flex-shrink: 0; }
.how-cta { text-align: center; }

/* 8. Subjects teaser */
.subjects-teaser { padding: 80px 0; background: #f8fafc; }
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.subject-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 14px; text-align: center; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.subject-card:hover { border-color: #bbf7d0; box-shadow: 0 4px 14px rgba(0,128,0,0.08); transform: translateY(-2px); }
.subject-card.specialist { border-color: #86efac; background: #f0fdf4; }
.subject-name { font-weight: 600; font-size: 0.925rem; color: #111827; }
.subjects-cta-row { text-align: center; }

/* 9. Why us */
.why-us { padding: 80px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card { padding: 26px; border: 1px solid #e5e7eb; border-left: 3px solid #008000; border-radius: 10px; background: #fff; transition: box-shadow 0.2s, transform 0.2s; }
.why-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
.why-card h3 { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; color: #4b5563; line-height: 1.7; }

/* 10. Testimonials */
.testimonials { padding: 80px 0; background: #f8fafc; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.testimonial-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; }
.stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #008000; margin-bottom: 8px; }
.testimonial-quote { font-size: 0.875rem; color: #374151; line-height: 1.75; flex: 1; font-style: italic; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; font-size: 0.85rem; color: #111827; }
.testimonials-cta { text-align: center; }

/* 11. CTA Banner */
.cta-banner { padding: 80px 0; background: #23395d; text-align: center; color: #fff; }
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 0.95rem; color: rgba(255,255,255,0.72); max-width: 500px; margin: 0 auto 32px; line-height: 1.7; }

/* 12. Footer */
.site-footer { background: #0f172a; color: #e2e8f0; padding: 60px 0 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-desc { font-size: 0.85rem; color: #94a3b8; line-height: 1.7; margin-bottom: 8px; }
.footer-uen { font-size: 0.775rem; color: #475569; margin-top: 10px; }
.footer-heading { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 14px; }
.footer-link { display: block; font-size: 0.85rem; color: #94a3b8; margin-bottom: 10px; transition: color 0.2s; }
.footer-link:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 16px 24px; max-width: 1100px; margin: 0 auto; font-size: 0.775rem; color: #475569; }

/* 13. Back to top */
#back-to-top { position: fixed; bottom: 28px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: #23395d; color: #fff; border: none; cursor: pointer; font-size: 1rem; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: background 0.2s, transform 0.2s; z-index: 500; }
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: #1a2f52; transform: translateY(-2px); }

/* Success modal */
.success-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.success-modal.visible, .success-modal[style*="display:flex"], .success-modal[style*="display: flex"] { display: flex; }
.success-modal-inner { background: #fff; border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 480px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
.success-icon { width: 64px; height: 64px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #008000; margin: 0 auto 20px; }
.success-modal-inner h2 { font-size: 1.5rem; font-weight: 800; color: #111827; margin-bottom: 12px; }
.success-modal-inner p { font-size: 0.925rem; color: #4b5563; line-height: 1.65; margin-bottom: 0; }

/* 14. Page header (inner pages) */
.page-header { background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%); padding: 120px 0 60px; border-bottom: 1px solid #e5e7eb; }
.page-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; color: #111827; letter-spacing: -0.03em; margin-bottom: 12px; }
.page-header p { font-size: 1rem; color: #4b5563; max-width: 540px; line-height: 1.7; }

/* 15. Subjects page */
.specialist-highlight { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px; padding: 28px; margin-bottom: 40px; }
.specialist-highlight h3 { font-size: 1rem; font-weight: 700; color: #166534; margin-bottom: 16px; }
.specialist-list { display: flex; flex-wrap: wrap; gap: 10px; }
.specialist-badge { display: inline-block; background: #fff; border: 1.5px solid #bbf7d0; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 0.875rem; color: #166534; }
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.level-card { padding: 22px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; transition: box-shadow 0.2s, transform 0.2s; }
.level-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); transform: translateY(-2px); }
.level-card-name { font-weight: 700; font-size: 0.95rem; color: #111827; margin-bottom: 6px; }
.level-card-desc { font-size: 0.825rem; color: #6b7280; line-height: 1.6; }
.pricing-section { padding: 60px 0; background: #f8fafc; }
.pricing-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,0.06); margin-bottom: 16px; }
.pricing-table th { background: #23395d; color: #fff; padding: 14px 20px; text-align: left; font-size: 0.85rem; font-weight: 700; }
.pricing-table td { padding: 13px 20px; font-size: 0.85rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: #fafafa; }
.pricing-table td:first-child { font-weight: 600; color: #111827; }
.price-highlight { color: #008000; font-weight: 700; }
.pricing-note { font-size: 0.8rem; color: #6b7280; line-height: 1.6; }

/* 16. About page */
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.pillar-card { padding: 26px; border: 1px solid #e5e7eb; border-left: 3px solid #008000; border-radius: 10px; background: #fff; }
.pillar-card h3 { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.pillar-card p { font-size: 0.85rem; color: #4b5563; line-height: 1.7; }
.tutor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tutor-card { padding: 26px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; }
.tutor-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #008000; margin-bottom: 8px; }
.tutor-card h3 { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.tutor-card p { font-size: 0.85rem; color: #4b5563; line-height: 1.7; }
.testimonial-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card-lg { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 28px; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.testimonial-card-lg[data-proof] { cursor: pointer; }
.testimonial-card-lg[data-proof]:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: #86efac; }
.testimonial-card-lg[data-proof]:hover .proof-hint { opacity: 1; transform: translateY(0); }
.proof-hint { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 0.775rem; font-weight: 600; color: #008000; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 20px; padding: 4px 11px; opacity: 0.45; transform: translateY(3px); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; user-select: none; }
.proof-hint svg { flex-shrink: 0; }
.testimonial-headline { font-weight: 700; font-size: 0.775rem; text-transform: uppercase; letter-spacing: 0.08em; color: #23395d; margin-bottom: 10px; }

/* Proof lightbox */
.proof-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 3000; align-items: center; justify-content: center; padding: 24px; }
.proof-lightbox.visible { display: flex; }
.proof-lightbox-inner { background: #fff; border-radius: 14px; padding: 24px; max-width: 680px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.3); text-align: center; position: relative; }
.proof-lightbox-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.4rem; color: #6b7280; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.proof-lightbox-close:hover { background: #f3f4f6; color: #111827; }
.proof-lightbox-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; margin-bottom: 14px; }
.proof-lightbox-img { max-width: 100%; border-radius: 8px; display: block; margin: 0 auto; max-height: 70vh; object-fit: contain; }
.proof-lightbox-caption { font-size: 0.825rem; color: #6b7280; margin-top: 14px; font-style: italic; }

/* 17. FAQ page */
.faq-category { margin-bottom: 48px; }
.faq-category-title { font-size: 1.2rem; font-weight: 700; color: #111827; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }
.faq-item { border-bottom: 1px solid #f3f4f6; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 16px 0; font-size: 0.925rem; font-weight: 600; color: #111827; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; transition: color 0.2s; }
.faq-question:hover { color: #008000; }
.faq-icon { font-size: 1rem; color: #9ca3af; flex-shrink: 0; transition: transform 0.2s; font-style: normal; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 16px; font-size: 0.875rem; color: #4b5563; line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

/* 18. Forms */
.form-wrap { max-width: 680px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 36px 40px; box-shadow: 0 2px 16px rgba(0,0,0,0.05); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-label { font-size: 0.825rem; font-weight: 600; color: #374151; }
.required { color: #dc2626; margin-left: 1px; font-weight: 400; }
.form-input, .form-select, .form-textarea { border: 1.5px solid #e5e7eb; border-radius: 7px; padding: 10px 13px; font-size: 0.875rem; font-family: inherit; color: #111827; background: #fff; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: #008000; box-shadow: 0 0 0 3px rgba(0,128,0,0.07); }
input[type="date"].form-input { cursor: pointer; }
input[type="date"].form-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; filter: invert(30%) sepia(80%) saturate(500%) hue-rotate(90deg); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.radio-label { display: flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 500; color: #374151; cursor: pointer; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-size: 0.825rem; color: #4b5563; line-height: 1.55; cursor: pointer; }
.checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; accent-color: #008000; }
.checkbox-label a { color: #008000; text-decoration: underline; }
.form-error-msg { color: #dc2626; font-size: 0.825rem; padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; margin-bottom: 12px; }
.btn-submit { background: #008000; color: #fff; border: none; border-radius: 7px; padding: 13px 32px; font-size: 0.925rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.15s; }
.btn-submit:hover { background: #006600; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; display: none; }
.form-status.success { background: #dcfce7; color: #166534; display: block; }
.form-status.error { background: #fee2e2; color: #991b1b; display: block; }

/* Multi-step form */
.form-steps-indicator { display: flex; align-items: flex-start; gap: 0; margin-bottom: 32px; }
.form-step-dot { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.form-step-dot.active .step-num { background: #008000; color: #fff; }
.form-step-dot.done .step-num { background: #dcfce7; color: #166534; }
.step-label { font-size: 0.7rem; color: #9ca3af; white-space: nowrap; font-weight: 500; }
.form-step-dot.active .step-label { color: #008000; font-weight: 600; }
.form-step-line { flex: 1; height: 2px; background: #e5e7eb; border-radius: 2px; margin-top: 17px; }
.form-step-panel { display: none; }
.form-step-panel.active { display: block; }
.step-heading { font-size: 1rem; font-weight: 700; color: #111827; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.form-nav { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
.btn-back { background: #f3f4f6; color: #374151; border: none; border-radius: 7px; padding: 12px 24px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.btn-back:hover { background: #e5e7eb; }
.btn-next { background: #008000; color: #fff; border: none; border-radius: 7px; padding: 12px 24px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s; margin-left: auto; }
.btn-next:hover { background: #006600; }
.rate-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.rate-option { border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 14px 12px; cursor: pointer; transition: all 0.2s; position: relative; }
.rate-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rate-option.selected { border-color: #008000; background: #f0fdf4; }
.rate-title { font-weight: 700; color: #111827; font-size: 0.85rem; margin-bottom: 3px; }
.rate-price { color: #008000; font-weight: 600; font-size: 0.8rem; }
.location-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.location-option { border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 14px 22px; cursor: pointer; transition: all 0.2s; position: relative; min-width: 150px; }
.location-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.location-option.selected { border-color: #008000; background: #f0fdf4; }
.location-option-content { text-align: center; }
.location-icon { display: none; }
.location-title { font-weight: 700; color: #111827; font-size: 0.9rem; margin-bottom: 3px; }
.location-desc { font-size: 0.775rem; color: #6b7280; }

/* 19. For Tutors page */
.tutor-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.tutor-info-card { padding: 24px; border: 1px solid #e5e7eb; border-left: 3px solid #008000; border-radius: 10px; background: #fff; }
.tutor-info-card h3 { font-weight: 700; font-size: 0.95rem; color: #111827; margin-bottom: 8px; }
.tutor-info-card p { font-size: 0.825rem; color: #4b5563; line-height: 1.6; }

/* 20. Resources page */
.resources-page { min-height: 60vh; }

/* Tab bar */
.resources-tabs-bar { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 60px; z-index: 90; }
.resources-tabs-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 0; }
.res-tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 16px 22px; font-size: 0.9rem; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; transition: color 0.2s, border-color 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.res-tab:hover:not([disabled]) { color: #111827; }
.res-tab.active { color: #008000; border-bottom-color: #008000; }
.res-tab[disabled] { cursor: not-allowed; opacity: 0.55; }
.res-tab-badge { font-size: 0.7rem; font-weight: 700; background: #f3f4f6; color: #9ca3af; border-radius: 100px; padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Section visibility */
.res-section { display: none; }
.res-section.active { display: block; }

/* Two-column layout */
.resources-body { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.res-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 70vh; }

/* Sidebar */
.res-sidebar { border-right: 1px solid #e5e7eb; padding: 32px 0 40px; }
.res-sidebar-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; padding: 0 20px 14px; }
.res-topic-list { list-style: none; }
.res-topic-list li { border-bottom: 1px solid #f3f4f6; }
.res-topic-btn { width: 100%; background: none; border: none; text-align: left; padding: 13px 20px; font-size: 0.875rem; font-weight: 500; color: #374151; cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; border-left: 3px solid transparent; }
.res-topic-btn:hover { background: #f9fafb; color: #111827; }
.res-topic-btn.active { background: #f0fdf4; color: #008000; font-weight: 600; border-left-color: #008000; }

/* Viewer */
.res-viewer { padding: 32px 36px 48px; }
.res-viewer-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: 16px; }
.res-empty-icon { color: #d1d5db; }
.res-empty-text { font-size: 0.9rem; color: #9ca3af; font-weight: 500; }

/* Viewer header */
.res-viewer-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #111827; }
.res-viewer-section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #008000; margin-bottom: 5px; }
.res-viewer-title { font-size: 1.4rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; }

/* Notes / Questions type selector */
.res-type-selector { display: flex; gap: 0; margin-bottom: 22px; border: 1.5px solid #e5e7eb; border-radius: 8px; overflow: hidden; width: fit-content; }
.res-type-btn { background: #fff; border: none; padding: 9px 22px; font-size: 0.875rem; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; border-right: 1.5px solid #e5e7eb; }
.res-type-btn:last-child { border-right: none; }
.res-type-btn:hover:not(.active) { background: #f9fafb; color: #111827; }
.res-type-btn.active { background: #008000; color: #fff; }

/* Download button */
.res-download-btn { display: inline-flex; align-items: center; gap: 7px; background: #008000; color: #fff; padding: 9px 18px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background 0.2s, transform 0.15s; }
.res-download-btn:hover { background: #006600; transform: translateY(-1px); }

/* Notes + Questions subsections */
.res-subsection { margin-bottom: 40px; }
.res-subsection:last-child { margin-bottom: 0; }
.res-subsection-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; }
.res-subsection-title { font-size: 1rem; font-weight: 700; color: #111827; letter-spacing: -0.01em; }

/* PDF Cards */
.res-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.res-pdf-card { display: flex; align-items: stretch; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s; overflow: hidden; }
.res-pdf-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-color: #008000; transform: translateY(-2px); }
.res-pdf-card:focus { outline: 2px solid #008000; outline-offset: 2px; }
.res-pdf-card-body { flex: 1; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.res-pdf-card-type { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #008000; }
.res-pdf-card-label { font-size: 1rem; font-weight: 700; color: #111827; line-height: 1.4; }
.res-pdf-card-download { display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; color: #008000; border: 1px solid #bbf7d0; padding: 7px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; width: fit-content; transition: background 0.15s, border-color 0.15s; }
.res-pdf-card-download:hover { background: #dcfce7; border-color: #86efac; }
.res-pdf-card-preview { width: 120px; flex-shrink: 0; background: #f3f4f6; border-left: 1px solid #e5e7eb; position: relative; overflow: hidden; min-height: 120px; }
.res-pdf-card-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-pdf-card-preview img[src=""] , .res-pdf-card-preview img:not([src]) { display: none; }
.res-pdf-card-preview-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #9ca3af; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; }
/* Hide fallback when image loads */
.res-pdf-card-preview img:not([src=""]):not([src]) ~ .res-pdf-card-preview-fallback { display: none; }

/* Multiple PDF entries (legacy wrapper, kept for spacing) */
.res-pdf-entry { margin-bottom: 0; }

/* Fullscreen PDF overlay */
.res-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.6); display: none; flex-direction: column; }
.res-overlay.open { display: flex; }
.res-overlay-bar { display: flex; align-items: center; gap: 16px; background: #111827; padding: 0 20px; height: 52px; flex-shrink: 0; }
.res-overlay-label { flex: 1; font-size: 0.9rem; font-weight: 600; color: #f9fafb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-overlay-download { display: inline-flex; align-items: center; gap: 7px; background: #008000; color: #fff; padding: 7px 16px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; transition: background 0.15s; flex-shrink: 0; }
.res-overlay-download:hover { background: #006600; }
.res-overlay-close { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 6px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s; flex-shrink: 0; }
.res-overlay-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.res-overlay-frame { flex: 1; width: 100%; border: none; background: #fff; }

/* Placeholder */
.res-notes-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 240px; background: #f8fafc; border: 1.5px dashed #e5e7eb; border-radius: 10px; text-align: center; padding: 40px; }
.res-notes-placeholder p { font-size: 0.9rem; color: #6b7280; font-weight: 500; }
.res-placeholder-sub { font-size: 0.825rem !important; color: #9ca3af !important; font-weight: 400 !important; }
.res-placeholder-sub a { color: #008000; text-decoration: underline; }

/* Coming soon (macro) */
.res-coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 80px 24px; text-align: center; }
.res-coming-soon h3 { font-size: 1.2rem; font-weight: 700; color: #111827; }
.res-coming-soon p { font-size: 0.9rem; color: #6b7280; max-width: 360px; line-height: 1.7; }

/* 21. Responsive */
@media (max-width: 1024px) {
  .nav-wa { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  /* Resources responsive */
  .resources-tabs-bar { top: 60px; }
  .res-layout { grid-template-columns: 1fr; }
  .res-sidebar { border-right: none; border-bottom: 1px solid #e5e7eb; padding: 20px 0; }
  .res-topic-list { display: flex; overflow-x: auto; gap: 8px; padding: 0 16px 4px; scrollbar-width: none; }
  .res-topic-list li { border-bottom: none; flex-shrink: 0; }
  .res-topic-btn { padding: 8px 16px; border-radius: 100px; border: 1px solid #e5e7eb; white-space: nowrap; border-left: 1px solid #e5e7eb; }
  .res-topic-btn.active { border-color: #008000; background: #f0fdf4; }
  .res-viewer { padding: 24px 16px; }
  .res-subsection-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .res-pdf-entry-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .res-download-btn { width: 100%; justify-content: center; }
  .res-card-grid { grid-template-columns: 1fr; }
  .res-type-selector { width: 100%; }\n  .res-type-btn { flex: 1; text-align: center; }
  .res-pdf-card-preview { width: 90px; }
  .res-overlay-bar { padding: 0 12px; gap: 10px; }
  .res-overlay-label { font-size: 0.8rem; }
  .hamburger { display: flex; }
  .nav-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; flex-direction: column; align-items: stretch; padding: 12px 0 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 999; gap: 0; max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-link { display: flex; align-items: center; justify-content: center; text-align: center; padding: 11px 24px; border-radius: 0; font-size: 0.925rem; border-bottom: none; color: #1f2937; }
  .nav-link:hover, .nav-link.active { background: #f3f4f6; color: #111827; }
  .nav-dropdown-toggle { justify-content: center; gap: 6px; }
  .nav-dropdown-toggle::after { display: inline-block; content: '▾'; font-size: 0.75rem; opacity: 0.5; transition: transform 0.2s; margin-left: 0; }
  .nav-dropdown.mobile-open .nav-dropdown-toggle::after { transform: rotate(180deg); opacity: 0.8; }
  .nav-dropdown-menu { display: none; visibility: visible; opacity: 1; pointer-events: auto; position: static; box-shadow: none; border: none; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; border-radius: 0; padding: 4px 0; background: #f9fafb; min-width: unset; transform: none; transition: none; }
  .nav-dropdown.mobile-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-item { padding: 10px 24px; text-align: center; font-size: 0.875rem; color: #4b5563; border-bottom: none; }
  .nav-dropdown-item:hover { background: #f0fdf4; color: #166534; }
  .nav-actions .btn-primary { display: none; }
  .section { padding: 56px 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .steps-row { flex-direction: column; }
  .step-arrow { display: none; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .tutor-grid { grid-template-columns: 1fr; }
  .testimonial-grid-full { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr 1fr; }
  .tutor-info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .rate-options { grid-template-columns: 1fr; }
  .select-row { grid-template-columns: 1fr; }
  .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 0.8rem; }
  .form-wrap { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .rate-options { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  .modal { padding: 32px 20px; }
}
