:root {
  --primary: #123f4d;
  --primary-dark: #092c38;
  --primary-deep: #061f29;
  --secondary: #14b8b0;
  --secondary-dark: #078d88;
  --secondary-light: #dff8f5;
  --primary-light: #e7f5f5;
  --mint: #8ee4dc;
  --mint-soft: #effcfb;
  --accent: #ef7468;
  --accent-dark: #d95b51;
  --accent-light: #fff1ef;
  --dark: #172f38;
  --text: #29454e;
  --muted: #7d9298;
  --background: #f8fcfb;
  --surface: #ffffff;
  --border: #d8ecea;
  --success: #198f83;
  --danger: #d95b68;
  --shadow-sm: 0 7px 20px rgba(18, 63, 77, 0.07);
  --shadow-md: 0 15px 35px rgba(18, 63, 77, 0.1);
  --shadow-lg: 0 22px 48px rgba(18, 63, 77, 0.16);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --transition: 0.25s ease;
}

.public-content,
.public-content * {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

.public-content {
  position: relative;
  min-height: calc(100vh - 163px);
  overflow: hidden;
  padding: 55px 0 80px;
  background:
    radial-gradient(
      circle at 4% 10%,
      rgba(20, 184, 176, 0.1) 0 125px,
      transparent 126px
    ),
    radial-gradient(
      circle at 96% 82%,
      rgba(142, 228, 220, 0.16) 0 155px,
      transparent 156px
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(20, 184, 176, 0.05) 0 60px,
      transparent 61px
    ),
    var(--background);
}

.public-content::before,
.public-content::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.public-content::before {
  width: 70px;
  height: 70px;
  top: 430px;
  left: 5%;
  background: rgba(20, 184, 176, 0.06);
}

.public-content::after {
  width: 48px;
  height: 48px;
  right: 8%;
  top: 620px;
  background: rgba(142, 228, 220, 0.12);
}

.public-content > .container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
}
.content-hero {
  position: relative;
  max-width: 900px;
  margin: 15px auto 55px;
  overflow: visible;
  padding: 10px 30px 10px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.content-hero::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -65px;
  right: -80px;
  border-radius: 50%;
  background: rgba(20, 184, 176, 0.07);
  pointer-events: none;
  z-index: -1;
}

.content-hero::after {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  left: 3%;
  bottom: -35px;
  border-radius: 50%;
  background: rgba(142, 228, 220, 0.12);
  pointer-events: none;
  z-index: -1;
}

.content-hero .content-category {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.content-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  color: var(--secondary-dark);
  background: linear-gradient(135deg, var(--secondary-light), var(--mint-soft));
  border: 1px solid rgba(20, 184, 176, 0.18);
  border-radius: 999px;
  box-shadow:
    0 7px 18px rgba(20, 184, 176, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.content-category::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(20, 184, 176, 0.1);
}

.content-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -1px;
}

.content-hero h1::after {
  content: "";
  display: block;
  width: 65px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--mint));
}

.content-hero p {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.content-list {
  position: relative;
  z-index: 1;
  width: 100%;
}

.content-list .row {
  align-items: stretch;
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-dark),
    var(--secondary),
    var(--mint)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.content-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 184, 176, 0.3);
  box-shadow: var(--shadow-lg);
}

.content-card:hover::before {
  opacity: 1;
}

.content-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--primary-light);
}

.content-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.content-card:hover .content-card-image img {
  transform: scale(1.05);
}

.content-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(142, 228, 220, 0.4) 0 55px,
      transparent 56px
    ),
    linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  font-size: 52px;
}

.content-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.content-card-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.content-card-body h2 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.content-card-body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.content-card-media {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 14px;
}

.content-card-media span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  border: 1px solid rgba(20, 184, 176, 0.1);
  border-radius: 50%;
  font-size: 14px;
}

.content-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: fit-content;
  margin-top: auto;
  padding: 10px 15px;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  border: 1px solid rgba(20, 184, 176, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.content-card-link:hover {
  color: var(--surface);
  background: var(--secondary-dark);
  transform: translateX(3px);
  box-shadow: 0 8px 18px rgba(20, 184, 176, 0.18);
}

.content-detail {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  overflow: hidden;
  padding: 45px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.content-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--secondary),
    var(--mint)
  );
}

.content-detail::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  right: -40px;
  top: -45px;
  border-radius: 50%;
  background: rgba(20, 184, 176, 0.06);
  pointer-events: none;
}

.content-back-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  padding: 8px 14px;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  border: 1px solid rgba(20, 184, 176, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.content-back-link:hover {
  color: var(--surface);
  background: var(--secondary-dark);
  transform: translateX(-3px);
}

.content-detail-header {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.content-detail-header .content-category {
  margin-bottom: 12px;
}

.content-detail-header h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.content-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: none;
  margin: 0 0 38px;
  overflow: hidden;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.content-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.content-body {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
}

.content-body p {
  margin: 0 0 20px;
}

.content-body h2 {
  margin: 38px 0 16px;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 800;
}

.content-body h3 {
  margin: 30px 0 13px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 750;
}

.content-body ul,
.content-body ol {
  margin-bottom: 24px;
  padding-left: 25px;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 25px auto;
  border-radius: var(--radius-sm);
}

.content-body a {
  color: var(--secondary-dark);
  font-weight: 650;
}

.content-video {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.content-video h2,
.content-document h2 {
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 800;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--primary-deep);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-document {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  border: 1px solid rgba(20, 184, 176, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.document-link:hover {
  color: var(--surface);
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(20, 184, 176, 0.18);
}

.content-empty {
  position: relative;
  max-width: 650px;
  margin: 25px auto;
  overflow: hidden;
  padding: 60px 30px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-empty::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(20, 184, 176, 0.07);
}

.content-empty > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  color: var(--secondary-dark);
  background: var(--secondary-light);
  border: 1px solid rgba(20, 184, 176, 0.12);
  border-radius: 50%;
  font-size: 35px;
}

.content-empty h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 25px;
  font-weight: 800;
}

.content-empty p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 991.98px) {
  .top-header .header-content {
    min-height: 92px;
  }

  .top-header .logo-container {
    width: 68px;
    height: 68px;
  }

  .top-header .school-brand h1 {
    font-size: 23px;
  }

  .main-navbar > .container {
    flex-wrap: wrap;
  }

  .main-navbar .navbar-collapse {
    width: 100%;
  }

  .main-navbar .navbar-nav {
    align-items: stretch;
    padding: 10px 0;
  }

  .main-navbar .nav-link {
    min-height: 44px;
  }

  .main-navbar .nav-item::after {
    display: none;
  }

  .main-navbar .dropdown-menu {
    margin: 0 12px 8px;
  }

  .content-detail {
    padding: 35px;
  }
}

@media (max-width: 767.98px) {
  .top-header .header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo brand"
      "actions actions";
    gap: 12px 15px;
    padding: 15px 0;
  }

  .top-header .logo-container {
    grid-area: logo;
    width: 62px;
    height: 62px;
  }

  .top-header .school-brand {
    grid-area: brand;
  }

  .top-header .school-brand h1 {
    font-size: 21px;
  }

  .top-header .header-actions {
    grid-area: actions;
    width: 100%;
    justify-content: flex-end;
  }

  .top-header .header-actions a {
    flex: 1;
    max-width: 180px;
  }

  .main-navbar .navbar-nav {
    width: 100%;
  }

  .main-navbar .nav-item {
    width: 100%;
  }

  .main-navbar .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .main-navbar .dropdown-menu {
    width: calc(100% - 24px);
    min-width: 0;
  }

  .public-content {
    padding: 30px 0 55px;
  }
  .content-hero {
    margin: 5px auto 40px;
    padding: 20px 22px 5px;
  }
  .content-hero h1 {
    font-size: 32px;
  }
  .content-hero p {
    font-size: 14px;
  }

  .content-card-image {
    aspect-ratio: 3 / 2;
  }

  .content-card-body {
    padding: 21px;
  }

  .content-detail {
    padding: 28px 20px;
    border-radius: 27px;
  }

  .content-detail-header h1 {
    font-size: 31px;
  }

  .content-featured-image {
    aspect-ratio: 3 / 2;
    border-radius: 20px;
  }

  .content-body {
    font-size: 15px;
    line-height: 1.8;
  }
}

@media (max-width: 420px) {
  .top-header .school-brand h1 {
    font-size: 19px;
  }

  .top-header .header-actions {
    flex-direction: column;
  }

  .top-header .header-actions a {
    width: 100%;
    max-width: none;
  }

  .content-card-image {
    aspect-ratio: 3 / 2;
  }

  .content-detail-header h1 {
    font-size: 28px;
  }
  .content-hero {
    padding: 15px 18px 5px;
  }
  .content-category {
    font-size: 10px;
  }
  .content-hero h1 {
    font-size: 29px;
  }
}
