/* =========================================================
   Shared components — events, faculty, committees, modal
   ========================================================= */

/* ---------- Month divider (event report) ---------- */
.month-row{ display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.month-row:not(:first-child){ margin-top: 8px; }
.month-row .m-name{
  font-size: 22px; font-weight: 800; color: var(--purple-800); letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
}
.month-row .m-name b{ color: var(--gold-600); font-size: 14px; font-weight: 700; }
.month-row .m-line{ flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold-200), transparent); border-radius: 2px; }

/* ---------- Event grid + cards ---------- */
.ev-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-bottom: 56px;
}
.ev-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: transform var(--d3) var(--ease), box-shadow var(--d3) var(--ease);
}
.ev-card:hover{ transform: translateY(-6px); box-shadow: var(--sh-lg); }
.ev-media{ position: relative; }
.ev-media image-slot{ width: 100%; height: 210px; display: block; }
.ev-date{
  position: absolute; left: 16px; top: 16px; z-index: 2;
  background: var(--grad-gold); color: var(--ink);
  border-radius: var(--r-md); padding: 8px 12px; text-align: center;
  box-shadow: var(--sh-sm); line-height: 1;
}
.ev-date .d{ font-size: 19px; font-weight: 800; display: block; }
.ev-date .m{ font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.ev-tag{
  position: absolute; right: 14px; top: 16px; z-index: 2;
  background: rgba(21,27,42,.62); backdrop-filter: blur(6px); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.ev-body{ padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ev-body h3{ margin-bottom: 10px; }
.ev-body p{ font-size: 14px; color: var(--fg-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-foot{ margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.ev-foot .venue{ font-size: 12px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.ev-foot .venue svg{ width: 14px; height: 14px; color: var(--purple); }

/* ---------- PDF download band ---------- */
.pdf-band{
  background: var(--grad-indigo); border-radius: var(--r-xl);
  padding: 44px 48px; color: #fff;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--sh-md); position: relative; overflow: hidden;
}
.pdf-band::after{
  content: ""; position: absolute; right: -6%; top: -60%; width: 46%; height: 220%;
  background: radial-gradient(closest-side, rgba(212,160,23,.22), transparent 70%);
}
.pdf-ico{
  width: 72px; height: 72px; border-radius: var(--r-lg); flex: none; position: relative; z-index: 1;
  background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--gold-200);
}
.pdf-ico svg{ width: 34px; height: 34px; }
.pdf-text{ flex: 1; min-width: 240px; position: relative; z-index: 1; }
.pdf-text h3{ color: #fff; }
.pdf-text p{ color: rgba(255,255,255,.78); margin-top: 8px; font-size: 14.5px; }
.pdf-band .btn{ position: relative; z-index: 1; }

/* ---------- Upcoming events strip ---------- */
.up-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.up-card{
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--r-md); padding: 24px 26px; box-shadow: var(--sh-xs);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.up-card:hover{ transform: translateY(-3px); box-shadow: var(--sh-md); }
.up-card .ico{ width: 44px; height: 44px; border-radius: 12px; background: var(--purple-50); color: var(--purple); display: grid; place-items: center; flex: none; }
.up-card .ico svg{ width: 22px; height: 22px; }
.up-card h4{ color: var(--purple-800); }
.up-card span{ font-size: 12.5px; color: var(--gold-600); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  grid-auto-rows: 180px;
}
.gallery image-slot{ width: 100%; height: 100%; cursor: zoom-in; }
.gallery .tall{ grid-row: span 2; }
.gallery .wide{ grid-column: span 2; }

/* ---------- Faculty controls ---------- */
.fac-controls{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-sm); padding: 22px 24px; margin-bottom: 40px;
}
.search-wrap{ position: relative; margin-bottom: 18px; }
.search-wrap svg{ position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--fg-3); }
.search-wrap input{
  width: 100%; font-family: inherit; font-size: 15px; color: var(--fg-1);
  padding: 14px 18px 14px 48px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  outline: none; transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.search-wrap input:focus{ border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-100); }
.filter-row{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.chips{ display: flex; gap: 10px; flex-wrap: wrap; }
.chip{
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--fg-2); transition: all var(--d2) var(--ease);
}
.chip:hover{ border-color: var(--purple-200); color: var(--purple-700); }
.chip.active{ background: var(--grad-purple); border-color: transparent; color: #fff; box-shadow: var(--sh-purple); }
.dept-select{
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--fg-1); cursor: pointer;
  padding: 10px 40px 10px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d4f96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; outline: none;
}
.dept-select:focus{ border-color: var(--purple); }
.fac-count{ font-size: 13.5px; color: var(--fg-3); }
.fac-count b{ color: var(--purple-700); }

/* ---------- Faculty grid + cards ---------- */
.fac-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fac-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-sm); text-align: center;
  display: flex; flex-direction: column;
  transition: transform var(--d3) var(--ease), box-shadow var(--d3) var(--ease);
}
.fac-card:hover{ transform: translateY(-6px); box-shadow: var(--sh-lg); }
.fac-top{ position: relative; padding: 30px 24px 0; background: linear-gradient(180deg, var(--purple-50), #fff); }
.fac-photo{ width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--purple-100); overflow: hidden; top: 40px !important;  position: relative;}
.fac-photo image-slot{ width: 132px; height: 132px; }
.fac-desig-tag{
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
}
.fac-body{ padding: 58px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.fac-body h3{ font-size: 19px; }
.fac-role{ color: var(--purple); font-weight: 600; font-size: 14px; margin-top: 4px; }
.qual-chips{ display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 16px 0 4px; }
.qual-chips span{ font-size: 11.5px; font-weight: 600; color: var(--fg-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--r-pill); }
.fac-dept{ font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 7px; justify-content: center; margin-top: 14px; }
.fac-dept svg{ width: 15px; height: 15px; color: var(--purple); }
.fac-exp{ display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; font-size: 12px; font-weight: 700; color: var(--gold-700); background: var(--gold-50); border: 1px solid var(--gold-200); padding: 6px 14px; border-radius: var(--r-pill); }
.fac-exp svg{ width: 14px; height: 14px; }
.fac-card .btn{ margin-top: 18px; }
.fac-empty{ grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--fg-3); }
.fac-empty svg{ width: 46px; height: 46px; color: var(--purple-200); margin: 0 auto 14px; }

/* ---------- Committees ---------- */
.com-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.com-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  transition: transform var(--d3) var(--ease), box-shadow var(--d3) var(--ease);
}
.com-card:hover{ transform: translateY(-5px); box-shadow: var(--sh-lg); }
.com-head{ padding: 26px 26px 22px; color: #fff; position: relative; }
.com-head.p{ background: var(--grad-purple); }
.com-head.i{ background: var(--grad-indigo); }
.com-head.g{ background: var(--grad-gold); color: var(--ink); }
.com-head .ico{ width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 16px; }
.com-head.g .ico{ background: rgba(21,27,42,.12); }
.com-head .ico svg{ width: 26px; height: 26px; }
.com-head h3{ color: inherit; font-size: 19px; }
.com-body{ padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.com-coord{ display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.com-coord .av{ width: 38px; height: 38px; border-radius: 50%; background: var(--purple-100); color: var(--purple-800); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.com-coord .lbl{ font-size: 11px; color: var(--fg-4); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.com-coord .nm{ font-size: 14px; font-weight: 600; color: var(--fg-1); }
.com-body > p{ font-size: 14px; color: var(--fg-2); }
.com-acc{ margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.acc-trigger{
  width: 100%; background: none; border: 0; cursor: pointer; padding: 6px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--purple-700);
}
.acc-trigger .chev{ transition: transform var(--d2) var(--ease); }
.acc-trigger svg{ width: 18px; height: 18px; }
[data-accordion-item].open .acc-trigger .chev{ transform: rotate(180deg); }
.acc-panel{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d3) var(--ease); }
[data-accordion-item].open .acc-panel{ grid-template-rows: 1fr; }
.acc-inner{ overflow: hidden; }
.member{ display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.member:last-child{ border-bottom: 0; }
.member .av{ width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--purple-700); font-weight: 700; font-size: 11px; display: grid; place-items: center; flex: none; }
.member .m-nm{ font-size: 13px; font-weight: 600; color: var(--fg-1); }
.member .m-role{ font-size: 11.5px; color: var(--fg-3); margin-left: auto; }

/* ---------- Modal ---------- */
.modal{
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(21,27,42,.55); backdrop-filter: blur(4px);
}
.modal.open{ display: flex; animation: mfade .2s var(--ease); }
@keyframes mfade{ from{ opacity: 0; } to{ opacity: 1; } }
.modal-box{
  background: #fff; border-radius: var(--r-xl); max-width: 720px; width: 100%;
  max-height: 88vh; overflow: auto; box-shadow: var(--sh-lg); position: relative;
  animation: mrise .26s var(--ease);
}
@keyframes mrise{ from{ transform: translateY(20px); opacity: .6; } to{ transform: none; opacity: 1; } }
.modal-close{
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--fg-1); display: grid; place-items: center;
  box-shadow: var(--sh-sm); transition: background var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.modal-close:hover{ background: var(--gold); color: var(--ink); transform: rotate(90deg); }
.modal-close svg{ width: 20px; height: 20px; pointer-events: none; }

/* event modal */
.em-media image-slot{ width: 100%; height: 300px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.em-body{ padding: 28px 34px 34px; }
.em-meta{ display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 18px; }
.em-meta span{ font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 7px; }
.em-meta svg{ width: 16px; height: 16px; color: var(--purple); }
.em-body h2{ font-size: 27px; }
.em-body p{ margin-top: 14px; color: var(--fg-2); font-size: 15px; line-height: 1.7; }

/* faculty modal */
.fm-head{ display: flex; gap: 24px; padding: 34px 34px 24px; background: linear-gradient(180deg, var(--purple-50), #fff); align-items: center; }
.fm-photo{ width: 116px; height: 116px; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--purple-100); overflow: hidden; flex: none; }
.fm-photo image-slot{ width: 116px; height: 116px; }
.fm-head h2{ font-size: 26px; }
.fm-head .role{ color: var(--purple); font-weight: 600; margin-top: 4px; }
.fm-head .reg{ font-size: 12.5px; color: var(--fg-3); margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.fm-head .reg b{ color: var(--fg-1); }
.fm-body{ padding: 8px 34px 34px; }
.fm-tags{ display: flex; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.fm-tag{ font-size: 13px; }
.fm-tag .k{ display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-4); font-weight: 700; margin-bottom: 4px; }
.fm-tag .v{ color: var(--fg-1); font-weight: 600; }
.fm-body h4{ color: var(--purple-800); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.fm-body p{ color: var(--fg-2); font-size: 14.5px; line-height: 1.72; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .ev-grid, .fac-grid, .com-grid{ grid-template-columns: repeat(2, 1fr); }
  .up-grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .ev-grid, .fac-grid, .com-grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .pdf-band{ padding: 30px 26px; }
  .fm-head{ flex-direction: column; text-align: center; }
  .fm-head .reg{ justify-content: center; }
  .em-body, .fm-body{ padding-left: 22px; padding-right: 22px; }
}
