.departments-page { --dept-green: #06483c; }
.departments-hero { position: relative; display: flex; min-height: 390px; align-items: center; overflow: hidden; background: #174b3e url('images/science-banner.JPG') center 42%/cover no-repeat; color: #fff; }
.departments-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,48,39,.92), rgba(5,63,49,.76) 48%, rgba(3,47,41,.16)), linear-gradient(0deg, rgba(3,48,40,.35), transparent 55%); content: ''; }
.departments-hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 62px; }
.departments-hero h1 { max-width: 860px; margin: 0 0 15px; color: #fff; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; }
.departments-hero-content > p:not(.eyebrow) { max-width: 540px; margin-bottom: 23px; color: rgba(255,255,255,.83); font-size: 15px; }
.departments-hero-note { position: absolute; right: max(24px, calc((100vw - 1160px) / 2)); bottom: 26px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 11px; line-height: 1.5; }
.departments-hero-note > i { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 18px; }
.departments-hero-note strong { font-size: 12px; }
.department-intro { padding-bottom: 62px; }
.department-intro .section-heading { margin-bottom: 45px; }
.section-heading > p:last-child { color: var(--muted); }
.department-feature { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(32px, 6vw, 78px); }
.feature-photo { position: relative; height: 405px; overflow: hidden; border-radius: 9px; background: #d6e3da; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(5,42,33,.48), transparent); content: ''; }
.photo-label { position: absolute; z-index: 1; bottom: 17px; left: 18px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 600; }
.photo-label i { color: #f1aa86; }
.feature-copy { padding: 12px 0; }
.department-number { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: #6b8278; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.department-number i { width: 24px; height: 1px; background: var(--coral); }
.feature-copy h2 { margin-bottom: 15px; color: var(--forest); font-size: clamp(30px, 3.3vw, 43px); }
.feature-copy p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.feature-copy .body-lead { color: var(--ink); font-size: 15px; }
.feature-copy .btn { margin-top: 8px; }
.soft-section.jal-section { padding-top: 77px; padding-bottom: 74px; }
.section-head-row { align-items: end; }
.section-head-row h2 { margin-bottom: 7px; color: var(--forest); }
.section-sub { max-width: 590px; margin: 0; color: var(--muted); font-size: 13px; }
.mission-mark { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 10px 13px; border: 1px solid #d7dfd3; border-radius: 30px; background: rgba(255,255,255,.6); color: var(--forest); font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.mission-mark i { color: #25816d; font-size: 17px; }
.jal-grid { margin-top: 10px; }
.jal-card { height: 100%; overflow: hidden; border: 1px solid #e9e6dc; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(21,54,43,.045); }
.media-poster, .photo-card-image { position: relative; height: 275px; overflow: hidden; background: #d2dfd4; }
.media-poster img, .photo-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jal-card:hover .media-poster img, .jal-card:hover .photo-card-image img { transform: scale(1.025); }
.media-poster::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,39,32,.53), transparent 62%); content: ''; pointer-events: none; }
.play-button { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; place-items: center; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.88); border-radius: 50%; background: rgba(7,76,60,.83); color: #fff; font-size: 26px; transition: transform .2s ease, background .2s ease; }
.play-button:hover { transform: translate(-50%, -50%) scale(1.08); background: #df6548; color: #fff; }
.media-tag, .photo-count { position: absolute; z-index: 1; bottom: 15px; left: 16px; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .9px; }
.jal-card-copy { padding: 20px 22px 22px; }
.card-kicker { color: #8a9a91; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.jal-card-copy h3 { margin: 7px 0 8px; color: var(--forest); font-size: 20px; }
.jal-card-copy p { min-height: 44px; margin-bottom: 13px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 700; }
.text-link:hover { color: var(--coral); }
.water-note { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 13px 16px; border: 1px solid #e3e4d9; border-radius: 6px; background: rgba(255,255,255,.57); color: var(--muted); font-size: 11px; }
.water-note > i { color: var(--green); font-size: 15px; }
.water-note a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--forest); font-weight: 700; white-space: nowrap; }
.panchayat-section { padding-top: 83px; padding-bottom: 83px; }
.panchayat-feature { grid-template-columns: .9fr 1.1fr; }
.panchayat-feature .feature-photo { height: 370px; }
.department-cta { padding: 60px 0 66px; background: var(--forest); color: #fff; text-align: center; }
.department-cta h2 { margin: 0 auto 12px; color: #fff; font-size: clamp(28px, 3.5vw, 42px); }
.department-cta > .container > p:not(.eyebrow) { max-width: 560px; margin: 0 auto 21px; color: #c5d8cf; font-size: 13px; }
.department-carousel { isolation: isolate; }
.department-carousel .carousel-inner, .department-carousel .carousel-item { width: 100%; height: 100%; }
.department-carousel .carousel-item > img { width: 100%; height: 100%; object-fit: cover; }
.department-carousel .carousel-control-prev, .department-carousel .carousel-control-next { z-index: 3; width: 12%; }
.department-carousel .carousel-control-prev-icon, .department-carousel .carousel-control-next-icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background-color: rgba(5,55,44,.78); background-size: 48%; }
.department-carousel .carousel-indicators { z-index: 4; margin-bottom: 13px; }
.department-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; margin-right: 4px; margin-left: 4px; border: 0; border-radius: 50%; opacity: .65; }
.department-carousel .carousel-indicators .active { opacity: 1; }
.jal-feature-box { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; overflow: hidden; margin-top: 22px; border: 1px solid #e6e4da; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(21,54,43,.05); }
.jal-photo-box { grid-template-columns: 1.1fr .9fr; margin-top: 16px; }
.jal-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(22px, 4vw, 42px); }
.jal-feature-copy h3 { margin: 0 0 10px; color: var(--forest); font-family: var(--display); font-size: clamp(21px, 2.4vw, 29px); }
.jal-feature-copy p { margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.jal-media-carousel { min-width: 0; height: 330px; overflow: hidden; background: #173d33; }
.jal-media-carousel .carousel-item > img, .jal-media-carousel .carousel-item > video { display: block; width: 100%; height: 330px; object-fit: cover; }
.jal-media-carousel .carousel-item > video { background: #0b221c; }
.jal-media-carousel .carousel-control-prev, .jal-media-carousel .carousel-control-next { width: 14%; }
.jal-media-carousel .carousel-indicators { margin-bottom: 13px; }
@media (max-width: 767.98px) {
  .departments-hero { min-height: 390px; }
  .departments-hero-content { padding-top: 45px; padding-bottom: 90px; }
  .departments-hero-note { right: 22px; bottom: 17px; }
  .department-intro { padding-top: 55px; padding-bottom: 45px; }
  .department-intro .section-heading { margin-bottom: 30px; }
  .department-feature, .panchayat-feature { grid-template-columns: 1fr; gap: 23px; }
  .feature-photo { height: 300px; }
  .panchayat-feature .feature-copy { order: 2; }
  .panchayat-feature .feature-photo { order: 1; height: 300px; }
  .section-head-row { align-items: flex-start; }
  .mission-mark { margin-top: 15px; }
  .soft-section.jal-section, .panchayat-section { padding-top: 55px; padding-bottom: 55px; }
  .media-poster, .photo-card-image { height: 235px; }
  .jal-feature-box, .jal-photo-box { grid-template-columns: 1fr; }
  .jal-photo-box .jal-media-carousel { order: 1; }
  .jal-photo-box .jal-feature-copy { order: 2; }
  .jal-media-carousel, .jal-media-carousel .carousel-item > img, .jal-media-carousel .carousel-item > video { height: 280px; }
  .water-note { align-items: flex-start; flex-wrap: wrap; }
  .water-note a { margin-left: 25px; }
}
@media (max-width: 480px) {
  .departments-hero h1 { font-size: 35px; }
  .jal-media-carousel, .jal-media-carousel .carousel-item > img, .jal-media-carousel .carousel-item > video { height: 235px; }
  .feature-photo, .panchayat-feature .feature-photo { height: 245px; }
  .feature-copy h2 { font-size: 29px; }
  .jal-card-copy { padding: 18px; }
  .jal-card-copy p { min-height: 0; }
  .water-note a { margin-left: 25px; }
}
