/* =========================
   Organization Structure CSS
========================= */

/* Hero Section */
.hero {
  background: #cce0ff;
  padding: 30px 20px;
  text-align: center;
}
  

.hero h1 {
  font-size: 28px;
  color: #004080;
  margin-bottom: 10px;
}

.hero p {
  font-size: 16px;
  color: #333;
}
  

/* Organization Tree */
.org-tree ul {
  list-style: none;
  padding-left: 20px;
}

.org-tree li {
  margin-bottom: 15px;
}

/* Expandable Sections */
.expandable {
  cursor: pointer;
  display: inline-block;
  padding: 8px 12px;
  background: #004080;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 8px;
  transition: background 0.3s;
}

.expandable:hover {
  background: #003366;
}

.expandable.active {
  background: #02680b;
}

.content {
  display: none;
  margin-top: 8px;
  padding-left: 15px;
  border-left: 3px solid #004080;
}

.content.show {
  display: block;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.content table th,
.content table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.content table th {
  background: #e6f0ff;
  color: #004080;
}

/* Core Departments & Specialized Cells */
.specialized-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.cell {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cell:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0,0,0,0.15);
}

.cell h3 {
  font-size: 18px;
  color: #004080;
  margin-bottom: 8px;
}

.cell p {
  font-size: 14px;
  color: #333;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px 0;
  background: #004080;
  color: white;
  margin-top: 30px;
  font-size: 14px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .navbar a {
    flex: 1 0 50%;
    text-align: center;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-header .search {
    margin-top: 10px;
    width: 100%;
  }
}

/* =========================
   Two Column Layout
========================= */
.org-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 40px;
}

.org-left {
  width: 65%;
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 20px;
  border-right: 2px solid #eee;
}

.org-right {
  width: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.leaders-speak {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 500px;
}

.leader-quote {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: opacity 0.6s ease;
}

.leader-quote.active {
  display: flex;
  animation: fadeIn 1s ease;
}

.leader-img img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

.leader-content {
  flex: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
