.conferences-page {
  position: relative;
  z-index: 2;
  color: #f8fafc;
}
.conferences-shell {
  width: min(1480px, calc(100% - 48px));
  margin: auto;
}
.conferences-hero {
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background:         radial-gradient(             circle at 75% 20%,             rgba(236, 72, 153, 0.12),             transparent 36%         ),         linear-gradient(             180deg,             rgba(10, 8, 29, 0.9),             rgba(4, 4, 15, 0.98)         );
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}
.conferences-eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: 999px;
  color: #f9a8d4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.conferences-hero h1 {
  margin: 30px 0 26px;
  font-size: clamp(68px, 9vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}
.conferences-hero p {
  max-width: 880px;
  color: #aab2c5;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.55;
}
.conference-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.conference-stats span {
  padding: 14px 18px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #98a2b8;
}
.conference-stats strong {
  margin-inline-end: 7px;
  color: #ffffff;
  font-size: 20px;
}
.conference-browser {
  padding-bottom: 90px;
}
.conference-toolbar {
  position: sticky;
  top: 72px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 14px;
  margin: 40px 0 70px;
  padding: 14px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 22px;
  background: rgba(5, 5, 18, 0.94);
  backdrop-filter: blur(18px);
}
.conference-search {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}
.conference-search span {
  color: #a78bfa;
  font-size: 22px;
}
.conference-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
}
.conference-filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
}
.conference-filters button, .conference-actions a, .conference-actions button {
  padding: 12px 15px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb6c8;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.conference-filters button.is-active, .conference-filters button:hover, .conference-actions a:hover, .conference-actions button:hover {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  color: #ffffff;
}
.conference-timeline {
  position: relative;
}
.conference-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 150px;
  width: 1px;
  background: linear-gradient(         #8b5cf6,         #ec4899,         transparent     );
}
.conference-card {
  position: relative;
  display: grid;
  grid-template-columns: 125px 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-bottom: 44px;
}
.conference-date {
  padding-top: 27px;
  text-align: right;
}
.conference-date strong {
  display: block;
  color: #c4b5fd;
  font-size: 18px;
}
.conference-date span {
  display: block;
  margin-top: 7px;
  color: #707a91;
  font-size: 12px;
}
.conference-dot {
  z-index: 2;
  width: 15px;
  height: 15px;
  margin: 29px auto 0;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 24px #8b5cf6;
}
/* الكرت أصبح Flex حتى يصل زر Open Page إلى الأسفل */
.conference-card__panel {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 24px;
  background: linear-gradient(         135deg,         rgba(18, 17, 45, 0.9),         rgba(7, 7, 22, 0.94)     );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}
.conference-card.is-featured .conference-card__panel {
  border-color: rgba(236, 72, 153, 0.55);
}
.conference-cover {
  max-height: 420px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: #050511;
  cursor: pointer;
}
.conference-cover img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s;
}
.conference-cover:hover img {
  transform: scale(1.025);
}
/* محتوى الكرت يتمدد بالكامل */
.conference-card__content {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px;
}
.conference-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.conference-badges span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
}
.conference-badges span:first-child {
  background: rgba(236, 72, 153, 0.13);
  color: #f9a8d4;
}
.conference-card h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.conference-location {
  color: #4fd1ff;
  font-weight: 750;
}
.conference-session {
  color: #d8b4fe;
  font-weight: 800;
}
.conference-summary {
  max-width: 1100px;
  color: #a8b0c3;
  line-height: 1.8;
}
.conference-talks {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(139, 92, 246, 0.16);
}
.conference-talks h3 {
  color: #c4b5fd;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.conference-talk {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.conference-talk > span {
  color: #ec4899;
  font-weight: 900;
}
.conference-talk strong, .conference-talk small {
  display: block;
}
.conference-talk small {
  margin-top: 5px;
  color: #7e879b;
}
.conference-talk a {
  display: inline-block;
  margin: 8px 10px 0 0;
  color: #67e8f9;
}
/* هذا هو التعديل الأساسي لتثبيت Open Page أسفل الكرت */
.conference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.conference-lightbox[hidden] {
  display: none;
}
.conference-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.93);
}
.conference-lightbox figure {
  max-width: min(1100px, 82vw);
  max-height: 86vh;
  margin: 0;
}
.conference-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.conference-lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}
.conference-lightbox [data-gallery-close] {
  top: 24px;
  right: 24px;
}
.conference-lightbox [data-gallery-prev] {
  left: 25px;
}
.conference-lightbox [data-gallery-next] {
  right: 25px;
}
.conference-lightbox figcaption {
  margin-top: 12px;
  color: #cbd5e1;
  text-align: center;
}
.conference-empty {
  padding: 70px;
  color: #94a3b8;
  text-align: center;
}
/*
إذا قسم الكروت الثلاثة في الصورة يستخدم Grid،
هذه القواعد تجعل الأعمدة والكروت متساوية الارتفاع.
*/
.conferences-grid, .conference-grid, .conference-cards, .conferences-cards {
  align-items: stretch;
}
.conferences-grid > *, .conference-grid > *, .conference-cards > *, .conferences-cards > * {
  height: 100%;
}
@media (max-width: 1050px) {
  .conference-toolbar {
    grid-template-columns: 1fr;
  }
  .conference-card {
    grid-template-columns: 90px 24px minmax(0, 1fr);
  }
  .conference-timeline::before {
    left: 102px;
  }
}
@media (max-width: 700px) {
  .conferences-shell {
    width: calc(100% - 28px);
  }
  .conferences-hero {
    min-height: 430px;
    padding-top: 120px;
  }
  .conference-toolbar {
    top: 66px;
    margin-top: 20px;
  }
  .conference-card {
    display: block;
    margin-bottom: 26px;
  }
  .conference-timeline::before,     .conference-dot {
    display: none;
  }
  .conference-date {
    padding: 0 0 10px;
    text-align: left;
  }
  .conference-card__content {
    padding: 22px;
  }
  .conference-card h2 {
    font-size: 29px;
  }
}
