:root {
  --primary-color: #6c4ab6;
  --primary-dark: #5a3a9e;
  --primary-light: #8d6bd6;
  --secondary-color: #f8b400;
  --secondary-dark: #ff8f00;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --white-color: #ffffff;
  --black-color: #212121;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.05);

  --white-color: #ffffff;        /* For white elements */
  --white-bg: #ffffff;           /* For white backgrounds */
  --black-color: #212121;        /* For black text */
  --black-bg: #212121;           /* For black backgrounds */
}

/* Dark Mode Variables */
.dark-mode {
  --dark-color: #f8f9fa;
  /* --light-color: #1a1a2e; */
  --gray-color: #adb5bd;
  --light-gray: #2d2d44;
  /* --white-color: #1a1a2e; */
  --white-color-section: #1a1a2e;
  /* --black-color: #ffffff; */

  --white-color: #1a1a2e;        /* Dark mode white elements */
  --white-bg: #1a1a2e;           /* Dark mode white backgrounds */
  --black-color: #f8f9fa;        /* Dark mode black text */
  --black-bg: #f8f9fa;           /* Dark mode black backgrounds */
  --light-color: #1a1a2e;        /* This should match dark mode background */
}

/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  /* font-family: 'Montserrat', sans-serif; */
  background-color: var(--white-bg); /* Changed from --light-color */
  color: var(--black-color);
  overflow-x: hidden;
  line-height: 1.7;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--black-color);
}

p {
  color: var(--black-color);
  margin-bottom: 1rem;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.dark-mode .text-dark {
  color: var(--dark-color) !important;
}

.dark-mode .text-light {
  color: var(--light-color) !important;
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-dark {
  background-color: var(--dark-color) !important;
}

.bg-light {
  background-color: var(--light-color) !important;
}

.dark-mode .bg-dark {
  background-color: var(--light-color) !important;
}

.dark-mode .bg-light {
  background-color: var(--dark-color) !important;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.dark-mode .preloader {
  background: var(--light-color);
}

.spinner {
  width: 70px;
  height: 70px;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes sk-bounce {
  0%, 100% {
      transform: scale(0.0);
  }
  50% {
      transform: scale(1.0);
  }
}


/* Navbar Mobile Fixes */
@media (max-width: 991.98px) {
  .navbar {
    padding: 10px 0;
    background-color: var(--light-color) !important;
  }

  .navbar-collapse {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    z-index: 1000;
  }

  .navbar-dark .navbar-nav .nav-link {
    color: var(--black-color) !important;
    padding: 10px 0;
    margin: 5px 0;
  }
  
  .dropdown-menu {
    background-color: var(--light-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
  }

  .dropdown-item {
    color: var(--black-color) !important;
    padding: 8px 15px;
  }

  .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
  }
}

/* Dark mode adjustments for mobile */
.dark-mode .navbar-collapse {
  background-color: var(--light-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .dropdown-menu {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}


/* Navbar Toggle Button Fixes */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  /* Base Styles */
  width: 1.75em;
  height: 1.75em;
  background-size: 100%;
  position: relative;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  
  /* Custom SVG with brand colors */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235e35b1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  
  /* Animation Prep */
  transform-origin: center center;
}

/* Dark Mode Adjustment */
.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffab00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Active/Hover States */
.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:focus .navbar-toggler-icon {
  transform: scale(1.1);
  opacity: 0.9;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffab00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

/* Micro-interactions */
.navbar-toggler:active .navbar-toggler-icon {
  transform: scale(0.95);
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    stroke-width: 2;
  }
  
  /* Animate when menu opens */
  .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
    animation: togglerSpin 0.6s ease;
  }
}

@keyframes togglerSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

/* Focus accessibility */
.navbar-toggler:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Navbar Styles */
.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: var(--light-color) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  padding: 8px 15px;
  margin: 0 5px;
  position: relative;
}

.navbar-dark.scrolled .navbar-nav .nav-link {
  color: var(--dark-color);
}

.navbar-dark .navbar-nav .nav-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white-color);
  bottom: 0;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-dark.scrolled .navbar-nav .nav-link:before {
  background: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link:hover:before,
.navbar-dark .navbar-nav .nav-link.active:before {
  width: 100%;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 10px;
  background-color: var(--light-color);
}

.dropdown-item {
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--dark-color);
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: var(--white-color) !important;
}

/* Ensure container takes full width on small devices */
@media (max-width: 576px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.btn-theme {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-theme:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-theme .fa-sun {
  display: none;
}

.dark-mode .btn-theme .fa-moon {
  display: none;
}

.dark-mode .btn-theme .fa-sun {
  display: block;
}

/* Back to Top Button */
.back-to-top {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-partners {
  height: 70vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(108, 74, 182, 0.85), rgba(90, 58, 158, 0.85)),
              url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white-color);
  padding: 0 20px;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-description {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.dark-mode .section-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Partners Grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.partner-card {
  background-color: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  position: relative;
}

.dark-mode .partner-card {
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 1;
}

.partner-logo-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: rgba(248, 180, 0, 0.03);
  border-bottom: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .partner-logo-container {
  background-color: rgba(248, 180, 0, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.8);
  opacity: 0.9;
  transition: var(--transition);
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}

.partner-details {
  padding: 25px;
}

.partner-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black-color);
}

.dark-mode .partner-name {
  color: var(--dark-color);
}

.partner-category {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--white-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dark-mode .partner-category {
  background-color: var(--primary-dark);
}

.partner-description {
  color: var(--gray-color);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.dark-mode .partner-description {
  color: rgba(255, 255, 255, 0.7);
}

.partner-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.dark-mode .partner-link {
  color: var(--primary-light);
}

.partner-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.partner-link i {
  margin-left: 8px;
  transition: var(--transition);
}

.partner-link:hover i {
  transform: translateX(5px);
}

/* Partnership Benefits */
.benefits-section {
  background: linear-gradient(135deg, rgba(108, 74, 182, 0.03), rgba(248, 180, 0, 0.03));
  padding: 80px 0;
  margin-bottom: 60px;
  border-top: 1px solid rgba(108, 74, 182, 0.1);
  border-bottom: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .benefits-section {
  background: linear-gradient(135deg, rgba(108, 74, 182, 0.05), rgba(248, 180, 0, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.benefit-card {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .benefit-card {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(108, 74, 182, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 24px;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--black-color);
}

.dark-mode .benefit-title {
  color: var(--dark-color);
}

.benefit-description {
  color: var(--gray-color);
  font-size: 0.9375rem;
}

.dark-mode .benefit-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: url('https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 74, 182, 0.85), rgba(90, 58, 158, 0.85));
}

.testimonial-card {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  height: 100%;
  position: relative;
  transition: var(--transition);
}

.dark-mode .testimonial-card {
  background-color: var(--light-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-color);
  margin-bottom: 25px;
  position: relative;
}

.dark-mode .testimonial-quote {
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--primary-color);
}

.testimonial-author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial-author-info p {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.dark-mode .testimonial-author-info p {
  color: rgba(255, 255, 255, 0.6);
}

/* Partnership Form */
.partnership-form {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 60px;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .partnership-form {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 8px;
}

.dark-mode .form-label {
  color: var(--dark-color);
}

.form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(108, 74, 182, 0.2);
  transition: var(--transition);
  background-color: var(--white-color);
  color: var(--black-color);
}

.dark-mode .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--dark-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(108, 74, 182, 0.25);
}

.dark-mode .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
/* Footer Styles */
.footer {
  background-color: #1a1a2e; /* Fixed dark color */
  color: #ffffff; /* Fixed white text */
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
    center/cover;
  opacity: 0.05;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-about {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: #ffffff !important;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  text-decoration: none;
}

.footer-menu a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-menu a:hover {
  color: var(--white-color);
  transform: translateX(5px);
}

.footer-menu a:hover::before {
  width: 100%;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-icon {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 3px;
  font-size: 16px;
}

.contact-info span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary-color);
}

.legal-separator {
  color: rgba(255, 255, 255, 0.3);
}

.footer-prayer {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.1;
  z-index: 0;
}

.footer-prayer img {
  width: 150px;
  height: auto;
}

/* Dark Mode Adjustments */
.dark-mode .footer {
  background-color: #1a1a2e !important; /* Force dark background */
  color: #ffffff !important; /* Force white text */
}

.dark-mode .footer-description,
.dark-mode .footer-menu a,
.dark-mode .contact-info span,
.dark-mode .copyright,
.dark-mode .footer-legal a {
  color: rgba(
    255,
    255,
    255,
    0.7
  ) !important; /* Force light text with opacity */
}

.dark-mode .footer-menu a:hover,
.dark-mode .footer-legal a:hover {
  color: #ffffff !important; /* Force white text on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-heading {
    margin-bottom: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    margin-top: 10px;
  }

  .footer-prayer {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  .legal-separator {
    display: none;
  }
}

/* Additional dark mode fixes */
.dark-mode {
  /* Fix for any remaining light elements */
  --white-color: #1a1a2e;
  --black-color: #f8f9fa;
}

/* Ensure all text is properly contrasted in dark mode */
.dark-mode body,
.dark-mode h1, 
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode p {
  color: var(--dark-color);
}

/* Fix for form placeholders */
.dark-mode ::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix for select dropdowns */
.dark-mode select.form-control {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Fix for disabled form elements */
.dark-mode .form-control:disabled {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Fix for card borders in dark mode */
.dark-mode .card {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Fix for table colors in dark mode */
.dark-mode table {
  color: var(--dark-color);
}
.dark-mode .table th,
.dark-mode .table td {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Fix for modal backgrounds */
.dark-mode .modal-content {
  background-color: var(--light-color);
}
.dark-mode .modal-header,
.dark-mode .modal-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Fix for tooltips */
.dark-mode .tooltip {
  --bs-tooltip-bg: var(--primary-color);
}

/* Fix for popovers */
.dark-mode .popover {
  --bs-popover-bg: var(--light-color);
  --bs-popover-border-color: rgba(255, 255, 255, 0.1);
}

/* Fix for breadcrumbs */
.dark-mode .breadcrumb-item.active {
  color: var(--dark-color);
}

/* Fix for pagination */
.dark-mode .page-link {
  background-color: var(--light-color);
  color: var(--dark-color);
}
.dark-mode .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-partners {
      height: 60vh;
  }
}

@media (max-width: 991.98px) {
  .hero-partners {
      height: 55vh;
      min-height: 500px;
  }

  .partnership-form {
      padding: 40px;
  }
}

@media (max-width: 767.98px) {
  .hero-partners {
      height: 50vh;
      min-height: 450px;
      background-attachment: scroll;
  }

  .section-header {
      margin-bottom: 40px;
  }

  .partnership-form {
      padding: 30px;
  }
}

@media (max-width: 575.98px) {
  .hero-partners {
      height: 400px;
  }

  .partner-grid {
      grid-template-columns: 1fr;
  }

  .partnership-form {
      padding: 25px;
  }

  .theme-toggle {
      bottom: 20px;
      right: 20px;
  }
}




/* ============================================= */
/* MOBILE-FIRST RESPONSIVE MEDIA QUERIES */
/* ============================================= */

/* Base Typography Adjustments */
@media (max-width: 767.98px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Navigation - Mobile Specific */
@media (max-width: 991.98px) {
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-collapse {
    padding: 15px;
    margin-top: 10px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    margin: 5px 0;
  }
  
  .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }
  
  .navbar-toggler {
    padding: 0.35rem;
  }
  
  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
  }
}

/* Hero Section - Mobile Adjustments */
@media (max-width: 767.98px) {
  .hero-partners {
    height: auto;
    min-height: 100vh;
    padding: 80px 0 60px;
    text-align: center;
    background-attachment: scroll !important;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }
  
  .hero-cta .btn {
    width: 100%;
    margin: 0 0 10px 0;
  }
}

/* Sections - General Mobile Adjustments */
@media (max-width: 767.98px) {
  .section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-description {
    font-size: 15px;
    padding: 0 15px;
  }
  
  .section-subtitle::after {
    width: 40px;
    height: 2px;
  }
}

/* Partners Grid - Mobile */
@media (max-width: 767.98px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .partner-card {
    margin-bottom: 20px;
  }
  
  .partner-logo-container {
    height: 150px;
    padding: 20px;
  }
  
  .partner-details {
    padding: 20px;
  }
  
  .partner-name {
    font-size: 1.3rem;
  }
  
  .partner-link {
    display: block;
    text-align: center;
  }
}

/* Benefits Section - Mobile */
@media (max-width: 767.98px) {
  .benefits-section {
    padding: 50px 0;
  }
  
  .benefit-card {
    margin-bottom: 20px;
    padding: 20px;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .benefit-title {
    font-size: 1.1rem;
  }
}

/* Testimonials - Mobile */
@media (max-width: 767.98px) {
  .testimonials-section {
    padding: 50px 0;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-quote {
    font-size: 1rem;
  }
  
  .testimonial-quote::before {
    font-size: 3rem;
    top: -15px;
    left: -5px;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-author-img {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* Partnership Form - Mobile */
@media (max-width: 767.98px) {
  .partnership-form {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .form-control,
  .form-select {
    padding: 10px 12px;
  }
  
  .btn-primary {
    width: 100%;
  }
}

/* Footer - Mobile */
@media (max-width: 767.98px) {
  .footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-about {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-menu {
    margin-bottom: 20px;
  }
  
  .footer-menu li {
    margin-bottom: 8px;
  }
  
  .contact-info li {
    justify-content: center;
    text-align: center;
  }
  
  .footer-bottom {
    padding-top: 20px;
    margin-top: 30px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }
  
  .legal-separator {
    display: none;
  }
}

/* Theme Toggle - Mobile */
@media (max-width: 767.98px) {
  .theme-toggle {
    bottom: 20px;
    right: 20px;
  }
  
  .btn-theme {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Extra Small Devices (Phones, < 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .partnership-form {
    padding: 20px 15px;
  }
}

/* Very Small Devices (Tiny Phones, < 400px) */
@media (max-width: 399.98px) {
  .hero-partners {
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ============================================= */
/* ORIENTATION-SPECIFIC ADJUSTMENTS */
/* ============================================= */

/* Portrait Mode Adjustments */
@media (max-width: 767.98px) and (orientation: portrait) {
  .hero-partners {
    min-height: 90vh;
  }
}

/* Landscape Mode Adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-partners {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .navbar-brand img {
    height: 25px;
    width: auto;
  }
}

/* ============================================= */
/* HIGH DENSITY DISPLAY ADJUSTMENTS */
/* ============================================= */

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-partners {
    background-attachment: scroll; /* Prevent performance issues */
  }
  
  .navbar-brand img {
    height: 20px;
    width: auto;
  }
}

/* ============================================= */
/* ACCESSIBILITY IMPROVEMENTS FOR MOBILE */
/* ============================================= */

/* Increase tap targets for touch devices */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .dropdown-item,
  .form-check-label,
  .partner-link {
    min-height: 44px; /* Apple's recommended minimum tap target size */
    min-width: 44px;
    padding: 12px 16px;
  }
  
  .navbar-toggler {
    padding: 12px;
  }
  
  input[type="checkbox"],
  input[type="radio"] {
    transform: scale(1.5);
    margin-right: 10px;
  }
  
  .form-control,
  .form-select {
    min-height: 44px;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .partner-card:hover,
  .benefit-card:hover,
  .testimonial-card:hover {
    transform: none !important;
  }
}

/* ============================================= */
/* DARK MODE MOBILE SPECIFIC FIXES */
/* ============================================= */

@media (max-width: 767.98px) {
  .dark-mode .navbar-collapse {
    background-color: var(--light-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  .dark-mode .dropdown-menu {
    background-color: var(--light-color);
  }
  
  .dark-mode .form-control,
  .dark-mode .form-select {
    background-color: var(--white-color-section);
  }
  
  .dark-mode .partner-card,
  .dark-mode .benefit-card,
  .dark-mode .testimonial-card {
    background-color: var(--white-color-section);
  }
}

/* ============================================= */
/* COMPONENT-SPECIFIC MOBILE OPTIMIZATIONS */
/* ============================================= */

/* Partner Cards - Mobile Enhancements */
@media (max-width: 767.98px) {
  .partner-card::before {
    height: 3px;
  }
  
  .partner-logo {
    max-width: 80%;
    max-height: 80%;
  }
  
  .partner-category {
    display: block;
    text-align: center;
    margin: 0 auto 15px;
  }
}

/* Testimonial Cards - Mobile Enhancements */
@media (max-width: 767.98px) {
  .testimonial-quote {
    padding-top: 15px;
  }
  
  .testimonial-quote::before {
    top: -10px;
  }
  
  .testimonial-author-info h4 {
    font-size: 1rem;
  }
}

/* Form Elements - Mobile Enhancements */
@media (max-width: 767.98px) {
  .form-label {
    font-size: 15px;
  }
  
  .form-check-label {
    font-size: 14px;
  }
  
  .partnership-form .btn {
    width: 100%;
  }
}

/* Footer - Mobile Enhancements */
@media (max-width: 767.98px) {
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-menu a {
    display: inline-block;
    padding: 5px 0;
  }
  
  .contact-info li {
    justify-content: center;
  }
}