/* ── Reset & Box Model ───────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ── CSS Variables (design tokens) ──────────────────────── */
  :root {
    /* Colors */
    --color-primary:        #275384;   /* deep blue */
    --color-secondary:      #5a9e4b;   /* green */
    --color-bg:             #ffffff;
    --color-bg-light:       #f5f5f5;
    --color-bg-tint:        #f1f6eb;
    --color-text:           #2c2c2c;
    --color-text-light:     #888888;
    --color-overlay:        rgba(0, 0, 0, 0.7);
    --color-border:         #e0e0e0;
    --color-footer-bg:      #275384;
    --color-footer-text:    #f0ece4;
  
    /* Typography */
    --font-heading: 'Times New Roman', Times, serif;
    --font-body:    'Open Sans', sans-serif;
    --font-ui:      'Roboto', sans-serif;
  
    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
  
    /* Layout */
    --max-width: 1200px;
    --radius:    4px;
  }
  
  /* ── Base ────────────────────────────────────────────────── */
  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  /* ── Typography ──────────────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary);
  }
  
  h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
  h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
  h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
  
  p { margin-bottom: var(--space-sm); }
  
  /* ── Layout Utility ──────────────────────────────────────── */
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
  }
  
  .section {
    padding-block: var(--space-lg);
  }
  
  /* ── Footer ──────────────────────────────────────────────── */
  #site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
  }
  
  .footer-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: var(--space-md) var(--space-md);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-md);
  }
  
  .footer-logo-main {
    width: 180px;
    margin-bottom: var(--space-sm);
  }
  
  .footer-logo-sub {
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-sm);
  }
  
  .footer-logo-sub img {
    width: 80px;
    height: auto;
  }
  
  .footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  .footer-links h4,
  .footer-contact h4 {
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
  }
  
  .footer-links ul li { margin-bottom: var(--space-xs); }
  .footer-links ul li a,
  .footer-contact a {
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  .footer-links ul li a:hover,
  .footer-contact a:hover { opacity: 1; }
  
  .footer-contact p { font-size: 0.9rem; opacity: 0.8; }
  
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    opacity: 0.6;
  }
  
  /* ── Responsive footer ───────────────────────────────────── */
  @media (max-width: 768px) {
    .footer-inner {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .footer-inner {
      grid-template-columns: 1fr;
    }
  }

/* ── Top Bar ─────────────────────────────────────────────── */
#top-bar {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.4rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.top-bar-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.top-bar-contact a {
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.top-bar-contact a:hover { opacity: 1; }

.top-bar-contact .divider {
  opacity: 0.35;
  margin-inline: 0.2rem;
}

.top-bar-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.top-bar-socials a {
  color: #fff;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  line-height: 1;
}

.top-bar-socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ── Nav auth buttons ────────────────────────────────────── */
.nav-auth {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
}

/* ── Shared eyebrow label ────────────────────────────────── */
.eyebrow {
  font-size: 0.9rem;   /* ← change size here */
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;  /* ← change color here */
  margin-bottom: var(--space-xs);
  display: block;
}

/* ── Shared section heading ──────────────────────────────── */
.section-heading { margin-bottom: var(--space-lg); }
.section-heading.centered { text-align: center; }
.section-heading.light h2 { color: #fff; }
.section-heading.light .section-sub { color: rgba(255,255,255,0.7); }

.section-sub {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 580px;
  margin-inline: auto;
  margin-top: var(--space-xs);
}

.section-cta { margin-top: var(--space-lg); }
.section-cta.centered { text-align: center; }

/* ── Background utilities ────────────────────────────────── */
.bg-tint    { background-color: var(--color-bg-tint); }
.bg-light   { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); }

/* ── Container narrow ────────────────────────────────────── */
.container-narrow {
  max-width: 860px;
}

/* ── Video wrapper ───────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Shared message styles (used by contact, register, login, apply forms) ── */
.auth-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.auth-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}