/* Hero Section */
.hero {
  background-color: var(--primary-light);
  padding: var(--space-xl) 0;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

/* Main Content Layout */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md);
}

.main-content-with-sidebar {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Shared card style (keeps About cards consistent with other pages) */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.content-section {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--white);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--light-gray);
}

.content-section p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background-color: #005aa7;
  color: white;
}

.btn.primary:hover {
  background-color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn.outline:hover {
  background: var(--primary);
  color: var(--white);
}

.about-item {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: var(--space-lg);
  transition: none;
  border: none;
}

.about-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.about-item h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--light-gray);
  position: static;
}

.about-item h3::after {
  content: none;
}

.about-item p {
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.about-item p:last-child {
  margin-bottom: 0;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-member {
  text-align: center;
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-sm);
  border: 3px solid var(--primary);
}

.team-member h4 {
  color: var(--dark);
  margin-bottom: var(--space-xs);
}

.team-member p {
  color: var(--gray);
  font-size: 0.9rem;
}

button:focus, a:focus, input:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #2c3e50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1001;
  text-decoration: none;
}

.skip-link:focus {
  left: 10px;
}

.org-container {
  max-width: 900px;
  margin: 40px auto;
  display: none;
}

.org-title {
  text-align: center;
  margin-bottom: 40px;
  color: #003366;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 2px solid #005aa7;
  padding-bottom: 10px;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-level {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
  position: relative;
}

.org-node {
  background: white;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  min-width: 180px;
  border-left: 4px solid #005aa7;
}

.org-level-chief .org-node {
  background: #003366;
  color: white;
  font-weight: 600;
  border-left: 4px solid #ffcc00;
  padding: 20px 25px;
}

.org-level-additional .org-node {
  background: #005aa7;
  color: white;
  font-weight: 500;
}

.org-level-joint .org-node {
  background: #e6f0fa;
  border-left: 4px solid #005aa7;
}

.org-level-deputy .org-node {
  background: #f0f5ff;
  border-left: 4px solid #6699cc;
}

.org-level-staff .org-node {
  background: #f8fafc;
  border-left: 4px solid #99b3cc;
}

.org-node::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 15px;
  background: #cbd5e1;
}

.org-level:last-child .org-node::after {
  display: none;
}

.org-level-multi::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: #cbd5e1;
}

.toggle-org-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  background-color: #005aa7;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-org-btn:hover {
  background-color: #003366;
}

.toggle-org-btn .icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.toggle-org-btn.active .icon {
  transform: rotate(180deg);
}

.subjects-section {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.subjects-section h2 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.subjects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.subject-item {
  padding: var(--space-sm);
  background: var(--light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all 0.15s ease;
}

.subject-item:hover {
  background: var(--primary-light);
  transform: translateX(5px);
}

.subject-buttons {
  text-align: center;
}

.section-heading {
  text-align: center;
  margin: 40px 0 30px;
  color: #003366;
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #005aa7;
}

.language-toggle-container {
  text-align: center;
  margin: 20px 0;
}
.language-toggle-btn {
  background: #005aa7;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
  font-weight: 500;
}
.language-toggle-btn.active {
  background: #003366;
}

.personnel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .main-content-with-sidebar {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: 30px;
  }
  .org-level {
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
  }
  .org-node {
    margin: 8px 0;
    width: 80%;
    max-width: 250px;
  }
  .org-node::after,
  .org-level-multi::before {
    display: none;
  }
  .team-members {
    grid-template-columns: 1fr;
  }
  .about-item {
    padding: 0;
  }
  .toggle-org-btn {
    width: 90%;
    padding: 10px;
  }
  .subjects-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .content-section {
    padding: var(--space-md);
  }
  .utility-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .utility-group {
    flex-wrap: wrap;
  }
}

