/* ===== BASE & RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f8fcff;
  color: #10283d;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  background: #f8fcff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid #d8edf8;
  border-top-color: #58bde7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.navbar.scrolled {
  background: rgba(248, 252, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 35px rgba(18, 70, 100, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: linear-gradient(135deg, #8ad8f5, #319bc9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(89, 188, 231, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-mark:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(89, 188, 231, 0.35);
}
.brand strong {
  display: block;
  font-size: 14px;
}
.brand small {
  display: block;
  font-size: 9px;
  color: #7290a4;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
}
nav a {
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #249bc9;
  transition: width 0.3s ease;
}
nav a:hover {
  color: #249bc9;
}
nav a:hover::after {
  width: 100%;
}
.nav-join {
  padding: 10px 17px;
  border-radius: 30px;
  background: #48add6;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(72, 173, 214, 0.3);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-join:hover {
  background: #3a9cc4;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(72, 173, 214, 0.4);
}
.nav-join::after {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 27px;
  color: #15364e;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.menu-toggle:hover {
  transform: rotate(90deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 150px 8% 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 7%;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, #dff5ff 0%, transparent 35%),
    linear-gradient(135deg, #fafdff, #eef9fe);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 189, 231, 0.06), transparent 70%);
  top: -10%;
  right: -10%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: #48a9d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.2;
  margin: 18px 0;
}
.hero h1 span,
.section-heading span,
h2 span {
  color: #48afd8;
  background: linear-gradient(135deg, #48afd8, #2b8bb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  max-width: 590px;
  color: #587386;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover {
  transform: translateY(-4px);
}
.primary {
  background: #43abd5;
  color: #fff;
  box-shadow: 0 14px 30px rgba(67, 171, 213, 0.3);
}
.primary:hover {
  background: #3a9cc4;
  box-shadow: 0 20px 40px rgba(67, 171, 213, 0.4);
}
.ghost,
.outline-btn {
  border-color: #b9dbe9;
  color: #2e789a;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.ghost:hover,
.outline-btn:hover {
  background: #fff;
  border-color: #48add6;
  box-shadow: 0 10px 25px rgba(72, 173, 214, 0.15);
}

.hero-visual {
  position: relative;
  height: 550px;
  display: grid;
  place-items: center;
}
.hero-card {
  width: min(430px, 80%);
  height: 480px;
  border-radius: 35px;
  transform: rotate(3deg);
  box-shadow: 0 30px 70px rgba(29, 110, 145, 0.17);
  overflow: hidden;
  background: #dff4fc;
  transition: transform 0.5s ease;
}
.hero-card:hover {
  transform: rotate(0deg) scale(1.02);
}
.photo-placeholder {
  display: grid;
  place-items: center;
  color: #6d9bb0;
  background: linear-gradient(135deg, #dff5fd, #edf9fc);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
}
.main-photo {
  background: linear-gradient(135deg, #bfe9f9, #eaf9fd);
}

.floating-card {
  position: absolute;
  left: 0;
  bottom: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 22px 28px;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(26, 105, 139, 0.15);
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.floating-card b {
  font-size: 27px;
  color: #4ab1d9;
}
.floating-card span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.orbit-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #70c9e9;
  right: 7%;
  top: 17%;
  box-shadow: 0 0 0 12px rgba(112, 201, 233, 0.12), 0 0 0 25px rgba(112, 201, 233, 0.06);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #7692a3;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}
.scroll-hint span {
  font-size: 18px;
  display: block;
  text-align: center;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 120px 8%;
}

/* ===== INTRO ===== */
.intro {
  background: #fff;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  margin-top: 45px;
}
.intro h2,
.section-heading h2,
.section-top h2,
.numbers h2,
.contact h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.35;
}
.lead {
  font-size: 19px;
  color: #5b7587;
  max-width: 600px;
  margin-top: 20px;
}
.beliefs {
  display: grid;
  gap: 0;
}
.belief {
  padding: 22px 0;
  border-bottom: 1px solid #dcebf2;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 5px 15px;
  transition: background 0.3s ease, padding-left 0.3s ease;
  border-radius: 8px;
  padding-left: 8px;
}
.belief:hover {
  background: rgba(72, 173, 214, 0.04);
  padding-left: 18px;
}
.belief span {
  grid-row: span 2;
  color: #63badb;
  font-weight: 800;
  font-size: 24px;
}
.belief h3 {
  font-size: 19px;
}
.belief p {
  font-size: 12px;
  color: #708899;
}

/* ===== VALUES ===== */
.values {
  background: #edf8fd;
}
.section-heading {
  margin: 30px 0 50px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-card {
  min-height: 290px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid #e0f0f6;
  border-radius: 25px;
  padding: 28px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #48add6, #8ad8f5);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.value-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 25px 50px rgba(40, 125, 158, 0.12);
  background: #fff;
}
.value-card:hover::before {
  opacity: 1;
}
.value-card .icon {
  font-size: 28px;
  color: #46afd8;
  margin-bottom: 45px;
}
.value-card h3 {
  font-size: 21px;
}
.value-card p {
  color: #6e8594;
  font-size: 12px;
  margin-top: 10px;
}
.value-card b {
  position: absolute;
  bottom: 20px;
  left: 25px;
  color: #a8cedd;
  font-size: 12px;
  font-weight: 400;
}

/* ===== VISUAL STORY ===== */
.visual-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8%;
  align-items: center;
}
.story-image {
  height: 600px;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(29, 110, 145, 0.12);
}
.story-image .photo-placeholder {
  height: 100%;
}
.story-copy h2 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.25;
  margin: 20px 0;
}
.story-copy p {
  color: #637d8e;
  max-width: 520px;
}
.text-link {
  display: inline-block;
  margin-top: 28px;
  color: #319ac6;
  font-weight: 800;
  font-size: 13px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.text-link:hover {
  color: #1f7aa3;
  transform: translateX(4px);
}

/* ===== EVENTS ===== */
.events {
  background: #fff;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 20px 0 45px;
}
.section-top p {
  color: #78909e;
  font-size: 13px;
}
.outline-btn {
  padding: 10px 17px;
  border-radius: 12px;
  font-size: 12px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.event-card {
  border: 1px solid #deedf3;
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.event-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 25px 50px rgba(40, 125, 158, 0.08);
}
.event-img {
  height: 250px;
  background: linear-gradient(135deg, #dff5fd, #edf9fc);
  display: grid;
  place-items: center;
  color: #6d9bb0;
  font-weight: 600;
}
.event-body {
  padding: 22px;
}
.event-body small {
  color: #4aaed6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.event-body h3 {
  font-size: 19px;
  margin: 7px 0;
}
.event-body p {
  font-size: 12px;
  color: #758b98;
}

/* ===== NUMBERS ===== */
.numbers {
  background: #12344b;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.numbers::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(72, 173, 214, 0.04);
  pointer-events: none;
}
.numbers .section-label {
  color: #74cceb;
}
.numbers > p {
  color: #aac1cd;
  font-size: 12px;
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 65px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.stats div {
  padding: 35px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}
.stats div:last-child {
  border-left: 0;
}
.stats div:hover {
  background: rgba(255, 255, 255, 0.03);
}
.stats strong {
  display: block;
  font-size: 60px;
  line-height: 1;
  color: #70cbe9;
  font-weight: 700;
}
.stats span {
  color: #b8ccd5;
  font-size: 13px;
}

/* ===== JOURNEY / TIMELINE ===== */
.journey {
  background: #f7fcfe;
}
.timeline {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.timeline-item {
  display: flex;
  gap: 18px;
  padding: 25px;
  border: 1px solid #dcecf3;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(40, 125, 158, 0.08);
  background: #fff;
}
.timeline-item > b {
  color: #54b7dc;
  font-size: 22px;
}
.timeline-item h3 {
  font-size: 18px;
}
.timeline-item p {
  font-size: 12px;
  color: #738a99;
}

/* ===== GALLERY ===== */
.gallery {
  background: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 15px;
  margin-top: 50px;
}
.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
  background: linear-gradient(135deg, #dff5fd, #edf9fc);
  display: grid;
  place-items: center;
  color: #6d9bb0;
  font-weight: 600;
}
.gallery-item:hover {
  transform: scale(0.98);
  filter: brightness(0.96);
}
.gallery-item.large {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}

/* ===== QUOTE ===== */
.quote-section {
  text-align: center;
  background: linear-gradient(135deg, #dff5fd, #f9fdff);
  padding-top: 100px;
  padding-bottom: 100px;
}
.quote-mark {
  font-size: 90px;
  color: #7bcde9;
  height: 75px;
  line-height: 1;
}
.quote-section h2 {
  font-size: clamp(36px, 5vw, 65px);
  line-height: 1.35;
  margin: 15px 0 30px;
}

/* ===== JOIN ===== */
.join {
  background: #fff;
}
.join-card {
  background: #eaf8fd;
  border-radius: 35px;
  padding: 55px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  box-shadow: 0 20px 50px rgba(40, 125, 158, 0.06);
}
.join-copy h2 {
  font-size: clamp(35px, 4.5vw, 58px);
  line-height: 1.3;
  margin: 20px 0;
}
.join-copy p {
  color: #607c8d;
  font-size: 13px;
}
.join form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(49, 127, 156, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.join label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 13px;
  color: #1f4a62;
}
.join label small {
  font-weight: 400;
  color: #78909e;
}
.join input,
.join textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid #d8e9f0;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  font-size: 12px;
  outline: 0;
  background: #fbfeff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.join input:focus,
.join textarea:focus {
  border-color: #54b7dc;
  box-shadow: 0 0 0 3px rgba(84, 183, 220, 0.12);
}
.join textarea {
  min-height: 85px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.full {
  width: 100%;
}
.form-note {
  font-size: 9px !important;
  color: #8aa0ad !important;
  margin-top: 10px;
  text-align: center;
}

/* ===== CONTACT / SOCIALS ===== */
.contact {
  background: #102f43;
  color: #fff;
}
.contact .section-label {
  color: #70c9e9;
}
.contact h2 {
  margin: 20px 0 50px;
}
.socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.socials a {
  padding: 23px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e8ef;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}
.socials a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #71c9e9;
  padding-left: 15px;
}
.socials a:nth-child(3n) {
  border-left: 0;
}

/* ===== FOOTER ===== */
footer {
  padding: 35px 8%;
  background: #0b2637;
  color: #aac0ca;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
footer strong,
footer span {
  display: block;
}
footer strong {
  color: #fff;
  font-size: 15px;
}
footer p {
  max-width: 350px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 29, 42, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox button {
  position: absolute;
  top: 25px;
  left: 30px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lightbox button:hover {
  transform: rotate(90deg);
}
.lightbox #lightboxContent {
  width: min(900px, 90vw);
  height: min(650px, 75vh);
  border-radius: 25px;
  overflow: hidden;
  background: #dff5fd;
}
.lightbox p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  font-size: 13px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay {
  transition-delay: 0.2s;
}
.hero-content.reveal {
  transform: translateX(35px);
}
.hero-content.reveal.visible {
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
  nav {
    gap: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 430px;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .visual-story,
  .intro-grid,
  .join-card {
    grid-template-columns: 1fr;
  }
  .event-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .join-card {
    gap: 35px;
  }
}

@media (max-width: 720px) {
  .navbar {
    height: 70px;
    padding: 0 5%;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    position: absolute;
    top: 70px;
    right: 5%;
    left: 5%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(18, 59, 81, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 8px 12px;
    border-radius: 8px;
  }
  nav a::after {
    display: none;
  }
  nav a:hover {
    background: rgba(72, 173, 214, 0.06);
  }
  .brand strong {
    font-size: 12px;
  }
  .hero {
    padding: 120px 6% 70px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-text {
    font-size: 14px;
  }
  .hero-visual {
    height: 390px;
  }
  .hero-card {
    height: 340px;
  }
  .floating-card {
    left: 0;
    bottom: 20px;
    padding: 16px 20px;
  }
  .section {
    padding: 85px 6%;
  }
  .value-grid,
  .event-grid,
  .timeline,
  .socials {
    grid-template-columns: 1fr;
  }
  .section-top {
    align-items: start;
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item.large,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }
  .join-card {
    padding: 28px 18px;
    border-radius: 25px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats strong {
    font-size: 45px;
  }
  .stats div {
    padding: 25px 10px;
  }
  .story-image {
    height: 420px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  
  /* تنسيق قسم القيم (VALUES) الجديد - مُعدل ليصبح أصغر */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    /* إعدادات الخلفية الأساسية */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* إعدادات شكل المربع (تم تقليل الطول والـ padding) */
    padding: 30px; /* كان 40px */
    border-radius: 20px;
    min-height: 320px; /* كان 400px - ده اللي صغر المربع */
    
    /* ترتيب العناصر داخل المربع */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* الكلام تحت */
    
    /* تأثيرات بصرية */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* تنسيق النص الافتراضي */
    color: white;
    text-align: right;
    
    /* تأثير تغبيش (Blur) خفيف جداً على الصورة نفسها لزيادة وضوح النص */
    /*backdrop-filter: blur(2px); /* شيل العلامة من أول السطر لو عايز تفعله */
    
    /* إضافة طبقة لونية داكنة فوق الصورة لضمان قراءة النص */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* إضافة الطبقة الداكنة (Overlay) باستخدام pseudo-element */
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* تدرج لوني من شفاف إلى أسود داكن لضمان قراءة النص */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
    z-index: -1; /* جعل الطبقة خلف المحتوى */
}

/* تأثير عند مرور الماوس */
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* تنسيق العناصر الداخلية داخل المربع */
.value-card .icon {
    font-size: 2.5rem; /* كان 3rem */
    margin-bottom: 10px; /* كان 15px */
    opacity: 0.9;
}

.value-card h3 {
    font-size: 1.6rem; /* كان 1.8rem */
    margin-bottom: 8px; /* كان 10px */
    font-weight: 700;
    line-height: 1.3;
}

.value-card p {
    font-size: 0.95rem; /* كان 1rem */
    margin-bottom: 15px; /* كان 20px */
    line-height: 1.5; /* كان 1.6 */
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* تحديد عدد أسطر الوصف */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.value-card b {
    font-size: 0.85rem; /* كان 0.9rem */
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.navbar .brand-mark {
  width: 40px;   /* حدد العرض المناسب للصورة */
  height: 40px;  /* حدد الارتفاع المناسب للصورة */
  object-fit: contain;
}
.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

}