:root {
  --gradient: linear-gradient(rgba(81, 96, 154, 0.8), rgba(29, 31, 74, 0.8));
}
:root {
  --primary: rgb(149, 52, 13);
  --secondary: rgb(15, 24, 124);
  --dark: rgb(6, 16, 60);
  --bg-color: #ffffff;
  --hover-bg: #f1f5f9;
  --light: #f8f9fa;
  --shadow: 0 4px 6px 2px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: white;
  font-family: "montserrat";
  overflow-x: hidden;
}
.gradient-text {
  font-family: "Montserrat", sans-serif;
  background-image: linear-gradient(
    90deg,
    rgb(149, 52, 13) 0%,
    rgb(165, 109, 86) 40%,
    rgb(15, 24, 124) 50%,
    rgb(68, 84, 147) 70%,
    rgb(6, 16, 60) 100%
  );
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: white;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}
.nav__logo {
  font-size: 1.25rem;
  font-weight: 600;
  width: 70px;
  height: 70px;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem;
}

.nav__link:hover {
  font-weight: bold;
  color: var(--secondary);
  border-bottom: 2px solid var(--primary);
}

.nav__hamburger {
  display: none;
  color: var(--primary);
  font-size: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
}

@media (max-width: 768px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  .nav__links--active {
    max-height: 1000px;
    padding: 1rem;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .nav__hamburger {
    display: block;
    order: 1;
  }

  .nav__logo {
    font-size: 1.25rem;
    font-weight: 600;
    width: 70px;
    height: 70px;
  }
}
/* Hero Section */
.hero {
  color: #ffffff;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 650px;
  object-fit: cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 15% 10%;
  text-align: center;
}
.hero-content h1 {
  font-size: 40px;
}
/* Sections */
.section {
  padding: 100px 10%;
  position: relative;
}

.section-header {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--secondary);
}

/* Offices Grid */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.office-card {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  border: 2px solid var(--secondary);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}
.office-card h3 {
  color: #0f187c;
}
.office-card:hover {
  transform: translateY(-10px);
}

.office-image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.team-member {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  padding: 20px;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.05);
}
.team-member h3 {
  color: #a56d56;
}
.team-member p {
  color: #a56d56;
}
.member-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--secondary);
}
.map-link {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.map-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.map-link::after {
  content: "📍";
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-link:hover::after {
  opacity: 1;
}
/* Gallery */


.site-footer {
  font-family: "Montserrat";
  background: #95340d;
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: white;
}

.footer-text {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  text-decoration: none;
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #a56d56;
  transform: translateY(-3px);
}

.footer-links li {
  list-style: none; /* Add this line */
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a56d56;
}

.contact-info li {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #cccccc;
}

.contact-info i {
  margin-right: 1rem;
  color: #a56d56;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  color: #cccccc;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0f187c;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .contact-info li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #95340d;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-button:hover {
  background: #822c0a;
  transform: scale(1.1);
}

.whatsapp-icon {
  font-size: 32px;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(149, 52, 13, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}
.footer__links {
  text-decoration: none;
  color: #f8f9fa;
}
.footer__links:hover {
  text-decoration: none;
  color: #a56d56;
}
.card__links {
  text-decoration: none;
  color: #95340d;
}
.card__links:hover {
  text-decoration: none;
  color: #0f187c;
}
 /* Media Grid with Enhanced Creative Styling */
    .media-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 40px;
      padding: 20px;
      justify-items: center;
    }

    .media-item {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
      background: #fff;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      width: 100%;
      max-width: 500px;
    }

    .media-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    }

    .media-content {
      position: relative;
      overflow: hidden;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      height: auto;
      /* Allow height to adjust based on content */
      background-color: #f8f8f8;
    }

    .media-item video {
      width: 100%;
      height: auto;
      object-fit: contain;
      /* Ensures entire video is visible */
      display: block;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
    }

    .media-item img,
    .media-item video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
    }

    .media-item:hover img,
    .media-item:hover video {
      transform: scale(1.08);
      filter: brightness(1.1);
    }

    .media-caption-container {
      padding: 22px;
      background: white;
      border-top: 2px solid var(--primary);
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;
      display: flex;
      flex-direction: column;
      height: auto;
      direction: rtl;
      /* 👈 Add this for Arabic support */
      text-align: right;
      /* 👈 Align text to the right */
      transition: background 0.3s ease;
    }

    .caption-title {
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--secondary);
      margin-bottom: 10px;
      letter-spacing: -0.4px;
      text-transform: capitalize;
      text-align: right;
      /* 👈 Ensure heading is right-aligned */
    }

  .caption-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  padding: 0;
  width: 100%;              /* Ensure it uses full container width */
  max-width: 100%;          /* Prevent unwanted shrinking */
  overflow-y: auto;
  max-height: 120px;
  opacity: 0.95;
  box-sizing: border-box;   /* Include padding/border in width */
  word-wrap: break-word;    /* Prevent overflow of long words */
}

    /* Modern Scrollbar */
    .caption-text::-webkit-scrollbar {
      width: 6px;
    }

    .caption-text::-webkit-scrollbar-track {
      background: #eee;
      border-radius: 5px;
    }

    .caption-text::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 5px;
    }

    .caption-text::-webkit-scrollbar-thumb:hover {
      background: var(--secondary);
    }

    /* Video Badge Style */
    .video-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      background: var(--primary);
      color: white;
      padding: 6px 14px;
      font-size: 0.75rem;
      font-weight: 700;
      border-radius: 20px;
      text-transform: uppercase;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Responsive Tweaks */
    @media (max-width: 768px) {
      .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
        max-width: 100%;
        margin: 0 auto;
      }

      .media-item {
        width: 100%;
        height: auto;
      }

      .media-content {
        height: auto;
      }

      .media-item video {
        height: auto;
        object-fit: contain;
      }

      .media-caption-container {
        padding: 18px;
      }

      .caption-title {
        font-size: 1.1rem;
      }

      .caption-text {
        font-size: 0.9rem;
        max-height: 120px;
        overflow-y: auto;
      }
    }

    @media (max-width: 480px) {
      .media-grid {
        padding: 12px;
        max-width: 100%;
      }

      .media-caption-container {
        padding: 16px;
      }

      .caption-text {
        max-height: 100px;
        font-size: 0.85rem;
      }

      .video-badge {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 4px 10px;
      }
    }