/* about_us.css - khusus halaman About Us */
/* Root & base ---------------------- */
:root {
  --accent: #2b58d6;
  --muted: #6b6f76;
  --card: #ffffff;
  --bg: #f6f7fb;
  --ease: cubic-bezier(0.42, 0, 0.58, 1);
}
body.about-page {
  background: var(--bg);
}

/* HERO SECTION */
.about-hero {
  padding: 60px 0;
}

.about-hero .hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background: var(--card);
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

/* IMAGE */
.hero-image {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: auto;
}

.hero-image img.hero-building {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* TEXT */
.hero-text {
  flex: 1;
  min-width: 260px;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--heading, #001b44);
}

.hero-text p {
  color: var(--muted, #555);
  line-height: 2.6;
  font-size: 18px;
  text-align: justify;
  margin-top: 35px;
}

.divide-text {
  position: relative;
}

.hero-text h2.divide-text:before {
  content: "";
  height: 5px;
  width: 40px;
  background: #3551a1;
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  top: inherit;
}

@media (max-width: 768px) {
  .hero-text h2.divide-text:before {
    place-self: center;
  }
}

/* DESKTOP MARGIN ADJUST */
@media (min-width: 992px) {
  .hero-text {
    margin: 5px 0 0 60px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hero-text p {
    font-size: 15px;
    line-height: 2;
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .about-hero .hero-inner {
    flex-direction: column-reverse; /* teks dulu baru gambar */
    padding: 30px 20px;
    text-align: center;
  }

  .hero-text {
    margin: 0;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-image {
    flex: none;
    width: 100%;
  }

  .hero-image img.hero-building {
    max-width: 90%;
  }
}

/* PARENT COMPANY - logos grid */
.company-parent {
  margin-top: 26px;
}
.section-bg-gradient {
  background: linear-gradient(90deg, #4190de 0%, #4190de 50%, #4190de 100%);
  background-size: 1920px;
  background-repeat: no-repeat;
  background-position: bottom;
}

.section-title {
  font-size: 20px;
  margin-bottom: 14px;
  color: #111;
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.card-parent-logo .logo-item {
  border: 2px solid #3472e6;
  border-radius: 100px;
  background-color: #f3f1f1;
  box-shadow: 0px 0px 6px 1px #929292;
}

.parent-company-logos .logo-center {
  border: 2px solid #3472e6;
  border-radius: 100px;
  background-color: #f3f1f1;
  box-shadow: 0px 0px 6px 1px #929292;
}

.logo-item {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  padding: 15%;
}

@media (max-width: 768px) {
  .logo-item {
    width: 20%;
    height: 0;
  }
}

.logo-item img {
  display: block;
}

/* when in view */
.logo-item.in-view {
  opacity: 1;
  transform: none;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

.parent-company-section {
  padding: 80px 0;
  background-color: #fff;
  position: relative;
}

.parent-company-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 40px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 60px;
  justify-items: center;
  align-items: center;
  margin-bottom: 40px;
}

.logo-item img {
  transition: transform 0.4s ease;
}

.logo-item img:hover {
  transform: scale(1.05);
}

/* Responsive (mobile) */
@media (max-width: 991px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .logo-item img {
    height: 70px;
  }

  .parent-company-section .section-title {
    font-size: 22px;
  }
}

/* Fade-in on scroll animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.parent-company-section {
  padding: 80px 0;
  position: relative;
}

.parent-company-logos {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 85px auto 85px auto;
}

.parent-company-logos .logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  width: 125px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .parent-company-logos .logo-center {
    width: 90px;
    height: 55px;
  }
}

.parent-company-logos img {
  width: 88px;
  height: auto;
  object-fit: contain;
}

.logo-center img {
  width: 85px;
}

.logo-item {
  position: absolute;
}

/* ===== Desktop positions ===== */
.logo-item.top-left {
  top: -15%;
  left: -20%;
}
.logo-item.top-center {
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
}
.logo-item.top-right {
  top: -15%;
  right: -20%;
}
.logo-item.middle-left {
  top: 50%;
  left: -20%;
  transform: translateY(-50%);
}
.logo-item.middle-right {
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
}
.logo-item.bottom-left {
  bottom: -15%;
  left: -20%;
}
.logo-item.bottom-center {
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
}
.logo-item.bottom-right {
  bottom: -15%;
  right: -20%;
}

/* ===== Responsive scaling for mobile ===== */
@media (max-width: 768px) {
  .parent-company-logos {
    width: 250px;
    height: 250px;
    margin: 65px auto;
  }

  .parent-company-logos img {
    width: 70px;
  }

  .logo-center img {
    width: 60px;
  }

  /* ===== Desktop positions ===== */
  .logo-item.top-left {
    top: -15%;
    left: -20%;
  }
  .logo-item.top-right {
    top: -15%;
    right: -20%;
  }
  .logo-item.middle-left {
    top: 50%;
    left: -20%;
    transform: translateY(-50%);
  }
  .logo-item.middle-right {
    top: 50%;
    right: -20%;
    transform: translateY(-50%);
  }
  .logo-item.bottom-left {
    bottom: -15%;
    left: -20%;
  }
  .logo-item.bottom-center {
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
  }
  .logo-item.bottom-right {
    bottom: -15%;
    right: -20%;
  }
}
.connector {
  position: absolute;

  height: 8px;
  transform-origin: left center;
  border: 1px solid;
  border-color: #f9ac41;
  border-radius: 5px;
  z-index: 0;
}

.line-top-left {
  top: 0px;
  left: 25px;
  width: 140px;
}
.line-top-right {
  top: 0px;
  right: 25px;
  width: 140px;
}

.line-mid-left {
  top: 170px;
  left: 34px;
  width: 120px;
}
.line-mid-right {
  top: 170px;
  right: 34px;
  width: 120px;
}

.line-bottom-left {
  bottom: 0px;
  left: 37px;
  width: 120px;
}
.line-bottom-right {
  bottom: 0px;
  right: 37px;
  width: 120px;
}

.line-right-top {
  top: 40px;
  left: 175px;
  width: 150px;
  transform: rotate(90deg);
}
.line-right {
  top: 40px;
  left: 366px;
  width: 260px;
  transform: rotate(90deg);
}
.line-left {
  top: 40px;
  right: 106px;
  width: 260px;
  transform: rotate(90deg);
}
.line-right-bottom {
  top: 185px;
  right: 25px;
  width: 150px;
  transform: rotate(90deg);
}

.diag-top-left {
  top: 0px;
  left: 140px;
  width: 265px;
  transform: rotate(35deg);
}

.diag-top-right {
  top: 160px;
  right: 110px;
  width: 265px;
  transform: rotate(-35deg);
}

.diag-bottom-left {
  bottom: 0;
  left: 136px;
  width: 265px;
  transform: rotate(-35deg);
}

.diag-bottom-right {
  bottom: 183px;
  right: 132px;
  width: 265px;
  transform: rotate(35deg);
}

@media (max-width: 768px) {
  .line-top-left {
    top: 0px;
    left: 25px;
    width: 140px;
  }
  .line-top-right {
    top: 0px;
    right: 25px;
    width: 140px;
  }

  .line-mid-left {
    top: 120px;
    left: 18px;
    width: 120px;
  }
  .line-mid-right {
    top: 120px;
    right: 18px;
    width: 120px;
  }

  .line-bottom-left {
    bottom: 0px;
    left: 25px;
    width: 120px;
  }
  .line-bottom-right {
    bottom: 0px;
    right: 25px;
    width: 120px;
  }

  .line-right-top {
    top: 10px;
    left: 126px;
    width: 150px;
    transform: rotate(90deg);
  }
  .line-right {
    top: -10px;
    left: 260px;
    width: 260px;
    transform: rotate(90deg);
  }
  .line-left {
    top: -10px;
    right: 0;
    width: 260px;
    transform: rotate(90deg);
  }
  .line-right-bottom {
    top: 117px;
    right: -25px;
    width: 150px;
    transform: rotate(90deg);
  }

  .diag-top-left {
    top: 0px;
    left: 106px;
    width: 185px;
    transform: rotate(35deg);
  }

  .diag-top-right {
    top: 110px;
    right: 80px;
    width: 185px;
    transform: rotate(-35deg);
  }

  .diag-bottom-left {
    bottom: 0;
    left: 110px;
    width: 210px;
    transform: rotate(-35deg);
  }

  .diag-bottom-right {
    bottom: 118px;
    right: 95px;
    width: 185px;
    transform: rotate(35deg);
  }
}

/* ===== Very small screens ===== */
@media (max-width: 425px) {
  .parent-company-logos {
    width: 200px;
    height: 200px;
    top: 30px;
  }

  .parent-company-logos img {
    width: 55px;
  }

  .logo-center img {
    width: 60px;
  }

  .logo-item.top-left {
    top: -25%;
    left: -30%;
  }
  .logo-item.top-center {
    top: -25%;
    left: 50%;
  }
  .logo-item.top-right {
    top: -25%;
    right: -30%;
  }
  .logo-item.middle-left {
    left: -30%;
  }
  .logo-item.middle-right {
    right: -30%;
  }
  .logo-item.bottom-left {
    bottom: -25%;
    left: -30%;
  }
  .logo-item.bottom-center {
    bottom: -25%;
  }
  .logo-item.bottom-right {
    bottom: -25%;
    right: -30%;
  }

  .line-top-right {
    top: -10%;
    right: -20%;
    width: 125px;
  }

  .line-top-left {
    top: -10%;
    left: -10%;
    width: 120px;
  }

  .line-mid-left {
    top: 49%;
    left: -10%;
    width: 120px;
  }

  .line-mid-right {
    top: 49%;
    right: -10%;
    width: 120px;
  }

  .line-right-top {
    top: -10px;
    left: 50%;
    width: 120px;
  }

  .line-right-bottom {
    top: 35%;
    left: 50%;
    width: 120px;
  }

  .diag-top-right {
    top: 45%;
    right: 40%;
    width: 155px;
  }

  .diag-top-left {
    top: -9%;
    left: 40%;
    width: 165px;
  }

  .diag-bottom-left {
    bottom: 0%;
    left: 55%;
    width: 130px;
  }

  .diag-bottom-right {
    bottom: 40%;
    right: 22%;
    width: 185px;
  }

  .line-right {
    top: -10px;
    left: 115%;
    width: 200px;
  }

  .line-left {
    top: -10px;
    left: -14%;
    width: 200px;
  }

  .line-bottom-right {
    bottom: -11%;
    right: -5%;
  }

  .line-bottom-left {
    bottom: -11%;
    left: -4%;
  }
}

/* VISION & MISSION */
.vision-mission {
  padding: 80px 0;
  background: linear-gradient(to right, #053c8b, #122c6f);
  background-size: 1920px;
  background-repeat: no-repeat;
  background-position: bottom;
}

.vision-mission h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 40px;
}

.vm-grid {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 10px;
}
.vm-card {
  flex: 1;
  text-align: center;
  min-width: 220px;
  padding: 12px;
}
.vm-card .vm-icon {
  width: 110px;
  height: auto;
  margin-bottom: 8px;
}

@media (max-width: 425px) {
  .vm-card .vm-icon {
    width: 100px;
  }
}
.vm-card h3 {
  margin: 6px 0;
}
.vm-card p {
  color: #f0f0f0;
}

/* MILESTONES */
.milestones {
  margin-top: 80px;
}

/* RIYADI GROUP SECTION */
.riyadi-circle {
  padding: 80px 0;
  position: relative;
  background: #ffffff; /* fallback solid color */
  overflow: hidden;
  color: rgb(0, 0, 0);
}

.riyadi-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(0, 87, 255, 0.9) 0%,
      rgba(0, 200, 255, 0.7) 50%,
      rgba(0, 87, 180, 0.9) 100%
    ),
    url("../img_new/icons/test.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
  background-size: 1920px;
  background-repeat: no-repeat;
  background-position: bottom;
  opacity: 0.2;
  z-index: 1;
}

/* ===== Konten di atas gradient ===== */
.riyadi-circle .riyadi-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Text styling */
.circle-text {
  font-family: "montserrat";
  flex: 1;
  max-width: 500px;
  position: relative;
  left: 5%;
}

.circle-text2 {
  font-size: 18px;
  font-weight: 600;
}

.circle-text h3 {
  position: relative;
  font-family: "montserrat";
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3);
  color: #222;
  left: -0.5%;
}

@media (max-width: 425px) {
  .circle-text h3 {
    font-size: 24px;
    padding-bottom: 5px;
  }
}

.circle-text-more {
  font-size: 20px;
  color: #000000;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}
@media (max-width: 425px) {
  .circle-text-more {
    font-size: 15px;
  }
}

.circle-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
  padding-right: 100px;
}

/* Image styling */
.circle-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-image img {
  width: 60%;
  position: relative;
  left: 10%;
}

/* RESPONSIVE (Mobile) */
@media (max-width: 985px) {
  .riyadi-inner {
    flex-direction: column;
    text-align: center;
  }

  .circle-text {
    order: 2;
    max-width: 100%;
    left: 0;
  }

  .circle-text h3 {
    font-size: 36px;
    left: 0;
  }
  .circle-text p {
    padding-right: 0;
    margin: 0 115px;
    text-align: center;
  }

  .circle-image {
    order: 1;
  }

  .circle-image img {
    left: 0%;
  }
}

@media (max-width: 425px) {
  .circle-text p {
    padding-right: 0;
    margin: 5px 5px;
  }
}

/* STATS / COUNTERS */
.years-experience {
  background: linear-gradient(to right, #053c8b, #122c6f);
  background-size: 1920px;
  background-repeat: no-repeat;
  background-position: bottom;
  padding: 20px;
}
.stats-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 140px;
  background: #0c347d;
  border: 1px solid #ffffff66;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}
.stat-number {
  font-size: 30px;
  font-weight: 800;
  color: var(--bg);
}
.stat-label {
  color: var(--bg);
  font-size: 13px;
  margin-top: 6px;
}

.riyadi-services {
  padding: 60px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.card-top {
  width: 100%;
  background: #143c71; /* Biru seperti contoh */
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-top img {
  width: 100px;
  height: 100px;
  background: white;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-text p {
  padding: 10px 25px;
}

.service-card h3 {
  margin-top: 25px;
  font-size: 18px;
  font-weight: 600;
  color: #0d1d38;
  padding: 0 15px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* NETWORK */
.network-section {
  margin: 80px 0;
  text-align: center;
}

.network-section .section-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 40px;
}

.network-image img {
  justify-self: center;
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .vm-grid {
    flex-direction: column;
    padding-bottom: 50px;
  }
  .about-hero .hero-image {
    flex: 0 0 240px;
  }
  .hero-label {
    width: 240px;
  }
}

@media (max-width: 700px) {
  .about-hero .hero-inner {
    padding: 18px;
  }
  .about-hero .hero-image {
    flex-basis: 100%;
    order: 1;
    width: 60%;
    margin: 0 auto;
    padding-bottom: 60px;
  }
  .hero-label {
    order: 2;
    width: 60%;
    margin: 8px auto 0;
  }
  .hero-text {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .riyadi-inner {
    flex-direction: column;
  }
  .circle-image {
    order: 1;
  }
  .circle-text {
    order: 2;
  }
  .why-inner {
    flex-direction: column;
  }
  .why-cards {
    flex-direction: row;
    justify-content: center;
  }
  .why-slider-wrap {
    display: block;
    margin-top: 12px;
  }
  .why-detail {
    display: none;
  } /* hide desktop detail on mobile */
  .stat {
    min-width: 45%;
  }
}

.fade-in {
  animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   PARENT COMPANY SECTION
========================== */

.parent-desc {
  max-width: 1028px;
  margin: 55px auto 0;
  font-size: 18px;
  line-height: 2.8;
  padding: 0 55px;
  color: #f8f8f8;
}

@media (max-width: 425px) {
  .parent-desc {
    font-size: 15px;
    line-height: 1.9;
    padding: 0 20px;
    margin-top: 100px;
  }
}

.desc-vision-mission {
  padding: 15px 70px 0 70px;
  font-size: 18px;
  line-height: 2.8;
}

@media (max-width: 425px) {
  .desc-vision-mission {
    font-size: 12px;
    padding: 25px 5px 0 5px;
  }
}
