/* ============================================================
   Mada2US - Comprehensive Stylesheet
   Platform for Malagasy students studying in the U.S.
   Aesthetic: Luxury Editorial / Dark Academic
   ============================================================ */

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

/* ------------------------------------------------------------
   1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  --bg-primary: #F5F1EA;
  --bg-card: #FAF7F2;
  --bg-dark: #2A1C18;
  --text-primary: #2B1F1A;
  --text-secondary: #6E5A50;
  --text-tertiary: #7A6A5F;
  --accent-gold: #B89B72;
  --accent-warm: #C6A96B;
  --btn-bg: #D6C2A8;
  --border-light: #E8DED3;
  --dark-text: #F2EDE6;
  --dark-overlay: rgba(90, 46, 42, 0.4);
  --green-accent: #4CAF50;
  --warning: #FF9800;
  --error: #f44336;
  --info: #2196F3;
  --white: #fff;
  --shadow-sm: 0 2px 12px rgba(43, 31, 26, 0.04);
  --shadow-md: 0 4px 20px rgba(43, 31, 26, 0.06);
  --shadow-lg: 0 8px 30px rgba(43, 31, 26, 0.08);
  --shadow-xl: 0 12px 40px rgba(43, 31, 26, 0.10);
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 5px;
  --radius-xl: 6px;
  --radius-pill: 50px;
  --transition: 0.4s ease;
  --font-heading: 'Playfair Display', serif;
  --font-subheading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --navbar-height: 60px;
  --sidebar-width: 250px;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper grain texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.section-label {
  font-family: var(--font-subheading);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   4. Navbar
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.navbar-logo:hover {
  color: var(--text-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar-links a {
  font-family: var(--font-subheading);
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  background: var(--btn-bg);
  color: var(--text-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition);
}

.navbar-cta:hover {
  background: var(--accent-gold);
  color: var(--text-primary) !important;
}

.navbar-cta::after {
  display: none !important;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------------------------------------------------
   5. Hero Section
   ------------------------------------------------------------ */
.hero-section {
  background: linear-gradient(to bottom, rgba(42, 28, 24, 0.6), rgba(42, 28, 24, 0.3));
  color: var(--dark-text);
  text-align: center;
  padding: 160px 2rem 120px;
  margin-top: var(--navbar-height);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(184, 155, 114, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4 {
  color: var(--dark-text);
}

.hero-badge {
  display: inline-block;
  background: rgba(242, 237, 230, 0.12);
  color: var(--dark-text);
  padding: 0.4rem 1.2rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(242, 237, 230, 0.2);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--dark-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(242, 237, 230, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-btn-primary {
  background: var(--btn-bg);
  color: var(--text-primary);
  padding: 14px 40px;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition);
}

.hero-btn-primary:hover {
  color: var(--text-primary);
  background: var(--accent-gold);
}

.hero-btn-secondary {
  background: transparent;
  color: var(--dark-text);
  padding: 14px 40px;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 237, 230, 0.4);
  transition: border-color var(--transition), background var(--transition);
}

.hero-btn-secondary:hover {
  background: rgba(242, 237, 230, 0.08);
  border-color: rgba(242, 237, 230, 0.7);
  color: var(--dark-text);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(242, 237, 230, 0.5);
  margin-left: -10px;
  object-fit: cover;
}

.hero-avatars img:first-child {
  margin-left: 0;
}

.hero-social-text {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
  color: rgba(242, 237, 230, 0.7);
}

/* ------------------------------------------------------------
   6. Problem Section
   ------------------------------------------------------------ */
.problem-section {
  background: var(--bg-primary);
  padding: 120px 2rem;
}

.problem-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.problem-text h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.problem-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: none;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow var(--transition);
}

.problem-card:hover {
  box-shadow: var(--shadow-sm);
}

.problem-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1rem;
}

.problem-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   7. Solution Section
   ------------------------------------------------------------ */
.solution-section {
  background: var(--bg-card);
  padding: 120px 2rem;
  text-align: center;
}

.solution-section .section-title {
  margin-bottom: 2.5rem;
}

.solution-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.solution-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-subheading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

.solution-item::before {
  content: "\2713";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: rgba(184, 155, 114, 0.15);
  color: var(--accent-gold);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ------------------------------------------------------------
   8. Feature Cards / Grid
   ------------------------------------------------------------ */
.features-section {
  background: var(--bg-primary);
  padding: 120px 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 1rem 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: left;
  border: 1px solid var(--border-light);
  box-shadow: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d9cfc3;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(184, 155, 114, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   9. How It Works
   ------------------------------------------------------------ */
.how-it-works,
.how-it-works-section {
  background: var(--bg-dark);
  padding: 120px 2rem;
  color: var(--dark-text);
}

.how-it-works .section-label,
.how-it-works-section .section-label {
  color: var(--accent-warm);
}

.how-it-works .section-title,
.how-it-works-section .section-title {
  color: var(--dark-text);
}

.how-it-works-text {
  text-align: center;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: rgba(198, 169, 107, 0.15);
  color: var(--accent-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  color: var(--dark-text);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: rgba(242, 237, 230, 0.7);
  margin-bottom: 0;
}

/* Connector line between steps */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -1rem;
  width: 2rem;
  height: 1px;
  background: rgba(232, 222, 211, 0.2);
}

/* ------------------------------------------------------------
   10. Testimonial / Story Cards
   ------------------------------------------------------------ */
.testimonial-card,
.story-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.testimonial-card:hover,
.story-card:hover {
  box-shadow: var(--shadow-md);
}

.story-stars {
  color: var(--accent-warm);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.story-quote {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-gold);
}

.story-student {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-student img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.story-student-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.story-student-info {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   11. CTA Section
   ------------------------------------------------------------ */
.cta-section {
  background: var(--bg-dark);
  color: var(--dark-text);
  text-align: center;
  padding: 120px 2rem;
}

.cta-section .section-title {
  color: var(--dark-text);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.cta-section p {
  color: rgba(242, 237, 230, 0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-section .hero-btn-primary {
  font-size: 0.9rem;
  padding: 16px 48px;
}

/* ------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(242, 237, 230, 0.6);
  padding: 4rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-col h4 {
  font-family: var(--font-subheading);
  color: var(--dark-text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: rgba(242, 237, 230, 0.5);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-warm);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(242, 237, 230, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(232, 222, 211, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  max-width: 1100px;
  margin: 0 auto;
  color: rgba(242, 237, 230, 0.4);
}

/* ------------------------------------------------------------
   13. Forms
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-tertiary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 114, 0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A6A5F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
}

.form-helper {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--btn-bg);
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-gold);
  color: var(--text-primary);
}

.btn-primary:active {
  background: #a88d66;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background: rgba(184, 155, 114, 0.06);
  color: var(--text-primary);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--error);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-danger:hover {
  background: #d32f2f;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   14. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

/* ------------------------------------------------------------
   15. Scholarship Cards
   ------------------------------------------------------------ */
.scholarship-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
  position: relative;
}

.scholarship-card:hover {
  box-shadow: var(--shadow-md);
}

.scholarship-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scholarship-badge.official {
  background: rgba(184, 155, 114, 0.12);
  color: var(--accent-gold);
}

.scholarship-badge.verified {
  background: rgba(184, 155, 114, 0.12);
  color: #8B7355;
}

.scholarship-badge.pending {
  background: var(--border-light);
  color: var(--text-tertiary);
}

.scholarship-deadline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--warning);
  font-weight: 600;
  margin: 0.75rem 0;
}

.scholarship-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.scholarship-tag {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.scholarship-save {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}

.scholarship-save:hover,
.scholarship-save.saved {
  color: var(--error);
  background: rgba(244, 67, 54, 0.08);
}

/* ------------------------------------------------------------
   16. Auth Pages
   ------------------------------------------------------------ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.auth-card-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 2rem;
  text-align: center;
}

.auth-card-header h2 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.auth-card-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.auth-card-body {
  padding: 2rem;
}

.auth-card-body .form-group:last-of-type {
  margin-bottom: 1.5rem;
}

.auth-card-body .btn-primary {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-tertiary);
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-footer {
  text-align: center;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   17. Onboarding
   ------------------------------------------------------------ */
.onboarding {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.onboarding-progress {
  margin-bottom: 2rem;
}

.onboarding-step-text {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.onboarding-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

.onboarding-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.onboarding-card h2 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.onboarding-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Radio / Checkbox card-style options */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.option-card:hover {
  border-color: var(--accent-gold);
  background: rgba(184, 155, 114, 0.04);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.option-card.selected {
  border-color: var(--accent-gold);
  background: var(--bg-card);
}

.option-card-label {
  font-weight: 500;
  color: var(--text-primary);
}

.option-card-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.onboarding-helper {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.onboarding-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.onboarding-nav .btn-back {
  background: transparent;
  color: var(--text-tertiary);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-subheading);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: color var(--transition);
}

.onboarding-nav .btn-back:hover {
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   18. Dashboard Layout
   ------------------------------------------------------------ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  bottom: 0;
  padding: 1.5rem 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-links,
.dashboard-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-link,
.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-subheading);
  color: var(--text-tertiary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover,
.dashboard-nav-link:hover {
  background: rgba(184, 155, 114, 0.05);
  color: var(--text-primary);
}

.sidebar-link.active,
.dashboard-nav-link--active {
  background: rgba(184, 155, 114, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  border-left-color: var(--accent-gold);
}

.sidebar-link-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-section-label {
  font-family: var(--font-subheading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  padding: 1.25rem 1.5rem 0.5rem;
  font-weight: 600;
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  min-width: 0;
  background: var(--bg-primary);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   19. Dashboard Components
   ------------------------------------------------------------ */

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}

@keyframes progressPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Stat Card */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-gold);
}

.stat-card-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card.accent-warning {
  border-left-color: var(--warning);
}

.stat-card.accent-info {
  border-left-color: var(--info);
}

.stat-card.accent-error {
  border-left-color: var(--error);
}

/* Task Item */
.task-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.task-item:hover {
  box-shadow: var(--shadow-sm);
}

.task-item-content {
  flex: 1;
  min-width: 0;
}

.task-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.task-item-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Status & Priority Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge.gray {
  background: var(--border-light);
  color: var(--text-tertiary);
}

.status-badge.yellow {
  background: rgba(255, 152, 0, 0.1);
  color: #bf6a00;
}

.status-badge.green {
  background: rgba(76, 175, 80, 0.1);
  color: #2d6e2f;
}

.status-badge.blue {
  background: rgba(33, 150, 243, 0.1);
  color: var(--info);
}

.status-badge.red {
  background: rgba(244, 67, 54, 0.08);
  color: var(--error);
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-family: var(--font-subheading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-badge.low {
  background: var(--border-light);
  color: var(--text-tertiary);
}

.priority-badge.medium {
  background: rgba(255, 152, 0, 0.1);
  color: #bf6a00;
}

.priority-badge.high {
  background: rgba(244, 67, 54, 0.08);
  color: var(--error);
}

/* Document Card */
.document-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.document-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(184, 155, 114, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.document-card-content {
  flex: 1;
  min-width: 0;
}

.document-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.document-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Timeline */
.timeline-stage {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
}

.timeline-stage::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}

.timeline-stage:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-light);
  border: 3px solid var(--bg-primary);
  box-shadow: none;
}

.timeline-stage.completed .timeline-dot {
  background: var(--green-accent);
}

.timeline-stage.active .timeline-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(184, 155, 114, 0.15);
}

.timeline-stage-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.timeline-stage-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   20. Visa Guide
   ------------------------------------------------------------ */
.visa-guide {
  padding: 2rem 0;
}

.visa-step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.visa-step-number {
  width: 44px;
  height: 44px;
  background: rgba(184, 155, 114, 0.15);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.visa-step-content h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.visa-step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.document-list {
  list-style: none;
  margin: 1rem 0;
}

.document-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.document-list li::before {
  content: "\1F4C4";
  font-size: 1rem;
}

.tip-box {
  background: rgba(184, 155, 114, 0.06);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.tip-box-title {
  font-family: var(--font-subheading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tip-box p {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.interview-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  border-left: 3px solid var(--info);
}

.interview-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--info);
}

.interview-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   21. Housing Guide
   ------------------------------------------------------------ */
.housing-type-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.housing-type-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.housing-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.housing-pros h4,
.housing-cons h4 {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.housing-pros h4 {
  color: #2d6e2f;
}

.housing-cons h4 {
  color: var(--error);
}

.housing-pros li,
.housing-cons li {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
}

.housing-pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--green-accent);
  font-weight: 700;
}

.housing-cons li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--error);
  font-weight: 700;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.budget-table th,
.budget-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.budget-table th {
  background: rgba(184, 155, 114, 0.08);
  color: var(--text-primary);
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.budget-table td {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.budget-table input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.budget-table input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* ------------------------------------------------------------
   22. FAQ
   ------------------------------------------------------------ */
.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-subheading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: color var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-gold);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   23. Utility Classes
   ------------------------------------------------------------ */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.text-green {
  color: var(--accent-gold);
}

.text-gray {
  color: var(--text-secondary);
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-primary);
  color: var(--dark-text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlideIn 0.4s ease;
  max-width: 400px;
}

.toast.success {
  border-left: 3px solid var(--green-accent);
}

.toast.error {
  border-left: 3px solid var(--error);
}

.toast.warning {
  border-left: 3px solid var(--warning);
}

.toast.info {
  border-left: 3px solid var(--info);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   24. Animations
   ------------------------------------------------------------ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease both;
}

.fade-in-up {
  animation: fadeInUp 0.4s ease both;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

.fade-in-delay-4 {
  animation-delay: 0.4s;
}

/* Section reveal on scroll (use with JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   25. Responsive - Tablet (768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Section padding reduction */
  .problem-section,
  .solution-section,
  .features-section,
  .cta-section {
    padding: 80px 1.5rem;
  }

  .how-it-works,
  .how-it-works-section {
    padding: 80px 1.5rem;
  }

  /* Navbar */
  .navbar-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .navbar-links a::after {
    display: none;
  }

  .navbar-cta {
    margin-top: 0.5rem;
    text-align: center;
    display: block;
  }

  .navbar-toggle {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding: 100px 1.5rem 60px;
  }

  /* Problem */
  .problem-section .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Solution */
  .solution-checklist {
    grid-template-columns: 1fr;
  }

  /* Features */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* How It Works */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Dashboard */
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
  }

  /* Grids */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Housing */
  .housing-pros-cons {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   26. Responsive - Mobile (480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Section padding reduction */
  .problem-section,
  .solution-section,
  .features-section,
  .cta-section {
    padding: 60px 1rem;
  }

  .how-it-works,
  .how-it-works-section {
    padding: 60px 1rem;
  }

  /* Hero */
  .hero-section {
    padding: 80px 1rem 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Features */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Visa guide */
  .visa-step-card {
    flex-direction: column;
    gap: 1rem;
  }

  /* Auth */
  .auth-card {
    border-radius: var(--radius-md);
  }

  .auth-card-header {
    padding: 1.5rem;
  }

  .auth-card-body {
    padding: 1.5rem;
  }

  /* Onboarding */
  .onboarding {
    padding: 0 1rem;
  }

  .onboarding-card {
    padding: 1.5rem;
  }

  /* Dashboard */
  .dashboard-main {
    padding: 1rem;
  }

  /* Toast */
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* ------------------------------------------------------------
   27. Print Styles
   ------------------------------------------------------------ */
@media print {
  .navbar,
  .site-footer,
  .toast,
  .dashboard-sidebar,
  .navbar-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .hero-section {
    background: none;
    color: black;
    padding-top: 1rem;
  }

  .hero-section h1,
  .hero-section h2,
  .hero-section h3 {
    color: black;
  }

  .card,
  .scholarship-card,
  .stat-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
