/* ============================================================
   Expo971 Theme – Modern Coastal Edition (Sea + Sand)
   ============================================================ */

:root {
  /* Clean, modern sand-sea harmony */
  --bg: linear-gradient(180deg, #f5f7fa 0%, #eaf2f4 100%);
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #5a5a5a;
  --accent-1: #0077b6; /* deep sea blue */
  --accent-2: #0096c7; /* lighter aqua */
  --accent-3: #caf0f8; /* pale sky tint */
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--bg);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.7;
}

/* ============================================================
   Arabic Font
   ============================================================ */
@font-face { font-family:"Dubai"; src: local("Dubai"); font-weight:400; unicode-range:U+0600-06FF; }
@font-face { font-family:"Dubai Bold"; src: local("Dubai Bold"); font-weight:700; unicode-range:U+0600-06FF; }
[dir="rtl"] body {
  font-family:"Dubai","Cairo","Amiri","Noto Naskh Arabic","Poppins",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}

/* ============================================================
   LINKS & CONTAINER
   ============================================================ */
a { color: inherit; text-decoration: none }
.container { max-width: 1200px; margin: auto; padding: 0 20px }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-grad {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  box-shadow: 0 4px 14px rgba(0,119,182,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,119,182,0.35);
  opacity: 0.95;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
}
.brand-logo { display: flex; align-items: center; gap: 10px; }
.site-logo { height: 55px; width: auto; transition: transform 0.3s ease; }
.site-logo:hover { transform: scale(1.05); }

.menu {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-weight: 700; justify-content: center; flex-grow: 1;
}
.menu a { padding: 8px 12px; border-radius: 12px; }
.menu a.active, .menu a:hover {
  background: rgba(0,119,182,0.08);
  color: var(--accent-1);
}
.lang-switch { display: flex; gap: 8px; flex-shrink: 0 }
.lang-switch .btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 80px 0 50px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(207,226,232,0.35));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 80px;
}

.hero .card img {
  width: 100%;
  max-width: 800px;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.hero .card img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.kicker {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-1);
}
h1 {
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.05;
  margin: 8px 0 10px;
  font-family: "Playfair Display","Times New Roman",serif;
  color: #1b3a4b;
  letter-spacing: -0.02em;
}
.section h2 {
  font-family: "Playfair Display","Times New Roman",serif;
  color: #1b3a4b;
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 62ch;
}

/* ============================================================
   CARDS & CONTENT
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.section { padding: 64px 0 }
.section:nth-of-type(odd) { background: rgba(255,255,255,0.95); }
.section:nth-of-type(even) { background: rgba(245,249,251,0.9); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 45px;
  border-top: 1px solid var(--border);
  background: #f1f5f7;
  color: #3a3a3a;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
.footer-logo {
  height: 55px; width: auto; opacity: 0.9; transition: opacity 0.3s ease;
}
.footer-logo:hover { opacity: 1; }
.footer-social {
  font-weight: 600;
  color: #3a3a3a;
  margin-top: 0.4rem;
  font-size: 1rem;
}
.footer-social a {
  color: var(--accent-1);
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
}
.footer-social a:hover { color: var(--accent-2); transform: scale(1.15); }
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 1.4rem;
  max-width: 700px;
  line-height: 1.7;
}
.footer-menu a {
  font-size: 1rem;
  color: #2c3e50;
  font-weight: 600;
}
.footer-menu a:hover { text-decoration: underline; }

/* ============================================================
   UTILITIES & ORNAMENTS
   ============================================================ */
.small { font-size: clamp(.9rem, 1.8vw, 1rem); color: #5c5c5c; }
img.responsive {
  width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background-color: #fff;
}
.section, .hero, .card { position: relative; }

/* ============================================================
   SPONSOR LOGO SECTION
   ============================================================ */
.sponsor-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 40px 0;
}
.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px; height: 160px;
}
.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.sponsor-logo {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sponsor-logo:hover { transform: scale(1.05); opacity: 1; }

/* ============================================================
   GRAND PARTNER SHOWCASE – Rewaq / Expo971 / MOC
   ============================================================ */
.partners.grand {
  background: linear-gradient(180deg, #eaf4f7 0%, #ffffff 100%);
  padding: 90px 0;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}
.partners-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 140px;
  flex-wrap: wrap;
}
.partner-logo {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.partner-logo img {
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.12));
  transition: transform 0.45s ease, filter 0.45s ease;
}
.partner-logo.expo img {
  max-width: 440px;
  transform: scale(1.05);
  filter: drop-shadow(0 10px 28px rgba(0,119,182,0.4));
}
.partner-logo:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 28px rgba(0,119,182,0.25));
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.partner-logo img { animation: floatUp 1.6s ease forwards; }

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 1200px) {
  .partners-inner { gap: 100px; }
  .partner-logo img { max-width: 250px; }
  .partner-logo.expo img { max-width: 320px; }
}
@media (max-width: 768px) {
  .hero {
    padding: 50px 0 40px;
    text-align: center;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .hero .card img {
    width: 92%;
    max-width: 500px;
  }
  .partners.grand { padding: 70px 0 60px; }
  .partners-inner { flex-direction: column; gap: 50px; }
  .partner-logo img { max-width: 200px; }
  .partner-logo.expo img { max-width: 280px; }
  .footer { padding: 48px 0 32px; }
  .footer-inner { gap: 16px; }
}
@media (max-width: 480px) {
  .partners.grand { padding: 60px 0; }
  .partner-logo img { max-width: 170px; }
  .partner-logo.expo img { max-width: 240px; }
}
/* Accent Link – matches the modern sea-blue aesthetic */
.accent-link {
  display: inline-block;
  color: var(--accent-1);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

/* elegant hover effect with underline animation */
.accent-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}

.accent-link:hover {
  color: var(--accent-2);
}

.accent-link:hover::after {
  width: 100%;
}
/* Accent link – clean, modern underline */
.accent-link {
  color: var(--accent-1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}
.accent-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}
.accent-link:hover {
  color: var(--accent-2);
}
.accent-link:hover::after {
  width: 100%;
}

/* Accent button – modern blue gradient */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  box-shadow: 0 6px 18px rgba(0,119,182,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,119,182,0.35);
}
/* Remove white box behind the Expo971 middle logo */
.partner-logo.expo {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.partner-logo.expo img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 28px rgba(0,119,182,0.4)); /* keep the nice blue glow */
}
