/* ==========================================================================
   St. John Technical & Educational Campus - Unified Departmental / Academic Pages
   Brand Scheme: Teal (#449284, #2c6b66, #1e4e4a) & Amber/Gold (#ffc107)
   ========================================================================== */

/* Academics Hero Banner */
.dept-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
}

.dept-hero img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.dept-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
  padding: 30px 35px 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.dept-hero-title h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dept-hero-title span {
  color: #ffc107;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-visit-site {
  background: #ffc107;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-visit-site:hover {
  background: #e5a800;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.5);
}

/* Overview & Vision/Mission Card */
.dept-overview-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 35px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
}

.dept-overview-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  text-align: justify;
  margin-bottom: 20px;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.vm-box {
  background: #f8fafc;
  border-left: 4px solid #449284;
  border-radius: 0 12px 12px 0;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.vm-box.mission-box {
  border-left-color: #ffc107;
}

.vm-box h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm-box h5 i {
  color: #449284;
}

.vm-box.mission-box h5 i {
  color: #d97706;
}

.vm-box p,
.vm-box ul {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 0;
}

.vm-box ul {
  padding-left: 20px;
}

.vm-box ul li {
  margin-bottom: 8px;
}

.vm-box ul li:last-child {
  margin-bottom: 0;
}

/* Principal / Leadership Message Section */
.dept-leadership-section {
  background: linear-gradient(135deg, #f0f7f5 0%, #e6f2ef 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  border: 1px solid #cce5df;
}

.leader-portrait-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  border: 1px solid #e2e8f0;
}

.leader-portrait-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.leader-meta {
  background: #1e293b;
  color: #ffffff;
  padding: 16px;
}

.leader-meta h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.leader-meta span {
  font-size: 0.88rem;
  color: #ffc107;
  font-weight: 600;
}

.leader-quote-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #1e4e4a;
  font-size: 1.65rem;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.leader-quote-content h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #ffc107;
  border-radius: 2px;
  margin-top: 6px;
}

.leader-quote-content p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.75;
  text-align: justify;
  margin-bottom: 16px;
}

/* Departments / Specializations Grid */
.dept-offerings-section {
  margin-bottom: 50px;
}

.dept-heading-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #e6f2ef;
  color: #2c6b66;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.dept-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #1e293b;
  font-size: 1.75rem;
  margin-bottom: 25px;
}

.dept-course-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dept-course-card:hover {
  transform: translateY(-4px);
  border-color: #449284;
  box-shadow: 0 8px 24px rgba(68, 146, 132, 0.18);
}

.dept-course-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f7f5;
  color: #449284;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dept-course-card:hover .dept-course-icon {
  background: #449284;
  color: #ffffff;
}

.dept-course-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
}

/* Tabs Section: Achievements, Skills, Activities */
.dept-tabs-section {
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 40px 30px;
  margin-bottom: 50px;
}

.dept-nav-pills .nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.dept-nav-pills .nav-link i {
  font-size: 1.15rem;
  color: #64748b;
}

.dept-nav-pills .nav-link.active {
  background: linear-gradient(135deg, #449284 0%, #2c6b66 100%);
  color: #ffffff;
  border-color: #449284;
  box-shadow: 0 4px 14px rgba(68, 146, 132, 0.3);
}

.dept-nav-pills .nav-link.active i {
  color: #ffc107;
}

.dept-tab-pane {
  background: #ffffff;
  border-radius: 14px;
  padding: 35px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.dept-tab-pane h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #1e293b;
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-tab-pane h4 i {
  color: #449284;
}

.dept-bullet-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.dept-bullet-list li {
  font-family: 'Roboto', sans-serif;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 10px;
}

.dept-bullet-list li:last-child {
  margin-bottom: 0;
}

/* Brochure CTA Banner */
.dept-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 40px;
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
}

.dept-cta-banner h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.dept-cta-banner p {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 0;
}

.dept-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
}

.btn-cta-apply {
  background: #ffc107;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-cta-apply:hover {
  background: #e5a800;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.4);
}

.btn-cta-brochure {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-cta-brochure:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}
