/**
 * Planning department — uniform shell + readable content + image fixes
 */
body.dept-theme-plan {
  background: transparent !important;
}

body.dept-theme-plan #main-content .main-container,
body.dept-theme-plan #main-content .page-content-wrap {
  max-width: var(--dept-shell-max, 1500px) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--dept-shell-pad-x, 2rem) !important;
  padding-right: var(--dept-shell-pad-x, 2rem) !important;
  box-sizing: border-box !important;
}

body.dept-theme-plan #main-content .main-layout,
body.dept-theme-plan #main-content > .content-grid,
body.dept-theme-plan #main-content .page-content-wrap .content-grid {
  display: grid !important;
  grid-template-columns: var(--dept-sidebar-col, 300px) minmax(0, 1fr) !important;
  gap: var(--dept-col-gap, 2rem) !important;
  max-width: var(--dept-shell-max, 1500px) !important;
  width: 100% !important;
  margin: 0 auto 2.5rem !important;
  padding: 0 var(--dept-shell-pad-x, 2rem) !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

body.dept-theme-plan #main-content .sidebar,
body.dept-theme-plan #main-content aside.sidebar {
  width: 100% !important;
  max-width: var(--dept-sidebar-col, 300px) !important;
  min-width: 0 !important;
  position: sticky !important;
  top: 96px !important;
  align-self: start !important;
  max-height: calc(100vh - 110px) !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 1.25rem 1rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

body.dept-theme-plan #main-content .sidebar h3,
body.dept-theme-plan #main-content .sidebar .sidebar-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #059669 !important;
  padding-bottom: 0.65rem !important;
  margin: 0 0 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
}

body.dept-theme-plan #main-content .sidebar h3 i,
body.dept-theme-plan #main-content .sidebar .sidebar-title i {
  color: #059669 !important;
}

body.dept-theme-plan #main-content .sidebar-menu,
body.dept-theme-plan #main-content .sidebar-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.dept-theme-plan #main-content .sidebar-menu li,
body.dept-theme-plan #main-content .sidebar-nav li {
  margin-bottom: 0.15rem !important;
}

body.dept-theme-plan #main-content .sidebar-menu a,
body.dept-theme-plan #main-content .sidebar-nav a {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  padding: 0.6rem 0.7rem !important;
  border-radius: 8px !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  border-left: none !important;
  transform: none !important;
  background: transparent !important;
}

body.dept-theme-plan #main-content .sidebar-menu a.active,
body.dept-theme-plan #main-content .sidebar-menu a:hover,
body.dept-theme-plan #main-content .sidebar-nav a.active,
body.dept-theme-plan #main-content .sidebar-nav a:hover {
  background: #ecfdf5 !important;
  color: #0f766e !important;
}

body.dept-theme-plan #main-content .sidebar-menu a.active,
body.dept-theme-plan #main-content .sidebar-nav a.active {
  font-weight: 600 !important;
}

body.dept-theme-plan #main-content .sidebar-menu a i,
body.dept-theme-plan #main-content .sidebar-nav a i {
  color: #059669 !important;
  width: 1.1rem !important;
  flex-shrink: 0 !important;
}

body.dept-theme-plan #main-content .sidebar-menu a.active i,
body.dept-theme-plan #main-content .sidebar-nav a.active i {
  color: #047857 !important;
}

body.dept-theme-plan #main-content .sidebar-image-container {
  display: none !important;
}

body.dept-theme-plan #main-content .sidebar-card {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.dept-theme-plan #main-content .content-main,
body.dept-theme-plan #main-content .content-area {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 2rem 2.25rem 2.5rem !important;
  box-shadow: 0 16px 48px rgba(11, 30, 61, 0.12) !important;
  color: #1e293b !important;
}

body.dept-theme-plan #main-content > .hero-section {
  max-width: var(--dept-shell-max, 1500px) !important;
  width: 100% !important;
  margin: 0 auto 2rem !important;
  padding: 2rem !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
  text-align: center !important;
}

body.dept-theme-plan #main-content .content-main p,
body.dept-theme-plan #main-content .content-area p,
body.dept-theme-plan #main-content .content-main li,
body.dept-theme-plan #main-content .content-area li,
body.dept-theme-plan #main-content .doctoral-list li,
body.dept-theme-plan #main-content .doctoral-list li span {
  color: #1e293b !important;
}

body.dept-theme-plan #main-content .lecture-image,
body.dept-theme-plan #main-content .brochure-image img,
body.dept-theme-plan #main-content .faculty-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.dept-theme-plan #main-content .lecture-image-container {
  min-height: 220px !important;
  background: #f1f5f9 !important;
}

body.dept-theme-plan #main-content .lecture-image-container .lecture-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  object-fit: cover !important;
}

body.dept-theme-plan #main-content .brochure-image {
  min-height: 200px !important;
  background: #f8fafc !important;
}

@media (max-width: 968px) {
  body.dept-theme-plan #main-content .main-layout,
  body.dept-theme-plan #main-content > .content-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  body.dept-theme-plan #main-content .sidebar,
  body.dept-theme-plan #main-content aside.sidebar {
    position: relative !important;
    top: auto !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  body.dept-theme-plan #main-content .content-main,
  body.dept-theme-plan #main-content .content-area {
    padding: 1.25rem 1rem 1.75rem !important;
  }
}
