@import url("style.css");

/* -------------------------------------------
   Hero Section Modifications
------------------------------------------- */
.department-hero-panel {
  height: auto;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(12, 40, 80, 0.08);
  overflow: visible;
}

.department-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr; /* Shifted to give dense text more room */
  gap: 2rem;
  align-items: center;
}

.department-hero-panel .hero-copy {
  padding: 1.25rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.department-hero .hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin: 0 0 0.35rem 0;
  line-height: 1.1;
  color: #10345a;
}

.department-hero .hero-copy p {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  color: #34566f;
  line-height: 1.6;
}

.department-hero .page-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.department-hero-panel .hero-image img {
  width: 100%;
  height: auto;
  min-height: 320px;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
}

/* -------------------------------------------
   Stats Ticker 
------------------------------------------- */
.stats-ticker {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(10, 30, 60, 0.06);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Allows wrapping for longer items like "Industrial Training" */
  margin-top: 1.5rem;
}

.stats-ticker .ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 130px;
  text-align: center;
}

.ticker-icon-img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.4rem;
}

.stats-ticker .ticker-item strong {
  display: block;
  font-size: 1.15rem;
  color: #10345a;
}

.stats-ticker .ticker-item span:last-child {
  font-size: 0.85rem;
  color: #4b657a;
  line-height: 1.25;
  margin-top: 0.25rem;
}

/* -------------------------------------------
   Programs Grid
------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.program-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(12, 40, 80, 0.06);
}

.program-card img {
  width: 100%;
  height: 15rem; /* Increased to fit multi-line descriptions nicely */
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}

.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.program-card .card-overlay {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: #fff;
}

.program-card h3 {
  margin: 0 0 0.45rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.program-card p {
  margin: 0 0 0.85rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.program-card:hover img {
  transform: scale(1.04);
}

/* -------------------------------------------
   About Grid & Features
------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.5fr minmax(280px, 1.2fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.about-grid > * {
  min-height: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(12, 40, 80, 0.04);
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.5rem;
}

.logo-card img {
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
}

.about-copy {
  background: #fff;
  padding: 2rem;
}

.about-copy h2 {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
  color: #10345a;
  line-height: 1.2;
}

.about-copy p {
  color: #34566f;
  line-height: 1.6;
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
  box-shadow: none;
}

.feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(12, 40, 80, 0.05);
  height: 100%;
}

.feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.feature-card h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  color: #10345a;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b657a;
  line-height: 1.5;
}

/* -------------------------------------------
   Lists & Split Content Areas
------------------------------------------- */
.section-card ul {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  color: #34566f;
  font-size: 1rem;
  line-height: 1.6;
}

.section-card ul li {
  margin-bottom: 0.6rem;
}

.section-card ul li strong {
  color: #10345a;
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.facts-list div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #edf1f5;
}

.facts-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.facts-list strong {
  color: #10345a;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.facts-list span {
  color: #4b657a;
  font-size: 1rem;
  line-height: 1.45;
}

/* -------------------------------------------
   Staff Grids
------------------------------------------- */
.department-staff-grid .staff-mini-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

/* -------------------------------------------
   Responsive Breakpoints
------------------------------------------- */
@media (max-width: 1080px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .department-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .department-hero-panel .hero-copy {
    padding: 1rem !important;
  }
  
  .department-hero-panel .hero-image img {
    min-height: 240px;
    max-height: 320px;
  }
  
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .programs-grid,
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .stats-ticker {
    gap: 0.75rem;
    padding: 0.85rem;
  }
  
  .stats-ticker .ticker-item {
    min-width: 45%;
    margin-bottom: 0.5rem;
  }
}