/*
 * UOK Events Showcase
 * University of Kirkuk
 */

.uok-events-showcase{
  --uok-navy:#072f63;
  --uok-navy-deep:#041f45;
  --uok-blue:#0b4a8f;
  --uok-gold:#d6a23f;
  --uok-gold-soft:#f4e3bb;
  --uok-ink:#172033;
  --uok-muted:#6f7786;
  --uok-line:#e5e9ef;
  --uok-surface:#fff;
  --uok-soft:#f5f7fa;

  width:100%;
  max-width:none;
  margin:0;
  padding:18px clamp(18px, 2.2vw, 36px) 54px;
  color:var(--uok-ink);
  font-family:inherit;
  box-sizing:border-box;
}

.uok-events-showcase *,
.uok-events-showcase *::before,
.uok-events-showcase *::after{
  box-sizing:border-box;
}

.uok-events-hero{
  position:relative;
  min-height:260px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:48px 58px;
  border-radius:28px;
  background:
    radial-gradient(circle at 15% 15%,rgba(214,162,63,.22),transparent 26%),
    linear-gradient(135deg,var(--uok-navy-deep),var(--uok-navy));
  box-shadow:0 20px 50px rgba(7,47,99,.16);
  isolation:isolate;
}

.uok-events-hero::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.12;
  background:
    linear-gradient(90deg,transparent 49%,rgba(255,255,255,.5) 50%,transparent 51%),
    linear-gradient(transparent 49%,rgba(255,255,255,.35) 50%,transparent 51%);
  background-size:70px 70px;
  pointer-events:none;
  z-index:-1;
}

.uok-events-hero__content{
  position:relative;
  z-index:2;
  max-width:790px;
}

.uok-events-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 16px;
  margin-bottom:17px;
  border:1px solid rgba(214,162,63,.55);
  border-radius:999px;
  color:#f6d995;
  background:rgba(255,255,255,.06);
  font-size:.92rem;
  font-weight:700;
}

.uok-events-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(2rem,4vw,3.55rem);
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.03em;
}

.uok-events-hero p{
  max-width:760px;
  margin:17px 0 0;
  color:rgba(255,255,255,.82);
  font-size:1.08rem;
  line-height:1.9;
}

.uok-events-hero__mark{
  position:relative;
  width:170px;
  height:170px;
  flex:0 0 170px;
  margin-right:30px;
  opacity:.92;
}

.uok-events-hero__mark span{
  position:absolute;
  border:1px solid rgba(214,162,63,.55);
  border-radius:50%;
}

.uok-events-hero__mark span:nth-child(1){
  inset:0;
}

.uok-events-hero__mark span:nth-child(2){
  inset:24px;
}

.uok-events-hero__mark span:nth-child(3){
  inset:49px;
  background:rgba(214,162,63,.14);
  box-shadow:0 0 50px rgba(214,162,63,.18);
}

.uok-events-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:24px;
  padding:22px 26px;
  border:1px solid var(--uok-line);
  border-radius:20px;
  background:var(--uok-surface);
  box-shadow:0 10px 30px rgba(20,35,60,.06);
}

.uok-events-toolbar__title{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.uok-events-toolbar__title span{
  color:var(--uok-muted);
  font-size:.82rem;
}

.uok-events-toolbar__title strong{
  color:var(--uok-navy);
  font-size:1.25rem;
}

.uok-events-month-nav{
  display:flex;
  align-items:center;
  gap:12px;
}

.uok-events-nav-button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 15px;
  border:1px solid #dfe5ed;
  border-radius:12px;
  color:var(--uok-navy);
  background:#fff;
  text-decoration:none !important;
  font-weight:700;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

a.uok-events-nav-button:hover{
  color:var(--uok-navy);
  border-color:rgba(214,162,63,.8);
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(7,47,99,.08);
}

.uok-events-nav-button.is-disabled{
  opacity:.35;
}

.uok-events-month-nav__current{
  min-width:125px;
  text-align:center;
}

.uok-events-month-nav__current span,
.uok-events-month-nav__current strong{
  display:block;
}

.uok-events-month-nav__current span{
  color:var(--uok-navy);
  font-weight:800;
}

.uok-events-month-nav__current strong{
  margin-top:1px;
  color:var(--uok-gold);
  font-size:.88rem;
}

.uok-events-days{
  margin-top:24px;
  padding:24px 26px 26px;
  border:1px solid var(--uok-line);
  border-radius:22px;
  background:#fff;
}

.uok-events-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.uok-events-section-heading span{
  display:block;
  margin-bottom:3px;
  color:var(--uok-gold);
  font-size:.78rem;
  font-weight:800;
}

.uok-events-section-heading h2{
  margin:0;
  color:var(--uok-navy);
  font-size:1.35rem;
  font-weight:800;
}

.uok-events-section-heading small{
  color:var(--uok-muted);
}

.uok-events-days__rail{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:3px 2px 8px;
  scrollbar-width:thin;
}

.uok-events-day{
  min-width:105px;
  min-height:115px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:12px;
  border:1px solid var(--uok-line);
  border-radius:17px;
  background:var(--uok-soft);
  text-align:center;
}

.uok-events-day.is-active{
  color:#fff;
  border-color:var(--uok-gold);
  background:
    linear-gradient(145deg,#e0b354,var(--uok-gold));
  box-shadow:0 12px 28px rgba(214,162,63,.25);
}

.uok-events-day__weekday{
  font-size:.78rem;
  opacity:.78;
}

.uok-events-day__number{
  margin:3px 0;
  color:var(--uok-navy);
  font-size:2rem;
  line-height:1;
}

.uok-events-day.is-active .uok-events-day__number{
  color:#fff;
}

.uok-events-day__count{
  font-size:.72rem;
  opacity:.82;
}

.uok-events-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);
  gap:24px;
  margin-top:24px;
}

.uok-event-feature-card,
.uok-events-calendar{
  height:100%;
  border:1px solid var(--uok-line);
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 34px rgba(20,35,60,.07);
}

.uok-event-feature-card{
  position:relative;
  min-height:390px;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
}

.uok-event-feature-card__accent{
  position:absolute;
  top:22px;
  right:0;
  z-index:2;
}

.uok-event-feature-card__accent span{
  display:inline-block;
  padding:8px 18px 8px 24px;
  border-radius:18px 0 0 18px;
  color:#fff;
  background:var(--uok-navy);
  font-size:.78rem;
  font-weight:800;
}

.uok-event-feature-card__body{
  align-self:center;
  padding:70px 42px 42px;
}

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

.uok-event-category,
.uok-event-date{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:5px 11px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
}

.uok-event-category{
  color:var(--uok-navy);
  background:#edf3fa;
}

.uok-event-date{
  color:#805d19;
  background:#fbf1dc;
}

.uok-event-feature-card h2{
  margin:0;
  color:var(--uok-navy-deep);
  font-size:clamp(1.65rem,3vw,2.45rem);
  line-height:1.4;
  font-weight:800;
}

.uok-event-summary{
  max-width:680px;
  margin:17px 0 0;
  color:#596274;
  font-size:1rem;
  line-height:1.9;
}

.uok-event-location{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  color:#596274;
  font-weight:600;
}

.uok-event-location > span:first-child{
  color:var(--uok-gold);
  font-size:1.25rem;
}

.uok-event-details{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:27px;
  padding:11px 18px;
  border-radius:12px;
  color:#fff !important;
  background:var(--uok-navy);
  text-decoration:none !important;
  font-weight:800;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.uok-event-details:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(7,47,99,.18);
}

.uok-event-feature-card__visual{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  background:
    radial-gradient(circle at 50% 40%,rgba(214,162,63,.2),transparent 36%),
    linear-gradient(155deg,#082e5c,#041d3d);
}

.uok-event-date-tile{
  width:150px;
  min-height:175px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(214,162,63,.55);
  border-radius:22px;
  color:#fff;
  background:rgba(255,255,255,.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 40px rgba(0,0,0,.14);
}

.uok-event-date-tile strong{
  color:#f1c76d;
  font-size:4rem;
  line-height:1;
}

.uok-event-date-tile span{
  margin-top:7px;
  font-size:1.05rem;
  font-weight:800;
}

.uok-event-date-tile small{
  margin-top:4px;
  color:rgba(255,255,255,.68);
}

.uok-events-calendar{
  padding:25px;
}

.uok-events-calendar__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding-bottom:18px;
  border-bottom:1px solid var(--uok-line);
}

.uok-events-calendar__header span{
  display:block;
  color:var(--uok-muted);
  font-size:.76rem;
}

.uok-events-calendar__header strong{
  display:block;
  margin-top:2px;
  color:var(--uok-navy);
  font-size:1.1rem;
}

.uok-events-calendar__range{
  padding:5px 8px;
  border-radius:8px;
  background:var(--uok-soft);
  direction:ltr;
}

.uok-events-calendar__weekdays,
.uok-events-calendar__grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}

.uok-events-calendar__weekdays{
  margin-top:18px;
}

.uok-events-calendar__weekdays span{
  padding:6px 0;
  color:#8a91a0;
  text-align:center;
  font-size:.72rem;
  font-weight:700;
}

.uok-calendar-day{
  position:relative;
  aspect-ratio:1;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:#4d5666;
  font-size:.83rem;
}

.uok-calendar-day.has-events{
  color:var(--uok-navy);
  background:#f6f0e4;
  font-weight:800;
}

.uok-calendar-day.is-selected{
  color:#fff;
  background:var(--uok-gold);
  box-shadow:0 6px 14px rgba(214,162,63,.24);
}

.uok-calendar-day i{
  position:absolute;
  bottom:4px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--uok-gold);
}

.uok-calendar-day.is-selected i{
  background:#fff;
}

.uok-events-calendar__legend{
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid var(--uok-line);
}

.uok-events-calendar__legend span{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--uok-muted);
  font-size:.75rem;
}

.uok-events-calendar__legend i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--uok-gold);
}

.uok-events-empty{
  margin-top:24px;
  padding:65px 25px;
  border:1px solid var(--uok-line);
  border-radius:22px;
  background:#fff;
  text-align:center;
}

.uok-events-empty__icon{
  width:68px;
  height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 17px;
  border-radius:18px;
  color:var(--uok-gold);
  background:#f8f0df;
  font-weight:800;
}

.uok-events-empty h2{
  margin:0;
  color:var(--uok-navy);
  font-size:1.2rem;
}

@media (max-width:980px){
  .uok-events-hero{
    min-height:auto;
    padding:38px 34px;
  }

  .uok-events-hero__mark{
    width:120px;
    height:120px;
    flex-basis:120px;
  }

  .uok-events-main-grid{
    grid-template-columns:1fr;
  }

  .uok-event-feature-card{
    grid-template-columns:minmax(0,1fr) 200px;
  }
}

@media (max-width:720px){
  .uok-events-showcase{
    padding:10px 10px 38px;
  }

  .uok-events-hero{
    padding:34px 24px;
    border-radius:20px;
  }

  .uok-events-hero__mark{
    display:none;
  }

  .uok-events-hero h1{
    font-size:2rem;
  }

  .uok-events-hero p{
    font-size:.95rem;
  }

  .uok-events-toolbar{
    align-items:stretch;
    flex-direction:column;
    padding:18px;
  }

  .uok-events-month-nav{
    justify-content:space-between;
  }

  .uok-events-nav-button{
    padding:8px 10px;
    font-size:.78rem;
  }

  .uok-events-month-nav__current{
    min-width:auto;
  }

  .uok-events-days{
    padding:20px 16px;
  }

  .uok-event-feature-card{
    display:block;
    min-height:0;
  }

  .uok-event-feature-card__body{
    padding:72px 24px 30px;
  }

  .uok-event-feature-card__visual{
    min-height:230px;
  }

  .uok-events-calendar{
    padding:20px 14px;
  }
}

@media (max-width:460px){
  .uok-events-month-nav{
    gap:5px;
  }

  .uok-events-nav-button{
    gap:4px;
    padding:7px 8px;
  }

  .uok-events-day{
    min-width:92px;
  }

  .uok-events-calendar__weekdays,
  .uok-events-calendar__grid{
    gap:3px;
  }
}

/* =========================================================
   UOK Events Showcase — Visual Polish V2
   ========================================================= */

/* Month toolbar: stronger visual grouping */
.uok-events-toolbar{
  padding:20px 26px;
}

.uok-events-month-nav{
  padding:5px;
  border:1px solid #edf0f4;
  border-radius:15px;
  background:#f8fafc;
}

.uok-events-month-nav__current{
  min-width:118px;
  padding:0 10px;
}

/* Active days: avoid a large empty panel with few dates */
.uok-events-days{
  padding:20px 24px 22px;
}

.uok-events-section-heading{
  margin-bottom:14px;
}

.uok-events-days__rail{
  min-height:0;
  align-items:stretch;
  justify-content:flex-start;
}

.uok-events-day{
  min-width:96px;
  min-height:100px;
  padding:10px 12px;
}

.uok-events-day__number{
  font-size:1.8rem;
}

/* Improve secondary text contrast */
.uok-events-showcase{
  --uok-muted:#626d7d;
}

.uok-event-summary{
  color:#4f5b6c;
}

.uok-event-location{
  color:#4f5b6c;
}

/* Featured event: give content more room */
.uok-event-feature-card{
  grid-template-columns:minmax(0,1fr) 205px;
  min-height:350px;
}

.uok-event-feature-card__body{
  padding:66px 40px 38px;
}

.uok-event-feature-card__visual{
  padding:24px;
}

.uok-event-date-tile{
  width:138px;
  min-height:165px;
}

/* Slightly tighten the relationship between sections */
.uok-events-main-grid{
  margin-top:20px;
}

@media (max-width:980px){
  .uok-event-feature-card{
    grid-template-columns:minmax(0,1fr) 180px;
  }
}

@media (max-width:720px){
  .uok-events-month-nav{
    padding:4px;
  }

  .uok-events-days__rail{
    justify-content:flex-start;
  }

  .uok-event-feature-card{
    display:block;
  }

  .uok-event-feature-card__body{
    padding:68px 24px 28px;
  }

  .uok-event-feature-card__visual{
    min-height:205px;
  }
}

/* =========================================================
   UOK Events Showcase — 1.0.25 Layout Foundation
   Top spacing + compact active-days strip
   ========================================================= */

/*
 * Helix Ultimate gives #sp-main-body 100px vertical padding.
 * Override it only while com_uokevents is being displayed.
 */
body.com-uokevents #sp-main-body{
  padding-top:22px;
}

/*
 * The Showcase itself already provides internal breathing room.
 * Keep the first visual block close to the university header.
 */
body.com-uokevents .uok-events-showcase{
  padding-top:10px;
}

/* Active days becomes a compact navigation strip. */
.uok-events-showcase .uok-events-days{
  margin-top:20px;
  padding:16px 20px;
  border:1px solid var(--uok-line);
  border-radius:18px;
  background:var(--uok-surface);
  box-shadow:0 10px 28px rgba(7,47,99,.055);
}

.uok-events-showcase .uok-events-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:10px;
}

.uok-events-showcase .uok-events-section-heading > div{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px 12px;
}

.uok-events-showcase .uok-events-section-heading span{
  margin:0;
}

.uok-events-showcase .uok-events-section-heading h2{
  margin:0;
}

.uok-events-showcase .uok-events-section-heading small{
  flex:0 0 auto;
}

.uok-events-showcase .uok-events-days__rail{
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:9px;
  min-height:0;
}

.uok-events-showcase .uok-events-day{
  flex:0 0 auto;
  min-width:88px;
  min-height:82px;
  padding:8px 12px;
  border-radius:14px;
}

.uok-events-showcase .uok-events-day__weekday{
  font-size:.72rem;
}

.uok-events-showcase .uok-events-day__number{
  font-size:1.55rem;
  line-height:1.05;
}

.uok-events-showcase .uok-events-day__count{
  font-size:.7rem;
}

/* Keep the content visually attached to the selected-day strip. */
.uok-events-showcase .uok-events-main-grid{
  margin-top:14px;
}

@media (max-width:767.98px){
  body.com-uokevents #sp-main-body{
    padding-top:10px;
  }

  body.com-uokevents .uok-events-showcase{
    padding-top:6px;
  }

  .uok-events-showcase .uok-events-days{
    padding:14px;
  }

  .uok-events-showcase .uok-events-section-heading{
    align-items:flex-start;
  }

  .uok-events-showcase .uok-events-day{
    min-width:78px;
    min-height:76px;
    padding:7px 10px;
  }
}


/* =========================================================
   UOK Events Showcase — 1.0.25 Interaction V1
   ========================================================= */

/* Interactive day controls */
.uok-events-showcase button.uok-events-day,
.uok-events-showcase button.uok-calendar-day{
  font:inherit;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.uok-events-showcase button.uok-events-day{
  border:1px solid var(--uok-line);
}

.uok-events-showcase button.uok-events-day:hover{
  border-color:rgba(214,162,63,.65);
  transform:translateY(-1px);
}

.uok-events-showcase button.uok-events-day:focus-visible,
.uok-events-showcase button.uok-calendar-day:focus-visible{
  outline:3px solid rgba(11,74,143,.22);
  outline-offset:3px;
}

.uok-events-showcase button.uok-calendar-day{
  width:100%;
  padding:0;
  border:0;
}

/* One event-day panel is displayed at a time */
.uok-events-day-panel[hidden]{
  display:none !important;
}

.uok-events-day-panel{
  width:100%;
}

/* Additional events occurring on the selected day */
.uok-events-more{
  margin-top:16px;
  padding:20px;
  border:1px solid var(--uok-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(20,35,60,.055);
}

.uok-events-more__heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.uok-events-more__heading strong{
  color:var(--uok-navy-deep);
  font-size:1rem;
}

.uok-events-more__heading > span{
  min-width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:var(--uok-navy);
  background:var(--uok-gold-soft);
  font-size:.8rem;
  font-weight:800;
}

.uok-events-more__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.uok-event-compact{
  padding:17px;
  border:1px solid #e9edf2;
  border-radius:16px;
  background:#f9fafc;
}

.uok-event-compact .uok-event-meta{
  margin-bottom:11px;
}

.uok-event-compact h3{
  margin:0;
  color:var(--uok-navy-deep);
  font-size:1rem;
  line-height:1.55;
  font-weight:800;
}

.uok-event-compact p{
  margin:9px 0 0;
  color:#4f5b6c;
  font-size:.88rem;
  line-height:1.75;
}

.uok-event-compact > a{
  display:inline-flex;
  margin-top:12px;
  color:var(--uok-blue);
  text-decoration:none;
  font-size:.85rem;
  font-weight:800;
}

.uok-event-compact > a:hover{
  text-decoration:underline;
}

/* Subtle transition for the selected event panel */
.uok-events-showcase.is-enhanced
.uok-events-day-panel.is-active{
  animation:uokEventsPanelIn .22s ease-out;
}

@keyframes uokEventsPanelIn{
  from{
    opacity:.25;
    transform:translateY(5px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (max-width:720px){
  .uok-events-more__grid{
    grid-template-columns:1fr;
  }

  .uok-events-more{
    padding:15px;
  }
}

@media (prefers-reduced-motion:reduce){
  .uok-events-showcase.is-enhanced
  .uok-events-day-panel.is-active{
    animation:none;
  }

  .uok-events-showcase button.uok-events-day{
    transition:none;
  }
}


/* =========================================================
   UOK Events Showcase — Fluid Helix container
   Scope: com_uokevents only
   ========================================================= */

@media (min-width:992px){
  body.com-uokevents #sp-main-body > .container{
    width:100%;
    max-width:none;
    padding-left:0;
    padding-right:0;
  }
}
