/* HOME ABOUT / EXPERTISE SECTION - PREMIUM DARK IMAGE VERSION */
/* Premium font system: Sora + Inter */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@500;600;700;800&display=swap');

.apm-expertise-section,
.apm-expertise-section * {
  box-sizing: border-box;
}

.apm-expertise-section {
  --apm-navy-950: #020b18;
  --apm-navy-900: #031327;
  --apm-navy-850: #06162b;
  --apm-navy-800: #071a34;
  --apm-gold: #f4ab3c;
  --apm-gold-light: #ffd37a;
  --apm-text: #ffffff;
  --apm-muted: rgba(255, 255, 255, 0.78);

  /*--apm-expert-main-image: url("https://agilepm.education/wp-content/uploads/2026/06/home-about.webp");*/
  --apm-expert-main-image: url("https://agilepm.education/wp-content/uploads/2026/06/home-about3.webp");
  --apm-expert-profile-image: url("https://agilepm.education/wp-content/uploads/2025/03/Levente-Antal-Szava-1.jpg");

  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 860px;
  padding: 0;
  margin: 0;
  background:
    radial-gradient(circle at 10% 92%, rgba(45, 145, 220, 0.22) 0%, rgba(45, 145, 220, 0.08) 17%, transparent 36%),
    radial-gradient(circle at 82% 12%, rgba(244, 171, 60, 0.12) 0%, transparent 30%),
    linear-gradient(135deg, #031327 0%, #061a33 42%, #06162b 72%, #020b18 100%);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  color: var(--apm-text);
}

.apm-expertise-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.96) 0%,
      rgba(2, 11, 24, 0.80) 31%,
      rgba(2, 11, 24, 0.36) 56%,
      rgba(2, 11, 24, 0.62) 100%
    ),
    radial-gradient(circle at 68% 46%, rgba(255, 255, 255, 0.055), transparent 32%);
}

.apm-expertise-section::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 34px;
  z-index: 1;
  width: 120px;
  height: 120px;
  opacity: 0.45;
  pointer-events: none;
  background-image: radial-gradient(rgba(244, 171, 60, 0.62) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}

.apm-expertise-wrap {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0;
}

/* BACKGROUND ORBITS */

.apm-expertise-bg-glow {
  position: absolute;
  left: -14%;
  bottom: -25%;
  z-index: 1;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 138, 210, 0.34), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.apm-expertise-bg-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(244, 171, 60, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.apm-expertise-bg-orbit-1 {
  top: -160px;
  right: -250px;
  width: 900px;
  height: 900px;
}

.apm-expertise-bg-orbit-2 {
  top: -250px;
  right: -370px;
  width: 1120px;
  height: 1120px;
  opacity: 0.65;
}

/* MAIN LAYOUT */

.apm-expert-block {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: 70px;
  width: 100%;
  min-height: 860px;
  margin: 0;
  overflow: visible;
}

/* LEFT CONTENT */

.apm-expert-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding: 110px 0 90px;
  color: #ffffff;
}

/* EYEBROW - SINGLE GOLD LINE */

.apm-expert-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--apm-gold);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.apm-expert-eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--apm-gold);
  box-shadow: 0 0 18px rgba(244, 171, 60, 0.45);
}

.apm-expert-eyebrow span {
  display: none !important;
}

.apm-expert-title {
  max-width: 650px;
  margin: 0;
  color: #ffffff !important;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(42px, 3.15vw, 56px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}

.apm-expert-title span {
  color: var(--apm-gold);
  font-family: 'Sora', system-ui, sans-serif;
}

.apm-expert-line {
  width: 78px;
  height: 3px;
  margin: 38px 0 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--apm-gold), var(--apm-gold-light));
  box-shadow: 0 0 22px rgba(244, 171, 60, 0.42);
}

.apm-expert-text {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.74;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.apm-expert-text strong {
  color: var(--apm-gold);
  font-weight: 800;
}

.apm-expert-highlight {
  position: relative;
  max-width: 650px;
  margin: 34px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(19px, 1.35vw, 23px);
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.apm-expert-highlight::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--apm-gold), var(--apm-gold-light));
}

.apm-expert-highlight strong {
  color: var(--apm-gold);
  font-weight: 800;
}

/* RIGHT VISUAL AREA */

.apm-expert-visual {
  position: relative;
  z-index: 3;
  min-height: 720px;
  padding-top: 320px;
}

/* LARGE BACKGROUND IMAGE */

.apm-expert-main-image {
  position: absolute;
  top: 4px;
  right: -28px;
  z-index: 1;
  width: min(820px, 100%);
  height: 470px;
  overflow: hidden;
  border-radius: 0 0 0 120px;
  background:
    linear-gradient(90deg, rgba(3, 13, 29, 0.18), rgba(3, 13, 29, 0.03)),
    var(--apm-expert-main-image) center / cover no-repeat;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.38),
    inset 0 -110px 110px rgba(3, 13, 29, 0.62);
}

.apm-expert-main-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(4, 18, 36, 0.74) 100%),
    linear-gradient(90deg, rgba(4, 18, 36, 0.28), transparent 42%);
  pointer-events: none;
}

.apm-expert-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* PROFILE AREA */

.apm-expert-profile {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 22px;
  width: min(560px, 100%);
  margin: 0 auto 28px;
}

.apm-expert-photo {
  width: 108px;
  height: 108px;
  margin: 0;
  border-radius: 50%;
  background: var(--apm-expert-profile-image) center top / cover no-repeat;
  border: 3px solid var(--apm-gold);
  box-shadow:
    0 0 0 8px rgba(244, 171, 60, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.34);
}

.apm-expert-profile-content {
  min-width: 0;
}

.apm-expert-profile-name {
  margin: 0 0 6px !important;
  color: #ffffff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(28px, 2vw, 34px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.apm-expert-profile-founder {
  margin: 0 0 7px !important;
  color: var(--apm-gold);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.apm-expert-profile-role {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* EXPERT TAGS */

.apm-expert-tags {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  width: 100%;
}

.apm-expert-tag {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  padding: 22px 24px;
  border: 1px solid rgba(160, 188, 220, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(8, 25, 50, 0.56);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.apm-expert-tag:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 171, 60, 0.55);
  background:
    linear-gradient(135deg, rgba(244, 171, 60, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(8, 25, 50, 0.70);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.apm-expert-tag-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(244, 171, 60, 0.72);
  border-radius: 50%;
  color: var(--apm-gold);
  background: rgba(244, 171, 60, 0.07);
}

.apm-expert-tag-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.apm-expert-tag-title {
  margin: 0 0 8px !important;
  color: #ffffff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.apm-expert-tag-desc {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* BACKWARD COMPATIBILITY IF OLD HTML STILL HAS apm-expert-tag-text */

.apm-expert-tag-text {
  margin: 0 !important;
  color: #ffffff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* MORE DETAILS BUTTON */

.apm-expert-cta-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 28px;
  margin-bottom: 72px;
}

.apm-expert-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 210px;
  height: 58px;
  padding: 0 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--apm-gold-light) 0%, var(--apm-gold) 48%, #e89122 100%);
  color: #071426 !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow:
    0 22px 42px rgba(244, 171, 60, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.apm-expert-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  color: #071426 !important;
  text-decoration: none !important;
  box-shadow:
    0 28px 54px rgba(244, 171, 60, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.apm-expert-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.apm-expert-cta:hover .apm-expert-cta-arrow {
  transform: translateX(5px);
}

/* RESPONSIVE - TABLET */

@media (max-width: 1180px) {
  .apm-expertise-section {
    min-height: auto;
  }

  .apm-expertise-wrap {
    width: min(100% - 44px, 980px);
  }

  .apm-expert-block {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: auto;
  }

  .apm-expert-content {
    max-width: 760px;
    padding: 90px 0 0;
  }

  .apm-expert-visual {
    min-height: auto;
    padding-top: 370px;
    padding-bottom: 80px;
  }

  .apm-expert-main-image {
    left: 0;
    right: 0;
    width: 100%;
    height: 430px;
    margin: 0 auto;
    border-radius: 28px;
  }

  .apm-expert-tags {
    max-width: 760px;
    margin: 0 auto;
  }
}

/* RESPONSIVE - MOBILE */

@media (max-width: 767px) {
  .apm-expertise-section {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .apm-expertise-wrap {
    width: min(100% - 28px, 560px);
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
  }

  .apm-expertise-bg-orbit-1,
  .apm-expertise-bg-orbit-2 {
    opacity: 0.35;
  }

  .apm-expert-block {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    margin: 0;
  }

  .apm-expert-content {
    max-width: 100%;
    padding: 72px 0 0;
  }

  .apm-expert-eyebrow {
    gap: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .apm-expert-eyebrow::before {
    width: 28px;
  }

  .apm-expert-eyebrow span {
    display: none !important;
  }

  .apm-expert-title {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .apm-expert-line {
    margin: 30px 0 28px;
  }

  .apm-expert-text {
    font-size: 16px;
    line-height: 1.68;
  }

  .apm-expert-highlight {
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.54;
  }

  .apm-expert-visual {
    padding-top: 280px;
    padding-bottom: 64px;
  }

  .apm-expert-main-image {
    height: 320px;
    border-radius: 22px;
  }

  .apm-expert-profile {
    grid-template-columns: 82px 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }

  .apm-expert-photo {
    width: 82px;
    height: 82px;
  }

  .apm-expert-profile-name {
    font-size: 25px;
    line-height: 1.1;
  }

  .apm-expert-profile-founder {
    font-size: 14px;
  }

  .apm-expert-profile-role {
    font-size: 13px;
  }

  .apm-expert-tags {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: none;
  }

  .apm-expert-tag {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    min-height: auto;
    padding: 20px;
    border-radius: 16px;
  }

  .apm-expert-tag-icon {
    width: 52px;
    height: 52px;
  }

  .apm-expert-tag-title,
  .apm-expert-tag-text {
    font-size: 17px;
    line-height: 1.22;
  }

  .apm-expert-tag-desc {
    font-size: 14px;
    line-height: 1.46;
  }

  .apm-expert-cta-wrap {
    margin-top: 24px;
    margin-bottom: 56px;
  }

  .apm-expert-cta {
    width: 100%;
    max-width: 320px;
    height: 56px;
    padding: 0 28px;
  }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
  .apm-expertise-wrap {
    width: min(100% - 22px, 390px);
  }

  .apm-expert-content {
    padding-top: 64px;
  }

  .apm-expert-title {
    font-size: 38px;
    line-height: 1.08;
  }

  .apm-expert-visual {
    padding-top: 260px;
  }

  .apm-expert-main-image {
    height: 280px;
  }

  .apm-expert-profile {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .apm-expert-profile-content {
    text-align: center;
  }

  .apm-expert-tag {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .apm-expert-tag-title,
  .apm-expert-tag-desc,
  .apm-expert-tag-text {
    text-align: center;
  }
}

/* SPACING SAFETY RESET */

.apm-expertise-section,
.apm-expertise-section + * {
  margin-top: 0 !important;
}

.apm-expertise-section {
  margin-bottom: 0 !important;
}