/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* If you have a separate main content area, make it flexible */
#main-content { /* Or #page-content-wrapper or similar */
    flex-grow: 1; /* This makes the main content area take up all available space, pushing the footer down */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Important: ensures html and body fill the viewport */
}


body {
  font-family: Arial, sans-serif;
  background-color: white; /* Changed to pure white */
  color: #000000; /* Default text color to black for contrast on white */
  position: relative;
  overflow-x: hidden;
}
footer, body, html {
  margin: 0;
  padding: 0;
}


/* --- UPDATED BANNER STYLES FOR FULL WIDTH --- */
.slider-container {
  position: relative;
  width: 100%; /* Full width */
  height: 400px; /* Set a fixed height for the banner. Adjust this value as needed (e.g., 300px, 450px) */
  max-height: 450px; /* Add a max-height to prevent it from getting too tall on very large screens */
  overflow: hidden;
  border-radius: 0; /* No border-radius if it's full width, or apply only if it's within a constrained content area */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adjusted shadow for white background */
  margin-top: 70px; /* Adjust this to push it down slightly from the fixed navbar. Match your navbar's height. */
  margin-bottom: 20px; /* Keep some bottom margin */
  padding: 0; /* REMOVED horizontal padding */
  box-sizing: border-box; /* Ensures padding is included in the width */
}

.slider-track {
  position: absolute; /* Position track absolutely within the container */
  top: 0;
  left: 0; /* Reset left position */
  right: 0; /* Reset right position */
  width: 100%; /* Make track full width of container */
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-track img {
  width: 100%;
  height: 100%; /* Make image fill the height of the track */
  object-fit: cover; /* This is crucial: crops image to fill, without distortion */
  display: block;
  flex-shrink: 0;
  border-radius: 0; /* Remove border-radius from images if container is full width */
}

/* Navigation Buttons - Adjusted positions */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.slider-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
  left: 20px; /* Adjusted closer to the edge */
}

.slider-nav.next {
  right: 20px; /* Adjusted closer to the edge */
}

/* Dots - These were centered, so no change needed unless you want to adjust their horizontal position */
.slider-dots {
  position: absolute;
  bottom: 25px; /* Increase bottom value slightly to lift dots from the edge */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots .dot.active {
  background-color: #fff;
  transform: scale(1.2);
}
@media (max-width: 767px) {
  .slider-container {
    position: relative;
    height: auto;
  }
  .slider-nav {
    top: auto !important;
    bottom: 15px !important;
    transform: none !important;
    font-size: 18px !important;
    padding: 6px 10px !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 10;
  }
  .slider-nav.prev {
    left: 5% !important;
    right: auto !important;
  }
  .slider-nav.next {
    right: 5% !important;
    left: auto !important;
  }
  .slider-dots {
    bottom: 5px !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }
}

/* Media Queries for Responsiveness - Adjust heights and nav button positions for full width */
@media (max-width: 1024px) {
  .slider-container {
    height: 350px;
    max-height: 400px;
  }
  .slider-nav.prev {
    left: 15px; /* Slightly closer on medium screens */
  }
  .slider-nav.next {
    right: 15px; /* Slightly closer on medium screens */
  }
}

@media (max-width: 768px) {
  .slider-container {
    height: 300px;
    max-height: 350px;
    margin-top: 60px;
  }
  .slider-nav {
    padding: 6px 10px;
    font-size: 18px;
  }
  .slider-nav.prev {
    left: 10px;
  }
  .slider-nav.next {
    right: 10px;
  }
  .slider-dots {
    bottom: 15px;
  }
  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 250px;
    max-height: 300px;
    margin-top: 50px;
    border-radius: 0;
    box-shadow: none;
  }
  .slider-nav {
    padding: 4px 8px;
    font-size: 16px;
    left: 5px; /* Very close to edge on small screens */
    right: 5px; /* Very close to edge on small screens */
  }
  .slider-dots {
    bottom: 10px;
    gap: 5px;
  }
}
/* --- END OF UPDATED BANNER STYLES FOR FULL WIDTH --- */

/* Ensure main content starts below the banner */
main {
  margin-top: 50px; /* Add some space between the banner and your main content sections */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #032c44; /* Keep dark navbar for contrast */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Light shadow */
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
}
.logo span {
  font-size: 1.6rem;
  font-weight: bold;
  color: #47a6ea; /* Lighter blue */
  font-family: 'Orbitron', sans-serif;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #57bef2; /* Darker text */
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links li {
  display: flex; /* Make each list item a flex container */
  align-items: center; /* Vertically center content within each li */
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #0096ff; /* Lighter blue */
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: #0096ff; /* Lighter blue */
}

/* Existing .hamburger and .hamburger.active styles */
.hamburger {
  display: none; /* Hidden by default on large screens */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101; /* Ensure it's above the navbar */
  position: relative; /* Added for correct positioning of spans */
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #00bfff;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px); /* Adjusted translate values */
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px); /* Adjusted translate values */
}

/* Important: For mobile, adjust language-select placement */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px; /* Adjust padding for smaller screens */
  }

  .hamburger {
    display: flex; /* Show hamburger */
  }

  .nav-links {
    position: absolute;
    top: 70px; /* Or adjust based on your navbar height */
    right: 0;
    background-color: #032c44;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 20px 0;
    text-align: center;
    z-index: 99; /* Lower than hamburger, higher than page content */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  /* Move the language selection inside the nav-links for mobile */
  .navbar .language-select { /* Target specifically within navbar for mobile */
    position: static; /* Remove fixed positioning */
    width: auto;
    margin: 10px auto 0; /* Center it if desired, or set text-align: center on parent */
    border: none;
    box-shadow: none;
    background-color: transparent;
    /* Adjust button and dropdown styles for integration */
  }
  .navbar .language-select button {
    background-color: #bbd8f2; /* Keep original background if desired */
    border: 1px solid #99c2e0;
    margin: 0 auto; /* Center button */
  }
  .navbar .lang-dropdown {
    position: static; /* Remove absolute positioning */
    width: auto;
    margin: 5px auto 0; /* Center dropdown */
    background-color: #bbd8f2;
    border: 1px solid #99c2e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex; /* Explicitly set to flex for desktop */
    flex-direction: row; /* Ensure they are in a row */
    position: static; /* Override absolute positioning from mobile */
    width: auto; /* Override 100% width from mobile */
    padding: 0; /* Override padding from mobile */
    background-color: transparent; /* Override background from mobile */
    box-shadow: none; /* Override box-shadow from mobile */
  }
  /* Ensure the language-select is positioned correctly for desktop */
  .language-select {
    position: relative; /* Crucial for desktop, not fixed */
    margin-left: 30px; /* Adjust this value if you want more/less space from "Contact Us" */
  }

  /* Important: Resetting mobile-specific styles for the language-select if they exist */
  .navbar .language-select, .navbar .language-select button, .navbar .lang-dropdown {
    position: initial; /* Reset fixed/absolute to default for these */
    width: auto;
    margin: 0;
    border: initial;
    box-shadow: initial;
    background-color: initial;
  }
  /* Re-apply desktop specific styles for the button and dropdown if needed */
  .language-select button {
    background-color: #bbd8f2; /* Lighter blue */
    border: 1px solid #99c2e0; /* Lighter border */
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    color: #58bae8; /* Darker text */
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: auto;
    justify-content: center;
  }
  .lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #bbd8f2; /* Lighter blue */
    border: 1px solid #99c2e0; /* Lighter border */
    margin-top: 5px;
    list-style: none;
    padding: 0;
    color: #57bef2;
    width: 170px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Lighter shadow */
  }
}

/* --- UPDATED .about-section STYLES --- */
.about-section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: 80px auto 0 auto;
  text-align: center; /* Centers the heading and the button */
  opacity: 0; /* Initial state for fade-in effect */
  transform: translateY(50px); /* Initial state for fade-in effect */
  transition: all 0.7s ease-in-out; /* Smooth transition for fade-in */

  /* REMOVED: Background, border-radius, and box-shadow to make it "as in body, no extra box" */
  /* background-color: white; */
  /* border-radius: 15px; */
  /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); */
}

/* Fade-in effect on scroll (active state) */
.about-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-section {
  opacity: 1 !important;
  transform: none !important;
}


/* Heading Styling */
.about-section h2 {
  font-size: 2.2rem; /* Reduced font size */
  color: #000000;
  font-weight: 600; /* Not bold, but still prominent */
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
  letter-spacing: normal; /* Ensure no extra letter spacing */
  text-align: center; /* Keep heading centered */
}

/* Paragraph Content Styling */
.about-section p { /* Targets all paragraphs including the main one */
  font-size: 1.1rem; /* Reduced text size */
  font-weight: normal; /* Not bold */
  line-height: 1.7; /* Improved line spacing for readability */
  color: #000000;
  margin: 0 auto 30px auto; /* Centers paragraph if it's narrower than max-width and adds bottom margin */
  max-width: 850px; /* Constrain paragraph width for better readability on very wide screens */
  text-align: justify; /* Justified text for a professional look */
}

/* --- BUTTON STYLING (GENERIC .cta-button - DO NOT MODIFY FOR ABOUT SECTION) --- */
.cta-button {
  display: inline-block;
  background-color: #00bfff; /* Bright blue, similar to your navbar hover */
  color: #ffffff; /* White text */
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px; /* Pill-shaped button */
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 191, 255, 0.4); /* Glow effect */
}

.cta-button:hover {
  background-color: #0096ff; /* Slightly darker on hover */
  transform: translateY(-3px); /* Lift effect */
  box-shadow: 0 12px 20px rgba(0, 191, 255, 0.6); /* More intense glow */
}

/* --- SPECIFIC BUTTON STYLING FOR .about-section (Overrides generic .cta-button) --- */
.about-section .cta-button {
  background-color: transparent; /* No fill before hover */
  border: 2px solid #0096ff; /* Blue border */
  color: #0096ff; /* Blue text color */
  padding: 12px 30px; /* Professional padding */
  font-size: 1rem; /* Adjusted font size */
  font-weight: 600; /* Slightly bolder text for the button */
  border-radius: 50px; /* Pill shape */
  text-decoration: none;
  display: inline-block; /* Allows vertical padding and proper margin */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none; /* No shadow on normal state */
  margin-top: 20px; /* Space above the button */
}

.about-section .cta-button:hover {
  background-color: #0096ff; /* Blue fill on hover */
  color: white; /* White text on hover */
  transform: translateY(-3px); /* Slight lift effect */
  box-shadow: 0 5px 15px rgba(0, 150, 255, 0.3); /* Subtle blue shadow on hover */
}


/* Features List */
.features-list {
  text-align: left;
  list-style: none;
  padding-left: 0;
  margin-bottom: 40px;
}
.features-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: black; /* Already black, good */
  line-height: 1.5;
  justify-items: end;
  text-align: justify;
}

.features-list li strong {
  color: #0096ff; /* Lighter blue */
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #000000; /* Changed to black */
  background-color: white; /* Changed to pure white */
  border-top: 1px solid #e0e0e0; /* Lighter border for white background */
  margin-top: 80px;
}

/* Responsive Menu Behavior */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #032c44;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 20px 0;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}



/* Contact Us Section */
#contact-us {
  background-color: white; /* Changed to pure white */
  color: #000000; /* Darker text */
  padding: 60px 20px;
  font-family: Arial, sans-serif;
}

#contact-us h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.contact-box {
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  background-color: white; /* Changed to pure white */
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Light shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border: 1px solid transparent;
}

.contact-box:hover {
  transform: translateY(-8px);
  background-color: #f5f5f5; /* Slight hover tint */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Clearer shadow on hover */
  border-color: #0096ff; /* Lighter blue border */
}

.contact-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333333; /* Darker text */
}

.contact-box p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #666666; /* Lighter grey text */
}

.contact-box iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  #contact-us h2 {
    font-size: 28px;
  }

  .contact-box {
    max-width: 100%;
  }
}

.map-container {
  flex: 1;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2); /* Adjusted shadow */
  z-index: 10;
}
.map-container iframe {
  width: 100%;
  height: 250px;
  border: 2px solid #0096ff; /* Lighter blue border */
  border-radius: 10px;
}

.contact-info {
  margin-bottom: 30px;
  text-align: center;
  color: #333333; /* Darker text */
}

.contact-info p {
  margin: 5px 0;
  font-size: 16px;
}

.contact-info a {
  color: #007ac1; /* Slightly darker blue link */
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 8px;
  width: 36px;
  height: 36px;
  background-color: #cccccc; /* Lighter background */
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
  transition: all;
  background-color: #72b1dd;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(0.2); /* Slightly inverted to work with light background */
}
#contact-us h2 {
  margin-bottom: 10px; /* Reduced from default (like 30px or more) */
}

.contact-info {
  margin-top: 0;
  padding-top: 0;
  text-align: center;
  color: #333333; /* Darker text */
}


/* Our Services Section Styling (Matches Reference Image) */
.our-services-section {
    padding: 60px 20px;
    max-width: 1200px; /* Adjust based on your overall content width */
    margin: 50px auto;
    text-align: center;
    font-family: Arial, sans-serif; /* Or your preferred font */
}

.our-services-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.our-services-section .section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.service-cards-container {
    display: flex;
    flex-wrap: nowrap; /* Keep cards in a single line normally */
    justify-content: center;
    align-items: flex-start; /* Align items to the top if they have different heights */
    gap: 15px; /* Space between cards */
    padding: 20px 0;
    transition: all 0.4s ease-in-out; /* Smooth transition for the container's children */
}

.service-card {
    position: relative;
    width: 150px; /* Initial slim width as per reference */
    min-width: 120px; /* Ensure it doesn't get too small */
    height: 350px; /* Fixed height for the cards as per reference */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden; /* Hide overflowing content */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    cursor: pointer;
    flex-shrink: 1; /* Allows cards to shrink */
    flex-grow: 1; /* Allows cards to grow */
    transition: width 0.4s ease-in-out, flex-grow 0.4s ease-in-out, box-shadow 0.4s ease-in-out, opacity 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom initially */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep initial gradient slightly lighter */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 80%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.4s ease-in-out;
}

.card-content {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
    padding: 15px;
    width: 100%;
    /* Initial state for content - Adjusted to show title */
    transform: translateY(0); /* Content remains in place */
    opacity: 1; /* Content is visible */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    display: flex; /* Use flex to control internal layout */
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Align content to bottom of its container */
    height: 100%; /* Take full height to allow transform */
}

.service-card h3 {
    font-size: 1.2rem; /* Initial smaller title font */
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap; /* Prevent wrapping initially */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if text is too long */
    padding: 0 5px; /* Add some padding to prevent text touching edges */
    /* Ensure title is always visible by adjusting its initial opacity */
    opacity: 1;
    transition: font-size 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.service-card p.full-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #eee;
    opacity: 0; /* Hidden by default */
    max-height: 0; /* Collapse height */
    overflow: hidden; /* Hide overflow */
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    padding: 0 5px;
}

.service-card .card-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff; /* Button background */
    color: white;
    text-decoration: none;
    border-radius: 20px; /* Pill shape */
    font-size: 0.85rem;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Disable clicks when hidden */
    transform: translateY(10px); /* Slightly move down when hidden */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.service-card .card-button:hover {
    background-color: #0056b3;
}

/* Hover Effect: When a card is hovered */
.service-cards-container .service-card:hover {
    width: 400px; /* Significantly expand hovered card width */
    flex-grow: 3; /* Give it more space */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    z-index: 2; /* Bring to front */
    transform: translateY(-8px); /* Slight lift */
}

.service-cards-container .service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0.1) 100%); /* Darker on hover */
}

.service-cards-container .service-card:hover .card-content {
    transform: translateY(0); /* Content is fully visible */
    opacity: 1; /* Content is fully visible */
}

.service-cards-container .service-card:hover p.full-description {
    opacity: 1; /* Show description */
    max-height: 100px; /* Allow content to expand (adjust as needed for text length) */
}

.service-cards-container .service-card:hover .card-button {
    opacity: 1; /* Show button */
    pointer-events: auto; /* Enable clicks */
    transform: translateY(0); /* Move to original position */
}

/* Hover Effect: When the container is hovered, but a card is NOT hovered (i.e., the other cards) */
.service-cards-container:hover > .service-card:not(:hover) {
    width: 100px; /* Shrink other cards' width */
    flex-grow: 0.5; /* Give them less space */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    opacity: 0.6; /* Dim other cards */
    filter: grayscale(50%); /* Optional: Make them slightly grayscale */
}

.service-cards-container:hover > .service-card:not(:hover) .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 80%, rgba(0,0,0,0.2) 100%); /* Keep them slightly dark */
}

.service-cards-container:hover > .service-card:not(:hover) .card-content {
    transform: translateY(0); /* Still keep the content visible, but potentially reduced */
    opacity: 0.7; /* Keep content slightly visible */
}

.service-cards-container:hover > .service-card:not(:hover) h3 {
    font-size: 1rem; /* Slightly smaller title on non-hovered */
    white-space: normal; /* Allow title to wrap for brevity */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show max 2 lines of title */
    -webkit-box-orient: vertical;
}

.service-cards-container:hover > .service-card:not(:hover) p.full-description,
.service-cards-container:hover > .service-card:not(:hover) .card-button {
    opacity: 0; /* Hide description and button completely */
    max-height: 0;
    pointer-events: none; /* Disable clicks */
    transform: translateY(10px);
}


/* General "Read More" button at the bottom of the section */
.read-more-main-button-container {
    margin-top: 50px;
    text-align: center;
}

.read-more-main-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #007bff; /* Blue border */
    color: #007bff; /* Blue text */
    background-color: transparent;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.read-more-main-button:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive Adjustments for Service Cards */
@media (max-width: 1024px) {
    .service-card {
        width: 140px;
        height: 320px;
    }
    .service-cards-container .service-card:hover {
        width: 350px;
        flex-grow: 2.5;
    }
    .service-cards-container:hover > .service-card:not(:hover) {
        width: 90px;
        flex-grow: 0.6;
    }
}

@media (max-width: 768px) {
    .service-cards-container {
        flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
        justify-content: center;
        gap: 15px; /* Keep gap consistent */
    }

    .service-card {
        width: calc(50% - 15px); /* Two cards per row */
        max-width: 300px; /* Limit max width */
        height: 280px; /* Slightly shorter for mobile */
    }

    /* Disable complex hover effects on smaller screens as they can be awkward */
    .service-cards-container .service-card:hover {
        width: calc(50% - 15px); /* Reset width */
        flex-grow: 1; /* Reset flex-grow */
        transform: translateY(-5px); /* Keep a simple lift effect */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .service-cards-container:hover > .service-card:not(:hover) {
        width: calc(50% - 15px); /* Reset width */
        flex-grow: 1; /* Reset flex-grow */
        opacity: 1; /* No dimming */
        filter: none; /* No grayscale */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Standard shadow */
    }

    .service-card .card-content {
        transform: translateY(0); /* Always show minimal content on mobile */
        opacity: 1;
        padding: 10px;
    }

    .service-card h3 {
        font-size: 1.1rem;
        white-space: normal; /* Allow title to wrap */
        text-overflow: initial;
    }
    .service-card p.full-description {
        opacity: 1; /* Show description on mobile */
        max-height: 80px; /* Allow some description */
        margin-bottom: 10px;
    }
     .service-card .card-button {
        opacity: 1; /* Show button on mobile */
        pointer-events: auto;
        transform: translateY(0);
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .our-services-section .section-title {
        font-size: 2rem;
    }
    .our-services-section .section-description {
        font-size: 0.9rem;
    }
    .service-card {
        width: 100%; /* Single card per row */
        height: 260px; /* Further reduced height */
    }
    /* Ensure no complex hover effects on very small screens */
    .service-cards-container .service-card:hover {
        width: 100%;
        transform: none;
    }
    .service-cards-container:hover > .service-card:not(:hover) {
        width: 100%;
        opacity: 1;
        filter: none;
    }
}



.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: bold;
}

.services-section {
  padding: 0 20px;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.services-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.service-card {
  width: 280px;
  height: 350px;
  border-radius: 20px;
  perspective: 1000px;
  position: relative;
  cursor: pointer;
}

.service-card .front,
.service-card .back {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.service-card .front {
  font-size: 1.5rem;
}

.service-card .back {
  background: white;
  color: #333;
  transform: rotateY(180deg);
  flex-direction: column;
}

.service-card:hover .front {
  transform: rotateY(180deg);
}

.service-card:hover .back {
  transform: rotateY(0deg);
}

/* Background Colors */
.service-card.red .front {
  background-color: #ef5350; /* Lighter red */
}

.service-card.blue .front {
  background-color: #42a5f5; /* Lighter blue */
}

.service-card.teal .front {
  background-color: #26a69a; /* Lighter teal */
}

/* List style in back */
.service-card .back ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.service-card .back ul li {
  margin: 5px 0;
  font-size: 0.95rem;
}
.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.stats-container {
  background: linear-gradient(135deg, #2e49c1, #b2ebf2, #3178dc, #4c94e7); /* Gradient background */
  background-size: 300% 300%;
  animation: gradientAnimation 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px;
  flex-wrap: wrap;
}


.stat-wrapper {
  perspective: 1000px;
}

.stat-wrapper :hover{
  box-shadow: #0b0126;
  box-sizing: border-box;

}

.stat-box {
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Lighter shadow */
  text-align: center;
  color: black; /* Darker text */
  min-width: 200px;
  opacity: 0;
  transform: translateY(30px) rotateX(0deg); /* Initial position for fade-up */
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.stat-wrapper:nth-child(1) .stat-box {
  animation-delay: 0.2s;
}
.stat-wrapper:nth-child(2) .stat-box {
  animation-delay: 0.4s;
}
.stat-wrapper:nth-child(3) .stat-box {
  animation-delay: 0.6s;
}

.stat-wrapper:hover .stat-box {
  transform: scale(1.05);
}

.stat-box h2 {
  font-size: 36px;
  margin: 0;
  color: black; /* Lighter blue */
}

.stat-box p {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  color: black; /* Darker text */
}
.stat-box:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15), 0 0 25px rgba(0, 0, 0, 0.05) inset; /* Adjusted hover glow for white background */
  transform: translateY(-5px);
  background-color: white; /* Slight hover tint */

}
.stat-box:hover h2  {
  color: #021b3f;
}
.stat-box:hover p  {
  color: #021b3f;
}

/* Animation for stats box on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  0% {
    opacity: 0;
    transform: rotateX(-90deg) translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

.language-select {
  position: relative;
  top: 0; /* Resetting top property as it's now part of flex alignment */
  right: 0; /* Resetting right property */
  z-index: 100;
  font-family: Arial, sans-serif;
}

.language-select button {
  background-color: #bbd8f2; /* Lighter blue */
  border: 1px solid #99c2e0; /* Lighter border */
  padding: 6px 8px;
  font-size: 14px;
  cursor: pointer;
  color: #58bae8; /* Changed to match nav links */
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: auto;
  justify-content: center;
}
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #bbd8f2; /* Lighter blue */
  border: 1px solid #99c2e0; /* Lighter border */
  margin-top: 5px;
  list-style: none;
  padding: 0;
  color: #57bef2;
  width: 170px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Lighter shadow */
}

.lang-dropdown li {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #57bef2;
  gap: 10px;
}

.lang-dropdown li:hover {
  background-color: #87cefa; /* Lighter blue on hover */
}

.lang-dropdown img {
  margin-right: 8px;
  width: 20px;
  height: 14px;
  object-fit: cover;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

.offer-section {
  background-color: white; /* Changed to pure white */
  padding: 60px 20px;
  border-radius: 20px;
  color: #000000; /* Changed to black */
  text-align: center;
  font-family: Arial, sans-serif;
  margin: 50px auto;
  max-width: 1200px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
  border: 1px solid rgba(0, 0, 0, 0.05); /* Lighter border */
}

/* Common visibility class for fade-in effect */
.about-section.visible, .offer-section.visible, .accreditations-section.visible, .consultancy-cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.offer-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: black; /* Already black, good */
}

.offer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.offer-box {
  background: linear-gradient(160deg, #bbd8f2, #87cefa); /* Kept a subtle gradient, but with lighter blues */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Lighter consistent border */
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Softer glow */
  padding: 25px;
  max-width: 300px;
  flex: 1 1 280px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  color: #000000; /* Changed to black */
}

.offer-box:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15), 0 0 25px rgba(0, 0, 0, 0.05) inset; /* Adjusted hover glow for white background */
  transform: translateY(-5px);
}

.offer-box h3 {
  font-size: 1.3rem;
  color: #000000; /* Changed to black */
  text-shadow: none; /* Removed text shadow */
  margin-bottom: 10px;
}

.offer-box p {
  font-size: 0.95rem;
  color: #000000; /* Already black, good */
}

.accreditations-section {
  background-color: white; /* Changed to pure white */
  padding: 60px 20px;
  border-radius: 20px;
  margin: 60px auto;
  max-width: 1100px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
  font-family: Arial, sans-serif;
  color: #000000; /* Changed to black */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Lighter border */
  margin-top: 0;
  padding-top: 40px;
}

.section-title {
  font-size: 2.2rem;
  color: black; /* Already black, good */
  margin-bottom: 50px;
  margin-top: 0;
}

.credentials-block {
  margin-bottom: 60px;
}

.credentials-title {
  font-size: 1.8rem;
  color: #000000; /* Changed to black */
  text-shadow: none; /* Removed text shadow */
  margin-bottom: 10px;
}

.credentials-text {
  font-size: 1rem;
  margin-bottom: 25px;
  color: rgb(2, 33, 78); /* Dark blue, keep for contrast */
}

.credentials-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.credentials-logos img {
  height: 100px;
  width: auto;
  border-radius: 10px;
  background-color: #f0f0f0; /* Slight off-white for logos */
  padding: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credentials-logos img:hover {
  transform: scale(1.05);
  /* Changed box-shadow for a more visible blue border effect */
  box-shadow: 0 0 0 3px #007bff, 0 0 15px rgba(0, 123, 255, 0.4); /* Blue border-like glow */
}

/* Make Saudi credentials logos like UK logos */
.credentials-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 25px;
}

.credentials-details img {
  height: 100px;
  width: auto;
  border-radius: 10px;
  background-color: #f0f0f0; /* Slight off-white for logos */
  padding: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credentials-details img:hover {
  transform: scale(1.05);
  /* Changed box-shadow for a more visible blue border effect */
  box-shadow: 0 0 0 3px #007bff, 0 0 15px rgba(0, 123, 255, 0.4); /* Blue border-like glow */
}

.credential-box {
  width: auto;
  height: 100px;
  background-color: #f0f0f0; /* Slight off-white */
  padding: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Adjusted shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credential-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.credential-box:hover {
  transform: scale(1.05);
  /* Changed box-shadow for a more visible blue border effect */
  box-shadow: 0 0 0 3px #007bff, 0 0 15px rgba(0, 123, 255, 0.4); /* Blue border-like glow */
}

/* Partners Section & Carousel Styles */
.partners-section {
    padding: 50px 20px;
    background-color: #ffffff; /* White background as in reference */
    text-align: center;
    position: relative; /* Needed for absolute positioning of arrows */
    overflow: hidden; /* Ensure content stays within bounds */
}

.partners-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px; /* Adjust based on desired width of 3 logos */
    margin: 0 auto;
    position: relative;
}

.carousel-arrow {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: black; /* Light grey arrows as in reference */
    cursor: pointer;
    padding: 0 15px;
    z-index: 10;
    transition: color 0.3s ease;
}

.carousel-arrow:hover {
    color: #999999; /* Darker grey on hover */
}

.carousel-track-container {
    flex-grow: 1;
    overflow: hidden; /* Hides logos outside the view */
    white-space: nowrap; /* Ensures slides stay in a single line */
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out; /* Smooth slide animation */
    /* Adjust this value in JS dynamically */
    transform: translateX(0); /* Initial position */
}

.partner-slide {
    display: flex;
    justify-content: space-around; /* Distribute logos evenly */
    align-items: center;
    flex-shrink: 0; /* Prevents slides from shrinking */
    width: 100%; /* Each slide takes full width of track-container */
    height: 120px; /* Height of the slide container */
    padding: 0 10px; /* Add some padding if needed */
}

.partner-slide img {
    max-height: 80px; /* Max height for logos as in reference */
    max-width: 30%; /* Ensure 3 logos fit well, adjust as needed */
    width: auto;
    object-fit: contain; /* Ensure logos are not distorted */
 /* Optional: Make logos grayscale as in some references */
    opacity: 0.7; /* Optional: Slightly dim logos */
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-slide img:hover {
    filter: grayscale(0%); /* Full color on hover */
    opacity: 1; /* Fully visible on hover */
}

.carousel-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cccccc; /* Default dot color */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #000000; /* Active dot color as in reference */
    transform: scale(1.2); /* Slightly larger active dot */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-carousel-container {
        max-width: 100%;
        padding: 0 10px; /* Add padding to sides */
    }
    .carousel-arrow {
        font-size: 2rem;
        padding: 0 5px;
    }
    .partner-slide {
        height: 100px;
    }
    .partner-slide img {
        max-height: 70px;
        max-width: 30%; /* Still try to fit 3 */
    }
}


@media (max-width: 480px) {
    .partners-carousel-container {
        max-width: 100%;
        padding: 0 2px;
    }
    .partner-slide {
        height: 70px; /* Reduce slide height for mobile */
        padding: 0 2px;
        gap: 0;
    }
    .partner-slide img {
        max-width: 32vw; /* Each logo takes up to ~32% of viewport width */
        max-height: 50px;
        width: 100%;
        margin: 0 1vw;
        object-fit: contain;
    }
}




/* Consultancy CTA Section */
.consultancy-cta-section {
  padding: 80px 20px;
  background: linear-gradient(45deg, #021b3f, #0096ff); /* Kept gradient here as it's a specific section */
  text-align: center;
  color: #ffffff; /* White text for contrast */
  font-family: Arial, sans-serif;
  margin-top: 80px; /* Space from the previous section */
  border-radius: 15px; /* Consistent with other sections */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow for emphasis */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden; /* For potential background effects if added later */
  position: relative;
  z-index: 1; /* Ensure it's above background particles */
}

.consultancy-cta-section::before {
  /* REMOVED: background animation for CTA section */
  content: none;
}

.consultancy-cta-section .cta-title {
  font-size: 2.8rem;
  color: #ffffff; /* White title */
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.consultancy-cta-section p {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px auto; /* Center paragraph and add bottom margin */
  color: rgba(255, 255, 255, 0.9); /* Slightly translucent white */
}

/* Gradient Animation Keyframes */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Style for visible stat box with animation */
.stat-box.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg); /* Reset transform */
  animation: fadeInUp 0.8s ease forwards; /* Apply fade-up animation */
}

/* Reset initial transform for elements that will be animated on scroll */
.stat-box {
  transform: translateY(30px) rotateX(0deg); /* Initial position for fade-up */
}
.stat-box {
  opacity: 1 !important;
  transform: translateY(0) rotateX(0deg) !important;
}





























































/* General Footer Styles */
.site-footer {
    background: #0f355a;
    color: #fff;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scrollbar if 100vw is problematic */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns: Addresses, Accreditations, Contact */
    gap: 20px;
    padding: 30px 10px;
    box-sizing: border-box;
}

/* Offices Section */
.footer-addresses-wrapper {
    grid-column: 1 / 3; /* Spans the first two columns in the main grid */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for the addresses themselves */
    gap: 10px;
}

.footer-title {
    grid-column: 1 / 3; /* Spans across both address columns within its grid */
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}



.footer-column {
    display: flex; /* Keep as flex to stack address blocks */
    flex-direction: column;
    justify-content: flex-start;
    /* Removed align-items: flex-start here to allow address block to control its content */
}

.footer-column address {
    margin: 0;
    padding: 0;
    font-style: normal;
    display: block; /* Make address a block element for consistent flow */
    text-align: left; /* **Crucial:** Ensures all text content inside address aligns left */
    margin-bottom: 16px; /* Space between addresses */
    box-sizing: border-box;
}

.footer-column address strong {
    display: block; /* Ensure strong is a block element to take its own line */
    text-align: left; /* Explicitly align country name to the left */
    margin-bottom: 5px; /* Space below the country name */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap naturally */
}

.footer-column address p {
    margin: 0; /* Remove default paragraph margins */
    padding: 0;
    line-height: 1.4; /* Improve readability of address lines */
    text-align: left; /* Explicitly ensure paragraph text is left-aligned */
}
.footer-column address p:not(:last-child) {
    margin-bottom: 5px; /* Space between address lines, but not after the last one */
}

/* Link Styles */
address a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

address a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Accreditation Section */
.footer-accreditations {
    grid-column: 3 / 4; /* Positions Accreditations in the third column */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 0;
}

.footer-accreditations h3,
.footer-contact h3 {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    width: 100%;
}

.acc-saudi,
.acc-uk {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    width: 100%;
}

.accreditation-images {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.accreditation-subtitle {
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.accreditation-images img {
    max-width: 100px;
    height: auto;
    display: block;
}
.ncasaudi {

  max-width: 180px;

}

/* Contact Section */
.footer-contact {
    grid-column: 4 / 5; /* This will be out of bounds if grid-template-columns is 3. Adjust if needed. */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    width: 100%;
}

.social-links .social-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(180%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.social-links .social-icon img:hover {
    filter: brightness(100%);
    opacity: 1;
}

.contact-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.contact-us-list li {
    margin-bottom: 5px;
}

.contact-us-list li a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-us-list li a:hover {
    color: #1396ed;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #05345d;
    text-align: center;
    padding: 20px 20px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns for smaller screens */
        gap: 20px;
    }
    .footer-addresses-wrapper {
        grid-column: 1 / 3; /* Spans both columns */
        grid-template-columns: 1fr 1fr;
    }
    .footer-accreditations {
        grid-column: 1 / 2; /* Move to first column */
    }
    .footer-contact {
        grid-column: 2 / 3; /* Move to second column */
    }

    /* Ensure address content is left-aligned in two-column layout */
    .footer-column address {
        text-align: left; /* Force left alignment for all text within address */
    }
    .footer-column address strong {
        text-align: left;
    }
    .footer-column address p {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 30px;
    }
    .footer-addresses-wrapper {
        grid-column: 1 / 2;
        grid-template-columns: 1fr; /* Addresses stack */
        align-items: center; /* Center the wrapper content */
        justify-content: center;
    }
    .footer-addresses-wrapper .footer-column {
        align-items: center; /* Center the column itself */
        text-align: center; /* Center text within the column */
    }

    /* Explicitly center address block and its strong tag when stacked */
    .footer-column address {
        text-align: center; /* Ensure all text within address is centered */
        margin-bottom: 20px;
    }

    .footer-column address strong {
        text-align: center;
    }
    .footer-column address p {
        text-align: center;
    }

    .footer-accreditations {
        grid-column: 1 / 2;
    }
    .footer-contact {
        grid-column: 1 / 2;
    }

    .accreditation-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Specific styles for elements that need to be centered on small screens */
@media (max-width: 768px) {
    .footer-title,
    .footer-accreditations h3,
    .footer-contact h3 {
        text-align: center;
    }

    .social-links,
    .contact-us-list {
        justify-content: center;
        text-align: center;
    }
}










