/* ===================================================
   Org Chart Page — MPC Port Organization Structure
   =================================================== */

/* ---------- Banner ---------- */
.page-banner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  margin-bottom: 0;
}

.page-banner .banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.page-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 25, 75, 0.7) 0%, rgba(0, 25, 75, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.hero-subtitle,
.recruitment-banner .banner-eyebrow {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title,
.recruitment-banner .banner-title {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

.banner-text {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

.org-banner {
  position: relative;
  overflow: hidden;
}

/* ---------- Section wrapper ---------- */
.org-section {
  background: #f4f6fb;
  padding: 70px 0 80px;
}

.org-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-redline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-redline::before,
.section-redline::after {
  content: '';
  width: 40px;
  height: 2px;
  background: #DF1F28;
}

.section-label-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #DF1F28;
}

.org-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a2559;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.org-section-sub {
  font-size: 15px;
  color: #828282;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===================================================
   ORG CHART TREE
   =================================================== */
.org-tree {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Shared node card ---- */
.org-node {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(44,62,125,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  position: relative;
}

.org-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(44,62,125,0.18);
}

.org-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 20px;
}

.org-node-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.org-node-sub {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
  line-height: 1.4;
}

/* ---- Level 1: Board ---- */
.org-level-board {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 0;
  position: relative;
}

.org-level-board::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: #2c3e7d;
}

.org-node-board {
  flex: 1;
  background: linear-gradient(135deg, #1a2559, #2c3e7d);
  color: #fff;
  padding: 28px 24px;
  border-radius: 12px;
}

.org-node-board .org-node-icon {
  background: rgba(255,255,255,0.15);
  color: #FCB248;
}

.org-node-board .org-node-title {
  font-size: 17px;
  color: #fff;
}

.org-node-board .org-node-sub {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
}

.org-node-supervisory {
  flex: 0 0 220px;
  background: linear-gradient(135deg, #3a3a5c, #4a4a7a);
  color: #fff;
  padding: 28px 20px;
  border-radius: 12px;
}

.org-node-supervisory .org-node-icon {
  background: rgba(255,255,255,0.12);
  color: #FCB248;
}

.org-node-supervisory .org-node-title {
  font-size: 14px;
  color: #fff;
}

.org-node-supervisory .org-node-sub {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}

/* ---- Level 2: CEO ---- */
.org-level-ceo-wrap {
  margin-top: 30px;
  margin-bottom: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.org-level-ceo-wrap::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: #2c3e7d;
}

.org-node-ceo {
  width: 320px;
  background: linear-gradient(135deg, #2c3e7d, #3a50a0);
  color: #fff;
  padding: 26px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(44,62,125,0.25);
}

.org-node-ceo .org-node-icon {
  background: rgba(255,255,255,0.15);
  color: #FCB248;
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.org-node-ceo .org-node-title {
  font-size: 18px;
  color: #fff;
}

.org-node-ceo .org-node-sub {
  color: rgba(255,255,255,0.75);
}

/* ---- Level 3: Deputies ---- */
.org-level-deputies {
  margin-top: 30px;
  position: relative;
}

/* Horizontal line connecting deputies */
.org-level-deputies::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: #2c3e7d;
}

.org-deputies-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.org-deputy-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Vertical line from horizontal bar down to deputy */
.org-deputy-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: #2c3e7d;
}

.org-node-deputy {
  width: 100%;
  background: linear-gradient(135deg, #DF1F28, #c41820);
  color: #fff;
  padding: 22px 16px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 6px 24px rgba(223,31,40,0.25);
}

.org-node-deputy .org-node-icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.org-node-deputy .org-node-title {
  font-size: 13px;
  color: #fff;
}

.org-node-deputy .org-node-sub {
  color: rgba(255,255,255,0.8);
  font-size: 11px;
}

/* Vertical line from deputy down to dept list */
.org-deputy-branch::after {
  content: '';
  position: absolute;
  top: calc(30px + 100px);  /* after deputy card approx */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #ccd3e8;
}

/* ---- Level 4: Departments ---- */
.org-dept-list {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* Left bracket line for dept group */
.org-dept-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 3px;
  background: linear-gradient(to bottom, #DF1F28, rgba(223,31,40,0.1));
  border-radius: 3px;
}

.org-node-dept {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 28px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 2px 8px rgba(44,62,125,0.07);
  text-align: left;
}

.org-node-dept:hover {
  border-color: #DF1F28;
  box-shadow: 0 4px 16px rgba(223,31,40,0.12);
}

.org-dept-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef1fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #2c3e7d;
  flex-shrink: 0;
}

.org-dept-info .org-dept-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a2559;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.org-dept-info .org-dept-en {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ---- Summary strip ---- */
.org-summary {
  background: linear-gradient(135deg, #1a2559, #2c3e7d);
  padding: 50px 0;
  margin-top: 60px;
}

.org-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.org-stat-number {
  font-size: 46px;
  font-weight: 700;
  color: #FCB248;
  line-height: 1;
  margin-bottom: 8px;
}

.org-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
  .org-banner-title { font-size: 32px; }
  .org-banner { height: 280px; }

  .org-deputies-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .org-level-deputies::before { display: none; }
  .org-deputy-branch::before { display: none; }
  .org-deputy-branch::after { display: none; }

  .org-node-deputy { margin-top: 0; }

  .org-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .org-level-board {
    flex-direction: column;
  }

  .org-node-supervisory { flex: none; }

  .org-node-ceo { width: 100%; }
}

@media (max-width: 640px) {
  .org-banner { height: 240px; }
  .org-banner-title { font-size: 24px; letter-spacing: 1px; }
  .org-banner-desc { font-size: 14px; }
  .org-section-title { font-size: 24px; }
  .org-section { padding: 50px 0 60px; }

  .org-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .org-stat-number { font-size: 36px; }
}
