/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --primary: #44A8C6;
  --primary-dark: #2D90AE;
  --primary-soft: #A8D7E7;

  --ink: #1f2937;
  --ink-soft: #4b5563;

  --bg-main: #f5f9fd;
  --card-bg: #ffffff;
}

/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--ink);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

/* =====================================================
   HEADER (CLEANER & LIGHTER)
===================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 85px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  z-index: 50;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.logo img {
  height: 110px;
}

.logo span {
  text-align: left;
}

.logo-text-small {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* NAV */
.main-nav {
  display: flex;
  gap: 22px;
  font-size: 16px;
}

.main-nav a {
  color: var(--ink-soft);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* =====================================================
   HERO (ELEGANT, NOT AGGRESSIVE)
===================================================== */
.hero {
  min-height: 100vh;
  margin-top: 78px;
  background: url("../images/intro.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* ✅ force left */
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15,23,42,0.75),
    rgba(15,23,42,0.45)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: left;              /* ✅ force left */
}

/* TEXT */
.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #e5e7eb;
  margin-bottom: 18px;
  text-align: left;              /* ✅ explicit */
}

.hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;              /* ✅ explicit */
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e5e7eb;
  max-width: 600px;
  margin-bottom: 34px;
  text-align: left;              /* ✅ explicit */
}

/* ACTIONS */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;   /* ✅ buttons left */
}
.hero-content {
  max-width: 720px;
  margin-left: clamp(24px, 6vw, 120px); /* ← controlled left offset */
  margin-right: auto;
  text-align: left;
}

/* =====================================================
   BUTTONS (SOFTER)
===================================================== */
.btn {
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* =====================================================
   HEADLINES (BALANCED & CENTERED)
===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.section-accent {
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 18px;
  border-radius: 999px;
}

/* =====================================================
   WHY EXPO
===================================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.highlight-card {
  background: var(--card-bg);
  padding: 30px 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* =====================================================
   ABOUT
===================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.3rem;
}

.about-text p {
  max-width: 520px;
}

/* =====================================================
   SECTORS
===================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.sector-card {
  background: var(--card-bg);
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

/* =====================================================
   CLOSING CTA (IMAGE-READY, CLEAN)
===================================================== */
.closing-cta {
  position: relative;
  padding: 110px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
}

.closing-cta .container {
  position: relative;
  z-index: 2;
}

.closing-cta h3 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 22px;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: #1f2937;
  color: #e5e7eb;
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .highlights-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }
}
/* =========================================
   HOME PAGE – EXPLICIT COLOR SECTIONS ONLY
   (NO IMAGE SECTIONS TOUCHED)
   ========================================= */

/* Base page background */
body {
  background-color: #f2f6fb;
}

/* WHY EXPO */
.section.highlights {
  background-color: #e4eef8; /* obvious light blue */
}

/* ABOUT EXPO */
.section.about {
  background-color: #d9e8f5; /* stronger */
}

/* SECTORS (cards section, NOT hero, NOT CTA image) */
.section.sectors {
  background-color: #edf3fa;
}

/* OPTIONAL if used on home */
.profile {
  background-color: #d3e4f4;
}

/* Conference block if on home */
.conference {
  background-color: #dce9f6;
}
/* ================= CLOSING CTA IMAGE BACKGROUND ================= */

.closing-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

/* Make the image behave like a background */
.closing-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay for readability */
.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1;
}

/* Content stays on top */
.closing-cta .container {
  position: relative;
  z-index: 2;
}

/* Text color fix */
.closing-cta h3 {
  color: #ffffff;
}
/* ===============================
   GLOBAL HEADLINE ALIGNMENT FIX
   =============================== */

/* Center headline blocks + their content */
.section-header,
.section-title,
.section-header h2,
.section-header h3,
.section h2,
.section h3 {
  text-align: center;
}

/* Ensure paragraphs under headlines align with them */
.section-header p,
.section-title + p,
.section h2 + p,
.section h3 + p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Force accent/stripe to center */
.section-accent,
.section-header h2::after,
.section-title::after {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ===============================
   SECTOR & HIGHLIGHT CARDS
   PROFESSIONAL EXPO DESIGN
   =============================== */

/* GRID RHYTHM */
.sectors-grid,
.highlights-grid {
  gap: 36px;
}

/* CARD BASE */
.sector-card,
.highlight-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 34px 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* REMOVE ALL DECORATIVE OVERLAYS */
.sector-card::before {
  display: none !important;
}

/* HOVER — QUIET, CONFIDENT */
.sector-card:hover,
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

/* TITLE */
.sector-card h3,
.highlight-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* TEXT */
.sector-card p,
.highlight-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0;
}

/* LINK */
.sector-link {
  margin-top: 18px;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #cbd5f5;
  padding-bottom: 2px;
}

.sector-link:hover {
  color: #020617;
  border-color: #020617;
}

/* ICON — MINIMAL, NOT COLORED */
.sector-icon {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

/* BADGE — SUBTLE */
.sector-badge {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
}
/* ================= GLOBAL LOGO OVERRIDE (FIXED) ================= */

.site-header .logo a {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;              /* REAL close spacing */
  font-size: 30px !important;       /* bigger brand name */
  line-height: 1 !important;        /* stops vertical push */
}

/* Text wrapper */
.site-header .logo a > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.05 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo image — THIS is the missing fix */
.site-header .logo img {
  height: 170px !important;
  width: auto !important;
  display: block !important;
  margin: 0 !important;             /* remove image default spacing */
}

/* Subtitle */
.site-header .logo-text-small {
  margin-top: 2px !important;
  font-size: 0.85rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.16em !important;
}
/* =====================================
   CONTENT IMAGES FRAME (EXCLUDES LOGOS & BG)
===================================== */

/* صور المحتوى فقط */
main img,
.section img,
.content img,
.card img {
  border-radius: 16px !important;
  background: #000000 !important;
  padding: 10px !important;

  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.18),
    0 6px 12px rgba(15, 23, 42, 0.12) !important;

  border: 1px solid rgba(0, 0, 0, 0.06) !important;

  display: block;
}

/* =====================================
   EXCLUSIONS — LOGOS & UI ELEMENTS
===================================== */

.logo img,
.site-header img,
.navbar img,
header img,
footer img {
  all: unset !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
} 
/* ================= EMERGENCY MOBILE FIX ================= */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* HEADER */
  .site-header {
    position: relative !important;
    padding: 12px 16px !important;
  }

  .header-inner {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .logo img {
    max-width: 120px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .logo span {
    display: block !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    margin-top: 6px !important;
  }

  /* HERO */
  .hero,
  .page-hero {
    min-height: auto !important;
    padding: 100px 16px 60px !important;
    text-align: center !important;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.6rem !important;
  }

  .hero p,
  .page-hero p {
    font-size: 0.95rem !important;
  }

  /* SECTIONS */
  section {
    padding: 48px 16px !important;
  }

  /* GRIDS */
  .grid,
  .cards,
  .sectors {
    grid-template-columns: 1fr !important;
  }

  /* IMAGES */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

}
/* FORCE LOGO ALIGNMENT */
.site-header .logo a {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.site-header .logo img {
  height: 75px !important;
  width: auto !important;
  max-height: 100% !important;
}

.site-header .logo a > span {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.1 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

.site-header .logo-text-small {
  margin-top: 2px !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}
