/* ============================================
   Kasi People's First - Main Stylesheet
   Mobile-First Responsive Design
   Premium Edition
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #1a5490;
  --primary-dark: #0f3a6b;
  --primary-light: #2d6ba8;
  --secondary-color: #2c7a3e;
  --secondary-dark: #1f5a2d;
  --secondary-light: #3a9a4f;
  --accent-color: #e63946;
  --accent-dark: #c92a37;
  --text-dark: #1a1f2e;
  --text-medium: #3d4556;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-lighter: #fafbfc;
  --bg-white: #ffffff;
  --border-color: #e1e8ed;
  --border-light: #f0f4f8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
  --shadow-colored: 0 8px 24px rgba(26, 84, 144, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 2rem;
  z-index: 10000;
  border-radius: 0 0 var(--border-radius-sm) 0;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.skip-link:focus {
  top: 0;
  transform: translateY(0);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== Header & Navigation ===== */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header:hover {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  position: relative;
  background: linear-gradient(
    135deg,
    #000000 0%,     /* Black */
    #FFBF00 16.67%, /* Gold/Yellow */
    #FFFFFF 33.33%, /* White */
    #00923F 50%,    /* Green */
    #DC143C 66.67%, /* Red */
    #0047AB 83.33%, /* Blue */
    #000000 100%    /* Black */
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: flagFlow 4s ease-in-out infinite;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(26, 84, 144, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.logo:hover {
  background: linear-gradient(
    135deg,
    #000000 0%,     /* Black */
    #FFD700 16.67%, /* Bright Gold */
    #FFFFFF 33.33%, /* White */
    #00FF00 50%,    /* Bright Green */
    #FF0000 66.67%, /* Bright Red */
    #0080FF 83.33%, /* Bright Blue */
    #000000 100%    /* Black */
  );
  background-size: 300% 300%;
  transform: translateY(-1px) scale(1.02);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(255, 20, 147, 0.25);
  animation-play-state: paused;
}

.logo:hover::before {
  opacity: 0.1;
}

@keyframes flagFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.nav-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
}

.nav-menu.active {
  display: flex;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin: 0.5rem 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-dropdown.dropdown-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown .dropdown-menu a {
    padding-left: 2rem;
    font-size: 0.9rem;
  }

  /* Hide hover behavior on mobile */
  .nav-dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  padding: 0.25rem;
  transition: background-color 0.2s ease;
}

.dropdown-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  background-color: rgba(26, 84, 144, 0.1);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.dropdown-active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown.dropdown-active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: linear-gradient(135deg, rgba(26, 84, 144, 0.08) 0%, rgba(44, 122, 62, 0.08) 100%);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* CTA Button in Navigation */
.nav-cta {
  margin-left: auto;
}

.btn-nav-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-colored);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-nav-primary:hover,
.btn-nav-primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: pulse 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Container & Sections ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-color);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.card:hover h3 {
  color: var(--primary-dark);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(26, 84, 144, 0.2));
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(44, 122, 62, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background-color: var(--bg-white);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--primary-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--accent-color);
}

.error-message {
  color: var(--accent-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: white;
  padding: 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--secondary-light);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(180deg, var(--text-dark) 0%, #0f1419 50%, #0a0e12 100%);
  color: white;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  opacity: 0.6;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
  pointer-events: none;
}

.footer-main {
  padding: 4rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  position: relative;
  background: linear-gradient(
    135deg,
    #000000 0%,     /* Black */
    #FFBF00 16.67%, /* Gold/Yellow */
    #FFFFFF 33.33%, /* White */
    #00923F 50%,    /* Green */
    #DC143C 66.67%, /* Red */
    #0047AB 83.33%, /* Blue */
    #000000 100%    /* Black */
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: flagFlow 5s ease-in-out infinite;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(26, 84, 144, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.social-icon:hover::before {
  width: 300px;
  height: 300px;
}

.social-icon:hover,
.social-icon:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: var(--primary-light);
  border-color: rgba(26, 84, 144, 0.3);
}

.social-icon-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.social-icon-emoji:last-child {
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #1877f2;
}

.social-icon-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.social-icon:hover .social-icon-text,
.social-icon:focus .social-icon-text {
  color: white;
}

.footer-section {
  text-align: center;
}

.footer-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(26, 84, 144, 0.3);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-sm);
  position: relative;
  border: 1px solid transparent;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.footer-links a:hover,
.footer-links a:focus {
  color: white;
  transform: translateX(4px) translateY(-1px);
  background: linear-gradient(135deg, rgba(26, 84, 144, 0.1) 0%, rgba(44, 122, 62, 0.1) 100%);
  border-color: rgba(26, 84, 144, 0.3);
  box-shadow: 0 4px 12px rgba(26, 84, 144, 0.2);
}

.footer-links a:hover::before,
.footer-links a:focus::before {
  width: 80%;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.bg-light {
  background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
  padding: 3rem 1rem;
  border-radius: var(--border-radius-lg);
  margin: 2rem 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Utility Classes for Common Patterns ===== */
.text-center-constrained {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.text-center-constrained-no-margin {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.card-spacing {
  margin-bottom: 1.5rem;
}

.card-spacing-lg {
  margin-bottom: 2rem;
}

.list-indent {
  margin-left: 2rem;
  margin-top: 1rem;
}

.list-indent-mb {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.list-indent-card {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info-container {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.btn-full-width {
  width: 100%;
}

.footer-contact {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
  font-size: 1.25rem;
  min-width: 24px;
  margin-top: 0.125rem;
}

.contact-item a,
.contact-item span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

/* Ensure phone numbers stay on single line */
.contact-item a[href^="tel:"] {
  white-space: nowrap;
  display: inline;
}

/* Ensure all contact items display in single line */
.contact-item {
  overflow: hidden;
}

.contact-item > * {
  flex-shrink: 0;
}

.contact-item > :last-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

.contact-item a:hover {
  color: var(--primary-light);
}


.footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.newsletter-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.btn-footer-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-colored);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.btn-footer-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-footer-cta:hover::before {
  width: 300px;
  height: 300px;
}

.btn-footer-cta:hover,
.btn-footer-cta:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  margin: 0;
}

.footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: var(--transition);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer-partners {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.partners-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.partner-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-style: italic;
}

/* Footer Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Footer Accessibility Improvements */
.footer-links a:focus,
.social-icon:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Mobile Contact Layout - Keep single line where possible */
@media (max-width: 768px) {
  .contact-item a[href^="tel:"] {
    font-size: 0.95rem;
  }
}

/* Force phone numbers to stay on single line on all devices */
.contact-item:has(a[href^="tel:"]) {
  flex-wrap: nowrap !important;
}

/* ===== MOBILE RESPONSIVENESS IMPROVEMENTS ===== */

/* Enhanced Mobile Typography */
@media (max-width: 768px) {
  html {
    font-size: 16px; /* Base size for mobile */
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.12),
      0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 0.25rem 1rem;
    transition: all 0.2s ease;
  }

  .nav-menu a:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.08) 0%, rgba(44, 122, 62, 0.08) 100%);
  }

  /* Hide dropdown on mobile - use touch interaction */
  .nav-dropdown .dropdown-menu {
    display: none !important;
  }

  .nav-dropdown.dropdown-active .dropdown-menu {
    display: block !important;
    position: static;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    box-shadow: none;
    margin: 0.5rem 0;
    padding: 0;
  }

  .nav-dropdown .dropdown-menu a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
  }
}

/* Mobile Card Layout */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-grid {
    gap: 1.5rem;
  }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
  .form-container {
    padding: 0 1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.875rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
  .footer-main {
    padding: 3rem 1rem 1rem;
  }

  .footer-content {
    gap: 2.5rem;
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section-title {
    margin-bottom: 1.5rem;
  }

  .footer-links {
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
    text-align: left;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-partners {
    align-items: center;
  }
}

/* Touch-Friendly Interactions */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .logo:hover {
    transform: none;
    animation-play-state: running;
  }

  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .nav-menu a:hover {
    transform: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .logo {
    background: linear-gradient(135deg, #000000 0%, #FFD700 50%, #000000 100%);
  }

  .card {
    border: 2px solid #000000;
  }

  .btn-primary {
    background: #000000;
    color: #FFFFFF;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .card,
  .btn,
  .nav-menu a,
  .social-icon,
  .hamburger span {
    animation: none !important;
    transition: none !important;
  }

  .nav-menu {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}

/* Print Styles */
@media print {
  footer {
    background: white !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .footer-links a,
  .social-icon {
    color: black !important;
  }

  .footer-copyright {
    border-top: 1px solid #000 !important;
  }

  /* Hide navigation and interactive elements in print */
  .hamburger,
  .nav-menu,
  .dropdown-toggle {
    display: none !important;
  }
}

.link-primary {
  color: var(--primary-color);
}

.text-small {
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
}

.margin-top-1 {
  margin-top: 1rem;
}

/* ===== Document Viewer ===== */
.document-viewer {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.document-viewer iframe {
  width: 100%;
  min-height: 600px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ===== News/Article Cards ===== */
.article-card {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
}

.article-card:hover {
  background-color: var(--bg-lighter);
  border-bottom-color: var(--border-color);
  transform: translateX(4px);
}

.article-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.article-date {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ===== Responsive Design - Tablet ===== */
@media (min-width: 769px) {
  html {
    font-size: 17px;
  }

  .nav-container {
    padding: 1rem 2rem;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
  }

  .nav-menu a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  .hamburger {
    display: none;
  }

  .hero {
    padding: 5rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  .container {
    padding: 3rem 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Footer Tablet Styles */
  .footer-main {
    padding: 5rem 2rem 3rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0;
  }

  .footer-brand .footer-description {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-section {
    text-align: left;
  }

  .footer-section-title::after {
    left: 0;
    transform: none;
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-partners {
    align-items: flex-end;
  }
}

/* ===== Responsive Design - Desktop ===== */
@media (min-width: 1025px) {
  html {
    font-size: 18px;
  }

  .nav-container {
    padding: 1.25rem 2rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .hero {
    padding: 6rem 2rem;
  }

  .hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  }

  .hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .container {
    padding: 4rem 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  /* Footer Desktop Styles */
  .footer-main {
    padding: 6rem 2rem 4rem;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    text-align: left;
  }

  .footer-brand {
    text-align: left;
    margin-bottom: 0;
  }

  .footer-brand .footer-description {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .footer-social {
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .social-label {
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .footer-section-title::after {
    left: 0;
    transform: none;
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-copyright {
    text-align: left;
  }

  .footer-partners {
    align-items: flex-end;
  }
}
