/* =====================================================
   ABOUT PAGE – CORPORATE AUTHORITY
   ===================================================== */

/* Hero Section – Diagonal Corporate Identity */
body[data-page="about"] .hero {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 59, 95, 0) 0%, rgba(20, 91, 158, 0) 100%),
    url('../assets/images/background/container-port-infrastructure.jpg') center/cover no-repeat;
  padding: 8rem 0 6rem;
  min-height: 820px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin-bottom: -1px;
}

body[data-page="about"] .hero::before {
  display: none;
}

body[data-page="about"] .hero .container {
  grid-template-columns: 1fr;
}

body[data-page="about"] .hero-content {
  max-width: 900px;
}

body[data-page="about"] .hero-content h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  display: inline-block;
}

body[data-page="about"] .hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 68ch;
  margin-bottom: 0;
}

/* Who We Are – Editorial Core (straight edges, no diagonals) */
body[data-page="about"] .section-who-we-are {
  padding: 6rem 0;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.about-grid .section-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-grid h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
}

.about-grid p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--text-soft);
  max-width: 100%;
}

/* Premium Enterprise Image Treatment */
.about-image {
  position: relative;
  width: 90%;
  /* Not full width */
  margin: 0 auto;
  padding: 2rem;
  z-index: 1;
}

/* Gold Outline Frame Behind */
.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  height: 85%;
  border: 3px solid var(--gold);
  opacity: 0.6;
  z-index: -1;
  transform: translate(-15px, -15px);
}

/* Decorative Curved Line Pattern */
.about-image::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 150px;
  height: 250px;
  background-image: url("data:image/svg+xml,%3Csvg width='150' height='250' viewBox='0 0 150 250' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10C50 60 50 190 10 240M30 15C70 65 70 185 30 235M50 20C90 70 90 180 50 230' stroke='white' stroke-opacity='0.2' stroke-width='1'/%3E%3Cpath d='M70 25C110 75 110 175 70 225M90 30C130 80 130 170 90 220' stroke='%23b91c1c' stroke-opacity='0.15' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.25);
  border: none;
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
  /* Subtle professional tilt */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 2;
  animation: imageFadeIn 1.2s ease-out;
}

.about-image:hover img {
  transform: perspective(1000px) rotateY(-1deg) rotateX(0.5deg) scale(1.01);
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) translateY(15px);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) translateY(0);
  }
}

/* Alignment and Overlap */
.about-grid>div:first-child {
  z-index: 5;
  /* Ensure text is above image overlap if needed */
}

.about-grid .about-image {
  margin-left: auto;
  /* Aligned to right by default in the grid */
}

.section-company-profile .about-image {
  margin-right: auto;
  /* Aligned to left in the second grid */
  margin-left: 0;
}

/* Mobile Adjustments for Image Treatment */
@media (max-width: 768px) {
  .about-image {
    width: 100%;
    padding: 1rem;
  }

  .about-image img {
    transform: none;
    /* Remove tilt on mobile for better readability */
  }

  .about-image::before {
    transform: translate(-10px, -10px);
  }
}

/* Company Profile – Diagonal Transition */
body[data-page="about"] .section-company-profile {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e8eef4 100%);
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

body[data-page="about"] .section-company-profile h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

body[data-page="about"] .section-company-profile ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

body[data-page="about"] .section-company-profile ul li {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--text-soft);
  padding-left: 1.5rem;
  position: relative;
}

body[data-page="about"] .section-company-profile ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* Vision, Mission, Values – Structured 2x2 Grid */
body[data-page="about"] .section-vision {
  padding: 5rem 0;
  background: #ffffff;
}

body[data-page="about"] .section-vision h2 {
  text-align: left;
  /* Aligned with blocks */
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--primary-blue);
  margin-bottom: 5rem;
  max-width: 600px;
}

body[data-page="about"] .vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 6rem;
  margin-top: 0;
}

.vision-block {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.vision-block .block-icon {
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.vision-block .block-icon svg {
  width: 32px;
  height: 32px;
}

.vision-block h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.vision-block h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.vision-block p,
.visions-block .values-list {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
}

.values-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

/* Mobile Adjustments for 2x2 Grid */
@media (max-width: 992px) {
  body[data-page="about"] .vision-grid {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  body[data-page="about"] .vision-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

body[data-page="about"] .grid-3 .card:hover {
  transform: none;
  box-shadow: none;
}

body[data-page="about"] .grid-3 .card h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  display: inline-block;
}

body[data-page="about"] .grid-3 .card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 100%;
}

/* Global Presence – Controlled Visual Support (straight edges) */
body[data-page="about"] .section-global-presence {
  position: relative;
  padding: 9rem 0;
  background: linear-gradient(135deg, rgba(14, 58, 95, 0.90) 0%, rgba(20, 92, 158, 0.87) 100%),
    url('../assets/images/background/global-logistics-network.jpg') center/cover no-repeat;
  color: #ffffff;
}

body[data-page="about"] .section-global-presence h2 {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

body[data-page="about"] .section-global-presence p {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 65ch;
  margin: 0 auto 3rem;
}

.global-presence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-top: 3rem;
}

.global-presence-item {
  text-align: center;
}

.global-presence-item h3 {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.global-presence-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  body[data-page="about"] .grid-3 {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  body[data-page="about"] .section-who-we-are,
  body[data-page="about"] .section-company-profile,
  body[data-page="about"] .section-vision,
  body[data-page="about"] .section-global-presence {
    padding: 6rem 0;
  }
}

@media (max-width: 768px) {
  body[data-page="about"] .hero {
    padding: 12rem 0 7rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
  }

  body[data-page="about"] .section-company-profile {
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
  }

  .about-grid {
    gap: 3rem;
  }

  body[data-page="about"] .grid-3 {
    gap: 3rem;
  }

  .global-presence-grid {
    gap: 3rem;
  }

  body[data-page="about"] .section-who-we-are,
  body[data-page="about"] .section-company-profile,
  body[data-page="about"] .section-vision,
  body[data-page="about"] .section-global-presence {
    padding: 4rem 0;
  }
}

/* ===== GLOBAL NETWORK – HYBRID ENTERPRISE REFINEMENT ===== */

.network-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns = 3x3 grid */
  gap: 2.5rem;
  margin-top: 5rem;
  align-items: stretch;
}

.network-card {
  background: #f8fafc;
  /* Professional light tint (not pure white) */
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  /* Slightly reduced for professional look */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(14, 58, 95, 0.06);
  /* Soft, diffused shadow */
  position: relative;
}

.card-image-wrapper {
  height: 200px;
  /* Reduced dominance */
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #f1f5f9;
  /* Visual cue/divider */
}

/* Lightened Image Overlay for cleaner feel */
.card-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 58, 95, 0.2);
  /* Muted, lower opacity */
}

/* Subtle Technical Pattern (Brand continuity) */
.card-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 400C150 250 250 150 400 0M50 400C200 250 300 150 450 0' stroke='white' stroke-opacity='0.15' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 140%;
  mix-blend-mode: overlay;
}

.card-content {
  padding: 2.25rem;
  padding-bottom: 3.5rem;
  /* Space for minimal arrow */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #f8fafc;
}

.card-content h3 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  /* Stand out clearly */
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.card-content p {
  color: var(--text-soft);
  /* Calm description */
  font-size: 0.92rem;
  /* Slightly smaller */
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

/* Minimal Gold Action Arrow - Bottom Right */
.card-action {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  transition: all 0.3s ease;
  z-index: 5;
}

.card-action:hover {
  transform: translateX(5px);
}

/* Enhanced hover elevation */
.network-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(14, 58, 95, 0.12);
  border-color: rgba(185, 28, 28, 0.25);
}

/* Page context adjustment */
body[data-page="about"] .network-cards .network-card {
  text-align: left;
}