/* ==================================================
   Event Detail Page – Scoped Styles
   Scope: .event-page
   Purpose: Prevent style leakage across site
================================================== */


/* ==============================
   Event Hero Section
============================== */

.event-page .event-hero {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 48px 24px;
  color: #fff;
}

.event-page .event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.15)
  );
  z-index: 1;
}

.event-page .event-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}


.event-page .event-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.event-page .event-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.event-page .event-status {
  background: rgba(0, 0, 0, 0.4);
}


.event-page .event-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  max-width: 900px;
}

.event-page .event-hero,
.event-hero * {
  color: #fff;
}


.event-page .event-hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
}


/* ==============================
   Hero Meta Panel
============================== */

.event-page .event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  gap: 10px 24px;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  font-size: 14px;
  line-height: 1.7;
  max-width: 820px;
  color: #fff;
}

.event-page .event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  opacity: 0.95;
}


@media (max-width: 768px) {

  .event-page .event-hero {
    padding: 28px 14px;
  }

  .event-page .event-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
    margin-right: 7px;
  }

  .event-page .event-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .event-page .event-meta-group {
    gap: 4px;
  }
  
  .event-page .event-meta-item {
    white-space: normal;
    line-height: 1.6;
  }
  
  .event-page .event-badge {
     margin-right: 8px;
  }


}


.event-page .event-breadcrumb {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.event-page .event-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.event-page .event-breadcrumb a:hover {
  text-decoration: underline;
}



/* ==============================
   Meta Strip – Event Detail Page
============================== */
/* ==============================
   Meta Strip – Executive Layout
============================== */

.event-page .event-meta-strip {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.event-page .meta-strip-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 28px;
}

.event-page .meta-strip-left {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.event-page .meta-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}



.event-page .meta-title,
.event-page .meta-label {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #0b2d4d;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(11,45,77,.12), rgba(11,45,77,.04));
  margin-bottom: 4px;
}


.event-page .meta-content,
.event-page .meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #0b2d4d;
  line-height: 1.8;
}


.event-page .meta-strip-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

.event-page .meta-item {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.event-page .meta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.event-page .meta-action-btn {
  background: #0b2d4d;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.event-page .meta-action-btn.outline {
  background: transparent;
  color: #0b2d4d;
  border: 2px solid #0b2d4d;
}


@media (max-width: 768px) {

  .event-page .meta-strip-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

}


.event-page .taxonomy-group {
  margin-bottom: 14px;
}

/* Hierarchical Taxonomy – Parent Styling */

.event-page .taxonomy-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  color: #0b2d4d;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(11,45,77,.10), rgba(11,45,77,.04));
  margin-bottom: 6px;
  position: relative;
}

/* subtle icon before parent */
.event-page .taxonomy-parent::before {
  content: "◉";
  font-size: 10px;
  color: #0b2d4d;
  opacity: 0.6;
}


.event-page .taxonomy-children {
  list-style: none;
  padding-right: 14px;
  margin: 0;
}

.event-page .taxonomy-children li {
  padding: 4px 0;
  position: relative;
}

.event-page .taxonomy-children li::before {
  content: "–";
  position: absolute;
  right: -12px;
  color: #0b2d4d;
}


.event-page .meta-content,
.event-page .meta-value {
  padding-right: 10px;
}


.event-page .taxonomy-children {
  padding-right: 20px;
}


.event-page .event-meta-strip {
  margin-top: -18px;
  position: relative;
  z-index: 4;
  border-radius: 20px 20px 0 0;
}


.event-page .event-meta-strip {
  animation: fadeUp .6s ease both;
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(12px); }
  to { opacity:1; transform:none; }
}





/* ==============================
   Content Architecture Layout
============================== */

.event-page .event-section {
  padding: 60px 0;
  background: #ffffff;
}

.event-page .event-section:nth-child(even) {
  background: #f8fafc;
}

.event-page .event-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.event-page .event-block {
  background: #ffffff;
  padding: 26px 28px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
  min-height: 180px;
}

.event-page .event-block.full {
  grid-column: span 2;
}

.event-page .section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0b2d4d;
  margin-bottom: 14px;
  position: relative;
}

.event-page .section-title::after {
  content: "";
  width: 36px;
  height: 3px;
  background: #0b2d4d;
  display: block;
  margin-top: 6px;
  border-radius: 3px;
}

.event-page .section-content {
  font-size: 15px;
  line-height: 1.9;
  color: #1f2937;
}


@media (max-width: 768px) {

  .event-page .event-section-inner {
    grid-template-columns: 1fr;
  }

  .event-page .event-block.full {
    grid-column: auto;
  }

}


/* ==============================
   Gallery Grid – Professional UI
============================== */

.event-page .event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.event-page .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.event-page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .5s ease;
}

.event-page .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.event-page .gallery-item:hover img {
  transform: scale(1.08);
}

/* subtle overlay icon */
.event-page .gallery-item::after {
  content: "＋";
  position: absolute;
  inset: 0;
  background: rgba(11,45,77,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  opacity: 0;
  transition: opacity .35s ease;
}

.event-page .gallery-item:hover::after {
  opacity: 1;
}


/* ==============================
   Lightbox Overlay
============================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn .3s ease;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}


/* ==============================
   Video Frame Styling
============================== */

.event-page .event-video-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  background: #000;
}

.event-page .event-video-frame iframe,
.event-page .event-video-frame video {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .event-page .event-video-frame iframe,
  .event-page .event-video-frame video {
    height: 220px;
  }
}

@media (max-width: 768px) {

  .event-page .event-section {
    padding: 36px 0;
  }

  .event-page .event-block {
    padding: 18px 18px;
  }

}

@media (max-width: 768px) {

  .event-page .section-title {
    font-size: 16px;
  }

}


@media (max-width: 768px) {

  .event-page .event-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

}


@media (max-width: 768px) {

  .event-page .event-video-frame iframe,
  .event-page .event-video-frame video {
    height: 200px;
  }

}


/* Video wrapper */
.event-video .video-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 25px rgba(0,0,0,.08);
}

/* iframe responsive */
.event-video iframe,
.event-video video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}

.event-media > section {
  display: flex;
  flex-direction: column;
}




/* Event footer CTA */
.event-footer-cta {
  margin-top: 10px;
  padding: 60px 30px;
  background: linear-gradient(135deg, #0b2545, #163a5f);
  border-radius: 24px;
  color: #fff;
}

.event-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.event-footer-text h3 {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 700;
  color: cadetblue;
}

.event-footer-text p {
  font-size: 16px;
  line-height: 1.9;
  opacity: .95;
  max-width: 720px;
  margin: 0 auto 25px;
}

.event-footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.event-footer-links .footer-link {
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: .25s ease;
  border: 1px solid rgba(255,255,255,.15);
}

.event-footer-links .footer-link:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}



/* ------ صفحات الارشيف / معارض الوزارة / المعارض ---*/

.events-table-page {
  padding: 50px 20px;
  border: 1.5px solid rgba(212,175,55,0.55);
  border-radius: 28px;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #d4af37, #8a6d1f) border-box;
  border: 2px solid transparent;
}


.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
}

.page-header p {
  color: #6b7280;
}

.table-wrapper {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  border: 1px solid rgba(212,175,55,0.25);
}


.events-table {
  width: 100%;
  border-collapse: collapse;
}

.events-table th {
  background: #0a5d6a;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.events-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.events-table tr:hover {
  background: #f8fafc;
}

.btn-view {
  background: #0a5d6a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-جارية { background: #dcfce7; color: #166534; }
.status-قادمة { background: #e0f2fe; color: #075985; }
.status-منتهية { background: #fee2e2; color: #991b1b; }



/* ===== Ministry Exhibitions Page Header ===== */

.events-archive-header {
  background: linear-gradient(135deg, #135b5d, #0d263d);
  color: #fff;
  padding: 60px 25px 45px;
  border-radius: 22px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}

.events-archive-header h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
  color: darkcyan;
}

.events-archive-header p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
}

.breadcrumb-bar {
  margin-bottom: 18px;
  font-size: 13px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255,255,255,.75);
}

.breadcrumb-bar a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.breadcrumb-bar strong {
  color: #fff;
  font-weight: 700;
}


/* ===== Events Archive Footer ===== */

.events-page-footer {
  margin-top: 50px;
  padding: 35px 25px;
  background: #f8fafc;
  border-radius: 22px;
  text-align: center;
}

.events-page-footer p {
  color: #475569;
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  background: #0c6381;
  color: #fff;
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 13px;
  text-decoration: none;
  transition: .25s;
}

.footer-links a:hover {
  background: #248978;
}


@media (max-width: 768px) {
  .events-table-page {
    border: none;
    padding: 30px 12px;
  }

  .events-table-page::before {
    content: '';
    position: absolute;
    top: 120px;
    bottom: 80px;
    left: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(#d4af37,#b8962e);
    opacity: .6;
  }
}


@media (max-width: 768px) {
  .page-header {
    padding: 28px 16px;
    border-radius: 20px;
  }

  .page-header h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .page-header p {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .table-wrapper {
    margin-top: 20px;
  }
}



/* ================= Mobile Responsive Table → Cards ================= */

.desktop-only { display: table; }
.mobile-only { display: none; }

@media (max-width: 768px) {

  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .events-cards {
    display: grid;
    gap: 16px;
  }

  .event-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #f1f1f1;
  }

  .event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .event-index {
    font-weight: 700;
    color: #0b2545;
  }

  .event-title {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    color: #0b2545;
  }

  .event-meta {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
  }

  .btn-view.full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 30px;
  }

}


/* ===== Breadcrumb Glass Effect ===== */

.breadcrumb-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-bottom: 14px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);

  font-size: 13px;
  color: rgba(255,255,255,.9);
}

.breadcrumb-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: .2s ease;
}

.breadcrumb-bar a:hover {
  opacity: .85;
  text-decoration: underline;
}

.breadcrumb-bar span {
  opacity: .5;
}

.breadcrumb-bar strong {
  color: #facc15;
  font-weight: 700;
}


.events-archive-header:after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, #facc15, transparent);
  border-radius: 3px;
}
