/* ============= DESIGN SYSTEM VARIABLES ============= */
:root {
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Split-complementary color scheme */
  --primary: #2c6e8f;
  --primary-dark: #1c546c;
  --primary-light: #4c8ca7;
  
  --secondary: #e87b2a;
  --secondary-dark: #d86a18;
  --secondary-light: #f28f41;
  
  --accent: #2aad8a;
  --accent-dark: #1f8a6c;
  --accent-light: #40c9a5;
  
  /* Neutral colors */
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  
  /* Overlay */
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(255, 255, 255, 0.7);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 50%;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Z-index */
  --z-negative: -1;
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ============= BASE STYLES ============= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* 3D effects class */
.effect-3d {
  transform: perspective(1000px);
  transition: transform var(--transition);
}

.effect-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* ============= BUTTON STYLES ============= */
.btn, button, input[type="submit"] {
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active, button:active, input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary, .btn-primary:visited {
  background: var(--gradient-primary);
  color: var(--white);
}

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

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

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

.btn-secondary, .btn-secondary:visited {
  background: var(--gradient-secondary);
  color: var(--white);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary-dark);
  color: var(--white);
  text-decoration: none;
}

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

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
}

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

.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============= HEADER & NAVIGATION ============= */
header {
  box-shadow: var(--shadow);
  background-color: var(--white);
  z-index: var(--z-fixed);
}

.navbar {
  padding: 0.75rem 0;
  transition: all var(--transition);
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all var(--transition);
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  width: 50%;
}

/* ============= HERO SECTION ============= */
.hero-section {
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 6rem 0;
  margin-top: 76px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: var(--z-negative);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--overlay-dark), transparent);
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--white);
  max-width: 600px;
}

.hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ============= METHODOLOGY SECTION ============= */
.methodology-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.methodology-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.methodology-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.methodology-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.methodology-card h3 {
  color: var(--primary);
  font-weight: 600;
}

.methodology-card p {
  color: var(--gray-700);
  text-align: center;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ============= HISTORY SECTION ============= */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--gray-300);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gray-300);
}

.timeline-content {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  width: 90%;
  margin: 0 auto;
}

.timeline-content h3 {
  color: var(--primary);
  font-weight: 600;
}

.timeline-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  height: 250px;
}

@media (min-width: 768px) {
  .timeline-content {
    width: 45%;
    margin: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
  }
}

/* ============= RESOURCES SECTION ============= */
.resource-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  color: var(--primary);
  font-weight: 600;
}

.card-content p {
  color: var(--gray-700);
}

/* ============= AWARDS SECTION ============= */
.awards-carousel .carousel-inner {
  padding: 2rem 0;
}

.award-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.award-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.award-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.award-card h3 {
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

.award-org {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
}

.award-card p {
  color: var(--gray-700);
  text-align: center;
}

.awards-carousel .carousel-control-prev,
.awards-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.awards-carousel .carousel-control-prev {
  left: -20px;
}

.awards-carousel .carousel-control-next {
  right: -20px;
}

.awards-carousel .carousel-control-prev-icon,
.awards-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* ============= ACCOLADES SECTION ============= */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 8rem;
  line-height: 1;
  color: rgba(var(--primary-rgb), 0.1);
  font-family: serif;
}

.testimonial-image {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  margin: 0 auto;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
}

.ratings i {
  color: var(--secondary);
  font-size: 1.2rem;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

#testimonialsCarousel .carousel-control-prev {
  left: -20px;
}

#testimonialsCarousel .carousel-control-next {
  right: -20px;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* ============= PARTNERS SECTION ============= */
.partner-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: all var(--transition);
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.partner-text {
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
}

/* ============= CONTACT SECTION ============= */
.contact-info {
  background-color: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--primary);
  font-weight: 600;
}

.contact-details {
  margin-top: 2rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--primary);
  font-weight: 600;
}

.form-control, .form-select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(44, 110, 143, 0.25);
}

.form-label {
  color: var(--gray-700);
  font-weight: 500;
}

/* ============= FOOTER ============= */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: 4rem 0;
}

.footer h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--gray-400);
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-contact i {
  color: var(--primary-light);
}

.footer a {
  color: var(--white);
  transition: all var(--transition);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--primary-light);
  transform: translateY(-3px);
}

/* ============= PRIVACY & TERMS PAGES ============= */
.privacy-content, .terms-content {
  padding-top: 100px;
  padding-bottom: 4rem;
}

/* ============= SUCCESS PAGE ============= */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.success-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  width: 100px;
  height: 100px;
  background-color: var(--accent-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
  font-size: 3rem;
}

/* ============= RESPONSIVE STYLES ============= */
@media (max-width: 1199.98px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  
  .awards-carousel .carousel-control-prev,
  .awards-carousel .carousel-control-next {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .hero-section {
    height: auto;
    padding: 6rem 0 3rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .testimonial-image {
    width: 100px;
    height: 100px;
  }
  
  .partner-logo {
    height: 80px;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
}

/* ============= UTILITY CLASSES ============= */
.text-primary {
  color: var(--primary) !important;
}

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

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

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.bg-gradient-accent {
  background: var(--gradient-accent) !important;
}

/* For icons */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Bootstrap Icon Overrides */
.bi-star-fill {
  color: var(--secondary);
}

/* Fix for bi- icons */
.bi-geo-alt-fill::before { content: "📍"; }
.bi-telephone-fill::before { content: "📞"; }
.bi-envelope-fill::before { content: "✉️"; }
.bi-geo-alt::before { content: "📍"; }
.bi-telephone::before { content: "📞"; }
.bi-envelope::before { content: "✉️"; }

/* Animation classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}