/* ==============================
   Hero Header
============================== */

.events-hero {
  width: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.04), transparent 40%),
    linear-gradient(135deg, #056989, #0d243a);
    
  color: #fff;
  padding: 60px 20px 70px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* Inner soft border */
.events-hero::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  pointer-events: none;
}

/* Light flare */
.events-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
  transform: rotate(25deg);
  pointer-events: none;
}


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

.events-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 14px;
  backdrop-filter: blur(3px);
}

.events-breadcrumb a {
  color: #ffe082;
  text-decoration: none;
  font-weight: 600;
}

.events-breadcrumb span {
  color: rgba(255,255,255,0.7);
}

.events-hero .events-title {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  position: relative;
  display: block;
  color: #fff;
}

.events-hero .events-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #ffe082, transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.events-hero .events-subtitle {
  font-size: 18px;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}



/* ==============================
   Events Page Layout
============================== */

.events-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 2px 10px;
}


/* ==============================
   Tabs Navigation
============================== */
.events-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  margin: -35px auto 35px;
  width: fit-content;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 10px 35px rgba(0,0,0,.08);
  border: 1px solid rgba(255,255,255,.6);
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: #1f2f45;
  cursor: pointer;
  transition: all .25s ease;
}

.tab-btn:hover {
  background: rgba(20,70,120,.08);
  transform: translateY(-1px);
}



.tab-btn.active {
  background: linear-gradient(135deg, #0f3c64, #174f82);
  color: #fff;
  box-shadow: 0 6px 20px rgba(23,79,130,.35);
}


/* ==============================
   Tabs Panels
============================== */

.events-tabs-content {
  background: #fff;
  border-radius: 14px;
  padding: 25px 20px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}


/* ==============================
   Responsive
============================== */

@media (max-width: 768px) {
  .events-title {
    font-size: 26px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .events-tabs-content {
    padding: 18px 15px;
  }
}



/* Event Card */
.card-event {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
  transition: .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-event:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

/* Image */
.card-event__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Badge */

.card-event__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #0b3a68, #155a9c);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: all .3s ease;
  z-index: 5;
}

.card-event__badge a {
  color: #fff;
}

.card-event__badge:hover {
  background: linear-gradient(135deg, #9c7a22, #caa347);
  transform: translateY(-2px);
}


/* Content */
.card-event__content {
  padding: 20px 22px;
  flex: 1;
}

.event-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 14px;
  color: #0b2d4d;
}

.event-title a {
  color: #0b2d4d;
  text-decoration: none;
}

.event-meta {
  display: grid;
  row-gap: 6px;
  font-size: 14px;
  color: #555;
}

.event-meta span {
  font-weight: 700;
  color: #0b3a68;
}

.event-place {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(11, 58, 104, 0.06);
  border-right: 3px solid #0b3a68;
  padding: 6px 12px;
  border-radius: 6px;
}



/* Footer */
.card-event__footer {
  padding: 14px 22px;
  border-top: 1px solid #eee;
  text-align: left;
}

.event-more {
  font-weight: 600;
  color: #0b3a68;
  text-decoration: none;
}


.event-meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  line-height: 1.6;
}



/* Force 2 cards per row */
.events-tabs-content .view-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}


@media (max-width: 768px) {

  .events-tabs-content .view-content {
    grid-template-columns: 1fr !important;
  }

  .card-event__image img {
    height: 200px;
  }

  .event-title {
    font-size: 18px;
  }

}



@media (max-width: 768px) {

  .events-title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .events-subtitle {
    font-size: 15px;
    line-height: 1.7;
  }

  .events-hero {
    padding: 60px 18px;
  }

}


.event-image-placeholder {
  height: 220px;
  background: linear-gradient(135deg, #f1f4f8, #e6ecf2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #7a8ca0;
  font-size: 14px;
  border-radius: 16px;
}

/* ===== Page Elegant Ending ===== */

.events-page-end {
  margin-top: 80px;
  padding: 40px 20px 20px;
  text-align: center;
}

/* الخط الفاصل */
.events-footer-divider {
  height: 1px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 24px;
  background: linear-gradient(
    to left,
    transparent,
    rgba(15,60,100,.25),
    transparent
  );
}

.events-end-inner {
  max-width: 760px;
  margin: 0 auto;
}

.events-end-divider {
  width: 70px;
  height: 3px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, #c7a54b, #0a2f55);
  border-radius: 3px;
}

.events-end-text {
  font-size: 14px;
  line-height: 1.9;
  color: #5f6b7a;
}


@media (max-width: 768px) {
  .events-page-end {
    margin-top: 50px;
  }

  .events-end-text {
    font-size: 13px;
    padding: 0 10px;
  }
}
