/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: white;
  color: #ffffff;

  position: relative;
  overflow-x: hidden;
}
section {
  scroll-margin-top: 100px;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #032c44; /* Dark blue background */
  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: #00bfff;
  font-family: 'Orbitron', sans-serif;
}
.nav-links {
  list-style: none;
  display: flex; /* Default to flex for desktop */
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00bfff;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: #00bfff;
}

/* Hamburger */
.hamburger {
  display: none; /* Hidden by default on large screens, shown by media query */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}
.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);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Contact Us Section */
#contact-us {
  background-color: #f0f2f5;
  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: #f0f2f5; /* Lighter box background */
  padding: 25px;
  border-radius: 10px;
  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: #f0f2f5; /* Lighter blue on hover */
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.2); /* Lighter blue shadow */
  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;
}
.contact-tittle {
  text-align: center;
}

.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, 150, 255, 0.1); /* Lighter blue shadow */
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 150, 255, 0.3); /* Lighter blue 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-info {
  margin-top: 0;
  padding-top: 0;
  text-align: center;
  color: #333333; /* Darker text */
}

.container {
  max-width: 960px; /* or 900px to match description */
  margin: 80px auto 40px auto; /* top margin to push below navbar, center horizontally */
  padding: 0 20px;
}

#tittle {
  text-align: center;
  font-size: 2.2em;
  padding-top: 20px;

  color: #0a0f1c;
}
.description {
  padding-top: 25px;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
}

/* Styles for language selector */
.language-select {
  position: relative;
  display: inline-block; /* Aligns with other nav items */
}

.language-select button {
  background: none;
  border: none;
  color: #57bef2; /* Match nav link color */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-select button img {
  border-radius: 2px; /* Slightly rounded flag corners */
}

.lang-dropdown {
  list-style: none;
  position: absolute;
  top: 100%; /* Position below the button */
  left: 0;
  background-color: #032c44; /* Match navbar background */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  min-width: 150px;
  display: none; /* Hidden by default */
  z-index: 101; /* Ensure it's above other content */
}

.lang-dropdown li {
  padding: 10px 15px;
  color: #57bef2; /* Match nav link color */
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown li:hover {
  background-color: #0096ff; /* Highlight on hover */
  color: #fff;
}

.lang-dropdown li img {
  border-radius: 2px;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

.partners-section {
  padding: 20px 20px;
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
}

.section-title {
  font-size: 28px;
  margin: 50px 0 20px;
  border-bottom: 4px solid #131f55; /* Your custom underline */
  display: inline-block;
  color: black;

  /* Animation setup */
  opacity: 0;
  transform: translateX(-50px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.section-title.visible {
  opacity: 1;
  transform: translateX(0);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.partner-card {
  background: #99aee1;
  border: 2px solid transparent;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  cursor: pointer;
  padding: 20px 10px;
  border-radius: 10px;
}
.partner-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-card:hover {
  transform: scale(1.05);
  background-color: #131f55;
  border-color: #ffffff44;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.partner-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.partner-card:hover img {
  transform: scale(1.05);
}

.partner-desc {
  display: inline-flex;
  font-size: 16px;
  color: #ffffff;
  padding: 0 10px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.partner-card:hover .partner-desc {
  color: white;
  font-size: 18px;
  font-weight: 200px; /* Typo fix: should be font-weight, not font: weight */
  text-shadow: 20px #dddddd;
}


/* Fade in animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px; /* Adjust padding for smaller screens */
  }

  .alt-section,
  .alt-section.reverse {
    flex-direction: column;
    min-height: unset;
  }
  .alt-section .image-wrapper {
    flex: none;
    height: 300px;
    min-height: unset;
    width: 100%;
    transform: translateX(0);
    opacity: 1;
    transition: none;
    padding: 10px;
  }
  .alt-section .section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .alt-section .image-wrapper .overlay-text {
    padding: 20px;
    text-align: center;
    max-width: 90%;
  }
  .alt-section .image-wrapper .overlay-text h2 {
    font-size: 1.8rem;
  }
  .alt-section .image-wrapper .overlay-text p {
    font-size: 0.9rem;
  }

  .alt-section .content {
    flex: none;
    height: auto;
    width: 100%;
    padding: 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* Hamburger and Navbar for mobile */
  .hamburger {
    display: flex; /* Show hamburger on small screens */
  }

  .nav-links {
    display: none; /* KEY: Hide nav links by default on small screens */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Below navbar height (adjust if navbar height changes) */
    left: 0;
    width: 100%;
    background-color: #032c44;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex; /* KEY: Show nav links when active class is present */
  }
  .nav-links li {
    margin: 10px 0;
  }
  .nav-links a {
    padding: 10px 0; /* Add padding for better touch targets on mobile */
  }
  /* Ensure language selector dropdown is also full width on mobile */
  .language-select {
    width: 100%;
    text-align: center; /* Center the button within its new full width */
    margin-top: 15px; /* Add some space above the language selector in the mobile menu */
  }
  .language-select button {
    justify-content: center; /* Center content of the language button */
  }
  .lang-dropdown {
    position: relative; /* Position dropdown relative to its parent on mobile */
    width: 90%; /* Make dropdown wider on mobile */
    margin: 10px auto 0; /* Center it */
    box-shadow: none; /* Remove box shadow as it's not absolutely positioned */
    text-align: center; /* Center text within the dropdown */
  }

  /* Contact Us Responsive Fixes */
  #contact-us h2 {
    font-size: 28px;
  }
  .contact-box {
    max-width: 100%;
    width: 100%; /* Ensure it takes full width when wrapped */
  }
  .contact-container {
    padding: 0 10px; /* Add some horizontal padding to the container */
  }
}

/* Hide hamburger in large screens */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex !important; /* Ensure nav links are always horizontal on desktop */
  }
  .lang-dropdown {
    position: absolute; /* Reset to absolute for desktop */
    left: 0; /* Reset left position for desktop */
    margin: 0; /* Remove margin for desktop */
  }
}


































/* 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-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: 80px;
    height: auto;
    display: block;
}

/* 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;
    }
}