/* Base Mobile Responsive - Prevent Overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.page-main {
  overflow-x: hidden;
  width: 100%;
}

.about-img-animated {
  opacity: 0;
  transform: translateY(42px) scale(1);
  transition: opacity 0.9s cubic-bezier(.39,.85,.54,1.25), transform 0.9s cubic-bezier(.39,.85,.54,1.25);
}
.about-img-animated.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.about-img-animated:hover {
  transform: scale(1.045) translateY(-6px);
  box-shadow: 0 4px 32px 0 #0002;
  z-index: 1;
}

/* Know More button - modern gradient and hover animation */
.s-about__btns .uk-button {
  background: linear-gradient(90deg, #ffbb33, #ff9900);
  color: #1a1a1a !important;
  border: 0;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 8px;
  padding: 14px 28px;
  box-shadow: 0 6px 18px rgba(255,153,0,.25);
  transition: transform .18s ease, box-shadow .25s ease, background-position .35s ease;
  background-size: 200% 100%;
  background-position: 0 0;
}
/* Override: Know More button hover becomes blue with animation */
.s-about__btns .uk-button:hover {
  color: #ffffff !important;
  background: linear-gradient(90deg, #4dabf7, #1e90ff) !important; /* blue gradient */
  background-size: 200% 100% !important;
  background-position: 100% 0 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 144, 255, .35) !important; /* blue glow */
}
.s-about__btns .uk-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(255,153,0,.25);
}
/* Move the uk-icon arrow slightly on hover for feedback */
.s-about__btns .uk-button [data-uk-icon],
.s-about__btns .uk-button [uk-icon],
.s-about__btns .uk-button .uk-icon {
  transition: transform .25s ease;
  margin-left: 10px;
}
.s-about__btns .uk-button:hover [data-uk-icon],
.s-about__btns .uk-button:hover [uk-icon],
.s-about__btns .uk-button:hover .uk-icon {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .about-img {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto 18px auto !important;
  }
  .about-img img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 90vw !important;
    width: auto !important;
    max-height: 44vw !important;
    height: auto !important;
  }
  .page-footer__inner > div,
  .page-footer__contacts {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
    max-width: 100%;
  }
  .page-footer__inner {
    gap: 0;
  }
  .page-footer__contacts {
    text-align: center;
    align-items: center !important;
    justify-content: center !important;
  }
  .page-footer__contacts .contacts-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto 12px auto;
  }
  .page-footer__contacts .contacts-list li {
    text-align: left;
    margin: 0 auto 8px auto;
    display: block;
  }
  .page-footer__contacts ul.social {
    justify-content: center !important;
    display: flex !important;
  }
  .page-footer__contacts {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .page-footer__contacts > * {
    max-width: 95vw !important;
  }
  .page-footer__contacts .footer-logo,
  .page-footer__contacts .footer-logo img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-footer__contacts .contacts-list {
    width: 100% !important;
    display: block !important;
    margin: 6px auto 12px auto !important;
    text-align: center !important;
  }
  .page-footer__contacts .contacts-list li {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto 8px auto !important;
  }
  .page-footer__contacts ul.social {
    justify-content: center !important;
    display: flex !important;
  }
  .page-footer__contacts p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 95vw !important;
  }
  .page-footer__contacts .contacts-list li a {
    display: inline-block !important;
    text-align: center !important;
    line-height: 1.6;
  }
  .page-footer__contacts .contacts-list li a i {
    margin-right: 6px;
  }
  .page-footer__contacts .contacts-list li a span {
    display: inline-block !important;
    text-align: center !important;
  }
}

/* Modern animations for About page */
.animated-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* About Us Section - Enhanced Blocks and Spacing */
.s-about {
  padding: 60px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.s-about .uk-section {
  padding-left: 0;
  padding-right: 0;
}

.s-about .uk-container {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 1200px;
}

.s-about .uk-grid {
  gap: 15px;
  align-items: stretch !important;
  margin-left: 0;
  margin-right: 0;
  display: flex !important;
  flex-wrap: nowrap !important;
}

@media (min-width: 768px) {
  .s-about .uk-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  
  .s-about .uk-grid > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    width: calc(50% - 7.5px) !important;
  }
  
  .s-about .uk-grid > div:first-child {
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    width: calc(50% - 7.5px) !important;
  }
  
  .s-about .uk-grid > div:last-child {
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
    width: calc(50% - 7.5px) !important;
  }
}

/* Image Block - Enhanced Frame */
.s-about .uk-grid > div:first-child,
.s-about .about-images-container {
  position: relative;
  padding: 15px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #e8e8e8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* About Images Wrapper */
.about-images-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

.s-about .uk-grid > div:first-child .about-images-wrapper {
  height: 100%;
}

.about-image-top,
.about-image-bottom {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.about-image-top {
  flex: 1;
  max-height: 50%;
}

.about-image-bottom {
  flex: 1;
  max-height: 280px;
}

@media (min-width: 768px) {
  .about-image-bottom {
    max-height: 240px;
  }
}

.s-about .uk-grid > div:first-child:hover,
.s-about .about-images-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
  border-color: #d0d0d0;
}

.s-about .uk-grid > div:first-child::before,
.s-about .about-images-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #2d2d2d, #4a4a4a, #2d2d2d);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.s-about .uk-grid > div:first-child:hover::before,
.s-about .about-images-container:hover::before {
  opacity: 0.1;
}

.s-about img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure old single image still works */
.s-about .uk-text-center img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Content Block - Enhanced Panel */
.s-about .uk-grid > div:last-child {
  position: relative;
  padding: 30px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #2d2d2d;
  border-top: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.s-about .uk-grid > div:last-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, #1a1a1a, #4a4a4a);
  transition: height 0.5s ease;
}

.s-about .uk-grid > div:last-child:hover::before {
  height: 100%;
}

.s-about .uk-grid > div:last-child:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateX(5px);
  border-left-color: #1a1a1a;
}

/* Decorative Block Elements */
.s-about .section-title {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 20px;
}

.s-about .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2d2d2d, #4a4a4a, #6a6a6a);
  border-radius: 2px;
}

/* Content Block with Background */
.s-about .section-content {
  position: relative;
  padding: 25px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  margin-top: 15px;
}

.s-about .section-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, #2d2d2d, #4a4a4a);
  border-radius: 8px 8px 0 0;
}

.s-about .section-content p {
  color: #333333;
  line-height: 1.9;
  font-size: 17px;
  margin: 0;
  text-align: justify;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* About Us Main Heading - Modern Font & Animation */
.about-main-heading {
  font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 700 !important;
  font-size: 38px !important;
  line-height: 1.4 !important;
  color: #1a1a1a !important;
  margin-bottom: 25px !important;
  letter-spacing: -0.5px !important;
  position: relative;
  padding-bottom: 20px;
}

.about-main-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #2d2d2d, #4a4a4a, #6a6a6a);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-heading-intro {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-heading-intro.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animated-heading-intro.animated::after {
  width: 120px;
}

/* Additional text animation effect */
@keyframes headingGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(45, 45, 45, 0);
  }
  50% {
    text-shadow: 0 0 20px rgba(45, 45, 45, 0.3);
  }
}

.about-main-heading.animated {
  animation: headingGlow 2s ease-in-out infinite;
}

/* Mobile Responsive for Heading */
@media (max-width: 767px) {
  .about-main-heading {
    font-size: 26px !important;
    line-height: 1.4 !important;
    padding-bottom: 15px;
  }
  
  .animated-heading-intro {
    transform: translateY(30px) scale(0.96);
  }
}

@media (max-width: 480px) {
  .about-main-heading {
    font-size: 22px !important;
  }
}
.animated-fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}
.animated-fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animated-fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}
.animated-slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animated-slide-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}
.animated-slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animated-slide-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}
.animated-stats > div {
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animated-stats.animated > div:nth-child(1) {
  transition-delay: 0.1s;
}
.animated-stats.animated > div:nth-child(2) {
  transition-delay: 0.25s;
}
.animated-stats.animated > div:nth-child(3) {
  transition-delay: 0.4s;
}
.animated-stats.animated > div {
  opacity: 1;
  transform: scale(1) translateY(0);
}
/* Smooth scroll reveal for sections - subtle fade enhancement */
.s-about,
.s-features,
.s-team,
.s-stats,
.s-video {
  transition: opacity 0.6s ease-in-out;
}

/* Mission & Vision Wrapper */
.mission-vision-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 960px) {
  .mission-vision-wrapper {
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
  }
}

/* Mission & Vision Separator Block */
.mission-vision-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  position: relative;
  width: 100%;
}

@media (min-width: 960px) {
  .mission-vision-separator {
    padding: 20px 0;
    width: auto;
    flex-direction: column;
    gap: 15px;
    height: 100%;
  }
}

.separator-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2d2d2d, #4a4a4a, #2d2d2d, transparent);
  border-radius: 2px;
  max-width: 150px;
}

@media (min-width: 960px) {
  .separator-line {
    width: 2px;
    height: 100px;
    max-width: none;
    background: linear-gradient(180deg, transparent, #2d2d2d, #4a4a4a, #2d2d2d, transparent);
  }
}

.separator-icon {
  font-size: 32px;
  color: #2d2d2d;
  opacity: 0.6;
  animation: separatorPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes separatorPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@media (max-width: 767px) {
  .mission-vision-separator {
    margin: 20px 0;
    padding: 15px 0;
  }
  
  .separator-icon {
    font-size: 24px;
  }
  
  .separator-line {
    max-width: 80px;
  }
}

/* Colorful and Animated Mission & Vision Cards */
.mission-vision-card {
  position: relative;
  padding: 40px 35px;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid transparent;
}

.mission-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3a3a3a 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.vision-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #404040 50%, #4a4a4a 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite reverse;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mission-vision-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.mission-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.vision-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

/* Animated Card Icon */
.card-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 48px;
  opacity: 0.3;
  animation: floatIcon 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.mission-vision-card:hover .card-icon {
  opacity: 0.6;
  transform: scale(1.2) rotate(10deg);
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Shine Effect */
.card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.mission-vision-card:hover .card-shine {
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% {
    opacity: 0;
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Enhanced Typography */
.mission-vision-card .section-title h3 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
  font-size: 28px;
  font-weight: 700;
}

.mission-vision-card .section-title h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ffffff, #e0e0e0, #b0b0b0);
  border-radius: 2px;
  animation: underlineGrow 1s ease-out;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.3);
}

@keyframes underlineGrow {
  0% { width: 0; }
  100% { width: 60px; }
}

.mission-vision-card .section-content {
  color: #ffffff;
  line-height: 1.8;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mission-vision-card .section-content b {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.8px;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(255, 255, 255, 0.3);
  display: inline-block;
  margin-bottom: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  position: relative;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.mission-vision-card:hover .section-content b {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Pulse Animation on Load */
.mission-vision-card.animated {
  animation: cardPulse 0.6s ease-out;
}

@keyframes cardPulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .mission-vision-card {
    padding: 30px 25px;
    margin-bottom: 20px;
  }
  
  .card-icon {
    font-size: 36px;
    top: 15px;
    right: 20px;
  }
  
  .mission-vision-card .section-title h3 {
    font-size: 24px;
  }
  
  .mission-vision-card .section-content {
    font-size: 15px;
  }
}

/* Additional Glow Effect */
.mission-vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mission-vision-card:hover::before {
  opacity: 1;
}

/* Comprehensive Mobile Responsive Fixes for About Page */
@media (max-width: 767px) {
  /* Fix container overflow and padding */
  .uk-container,
  .uk-container-small,
  .uk-container-large,
  .uk-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* About Section - Fix image and text layout */
  .s-about {
    padding: 30px 0 !important;
  }
  
  .s-about .uk-grid {
    margin-left: 0 !important;
    gap: 15px !important;
  }
  
  .s-about .uk-grid {
    flex-wrap: wrap !important;
  }
  
  .s-about .uk-grid > * {
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 20px !important;
  }
  
  .s-about .uk-grid > div:first-child {
    padding: 12px !important;
  }
  
  .s-about .uk-grid > div:last-child {
    padding: 20px 15px !important;
  }
  
  .about-images-wrapper {
    gap: 12px !important;
  }
  
  .s-about img,
  .about-image-top,
  .about-image-bottom {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  .s-about .section-content {
    padding: 20px 15px !important;
  }
  
  /* Section Title and Content */
  .section-title,
  .section-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Mission/Vision Cards - Full width and no overflow */
  .s-features {
    padding: 30px 0 !important;
    overflow-x: hidden !important;
  }
  
  .s-features .uk-grid {
    margin-left: 0 !important;
  }
  
  .s-features .uk-grid > * {
    padding-left: 0 !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .mission-vision-card {
    padding: 25px 20px !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }
  
  .mission-vision-card .section-content {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Team Section */
  .s-team {
    padding: 30px 0 !important;
    overflow-x: hidden !important;
  }
  
  .s-team .uk-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .team-user {
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
  
  /* Stats Section */
  .s-stats {
    padding: 30px 0 !important;
    overflow-x: hidden !important;
  }
  
  .s-stats .uk-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .s-stats .uk-grid {
    margin-left: 0 !important;
  }
  
  .s-stats .uk-grid > * {
    padding-left: 0 !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .stat-item {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
  
  /* Video Section */
  .s-video {
    overflow-x: hidden !important;
  }
  
  .s-video__inner {
    padding: 40px 20px !important;
    box-sizing: border-box !important;
  }
  
  .s-video__desc {
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .s-video__desc .section-title,
  .s-video__desc .section-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* General Text Overflow Fix */
  p, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  /* Fix UK Grid negative margins */
  [class*="uk-grid"] {
    margin-left: 0 !important;
  }
  
  [class*="uk-grid"] > * {
    padding-left: 15px !important;
  }
  
  /* Fix any horizontal scroll */
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .page-main {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* Extra Small Devices (phones, less than 480px) */
@media (max-width: 480px) {
  /* Further reduce padding for very small screens */
  .uk-container,
  .uk-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .mission-vision-card {
    padding: 20px 15px !important;
    border-radius: 12px !important;
  }
  
  .mission-vision-card .section-title h3 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
  }
  
  .mission-vision-card .section-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  .about-main-heading {
    font-size: 20px !important;
    padding-bottom: 12px !important;
  }
  
  .s-video__inner {
    padding: 30px 15px !important;
  }
  
  .card-icon {
    font-size: 32px !important;
    top: 12px !important;
    right: 15px !important;
  }
}

/* Landscape Mobile Fixes */
@media (max-width: 767px) and (orientation: landscape) {
  .mission-vision-card {
    padding: 20px 18px !important;
  }
  
  .s-about img {
    max-width: 45% !important;
    display: inline-block !important;
  }
}

/* Prevent any element from causing horizontal scroll */
* {
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  /* Ensure all images are responsive */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Fix Swiper container overflow */
  .swiper {
    overflow: hidden !important;
    width: 100% !important;
  }
  
  .swiper-wrapper {
    width: 100% !important;
  }
  
  .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Team Slider Mobile Navigation Buttons - Mobile Only */
.team-slider-nav-mobile {
  display: none;
}

@media (max-width: 767px) {
  .team-slider-nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    padding: 0 10px;
  }
  
  .team-nav-btn {
    background: rgba(248, 152, 8, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    position: relative;
    z-index: 11;
  }
  
  .team-nav-btn:hover {
    background: rgba(248, 152, 8, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(248, 152, 8, 0.4);
  }
  
  .team-nav-btn:active {
    transform: scale(0.95);
  }
  
  .team-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
  }
  
  .team-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
  
  /* Ensure buttons are visible over team cards */
  .js-team-slider {
    position: relative;
  }
  
  .js-team-slider .swiper {
    position: relative;
    z-index: 1;
  }
}

/* Extra small devices - adjust button size */
@media (max-width: 480px) {
  .team-nav-btn {
    width: 44px;
    height: 44px;
  }
  
  .team-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .team-slider-nav-mobile {
    padding: 0 8px;
  }
}

/* Team Member Text Style & Hide Social Media on Hover */
.team-user__name {
  font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
}

.team-user__position {
  font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #f89808 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* Managing Director - Special Styling */
.team-position--director {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  letter-spacing: 1.5px !important;
  position: relative;
  display: inline-block;
  padding: 4px 12px !important;
  background: linear-gradient(135deg, #f89808, #ff6b35) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(248, 152, 8, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Hide social media icons on hover - Keep them always hidden */
.team-user__social {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.team-user:hover .team-user__social,
.team-user:focus .team-user__social,
.team-user:active .team-user__social,
.team-user.nice-select.open .team-user__social {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Optional: Keep name and position colors on hover (remove white color change) */
.team-user:hover .team-user__name,
.team-user:focus .team-user__name,
.team-user:active .team-user__name,
.team-user.nice-select.open .team-user__name {
  color: #1a1a1a !important;
}

.team-user:hover .team-user__position,
.team-user:focus .team-user__position,
.team-user:active .team-user__position,
.team-user.nice-select.open .team-user__position {
  color: #f89808 !important;
}

/* Keep Managing Director styling on hover */
.team-user:hover .team-position--director,
.team-user:focus .team-position--director,
.team-user:active .team-position--director,
.team-user.nice-select.open .team-position--director {
  background: linear-gradient(135deg, #f89808, #ff6b35) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 152, 8, 0.4) !important;
}

/* Mobile responsive for team text */
@media (max-width: 767px) {
  .team-user__name {
    font-size: 22px !important;
  }
  
  .team-user__position {
    font-size: 14px !important;
  }
  
  .team-position--director {
    font-size: 15px !important;
    padding: 3px 10px !important;
    letter-spacing: 1px !important;
  }
}

/* Google Map Responsive - Mobile Only */
.map-responsive-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.map-responsive-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* Mobile Responsive Map */
@media (max-width: 767px) {
  .map-responsive-wrapper {
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .map-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    border-radius: 8px;
  }
  
  /* Ensure footer map container doesn't overflow */
  .page-footer__news {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden;
  }
  
  .page-footer__news h4 {
    margin-bottom: 15px !important;
    text-align: center;
  }
}

/* Extra Small Devices - Adjust map height */
@media (max-width: 480px) {
  .map-responsive-wrapper {
    padding-bottom: 85%; /* Slightly taller aspect ratio for small phones */
    border-radius: 6px;
  }
  
  .map-responsive-wrapper iframe {
    min-height: 280px;
    border-radius: 6px;
  }
}

