/* =====================================================
   LA — Trang Giới Thiệu & Giấy Tờ Công Ty
   Linh Anh
   ===================================================== */

/* ── Sidebar About — nav icons ── */
.la-cat-nav-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.15s;
}
.la-cat-item:hover > .la-cat-link .la-cat-nav-icon,
.la-cat-active .la-cat-link .la-cat-nav-icon { color: var(--red); }

/* Active state in sidebar */
.la-cat-active { background: #fef2f2; border-left: 3px solid var(--red); }
.la-cat-active .la-cat-link { color: var(--red); }
.la-cat-active .la-cat-link::before { transform: scaleY(1); }

/* ── Sidebar contact box ── */
.la-about-contact-box { margin-top: 12px; }

.la-about-contact-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.la-about-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text); text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
.la-about-contact-item svg {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--navy); margin-top: 1px;
}
.la-about-phone {
  font-size: 14px; font-weight: 800; color: var(--red);
}
.la-about-phone svg { color: var(--red); }
.la-about-phone:hover { color: var(--red2); }
.la-about-contact-item:not(.la-about-phone):hover { color: var(--navy); }

/* ── Main layout ── */
.la-about-main { display: flex; flex-direction: column; gap: 14px; }

/* ── Hero ── */
.la-about-hero {
  background: linear-gradient(118deg, #090f3a 0%, #132070 45%, #1b2e8f 100%);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  position: relative; overflow: hidden;
}
.la-about-hero::before {
  content: ''; position: absolute; right: -40px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.055); pointer-events: none;
}
.la-about-hero::after {
  content: ''; position: absolute; right: 60px; bottom: -80px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(224,32,32,0.07); pointer-events: none;
}

.la-about-logo {
  width: 84px; height: 84px; flex-shrink: 0;
  background: white; padding: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.la-about-logo img { width: 100%; object-fit: contain; }

.la-about-hero-txt { flex: 1; position: relative; z-index: 1; }
.la-about-hero-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  color: rgba(255,255,255,0.42); text-transform: uppercase; margin-bottom: 7px;
}
.la-about-hero-title {
  font-size: 21px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 10px;
}
.la-about-hero-title em { color: #ff4040; font-style: normal; }
.la-about-hero-desc { font-size: 13px; color: rgba(255,255,255,0.58); line-height: 1.7; max-width: 500px; }

/* ── Section block ── */
.la-section {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.la-section-head {
  display: flex; align-items: stretch;
  border-bottom: 2px solid #eee; min-height: 40px;
}
.la-section-title {
  background: var(--navy); color: white;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 0 20px;
  display: flex; align-items: center; gap: 8px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 26px; white-space: nowrap;
}
.la-section-title svg { width: 15px; height: 15px; flex-shrink: 0; }

.la-section-body { padding: 20px 24px; }
.la-section-body--flush { padding: 0; }

/* WordPress content */
.la-wp-content p { font-size: 14px; line-height: 1.75; color: #334; margin-bottom: 12px; }
.la-wp-content h2, .la-wp-content h3 { color: var(--navy); margin: 16px 0 8px; }

/* ── Info grid ── */
.la-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.la-info-row {
  display: flex; padding: 10px 0;
  border-bottom: 1px solid #f0f2f8; gap: 12px; align-items: flex-start;
}
.la-info-row:last-child { border-bottom: none; }
.la-info-label {
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  width: 130px; flex-shrink: 0; padding-top: 1px;
}
.la-info-val { font-size: 13px; color: #334; line-height: 1.5; }

/* ── Partners grid ── */
.la-partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.la-partner-card {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; transition: background 0.15s;
}
.la-partner-card:nth-child(4n) { border-right: none; }
.la-partner-card:last-child { border-bottom: none; }
.la-partner-card:hover { background: #f7f8fd; }

.la-partner-logo {
  height: 60px; display: flex; align-items: center; justify-content: center;
}
.la-partner-logo img { max-height: 60px; max-width: 120px; object-fit: contain; }

.la-partner-name {
  font-size: 12.5px; font-weight: 800; color: var(--navy);
  text-align: center; text-transform: uppercase; letter-spacing: 0.5px;
}
.la-partner-cert {
  font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5;
}
.la-partner-badge {
  display: inline-block;
  background: #dcfce7; color: #16a34a;
  font-size: 10px; font-weight: 700; padding: 2px 10px;
  letter-spacing: 0.3px;
}

/* ── Documents gallery ── */
.la-docs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding: 20px 24px;
}

.la-doc-card {
  border: 1px solid var(--border); overflow: hidden; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.la-doc-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1.5px rgba(27,46,143,0.22),
    0 8px 24px rgba(27,46,143,0.10);
}

.la-doc-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
}
.la-doc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.3s ease;
  display: block;
}
.la-doc-card:hover .la-doc-img-wrap img { transform: scale(1.03); }

/* Hover overlay */
.la-doc-overlay {
  position: absolute; inset: 0;
  background: rgba(11,20,80,0.50);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.la-doc-card:hover .la-doc-overlay { opacity: 1; }
.la-doc-overlay-icon {
  width: 50px; height: 50px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.la-doc-overlay-icon svg { width: 22px; height: 22px; }

/* Nhãn trang */
.la-doc-tag {
  position: absolute; top: 10px; left: 0;
  background: var(--navy); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* Caption */
.la-doc-caption { padding: 11px 13px; background: white; border-top: 1px solid var(--border); }
.la-doc-caption h4 { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.la-doc-caption p { font-size: 11px; color: var(--muted); }

/* ── Lightbox ── */
.la-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,10,40,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.la-lightbox.open { opacity: 1; pointer-events: auto; }

.la-lb-inner {
  position: relative; max-width: 820px; width: 92%;
  display: flex; flex-direction: column; max-height: 92vh;
}
.la-lb-img-wrap {
  flex: 1; overflow: hidden; background: white;
  display: flex; align-items: center; justify-content: center;
}
.la-lb-img-wrap img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; display: block;
  transition: opacity 0.2s;
}
.la-lb-caption {
  background: var(--navy); color: white;
  padding: 12px 18px; font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.la-lb-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,0.10); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px;
  transition: background 0.15s;
}
.la-lb-close:hover { background: var(--red); }

.la-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.10); border: none; color: white;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 24px; line-height: 1;
  transition: background 0.15s;
}
.la-lb-nav:hover { background: var(--navy); }
.la-lb-prev { left: -62px; }
.la-lb-next { right: -62px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .la-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .la-partner-card:nth-child(4n) { border-right: 1px solid var(--border); }
  .la-partner-card:nth-child(2n) { border-right: none; }
  .la-docs-grid { grid-template-columns: repeat(2, 1fr); }
  .la-info-grid { grid-template-columns: 1fr; gap: 0; }
  .la-lb-prev { left: -48px; }
  .la-lb-next { right: -48px; }
}

@media (max-width: 768px) {
  .la-layout { flex-direction: column; }
  .la-sidebar { width: 100%; position: static; }
  .la-about-hero { flex-direction: column; padding: 20px; gap: 16px; }
  .la-about-logo { width: 64px; height: 64px; }
  .la-about-hero-title { font-size: 17px; }
  .la-docs-grid { grid-template-columns: 1fr 1fr; padding: 14px; gap: 12px; }
  .la-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .la-lb-prev, .la-lb-next { display: none; }
  .la-lb-inner { width: 96%; }
}