@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

:root {
  --ph-primary: #ff7c6d;
  --ph-primary-dark: #dd5c50;
  --ph-soft: #fff0ed;
  --ph-ink: #263238;
  --ph-muted: #6b7280;
  --ph-border: #f1dedb;
}

* { box-sizing: border-box; }
body {
  font-family: 'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ph-ink);
  background: #fff;
  line-height: 1.7;
}

a { text-decoration: none; }
.section-padding { padding: 4rem 0; }
.section-soft { background: linear-gradient(180deg, #fff, var(--ph-soft)); }
.text-ph { color: var(--ph-primary); }
.bg-ph-soft { background: var(--ph-soft); }


.site-header { z-index: 1030; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.navbar-brand strong { display:block; font-size: 1rem; color: var(--ph-ink); }
.navbar-brand small { display:block; font-size: .78rem; color: var(--ph-muted); }
.nav-link { font-weight: 600; color: #39434d; }
.nav-link.active, .nav-link:hover { color: var(--ph-primary) !important; }
.dropdown-menu { border: none; box-shadow: 0 16px 45px rgba(31,41,55,.12); border-radius: 1rem; padding: .65rem; }
.dropdown-item { border-radius: .7rem; padding: .55rem .85rem; }
.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:active {
  background: var(--ph-soft);
  color: var(--ph-primary);
}

.btn-ph {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255,124,109,.28);
}
.btn-ph:hover { background: var(--ph-primary-dark); border-color: var(--ph-primary-dark); color: #fff; }
.btn-outline-ph { border-color: var(--ph-primary); color: var(--ph-primary); }
.btn-outline-ph:hover { background: var(--ph-primary); color: #fff; }
.scroll-top-bubble {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 1025;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ph-primary);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 14px 32px rgba(31,41,55,.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: .2s ease;
}
.scroll-top-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-bubble:hover {
  background: var(--ph-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}
.scroll-top-bubble:focus-visible {
  outline: 3px solid rgba(255,124,109,.28);
  outline-offset: 3px;
}

.hero-carousel {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
}
.hero-carousel .carousel-item {
  background: #fff;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.quick-link-section {
  padding: 1.35rem 0 2.35rem;
  background: linear-gradient(180deg, #fff, var(--ph-soft));
}
.quick-link-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
.quick-card {
  width: 168px;
  min-height: 132px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 1.2rem;
  padding: 1rem .85rem;
  box-shadow: 0 10px 26px rgba(31,41,55,.06);
  transition: .22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31,41,55,.12); }
.quick-icon {
  width: 54px; height: 54px; border-radius: 1rem;
  display: grid; place-items: center;
  background: var(--ph-soft); color: var(--ph-primary); font-size: 1.6rem;
  margin-bottom: .7rem;
  overflow: hidden;
}
.quick-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.quick-card h5 {
  font-size: .98rem;
  line-height: 1.35;
}
.quick-card p {
  line-height: 1.35;
}

.dean-section {
  background:
    linear-gradient(135deg, rgba(255,240,237,.9), rgba(255,255,255,.35)),
    repeating-linear-gradient(135deg, rgba(255,124,109,.08) 0 1px, transparent 1px 18px);
  border-block: 1px solid var(--ph-border);
}
.dean-layout {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.dean-layout-single {
  grid-template-columns: 1fr;
}
.dean-profile-panel,
.dean-video-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,124,109,.2);
  border-radius: .5rem;
  padding: 2rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(31,41,55,.06);
}
.dean-profile-panel {
  border-color: rgba(255,124,109,.24);
  background: #fff;
}
.dean-profile-panel::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255,124,109,.18);
  border-radius: 999px;
  pointer-events: none;
}
.dean-profile-panel::before,
.dean-video-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, var(--ph-primary), rgba(255,124,109,.18));
}
.dean-section-label {
  position: relative;
  z-index: 1;
  color: var(--ph-primary);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.dean-profile-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.5rem;
  align-items: center;
}
.dean-photo-wrap {
  width: 100%;
  aspect-ratio: 6 / 7;
  border-radius: .5rem;
  overflow: hidden;
  background: var(--ph-soft);
  border: 6px solid #fff;
  box-shadow: 0 18px 34px rgba(31,41,55,.14);
}
.dean-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dean-info .eyebrow {
  color: var(--ph-primary);
  font-weight: 800;
  letter-spacing: 0;
}
.dean-info h2 {
  font-weight: 800;
  margin-bottom: .45rem;
}
.dean-info h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}
.dean-email {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ph-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.dean-video-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dean-video-heading .eyebrow {
  color: var(--ph-primary);
  font-weight: 800;
  letter-spacing: 0;
}
.dean-video-heading h3 {
  font-weight: 800;
  margin-bottom: 0;
}
.dean-video,
.admin-video-preview {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: .5rem;
  border: 1px solid var(--ph-border);
  background: #111;
}
.dean-video iframe,
.admin-video-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.admin-dean-preview {
  width: 180px;
  height: 210px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--ph-border);
  background: var(--ph-soft);
}

.newsletter-card {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: .5rem;
  box-shadow: 0 10px 28px rgba(31,41,55,.05);
  transition: .22s ease;
  color: var(--ph-ink);
}
.newsletter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(31,41,55,.1);
  color: var(--ph-primary);
}
.newsletter-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--ph-soft);
}
.newsletter-date {
  padding: 1rem;
  font-weight: 800;
  text-align: center;
}

.section-title .eyebrow { color: var(--ph-primary); font-weight: 800; letter-spacing: .02em; }
.section-title h2 { font-weight: 800; }
.section-title p { color: var(--ph-muted); }
.section-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ph-border);
  background: #fff;
  color: var(--ph-primary);
  display: inline-grid;
  place-items: center;
  transition: .18s ease;
}
.slider-btn:hover {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
  color: #fff;
}
.content-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: .25rem .1rem 1rem;
}
.content-slider::-webkit-scrollbar {
  display: none;
}
.slider-item {
  flex: 0 0 clamp(280px, 31%, 370px);
  scroll-snap-align: start;
}
.newsletter-slider .slider-item {
  flex-basis: clamp(230px, 26%, 320px);
}
.slider-item > .news-card,
.slider-item > .newsletter-card {
  height: 100%;
}

.news-card, .activity-card, .person-card, .curriculum-card, .download-card {
  border: 1px solid var(--ph-border);
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
  height: 100%;
  box-shadow: 0 10px 28px rgba(31,41,55,.05);
  transition: .22s ease;
}
.news-card:hover, .activity-card:hover, .person-card:hover, .curriculum-card:hover, .download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(31,41,55,.1);
}
.card-img-main { height: 220px; object-fit: cover; width: 100%; }
.news-date {
  color: var(--ph-primary);
  font-weight: 700;
  font-size: .9rem;
}
.badge-ph { background: var(--ph-soft); color: var(--ph-primary); border: 1px solid var(--ph-border); }

.admission-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.admission-link-card {
  --admission-card-accent: var(--ph-primary);
  --admission-card-soft: var(--ph-soft);
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid var(--ph-border);
  border-top: 6px solid var(--admission-card-accent);
  border-radius: .5rem;
  background:
    linear-gradient(180deg, var(--admission-card-soft), #fff 48%),
    #fff;
  box-shadow: 0 10px 28px rgba(31,41,55,.05);
  overflow: hidden;
  transition: .22s ease;
}
.admission-link-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 18px solid var(--admission-card-accent);
  transform: rotate(18deg);
  opacity: .08;
  pointer-events: none;
}
.admission-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(31,41,55,.1);
}
.admission-link-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: var(--admission-card-accent);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 12px 26px rgba(31,41,55,.12);
}
.admission-link-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-top: 1rem;
}
.admission-link-content h2 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: .45rem;
  overflow-wrap: anywhere;
}
.admission-link-content p {
  color: var(--ph-muted);
  margin-bottom: 1rem;
}
.admission-link-content .btn {
  box-shadow: none;
  background: var(--admission-card-accent);
  border-color: var(--admission-card-accent);
  color: #fff;
}
.admission-link-content .btn:hover {
  filter: brightness(.94);
  color: #fff;
}

.download-category-list {
  display: grid;
  gap: 2.25rem;
}
.download-category {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--ph-border);
}
.download-category:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.download-category-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.download-category-label {
  display: inline-block;
  color: var(--ph-primary);
  font-weight: 800;
}
.download-category-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  margin: .15rem 0 0;
}
.download-card-body {
  min-width: 0;
  width: 100%;
}
.download-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.download-file-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .4rem .78rem;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ph-ink);
  font-weight: 700;
  line-height: 1.2;
  transition: .18s ease;
}
.download-file-link:hover {
  transform: translateY(-1px);
  border-color: var(--ph-primary);
  color: var(--ph-primary);
  box-shadow: 0 10px 24px rgba(31,41,55,.08);
}
.download-file-pdf { color: #c62828; }
.download-file-doc,
.download-file-docx,
.download-file-odt,
.download-file-rtf { color: #1d4ed8; }
.download-file-xls,
.download-file-xlsx,
.download-file-csv { color: #15803d; }
.download-file-ppt,
.download-file-pptx { color: #c2410c; }
.download-file-url { color: var(--ph-primary); }
.admin-download-file-list {
  display: grid;
  gap: .6rem;
}
.admin-download-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--ph-border);
  border-radius: .5rem;
  background: #fff;
}
.admin-download-file-item a:first-child {
  color: var(--ph-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.page-hero {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,124,109,.2), transparent 30%),
    linear-gradient(135deg, #fff, var(--ph-soft));
  border-bottom: 1px solid var(--ph-border);
}
.page-hero h1 { font-weight: 800; }

.person-photo { height: 260px; object-fit: cover; width: 100%; background: var(--ph-soft); }
.personnel-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.personnel-page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .42rem .9rem;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ph-ink);
  font-weight: 700;
}
.personnel-page-nav a:hover,
.personnel-page-nav a.active {
  border-color: var(--ph-primary);
  background: var(--ph-primary);
  color: #fff;
}
.personnel-selected-heading {
  display: grid;
  gap: .95rem;
  margin-bottom: 2rem;
}
.personnel-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  min-height: 38px;
  padding: .38rem .85rem;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ph-primary);
  font-weight: 800;
}
.personnel-back-link:hover {
  border-color: var(--ph-primary);
  background: var(--ph-primary);
  color: #fff;
}
.personnel-selected-title {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--ph-border);
  border-left: 7px solid var(--ph-primary);
  border-radius: .5rem;
  background:
    linear-gradient(90deg, rgba(255,124,109,.1), rgba(255,255,255,.88)),
    #fff;
}
.personnel-selected-title > span {
  display: block;
  color: var(--ph-primary);
  font-weight: 800;
  margin-bottom: .2rem;
}
.personnel-selected-title > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.personnel-selected-title h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0;
}
.personnel-page-card {
  --personnel-card-accent: var(--ph-primary);
  --personnel-card-soft: var(--ph-soft);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  min-height: 126px;
  padding: 1.25rem;
  border: 1px solid var(--ph-border);
  border-radius: .5rem;
  background:
    linear-gradient(135deg, var(--personnel-card-soft), #fff 58%),
    #fff;
  color: var(--ph-ink);
  box-shadow: 0 10px 28px rgba(31,41,55,.05);
  transition: .22s ease;
  overflow: hidden;
}
.personnel-page-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--personnel-card-accent);
}
.row > [class*="col"]:nth-child(4n+1) .personnel-page-card {
  --personnel-card-accent: #ff7c6d;
  --personnel-card-soft: #fff0ed;
}
.row > [class*="col"]:nth-child(4n+2) .personnel-page-card {
  --personnel-card-accent: #14b8a6;
  --personnel-card-soft: #e9fbf8;
}
.row > [class*="col"]:nth-child(4n+3) .personnel-page-card {
  --personnel-card-accent: #4f8df7;
  --personnel-card-soft: #edf4ff;
}
.row > [class*="col"]:nth-child(4n+4) .personnel-page-card {
  --personnel-card-accent: #f59e0b;
  --personnel-card-soft: #fff7e6;
}
.personnel-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(31,41,55,.1);
  color: var(--ph-ink);
}
.personnel-page-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .5rem;
  background: #fff;
  color: var(--personnel-card-accent);
  font-size: 1.55rem;
  box-shadow: inset 0 0 0 1px rgba(31,41,55,.06);
}
.personnel-page-card-content {
  min-width: 0;
}
.personnel-page-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .35rem;
  overflow-wrap: anywhere;
}
.personnel-page-card span {
  color: var(--personnel-card-accent);
  font-weight: 800;
}
.personnel-page-card-arrow {
  margin-left: auto;
  color: var(--personnel-card-accent);
  font-size: 1.25rem;
  flex: 0 0 auto;
}
.personnel-section-list {
  display: grid;
  gap: 2.5rem;
}
.personnel-section {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ph-border);
}
.personnel-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.personnel-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.personnel-section-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0;
}
.personnel-profile-card {
  text-align: center;
}
.personnel-profile-card .person-photo {
  aspect-ratio: 4 / 5;
  height: auto;
}
.personnel-profile-body {
  min-width: 0;
  padding: 1.1rem 1rem 1.2rem;
}
.personnel-person-name {
  color: var(--ph-ink);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: .3rem;
  overflow-wrap: break-word;
  word-break: keep-all;
  text-wrap: balance;
}
.personnel-person-position {
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: keep-all;
}
.personnel-detail {
  color: var(--ph-muted);
  font-size: .84rem;
  line-height: 1.55;
  margin-top: .65rem;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.personnel-detail div,
.personnel-detail p {
  margin-bottom: .4rem;
}
.personnel-detail p:last-child,
.personnel-detail div:last-child,
.personnel-detail ul:last-child,
.personnel-detail ol:last-child {
  margin-bottom: 0;
}
.admin-rich-toolbar {
  display: flex;
  gap: .35rem;
  padding: .45rem;
  border: 1px solid var(--ph-border);
  border-bottom: 0;
  border-radius: .5rem .5rem 0 0;
  background: #fff;
}
.admin-rich-editor {
  min-height: 120px;
  padding: .75rem;
  border: 1px solid var(--ph-border);
  border-radius: 0 0 .5rem .5rem;
  background: #fff;
  outline: 0;
}
.admin-rich-editor:focus {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 .2rem rgba(255,124,109,.13);
}
.admin-page-filter {
  width: min(260px, 100%);
}
.admin-color-field {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.admin-color-field .form-control-color {
  width: 58px;
  height: 42px;
  padding: .25rem;
}
.admin-page-color {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  color: var(--ph-muted);
  font-size: .82rem;
  font-weight: 700;
}
.admin-page-color span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.12);
}
.admin-person-thumb-cell {
  width: 74px;
  min-width: 74px;
}
.admin-person-thumb-frame {
  width: 54px;
  height: 64px;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--ph-soft);
  border: 1px solid var(--ph-border);
  flex: 0 0 auto;
}
.admin-person-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.curriculum-selected-heading {
  display: grid;
  gap: .95rem;
  margin-bottom: 2rem;
}
.curriculum-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  min-height: 38px;
  padding: .38rem .85rem;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ph-primary);
  font-weight: 800;
}
.curriculum-back-link:hover {
  border-color: var(--ph-primary);
  background: var(--ph-primary);
  color: #fff;
}
.curriculum-selected-title {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--ph-border);
  border-top: 7px solid var(--ph-primary);
  border-radius: .5rem;
  background:
    linear-gradient(135deg, rgba(20,184,166,.08), rgba(255,255,255,.88)),
    #fff;
}
.curriculum-selected-title > span {
  display: block;
  color: var(--ph-primary);
  font-weight: 800;
  margin-bottom: .2rem;
}
.curriculum-selected-title > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.curriculum-selected-title h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0;
}
.curriculum-level-grid {
  align-items: stretch;
}
.curriculum-level-card {
  --curriculum-level-accent: #14b8a6;
  --curriculum-level-soft: #e9fbf8;
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 224px;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--ph-border);
  border-top: 6px solid var(--curriculum-level-accent);
  border-radius: .5rem;
  background:
    linear-gradient(180deg, var(--curriculum-level-soft), #fff 48%),
    #fff;
  color: var(--ph-ink);
  box-shadow: 0 10px 28px rgba(31,41,55,.05);
  transition: .22s ease;
  overflow: hidden;
}
.curriculum-level-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 18px solid var(--curriculum-level-accent);
  transform: rotate(18deg);
  opacity: .08;
  pointer-events: none;
}
.row > [class*="col"]:nth-child(4n+1) .curriculum-level-card {
  --curriculum-level-accent: #14b8a6;
  --curriculum-level-soft: #e9fbf8;
}
.row > [class*="col"]:nth-child(4n+2) .curriculum-level-card {
  --curriculum-level-accent: #4f8df7;
  --curriculum-level-soft: #edf4ff;
}
.row > [class*="col"]:nth-child(4n+3) .curriculum-level-card {
  --curriculum-level-accent: #f59e0b;
  --curriculum-level-soft: #fff7e6;
}
.row > [class*="col"]:nth-child(4n+4) .curriculum-level-card {
  --curriculum-level-accent: #ff7c6d;
  --curriculum-level-soft: #fff0ed;
}
.curriculum-level-card:hover {
  transform: translateY(-4px);
  color: var(--ph-ink);
  box-shadow: 0 16px 38px rgba(31,41,55,.1);
}
.curriculum-level-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--curriculum-level-accent);
  font-weight: 800;
}
.curriculum-level-card-top i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.curriculum-level-card-mark {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: var(--curriculum-level-accent);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 12px 26px rgba(31,41,55,.12);
}
.curriculum-level-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 1rem 0 .75rem;
  overflow-wrap: anywhere;
}
.curriculum-level-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.curriculum-level-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .28rem .7rem;
  border: 1px solid rgba(31,41,55,.08);
  border-radius: 999px;
  background: #fff;
  color: var(--curriculum-level-accent);
  font-weight: 800;
  line-height: 1.2;
}
.curriculum-category-list {
  display: grid;
  gap: 2.35rem;
}
.curriculum-category {
  padding-bottom: 2.35rem;
  border-bottom: 1px solid var(--ph-border);
}
.curriculum-category:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.curriculum-category-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.curriculum-category-label {
  display: inline-block;
  color: var(--ph-primary);
  font-weight: 800;
}
.curriculum-category-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  margin: .15rem 0 0;
}
.curriculum-list-card .quick-icon {
  font-size: 1.45rem;
}
.curriculum-title-link {
  color: var(--ph-ink);
  overflow-wrap: anywhere;
}
.curriculum-title-link:hover {
  color: var(--ph-primary);
}
.curriculum-single-card {
  border-top: 5px solid var(--ph-primary);
}
.curriculum-card-body {
  min-width: 0;
  width: 100%;
}
.curriculum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.info-page {
  width: min(920px, 100%);
  margin: 0 auto;
}
.info-page-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: .5rem;
  border: 1px solid var(--ph-border);
  margin-bottom: 1.5rem;
}
.info-page-content {
  font-size: 1.05rem;
  line-height: 1.85;
}
.info-page-content h2,
.info-page-content h3,
.info-page-content h4 {
  font-weight: 800;
  margin: 1.55rem 0 .75rem;
}
.info-page-content p,
.info-page-content ul,
.info-page-content ol {
  margin-bottom: 1rem;
}
.info-page-content a {
  color: var(--ph-primary);
  font-weight: 700;
}
.info-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--ph-border);
}
.admin-info-page-editor {
  min-height: 260px;
}
.footer-main {
  background: linear-gradient(135deg, var(--ph-primary-dark), var(--ph-primary));
  color: #fff;
}
.footer-logo { width: 64px; height:64px; object-fit: contain; background:#fff; border-radius: 1rem; padding: .35rem; }
.footer-main h6 { font-weight: 800; margin-bottom: .85rem; }
.footer-links { list-style: none; padding-left: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.9); }
.footer-links a:hover { color: #fff; }
.footer-service-links {
  display: grid;
  gap: .3rem;
}
.footer-service-links li {
  margin-bottom: 0;
}
.footer-service-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .12rem 0;
  color: rgba(255,255,255,.84);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: .18s ease;
}
.footer-service-links a::before {
  content: "\203A";
  flex: 0 0 auto;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1;
  transition: .18s ease;
}
.footer-service-links a:hover {
  transform: translateX(3px);
  color: #fff7e6;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .25rem;
}
.footer-service-links a:hover::before {
  color: #fff7e6;
}
.footer-service-links a:focus-visible {
  outline: 2px solid rgba(255,255,255,.56);
  outline-offset: 2px;
}
.footer-line { border-color: rgba(255,255,255,.26); }

.admin-sidebar { min-height: 100vh; background: #25313b; color: #fff; }
.admin-sidebar a { color: rgba(255,255,255,.86); display: block; padding: .75rem 1rem; border-radius: .8rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-content { background: #f8fafc; min-height: 100vh; }
.admin-card { border: 0; border-radius: 1.2rem; box-shadow: 0 10px 28px rgba(31,41,55,.08); }

body.contrast-mode { background:#000 !important; color:#fff !important; }
body.contrast-mode .bg-white, body.contrast-mode .quick-card, body.contrast-mode .dean-profile-panel, body.contrast-mode .dean-video-panel, body.contrast-mode .slider-btn, body.contrast-mode .newsletter-card, body.contrast-mode .news-card, body.contrast-mode .activity-card, body.contrast-mode .person-card, body.contrast-mode .personnel-page-card, body.contrast-mode .curriculum-level-card, body.contrast-mode .curriculum-selected-title, body.contrast-mode .curriculum-card, body.contrast-mode .admission-link-card, body.contrast-mode .download-card, body.contrast-mode .navbar { background:#111 !important; color:#fff !important; }
body.contrast-mode .scroll-top-bubble { background:#fff !important; color:#000 !important; }
body.contrast-mode a, body.contrast-mode .nav-link, body.contrast-mode .navbar-brand strong, body.contrast-mode .navbar-brand small { color:#fff !important; }
body.gray-mode { filter: grayscale(1); }

@media (max-width: 991px) {
  .dean-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .quick-card { width: calc(50% - .55rem); min-height: 120px; }
  .dean-profile-panel, .dean-video-panel { padding: 1.25rem; }
  .dean-profile-body { grid-template-columns: 1fr; }
  .section-actions { width: 100%; }
  .slider-item,
  .newsletter-slider .slider-item { flex-basis: min(86vw, 340px); }
  .brand-logo { width: 48px; height: 48px; }
  .navbar-brand strong { font-size: .85rem; }
  .navbar-brand small { font-size: .68rem; }
  .download-category-heading { align-items: start; flex-direction: column; }
  .curriculum-category-heading { align-items: start; flex-direction: column; }
  .curriculum-selected-title > div { align-items: start; flex-direction: column; }
  .personnel-section-heading { align-items: start; flex-direction: column; }
  .scroll-top-bubble {
    right: .9rem;
    bottom: .9rem;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}
