/* =========================
   Events Center – Polish v2
   ========================= */

:root{
  --navy:#00254e;
  --gold:#ecb200;
  --ink:#0f172a;
  --muted:#6b7280;
  --bg:#f4f6fb;
  --card:#ffffff;
  --line:#e5e7eb;
  --shadow: 0 10px 24px rgba(0,0,0,.06);
  --shadowHover: 0 16px 40px rgba(0,0,0,.10);
  --radius: 16px;
}

body{
  background: var(--bg);
}

/* Ensure RTL base */
.container{
  direction: rtl;
  text-align: right;
}

/* Layout spacing */
.events-center-wrap{
  padding-top: 18px;
  padding-bottom: 28px;
}

/* =========================
   Sidebar / Filters
   ========================= */

.filter-panel{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: sticky;
  top: 14px; /* adjust if navbar fixed */
}

.filter-title{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.filter-title h1{
  font-size: 24px;
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: .2px;
}

.filter-actions{
  display:flex;
  gap: 8px;
}

/* Ghost button (Clear) */
.btn-ghost{
  border-radius: 12px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0,37,78,.16);
  background: rgba(0,37,78,.03);
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  line-height: 34px;
  display:inline-flex;
  align-items:center;
  text-decoration:none !important;
  white-space: nowrap;
}
.btn-ghost:hover{
  border-color: rgba(236,178,0,.45);
  background: rgba(236,178,0,.08);
  color: #001f42;
}

/* Labels */
.filter-sub{
  margin: 10px 0 8px;
  color: var(--navy);
  font-weight: 900;
  font-size: 15px;
}

/* Inputs */
.filter-panel .form-control{
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: none !important;
  height: 44px;
}
.filter-panel .form-control:focus{
  border-color: rgba(236,178,0,.55);
  box-shadow: 0 0 0 3px rgba(236,178,0,.18) !important;
}

/* Filter button */
.btn-filter{
  border-radius: 12px;
  height: 46px;
  font-weight: 900;
  background: var(--navy);
  border-color: var(--navy);
}
.btn-filter:hover{
  background: #001f42;
  border-color: #001f42;
}

/* =========================
   Results message
   ========================= */

#results{
  margin-top: 14px;
}

.results-box{
  border-radius: 14px;
  padding: 12px;
  border: 1px dashed rgba(0,37,78,.25);
  background: rgba(0,37,78,.03);
}

.results-box h4{
  margin:0;
  font-size: 14.5px;
  line-height: 1.7;
}

/* =========================
   Events List Column
   ========================= */

.events-list{
  padding-right: 18px;
  border-right: 1px solid rgba(0,0,0,.06);
}

/* Link wrapper */
.event-link{
  display:block;
  text-decoration:none !important;
  color: inherit;
}

/* =========================
   Event Card
   ========================= */

.event-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.event-card:before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width: 8px;
  height: 100%;
  background: rgba(236,178,0,0);
  transition: background .18s ease;
}

.event-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadowHover);
  border-color: rgba(236,178,0,.35);
}
.event-card:hover:before{
  background: rgba(236,178,0,.85);
}

/* Card head: title + status */
.event-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* Title */
.event-title{
  font-size: 20px;
  margin: 0;
  color: var(--navy);
  font-weight: 950;
  line-height: 1.35;
}
.event-link:hover .event-title{
  color: var(--gold);
}

/* =========================
   Status Badge
   ========================= */

.status-badge{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12.5px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: var(--ink);
  white-space: nowrap;
}

/* states */
.status-upcoming{
  border-color: rgba(236,178,0,.45);
  background: rgba(236,178,0,.10);
  color: #7a5200;
}
.status-live{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
  color: #166534;
}
.status-ended{
  border-color: rgba(107,114,128,.25);
  background: rgba(107,114,128,.08);
  color: #334155;
}

/* =========================
   Date Badge
   ========================= */

.event-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.date-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,37,78,.12);
  background: rgba(0,37,78,.03);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}

.date-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

/* =========================
   Excerpt (clamped)
   ========================= */

.event-excerpt{
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.85;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   Empty state
   ========================= */

.nothing-toshow{
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-weight: 900;
}

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

@media (max-width: 991px){
  .events-list{
    padding-right: 0;
    border-right: none;
    margin-top: 14px;
  }
  .filter-panel{
    position: static;
  }
}



/* Search input + icon button */
.news-search-group{
  position: relative;
  margin-bottom: 10px;
}

.news-search-group .form-control{
  padding-left: 46px; /* room for icon on the left */
}

.news-search-btn{
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,37,78,.14);
  background: rgba(0,37,78,.03);
  color: var(--navy);
  font-weight: 900;
}

.news-search-btn:hover{
  border-color: rgba(236,178,0,.45);
  background: rgba(236,178,0,.10);
}

/* Keywords chips */
.news-keywords-wrap{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.news-chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,37,78,.14);
  background: rgba(0,37,78,.03);
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  text-decoration:none !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}

.news-chip:hover{
  border-color: rgba(236,178,0,.45);
  background: rgba(236,178,0,.10);
  transform: translateY(-1px);
}

.news-chip.active{
  border-color: rgba(236,178,0,.55);
  background: rgba(236,178,0,.14);
  color: #7a5200;
}

/* Category badge (like event status style but neutral) */
.news-cat-badge{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,37,78,.12);
  background: rgba(0,37,78,.03);
  color: var(--ink);
  font-weight: 900;
  font-size: 12.5px;
  white-space: nowrap;
}

/* ==========================================
   News Center add-ons (using events-center.css)
   ========================================== */

/* Search input + icon button */
.news-search-group{
  position: relative;
  margin-bottom: 10px;
}

.news-search-group .form-control{
  padding-left: 46px; /* space for icon button */
}

.news-search-btn{
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,37,78,.14);
  background: rgba(0,37,78,.03);
  color: var(--navy);
  font-weight: 900;
}

.news-search-btn:hover{
  border-color: rgba(236,178,0,.45);
  background: rgba(236,178,0,.10);
}

/* Keywords chips */
.news-keywords-wrap{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.news-chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,37,78,.14);
  background: rgba(0,37,78,.03);
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  text-decoration:none !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}

.news-chip:hover{
  border-color: rgba(236,178,0,.45);
  background: rgba(236,178,0,.10);
  transform: translateY(-1px);
}

.news-chip.active{
  border-color: rgba(236,178,0,.55);
  background: rgba(236,178,0,.14);
  color: #7a5200;
}

/* Category pill (shape + fallback; JS will color it inline) */
.news-cat-badge{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12.5px;
  white-space: nowrap;

  /* fallback if JS disabled */
  border: 1px solid rgba(0,37,78,.12);
  background: rgba(0,37,78,.03);
  color: var(--ink);
}