/* ==========================================================================
   DEPARTMENTS REVAMP STYLES
   ========================================================================== */

:root {
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-pill: 99px;
  --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}

/* 1. Hero Header Section */
.dept-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 60px 0 45px;
  color: #ffffff;
  border-bottom: 3px solid var(--gold);
}

.dept-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.dept-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(194, 145, 26, 0.3);
}

.dept-title {
  font-family: var(--font-sans), 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #ffffff;
}

.dept-subtitle {
  font-size: 14.5px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.dept-subtitle i {
  color: var(--gold);
  font-size: 17px;
}

/* 2. Quick Info Bar */
.dept-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  margin-top: 10px;
}

.dept-quick-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.dept-quick-info .info-item i {
  font-size: 22px;
  color: var(--gold);
  background: rgba(255,255,255,0.1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-quick-info .info-item div {
  display: flex;
  flex-direction: column;
}

.dept-quick-info .info-item span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.dept-quick-info .info-item a,
.dept-quick-info .info-item strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.dept-quick-info .info-item a:hover {
  color: var(--gold) !important;
}

/* 3. Content Layout */
.dept-content-section {
  padding: 50px 0 60px;
  background: #fcfdfc;
}

.dept-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,36,14,0.06);
  box-shadow: 0 10px 30px -10px rgba(10,36,14,0.04);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-quint), box-shadow 0.3s var(--ease-out-quint);
}

.dept-card-header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(10,36,14,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
}

.dept-card-header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-wash);
  color: var(--green-vivid);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-sans);
  margin: 0;
}

.dept-card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.dept-card-body {
  padding: 28px;
}

.main-card .dept-card-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal-soft);
}

.main-card .dept-card-body h3,
.main-card .dept-card-body h4 {
  color: var(--green-vivid);
  font-weight: 700;
  font-family: var(--font-sans);
  margin-top: 25px;
  margin-bottom: 12px;
}

.main-card .dept-card-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.main-card .dept-card-body li {
  margin-bottom: 8px;
}

/* 4. Divisions Layout */
.dept-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 25px;
}
.dept-section-title span {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green-vivid);
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.dept-section-title .title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(46,139,62,0.15), transparent);
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.division-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10,36,14,0.06);
  box-shadow: 0 8px 24px -8px rgba(10,36,14,0.05);
  padding: 24px 28px;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-out-quint), border-color 0.28s ease;
  border-left: 4px solid var(--green-vivid);
  position: relative;
}

.division-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(10,36,14,0.12);
  border-color: var(--green-vivid) var(--green-vivid) var(--green-vivid) var(--gold);
}

.division-card .div-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(10,36,14,0.03);
  padding-bottom: 12px;
}

.division-card .div-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--green-wash);
  color: var(--green-vivid);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.division-card:hover .div-icon {
  background: rgba(194, 145, 26, 0.1);
  color: var(--gold);
}

.division-card .div-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-sans);
  margin: 0;
}

.division-card .div-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--charcoal-soft);
}

.division-card .div-body p {
  margin-bottom: 10px;
}

.division-card .div-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.division-card .div-body li {
  margin-bottom: 6px;
}

.division-card .div-body strong {
  color: var(--green-vivid);
}

/* 5. Map & Gallery Styling */
.map-card .dept-card-body {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-grid .gallery-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid rgba(10,36,14,0.06);
}

.gallery-grid .gallery-item.main-item {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-quint);
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.08);
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .dept-hero {
    padding: 50px 0 35px;
  }
  .dept-title {
    font-size: 30px;
  }
  .dept-quick-info {
    padding: 14px 18px;
  }
  .dept-quick-info .info-item {
    min-width: 100%;
  }
}
