/* =====================================================
   VTA – Vocational Training Authority of Sri Lanka
   Official Brand Colors:
     Navy Blue  #003087  (primary)
     Orange     #F47920  (accent)
     Gold       #FFD700  (flame / highlight)
     White      #FFFFFF
     Light bg   #F5F7FA
   style.css
   ===================================================== */

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

:root {
  --navy:       #003087;
  --navy-dark:  #00205C;
  --navy-light: #1A4BA0;
  --orange:     #F47920;
  --orange-dk:  #D4651A;
  --gold:       #FFD700;
  --white:      #FFFFFF;
  --light-bg:   #F5F7FA;
  --text:       #1A1A2E;
  --text-mid:   #374151;
  --text-muted: #6B7280;
  --border:     #DDE3EE;

  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Arial, sans-serif;

  --shadow:    0 4px 20px rgba(0,48,135,.12);
  --shadow-lg: 0 8px 36px rgba(0,48,135,.18);
  --radius:    10px;
  --trans:     .25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.section-pad { padding: 80px 24px; }
.bg-light { background: var(--light-bg); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 6px;
  font-size: .92rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--trans);
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dk); border-color: var(--orange-dk); box-shadow: 0 6px 20px rgba(244,121,32,.35); }
.btn-white-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-white-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-full { width: 100%; text-align: center; }

/* ---- Section labels ---- */
.section-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-eyebrow.light { color: var(--gold); }
.section-heading {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy); font-weight: 700; margin-bottom: 36px; line-height: 1.2;
}
.section-heading.light { color: var(--white); }

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  font-size: .76rem;
  padding: 6px 24px;
}
.topbar-inner {
  max-width: 1160px; margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  padding: 14px 24px;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 16px rgba(0,48,135,.10);
}
.header-inner {
  max-width: 1160px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo-block { display: flex; align-items: center; gap: 14px; }
.vta-logo-svg { width: 72px; height: 72px; flex-shrink: 0; }
.logo-title {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; color: var(--navy); line-height: 1.2;
}
.logo-sub { display: block; font-size: .85rem; color: var(--navy); font-weight: 600; }
.logo-sinhala { display: block; font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.header-cta { padding: 10px 22px; font-size: .85rem; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav { background: var(--navy); }
.nav-inner {
  max-width: 1160px; margin-inline: auto; padding: 0 24px;
  display: flex; align-items: center; position: relative;
}
.nav-list { display: flex; }
.nav-link {
  display: block; padding: 15px 20px;
  color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 600;
  letter-spacing: .04em; position: relative;
  transition: color var(--trans), background var(--trans);
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--orange); border-radius: 2px 2px 0 0;
  transition: left var(--trans), right var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.07); }
.nav-link:hover::after, .nav-link.active::after { left: 0; right: 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  position: absolute; right: 20px; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--trans); }

/* =====================================================
   BANNER
   ===================================================== */
.banner {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #1A4BA0 100%);
  position: relative; overflow: hidden;
}
/* Decorative circles */
.banner::before {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(244,121,32,.07); pointer-events: none;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: 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.025'%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");
  pointer-events: none;
}
.banner-content {
  max-width: 1160px; margin-inline: auto; padding: 80px 24px 48px;
  position: relative; z-index: 1;
}
.banner-eyebrow {
  color: var(--orange); font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px;
}
.banner-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white); line-height: 1.1; margin-bottom: 22px;
}
.banner-sub {
  color: rgba(255,255,255,.75); font-size: 1.05rem;
  max-width: 580px; margin-bottom: 36px; line-height: 1.7;
}
.banner-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats bar */
.banner-stats-bar {
  max-width: 1160px; margin-inline: auto;
  display: flex; border-top: 1px solid rgba(255,255,255,.12);
  position: relative; z-index: 1;
  background: rgba(0,0,0,.15);
}
.stat-item { flex: 1; padding: 22px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: 4px; }
.stat-lbl { display: block; font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .07em; }

/* =====================================================
   ABOUT
   ===================================================== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.about-body p { color: var(--text-mid); margin-bottom: 16px; font-size: .96rem; }
.about-body strong { color: var(--navy); }
.check-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { font-size: .91rem; color: var(--text-mid); font-weight: 600; }

.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px;
  border-left: 4px solid var(--orange);
  transition: transform var(--trans), box-shadow var(--trans);
}
.info-card:last-child { margin-bottom: 0; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.info-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

/* =====================================================
   COURSES
   ===================================================== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.course-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform var(--trans);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.course-card:hover::before { transform: scaleX(1); }
.course-icon-wrap { font-size: 2.2rem; margin-bottom: 14px; }
.course-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.course-card p { color: var(--text-muted); font-size: .87rem; margin-bottom: 16px; line-height: 1.6; }
.nvq-badge {
  display: inline-block; background: var(--navy); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  padding: 4px 12px; border-radius: 20px;
}

/* =====================================================
   APPLY
   ===================================================== */
.apply {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  position: relative; overflow: hidden;
}
.apply::after {
  content: 'VTA'; position: absolute; right: -10px; bottom: -50px;
  font-size: 16rem; font-family: var(--font-head); font-weight: 900;
  color: rgba(255,255,255,.03); pointer-events: none; line-height: 1;
}
.apply-grid {
  max-width: 1160px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start;
  position: relative; z-index: 1;
}
.apply-desc { color: rgba(255,255,255,.7); font-size: .96rem; margin-bottom: 24px; line-height: 1.7; }
.apply-points { display: flex; flex-direction: column; gap: 12px; }
.apply-points li { color: rgba(255,255,255,.75); font-size: .9rem; }

.apply-form-box {
  background: var(--white); border-radius: 14px; padding: 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.form-title {
  font-family: var(--font-head); font-size: 1.2rem; color: var(--navy);
  margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--orange);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.f-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 7px; font-size: .9rem; color: var(--text); font-family: var(--font-body);
  outline: none; transition: border-color var(--trans), box-shadow var(--trans);
  background: var(--white);
}
.f-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,121,32,.15); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-feedback { margin-top: 14px; text-align: center; font-size: .88rem; font-weight: 600; min-height: 20px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #050F2A; padding-top: 56px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-name { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.footer-brand-sub { color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-desc { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.8; }
.footer-heading { color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .87rem; transition: color var(--trans); }
.footer-links a:hover { color: var(--orange); }
.footer-info { display: flex; flex-direction: column; gap: 10px; }
.footer-info li { color: rgba(255,255,255,.6); font-size: .87rem; }
.footer-bottom { padding: 18px 24px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .apply-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-list {
    display: none; flex-direction: column; width: 100%;
    background: var(--navy-dark); position: absolute; top: 100%; left: 0; z-index: 300; padding: 8px 0;
  }
  .nav-list.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .banner-stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .logo-sinhala { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
