﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Noor";
  src: url("font/NoorBold.ttf") format("ttf"),
    url("font/NoorRegular.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: "Poppins", sans-serif;
  background: #01297021;
  transition: font-family 0.3s ease;
}
:root {
  --light-blue: #0072ff;
  --dark-blue: #022c6c;
  --white: #fff;
  --sky: #26c4ff;
}
body.lang-ar {
  font-family: "Noor", sans-serif; /* Use Arabic font */
  font-size: 1.5rem; /* Reduce slightly if Arabic looks too big */
}
body[dir="rtl"] {
  font-size: 34px; /* ✅ match LTR */
}
body.lang-en {
  font-family: "Poppins", sans-serif; /* or your default Latin font */
  font-size: 1rem;
}

.hero {
  position: relative;
  height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Background Video */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sectionheading {
  color: var(--white);
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin: 0 !important;
}
.sectionParagraph {
  color: var(--white);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: justify;
}
.sectionParagraph :lang(ar) {
  font-size: 1.5rem;
  text-align: justify;
}
.sectionParagraph-sponser {
  text-align: center;
}
.sectionParagraph-sponser :lang(ar) {
  font-size: 1.5rem; /* Adjust Arabic font size if needed */
  text-align: center;
}
/* Dark overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  /* background: linear-gradient(to bottom, #000000, #00000087, #000); */
  background: linear-gradient(to bottom, #a5a5a5, #00000087, #000);
  z-index: 1;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
/* Header */
header {
  position: absolute;
  top: 20px;
  width: 100%;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.headerlogo {
  width: 110px;
}
.headerlogo2 {
  width: 130px;
}
header nav div {
  display: flex;
  gap: 20px;
}

header nav div a {
  text-decoration: none;
  color: var(--light-blue);
  font-size: 1.125rem;
  font-weight: 500;
  transition: transform 0.2s ease-in-out;
}

header nav div a:hover {
  transform: scale(1.05);
}
/* Header Styles */
.header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  flex-direction: row;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 37px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.bar {
  height: 3px;
  width: 100%;
  background: var(--light-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}
.nav-menu a {
  text-decoration: none;
  color: var(--dark-blue);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.3s;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-blue);
  background-color: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
}
body.lang-ar .nav-menu {
    left: 20px;
    right: auto;
}
/* Responsive Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    color: var(--white);
    padding: 10px 0;
    width: 100%;
  }

  /* Hamburger animation */
  .hamburger.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .hamburger.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
  .language-select {
    color: var(--dark-blue);
    font-size: 1rem;
    width: 100%;
  }
}

/* Hero text */
.hero-content {
  z-index: 2;
  color: var(--light-blue);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 600px;
  justify-content: flex-end;
}

.hero-content .hero-title {
  color: var(--light-blue);
  text-align: center;
  font-size: 54px;
  font-style: normal;
  font-weight: 500;
  line-height: 50px; /* 100% */
}
.institute_logo_title {
  font-size: 2rem;
  font-weight: 600;
  color: #000;
  margin: 40px 0px 10px 0px;
  color: var(--sky);
}
.hero-content .hero-subtitle {
  color: var(--sky);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.hero-content .arb-partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0px 0 79px 0;
  flex-wrap: wrap;
}
/* .arb-partners-logos{
  direction: ltr !important;
} */
.hero-content .arb-partners-logos img {
  width: 100px;
  height: 70px;
  object-fit: contain;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .arb-partners-logos img {
    width: 80px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  header nav div {
    flex-direction: column;
    gap: 10px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .arb-partners-logos img {
    width: 70px;
    height: 50px;
  }
  .header img {
    width: 80px;
  }
  .hero-content {
    height: 100vh;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .arb-partners-logos img {
    width: 60px;
    height: 40px;
  }
  .hero {
    height: 100vh;
  }
  .header img {
    width: 70px;
  }
  .overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.51),
      #000000ad,
      rgba(0, 0, 0)
    );
  }
}
.tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 15px;
  direction: ltr;
  max-width: 300px;
  line-height: 1.5;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
/* Tooltip styling */
.partner-tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 999;
  max-width: 300px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.partner-section {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(
      177deg,
      #100f0f 3.59%,
      rgba(17, 17, 17, 0.62) 55.16%,
      rgba(148, 144, 144, 0.49) 96.72%
    );
  color: white;
  padding: 60px 40px;
}

.partner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: auto;
  gap: 40px;
}

.partner-text {
  flex: 1 1 300px;
  max-width: 500px;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 100%;
}

.partner-logos img {
  width: 130px;
  height: 70px;
  padding: 10px;
  background: #cef0ff;
  border-radius: 2px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logos img:hover {
  transform: scale(1.05);
}
/* Fancy tooltip styling */
.partner-logos img[data-tooltip] {
  position: relative;
  cursor: pointer;
}

/* Tooltip container using ::after pseudo-element */
.partner-logos img[data-tooltip]::after {
  content: attr(title);
  position: absolute;
  bottom: 125%; /* Show above image */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  width: max-content;
  max-width: 250px;
  text-align: center;
}

/* Tooltip arrow */
.partner-logos img[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Show tooltip on hover */
.partner-logos img[data-tooltip]:hover::after,
.partner-logos img[data-tooltip]:hover::before {
  opacity: 1;
}

.sponsors-section {
  background: #cef0ff;
  color: black;
  padding: 25px 40px 50px 40px;
}
.sponsors-container {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: start;
  max-width: 1400px;
  margin: auto;
  gap: 40px;
}
.sponsors-text {
  /* flex: 1 1 300px; */
  /* max-width: 400px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 35px;
}

.sponsors-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 100%;
}

.membercity-section {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(
      177deg,
      #100f0f 3.59%,
      rgba(17, 17, 17, 0.62) 55.16%,
      rgba(148, 144, 144, 0.49) 96.72%
    );
  color: white;
  padding: 60px 40px;
}
.membercity-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: auto;
  gap: 40px;
}
.membercity-text {
  flex: 1 1 400px;
  max-width: 400px;
}
@media (max-width: 1208px) {
  .membercity-text {
    max-width: 100%;
  }
  .partner-text {
    max-width: 100%;
  }
}
.membercity-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  max-width: 100%;
}
.membercity-logo-frame {
  width: 106px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.membercity-logos img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.membercity-logos p {
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  text-align: start;
}

.module-section {
  background-color: #cef0ff;
  padding: 60px 30px;
}

.sectionheading {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
}

.module-container {
  max-width: 1400px;
  margin: auto;
}

.module-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.module-card {
  perspective: 1000px;
  cursor: pointer;
  /* width: 308px; */
  height: 120px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.module-card:hover .card-inner {
  transform: rotateY(180deg);
}
.module-icon {
  width: 50px;
  height: 50px;
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  background: linear-gradient(99deg, #222 3.04%, #888 98.28%);
  color: white;
  padding: 20px 10px;
  font-weight: 500;
  text-align: center;
  font-size: 16px;
}
.card-front {
  flex-direction: column;
  gap: 10px;
}
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(
    98deg,
    rgba(201, 40, 47, 0.63) -0.54%,
    #222 91.35%
  );
  font-size: 13px;
  text-align: left;
}
.card-back :lang(ar) {
  text-align: right;
  float: right;
}
.footer-section {
  background-color: #1e1e1e;
  color: var(--white);
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #444;
  padding-bottom: 30px;
}

.footer-left {
  flex: 1;
  min-width: 300px;
  max-width: 475px;
}

.footer-logo {
  width: 130px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-icons img {
  height: 40px;
  object-fit: contain;
  direction: ltr !important;
}

.footer-right {
  min-width: 250px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.footer-right p {
  margin-bottom: 10px;
  font-size: 16px;
}
.footer-right p a {
  text-decoration: none;
  color: var(--light-blue);
  transition: color 0.2s ease-in-out;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 13px;
  color: #ccc;
}

/* responsive */
@media (max-width: 1200px) {
  .partner-logos {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .sponsors-logos {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .membercity-logos {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
@media (max-width: 768px) {
  .partner-logos {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  .partner-logos img {
    width: 100%;
  }
  .sponsors-logos {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  .membercity-logos {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    row-gap: 15px;
  }
  .sponsors-text {
    max-width: 100%;
  }
  .module-card {
    width: 100%;
  }
  .membercity-logo-frame {
    width: 98px;
  }

}

@media (max-width: 500px) {
    .goals-section{
    grid-template-columns: 1fr;
  }
  .partner-logos {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
  }
  .sponsors-logos {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  .membercity-logos {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    row-gap: 15px;
  }
  .membercity-logo-frame {
    width: 98px;
  }
  .module-card {
    width: 100%;
  }
}
.portal-modules-header {
  color: var(--dark-blue);
  padding: 2rem 1rem;
  text-align: center;
}

.portal-modules-header-title {
  margin: 0;
  font-size: 2.5rem;
}

.portal-modules-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.portal-modules-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.portal-modules-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-modules-card-title {
  color: var(--dark-blue);
  margin-top: 0;
  font-size: 1.5rem;
}

.portal-modules-card-description {
  font-size: 1rem;
  line-height: 1.6;
}


.nav-menu a.active {
    color: var(--light-blue); 
    font-weight: bold;
    border-bottom: 2px solid var(--light-blue);
}

body.lang-ar .language-select {
  font-family: "Noor", sans-serif;
  font-size: 1.5rem;
}

.language-select {
  font-family: "Poppins", sans-serif;
}

@media (max-width: 600px) {
  .portal-modules-header-title {
    font-size: 2rem;
  }
  .portal-modules-container {
    padding: 1rem;
  }
  .portal-modules-card {
    padding: 1rem;
  }
}

