@media (max-width: 767.98px) {
  #footer, #footer .footer-top, #footer .footer-widget, #footer .footer-bottom, #footer .footer-widget h4, #footer .footer-widget ul, #footer .footer-widget ul li, #footer .footer-widget ul li a, #footer .footer-widget p, #footer .footer-widget h6,

  .mission-content, .mission-content *,
  .section-header, .section-header *,
  .display-5, .lead, .text-center, .text-muted, .text-primary, .text-white, .text-light, .fw-bold, .fw-normal, .fw-semibold, .fw-light, .fw-medium, .fw-regular, .fw-500, .fw-600, .fw-700, .fw-800, .fw-900 {
    text-align: left !important;
    /* Only apply justify/align left to text, not icon containers */
  }
}
@media (max-width: 767.98px) {
  #footer, #footer .footer-top, #footer .footer-widget, #footer .footer-bottom, #footer .footer-widget h4, #footer .footer-widget ul, #footer .footer-widget ul li, #footer .footer-widget ul li a, #footer .footer-widget p, #footer .footer-widget h6 {
    text-align: left !important;
  }
}

/* Modern Design Overrides */
:root {
  --primary: #C3392E;
  --primary-dark: #9E2D24;
  --primary-light: rgba(195, 57, 46, 0.1);
  --secondary: #000000;
  --light: #F8F9FA;
  --dark: #212529;
  --dark-blue: #0a192f;
  --dark-blue-light: #172a45;
  --gray: #6C757D;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --section-padding: 5rem 0;
}

/* Utility Classes */
.hover-text-primary {
  transition: var(--transition);
}

.hover-text-primary:hover {
  color: var(--primary) !important;
  padding-left: 5px;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.section-header {
  margin-bottom: 3rem;
  position: relative;
}

.section-header .divider {
  background: var(--primary);
  height: 3px;
  width: 80px;
  margin: 1.5rem auto 0;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}

.z-index-1 {
  position: relative;
  z-index: 1;
}

.z-index-n1 {
  z-index: -1;
}

.top-n25 {
  top: -25px;
}

.start-n25 {
  left: -25px;
}

.bottom-n25 {
  bottom: -25px;
}

.end-n25 {
  right: -25px;
}

/* Typography */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--dark);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  font-weight: 400;
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(195, 57, 46, 0.2);
}

.btn-outline-light {
  border-width: 2px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(195, 57, 46, 0.3);
}

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

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(195, 57, 46, 0.3);
}

/* Header */
#header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#header.header-semi-transparent-light {
  background: rgba(255, 255, 255, 0.8) !important;
}

.header-body {
  border-bottom: none !important;
}

/* Hero Section */
.hero-slider .owl-item {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slider .owl-item .position-relative {
  display: flex;
  align-items: center;
  height: 100vh;
}

.hero-slider .owl-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.card-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-control {
  height: 55px;
  padding: 0.75rem 1.25rem;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(195, 57, 46, 0.25);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

/* Footer */
#footer {
  background: var(--secondary) !important;
  color: white;
  padding: 5rem 0 0;
}

#footer h5 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

#footer ul.list-icons li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

#footer ul.list-icons i {
  margin-right: 0.75rem;
  color: var(--primary);
  font-size: 1.1rem;
  min-width: 25px;
  text-align: center;
}

#footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

/* Mission Section */
#mission {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

#mission .icon-box {
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  background: rgba(195, 57, 46, 0.1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

#mission .card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

#mission .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

#mission .card:hover .icon-box {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
}

#mission .card:hover .icon-box i {
  color: #fff !important;
}

/* Vision Section */
#vision {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
  color: #fff;
}

#vision .icon-box {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

#vision .vision-image {
  position: relative;
  z-index: 1;
}

#vision .vision-image img {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

#vision .vision-image:hover img {
  transform: scale(1.02);
}

#vision .badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: #fff;
}

/* Footer */
#footer {
  position: relative;
  overflow: hidden;
  background-color: #0a192f;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

#footer .footer-top {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

#footer .footer-widget {
  margin-bottom: 2rem;
}

#footer .footer-widget h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

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

#footer .footer-widget ul li {
  margin-bottom: 0.5rem;
}

#footer .footer-widget ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 0;
}

#footer .footer-widget ul li a:before {
  content: '→';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

#footer .footer-widget ul li a:hover {
  color: #fff;
  padding-left: 20px;
}

#footer .footer-widget ul li a:hover:before {
  opacity: 1;
  left: 0;
}

#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  margin-right: 10px;
  transition: var(--transition);
  text-decoration: none;
}

#footer .social-links a:last-child {
  margin-right: 0;
}

#footer .social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(195, 57, 46, 0.3);
}

#footer .footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#footer .footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

#footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  #mission .card {
    margin-bottom: 1.5rem;
  }
  
  #vision .vision-image {
    margin-top: 3rem;
  }
  
  #footer .footer-widget {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  #footer .footer-bottom {
    text-align: center;
  }
  
  #footer .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

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

.animate-fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-fill-mode: both;
}

.footer-copyright {
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 1.5rem 0 !important;
  margin-top: 3rem !important;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
 
  
  .section-title h3 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-content {
    padding: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  #footer {
    text-align: center;
  }
  
  #footer ul.list-icons {
    margin-bottom: 2rem;
  }
  
  #footer ul.list-icons li {
    justify-content: center;
  }
}

/* Owl Carousel Customization */
.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px 7px;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primary);
  transform: scale(1.2);
}

.owl-theme .owl-nav [class*='owl-'] {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
}

.owl-carousel:hover .owl-nav [class*='owl-'] {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.owl-theme .owl-nav [class*='owl-']:hover {
  background: var(--primary);
  color: white;
}

/* Custom Utility Classes */
.bg-light {
  background-color: var(--light) !important;
}

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

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}
