/* About Highlights Section CSS */

html {
  scroll-padding-top: 100px; /* Adjust as needed (e.g., header height + margin) */
}

.company-highlights::before {
     content: "";
     position: absolute;
     inset: 0;
     background: url('/assets/home/about.jpg') center center/cover no-repeat;
     opacity: 0.18;
     z-index: 0;
     pointer-events: none;
}
 /* .company-highlights > .container, .company-highlights * {
     position: relative;
     z-index: 1;
} */
.company-highlights {
  background: #f8f9fa;
  padding: 40px 0 24px 0;
  position: relative;
  overflow: hidden;
}
/* Info Row (Who We Are) */
.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}
.info-row {
  border: 2.5px solid #b50202;
  border-radius: 16px;
  padding: 1.9rem 3rem 3rem 3.2rem;
  background-color: #fff;
  margin-left: 0;
  display: flex;
  align-items: center;
  position: relative;
  gap: 0;
  margin-top: 4rem;
  margin-bottom: 2.5rem;
  min-height: 180px;
  isolation: isolate;
}
.info-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0034B5;
  margin-bottom: 1rem;
  text-align: left;
  letter-spacing: 0.5px;
}
.info-hr {
  width: 100%;
  max-width: 100%;
  border: none;
  border-top: 2px solid #b50202;
  margin: -0.5rem 0;
}
.info-card p {
  color: #000;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  text-align: justify;
}

/* CEO Row */
.ceo-row {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0;
  min-height: 180px;
  isolation: isolate;
}
.ceo-image-card {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10 !important;
  position: absolute !important;
  left: 0px;
  top: 34% ;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ceo-image-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(30,198,217,0.18);
  background: #fff;
  display: block;
  border: #b50202 2.5px solid;
}
.ceo-message-card {
  position: relative;
  z-index: 1;
  margin-left: 120px;
  margin-right: 120px;
  padding: 2rem 5rem 1.7rem 90px;
  border: 2.5px solid #b50202;
  flex: 1 1 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(10,34,54,0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ceo-message-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0034B5;
  margin-bottom: 1rem;
  text-align: left;
  letter-spacing: 0.5px;
}
.ceo-message-card h4 {
  color: #b50202;
  font-size: 1.13em;
  font-variant: small-caps;
  margin: 1.2em 0 0.3em 0;
  letter-spacing: 1px;
}
.ceo-message-card p {
  color: #000;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  /* margin-bottom: 1.2rem; */
  text-align: justify;
}
.ceo-sign {
  /* margin-top: 1.2rem; */
  text-align: right;
  width: 100%;
  color: #0034B5;
  font-weight: 600;
  font-size: 1rem;
}
.ceo-sign strong {
  color: #0034B5;
}
.ceo-sign span {
  color: #b50202;
}
.ceo-signature-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 1.2rem;
  gap: 0.2rem;
}
.ceo-signature-img {
  width: 160px;
  max-width: 60vw;
  height: auto;
  display: block;
  margin-bottom: 0.2rem;
}

/* About Cards Grid */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin: 32px 0;
}
.about-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 3px solid #b50202;
  padding: 32px 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.about-card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #0034B5;
  font-variant: small-caps;
  text-align: center;
}
.about-card h4 {
  color: #b50202;
  font-size: 1.08rem;
  font-variant: small-caps;
  margin-bottom: 0.7rem;
  text-align: left;
}
.about-card ul.about-list {
  margin-left: 18px;
  margin-bottom: 0;
  font-size: 12pt;
  line-height: 2rem;
  list-style: none;
  padding-left: 0;
}
.about-card ul.about-list li {
  position: relative;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1px;
  color: #222;
  background: none;
}
.about-card ul.about-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #b50202;
  font-size: 1.1rem;
  top: 0;
}
#our-values ul.about-list li::before {
  content: "";
  display: none;
}
#why-choose-us ul.about-list li::before {
  content: "";
  display: none;
}

/* Legacy Section Styles */
.legacy-section {
  background: #181f3a;
  color: #fff;
  padding: 64px 0 48px 0;
  width: 100%;
  border-radius: 18px;
  position: relative;
}
.legacy-section .container {
  text-align: center;
  padding: 0 24px;
}
.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}
.legacy-content {
  grid-column: 1 / span 2;
  width: 100%;
  text-align: center;
  padding: 0 24px;
}
.legacy-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  font-variant: small-caps;
  color: #b50202;
  text-shadow: #fff 2px 2px 5px;
}
.legacy-subheading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  font-variant: small-caps;
}
.legacy-intro {
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
  color: #e0e6f7;
  line-height: 1.7;
}
.legacy-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.legacy-card {
  background-color: #181f3a;
  border: 2px solid #b50202;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  flex: 1 1 340px;
  min-width: 200px;
  width: 100%;
  max-width: 400px;
  padding: 28px 20px 20px 20px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 230px;
  max-height: 230px;
  height: 100%;
}
.legacy-card-header {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the group horizontally */
  margin-bottom: 1.2rem;
  margin-top: 0 !important;
  width: 100%;
  gap: 0.8rem; /* Ensures equal spacing between icon and title */
}
.legacy-card-icon1 {
  width: auto;
  height: 50px;
  object-fit: contain;
  margin: 0;
  display: block;
}
.legacy-card-icon2 {
  width: 250px;
  height: auto;
  object-fit: contain;
  margin: 0;
  display: block;
}
.legacy-card-icon3 {
  width: auto;
  height: 50px;
  object-fit: contain;
  margin: 0;
  display: block;
}
.legacy-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
}
.legacy-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.6;
  text-align: justify !important;
  margin-bottom: 1rem;
}
.legacy-summary {
  font-size: 1.08rem;
  margin: 2.5rem 0 2rem 0;
  color: #fff;
  line-height: 1.7;
}
.legacy-list {
  display: flex;
  justify-content: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.legacy-list li {
  display: flex;
  align-items: center;
  font-size: 1.13rem;
  font-weight: 500;
  color: #fff;
  /* background: transparent; */
  margin-bottom: 0.5rem;
  gap: 10px;
}
.legacy-check {
  color: #00c7a5;
  font-size: 1.7rem;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

/* Responsive */
/* Responsive: 900px */
@media (max-width: 900px) {
  .company-highlights {
    padding: 24px 0 16px 0;
  }
  .highlights-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .info-row {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
    margin: 1.5rem !important;
    padding: 1rem !important;
    font-size: 0.98rem;
  }
  .info-card h2 {
    font-size: 1.15rem;
    text-align: center;
  }
  .info-card p {
    font-size: 0.98rem;
    margin-top: 0.7rem;
  }
  .ceo-row {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }
  .ceo-image-card {
    position: static !important;
    transform: none !important;
    margin: 0 auto 18px auto !important;
    width: 160px;
    height: 160px;
  }
  .ceo-image-card img {
    width: 160px;
    height: 160px;
  }
  .ceo-message-card {
    margin: 1.2rem !important;
    padding: 1.2rem !important;
  }
    .ceo-signature-img {
    width: 120px;
    max-width: 80vw;
  }
  .ceo-sign {
    font-size: 0.95rem;
  }
  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-card {
    margin-top: 1rem;
    padding: 1rem 0.5rem !important;
    min-height: 160px !important;
  }
  .legacy-section {
    padding: 36px 0 24px 0;
  }
  .legacy-heading {
    font-size: 2rem;
  }
  .legacy-subheading {
    font-size: 1.2rem;
  }
  .legacy-cards {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .legacy-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding: 18px 10px 14px 10px;
  }
  .legacy-card-header {
    margin-bottom: 0.7rem;
  }
  .legacy-card-title {
    font-size: 1.1rem;
  }
  .legacy-card-icon {
  width: auto;
  height: 80px;
  object-fit: contain;
  margin: 0;
  display: block;
}
  .legacy-card-content,
  .legacy-intro,
  .legacy-summary {
    font-size: 0.98rem;
  }
  .legacy-list {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 1.2rem;
  }
  .legacy-list li {
    font-size: 0.98rem;
  }
}

/* Responsive: 600px */
@media (max-width: 600px) {
.company-highlights {
    padding: 14px 0 8px 0;
  }
.highlights-grid {
    gap: 8px;
  }
.info-row {
    margin-top: 10rem !important;
    padding: 1rem !important;
    font-size: 0.95rem;
  }
.info-card h2 {
    font-size: 1.5rem;
  }
.info-card p {
    font-size: 0.95rem;
  }
  .ceo-image-card {
    width: 150px;
    height: 150px;
    margin: 12px auto 8px auto !important;
  }
  .ceo-image-card img {
    width: 150px;
    height: 150px;
  }
  .ceo-message-card {
    padding: 1rem !important;
    font-size: 0.93rem;
  }
  .ceo-message-card h2 {
    font-size: 1.5rem;
  }
    .ceo-signature-img {
    width: 90px;
    max-width: 90vw;
  }
  .ceo-sign {
    font-size: 0.9rem;
  }
  .about-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }
  .about-card {
    margin: 0.7rem;
    padding: 1rem !important;
    min-height: 100px !important;
  }
  .about-card h2 {
    font-size: 1.5rem;
  }
  .about-card h4 {
    font-size: 1.2rem;
  }
  .about-card ul.about-list {
    font-size: 0.98rem;
    line-height: 1.5rem;
  }
  .legacy-section {
    padding: 18px 10px 10px 10px;
    width: 85vw;
    margin: auto;
  }
.legacy-card {
  min-height: 230px;
  max-height: 300px;
  height: 100%;
}
.legacy-heading {
    font-size: 1.5rem;
    text-align: center;
  }
.legacy-subheading {
    font-size: 1.1rem;
  }
.legacy-card-icon1 {
  width: 50px;
  height: auto;
  object-fit: contain;
  margin: 0;
  display: block;
}
.legacy-card-icon2 {
  width: 130px;
  height: auto;
  object-fit: contain;
  margin: 0;
  display: block;
}
.legacy-card-icon3 {
  width: 50px;
  height: auto;
  object-fit: contain;
  margin: 0;
  display: block;
}
.legacy-card-title {
    font-size: 1.4rem;
  }
  .legacy-card-content,
  .legacy-intro,
  .legacy-summary {
    font-size: 0.93rem;
    text-align: justify !important;
  }
  .legacy-list li {
    font-size: 0.93rem;
  }
}

/* --- Animation Keyframes & Classes --- */
@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-60px);}
  100% { opacity: 1; transform: translateY(0);}
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(60px);}
  100% { opacity: 1; transform: translateY(0);}
}
@keyframes fadeLeft {
  0% { opacity: 0; transform: translateX(-60px);}
  100% { opacity: 1; transform: translateX(0);}
}
@keyframes fadeRight {
  0% { opacity: 0; transform: translateX(60px);}
  100% { opacity: 1; transform: translateX(0);}
}
@keyframes fadeIn {
  0% { opacity: 0;}
  100% { opacity: 1;}
}

.animated { opacity: 0; transition: opacity 0.3s; }
.fade-down.in-view { animation: fadeDown 1s cubic-bezier(.77,0,.18,1) forwards; }
.fade-up.in-view { animation: fadeUp 1s cubic-bezier(.77,0,.18,1) forwards; }
.fade-left.in-view { animation: fadeLeft 1s cubic-bezier(.77,0,.18,1) forwards; }
.fade-right.in-view { animation: fadeRight 1s cubic-bezier(.77,0,.18,1) forwards; }
.fade-in.in-view { animation: fadeIn 1s cubic-bezier(.77,0,.18,1) forwards; }