/* Organizational Hierarchy - Modern Vertical Flowchart */

.org-hierarchy {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0f9ff 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.org-header {
  text-align: center;
  margin-bottom: 80px;
}

.org-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e6f0ff, #f0f9ff);
  color: #0e88c7;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(14, 136, 199, 0.2);
}

.org-header h2 {
  font-size: 42px;
  color: #0d1b2a;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.org-header p {
  font-size: 16px;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Executive Level */
.hierarchy-level {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.hierarchy-connector {
  width: 3px;
  background: linear-gradient(180deg, #0e88c7, #ff6b00);
  position: relative;
}

.hierarchy-connector.top {
  height: 40px;
  margin-bottom: 0;
}

.hierarchy-connector.bottom {
  height: 60px;
  margin-top: 0;
}

.exec-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #0e88c7;
  border-radius: 20px;
  padding: 50px 60px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(14, 136, 199, 0.15);
  position: relative;
  z-index: 10;
  max-width: 600px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exec-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(14, 136, 199, 0.2);
  border-color: #ff6b00;
}

.exec-content h2 {
  font-size: 32px;
  color: #0d1b2a;
  margin: 12px 0 8px;
  font-weight: 700;
}

.exec-label {
  font-size: 12px;
  color: #0e88c7;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.exec-subtitle {
  font-size: 16px;
  color: #4a5568;
  font-weight: 500;
  margin: 0;
}

/* Department Grid */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
  padding-top: 20px;
}

/* Connecting line from executive to departments */
.departments-grid::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  width: 3px;
  height: 80px;
  background: linear-gradient(180deg, #ff6b00, transparent);
  transform: translateX(-50%);
}

.dept-block {
  position: relative;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Connector lines from main line to each department */
.dept-connector {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: #0e88c7;
  transform: translateX(-50%);
}

.dept-connector::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: #0e88c7;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #0e88c7;
}

.dept-content {
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dept-content:hover {
  transform: translateY(-12px);
  border-color: #0e88c7;
  box-shadow: 0 20px 50px rgba(14, 136, 199, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.dept-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e6f0ff, #f0f9ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #0e88c7;
  transition: all 0.3s ease;
}

.dept-content:hover .dept-icon-wrapper {
  transform: scale(1.15);
  background: linear-gradient(135deg, #0e88c7, #0e88c7);
  color: #ffffff;
}

.dept-content h3 {
  font-size: 18px;
  color: #0d1b2a;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.dept-roles {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.dept-roles li {
  padding: 10px 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.dept-roles li:last-child {
  border-bottom: none;
}

.dept-roles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #0e88c7;
  border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 1024px) {
.org-hierarchy {
    padding: 80px 0 60px;
  }

.org-header h2 {
    font-size: 36px;
  }

.exec-box {
    padding: 40px 40px;
    max-width: 500px;
  }

.exec-content h2 {
    font-size: 28px;
  }

.departments-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

.dept-content {
    min-height: 280px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
.org-hierarchy {
    padding: 60px 0 40px;
  }

.org-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

.org-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }

.org-header p {
    font-size: 14px;
  }

.hierarchy-connector.top {
    height: 30px;
  }

.hierarchy-connector.bottom {
    height: 40px;
  }

.exec-box {
    padding: 30px 25px;
    border-radius: 16px;
  }

.exec-content h2 {
    font-size: 22px;
  }

.exec-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

.exec-subtitle {
    font-size: 14px;
  }

.departments-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 15px;
  }

.departments-grid::before {
    top: -50px;
    height: 50px;
  }

.dept-connector {
    top: -25px;
    height: 25px;
  }

.dept-content {
    min-height: 250px;
    padding: 25px 20px;
  }

.dept-icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 26px;
    margin-bottom: 16px;
  }

.dept-content h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

.dept-roles li {
    font-size: 13px;
    padding: 8px 0 8px 18px;
  }
}

@media (max-width: 480px) {
.org-hierarchy {
    padding: 40px 0 30px;
  }

.org-header {
    margin-bottom: 50px;
  }

.org-header h2 {
    font-size: 22px;
  }

.org-header p {
    font-size: 13px;
  }

.exec-box {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

.exec-content h2 {
    font-size: 19px;
    margin: 10px 0 6px;
  }

.departments-grid {
    gap: 20px;
  }

.dept-content {
    min-height: auto;
    padding: 20px 15px;
  }

.dept-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 22px;
    margin-bottom: 12px;
  }

.dept-content h3 {
    font-size: 15px;
    margin-bottom: 14px;
  }

.dept-roles li {
    font-size: 12px;
    padding: 7px 0 7px 16px;
  }
}
