:root {
  --primary: #0b5e6b;
  --primary-dark: #083f47;
  --accent: #e8a33d;
  --light: #f6f9fa;
  --text: #22323a;
  --muted: #6b7c85;
  --border: #e2e8ea;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.8;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px
}

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

img {
  max-width: 100%;
  display: block
}

/* =========================
   HEADER
========================= */

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;

  z-index: 1000;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* Main container */

.header-inner {
  min-height: 86px;

  display: flex;
  align-items: center;

  gap: 30px;

  padding: 8px 20px;
}


/* =========================
   LOGO
========================= */

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.brand img {
  width: 105px;
  height: 75px;

  object-fit: contain;

  display: block;

  transition: transform .25s ease;
}

.brand:hover img {
  transform: scale(1.04);
}


/* =========================
   NAVIGATION
========================= */

.main-nav {
  display: flex;
  align-items: center;

  justify-content: center;

  gap: 26px;

  flex: 1;
}

.main-nav a {
  position: relative;

  color: var(--text);

  font-size: .95rem;
  font-weight: 500;

  text-decoration: none;

  padding: 28px 2px 23px;

  white-space: nowrap;

  transition:
    color .2s ease;
}


/* Active underline */

.main-nav a::after {
  content: "";

  position: absolute;

  right: 0;
  left: 0;
  bottom: 15px;

  height: 2px;

  background: var(--accent);

  transform: scaleX(0);

  transform-origin: center;

  transition: transform .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}


/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
  display: flex;
  align-items: center;

  gap: 9px;

  flex-shrink: 0;
}


/* =========================
   SOCIAL ICONS
========================= */

.social-links {
  display: flex;
  align-items: center;

  gap: 4px;

  padding-left: 8px;

  border-left: 1px solid var(--border);
}

.social-links a {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #60767d;

  border-radius: 50%;

  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.social-links a:hover {
  color: var(--primary);
  background: #eef6f7;

  transform: translateY(-2px);
}

.social-links svg {
  width: 17px;
  height: 17px;

  fill: currentColor;
}

.social-links svg rect,
.social-links svg circle {

  stroke-width: 1.7;
}

.social-links svg path+path {
  fill: currentColor;
  stroke: none;
}

.whatsapp-link {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #60767d;

  border-radius: 50%;

  transition: all .2s ease;
}

.whatsapp-link:hover {
  color: #25D366;
  background: #eef8f1;
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 19px !important;
  height: 19px !important;

  display: block;
}

/* =========================
   LANGUAGE
========================= */

.language-btn {
  width: 38px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 8px;

  color: var(--primary-dark);

  font-size: 12px;
  font-weight: 800;

  text-decoration: none;

  transition: .2s ease;
}

.language-btn:hover {
  background: var(--primary-dark);
  color: #fff;

  border-color: var(--primary-dark);
}


/* =========================
   LOGIN ICON
========================= */

.login-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--primary-dark);
  color: #fff;

  text-decoration: none;

  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.login-icon:hover {
  background: var(--primary);

  transform: translateY(-2px);

  box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.login-icon svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================
   MOBILE BUTTON
========================= */

.nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: #fff;

  color: var(--primary-dark);

  font-size: 22px;

  cursor: pointer;
}

@media (max-width: 1050px) {

  .header-inner {
    gap: 15px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: .88rem;
  }

  .social-links {
    display: none;
  }
}


@media (max-width: 850px) {

  .header-inner {
    min-height: 72px;

    justify-content: space-between;
  }

  .brand img {
    width: 90px;
    height: 65px;
  }

  .nav-toggle {
    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: auto;
  }

  .main-nav {
    position: absolute;

    top: 100%;
    right: 15px;
    left: 15px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 10px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 15px;

    border-radius: 8px;

    text-align: right;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: #f1f7f8;
  }

  .header-actions {
    gap: 6px;
  }

  .social-links {
    display: none;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 70px 0;
  text-align: center
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 14px;
  max-width: 900px;
  margin-inline: auto
}

.hero .slogan {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px
}

.hero .meta {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-weight: 500
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #33260a;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  transition: .2s
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2)
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff
}

/* Hero v2 (matches reference design) */
:root {
  --teal: #12b3a1
}

.hero-v2 {
  background:
    linear-gradient(rgba(7, 72, 91, 0.72),
      rgba(7, 72, 91, 0.72)),
    url("/conference-site/uploads/hero/055.jpg") center center / cover no-repeat;

  color: #fff;
  text-align: center;
  padding: 56px 0 60px;
  position: relative;
}

.hero-v2-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px
}

.hero-logo {
  width: 230px;
  height: 195px;
  margin-top: -25px;
  margin-bottom: 10px;
  object-fit: contain;
  display: block;
  padding: 0;
  border-radius: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.hero-logo:hover {
  transform: scale(1.03);
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  max-width: 900px;
  line-height: 1.5
}

.hero-slogan {
  color: #d9e7e8;
  font-size: 1.05rem;
  margin-top: -6px
}

.hero-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px
}

.pill-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .95);
  color: var(--primary-dark);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

.countdown {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center
}

.countdown-box {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(3px);
}

.cd-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--teal)
}

.cd-label {
  font-size: .82rem;
  color: #e4eef0
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px
}

.btn-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: .2s
}

.btn-hero-outline {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: #fff
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, .15)
}

.btn-hero-solid {
  background: var(--teal);
  color: #04332e
}

.btn-hero-solid:hover {
  filter: brightness(1.08);
  transform: translateY(-2px)
}

/* Sections */
section {
  padding: 35px 0
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: center
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px
}

/* Cards grid */
.grid {
  display: grid;
  gap: 22px
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr))
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: .2s
}

.card:hover {
  box-shadow: 0 10px 26px rgba(11, 94, 107, .12);
  transform: translateY(-4px)
}

.card img {
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px
}

.card h4 {
  color: var(--primary-dark);
  margin-bottom: 4px
}

.card p {
  color: var(--muted);
  font-size: .92rem
}

.partner-card img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 0;
  margin: 0
}

.partner-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

/* Timeline / dates */
.timeline {
  display: grid;
  gap: 14px
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px
}

.timeline-item .title {
  font-weight: 700
}

.timeline-item .date {
  color: var(--primary);
  font-weight: 700
}

.badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700
}

.badge.done {
  background: #eee;
  color: #888
}

.badge.upcoming {
  background: #e6f5e9;
  color: #1f8a3b
}

/* Lists (objectives/topics) */
.numbered-list {
  list-style: none;
  counter-reset: num
}

.numbered-list li {
  counter-increment: num;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px
}

.numbered-list li::before {
  content: counter(num);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700
}

/* Committees tabs */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 24px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer
}

.tab-btn.active {
  background: var(--primary);
  color: #fff
}

.tab-panel {
  display: none
}

.tab-panel.active {
  display: block
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border)
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0
}

/* Gallery */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border)
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #e8f1f2;
  padding: 40px 0 0
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 26px
}

.site-footer h4 {
  margin-bottom: 12px;
  color: var(--accent)
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #cfe3e5
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  padding: 16px 0;
  font-size: .9rem;
  color: #bcd
}

/* Responsive */
@media (max-width:820px) {
  .nav-toggle {
    display: block
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border)
  }

  .main-nav.open {
    display: flex
  }

  .auth-buttons {
    order: 1;
    margin-inline-start: auto
  }

  .pill-btn span {
    display: none
  }

  .pill-btn {
    padding: 9px 12px
  }
}

@media (min-width:821px) {
  .header-inner {
    flex-wrap: nowrap
  }
}

.about-section {
  padding: 10px 10px 30px;
}

.about-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.about-heading .section-title {
  margin: 0;
}

.about-line {
  width: 55px;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
}

.about-content {
  max-width: 950px;
  margin: 0 auto;

  background: #fff;

  padding: 28px 35px;

  border-radius: 16px;

  border: 1px solid #e4eaec;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.about-content .section-sub {
  margin: 0;
  max-width: none;

  text-align: center;

  line-height: 2;
  font-size: 17px;
  color: #526b73;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 35px auto 0;
  padding-right: 35px;
}

/* الخط العمودي */
.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 8px;

  width: 2px;
  background: #dbe7ea;
}

/* كل حدث */
.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 25px;

  min-height: 68px;
  margin-bottom: 14px;
  padding: 12px 22px;

  background: #fff;

  border: 1px solid #dfe8eb;
  border-radius: 12px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);

  transition: all 0.25s ease;
}

/* نقطة الـ Timeline */
.timeline-item::before {
  content: "";

  position: absolute;
  right: -34px;
  top: 50%;
  transform: translateY(-50%);

  width: 12px;
  height: 12px;

  background: var(--primary);
  border: 4px solid #fff;

  border-radius: 50%;

  box-shadow: 0 0 0 2px #dbe7ea;
}

/* اسم الحدث */
.timeline-item .title {
  font-weight: 700;
  color: #174b59;
  text-align: right;
}

/* التاريخ */
.timeline-item .date {
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

/* الحالة */
.timeline-item .badge {
  min-width: 55px;
  padding: 6px 12px;

  border-radius: 20px;

  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

/* قادم */
.timeline-item .badge.upcoming {
  background: #e8f7ed;
  color: #18834b;
}

/* انتهى */
.timeline-item .badge.done {
  background: #f1f3f4;
  color: #777;
}

/* Hover */
.timeline-item:hover {
  transform: translateY(-2px);

  border-color: #cbdde1;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

@media (max-width: 700px) {

  .timeline {
    padding-right: 25px;
  }

  .timeline::before {
    right: 5px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;

    padding: 16px 18px;

    text-align: right;
  }

  .timeline-item .title {
    text-align: right;
  }

  .timeline-item .date {
    text-align: right;
    font-size: 14px;
  }

  .timeline-item .badge {
    justify-self: start;
  }

  .timeline-item::before {
    right: -29px;
  }
}

.submission-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}

.submission-card {
  text-align: center;
  background: #fff;

  padding: 40px 35px;

  border: 1px solid #e1eaed;
  border-radius: 18px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.submission-icon {
  width: 65px;
  height: 65px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eef7f8;
  border-radius: 50%;

  font-size: 28px;
}

.submission-card h2 {
  margin: 0 0 15px;
  color: var(--primary-dark);
  font-size: 25px;
}

.submission-card p {
  max-width: 600px;
  margin: 0 auto 25px;

  color: #61757b;
  line-height: 1.9;
}

.submission-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 30px;

  background: var(--primary);
  color: #fff;

  border-radius: 10px;

  text-decoration: none;
  font-weight: 700;

  transition: 0.25s ease;
}

.submission-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.submission-contact {
  margin-top: 25px;
  padding-top: 20px;

  border-top: 1px solid #edf1f2;

  color: #718287;
  font-size: 14px;
}

.submission-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-right: 5px;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  background: linear-gradient(135deg,
      var(--primary-dark),
      var(--primary));

  color: #fff;
  text-align: center;

}

.contact-hero h1 {
  margin: 0 0 10px;

  font-size: 2rem;
  font-weight: 900;
}

.contact-hero p {
  margin: 0;

  opacity: .9;
  font-size: 1rem;
}


/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  padding: 55px 20px 45px;
}

.contact-grid {
  max-width: 1000px;
  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}


/* Contact Card */

.contact-card {
  position: relative;

  display: flex;
  align-items: center;

  gap: 18px;

  min-height: 90px;

  padding: 18px 22px;

  background: #fff;

  border: 1px solid #e2eaed;

  border-radius: 14px;

  text-decoration: none;

  color: var(--text);

  transition: all .25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);

  border-color: #cbdde1;

  box-shadow: 0 10px 25px rgba(0, 0, 0, .07);
}


/* Icon */

.contact-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eef7f8;

  color: var(--primary);

  border-radius: 12px;
}

.contact-icon svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Text */

.contact-card h3 {
  margin: 0 0 5px;

  color: var(--primary-dark);

  font-size: 16px;
}

.contact-card p {
  margin: 0;

  color: #718187;

  font-size: 14px;

  line-height: 1.6;
}


/* Association */

.association-card {
  grid-column: 1 / -1;

  max-width: 490px;

  width: 100%;

  margin: 0 auto;
}

.external-arrow {
  position: absolute;

  left: 20px;

  font-size: 20px;

  color: var(--primary);
}


/* =========================
   SOCIAL
========================= */

.social-section {
  text-align: center;

  margin-top: 45px;
}

.social-section h2 {
  margin: 0 0 8px;

  color: var(--primary-dark);

  font-size: 22px;
}

.social-section p {
  margin: 0 0 20px;

  color: #718187;

  font-size: 14px;
}

.contact-socials {
  display: flex;

  justify-content: center;

  gap: 10px;
}

.contact-socials a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #60767d;

  background: #fff;

  border: 1px solid #dfe8eb;

  transition: .25s ease;
}

.contact-socials a:hover {
  color: var(--primary);

  transform: translateY(-3px);

  box-shadow: 0 7px 18px rgba(0, 0, 0, .08);
}

.contact-socials svg {
  width: 18px;
  height: 18px;
}

.contact-socials svg path {
  fill: currentColor;
}

.contact-socials svg rect,
.contact-socials svg circle {
  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;
}


/* =========================
   MAP
========================= */

.map-section {
  background: #fff;

  padding: 50px 20px 70px;
}

.map-header {
  text-align: center;

  margin-bottom: 25px;
}

.map-header h2 {
  margin: 0 0 7px;

  color: var(--primary-dark);

  font-size: 24px;
}

.map-header p {
  margin: 0;

  color: #718187;
}

.map-wrap {
  max-width: 1100px;

  height: 420px;

  margin: 0 auto;

  overflow: hidden;

  border-radius: 18px;

  border: 1px solid #dfe8eb;

  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;

  border: 0;
  display: block;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .association-card {
    grid-column: auto;
  }

  .contact-hero {
    padding: 40px 20px;
  }

  .contact-hero h1 {
    font-size: 1.7rem;
  }

  .map-wrap {
    height: 320px;
  }
}