/* ============================================================
   Du hoc Van Thien Long - Scholarship Landing Page
   Custom CSS (complements TailwindCSS CDN)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:   #1a56db;   /* trustworthy deep blue */
  --color-accent:    #f59e0b;   /* warm amber accent */
  --color-surface:   #f8fafc;
  --color-text:      #1e293b;
  --color-muted:     #64748b;
  --color-border:    #e2e8f0;
  --color-success:   #10b981;
  --radius-card:     1rem;
  --shadow-card:     0 2px 16px 0 rgba(30,41,59,.08);
  --shadow-btn:      0 4px 14px 0 rgba(26,86,219,.35);
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Be Vietnam Pro', sans-serif;
  --transition:      .2s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography helpers ---------- */
.font-display { font-family: var(--font-display); }

/* ---------- Navbar ---------- */
#navbar {
  transition: box-shadow var(--transition), background var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 1px 16px 0 rgba(30,41,59,.1);
}

/* ---------- Hero ---------- */
.hero-bg {
  background: linear-gradient(135deg, #0f2c6e 0%, #1a56db 55%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 40%, rgba(245,158,11,.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.07) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Country flag badges ---------- */
.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .35rem .8rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}

/* ---------- Stat chips (hero) ---------- */
.stat-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .75rem;
  padding: .75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

/* ---------- CTA Button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 rgba(245,158,11,.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .82rem 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.6);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ---------- Section labels ---------- */
.section-label {
  display: inline-block;
  background: #eff6ff;
  color: var(--color-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 9999px;
  margin-bottom: .75rem;
}

/* ---------- Scholarship Cards ---------- */
.scholarship-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.scholarship-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(30,41,59,.13);
}
.country-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.country-usa    { background: #eff6ff; color: #1d4ed8; }
.country-aus    { background: #fef3c7; color: #92400e; }
.country-can    { background: #fef2f2; color: #991b1b; }
.country-uk     { background: #f0fdf4; color: #166534; }
.country-other  { background: #f5f3ff; color: #5b21b6; }

.scholarship-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}
.deadline-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--color-muted);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: .5rem;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Lead Form ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-field input,
.form-field select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: .6rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-field input::placeholder { color: #94a3b8; }

/* ---------- Trust icons row ---------- */
.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--color-muted);
}
.trust-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- About section ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ---------- Contact bar ---------- */
.contact-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: .925rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--color-primary); }

/* ---------- Footer ---------- */
.footer-bg {
  background: #0f172a;
}

/* ---------- Sticky mobile CTA ---------- */
#sticky-cta {
  display: none;
}
@media (max-width: 767px) {
  #sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: .75rem 1rem;
    gap: .75rem;
    box-shadow: 0 -4px 16px rgba(30,41,59,.1);
  }
  #sticky-cta a { flex: 1; justify-content: center; font-size: .875rem; padding: .75rem 1rem; }
}

/* ---------- Utilities ---------- */
.divider { height: 1px; background: var(--color-border); }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
