/* SMAN 1 Wonosari — inner pages styles (extends style.css) */

/* Inner header is always white (no transparent hero) */
.site-header.is-inner {
  background: var(--primary);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  /* border-bottom:1px solid var(--border); */
  /* margin-top: var(--topbar-h); */
}
.site-header.is-inner .brand-name,
.site-header.is-inner .brand-sub {
  color: var(--primary);
}
.site-header.is-inner .nav-link {
  color: var(--white);
}
.site-header.is-inner .nav-link:hover {
  color: var(--accent);
}
.site-header.is-inner .nav-cta .btn-outline-light {
  color: var(--primary);
  border-color: var(--primary);
}
.site-header.is-inner .nav-cta .btn-outline-light:hover {
  background: var(--primary);
  color: #fff;
}
.site-header.is-inner .menu-toggle {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.search-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.search-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

body {
  padding-top: calc(var(--topbar-h) + 80px);
}

/* ===========================================================
   PAGE HERO
   =========================================================== */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  background:
    linear-gradient(
      180deg,
      rgba(11, 46, 89, 0.85) 0%,
      rgba(8, 37, 68, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
      center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(205, 163, 73, 0.18) 0%,
    rgba(205, 163, 73, 0) 70%
  );
  pointer-events: none;
}
.page-hero .container-1320 {
  position: relative;
  z-index: 2;
}
.page-hero .eyebrow {
  color: var(--accent);
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 18px 0 16px;
  color: #fff;
  max-width: 780px;
}
.page-hero p.sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0;
}

/* breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}
.crumbs a {
  color: rgba(255, 255, 255, 0.85);
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs .sep {
  color: rgba(255, 255, 255, 0.35);
}
.crumbs .current {
  color: #fff;
  font-weight: 500;
}
.page-section {
  padding-top: 80px;
  padding-bottom: 120px;
}

/* light crumb on white */
.crumbs.light {
  color: var(--text-2);
}
.crumbs.light a {
  color: var(--text-2);
}
.crumbs.light a:hover {
  color: var(--primary);
}
.crumbs.light .current {
  color: var(--text-1);
}

/* ===========================================================
   TOOLBAR (search + filter)
   =========================================================== */
.toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .toolbar {
    grid-template-columns: 1.6fr 1fr 1fr auto;
    align-items: center;
  }
}
.toolbar .field {
  position: relative;
  display: flex;
  align-items: center;
}
.toolbar .field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
}
.toolbar input,
.toolbar select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px 0 42px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  outline: none;
  background: #fff;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.toolbar select {
  padding-left: 14px;
  cursor: pointer;
}
.toolbar select.has-icon {
  padding-left: 42px;
}
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 46, 89, 0.08);
}
.toolbar .btn-premium {
  height: 48px;
}

/* ===========================================================
   GENERIC CARD GRIDS
   =========================================================== */
.grid-3 {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.grid-2 {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* news / generic article card */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.article-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.article-card:hover .thumb img {
  transform: scale(1.06);
}
.article-card .body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card .cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.article-card p {
  color: var(--text-2);
  font-size: 14px;
  margin: 0;
}
.article-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.article-card .read-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.article-card .read-more i {
  transition: transform 0.3s var(--ease);
}
.article-card:hover .read-more i {
  transform: translateX(4px);
}

/* featured large card */
.featured-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 480px;
  background: #0a1726;
  color: #fff;
}
.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.featured-card:hover img {
  transform: scale(1.04);
}
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.featured-card .meta {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 36px;
  z-index: 2;
}
.featured-card .cat {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
}
.featured-card h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 16px 0 10px;
  line-height: 1.2;
}
.featured-card .date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

/* pagination */
.pagi {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}
.pagi a,
.pagi span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.pagi a:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.pagi .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagi .ellipsis {
  border: 0;
  background: transparent;
  color: var(--text-2);
}
.pagi .nav-btn {
  width: auto;
  padding: 0 18px;
  gap: 8px;
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.empty-state i {
  font-size: 42px;
  color: var(--text-2);
}
.empty-state h4 {
  margin: 16px 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
}
.empty-state p {
  color: var(--text-2);
  margin: 0;
}

/* ===========================================================
   ANNOUNCEMENT CARD
   =========================================================== */
.an-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.an-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.an-card.priority {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(205, 163, 73, 0.06), #fff 30%);
}
.an-date {
  flex: none;
  width: 80px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 14px 8px;
}
.an-date .d {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.an-date .m {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}
.an-body {
  flex: 1;
}
.an-body .row1 {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.an-body .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.badge-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-status.new {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.badge-status.priority {
  background: rgba(205, 163, 73, 0.18);
  color: #a8821f;
}
.badge-status.open {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.badge-status.closed {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-2);
}
.an-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 8px 0 6px;
  color: var(--text-1);
}
.an-body p {
  color: var(--text-2);
  font-size: 14px;
  margin: 0;
}
.an-body .actions {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}
.an-body .actions a {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.an-body .actions a:hover {
  color: var(--accent);
}

/* ===========================================================
   AGENDA / CALENDAR
   =========================================================== */
.agenda-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .agenda-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}
.cal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.cal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
}
.cal-nav {
  display: flex;
  gap: 6px;
}
.cal-nav button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-1);
  cursor: pointer;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-grid .dow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 8px 0;
}
.cal-cell {
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-1);
  cursor: default;
  position: relative;
}
.cal-cell.muted {
  color: var(--text-2);
  opacity: 0.4;
}
.cal-cell.today {
  background: var(--primary);
  color: #fff;
}
.cal-cell.event {
  background: #fff;
  border-color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}
.cal-cell.event::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
  cursor: pointer;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.event-card .when {
  flex: none;
  width: 72px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
}
.event-card .when .d {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.event-card .when .m {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-top: 4px;
}
.event-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}
.event-card .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.event-card .info span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-card .info i {
  color: var(--accent);
}

.agenda-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.agenda-modal.open {
  display: flex;
}
.agenda-modal .modal-card {
  background: #fff;
  max-width: 520px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.agenda-modal .modal-cover {
  aspect-ratio: 16/9;
  background: #0a1726;
}
.agenda-modal .modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agenda-modal .modal-body {
  padding: 28px;
}
.agenda-modal h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.agenda-modal .meta-row {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.agenda-modal .meta-row > div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
}
.agenda-modal .meta-row i {
  color: var(--accent);
}
.agenda-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 2;
}

/* ===========================================================
   JOURNAL CARD
   =========================================================== */
.jr-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.jr-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
@media (min-width: 600px) {
  .jr-card {
    grid-template-columns: 160px 1fr;
  }
}
.jr-cover {
  background: linear-gradient(135deg, var(--primary) 0%, #103a72 100%);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.jr-cover .y {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.jr-cover .vol {
  font-size: 14px;
  opacity: 0.7;
  margin-top: auto;
}
.jr-cover .pages {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.jr-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jr-body .cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.jr-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
}
.jr-body .authors {
  font-size: 13px;
  color: var(--text-2);
}
.jr-body .abstract {
  font-size: 14px;
  color: var(--text-2);
}
.jr-body .actions {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 10px;
}
.jr-body .actions a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===========================================================
   JOB CARD
   =========================================================== */
.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.job-card .row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.job-card .dept {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.job-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.job-card .summary {
  color: var(--text-2);
  margin: 14px 0;
  font-size: 15px;
}
.job-card ul.reqs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.job-card ul.reqs li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}
.job-card .foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.job-card .deadline {
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-card .deadline i {
  color: var(--accent);
}

/* ===========================================================
   GALLERY ALBUMS
   =========================================================== */
.albums-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.album-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #0a1726;
  cursor: pointer;
}
.album-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.album-card:hover img {
  transform: scale(1.06);
}
.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.album-card .meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
}
.album-card .meta .tag {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
.album-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
  font-weight: 600;
}
.album-card .meta .stats {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 14px;
}

/* ===========================================================
   VIDEO CARD
   =========================================================== */
.video-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: #0a1726;
}
.video-card .thumb {
  aspect-ratio: 16/9;
  position: relative;
}
.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.video-card:hover .thumb img {
  transform: scale(1.04);
}
.video-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
.video-card .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease);
  z-index: 2;
}
.video-card:hover .play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card .duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}
.video-card .info {
  padding: 18px 20px 20px;
  background: #fff;
}
.video-card .info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
}
.video-card .info .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}

#video-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#video-modal.open {
  display: flex;
}
#video-modal .wrap {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* ===========================================================
   PERSON CARD (teacher / student / alumni)
   =========================================================== */
.person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition:
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.person-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.person-card .photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}
.person-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.person-card:hover .photo img {
  transform: scale(1.05);
}
.person-card .body {
  padding: 22px 24px 26px;
}
.person-card .pos {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.person-card h3 {
  margin: 6px 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.person-card .sub {
  font-size: 13px;
  color: var(--text-2);
}
.person-card .foot {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.person-card .foot a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-1);
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid var(--border);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.person-card .foot a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
/* "Lihat Profil" carries a label, not just an icon — the 36x36 icon-square
   above would clip it, so this widens to a pill instead of stretching a
   square. Hover fill still comes from .foot a:hover above. */
.person-card .foot .btn-view-profile {
  width: auto;
  height: auto;
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* student grid is denser */
.student-card {
  text-align: center;
  padding: 24px 18px;
}
.student-card .photo {
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 120px;
  margin: 0 auto 16px;
}
.student-card h3 {
  font-size: 15px;
}
.student-card .sub {
  font-size: 12px;
}

/* alumni horizontal */
.alumni-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.alumni-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.alumni-card .avatar {
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}
.alumni-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alumni-card .yr {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.alumni-card h3 {
  margin: 4px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
}
.alumni-card .role {
  font-size: 13px;
  color: var(--text-2);
}
.alumni-card .at {
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
  margin-top: 4px;
}

/* ===========================================================
   ARTICLE (READ) PAGE
   =========================================================== */
.read-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .read-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
  }
}
.read-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 1100px) {
  .read-content {
    margin: 0;
  }
}
.read-content .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.read-content .meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-content h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 24px;
}
.read-cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 32px;
}
.read-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-1);
}
.prose p {
  margin: 0 0 22px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin: 28px 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-1);
  font-style: italic;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 22px;
}
.prose ul li,
.prose ol li {
  margin: 6px 0;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-row .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 600;
  margin-right: 8px;
}
.share-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.share-row a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.prev-next {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .prev-next {
    grid-template-columns: 1fr 1fr;
  }
}
.pn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.pn-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.pn-card .dir {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pn-card.next {
  text-align: right;
}
.pn-card.next .dir {
  justify-content: flex-end;
}
.pn-card h4 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
}

/* ===========================================================
   SIDEBAR
   =========================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--topbar-h) + 96px);
}
.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.side-card h4 {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}
.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
}
.side-list .t {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.side-list .t img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-list .cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.side-list h5 {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}

.side-agenda {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-agenda .it {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.side-agenda .it:last-child {
  border-bottom: 0;
}
.side-agenda .it .when {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}
.side-agenda .it .when .d {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.side-agenda .it .when .m {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.side-agenda .it h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}
.side-agenda .it .place {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ===========================================================
   PROFILE DETAIL (teacher / alumni)
   =========================================================== */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, #082544 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 48px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.profile-header::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(205, 163, 73, 0.2) 0%,
    rgba(205, 163, 73, 0) 70%
  );
}
@media (min-width: 800px) {
  .profile-header {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}
.profile-avatar {
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 4px solid rgba(255, 255, 255, 0.18);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-header h1 {
  margin: 8px 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.profile-header .role {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.profile-header .quick {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.profile-header .quick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-header .quick i {
  color: var(--accent);
}

.profile-body {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 992px) {
  .profile-body {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}
.profile-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.profile-section h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0 0 18px;
}
.profile-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-section ul li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}
.profile-section ul li:last-child {
  border-bottom: 0;
}
.profile-section ul li .y {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.profile-section ul li h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}
.profile-section ul li p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

/* ===========================================================
   SEARCH PAGE
   =========================================================== */
.search-hero {
  background: #fff;
  padding: 64px 0 32px;
}
.search-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text-1);
  max-width: 720px;
}
.search-hero p {
  color: var(--text-2);
  margin: 0 0 24px;
  max-width: 680px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
}
.global-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  padding: 14px 18px;
  color: var(--text-1);
}
.global-search button {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.tab.active,
.tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab .count {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
}
.tab:not(.active) .count {
  background: var(--surface);
  color: var(--text-2);
}

.result-item {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px 1fr;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s var(--ease);
}
.result-item:hover {
  background: var(--surface);
}
.result-item .thumb {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.result-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-item .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.result-item h3 {
  margin: 6px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
}
.result-item p {
  color: var(--text-2);
  font-size: 14px;
  margin: 0;
}
@media (max-width: 600px) {
  .result-item {
    grid-template-columns: 1fr;
  }
}
