/* YassApply — Main Stylesheet */
/* Colors: primary #ff5a5a | secondary #00ac92 | dark #293331 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', 'Noto Sans', Arial, sans-serif; color: #333; background: #fff; }

/* ===== NAV ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.nav-logo span { font-size: 1.3rem; font-weight: 700; color: #293331; }
.nav-logo .accent { color: #ff5a5a; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { color: #555; text-decoration: none; font-weight: 500; font-size: 0.875rem; padding: 6px 10px; border-radius: 8px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-links a:hover { color: #ff5a5a; background: rgba(255,90,90,0.07); }
.nav-links a.active { color: #ff5a5a; background: rgba(255,90,90,0.1); font-weight: 600; }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: #293331; margin: 5px 0; transition: all 0.3s; }
/* Mobile menu */
.mobile-menu {
  display: none; background: #fff; border-top: 1px solid #eee;
  padding: 0; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-menu.open { display: block; max-height: 600px; padding: 8px 0 16px; }
.mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: #293331; text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:hover { background: #f5f9f8; color: #ff5a5a; }
.mobile-menu a.active { color: #ff5a5a; background: rgba(255,90,90,0.06); font-weight: 600; }
.mobile-menu-divider { height: 1px; background: #f0f0f0; margin: 6px 20px; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 32px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: #ff5a5a; color: #fff; }
.btn-primary:hover { background: #ff3838; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,90,90,0.3); color: #fff; }
.btn-secondary { background: transparent; color: #293331; border: 2px solid #293331; }
.btn-secondary:hover { background: #293331; color: #fff; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: #fff; color: #293331; }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 44px; font-size: 1.05rem; }

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.section-sm { padding: 60px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,90,90,0.1); border-radius: 50px; padding: 6px 16px; margin-bottom: 16px; }
.section-badge span { font-size: 0.8rem; font-weight: 600; color: #ff5a5a; }
.section-badge.teal { background: rgba(0,172,146,0.1); }
.section-badge.teal span { color: #00ac92; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; color: #293331; line-height: 1.25; margin-bottom: 12px; }
.section-title.white { color: #fff; }
.section-subtitle { font-size: 1.05rem; color: #666; max-width: 600px; margin: 0 auto; line-height: 1.7; }
.section-subtitle.light { color: rgba(255,255,255,0.75); }

/* ===== CARDS ===== */
.card { background: #fff; border-radius: 16px; padding: 32px 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: all 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #fff 0%, #f5f9f8 100%); min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,90,90,0.1); border-radius: 50px; padding: 6px 16px; margin-bottom: 20px; }
.hero-badge span { font-size: 0.8rem; font-weight: 600; color: #ff5a5a; }
.hero-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; color: #293331; line-height: 1.15; margin-bottom: 24px; }
.hero-title .accent { color: #ff5a5a; }
.hero-desc { font-size: 1.15rem; color: #555; line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; padding-top: 32px; border-top: 1px solid #eee; }
.hero-stat-val { font-size: 1.5rem; font-weight: 700; color: #293331; }
.hero-stat-lbl { font-size: 0.85rem; color: #888; }
.hero-img-wrap { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-circle { width: 420px; height: 420px; background: #00ac92; border-radius: 50%; position: absolute; bottom: -40px; right: -40px; opacity: 0.12; }
.hero-img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; position: relative; z-index: 1; }

/* ===== FEATURES DARK ===== */
.bg-dark { background: #293331; }
.bg-primary { background: #ff5a5a; }
.bg-secondary { background: #00ac92; }
.bg-light { background: #f5f9f8; }
.feature-card-dark { background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 32px 24px; transition: all 0.3s; }
.feature-card-dark:hover { border-color: #ff5a5a; background: rgba(255,255,255,0.09); }
.feature-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-icon.red { background: #ff5a5a; }
.feature-icon.teal { background: #00ac92; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature-desc { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: #ff5a5a; }
.stat-label { font-size: 0.95rem; color: rgba(255,255,255,0.8); font-weight: 500; margin-top: 4px; }

/* ===== WHY US LIST ===== */
.why-list { display: flex; flex-direction: column; gap: 14px; }
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-check { width: 22px; height: 22px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; color: #fff; }
.why-text { color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.5; }

/* ===== OFFER CARDS ===== */
.offer-card { position: relative; border-radius: 16px; overflow: hidden; height: 320px; cursor: pointer; }
.offer-card img { width: 100%; height: 100%; object-fit: cover; }
.offer-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(41,51,49,0.95) 0%, rgba(41,51,49,0.4) 60%); transition: opacity 0.3s; }
.offer-card:hover .offer-overlay { opacity: 0.9; }
.offer-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }

/* ===== TESTIMONIALS ===== */
.testimonial-box { background: #fff; border-radius: 20px; padding: 40px 48px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.testimonial-quote { font-size: 3rem; color: #ff5a5a; line-height: 1; margin-bottom: 16px; }
.testimonial-text { font-size: 1.1rem; color: #555; line-height: 1.7; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.testimonial-avatar { width: 48px; height: 48px; background: #ff5a5a; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testimonial-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.2s; }
.testimonial-dot.active { background: #fff; }

/* ===== PROGRAMS ===== */
.program-card { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); transition: transform 0.3s; cursor: pointer; }
.program-card:hover { transform: translateY(-8px); }
.program-img-wrap { position: relative; height: 200px; }
.program-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.program-overlay { position: absolute; inset: 0; background: rgba(41,51,49,0.5); }
.program-label { position: absolute; top: 16px; left: 16px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.program-body { padding: 16px 20px; text-align: center; }
.program-desc { color: #666; font-size: 0.9rem; }

/* ===== BLOG ===== */
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: all 0.3s; text-decoration: none; display: block; color: inherit; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.blog-card-img { position: relative; height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-tag { display: inline-block; background: #ff5a5a; color: #fff; padding: 3px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px; }
.blog-meta { color: #999; font-size: 0.82rem; margin-bottom: 10px; }
.blog-title { font-size: 1.05rem; font-weight: 700; color: #293331; margin-bottom: 10px; line-height: 1.3; }
.blog-excerpt { color: #666; font-size: 0.875rem; line-height: 1.6; }
.read-more { color: #ff5a5a; font-weight: 600; font-size: 0.875rem; margin-top: 16px; display: block; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: center; }
.pricing-card { background: #fff; border-radius: 16px; padding: 40px 32px; border: 2px solid #e5e7eb; transition: all 0.3s; position: relative; }
.pricing-card:hover { border-color: #ff5a5a; box-shadow: 0 12px 40px rgba(255,90,90,0.1); }
.pricing-card.featured { border-color: #ff5a5a; box-shadow: 0 12px 40px rgba(255,90,90,0.15); transform: scale(1.03); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #ff5a5a; color: #fff; padding: 4px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pricing-name { font-size: 1.3rem; font-weight: 700; color: #293331; margin-bottom: 8px; }
.pricing-desc { color: #666; font-size: 0.9rem; margin-bottom: 20px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.pricing-period { color: #888; font-size: 0.9rem; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-top: 20px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.pricing-features li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.9rem; color: #555; }
.check { color: #00ac92; font-weight: 700; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.faq-tab { padding: 10px 20px; border-radius: 50px; border: 2px solid #e5e7eb; background: #fff; color: #293331; font-weight: 600; cursor: pointer; font-size: 0.875rem; transition: all 0.2s; }
.faq-tab.active, .faq-tab:hover { background: #ff5a5a; border-color: #ff5a5a; color: #fff; }
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 1.02rem; font-weight: 600; color: #293331; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-icon { color: #ff5a5a; font-size: 1.4rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-icon.open { transform: rotate(45deg); }
.faq-answer { padding-bottom: 20px; color: #555; line-height: 1.7; display: none; }
.faq-answer.open { display: block; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon { width: 48px; height: 48px; background: #ff5a5a; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-form { background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: #293331; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 0.95rem; color: #293331; outline: none; transition: border-color 0.2s; font-family: inherit; background: #fff; }
.form-input:focus { border-color: #ff5a5a; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ===== AI ADVISOR ===== */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.chat-sidebar { display: flex; flex-direction: column; gap: 16px; }
.chat-sidebar-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.suggestion-btn { width: 100%; text-align: left; background: #f5f9f8; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; font-size: 0.8rem; color: #293331; cursor: pointer; line-height: 1.4; transition: all 0.2s; font-family: inherit; margin-bottom: 8px; }
.suggestion-btn:hover { border-color: #ff5a5a; background: rgba(255,90,90,0.05); }
.chat-main { background: #fff; border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; }
.chat-header { padding: 20px 24px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; background: #ff5a5a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-status { font-size: 0.75rem; color: #00ac92; font-weight: 600; }
.chat-messages { height: 480px; overflow-y: auto; padding: 20px; background: #f8f9fa; }
.msg-row { display: flex; margin-bottom: 12px; }
.msg-row.user { justify-content: flex-end; }
.msg-row.ai { justify-content: flex-start; }
.msg-ai-icon { width: 32px; height: 32px; background: #ff5a5a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; margin-right: 8px; align-self: flex-end; }
.msg-bubble { padding: 12px 16px; border-radius: 18px; max-width: 75%; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; }
.msg-bubble.user { background: #ff5a5a; color: #fff; border-radius: 18px 18px 4px 18px; }
.msg-bubble.ai { background: #fff; color: #293331; border-radius: 18px 18px 18px 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.chat-input-area { padding: 16px 20px; border-top: 1px solid #eee; display: flex; gap: 12px; align-items: flex-end; }
.chat-input { flex: 1; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 0.95rem; color: #293331; outline: none; font-family: inherit; line-height: 1.5; resize: none; max-height: 120px; transition: border-color 0.2s; }
.chat-input:focus { border-color: #ff5a5a; }
.chat-send { width: 48px; height: 48px; background: #ff5a5a; border: none; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; flex-shrink: 0; transition: all 0.2s; }
.chat-send:hover { background: #ff3838; transform: scale(1.05); }
.chat-send:disabled { background: #e5e7eb; cursor: not-allowed; transform: none; }
.typing-dot { display: inline-block; width: 8px; height: 8px; background: #00ac92; border-radius: 50%; margin: 0 2px; animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #ff5a5a, #00ac92); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot { position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px; }
.timeline-dot.red { background: #ff5a5a; box-shadow: 0 0 0 2px #ff5a5a; }
.timeline-dot.teal { background: #00ac92; box-shadow: 0 0 0 2px #00ac92; }
.timeline-box { background: #fff; border-radius: 12px; padding: 20px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.timeline-year { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.timeline-year.red { color: #ff5a5a; }
.timeline-year.teal { color: #00ac92; }

/* ===== FOOTER ===== */
footer { background: #293331; color: #fff; padding-top: 60px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 40px; height: 40px; border-radius: 8px; }
.footer-logo span { font-size: 1.3rem; font-weight: 700; }
.footer-desc { color: #aaa; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #aaa; text-decoration: none; font-size: 0.75rem; transition: all 0.2s; }
.social-btn:hover { background: #ff5a5a; color: #fff; }
.footer-heading { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: #aaa; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-link:hover { color: #ff5a5a; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact-icon { color: #ff5a5a; margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { color: #aaa; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: #aaa; font-size: 0.85rem; text-decoration: none; }
.footer-legal a:hover { color: #ff5a5a; }

/* ===== MESSAGES ===== */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(0,172,146,0.1); border: 1px solid rgba(0,172,146,0.3); color: #00745f; }
.alert-error { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.3); color: #c0392b; }

/* ===== GRID UTILITIES ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ===== RESPONSIVE ===== */

/* ── Tablet landscape ≤1100px — switch to hamburger ── */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .nav-inner { padding: 0 20px; }
}

/* ── Tablet landscape 1100–1280px — tighten links ── */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 0.82rem; padding: 6px 8px; }
  .nav-inner { padding: 0 16px; }
  .nav-cta { gap: 6px; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(1.8rem, 3.5vw, 3rem); }
}

/* ── Tablet ≤900px ── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .section { padding: 72px 20px; }
  .section-sm { padding: 48px 20px; }
}

/* ── Tablet portrait ≤768px ── */
@media (max-width: 768px) {
  /* Navbar size */
  .nav-inner { padding: 0 16px; height: 64px; }
  .nav-logo img { width: 36px; height: 36px; }
  .nav-logo span { font-size: 1.15rem; }

  /* Layout */
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero-img-wrap { display: none; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn { text-align: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 20px; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 20px; }

  /* Testimonials */
  .testimonial-box { padding: 24px 20px; }
  .testimonial-author { flex-direction: column; gap: 8px; text-align: center; }

  /* Sections */
  .section { padding: 60px 16px; }
  .section-sm { padding: 40px 16px; }
  .section-header { margin-bottom: 36px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  footer { padding-top: 48px; padding-bottom: 24px; }

  /* Pricing */
  .pricing-card.featured { transform: none; }
  .pricing-grid { gap: 16px; }

  /* Chat */
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-messages { height: 380px; }
  .chat-input-area { padding: 12px 16px; }
  .msg-bubble { max-width: 88%; font-size: 0.9rem; }

  /* Cards */
  .card { padding: 24px 16px; }
  .pricing-card { padding: 28px 20px; }
}

/* ── Large mobile ≤640px ── */
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .hero-stats { gap: 12px; }
  .hero-stat-val { font-size: 1.3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Blog */
  .blog-card-img { height: 180px; }

  /* Universities */
  .offer-card { height: 260px; }
}

/* ── Mobile ≤480px ── */
@media (max-width: 480px) {
  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Footer — center all columns on mobile */
  footer { padding-left: 20px; padding-right: 20px; }
  .footer-grid > div { text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-links { align-items: center; }
  .footer-contact-item { justify-content: center; text-align: left; }
  .footer-bottom { text-align: center; }
  .footer-legal { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Spacing */
  .section { padding: 48px 14px; }
  .section-sm { padding: 32px 14px; }
  .container { padding: 0 4px; }

  /* Typography */
  .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .section-subtitle { font-size: 0.95rem; }

  /* Buttons */
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .btn { padding: 10px 24px; font-size: 0.875rem; }

  /* Navbar */
  .nav-inner { height: 60px; }
  .nav-logo span { font-size: 1.05rem; }

  /* Chat */
  .chat-messages { height: 320px; }
  .chat-input { font-size: 0.875rem; }

  /* Timeline */
  .timeline { padding-left: 24px; }

  /* FAQ */
  .faq-question { font-size: 0.95rem; padding: 16px 0; }

  /* Testimonials */
  .testimonial-box { padding: 20px 14px; }
  .testimonial-text { font-size: 0.95rem; }

  /* Blog */
  .blog-card-body { padding: 16px; }
  .blog-card-img { height: 160px; }
}

/* ── Very small ≤360px ── */
@media (max-width: 360px) {
  .section { padding: 40px 12px; }
  .btn-lg { padding: 12px 20px; font-size: 0.875rem; }
  .btn-sm { padding: 7px 14px; }
  .nav-logo span { font-size: 0.95rem; }
  .hero-stat-val { font-size: 1.1rem; }
  .pricing-price { font-size: 2rem; }
}
