:root {
  /* Primary Colors */
  --primary-color: #2c6e49;
  --primary-color-dark: #1a4731;
  --primary-color-light: #4a9e6e;
  
  /* Secondary Colors */
  --secondary-color: #e76f51;
  --secondary-color-dark: #c24d33;
  --secondary-color-light: #f2a990;
  
  /* Neutral Colors */
  --neutral-100: #f8f9fa;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-light));
  --gradient-dark-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  
  /* Fonts */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--neutral-100);
  padding-top: 0 !important; 
}

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

.section-title {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
}

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

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

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

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

/* Button Styles */
.btn {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
  color: white;
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--secondary-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  flex: 1;
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.card-text {
  color: var(--neutral-700);
}

.card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Navbar Styles */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--neutral-700);
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

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

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}

.navbar.scrolled {
  background-color: white !important;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--gradient-dark-overlay);
  z-index: -1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services {
  background-color: white;
}

/* Case Studies Section */
#case-studies {
  position: relative;
}

#case-studies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/pattern-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.05;
  z-index: -1;
}

/* Partner Resources Section */
#partner-resources {
  background-color: white;
}

/* Accolades Section */
#accolades {
  position: relative;
}

.stats-widget {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--neutral-600);
  margin-bottom: 0;
}

/* News Section */
#news {
  background-color: white;
}

/* Behind the Scenes Section */
#behind-the-scenes {
  position: relative;
}

.image-container {
  overflow: hidden;
  height: 300px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media Section */
#media {
  background-color: white;
}

.carousel-item {
  height: 600px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  bottom: 2rem;
}

.nav-pills .nav-link {
  color: var(--primary-color);
  background-color: transparent;
  border-radius: var(--border-radius-md);
  margin: 0 0.3rem;
  padding: 0.5rem 1.5rem;
}

.nav-pills .nav-link.active {
  background: var(--gradient-primary);
  color: white;
}

/* Contact Section */
#contact {
  position: relative;
}

#contact .card {
  border-radius: var(--border-radius-lg);
}

#contact .form-control,
#contact .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

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

/* Footer Section */
.footer {
  background-color: var(--neutral-800);
}

.footer h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-primary);
}

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

.footer a {
  color: white;
  transition: var(--transition-fast);
}

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

.footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

.footer .input-group {
  margin-top: 1.5rem;
}

.footer .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
}

.footer .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.footer hr {
  background-color: var(--neutral-600);
}

.footer .list-inline-item:not(:last-child) {
  margin-right: 1.5rem;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-page .card {
  max-width: 600px;
  width: 100%;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

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

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 80vh;
}

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.content-page h2 {
  color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.content-page p {
  margin-bottom: 1.5rem;
}

.content-page ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content-page ul li {
  margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-content {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem;
  background: var(--gradient-primary);
  color: white;
}

.modal-header .modal-title {
  font-weight: 600;
  color: white;
}

.modal-header .btn-close {
  color: white;
  box-shadow: none;
  opacity: 1;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: none;
  padding: 1rem 2rem 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.bg-light {
  background-color: var(--neutral-200) !important;
}

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

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

.rounded-custom {
  border-radius: var(--border-radius-md);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }
  
  .carousel-item {
    height: 400px;
  }
  
  .stat-item h4 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-overlay {
    min-height: 60vh;
  }
  
  .image-container {
    height: 200px;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .footer h4 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .carousel-item {
    height: 250px;
  }
}

/* Additional Classes for Specific Elements */
.card-image-fixed {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-fixed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-right: 20px;
}

.read-more-link::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: var(--transition-normal);
}

.read-more-link:hover {
  color: var(--primary-color-dark);
}

.read-more-link:hover::after {
  right: -5px;
}

/* Animation for counting stats */
.counter {
  display: inline-block;
  font-weight: bold;
  color: var(--primary-color);
}

/* Social Media Links in Footer */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--neutral-300);
  transition: var(--transition-normal);
  font-size: 1.2rem;
}

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

/* Glassmorphism effects for cards */
.card-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}