/* ============================================= */
/* ABOUT PAGE - SEPARATE STYLES                  */
/* ============================================= */

/* ===== PAGE HEADER ===== */
.about-page-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-dark) 100%
  );
  padding: 50px 0 45px;
  text-align: center;
  border-bottom: 4px solid var(--secondary-orange);
  position: relative;
}

.about-page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.png") repeat;
  opacity: 0.05;
}

.about-header-content {
  position: relative;
  z-index: 1;
}

.about-header-content h1 {
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.about-header-content h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-orange);
  margin: 12px auto 0;
  border-radius: 2px;
}

.about-header-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 15px auto 0;
}

/* ===== ABOUT BODY ===== */
.about-page-body {
  padding: 40px 0 60px;
  background: var(--bg-light);
}

.about-section {
  background: var(--white);
  border-radius: 12px;
  padding: 45px 50px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-light);
}

.about-section:last-child {
  margin-bottom: 0;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 50px;
  height: 4px;
  background: var(--secondary-orange);
  border-radius: 2px;
  margin: 10px 0 18px;
}

.section-header-center .section-divider {
  margin: 10px auto 18px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-orange);
  background: rgba(249, 115, 22, 0.1);
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 35px;
}

.section-header-center h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.section-header-center p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.about-section h2 .highlight {
  color: var(--secondary-orange);
}

/* ===== SECTION 1: OUR STORY ===== */
.about-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-text p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--primary-blue);
}

.story-highlights {
  display: flex;
  gap: 30px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid rgba(0, 0, 0, 0.04);
}

.story-highlight {
  text-align: center;
}

.story-highlight .sh-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-orange);
}

.story-highlight .sh-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  height: 380px;
  object-fit: cover;
}

.image-caption {
  text-align: center;
  padding: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== SECTION 2: MISSION & VISION ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.mv-card {
  padding: 35px 40px;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.vision-card {
  background: rgba(10, 38, 71, 0.03);
  border-left: 4px solid var(--secondary-orange);
}

.mission-card {
  background: rgba(249, 115, 22, 0.03);
  border-left: 4px solid var(--primary-blue);
}

.mv-icon {
  font-size: 2.4rem;
  color: var(--secondary-orange);
  margin-bottom: 14px;
  display: inline-block;
  padding: 12px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  text-align: center;
  line-height: 1;
}

.mission-card .mv-icon {
  color: var(--primary-blue);
  background: rgba(10, 38, 71, 0.08);
}

.mv-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.vision-card h3 {
  color: var(--secondary-orange);
}

.mv-card p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.mv-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mv-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.5;
}

.mv-card ul li i {
  color: var(--secondary-orange);
  margin-top: 3px;
  font-size: 1rem;
  flex-shrink: 0;
}

.mission-card ul li i {
  color: var(--primary-blue);
}

/* ===== SECTION 3: CORE VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.value-card {
  background: var(--bg-light);
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.value-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--secondary-orange);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--secondary-orange);
  margin-bottom: 12px;
  display: inline-block;
  padding: 14px;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 50%;
  width: 68px;
  height: 68px;
  text-align: center;
  line-height: 1;
}

.value-card h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== SECTION 4: MILESTONES ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--secondary-orange),
    var(--primary-blue)
  );
  opacity: 0.3;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
  padding-left: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 0;
  background: var(--secondary-orange);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.timeline-marker .year {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
}

.timeline-content {
  background: var(--bg-light);
  padding: 18px 24px;
  border-radius: 10px;
  transition: var(--transition);
}

.timeline-content:hover {
  background: var(--white);
  box-shadow: var(--shadow-light);
}

.timeline-content h4 {
  font-size: 1.05rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== SECTION 5: LEADERSHIP ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.leader-card {
  background: var(--bg-light);
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.leader-avatar {
  font-size: 4rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.leader-avatar i {
  background: rgba(10, 38, 71, 0.06);
  border-radius: 50%;
  padding: 8px;
}

.leader-card h4 {
  font-size: 1.05rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 2px;
}

.leader-position {
  display: block;
  font-size: 0.8rem;
  color: var(--secondary-orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.leader-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================= */
/* RESPONSIVE                                   */
/* ============================================= */

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section {
    padding: 35px 30px;
  }
}

@media (max-width: 768px) {
  .about-two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .leadership-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .about-section {
    padding: 25px 20px;
  }

  .about-header-content h1 {
    font-size: 2rem;
  }

  .about-header-content p {
    font-size: 0.95rem;
  }

  .section-header-center h2 {
    font-size: 1.8rem;
  }

  .about-section h2 {
    font-size: 1.6rem;
  }

  .story-highlights {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .about-image img {
    height: 250px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-marker {
    left: -24px;
    padding: 2px 10px;
    font-size: 0.6rem;
  }

  .mv-card {
    padding: 25px 20px;
  }

  .value-card {
    padding: 20px 15px;
  }

  .leader-card {
    padding: 20px 15px;
  }

  .leader-avatar {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 20px 15px;
    border-radius: 8px;
  }

  .about-header-content h1 {
    font-size: 1.6rem;
  }

  .section-header-center h2 {
    font-size: 1.4rem;
  }

  .about-section h2 {
    font-size: 1.3rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-image img {
    height: 180px;
  }

  .mv-card h3 {
    font-size: 1.2rem;
  }

  .mv-card p {
    font-size: 0.95rem;
  }

  .mv-card ul li {
    font-size: 0.92rem;
  }

  .timeline-content {
    padding: 14px 16px;
  }

  .timeline-content h4 {
    font-size: 0.95rem;
  }

  .timeline-content p {
    font-size: 0.85rem;
  }

  .value-card h4 {
    font-size: 1rem;
  }

  .value-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
    padding: 10px;
  }

  .mv-icon {
    width: 54px;
    height: 54px;
    font-size: 2rem;
    padding: 10px;
  }

  .story-highlight .sh-number {
    font-size: 1.6rem;
  }
}

/* ============================================= */
/* ABOUT PAGE - LEADERSHIP SECTION              */
/* ============================================= */

/* ===== LEADERSHIP GRID ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.leadership-grid:last-child {
  margin-bottom: 0;
}

/* ===== LEADER CARD ===== */
.leader-card {
  background: var(--bg-light);
  padding: 25px 20px 22px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ===== LEADER IMAGE ===== */
.leader-image-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 4px solid var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.leader-image-wrapper:hover {
  border-color: var(--secondary-orange);
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.2);
}

.leader-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== IMAGE OVERLAY ===== */
.leader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 38, 71, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border-radius: 50%;
}

.leader-image-wrapper:hover .leader-overlay {
  opacity: 1;
}

.leader-overlay i {
  color: var(--white);
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== LEADER INFO ===== */
.leader-card h4 {
  font-size: 1.05rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.leader-position {
  display: block;
  font-size: 0.8rem;
  color: var(--secondary-orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.leader-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================= */
/* LEADER MODAL                                 */
/* ============================================= */

.leader-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.leader-modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.leader-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--primary-blue);
  color: var(--white);
  border-bottom: 3px solid var(--secondary-orange);
}

.leader-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-modal-header h3 i {
  color: var(--secondary-orange);
}

.leader-modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0 4px;
}

.leader-modal-close:hover {
  color: var(--secondary-orange);
  transform: rotate(90deg);
}

.leader-modal-body {
  padding: 24px;
  text-align: center;
}

.leader-modal-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.leader-modal-info h4 {
  font-size: 1.2rem;
  color: var(--secondary-orange);
  font-weight: 700;
  margin-bottom: 4px;
}

.leader-modal-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================= */
/* RESPONSIVE                                   */
/* ============================================= */

@media (max-width: 1024px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .leader-image-wrapper {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .leader-card {
    padding: 18px 14px 16px;
  }

  .leader-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .leader-card h4 {
    font-size: 0.9rem;
  }

  .leader-position {
    font-size: 0.7rem;
  }

  .leader-card p {
    font-size: 0.78rem;
  }

  .leader-modal-image {
    width: 150px;
    height: 150px;
  }

  .leader-modal-content {
    max-width: 95%;
    margin: 20px;
  }

  .leader-modal-header h3 {
    font-size: 0.95rem;
  }

  .leader-modal-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .leadership-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .leader-card {
    padding: 14px 10px 12px;
  }

  .leader-image-wrapper {
    width: 80px;
    height: 80px;
  }

  .leader-card h4 {
    font-size: 0.8rem;
  }

  .leader-position {
    font-size: 0.65rem;
  }

  .leader-card p {
    font-size: 0.7rem;
  }

  .leader-overlay i {
    font-size: 1.2rem;
  }

  .leader-modal-image {
    width: 120px;
    height: 120px;
  }

  .leader-modal-header {
    padding: 12px 16px;
  }

  .leader-modal-header h3 {
    font-size: 0.85rem;
  }

  .leader-modal-body {
    padding: 12px;
  }

  .leader-modal-info h4 {
    font-size: 1rem;
  }

  .leader-modal-info p {
    font-size: 0.85rem;
  }
}

/* ============================================= */
/* CENTERED LEADERSHIP GRID                     */
/* ============================================= */

.leadership-grid-centered {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Make the last two items span and center */
.leader-card-centered {
    grid-column: span 1;
}

/* For the last two items, center them in the row */
.leader-card-centered:nth-last-child(2) {
    grid-column: 2 / 3;
}

.leader-card-centered:nth-last-child(1) {
    grid-column: 3 / 4;
}

/* Alternative: If you want them evenly spaced in the center */
.leadership-grid-centered .leader-card-centered {
    margin: 0 auto;
    max-width: 280px;
}

/* ============================================= */
/* RESPONSIVE - CENTERED GRID                   */
/* ============================================= */

@media (max-width: 1024px) {
    .leadership-grid-centered {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .leader-card-centered:nth-last-child(2) {
        grid-column: auto;
    }

    .leader-card-centered:nth-last-child(1) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .leadership-grid-centered {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .leadership-grid-centered {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .leader-card-centered {
        grid-column: auto !important;
    }

    .leadership-grid-centered .leader-card-centered {
        max-width: 100%;
    }
}

/* ============================================= */
/* MANAGEMENT PAGE - SEPARATE STYLES             */
/* ============================================= */

/* ===== PAGE HEADER ===== */
.management-page-header {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--primary-dark) 100%
    );
    padding: 50px 0 45px;
    text-align: center;
    border-bottom: 4px solid var(--secondary-orange);
    position: relative;
}

.management-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.management-header-content {
    position: relative;
    z-index: 1;
}

.management-header-content h1 {
    font-size: 2.8rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.management-header-content h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

.management-header-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
}

/* ===== MANAGEMENT BODY ===== */
.management-page-body {
    padding: 40px 0 60px;
    background: var(--bg-light);
}

.management-section {
    background: var(--white);
    border-radius: 12px;
    padding: 45px 50px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.management-section:last-child {
    margin-bottom: 0;
}

/* ===== ORGANIZATIONAL CHART ===== */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    overflow: visible;
}

/* ===== ROWS ===== */
.org-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ===== GENERAL MANAGER ROW ===== */
.org-row-gm {
    margin-bottom: 10px;
}

.gm-card {
    max-width: 280px;
    width: 100%;
}

/* ===== DEPARTMENT MANAGERS ROW ===== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    margin-top: 0;
}

/* ===== SUB-OFFICE MANAGERS ROW ===== */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 0;
}

/* ===== CONNECTING LINES ===== */
/* Line from GM to horizontal bar */
.org-line-down {
    width: 2px;
    height: 35px;
    background: var(--secondary-orange);
    margin: 0 auto;
    opacity: 0.5;
}

/* Horizontal bar for department level */
.org-line-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 2px;
    background: var(--secondary-orange);
    margin: 0 auto 25px;
    position: relative;
    opacity: 0.5;
}

.org-line-horizontal .org-line-left {
    position: absolute;
    left: -20px;
    width: 20px;
    height: 2px;
    background: var(--secondary-orange);
    opacity: 0.5;
}

.org-line-horizontal .org-line-right {
    position: absolute;
    right: -20px;
    width: 20px;
    height: 2px;
    background: var(--secondary-orange);
    opacity: 0.5;
}

/* Lines down from horizontal bar to each department */
.org-line-down-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    margin-bottom: 0;
}

.org-line-down-group .org-line-down {
    height: 25px;
    margin: 0 auto;
}

/* Horizontal bar for sub-office level */
.org-line-horizontal-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 2px;
    background: var(--secondary-orange);
    margin: 25px auto 25px;
    position: relative;
    opacity: 0.5;
}

.org-line-horizontal-sub .org-line-left-sub {
    position: absolute;
    left: -20px;
    width: 20px;
    height: 2px;
    background: var(--secondary-orange);
    opacity: 0.5;
}

.org-line-horizontal-sub .org-line-right-sub {
    position: absolute;
    right: -20px;
    width: 20px;
    height: 2px;
    background: var(--secondary-orange);
    opacity: 0.5;
}

/* Lines down from horizontal bar to each sub-office */
.org-line-down-group-sub {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 0;
}

.org-line-down-group-sub .org-line-down {
    height: 25px;
    margin: 0 auto;
}

/* ============================================= */
/* LEADER CARD                                  */
/* ============================================= */

.leader-card {
    background: var(--bg-light);
    padding: 25px 20px 22px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.leader-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.leader-image-wrapper:hover {
    border-color: var(--secondary-orange);
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.2);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 38, 71, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.leader-image-wrapper:hover .leader-overlay {
    opacity: 1;
}

.leader-overlay i {
    color: var(--white);
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.leader-card h4 {
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.leader-position {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary-orange);
    font-weight: 600;
}

.leader-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* ============================================= */
/* LEADER MODAL                                 */
/* ============================================= */

.leader-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.leader-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.leader-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--primary-blue);
    color: var(--white);
    border-bottom: 3px solid var(--secondary-orange);
}

.leader-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leader-modal-header h3 i {
    color: var(--secondary-orange);
}

.leader-modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 0 4px;
}

.leader-modal-close:hover {
    color: var(--secondary-orange);
    transform: rotate(90deg);
}

.leader-modal-body {
    padding: 24px;
    text-align: center;
}

.leader-modal-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.leader-modal-info h4 {
    font-size: 1.2rem;
    color: var(--secondary-orange);
    font-weight: 700;
    margin-bottom: 4px;
}

.leader-modal-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================= */
/* RESPONSIVE                                   */
/* ============================================= */

@media (max-width: 1024px) {
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .org-line-down-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .org-line-down-group-sub {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .org-line-horizontal {
        width: 60%;
    }

    .org-line-horizontal-sub {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .management-page-header {
        padding: 35px 0 30px;
    }

    .management-header-content h1 {
        font-size: 2rem;
    }

    .management-header-content p {
        font-size: 0.95rem;
    }

    .management-section {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .section-header-center h2 {
        font-size: 1.8rem;
    }

    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .org-line-down-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .org-line-down-group-sub {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gm-card {
        max-width: 220px;
    }

    .org-line-horizontal {
        width: 50%;
    }

    .org-line-horizontal-sub {
        width: 70%;
    }

    .org-line-down {
        height: 20px;
    }

    .org-line-horizontal-sub {
        margin: 20px auto 20px;
    }

    .org-line-horizontal .org-line-left,
    .org-line-horizontal .org-line-right {
        display: none;
    }

    .org-line-horizontal-sub .org-line-left-sub,
    .org-line-horizontal-sub .org-line-right-sub {
        display: none;
    }

    .leader-card {
        padding: 18px 14px 16px;
    }

    .leader-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .leader-card h4 {
        font-size: 0.85rem;
    }

    .leader-position {
        font-size: 0.7rem;
    }

    .leader-modal-image {
        width: 150px;
        height: 150px;
    }

    .leader-modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .leader-modal-header h3 {
        font-size: 0.95rem;
    }

    .leader-modal-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .management-header-content h1 {
        font-size: 1.6rem;
    }

    .management-header-content p {
        font-size: 0.9rem;
    }

    .section-header-center h2 {
        font-size: 1.4rem;
    }

    .section-header-center p {
        font-size: 0.9rem;
    }

    .management-section {
        padding: 20px 16px;
    }

    .dept-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sub-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .org-line-down-group {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .org-line-down-group-sub {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gm-card {
        max-width: 200px;
    }

    .org-line-horizontal {
        width: 40%;
    }

    .org-line-horizontal-sub {
        width: 60%;
    }

    .org-line-down {
        height: 15px;
    }

    .leader-card {
        padding: 14px 10px 12px;
    }

    .leader-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .leader-card h4 {
        font-size: 0.75rem;
    }

    .leader-position {
        font-size: 0.6rem;
    }

    .leader-overlay i {
        font-size: 1.2rem;
    }

    .leader-modal-image {
        width: 120px;
        height: 120px;
    }

    .leader-modal-header {
        padding: 12px 16px;
    }

    .leader-modal-header h3 {
        font-size: 0.85rem;
    }

    .leader-modal-body {
        padding: 12px;
    }

    .leader-modal-info h4 {
        font-size: 1rem;
    }

    .leader-modal-info p {
        font-size: 0.85rem;
    }
}

/* ============================================= */
/* REORGANIZED BOARD OF DIRECTORS                */
/* ============================================= */

/* President Grid - Centered */
.president-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.president-card {
    max-width: 280px;
    width: 100%;
}

/* BOD Grid - 4 columns */
.bod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* GM Grid - Centered with wider container */
.gm-grid {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.gm-card {
    max-width: 380px;
    width: 100%;
    padding: 30px 25px 26px;
}

.gm-card .leader-image-wrapper {
    width: 150px;
    height: 150px;
}

.gm-card h4 {
    font-size: 1.1rem;
    white-space: nowrap;
}

.gm-card .leader-position {
    font-size: 0.85rem;
}

/* ============================================= */
/* RESPONSIVE                                   */
/* ============================================= */

@media (max-width: 1024px) {
    .bod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gm-card {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .president-card {
        max-width: 240px;
    }
    
    .bod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gm-card {
        max-width: 280px;
        padding: 22px 18px 20px;
    }
    
    .gm-card .leader-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .gm-card h4 {
        font-size: 0.95rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .president-card {
        max-width: 200px;
    }
    
    .bod-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .gm-card {
        max-width: 240px;
        padding: 18px 14px 16px;
    }
    
    .gm-card .leader-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .gm-card h4 {
        font-size: 0.85rem;
    }
    
    .gm-card .leader-position {
        font-size: 0.7rem;
    }
}
