/* Phase 39.2.3 — Public Events Page Design Polish
   MMUST CU: Blue #0099FF, Orange #FF9900, White #FFFFFF
*/

.events-page-hero{
  position:relative;
  overflow:hidden;
  background:#0099FF!important;
  color:#fff;
  border-bottom:4px solid #FF9900;
}
.events-page-hero::after{
  content:"";
  position:absolute;
  right:-80px;
  top:-120px;
  width:320px;
  height:320px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  box-shadow:0 0 0 44px rgba(255,255,255,.06),0 0 0 88px rgba(255,255,255,.035);
  pointer-events:none;
}
.events-hero-inner{position:relative;z-index:1}
.events-page-hero h1{max-width:760px;margin-bottom:12px}
.events-page-hero p{max-width:720px;color:rgba(255,255,255,.92)!important;font-size:17px;line-height:1.6}
.events-hero-count{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  margin-top:20px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:999px;
  background:rgba(255,255,255,.13);
  backdrop-filter:blur(6px);
}
.events-hero-count strong{font-size:18px;color:#fff}
.events-hero-count span{font-size:12px;font-weight:800;letter-spacing:.02em;color:#fff}

.events-page-section{padding-top:54px!important;padding-bottom:70px!important;background:#f7f9fb!important}
.public-events-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.public-event-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:24px;
  border:1px solid #d9e1e8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 34px rgba(31,41,55,.07);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.public-event-card:hover{
  transform:translateY(-2px);
  border-color:rgba(0,153,255,.55);
  box-shadow:0 18px 42px rgba(31,41,55,.11);
}
.public-event-card-top{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.public-event-date{
  width:82px;
  min-height:94px;
  padding:11px 8px;
  border-radius:18px;
  background:#0099FF;
  color:#fff;
  display:grid;
  place-items:center;
  align-content:center;
  box-shadow:0 8px 22px rgba(0,153,255,.2);
}
.public-event-card.is-mission .public-event-date{background:#1f2937}
.public-event-date strong{font-size:31px;line-height:1;font-weight:900;letter-spacing:-.03em}
.public-event-date span{margin-top:5px;font-size:11px;font-weight:900;letter-spacing:.12em;color:#FF9900}
.public-event-date small{margin-top:5px;font-size:11px;font-weight:700;color:#fff}
.public-event-heading{min-width:0}
.public-event-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px}
.public-event-badge{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(0,153,255,.1);
  color:#0078c8;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.public-event-badge.mission{background:rgba(255,153,0,.13);color:#9a5d00}
.public-event-heading h2{
  margin:0 0 8px;
  color:#1f2937;
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.public-event-heading p{
  margin:0;
  color:#596575;
  font-size:14px;
  line-height:1.6;
}
.public-event-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:22px 0 20px;
  padding:14px;
  border:1px solid #e4e9ee;
  border-radius:16px;
  background:#f8fafc;
}
.public-event-meta>div{display:flex;align-items:center;gap:9px;min-width:0}
.public-event-meta-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#fff;
  color:#0099FF;
  border:1px solid #e1e7ec;
}
.public-event-meta-icon svg{width:17px;height:17px}
.public-event-meta span:last-child{min-width:0;display:block}
.public-event-meta small{display:block;margin-bottom:2px;color:#7a8593;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.public-event-meta strong{display:block;overflow:hidden;text-overflow:ellipsis;color:#1f2937;font-size:12px;line-height:1.35}
.public-event-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
}
.event-button{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 15px;
  border-radius:13px;
  font-size:13px;
  font-weight:850;
  text-decoration:none!important;
  line-height:1.2;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.event-button svg{width:17px;height:17px;flex:0 0 auto}
.event-button:hover{transform:translateY(-1px)}
.event-button-primary{
  background:#FF9900;
  color:#1f2937!important;
  border:1px solid #FF9900;
  box-shadow:0 6px 16px rgba(255,153,0,.18);
}
.event-button-primary:hover{background:#f7ac15;border-color:#f7ac15}
.event-button-secondary{
  background:#fff;
  color:#0078c8!important;
  border:1px solid rgba(0,153,255,.38);
}
.event-button-secondary:hover{background:rgba(0,153,255,.06);border-color:#0099FF}
.events-empty-state{max-width:680px;margin:0 auto;text-align:center;padding:44px!important}
.events-empty-icon{width:58px;height:58px;margin:0 auto 15px;border-radius:17px;background:rgba(0,153,255,.1);color:#0099FF;display:grid;place-items:center}
.events-empty-icon svg{width:28px;height:28px}
.events-empty-state h2{margin-bottom:8px;color:#1f2937}
.events-empty-state p{margin:0;color:#596575}

@media (max-width:900px){
  .public-events-grid{grid-template-columns:1fr}
}

@media (max-width:700px){
  .events-page-hero{padding-top:70px!important;padding-bottom:58px!important}
  .events-page-hero::after{width:220px;height:220px;right:-105px;top:-70px}
  .events-page-hero h1{font-size:42px!important;line-height:1.05!important}
  .events-page-hero p{font-size:16px!important;line-height:1.55!important}
  .events-page-section{padding-top:28px!important;padding-bottom:54px!important}
  .public-events-grid{gap:16px}
  .public-event-card{padding:18px;border-radius:19px;box-shadow:0 8px 24px rgba(31,41,55,.07)}
  .public-event-card-top{grid-template-columns:72px minmax(0,1fr);gap:14px}
  .public-event-date{width:72px;min-height:84px;border-radius:16px}
  .public-event-date strong{font-size:28px}
  .public-event-heading h2{font-size:21px}
  .public-event-heading p{font-size:14px;line-height:1.55}
  .public-event-meta{grid-template-columns:1fr;gap:8px;margin:18px 0;padding:11px}
  .public-event-meta>div{padding:3px 0}
  .public-event-meta strong{font-size:13px;white-space:normal;overflow:visible}
  .public-event-actions{display:grid;grid-template-columns:1fr}
  .event-button{width:100%;min-height:49px;font-size:14px}
}

@media (max-width:390px){
  .events-page-hero h1{font-size:37px!important}
  .public-event-card-top{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .public-event-date{width:64px;min-height:78px;padding:8px 6px}
  .public-event-date strong{font-size:25px}
  .public-event-date span,.public-event-date small{font-size:10px}
  .public-event-heading h2{font-size:19px}
  .public-event-badge{font-size:9px;padding:4px 8px}
}
