﻿/* ============================================================
   MARIA POLYTECHNIC COLLEGE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â DEPARTMENT PAGES
   Exact shared format based on the supplied visual reference
   Dependency: css/common.css
   ============================================================ */

:root {
  --dept-navy: #102a55;
  --dept-navy-dark: #081d3d;
  --dept-blue: #2f63dc;
  --dept-orange: #ff7b32;
  --dept-cream: #faf5eb;
  --dept-soft: #f5f7fb;
  --dept-text: #18305b;
  --dept-muted: #67748a;
  --dept-line: #cfd7e4;
  --dept-white: #ffffff;
}

body.department-page {
  background: var(--dept-white);
}

.department-page main,
.department-page main * {
  box-sizing: border-box;
}

.department-page main {
  overflow: hidden;
  background: #fff;
  color: var(--dept-text);
}

.department-page main img {
  display: block;
  max-width: 100%;
}

.department-page main h1,
.department-page main h2,
.department-page main h3 {
  margin: 0;
  font-family: var(--ff-head);
}

.department-page main p {
  margin: 0;
  color: var(--dept-muted);
  font-size: 1rem;
  line-height: 1.78;
}

.department-page main ul,
.department-page main ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================================
   HERO ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â same structure shown in reference
   ============================================================ */

.department-page .dept-hero {
  position: relative;
  min-height: clamp(390px, 48vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  background: var(--dept-navy-dark);
  color: #fff;
  text-align: left;
}

.department-page .dept-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center 46%;
  background-size: cover;
  transform: scale(1.025);
}

.department-page .dept-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 25, 54, 0.4) 0%,
      rgba(12, 39, 77, 0.4) 54%,
      rgba(12, 39, 77, 0.58) 100%
    ),
    linear-gradient(to top, rgba(7, 25, 54, 0.46), transparent 68%);
  content: "";
}

.department-page .dept-hero::after {
  display: none;
}

.department-page .dept-hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(47px, 9vw, 62px) 0 clamp(36px, 7vw, 45px);
}

.department-page .dept-hero__content::before {
  display: none;
}

.department-page .dept-hero__eyebrow {
  margin: 0 0 24px;
  color: #ffb36f;
  font-family: var(--ff-head);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

.department-page .dept-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.department-page .dept-breadcrumb a,
.department-page .dept-breadcrumb span {
  color: inherit;
}

.department-page .dept-breadcrumb a:hover {
  color: #ffb36f;
}

.department-page .dept-hero h1 {
  max-width: 1080px;
  margin: 0;
  color: #fff;
  font-family: var(--ff-head) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  text-shadow: 0 7px 34px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   SHARED SECTION TYPOGRAPHY
   ============================================================ */

.department-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--dept-blue);
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.department-page .eyebrow span {
  display: inline-block;
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: var(--dept-orange);
  flex-shrink: 0;
}

.department-page .eyebrow--light {
  color: #ffbd82;
}

.department-page .eyebrow--light span {
  background: #ffbd82;
}

.department-page .dept-content h2,
.department-page .section-head .h2 {
  color: var(--dept-navy);
  font-family: var(--ff-head) !important;
  font-size: clamp(2.75rem, 5vw, 4.75rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.012em !important;
  text-transform: none !important;
}

.department-page .dept-content h3,
.department-page .dept-support__grid h3,
.department-page .vm-card h2,
.department-page .vm-card h3 {
  font-family: var(--ff-head) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.department-page .dept-content h3 {
  color: var(--dept-navy);
  font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.department-page .section-head {
  max-width: 850px;
  margin: 0 0 48px;
  text-align: left;
}

.department-page .section-head .h2::after {
  display: none;
}

/* ============================================================
   OVERVIEW ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â exact clean split shown in reference
   ============================================================ */

.department-page .dept-overview {
  position: relative;
  padding: clamp(68px, 11vw, 82px) 0;
  background: #fff;
}

.department-page .dept-overview::before {
  display: none;
}

.department-page .dept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.96fr);
  gap: clamp(42px, 8vw, 62px);
  align-items: center;
}

.department-page .dept-overview .dept-content {
  max-width: 650px;
  padding: 0;
}

.department-page .dept-overview .dept-content p {
  margin-top: 23px;
  color: #68758c;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.85;
}

.department-page .dept-overview .dept-content p + p {
  margin-top: 16px;
}

.department-page .dept-overview .dept-image {
  position: relative;
  min-height: clamp(286px, 48vw, 336px);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.department-page .dept-overview .dept-image::before {
  position: absolute;
  top: 36px;
  right: 36px;
  bottom: -36px;
  left: -36px;
  z-index: 0;
  border: 1px solid #c8d0dc;
  content: "";
}

.department-page .dept-overview .dept-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(286px, 48vw, 336px);
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   COURSE HIGHLIGHTS ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â clean card grid
   ============================================================ */

.department-page .dept-highlights {
  padding: clamp(52px, 9vw, 67px) 0;
  background: var(--dept-cream);
}

.department-page .dept-highlights .section-head {
  max-width: 760px;
}

.department-page .dept-pill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  border: none;
  counter-reset: dept-highlight;
}

.department-page .dept-pill-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid rgba(16, 42, 85, 0.07);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(16, 42, 85, 0.06);
  color: var(--dept-navy);
  counter-increment: dept-highlight;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.department-page .dept-pill-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(16, 42, 85, 0.1);
  border-color: rgba(255, 123, 50, 0.35);
}

.department-page .dept-pill-grid li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 123, 50, 0.12);
  border-radius: 8px;
  color: var(--dept-orange);
  content: counter(dept-highlight, decimal-leading-zero);
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.department-page .dept-pill-grid li:nth-child(even) {
  padding-left: 20px;
  border-right: 1px solid rgba(16, 42, 85, 0.07);
}

/* ============================================================
   VISION & MISSION ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â open dark section
   ============================================================ */

.department-page .vision-mission {
  padding: clamp(56px, 9vw, 70px) 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 123, 50, 0.13),
      transparent 31%
    ),
    var(--dept-navy);
  color: #fff;
}

.department-page .vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.department-page .vm-card {
  padding: 20px clamp(26px, 6vw, 44px) 20px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.department-page .vm-card:nth-child(2) {
  padding-right: 0;
  padding-left: clamp(26px, 6vw, 44px);
  border-right: 0;
}

.department-page .vm-card::before {
  display: block;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.11);
  content: "VISION";
  font-family: var(--ff-head);
  font-size: clamp(4rem, 7vw, 7.2rem);
  font-weight: 700;
  line-height: 0.72;
}

.department-page .vm-card:nth-child(2)::before {
  content: "MISSION";
}

.department-page .vm-card h2,
.department-page .vm-card h3 {
  color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.75rem) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
}

.department-page .vm-card p {
  max-width: 610px;
  margin-top: 19px;
  color: rgba(238, 244, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.78;
}

/* ============================================================
   CURRICULUM & LABS ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â same image/text split
   ============================================================ */

.department-page .dept-features {
  padding: clamp(68px, 11vw, 81px) 0;
  background: #fff;
  color: var(--dept-text);
}

.department-page .dept-features .dept-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.96fr);
}

.department-page .dept-grid.reverse .dept-content {
  order: 1;
}

.department-page .dept-grid.reverse .dept-image {
  order: 2;
}

.department-page .dept-features .dept-content {
  max-width: 690px;
}

.department-page .dept-features .eyebrow {
  color: var(--dept-blue);
}

.department-page .dept-features .dept-content h2,
.department-page .dept-features .dept-content h3,
.department-page .dept-features .dept-subhead {
  color: var(--dept-navy) !important;
}

.department-page .dept-features .dept-content > p {
  margin-top: 22px;
  color: var(--dept-muted) !important;
  line-height: 1.8;
}

.department-page .feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 28px 0 36px;
}

.department-page .feature-list li {
  position: relative;
  padding: 16px 20px 16px 44px;
  background: var(--dept-soft);
  border-radius: 10px;
  color: var(--dept-navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.department-page .feature-list li:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 42, 85, 0.06);
}

.department-page .feature-list li::before {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dept-orange);
  box-shadow: 0 0 0 4px rgba(255, 123, 50, 0.15);
  content: "";
}

.department-page .dept-subhead {
  margin-top: 0 !important;
  padding-top: 28px;
  border-top: 1px solid var(--dept-line);
}

.department-page .dept-subhead + p {
  margin-top: 15px;
}

.department-page .dept-features__intro-content h2 {
  margin-bottom: 24px;
}
.dept-features__intro-content p {
  color: var(--dept-text, #68758c);
  line-height: 1.8;
}
.dept-features__intro-content .feature-list-label {
  margin-top: 36px !important;
  font-weight: 600;
  color: var(--dept-navy);
}

.dept-features .dept-image {
  position: relative;
  min-height: clamp(312px, 50vw, 358px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.department-page .dept-features .dept-image::before {
  position: absolute;
  top: 36px;
  right: -36px;
  bottom: -36px;
  left: 36px;
  z-index: 0;
  border: 1px solid #c8d0dc;
  content: "";
}

.department-page .dept-features .dept-image::after {
  display: none;
}

.department-page .dept-features .dept-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(312px, 50vw, 358px);
  object-fit: cover;
}

/* ============================================================
   CAREERS
   ============================================================ */

.department-page .dept-careers {
  padding: clamp(58px, 10vw, 74px) 0;
  background: var(--dept-cream);
}

.department-page .dept-careers .section-head {
  margin-bottom: 52px;
}

.department-page .dept-careers .dept-grid {
  grid-template-columns: minmax(410px, 0.96fr) minmax(0, 1.04fr);
}

.department-page .dept-careers .dept-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  align-self: start;
}

.department-page .dept-careers .dept-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 54, 0.48), transparent 58%);
  content: "";
}

.department-page .dept-careers .dept-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.department-page .dept-careers .dept-content {
  max-width: 720px;
}

.department-page .dept-careers .dept-content > p + h3 {
  margin-top: 30px;
}

/* ============================================================
   SKILL DEVELOPMENT ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â full-bleed split redesign
   ============================================================ */

.department-page .dept-careers--skill {
  padding: clamp(39px, 8vw, 55px) 0;
  background: #f8f9fc;
  overflow: hidden;
}

.department-page .dept-careers__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 40px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px);
}

/* Left: image ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â fixed aspect, rounded */
.department-page .dept-careers__visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dept-navy);
  aspect-ratio: 4 / 5;
  min-height: 400px;
}

.department-page .dept-careers__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.department-page .dept-careers__visual:hover img {
  transform: scale(1.06);
}

.department-page .dept-careers__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 25, 54, 0.3) 0%,
    rgba(7, 25, 54, 0.18) 38%,
    transparent 62%
  );
  transition: opacity 0.4s ease;
  z-index: 1;
}

.department-page .dept-careers__visual:hover .dept-careers__visual-overlay {
  opacity: 0.85;
}

/* Right: content panel */
.department-page .dept-careers__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.department-page .dept-careers__panel .eyebrow {
  margin-bottom: 0;
}

.department-page .dept-careers__panel .h2 {
  color: var(--dept-navy);
  font-family: var(--ff-head) !important;
  font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  margin: 0;
}

.department-page .dept-careers__panel > p {
  color: var(--dept-muted);
  font-size: 0.97rem !important;
  line-height: 1.72 !important;
  text-align: justify !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  margin: 0;
}

/* Skill tag pills */
.department-page .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.department-page .skill-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid rgba(255, 123, 50, 0.28);
  border-radius: 99px;
  color: var(--dept-navy);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(16, 42, 85, 0.05);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.department-page .skill-tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dept-orange);
  flex-shrink: 0;
}

.department-page .skill-tags li:hover {
  background: rgba(255, 123, 50, 0.08);
  border-color: rgba(255, 123, 50, 0.45);
  transform: translateY(-2px);
}

/* Sub-section: Career & Academic Foundation */
.department-page .dept-careers__sub {
  padding: 20px 22px;
  background: #fff;
  border-radius: 12px;
  border-left: 3px solid var(--dept-orange);
  box-shadow: 0 2px 12px rgba(16, 42, 85, 0.06);
}

.department-page .dept-careers__sub h3 {
  font-family: var(--ff-head) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--dept-navy) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 8px !important;
}

.department-page .dept-careers__sub p {
  color: var(--dept-muted);
  font-size: 0.9rem !important;
  line-height: 1.68 !important;
  text-align: justify !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  margin: 0;
}

/* Responsive */
@media (max-width: 820px) {
  .department-page .dept-careers__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .department-page .dept-careers__visual {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .department-page .dept-careers__inner {
    padding: 0 20px;
  }
}

.department-page .career-role-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.department-page .career-role-list li {
  position: relative;
  padding: 16px 20px 16px 42px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(16, 42, 85, 0.04);
  box-shadow: 0 4px 12px rgba(16, 42, 85, 0.02);
  color: var(--dept-navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  transition: transform 0.25s, box-shadow 0.25s;
}

.department-page .career-role-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 42, 85, 0.05);
}

.department-page .career-role-list li::before {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--dept-orange);
  content: "";
}

/* ============================================================
   DEPARTMENT INITIATIVES ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â dark card grid
   ============================================================ */

.department-page .dept-support {
  padding: clamp(52px, 9vw, 66px) 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(255, 123, 50, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(47, 99, 220, 0.1) 0%, transparent 50%),
    #0d2347;
  position: relative;
  overflow: hidden;
}

.department-page .dept-support .section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.department-page .dept-support .section-head .eyebrow {
  color: rgba(255, 189, 130, 0.90);
}

.department-page .dept-support .section-head .eyebrow span {
  background: rgba(255, 189, 130, 0.3);
}

.department-page .dept-support .section-head .h2 {
  color: #fff !important;
}

.department-page .dept-support__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border: none;
  counter-reset: dept-support;
}

.department-page .dept-support__grid article {
  position: relative;
  min-width: 0;
  padding: 36px 32px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  counter-increment: dept-support;
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.32s ease,
              border-color 0.32s ease,
              box-shadow 0.32s ease;
}


.department-page .dept-support__grid article:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 123, 50, 0.55);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 123, 50, 0.25) inset;
}

.department-page .dept-support__grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.department-page .dept-support__grid article::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  background: rgba(255, 123, 50, 0.2);
  border: 1px solid rgba(255, 123, 50, 0.3);
  border-radius: 11px;
  color: #ff9f5a;
  content: counter(dept-support, decimal-leading-zero);
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.department-page .dept-support__grid h3 {
  color: var(--dept-orange) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin-bottom: 14px;
}

.department-page .dept-support__grid p {
  margin-top: 0;
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: justify !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {
  .department-page .dept-grid,
  .department-page .dept-features .dept-grid,
  .department-page .dept-careers .dept-grid {
    grid-template-columns: 1fr 1fr;
    gap: 54px;
  }

  .department-page .dept-pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .department-page .dept-hero h1 {
  }

  .department-page .dept-support__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-page .dept-support__grid article:nth-child(2) {
    border-right: 0;
  }

  .department-page .dept-support__grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dept-line);
  }
}

@media (max-width: 820px) {
  .department-page .dept-hero__content {
    width: min(100% - 40px, 1180px);
  }

  .department-page .dept-grid,
  .department-page .dept-features .dept-grid,
  .department-page .dept-careers .dept-grid {
    grid-template-columns: 1fr;
  }

  .department-page .dept-grid.reverse .dept-content,
  .department-page .dept-grid.reverse .dept-image {
    order: initial;
  }

  .department-page .dept-overview .dept-image,
    .department-page .dept-features .dept-image {
    margin: 20px 34px 34px 0;
  }

  .department-page .vm-grid {
    grid-template-columns: 1fr;
  }

  .department-page .vm-card {
    padding: 18px 0 50px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .department-page .vm-card:nth-child(2) {
    padding: 50px 0 18px;
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .department-page .dept-hero {
    min-height: 330px;
  }

  .department-page .dept-hero__content {
    width: min(100% - 32px, 1180px);
    padding-top: 58px;
    padding-bottom: 48px;
  }

  .department-page .dept-hero__eyebrow {
    margin-bottom: 20px;
  }

  .department-page .dept-breadcrumb {
    margin-bottom: 9px;
    font-size: 0.98rem;
  }

  .department-page .dept-hero h1 {
    line-height: 1.05 !important;
  }

  .department-page .dept-overview,
  .department-page .dept-highlights,
  .department-page .vision-mission,
  .department-page .dept-features,
  .department-page .dept-careers,
  .department-page .dept-support {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .department-page .dept-content h2,
  .department-page .section-head .h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem) !important;
  }

  .department-page .dept-overview .dept-image,
    .department-page .dept-features .dept-image {
    min-height: 350px;
    margin: 10px 20px 20px 0;
  }

  .department-page .dept-overview .dept-image img,
  .department-page .dept-features .dept-image img {
    height: 350px;
  }

  .department-page .dept-overview .dept-image::before,
  .department-page .dept-features .dept-image::before {
    top: 18px;
    right: 18px;
    bottom: -18px;
    left: -18px;
  }

  .department-page .dept-features .dept-image::before {
    right: -18px;
    left: 18px;
  }

  .department-page .dept-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-page .feature-list,
  .department-page .career-role-list {
    grid-template-columns: 1fr;
  }

  .department-page .feature-list li,
  .department-page .career-role-list li {
    border-right: 0;
  }

    .department-page .dept-careers .dept-image {
    min-height: 350px;
  }

  .department-page .dept-careers .dept-image img {
    height: 350px;
  }

  .department-page .dept-support__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .department-page .dept-hero h1 {
  }

  .department-page .dept-pill-grid,
  .department-page .dept-support__grid {
    grid-template-columns: 1fr;
  }

  .department-page .vm-card::before {
    font-size: 3.5rem;
  }

    .department-page .dept-overview .dept-image,
  .department-page .dept-features .dept-image,
  .department-page .dept-careers .dept-image {
    min-height: 300px;
  }

  .department-page .dept-overview .dept-image img,
  .department-page .dept-features .dept-image img,
  .department-page .dept-careers .dept-image img {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .department-page .dept-hero__bg {
    transform: none;
  }
}

/* ============================================================
   ACHIEVEMENTS-STYLE V2 OVERRIDES
   The hero uses a new isolated class so legacy breadcrumb and
   .dept-hero pseudo-element rules cannot affect it.
   ============================================================ */

:root {
  --department-navy: #0d2347;
  --department-navy-2: #173766;
  --department-blue: #2f67d8;
  --department-orange: #f47a31;
  --department-gold: #f5a623;
  --department-cream: #f7f1e6;
  --department-soft: #f5f7fb;
  --department-text: #27344a;
  --department-muted: #68748a;
  --department-line: #dfe5ef;
}

.department-page .department-main {
  overflow: hidden;
  background: #fff;
  color: var(--department-text);
}

.department-page .department-accent {
  color: var(--department-orange);
}

/* ---------- exact Achievements-style hero ---------- */

.department-page .department-hero {
  position: relative;
  min-height: clamp(340px, 48vh, 500px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--department-navy);
  color: #fff;
  text-align: left;
}

.department-page .department-hero__media,
.department-page .department-hero__overlay {
  position: absolute;
  inset: 0;
}

.department-page .department-hero__media {
  z-index: -2;
  background-position: center 44%;
  background-size: cover;
  transform: scale(1.035);
}

.department-page .department-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(6, 19, 43, 0.4) 0%,
      rgba(13, 35, 71, 0.35) 54%,
      rgba(13, 35, 71, 0.34) 100%
    ),
    linear-gradient(to top, rgba(6, 19, 43, 0.42), transparent 60%);
}

.department-page .department-hero__content {
  width: 100%;
  padding-top: clamp(42px, 9vw, 55px);
  padding-bottom: clamp(42px, 9vw, 55px);
}

.department-page .department-hero__eyebrow {
  margin: 0 0 13px;
  color: #ffc58f;
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.department-page .department-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-family: var(--ff-head);
  font-size: clamp(2.8rem, 6vw, 5.35rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 7px 32px rgba(0, 0, 0, 0.42);
}

.department-page .department-hero__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(239, 244, 255, 0.90);
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ---------- Achievements-style section headings ---------- */

.department-page .department-main .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--department-blue);
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.department-page .department-main .eyebrow span {
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: var(--department-orange);
}

.department-page .department-main .section-head {
  max-width: 850px;
  margin-bottom: 46px;
  text-align: left;
}

.department-page .department-main .section-head .h2,
.department-page .department-main .dept-content h2 {
  color: var(--department-navy);
  font-family: var(--ff-head) !important;
  font-size: clamp(2.05rem, 4vw, 3.65rem) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
}

.department-page .department-main .section-head .h2::after {
  display: none;
}

/* ---------- clean overview matching the reference ---------- */

.department-page .department-main .dept-overview {
  padding: clamp(51px, 9vw, 66px) 0;
  background: #fff;
}

.department-page .department-main .dept-overview::before {
  display: none;
}

.department-page .department-main .dept-overview .dept-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: clamp(34px, 8vw, 57px);
  align-items: center;
}

.department-page .department-main .dept-overview .dept-content {
  max-width: 700px;
  padding: 0;
}

.department-page .department-main .dept-overview .dept-content p {
  margin-top: 22px;
  color: var(--department-muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.82;
}

.department-page .department-main .dept-overview .dept-image {
  min-height: clamp(280px, 46vw, 330px);
  margin: 0 30px 30px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.department-page .department-main .dept-overview .dept-image::before {
  top: 30px;
  right: -30px;
  bottom: -30px;
  left: 30px;
  border: 1px solid rgba(13, 35, 71, 0.25);
}

.department-page .department-main .dept-overview .dept-image img {
  height: clamp(280px, 46vw, 330px);
  object-fit: cover;
}

/* ---------- remove boxed styling from lists and cards ---------- */

.department-page .department-main .dept-pill-grid {
  border-top: none;
}

.department-page .department-main .dept-pill-grid li {
  background: #fff;
  border: 1px solid rgba(13, 35, 71, 0.07);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(13, 35, 71, 0.06);
}

.department-page .department-main .dept-pill-grid li:nth-child(even) {
  border-right: 1px solid rgba(13, 35, 71, 0.07);
}

.department-page .department-main .vision-mission {
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(244, 122, 49, 0.17),
      transparent 30%
    ),
    var(--department-navy);
}

.department-page .department-main .vm-card {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.department-page .department-main .vm-card:nth-child(2) {
  border-right: 0;
}

.department-page .department-main .dept-support__grid article {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .department-page .department-main .dept-overview .dept-grid {
    grid-template-columns: 1fr;
  }

  .department-page .department-main .dept-overview .dept-image {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .department-page .department-hero {
    min-height: 300px;
  }

  .department-page .department-hero__content {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .department-page .department-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .department-page .department-hero__lead {
    font-size: 0.96rem;
  }

  .department-page .department-main .dept-overview {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .department-page .department-main .section-head .h2,
  .department-page .department-main .dept-content h2 {
    font-size: clamp(1.9rem, 10vw, 2.7rem) !important;
  }

  .department-page .department-main .dept-overview .dept-image {
    min-height: 340px;
    margin: 0 18px 18px 0;
  }

  .department-page .department-main .dept-overview .dept-image img {
    height: 340px;
  }

  .department-page .department-main .dept-overview .dept-image::before {
    top: 18px;
    right: -18px;
    bottom: -18px;
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .department-page .department-hero__media {
    transform: none;
  }
}

/* ============================================================
   DEPARTMENT HIGHLIGHT CARDS (Redesigned)
   ============================================================ */
.department-page .dept-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

/* ============================================================
   DEPARTMENT HIGHLIGHT CARDS (Redesigned)
   ============================================================ */
.department-page .dept-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}
.department-page .dept-card-grid li {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(16, 42, 85, 0.04);
  border: 1px solid rgba(16, 42, 85, 0.06);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.department-page .dept-card-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 42, 85, 0.08);
  border-color: rgba(255, 123, 50, 0.3);
}
.department-page .dept-card-grid .card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 123, 50, 0.1);
  border-radius: 10px;
  color: var(--dept-orange);
}
.department-page .dept-card-grid .card-icon svg {
  width: 24px;
  height: 24px;
}
.department-page .dept-card-grid span {
  color: var(--dept-navy);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--ff-body);
}

/* ============================================================
   ROUNDED IMAGES UPDATE
   ============================================================ */
.department-page .dept-overview .dept-image,
.department-page .dept-overview .dept-image::before,
.department-page .dept-overview .dept-image img,
.department-page .dept-features .dept-image,
.department-page .dept-features .dept-image::before,
.department-page .dept-features .dept-image img,
.department-page .dept-careers .dept-image,
.department-page .dept-careers .dept-image::before,
.department-page .dept-careers .dept-image img {
  border-radius: 16px !important;
}



/* ============================================================
   CURRICULUM REDESIGN LAYOUT
   ============================================================ */
.dept-features__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: start;
  gap: clamp(36px, 6vw, 64px);
}

.department-page .feature-list--full {
  margin: 64px 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.dept-features__panel {
  margin-top: 20px;
  padding: 36px 40px;
  background: var(--dept-soft, #f4f6fa);
  border-left: 4px solid var(--dept-orange);
  border-radius: 12px;
}
.dept-features__panel h3 {
  color: var(--dept-navy);
  margin-bottom: 15px;
  font-family: var(--ff-head);
  font-size: 1.4rem;
}
.dept-features__panel p {
  color: var(--dept-text, #68758c);
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 1050px) {
  .dept-features__intro {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .department-page .feature-list--full {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  .dept-features__intro {
    grid-template-columns: 1fr;
  }
  .department-page .feature-list--full {
    grid-template-columns: 1fr !important;
  }
  .dept-features__panel {
    padding: 24px 20px;
  }
}
