/* ============================================
   AYLF — DEPARTMENT PAGE
   Theme: Navy blue + gold
   ============================================ */
body[data-theme="department"] { background: #ffffff; }
body[data-theme="department"] .hero-image {
  background-image: url("../images/gallery/17.jpg");
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-theme="department"] .section-white { background: #ffffff; }
body[data-theme="department"] .section-soft { background: #f0f3f8; }
body[data-theme="department"] .section-blue { background: #0a1a33; color: #fff; }
body[data-theme="department"] .section-blue .section-title h2 { color: #d4af37; }
body[data-theme="department"] .section-blue .section-title p { color: rgba(255, 255, 255, .6); }

body[data-theme="department"] .departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
body[data-theme="department"] .department-card {
  border-radius: 8px;
  padding: 40px 32px 34px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  display: flex; flex-direction: column; min-height: 320px;
  background: #fff;
  border: 1px solid rgba(11, 11, 11, .08);
  box-shadow: 0 4px 18px rgba(10, 26, 51, .06);
}
body[data-theme="department"] .section-blue .department-card {
  background: #0f2545;
  border-color: rgba(212, 175, 55, .25);
}
body[data-theme="department"] .department-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(43, 94, 167, .18);
  border-color: #2b5ea7;
}
body[data-theme="department"] .section-blue .department-card:hover {
  box-shadow: 0 24px 50px rgba(212, 175, 55, .18);
  border-color: #d4af37;
}
body[data-theme="department"] .department-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: #d4af37; transition: height .35s;
}
body[data-theme="department"] .department-card:hover::before { height: 100%; }
body[data-theme="department"] .department-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 94, 167, .12), rgba(74, 142, 217, .05));
  color: #2b5ea7; font-size: 24px; margin-bottom: 24px;
  transition: background .3s, color .3s;
}
body[data-theme="department"] .section-blue .department-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, .18), rgba(212, 175, 55, .05));
  color: #d4af37;
}
body[data-theme="department"] .department-card:hover .department-icon {
  background: #2b5ea7; color: #fff;
}
body[data-theme="department"] .section-blue .department-card:hover .department-icon {
  background: #d4af37; color: #0a1a33;
}
body[data-theme="department"] .department-number {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #a8871f; margin-bottom: 8px; display: block;
}
body[data-theme="department"] .section-blue .department-number { color: #d4af37; }
body[data-theme="department"] .department-card h4 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  letter-spacing: -.04em; line-height: 1.3;
  color: #0a1a33; margin: 0 0 14px;
}
body[data-theme="department"] .section-blue .department-card h4 { color: #d4af37; }
body[data-theme="department"] .department-excerpt {
  font-size: 14px; color: #5a6472;
  line-height: 1.75; margin: 0 0 24px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
body[data-theme="department"] .section-blue .department-excerpt { color: rgba(255, 255, 255, .72); }
body[data-theme="department"] .department-card-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 11, 11, .08);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #0a1a33;
}
body[data-theme="department"] .section-blue .department-card-cta {
  border-top-color: rgba(212, 175, 55, .25);
  color: #d4af37;
}
body[data-theme="department"] .department-card-cta .arrow {
  font-size: 16px; color: #d4af37; transition: transform .3s;
}
body[data-theme="department"] .department-card:hover .department-card-cta .arrow { transform: translateX(5px); }

/* Modal */
body[data-theme="department"] .aylf-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 26, 51, .92);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 24px; overflow-y: auto;
}
body[data-theme="department"] .aylf-modal-overlay.active { opacity: 1; visibility: visible; }
body[data-theme="department"] .aylf-modal-container {
  background: #fff; border-radius: 12px;
  max-width: 800px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(30px) scale(.97);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  border-top: 4px solid #d4af37;
}
body[data-theme="department"] .aylf-modal-overlay.active .aylf-modal-container { transform: translateY(0) scale(1); }
body[data-theme="department"] .aylf-modal-close {
  position: sticky; top: 12px; float: right;
  margin-right: 12px; width: 42px; height: 42px;
  border-radius: 50%; border: none;
  background: #0a1a33; color: #d4af37;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s, color .25s;
  z-index: 10;
}
body[data-theme="department"] .aylf-modal-close:hover { background: #d4af37; color: #0a1a33; transform: rotate(90deg); }
body[data-theme="department"] .aylf-modal-content { display: none; }
body[data-theme="department"] .aylf-modal-content.loaded { display: block; }
body[data-theme="department"] .aylf-department-header {
  padding: 40px 50px 30px;
  background: linear-gradient(135deg, #f0f3f8 0%, #fff 100%);
  border-bottom: 1px solid rgba(11, 11, 11, .08);
}
body[data-theme="department"] .aylf-department-header .dept-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a1a33, #1a3a6b);
  color: #d4af37; font-size: 28px; margin-bottom: 22px;
}
body[data-theme="department"] .aylf-department-header h2 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  letter-spacing: -.04em; color: #0a1a33;
  margin: 0 0 10px;
}
body[data-theme="department"] .dept-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #a8871f; margin: 0;
}
body[data-theme="department"] .aylf-department-body {
  padding: 40px 50px 24px;
  font-size: 15px; line-height: 1.85; color: #3a4450;
}
body[data-theme="department"] .aylf-department-body p { margin: 0 0 18px; }
body[data-theme="department"] .aylf-department-footer {
  padding: 24px 50px 32px;
  border-top: 1px solid rgba(11, 11, 11, .08);
  display: flex; gap: 14px; flex-wrap: wrap;
  background: #faf9f6;
}
body[data-theme="department"] .aylf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 24px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 3px; border: none; cursor: pointer;
  transition: background .25s, transform .25s, color .25s;
  text-decoration: none;
}
body[data-theme="department"] .aylf-btn-primary { background: #0a1a33; color: #d4af37; }
body[data-theme="department"] .aylf-btn-primary:hover { background: #d4af37; color: #0a1a33; transform: translateY(-2px); }
body[data-theme="department"] .aylf-btn-outline {
  background: transparent; color: #0a1a33;
  border: 1px solid rgba(10, 26, 51, .25);
}
body[data-theme="department"] .aylf-btn-outline:hover { background: #0a1a33; color: #d4af37; transform: translateY(-2px); }

body[data-theme="department"] .cta-section {
  background: linear-gradient(135deg, #d4af37 0%, #a8871f 100%);
  color: #0a1a33;
}
body[data-theme="department"] .cta-section h2 { color: #0a1a33; }
body[data-theme="department"] .cta-section h2 em { color: #142d54; opacity: .75; }
body[data-theme="department"] .cta-section .cta-right p { color: rgba(10, 26, 51, .78); }
body[data-theme="department"] .cta-section .eyebrow.light { color: #0a1a33; }
body[data-theme="department"] .cta-section .eyebrow.light > span { background: #0a1a33; }
body[data-theme="department"] .cta-section .btn-lime { background: #0a1a33; color: #d4af37; }
body[data-theme="department"] .cta-section .cta-decoration { color: rgba(10, 26, 51, .07); }

body[data-theme="department"] .section-blue .stat-card {
  background: #0f2545; border-color: rgba(212, 175, 55, .25);
}
body[data-theme="department"] .section-blue .stat-card .stat-number { color: #d4af37; }

@media (max-width: 820px) {
  body[data-theme="department"] .departments-grid { grid-template-columns: 1fr; gap: 18px; }
  body[data-theme="department"] .department-card { padding: 34px 26px 28px; min-height: auto; }
  body[data-theme="department"] .aylf-modal-overlay { padding: 0; align-items: flex-start; }
  body[data-theme="department"] .aylf-modal-container { border-radius: 0; max-height: 100vh; min-height: 100vh; }
  body[data-theme="department"] .aylf-department-header { padding: 28px 24px 22px; }
  body[data-theme="department"] .aylf-department-header h2 { font-size: 24px; }
  body[data-theme="department"] .aylf-department-body { padding: 28px 24px 16px; font-size: 14px; }
  body[data-theme="department"] .aylf-department-footer { padding: 20px 24px 28px; }
}