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

/* ============================================
   AngoScholar Design System - CSS Variables
   ============================================ */

:root {
  /* Core palette - Deep academic blue & warm gold */
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;

  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;

  /* Primary - Deep academic blue */
  --primary: 217 91% 30%;
  --primary-foreground: 0 0% 100%;
  --primary-light: 217 91% 45%;
  --primary-dark: 217 91% 20%;

  /* Secondary - Warm gold */
  --secondary: 43 96% 50%;
  --secondary-foreground: 222 47% 11%;

  /* Accent - Teal for CTAs */
  --accent: 173 80% 40%;
  --accent-foreground: 0 0% 100%;

  --muted: 210 20% 96%;
  --muted-foreground: 215 16% 47%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 217 91% 30%;

  --radius: 0.75rem;

  /* Custom tokens */
  --hero-gradient: linear-gradient(135deg, hsl(217 91% 25%) 0%, hsl(217 91% 35%) 50%, hsl(200 80% 35%) 100%);
  --card-shadow: 0 4px 20px -4px hsl(217 91% 30% / 0.12);
  --card-shadow-hover: 0 12px 40px -8px hsl(217 91% 30% / 0.2);
  --gold-gradient: linear-gradient(135deg, hsl(43 96% 50%) 0%, hsl(38 92% 55%) 100%);
  --text-gradient: linear-gradient(135deg, hsl(217 91% 30%) 0%, hsl(200 80% 40%) 100%);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root.auto-dark {
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;
    --card: 222 47% 9%;
    --card-foreground: 210 40% 98%;
    --popover: 222 47% 9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217 91% 55%;
    --primary-foreground: 0 0% 100%;
    --primary-light: 217 91% 65%;
    --primary-dark: 217 91% 45%;
    --secondary: 43 96% 55%;
    --secondary-foreground: 222 47% 11%;
    --accent: 173 80% 50%;
    --accent-foreground: 0 0% 100%;
    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;
    --border: 217 33% 17%;
    --input: 217 33% 17%;
    --ring: 217 91% 55%;
    --hero-gradient: linear-gradient(135deg, hsl(222 47% 8%) 0%, hsl(217 91% 20%) 100%);
    --card-shadow: 0 4px 20px -4px hsl(0 0% 0% / 0.3);
    --card-shadow-hover: 0 12px 40px -8px hsl(0 0% 0% / 0.4);
  }
}

/* ============================================
   Base Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   Container
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -2px hsl(217 91% 30% / 0.3);
  transition: box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
  box-shadow: 0 6px 16px -2px hsl(217 91% 30% / 0.4);
}

.logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary-foreground));
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--foreground));
}

.logo-text span {
  color: hsl(var(--primary));
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 3rem;
  }
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

.nav-link.active {
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.1);
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: background-color 0.2s ease;
}

.lang-btn:hover {
  background-color: hsl(var(--muted));
}

.lang-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  line-height: 1;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-width: 140px;
  z-index: 100;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background-color: hsl(var(--muted));
}

.lang-option.active {
  background-color: hsl(var(--muted));
}

.lang-flag {
  width: 1.25rem;
  height: 0.875rem;
  border-radius: 0.125rem;
  object-fit: cover;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: hsl(var(--muted));
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--hero-gradient);
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 12px -2px hsl(217 91% 30% / 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px -2px hsl(217 91% 30% / 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.625rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--card-shadow);
}

.card-elevated {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-elevated:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

/* ============================================
   Hero Section (for scholarship pages)
   ============================================ */

.hero {
  background: var(--hero-gradient);
  color: hsl(var(--primary-foreground));
  padding: 8rem 0 4rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 10rem 0 5rem;
    margin-top: 5rem;
  }
}

.hero-content {
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--primary-foreground) / 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 36rem;
}

/* ============================================
   Main Content Layout
   ============================================ */

.main-content {
  padding: 3rem 0;
  overflow-x: hidden;
}

.content-grid {
  display: grid;
  gap: 2rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
  }
}

/* Article Styles */
.article {
  max-width: none;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-thumbnail {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.article h2 {
  font-size: 1.75rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid hsl(var(--primary));
}

.article h3 {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin: 2rem 0 1rem;
}

.article p {
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.article ul, .article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: hsl(var(--muted-foreground));
}

.article li {
  margin-bottom: 0.5rem;
}

/* Section Headers with Icons */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 2.5rem 0 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.section-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.section-header:first-of-type {
  margin-top: 0;
}

/* Numbered Steps List */
.numbered-steps {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.numbered-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.6;
}

/* Tips/Info Box */
.tip-box {
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.tip-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tip-box-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--foreground));
}

.tip-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Schedule/Timeline Table */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
}

.schedule-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.schedule-table th {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.schedule-table td {
  color: hsl(var(--foreground));
  font-weight: 500;
  word-break: break-word;
}

.schedule-table td:first-child {
  font-weight: 600;
  min-width: 180px;
}

.schedule-table td:last-child {
  min-width: 140px;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

/* Study Areas/Programs Cards */
.study-areas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.study-area-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.study-area-card:hover {
  background-color: hsl(var(--muted));
  transform: translateX(4px);
}

.study-area-card svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.study-area-card span {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Eligibility/Requirements List with Arrows */
.requirements-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--foreground));
  padding: 0.5rem 0;
}

.requirements-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Coverage/Benefits List with Check */
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--foreground));
  padding: 0.5rem 0;
}

.coverage-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(173 80% 40%);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* CTA Box */
.cta-box {
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cta-box p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-whatsapp {
  background-color: hsl(142 70% 45%);
  color: white;
}

.btn-whatsapp:hover {
  background-color: hsl(142 70% 40%);
}

/* FAQ Accordion */
.faq-list {
  margin: 1.5rem 0;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Quick Info */
.quick-info {
  display: grid;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Related Scholarships */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: hsl(var(--muted) / 0.5);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.related-item:hover {
  background-color: hsl(var(--muted));
  transform: translateX(4px);
}

.related-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-country {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

.footer-main {
  padding: 4rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary-foreground));
}

.footer-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo-text span {
  color: hsl(var(--secondary));
}

.footer-desc {
  color: hsl(var(--background) / 0.7);
  margin-bottom: 1.5rem;
  max-width: 20rem;
  font-size: 0.875rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.7);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
}

.footer-section h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.7);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: hsl(var(--secondary));
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid hsl(var(--background) / 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.6);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--background) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   Utilities
   ============================================ */

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: var(--hero-gradient);
}

.gold-gradient {
  background: var(--gold-gradient);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Related Scholarships Section
   ============================================ */

.related-scholarships-section {
  padding: 4rem 0;
  background-color: hsl(var(--muted));
}

.related-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.related-section-title svg {
  color: hsl(var(--primary));
}

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

@media (min-width: 640px) {
  .related-scholarships-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-scholarships-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-scholarship-card {
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-scholarship-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.related-scholarship-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-scholarship-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-scholarship-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.related-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.related-scholarship-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.3;
  transition: color 0.2s ease;
}

.related-scholarship-card:hover .related-scholarship-content h3 {
  color: hsl(var(--primary));
}

.related-scholarship-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-scholarship-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.related-scholarships-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.related-scholarships-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
