@import url("https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=DM+Serif+Text:ital@0;1&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Scheherazade+New:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #a51c51;
  --secondary-color: #f8f2f7;
  --header-text-color: #333;
  --footer-bg: #591c3a;
  --gradient: linear-gradient(to right, #a51c51, #df7ca4);
  --placeholder-img: url("https://placehold.co/600x400?text=Hello+World");
  --header-font-en: "DM Serif Text", serif;
  --body-font-en: "Merriweather", serif;
  --header-font-ar: "Amiri", serif;
  --body-font-ar: "Scheherazade New", serif;
  --accent-color-1: #582e82;
  --accent-color-2: #e63569;
}

html[lang="en"] body {
  font-family: var(--body-font-en);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: var(--header-font-en);
}

html[lang="ar"] body {
  font-family: var(--body-font-ar);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-family: var(--header-font-ar);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sticky-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 14px;
}

.sticky-whatsapp img {
  width: 16px;
  height: 16px;
}

.sticky-whatsapp:hover {
  opacity: 0.9;
}

/* utility classes */
.heading {
  color: #582e82;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

.heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15em;
  width: 100%;
  height: 0.2em;
  background: linear-gradient(to left, #a51c51, #df7ca4);
  z-index: -1;
  border-radius: 0.25em;
}

.fs-sh {
  font-size: 1.4rem;
}

.text-center {
  text-align: center;
}

.mb {
  margin-bottom: 2rem;
}

.mb-2x {
  margin-bottom: 4rem;
}

.mx-xs {
  margin: 0rem 0.25rem;
}

.mx {
  margin: 0rem 1rem;
}

#controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#jumbotron {
  padding: 2.5rem 5rem;
  background-image: linear-gradient(
      to right,
      rgba(165, 28, 81, 0.6),
      rgba(223, 124, 164, 0.6)
    ),
    url("./imgs/header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 120vh; /* or whatever height you need */
}

#jumbotron > header {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#jumbo-header {
  padding: 3rem;
}

html[lang="ar"] #navbar a {
  font-size: 1rem;
}

header a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--primary-color);
}

#partners {
  text-align: center;
}

footer {
  background: var(--footer-bg);
  padding: 1rem;
  text-decoration: none;
  font-size: 0.8rem;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#contact-us {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.cu-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#jumbotron > header > a {
  color: #fff;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
}

#navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 40%;
  font-weight: bold;
}

#jumbotron main {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center and size slide content */
.slide-content {
  width: 75%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%; /* optional: ensures vertical centering */
  color: #fff;
}

/* Adjust Swiper container height */
.swiper {
  width: 100%;
  height: 75vh; /* or any height you want */
  position: relative;
}

/* Ensure each slide fills the container */
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.sponsor-swiper, .sponsor-swiper .swiper-slide, .sponsor-swiper .swiper-wrapper {
  height: 25rem;
  padding: 0;
}

/* Style text (optional) */
.slide-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 100%;
}

/* Navigation arrows outside content */
.swiper-button-next,
.swiper-button-prev {
  display: none;
}

/* Force white bullets */
.swiper-pagination-bullet {
  background-color: white !important;
  opacity: 1 !important;
}

/* Active bullet stays white */
.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
}

html[lang="ar"] .slide-content h1 {
  font-size: 2.5rem;
}

html[lang="ar"] .slide-content p {
  font-size: 1.5rem;
}

#slider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  grid-template-rows: 1fr; /* 1 row */
  gap: 3rem;
}

#slider-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

#em-cf {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 0;
  position: relative;
  height: 100vh;
}

/* Left column */
#em-cf > :first-child {
  background-color: #a51c51;
  position: relative;
  overflow: visible; /* allow photo overflow */
  z-index: 1;
}

/* The photo inside left column */
#em-cf > :first-child img {
  position: relative;
  width: 175%; /* wider than container */
  top: 10%;
  left: 25%; /* start at left edge */
  /* Hover effect to shift image out */
  transition: transform 0.3s ease;
  aspect-ratio: 4 / 3;
}

html[lang="ar"] #em-cf > :first-child img {
  right: 25%;
}

#event-management {
  display: flex;
  justify-content: center;
  align-items: center;
}

#event-management .container {
  width: 50%;
}

#emcc-img {
  width: 75%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

.grid-item {
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  height: 30rem;
}

.cell-img {
  width: 100%;
  height: 100%;
}

.cell-img {
  width: 100%;
  height: 100%;
}

.text-cell {
  padding: 2rem;
  font-size: 1.2rem;
  color: #fff;
}

#cell-1 {
  background: var(--accent-color-1);
  font-size: 1rem;
}

#cell-3 {
  background: var(--gradient);
  font-size: 1.75rem;
  text-align: justify;
  padding: 3rem;
}

#cell-5 p {
  color: var(--accent-color-1);
  font-size: 1.75rem;
  text-align: justify;
  padding: 3rem;
}

#cell-5 p > span {
  color: #e6516f;
}

html[lang="ar"] .grid-item h1 {
  font-size: 2.5rem;
}

.highlight {
  position: relative;
  display: inline-block;
  color: white;
  z-index: 1;
}

.highlight::before {
  content: "";
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.5em;
  background: var(--accent-color-2);
  z-index: -1;
  border-radius: 4px;
}

#services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.service-item {
  text-align: center;
  width: 100%;
  height: 100vh;
}

.service-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #a51c51; /* background color */
  color: #fff; /* arrow color */
  font-size: 16px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Position adjustments */
.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Arrow pseudo-elements */
.swiper-button-next::after,
.swiper-button-prev::after {
  color: #fff; /* arrow icon color */
  font-size: 24px;
}

/* Hover effect (optional) */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: translateY(-50%) scale(1.1);
  background: #8f1846; /* slightly darker shade on hover */
}

.full-width {
  width: 100%;
}

#values {
  padding: 5rem;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 25%;
  text-align: center;
}

html[lang="ar"] .value h2 {
  font-size: 2.5rem;
}

html[lang="ar"] .value p {
  font-size: 1.5rem;
}

#gallery {
  padding: 5rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.image-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* forces consistent height across images */
  display: block;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.03); /* subtle zoom on hover */
}

#show-full-gallery {
  border-radius: 1rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 0.5rem 1rem;
  margin: 2rem auto;
  display: block;
  width: 15%;
}

/* Mobile Styles */
#hamburger {
  display: none;
}

@media only screen and (max-width: 600px) {
  /* Your mobile-specific CSS rules here */
  #controls {
    justify-content: space-between;
  }

  #hamburger {
    display: block;
    color: #fff;
    font-size: 1.5rem;
  }

  #jumbotron {
    padding: 0.5rem;
    height: 150vh;
  }

  #navbar {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none; /* Prevent clicks when hidden */
    height: 10rem;
  }

  #navbar ul {
    width: 100%;
    height: 100%;
  }

  #navbar,
  #navbar ul {
    flex-direction: column;
  }

  #navbar img {
    display: none;
  }

  #navbar.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #navbar ul li a {
    padding: 2rem 0rem;
  }

  .swiper {
    height: 75vh;
  }

  .swiper-slide {
    padding: 0rem;
  }

  .slide-content {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
  }

  #slider-logo {
    width: 100%;
  }

  #slider-grid {
    display: none;
  }

  #em-cf {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  #em-cf > :first-child {
    height: auto;
    overflow: hidden;
  }

  #em-cf > :first-child img {
    width: 100%;
    height: auto;
    position: static; /* 👈 Natural flow */
    top: auto;
    left: auto;
    transform: none;
    transition: none; /* 👈 Disable animation */
  }

  #event-management {
    padding: 2rem 1rem;
  }

  #event-management .container {
    width: 100%;
  }
  
  #event-management .container h1 span {
    font-size: 1.1rem !important;
  }

  #emcc-img {
    width: 100%;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  #cell-3 {
    padding: 1rem;
    font-size: 1.5rem;
  }

  #cell-5 p {
    font-size: 1.5rem;
    text-align: justify;
    padding: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  .service-item {
    width: 100%;
    max-width: 22rem;
  }

  #services {
    padding: 1.5rem 1rem;
  }

  #values {
    padding: 2rem 1rem;
  }

  .flex-container {
    flex-direction: column;
    align-items: center;
  }

  .value {
    width: 100%;
    max-width: 22rem;
    margin-bottom: 2.5rem;
  }

  #gallery {
    padding: 3rem 1rem;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .image-grid img {
    aspect-ratio: 1 / 1; /* square images for small screens */
  }

  .hide-on-mobile {
    display: none !important;
  }

  #show-full-gallery {
    width: 50%;
  }

  .sponsor-swiper, .sponsor-swiper .swiper-slide, .sponsor-swiper .swiper-wrapper {
    height: 15rem;
    padding: 0;
  }

  footer, #contact-us {
    flex-direction: column;
    justify-content center;
    align-items: center;
    width: 100%;
  }

  .cu-link {
    margin: 1rem 0;
  }
}
