/* 
  AST Brand Style System 
  Version 1.0
*/

:root {
  /* Primary Colors */
  --ast-blue: #2563EB;
  --ast-deep-ocean: #1d4ed8;
  --ast-slate-dark: #0f172a;

  /* Secondary & Accent Colors */
  --ast-gold: #FACC15;
  --ast-victory-green: #10b981;
  --ast-alert-red: #dc2626;

  /* Background gradients */
  --ast-water-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  --ast-hero-gradient: linear-gradient(rgba(37, 99, 235, 0.85), rgba(30, 58, 138, 0.9));

  /* Light colors & borders */
  --ast-light-bg: #f8fafc;
  --ast-border-light: #e2e8f0;

  /* Text */
  --ast-text-body: #475569;
  --ast-text-headings: #0f172a;
}

/* =========================================
   RESET & FOUNDATION
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  background: var(--ast-water-gradient);
  color: var(--ast-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  /* Pushes footer down */
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ast-text-headings);
  font-weight: 700;
  line-height: 1.2;
}

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

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

a {
  color: var(--ast-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--ast-deep-ocean);
}

/* =========================================
   LAYOUT UTILITIES
========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

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

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

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

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

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* =========================================
   COMPONENTS
========================================= */

/* Hero Sections */
.hero {
  background: var(--ast-blue);
  padding: 60px 20px;
  text-align: center;
  color: white;
  border-bottom: 4px solid var(--ast-deep-ocean);
}

.hero-large {
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: white;
  border-bottom: 4px solid var(--ast-deep-ocean);
  position: relative;
}

.hero h1 {
  color: white;
}

.hero-large h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p,
.hero-large p {
  color: #bfdbfe;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.badge-outline-white {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.badge-blue {
  background: #eff6ff;
  color: #1e40af;
}

.badge-green {
  background: #f0fdf4;
  color: #166534;
}

.badge-gold {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--ast-gold);
  color: var(--ast-slate-dark);
  border: 2px solid var(--ast-gold);
}

.btn-primary:hover {
  background-color: #eab308;
  border-color: #eab308;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: var(--ast-slate-dark);
}

/* Cards */
.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ast-border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-top-blue {
  border-top: 5px solid var(--ast-blue);
}

.card-top-green {
  border-top: 5px solid var(--ast-victory-green);
}

.card-top-gold {
  border-top: 5px solid var(--ast-gold);
}

.card-top-indigo {
  border-top: 5px solid #6366f1;
}

.card-body {
  padding: 25px;
}

.card-img-top {
  height: 300px;
  overflow: hidden;
  background: var(--ast-border-light);
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top img {
  transform: scale(1.05);
}

/* Call to Action Box */
.cta-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 40px;
}

/* Header Text w/ underline */
.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--ast-blue);
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.title-underline-green::after {
  background: var(--ast-victory-green);
}

/* =========================================
   NAVIGATION (New)
========================================= */
.ast-navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ast-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-menu>li>a {
  color: var(--ast-text-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ast-blue);
}

.has-dropdown {
  position: relative;
}

.has-dropdown>a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.caret {
  font-size: 0.7em;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid var(--ast-border-light);
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  display: block;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: var(--ast-light-bg);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ast-slate-dark);
}

/* =========================================
   FOOTER (New)
========================================= */
.ast-footer {
  background: var(--ast-slate-dark);
  color: white;
  padding: 60px 20px 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #94a3b8;
  font-weight: 400;
}

.footer-col ul a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 0.875rem;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    gap: 15px;
    align-items: stretch;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu>li>a {
    padding: 5px 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 5px 0 5px 15px;
  }

  .hero h1,
  .hero-large h1 {
    font-size: 2rem;
  }
}