/* UCA Website Typography & Design System */
/* Consistent typography, colors, and formatting across all frontend pages */

/* ========================================
   FONT IMPORTS & BASE SETUP
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

/* ========================================
   CSS VARIABLES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Primary Colors */
  --primary-blue: #005aab;
  --primary-orange: #F68C3D;
  --primary-dark: #222222;
  --primary-gray: #5e6576;
  
  /* Secondary Colors */
  --secondary-light-blue: #E7EEFE;
  --secondary-light-gray: #f8f9fa;
  --secondary-dark-gray: #585858;
  --secondary-text-gray: #666666;
  
  /* Status Colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Nunito', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--primary-gray);
  font-weight: 400;
}

/* ========================================
   HEADINGS
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
}

/* ========================================
   PARAGRAPHS & TEXT
   ======================================== */
p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--primary-gray);
  margin-bottom: var(--spacing-md);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  color: var(--secondary-text-gray);
}

.text-muted {
  color: var(--secondary-text-gray) !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.text-secondary {
  color: var(--secondary-text-gray) !important;
}

/* ========================================
   LINKS
   ======================================== */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-orange);
  text-decoration: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary {
  background-color: var(--primary-orange);
  color: white;
  border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  color: white;
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-xs);
}

/* Legacy button compatibility */
.blue-btn {
  background-color: var(--primary-blue);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.blue-btn:hover {
  background-color: #044681;
  color: white;
  text-decoration: none;
}

.white-btn {
  background-color: white;
  color: var(--primary-blue);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.white-btn:hover {
  background-color: var(--primary-blue);
  color: white;
  text-decoration: none;
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-body {
  padding: var(--spacing-xl);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

.card-text {
  color: var(--primary-gray);
  line-height: var(--line-height-relaxed);
}

/* Legacy card compatibility */
.shadowed-box {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.shadowed-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTIONS & LAYOUT
   ======================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.block-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.block-title h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

.block-title p {
  font-size: var(--font-size-lg);
  color: var(--secondary-text-gray);
  margin-bottom: 0;
}

/* ========================================
   FORMS
   ======================================== */
.form-control {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  padding: var(--spacing-md);
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 90, 171, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   LISTS
   ======================================== */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-normal);
}

.program-list {
  list-style: none;
  padding-left: 0;
  margin: var(--spacing-md) 0;
}

.program-list li {
  position: relative;
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-relaxed);
  color: var(--primary-gray);
}

.program-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: var(--font-size-lg);
}

/* ========================================
   ICONS & IMAGES
   ======================================== */
.icon-holder {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-light-blue);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.icon-holder:hover {
  transform: scale(1.1);
}

.program-icon {
  width: 90px;
  height: 90px;
  margin: 0 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

.program-icon:hover {
  transform: scale(1.1);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;     /* 32px */
    --font-size-3xl: 1.5rem;   /* 24px */
    --font-size-2xl: 1.25rem;  /* 20px */
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .block-title h2 {
    font-size: var(--font-size-2xl);
  }
  
  .card-body {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
  }
  
  .btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }
.font-weight-extrabold { font-weight: 800; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* ========================================
   LEGACY COMPATIBILITY
   ======================================== */
/* Ensure existing classes still work */
.banner-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-md);
}

.banner-subtitle {
  font-size: var(--font-size-lg);
  color: white;
  margin-bottom: var(--spacing-lg);
}

.mission-wrap h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--secondary-dark-gray);
  margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.mission-wrap h4 {
  font-size: var(--font-size-sm);
  color: #ACACAC;
  text-transform: uppercase;
  margin: 0;
  font-weight: 300;
}

.mission-wrap p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: #9D9D9D;
  margin: 0;
}

/* ========================================
   ANIMATION IMPROVEMENTS
   ======================================== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-up {
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
