/* WCP Modern Design System */
:root {
  /* WCP Brand Colors */
  --wcp-primary: #1e3a8a;        /* Deep Blue */
  --wcp-secondary: #3b82f6;      /* Bright Blue */
  --wcp-accent: #d97706;         /* Darker Amber/Orange for better contrast */
  --wcp-success: #10b981;        /* Green */
  --wcp-warning: #f59e0b;        /* Amber */
  --wcp-danger: #ef4444;         /* Red */
  --wcp-dark: #1f2937;           /* Dark Gray */
  --wcp-light: #f8fafc;          /* Light Gray */
  --wcp-white: #ffffff;
  
  /* Gradients */
  --wcp-gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --wcp-gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --wcp-gradient-accent: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  --wcp-gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  
  /* Shadows */
  --wcp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --wcp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wcp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wcp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --wcp-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wcp-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Global Styles */
body {
  font-family: var(--wcp-font-primary);
  line-height: 1.6;
  color: var(--wcp-dark);
  background-color: var(--wcp-white);
  padding-top: 80px; /* Account for fixed header */
  font-size: 16px;
}

/* Ensure all text has good contrast */
p, li, span, div {
  color: inherit;
}

/* Fix text contrast on blue backgrounds - High specificity */
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary .text-dark-50,
.bg-primary .text-dark,
.bg-primary p,
.bg-primary span,
.bg-primary div {
  color: white !important;
}

/* Ensure card headers with blue backgrounds have white text - Higher specificity */
.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary .text-dark-50,
.card-header.bg-primary .text-dark,
.card-header.bg-primary p,
.card-header.bg-primary span,
.card-header.bg-primary div {
  color: white !important;
}

/* Fix any remaining dark text on blue backgrounds - Maximum specificity */
[style*="background.*blue"] h1,
[style*="background.*blue"] h2,
[style*="background.*blue"] h3,
[style*="background.*blue"] h4,
[style*="background.*blue"] h5,
[style*="background.*blue"] h6,
[style*="background.*blue"] .text-dark-50,
[style*="background.*blue"] .text-dark,
[style*="background.*blue"] p,
[style*="background.*blue"] span,
[style*="background.*blue"] div {
  color: white !important;
}

/* Additional high-specificity rules for Bootstrap classes */
.card.bg-primary .card-header h1,
.card.bg-primary .card-header h2,
.card.bg-primary .card-header h3,
.card.bg-primary .card-header h4,
.card.bg-primary .card-header h5,
.card.bg-primary .card-header h6,
.card.bg-primary .card-header .text-dark-50,
.card.bg-primary .card-header .text-dark {
  color: white !important;
}

/* Override any Bootstrap text-dark classes on blue backgrounds */
.bg-primary .text-dark,
.bg-primary .text-dark-50,
.card-header.bg-primary .text-dark,
.card-header.bg-primary .text-dark-50 {
  color: white !important;
}

/* Universal rule for any element with blue background */
[class*="bg-primary"],
[style*="background.*#1e3a8a"],
[style*="background.*#3b82f6"],
[style*="background.*blue"],
[style*="background.*primary"] {
  color: white !important;
}

[class*="bg-primary"] *,
[style*="background.*#1e3a8a"] *,
[style*="background.*#3b82f6"] *,
[style*="background.*blue"] *,
[style*="background.*primary"] * {
  color: white !important;
}

/* Specific override for card-wcp with blue backgrounds */
.card-wcp[style*="background.*blue"],
.card-wcp[style*="background.*#1e3a8a"],
.card-wcp[style*="background.*#3b82f6"],
.card-wcp[style*="background.*primary"] {
  color: white !important;
}

.card-wcp[style*="background.*blue"] *,
.card-wcp[style*="background.*#1e3a8a"] *,
.card-wcp[style*="background.*#3b82f6"] *,
.card-wcp[style*="background.*primary"] * {
  color: white !important;
}

/* FINAL OVERRIDE - Maximum specificity to ensure white text on blue backgrounds */
html body .bg-primary,
html body .bg-primary *,
html body .card-header.bg-primary,
html body .card-header.bg-primary *,
html body [class*="bg-primary"],
html body [class*="bg-primary"] *,
html body [style*="background.*blue"],
html body [style*="background.*blue"] *,
html body [style*="background.*#1e3a8a"],
html body [style*="background.*#1e3a8a"] *,
html body [style*="background.*#3b82f6"],
html body [style*="background.*#3b82f6"] * {
  color: white !important;
}

/* ULTIMATE OVERRIDE - This should be the last rule and override everything */
html body div.bg-primary,
html body div.bg-primary *,
html body div.card-header.bg-primary,
html body div.card-header.bg-primary *,
html body div[class*="bg-primary"],
html body div[class*="bg-primary"] *,
html body div[style*="background.*blue"],
html body div[style*="background.*blue"] *,
html body div[style*="background.*#1e3a8a"],
html body div[style*="background.*#1e3a8a"] *,
html body div[style*="background.*#3b82f6"],
html body div[style*="background.*#3b82f6"] *,
html body section.bg-primary,
html body section.bg-primary *,
html body section[class*="bg-primary"],
html body section[class*="bg-primary"] *,
html body section[style*="background.*blue"],
html body section[style*="background.*blue"] *,
html body section[style*="background.*#1e3a8a"],
html body section[style*="background.*#1e3a8a"] *,
html body section[style*="background.*#3b82f6"],
html body section[style*="background.*#3b82f6"] * {
  color: white !important;
}

/* Improved button styling for better visibility and consistency */
.btn-wcp-primary {
  background: var(--wcp-gradient-accent);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: var(--wcp-shadow);
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-wcp-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--wcp-shadow-lg);
  color: white;
  background: var(--wcp-gradient-accent);
}

.btn-wcp-secondary {
  background: transparent;
  border: 2px solid var(--wcp-primary);
  color: var(--wcp-primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-wcp-secondary:hover {
  background: var(--wcp-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--wcp-shadow);
}

/* Improve link contrast */
a {
  color: var(--wcp-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wcp-secondary);
  text-decoration: underline;
}

/* Modern Hero Section - Legacy support */
.hero-section {
  position: relative;
  min-height: 85vh;
  background: var(--wcp-gradient-primary);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/bg-auth.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 15;
  color: var(--wcp-white);
  padding: 2rem 0;
  max-width: 100%;
  overflow: hidden;
}

.hero-title {
    font-family: var(--wcp-font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--wcp-white);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 3px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--wcp-white);
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Modern Buttons */
.btn-wcp-primary {
  background: var(--wcp-gradient-accent);
  border: none;
  color: var(--wcp-white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--wcp-shadow-lg);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-wcp-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--wcp-shadow-xl);
  color: var(--wcp-white);
}

.btn-wcp-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-wcp-primary:hover::before {
  left: 100%;
}

.btn-wcp-secondary {
  background: transparent;
  border: 2px solid var(--wcp-white);
  color: var(--wcp-white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-wcp-secondary:hover {
  background: var(--wcp-white);
  color: var(--wcp-primary);
  transform: translateY(-2px);
  box-shadow: var(--wcp-shadow-lg);
}

/* Modern Cards */
.card-wcp {
  background: var(--wcp-gradient-primary) !important;
  border-radius: 20px;
  box-shadow: var(--wcp-shadow);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  color: var(--wcp-white) !important;
}

.card-wcp:hover {
  transform: translateY(-5px);
  box-shadow: var(--wcp-shadow-xl);
}

/* Card Icons */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon i {
  font-size: 3rem !important;
  line-height: 1;
  display: inline-block;
}

/* Force blue background for why-this page cards */
.why-this-page .card-wcp {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
  color: white !important;
}

.why-this-page .card-wcp .card-title {
  color: white !important;
}

.why-this-page .card-wcp .card-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-wcp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--wcp-gradient-primary);
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--wcp-white);
  border-radius: 20px;
  box-shadow: var(--wcp-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--wcp-shadow-xl);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--wcp-gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--wcp-gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--wcp-white);
  box-shadow: var(--wcp-shadow-lg);
}

.service-title {
  font-family: var(--wcp-font-heading);
  font-size: 1.75rem; /* Increased from 1.5rem for better hierarchy */
  font-weight: 700;
  color: var(--wcp-dark);
  margin-bottom: 1.5rem; /* Increased margin for better spacing */
}

.service-description {
  color: #374151; /* Improved contrast - darker grey */
  line-height: 1.7; /* Better line spacing */
  font-size: 1.125rem; /* Increased from 1rem for better readability */
}

/* Modern Sections */
.section-wcp {
  padding: 6rem 0; /* Increased padding for better spacing */
  position: relative;
}

.section-wcp.bg-light {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
  font-family: var(--wcp-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--wcp-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #4b5563;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Animated Elements */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Modern Navigation */
.navbar-wcp {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--wcp-shadow);
  transition: all 0.3s ease;
}

.navbar-wcp.scrolled {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--wcp-shadow-lg);
}

.navbar-brand {
  font-family: var(--wcp-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wcp-primary) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--wcp-dark) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--wcp-primary) !important;
}

/* Modern Forms */
.form-control-wcp {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--wcp-white);
  color: var(--wcp-dark);
}

.form-control-wcp:focus {
  border-color: var(--wcp-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Statistics Cards */
.stat-card {
  background: var(--wcp-white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--wcp-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wcp-shadow-lg);
}

.stat-number {
  font-family: var(--wcp-font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--wcp-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
  font-size: 1rem;
}

/* Modern Footer */
.footer-wcp {
  background: var(--wcp-gradient-dark);
  color: var(--wcp-white);
  padding: 3rem 0 1rem;
}

.footer-wcp h5 {
  font-family: var(--wcp-font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-wcp a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-wcp a:hover {
  color: var(--wcp-white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .section-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .btn-wcp-primary,
  .btn-wcp-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  body {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
  }
  
  .hero-content {
    padding: 0.5rem 0;
  }
  
  .hero-badge {
    margin-bottom: 1rem !important;
  }
  
  .hero-badge .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    line-height: 1.4;
  }
  
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .section-wcp {
    padding: 3rem 0;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  body {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid var(--wcp-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--wcp-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wcp-secondary);
}

/* Hero Visual Content Styles */
.hero-visual-content {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-visual-content img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.hero-visual-content img:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments for hero visual content */
@media (max-width: 768px) {
    .hero-visual-content {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .hero-visual-content img {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-visual-content {
        padding: 0.5rem;
        margin-top: 1rem;
    }
    
    .hero-visual-content img {
        max-height: 200px;
    }
}
