/* === VÙNG CHUNG === */
.about {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: sans-serif;
  background-color: #000;
}

.about-avatar {
  position: relative;
  width: 100%;
  height: 500px; /* Chiều cao cố định cho ảnh nền */
}

/* === ẢNH NỀN === */
.about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  animation: fadeBg 10s infinite, bgZoom 40s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: #222; /* fallback */
}

.about-bg.bg1 {
  animation-delay: 0s;
}
.about-bg.bg2 {
  animation-delay: 5s;
}
.about-bg.bg3 {
  animation-delay: 10s;
}
@keyframes fadeBg {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes bgZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* === NỘI DUNG OVERLAY === */
.overlay-about {
  position: relative;
  z-index: 2;
  display: grid;
  /* grid-template-columns: minmax(460px, 60%) 1fr; */
  align-items: flex-end;
  height: 100%;
  width: 100%;
  padding: 2rem 4rem;
  box-sizing: border-box;
  gap: 2rem;
}

/* === CỘT TRÁI === */
.about-left-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  overflow-wrap: break-word;
}

.about-left-text h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.45;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  white-space: normal;
  word-break: break-word;
  margin: 0;
}

/* === CỘT PHẢI === */
.about-right-text {
  text-align: right;
  align-self: flex-end;
  max-width: 100%;
  overflow-wrap: break-word;
}

.company-info {
  color: white;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 500;
  text-shadow: 1px 1px 2px black;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.about-heading {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  line-height: 1;
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
}

.submenu-tabs{
  background-image:url('../image/サブメニュー.png');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  padding: 28px;
  text-align:center;
  overflow:visible;
}

.submenu-tabs ul{
  display: inline-flex;
  justify-content: space-around;
  align-items: center;
  /* flex-wrap:nowrap; */
  gap: 30px;
  margin: 0px;
  padding: 0px 0px;
  list-style:none;
  overflow:hidden;
  -webkit-overflow-scrolling:touch;
  /* scrollbar-width:thin; */
  /* scroll-snap-type:x proximity; */
}

.submenu-tabs ul::-webkit-scrollbar{ height:6px; }
.submenu-tabs ul::-webkit-scrollbar-thumb{
  background:#a00000; border-radius:10px;
}

.submenu-tabs li{flex:0 0 auto;scroll-snap-align:center;}

.submenu-tabs li a{
  display: inline-flex;
  padding: 12px 16px;
  min-height: 44px;
  line-height: 1.3;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 17px;
  border-radius: 2rem;
  border: 2px solid #a00000;
  white-space: nowrap;
  text-decoration: none;
  transition: all .3s ease;
}

.submenu-tabs li a:hover,
.submenu-tabs li a.active{
  background:#e99b9b;
  color:#a00000;
}


.section-heading {
  position: relative;
  overflow: hidden;
  padding: 60px 0px;
  background: #f9f9f9;
}

.section-heading-table {
  position: relative;
  overflow: hidden;
  padding: 60px 0px;
  background: #f9f9f9;
}


.section-heading-history {
  position: relative;
  overflow: hidden;
  padding: 60px 0px;
  background: #f9f9f9;
}
.section-header {
  position: relative;
  height: 120px;
}

.section-bg {
  position: absolute;
  width: 550px;
  height: 100%;
  z-index: 1;
}

.section-title {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 1rem;
  bottom: 75px;
}


.message-image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: visible;
}

.message-block-wrapper {
  background-color: #fff;
  padding: 14px 17px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: visible;
}
.route-block-wrapper {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: scroll;
  height: 100%;
  width: 100%;
}

.message-photo {
  width: 100%;
  display: block;
  z-index: 4;
  position: relative;
}

.message-overlay-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  padding-left: 30px;
  width: 100%;
  display: flex;
  align-items: center;
}

.message-overlay {
  padding: 10px 20px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  display: inline-block;
  font-size: 1.3rem;
  text-align: left;
}

.message-role,
.message-name {
  margin: 0;
  line-height: 1.3;
}

.message-name {
  font-size: 2rem;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 20px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 20px;
  pointer-events: none;
  z-index: 5;
}

.overlay-top {
  top: -32px;
}

.overlay-bottom {
  bottom: -39px;
}

/* Nội dung bên dưới */
.message-box {
  font-size: 1.6rem;
  color: #333;
  line-height: 1.5;
  padding: 27px 40px;
  font-weight: 600;
}

.highlight {
  background: linear-gradient(transparent 60%, #ffff99 60%);
  font-weight: bold;
}
/* Table Styling */
.company-table-wrapper {
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.company-table th {
  width: 25%;
  background: #96c7b4; /* xanh lá như hình */
  color: #2d312f;
  padding: 14px 18px;
  text-align: center;
  font-weight: bold;
  vertical-align: middle;
  border-right: 4px solid #f1f0f0;
}

.company-table td {
  padding: 14px 18px;
  background: #fff;
  vertical-align: top;
  line-height: 1.6;
}

.company-table tr {
  border-bottom: 4px solid #f1f0f0;
}

.history-table-wrapper {
  background:white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow-x: auto;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
}

.history-table td {
  padding: 16px 12px;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}
.history-table tr{
  border-bottom: 4px solid #f1f0f0;
}

.history-table .year {
  background: #96c7b4;
  color: #2d312f;
  border-right: 4px solid #f1f0f0;
  text-align: center;
  width: 25%;
  line-height: 1.4;
  padding: 14px 18px;
  vertical-align: middle;
}

.history-table .year span {
  font-weight: normal;
  font-size: 0.9rem;
  display: block;
}

.history-table .month {
  text-align: center;
  width: 10%;
  border-right: 4px solid #f1f0f0;
  white-space: nowrap;
}


.history-table .content {
  width: 68%;
  text-align: left;
}


.section-orgchart {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: #f9f9f9;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-node {
  padding: 15px 42px;
  border: 1px solid #000;
  background: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* CEO block */
.org-node.ceo {
  margin-bottom: 70px;
  margin-right: 30px;
}

/* Line from CEO to mid-level horizontal line */
.org-node.ceo::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  /* transform: translateX(-50%); */
  width: 1px;
  height: 100%;
  min-height: 147px;
  background: #000;
}

/* Mid-level group */
.org-branches {
  display: flex;
  justify-content: inherit;
  gap: 60px;
  position: relative;
  margin-bottom: 30px;
  /* margin-left: 12px; */
}

/* Horizontal line connecting mid-level nodes */
.org-branches::before {
  content: "";
  position: absolute;
  top: -29px;
  /* left: 47%; */
  /* transform: translateX(-46%); */
  width: 100%;
  height: 1px;
  background: #000;
}

/* Line from mid-node to horizontal line */
.org-node.mid::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  /* transform: translateX(-50%); */
  width: 1px;
  height: 30px;
  background: #000;
}

.org-node.mid {
  padding: 8px 30px;
}

.org-branches.lower {
  display: flex;
  justify-content: center;
  gap: 60px;
  position: relative;
  margin-top: 30px;
  /* flex-wrap: wrap; */
  width: 100%;
}

/* Đường ngang kết nối */
.org-branches.lower::before {
    content: "";
    position: absolute;
    top: -29px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    height: 1px;
    background: #000;
    width: 100%;
}

/* Line from bottom node to horizontal line */
.org-branches.lower .org-node::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  /* transform: translateX(-50%); */
  width: 1px;
  height: 30px;
  background: #000;
}

@media screen and (max-width: 1392px) {


.overlay-top {
  top: -38px;
}

.overlay-bottom {
  bottom: -32px;
}
}

@media screen and (max-width: 1352px) {


.overlay-top {
  top: -37px;
}

.overlay-bottom {
  bottom: -30px;
}
}

@media screen and (max-width: 1300px) {


.overlay-top {
  top: -40px;
}

.overlay-bottom {
  bottom: -25px;
}
}
@media screen and (max-width: 1256px) {


.overlay-top {
  top: -33px;
}

.overlay-bottom {
  bottom: -29px;
}
}

@media screen and (max-width: 1200px) {
.overlay-top {
  top: -31px;
}

.overlay-bottom {
  bottom: -29px;
}
.submenu-tabs ul {
  gap: 15px;
}
.submenu-tabs li a{
  padding: 12px 8px;
  font-size: 16px;
}

}

@media screen and (max-width: 1158px) {
.overlay-top {
  top: -34px;
}

.overlay-bottom {
  bottom: -24px;
}
}
@media screen and (max-width: 1036px) {
.overlay-top {
  top: -29px;
}

.overlay-bottom {
  bottom: -22px;
}
}

/* Responsive cho mobile */
@media screen and (max-width: 1024px) {
  .overlay-about {
    /* grid-template-columns: minmax(340px, 55%) 1fr; */
    padding: 2rem 2.5rem;
  }
    .section-title {
    font-size: 1.8rem;
    bottom: 60px;
  }

  .message-box {
    padding: 20px 30px;
    font-size: 1.5rem;
  }

  .message-overlay {
    top: 15px;
    left: 20px;
    font-size: 0.9rem;
  }

.overlay-top {
  top: -31px;
}

.overlay-bottom {
  bottom: -20px;
}
.submenu-tabs ul {
  gap: 15px;
}
.submenu-tabs li a{
  padding: 12px 8px;
}
}
@media screen and (max-width: 992px) {
.overlay-top {
  top: -31px;
}

.overlay-bottom {
  bottom: -19px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 14px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 14px;
  pointer-events: none;
  z-index: 5;
}
.submenu-tabs ul {
  gap: 12px;
}
.submenu-tabs li a{
  padding: 12px 6px;
  font-size: 15px;
}
}
@media screen and (max-width: 900px) {
.submenu-tabs ul {
  gap: 11px;
}

.submenu-tabs li a {
  padding: 12px 8px;
  /* padding-block: 14px; */
  font-size: 13px;
}

.overlay-top {
  top: -26px;
}

.overlay-bottom {
  bottom: -17px;
}

}

@media screen and (max-width:830px){
.submenu-tabs ul {
  gap: 10px;
}

.submenu-tabs li a {
  padding: 12px 8px;
  font-size: 12px;
}
}
@media screen and (max-width: 800px) {
.overlay-top {
  top: -21px;
}

.overlay-bottom {
  bottom: -16px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 5;
}
}
@media screen and (max-width: 768px) {

  .submenu-tabs li{flex:0 0 auto;scroll-snap-align:center;width: 100%;}

   .message-overlay-wrapper {
    padding-left: 20px;
  }

  .message-overlay {
    font-size: 1rem;
    padding: 8px 16px;
  }

  .message-name {
    font-size: 1.5rem;
  }
  .overlay-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    padding: 1.5rem 1.25rem 2.5rem;
    gap: 1.5rem;
  }

  .about-left-text {
    max-width: 100%;
  }

  .about-left-text h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .about-right-text {
    text-align: left;
    align-self: flex-start;
  }

  .about-heading {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

   .submenu-tabs ul {
    flex-direction: column;
    align-items: center;
    /* gap:1.5rem; */
    width: 100%;
  }

  .submenu-tabs li a {
    width: 100%;
    /* max-width: 280px; */
    font-size: 15px;
    display: flex;
    justify-content: center;
  }

   .section-title {
    font-size: 1.8rem;
    bottom: 60px;
  }

  .message-box {
    padding: 20px 30px;
    font-size: 1.5rem;
  }

   .message-overlay-wrapper {
    padding-left: 20px;
    bottom: 8px;
  }

  .message-overlay {
    font-size: 1rem;
    padding: 8px 15px;
  }

  .overlay-top {
  top: -22px;
}

.overlay-bottom {
  bottom: -16px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 5;
}
.company-table th,
  .company-table td {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
 .history-table td {
    font-size: 0.95rem;
    padding: 12px 8px;
  }

  .history-table .year {
    font-size: 1rem;
  }

  .history-table .year span {
    font-size: 0.8rem;
  }
}



@media screen and (max-width:738px) {
  .org-branches.lower {
    gap: 30px;
  }

  .org-branches.lower::before {
    width: 100%;
  }

}
@media screen and (max-width:706px) {
  .org-branches.lower {
    gap: 24px;
  }

  .org-branches.lower::before {
    width: 100%;
  }
}

@media screen and (max-width: 658px) {
  .org-branches.lower {
    gap: 20px;
    flex-direction: row;
    justify-content: center;
  }

  .org-branches.lower::before {
    width: 100%;
  }
}

@media screen and (max-width: 646px) {
  .org-branches.lower {
    /* gap: 17px; */
    /* flex-direction: row; */
    /* justify-content: center; */
  }

  .org-branches.lower::before {
    width: 100%;
  }
}


@media screen and (max-width: 642px) {
  .overlay-top {
  top: -17px;
}

.overlay-bottom {
  bottom: -14px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 5;
}
}

@media screen and (max-width: 637px) {
  .org-branches.lower {
    /* gap: 8px; */
    /* flex-direction: row; */
    /* justify-content: center; */
  }

  .org-branches.lower::before {
    width: 100%;
  }
}

@media screen and (max-width: 610px) {
   .org-branches.lower {
    /* gap: 4px; */
    /* flex-direction: row; */
    /* justify-content: center; */
  }

  .org-branches.lower::before {
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
 .overlay-top {
  top: -18px;
}

.overlay-bottom {
  bottom: -9px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 10px;
  pointer-events: none;
  z-index: 5;
}

}
@media screen and (max-width: 598px) {
.org-branches {
    /* display: flex; */
    /* justify-content: center; */
    /* gap: 41px; */
    /* position: relative; */
    /* margin-bottom: 30px; */
    /* margin-left: 33px; */
}
.org-branches::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 47%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: #000;
}
.org-node.mid {
    padding: 8px 15px;
}

.org-node {
    /* padding: 8px 12px; */
    /* border: 1px solid #000; */
    /* background: #fff; */
    /* text-align: center; */
    /* position: relative; */
    /* z-index: 1; */
}
.org-branches.lower {
    /* gap: 4px; */
    /* flex-direction: row; */
    /* justify-content: center; */
}
.org-branches.lower::before {
    width: 100%;
}
.org-node {
    padding: 8px 12px;
    border: 1px solid #000;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

}
@media screen and (max-width: 503px) {
  .org-branches.lower::before {
        width: 100%;
  }
  .org-node {
    /* padding: 8px 5px; */
    /* border: 1px solid #000; */
    /* background: #fff; */
    /* text-align: center; */
    /* position: relative; */
    /* z-index: 1; */
}
        .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 1px;
        background: #000;
    }
        .org-node.mid {
        padding: 8px 9px;
    }
    .org-node.mid::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 30px;
    background: #000;
}
    .org-branches {
        /* display: flex; */
        /* justify-content: center; */
        /* gap: 20px; */
        /* position: relative; */
        /* margin-bottom: 30px; */
        /* margin-left: 33px; */
    }
}
@media screen and (max-width: 480px) {

 .history-table {
    font-size: 0.85rem;
  }

  .history-table .year,
  .history-table .month,
  .history-table .content {
    display: block;
    width: 100%;
    text-align: left;
  }

  .history-table td {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 6px;
  }
   .message-overlay-wrapper {
    padding-left: 12px;
  }

  .message-overlay {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .message-name {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.4rem;
    bottom: 40px;
  }

  .message-box {
    padding: 10px 15px;
    font-size: 1.2rem;
  }

  .message-overlay-wrapper {
    padding-left: 10px;
    bottom: 6px;
  }

  .message-overlay {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
 .overlay-top {
  top: -13px;
}

.overlay-bottom {
  bottom: -8px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 4px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 4px;
  pointer-events: none;
  z-index: 5;
}
.company-table th,
  .company-table td {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

}
@media screen and (max-width: 446px) {
  .org-node.ceo {
    margin-bottom: 50px;
    }
  .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 13px;
    }
    .org-node.ceo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 122px;
    background: #000;
}
    .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        /* margin-bottom: 30px; */
        margin-right: 5px;
    }
        .org-branches.lower::before {
        width: 100%;
    }
        .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        /* transform: translateX(-50%); */
        width: 100%;
        height: 1px;
        background: #000;
    }
}


@media screen and (max-width: 404px) {
  .org-node.ceo {
    margin-bottom: 50px;
    margin-right: 27px;
    }
  .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 13px;
    }
    .org-node.ceo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 119px;
    background: #000;
}
       .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        margin-bottom: 30px;
        /* margin-left: 25px; */
    }
        .org-branches.lower::before {
        width: 100%;
    }
           .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 1px;
        background: #000;
    }
        .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 11px;
    }
}


@media screen and (max-width: 362px) {
  .org-node.ceo {
    margin-bottom: 50px;
    margin-right: 24px;
    }
  .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 13px;
    }
    .org-node.ceo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 115px;
    background: #000;
}
       .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        margin-bottom: 30px;
        /* margin-left: 13px; */
    }
        .org-branches.lower::before {
        width: 100%;
    }
        .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        /* transform: translateX(-50%); */
        width: 100%;
        height: 1px;
        background: #000;
    }
        .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 9px;
    }
}

@media screen and (max-width: 360px) {

 .overlay-top {
  top: -9px;
}

.overlay-bottom {
  bottom: -6px;
}
.overlay-decor {
  position: absolute;
  width: 97%;
  left: 4px;
  pointer-events: none;
  z-index: 3;
}
.overlay-decor-top{
  position: absolute;
  width: 97%;
  left: 4px;
  pointer-events: none;
  z-index: 5;
}

}
@media screen and (max-width: 320px) {
    .org-node.ceo {
    margin-bottom: 50px;
    margin-right: 0px;
    }
  .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 13px;
    }
    .org-node.ceo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    /* transform: translateX(-50%); */
    width: 1px;
    height: 108px;
    background: #000;
}
       .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        margin-bottom: 30px;
        margin-left: 12px;
    }
      .org-branches.lower::before {
        width: 100%;
    }
        .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        /* transform: translateX(-50%); */
        width: 100%;
        height: 1px;
        background: #000;
    }
        .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 4px;
    }
}

@media screen and (max-width: 215px) {
    .org-node.ceo {
    margin-bottom: 50px;
    }
  .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 13px;
    }
    .org-node.ceo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 106px;
    background: #000;
}
       .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        margin-bottom: 30px;
        margin-left: 8px;
    }
      .org-branches.lower::before {
        width: 100%;
    }
        .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        /* transform: translateX(-50%); */
        width: 100%;
        height: 1px;
        background: #000;
    }
        .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 3px;
    }
}
@media screen and (max-width: 215px) {

      .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        margin-bottom: 30px;
        margin-left: 6px;
    }
        .org-node.ceo::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        /* transform: translateX(-50%); */
        width: 1px;
        height: 104px;
        background: #000;
    }
        .org-branches {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        margin-bottom: 30px;
        margin-right: 6px;
    }
        .org-branches::before {
        content: "";
        position: absolute;
        top: -29px;
        left: 50%;
        /* transform: translateX(-50%); */
        width: 100%;
        height: 1px;
        background: #000;
    }
        .org-branches.lower::before {
        width: 100%;
    }
    .org-node {
        padding: 8px 5px;
        border: 1px solid #000;
        background: #fff;
        text-align: center;
        position: relative;
        z-index: 1;
        font-size: 2px;
    }
}