/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fb;
  color: #111827;
  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;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.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;
  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;
  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);
}

/* LANGUAGE SELECTOR */
.language-select {
  position: relative;
  display: inline-block;
}

.language-select button {
  background: none;
  border: none;
  color: #57bef2;
  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;
}

.lang-dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #032c44;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  min-width: 150px;
  display: none;
  z-index: 101;
}

.lang-dropdown li {
  padding: 10px 15px;
  color: #57bef2;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown li:hover {
  background-color: #0096ff;
  color: #fff;
}

.lang-dropdown li img {
  border-radius: 2px;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

/* MAIN CONTAINER */
.container {
  max-width: 1200px;
  margin: 90px auto 40px auto;
  padding: 0 20px 40px 20px;
}

/* PAGE TITLE + DESCRIPTION */
#tittle {
  text-align: center;
  padding-top: 10px;
}

#tittle h1 {
  font-size: 40px;
  font-weight: 700;
  color: #0b1530;
}

.description {
  padding-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: justify;
  color: #374151;
}

/* PARTNERS SECTION */
.partners-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section title with underline + animation */
.section-title {
  font-size: 24px;
  margin: 40px 0 20px;
  border-bottom: 4px solid #131f55;
  display: inline-block;
  color: #0b1530;
  opacity: 0;
  transform: translateX(-40px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.section-title.visible {
  opacity: 1;
  transform: translateX(0);
}

/* GRID */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

/* CARD – similar to reference */
.partner-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 18px;
  border: 1px solid rgba(15, 35, 52, 0.08);
  box-shadow: 0 10px 25px rgba(15, 35, 52, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.partner-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.16);
  border-color: rgba(15, 35, 52, 0.18);
  background-color: #ffffff;
}

/* Logo container inside card (light box like ref) */
.partner-logo {
  width: 100%;
  background: #f5f7fb;
  border-radius: 14px;
  padding: 18px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 70px;
  width: 100%;
  object-fit: contain;
  display: block;
}

/* Name + description */
.partner-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.partner-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  padding: 0 4px;
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    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;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .language-select {
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }

  .language-select button {
    justify-content: center;
  }

  .lang-dropdown {
    position: relative;
    width: 90%;
    margin: 10px auto 0;
    box-shadow: none;
    text-align: center;
  }

  .container {
    margin-top: 80px;
  }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex !important;
  }

  .lang-dropdown {
    position: absolute;
    left: 0;
    margin: 0;
  }
}

/* ===== FOOTER (unchanged from your version) ===== */

.site-footer {
  background: #0f355a;
  color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 10px;
  box-sizing: border-box;
}

.footer-addresses-wrapper {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer-title {
  grid-column: 1 / 3;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-column address {
  margin: 0;
  padding: 0;
  font-style: normal;
  display: block;
  text-align: left;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.footer-column address strong {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  box-sizing: border-box;
  white-space: normal;
}

.footer-column address p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  text-align: left;
}

.footer-column address p:not(:last-child) {
  margin-bottom: 5px;
}

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;
}

.footer-accreditations {
  grid-column: 3 / 4;
  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;
}

.footer-contact {
  grid-column: 4 / 5;
  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 {
  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;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-addresses-wrapper {
    grid-column: 1 / 3;
    grid-template-columns: 1fr 1fr;
  }

  .footer-accreditations {
    grid-column: 1 / 2;
  }

  .footer-contact {
    grid-column: 2 / 3;
  }

  .footer-column address {
    text-align: left;
  }

  .footer-column address strong,
  .footer-column address p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-addresses-wrapper {
    grid-column: 1 / 2;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
  }

  .footer-addresses-wrapper .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-column address {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-column address strong,
  .footer-column address p {
    text-align: center;
  }

  .footer-accreditations,
  .footer-contact {
    grid-column: 1 / 2;
  }

  .accreditation-images {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-title,
  .footer-accreditations h3,
  .footer-contact h3 {
    text-align: center;
  }

  .social-links,
  .contact-us-list {
    justify-content: center;
    text-align: center;
  }
}
