.card-subpage header.main {
  background: var(--color-hl)
    url('/wp-content/uploads/2026/05/kartya-hero.jpg.avif') no-repeat;
  background-size: cover;
}
.card-subpage header.main h3 {
  text-transform: uppercase;
}
body:not(.nohero) .card-subpage header.main .navigation a,
.card-subpage header.main .side-text * {
  color: white;
}
.card-subpage header.main .navigation a:hover {
  color: var(--color-main);
}
.card-subpage .side-text {
  width: 40%;
}
.card-subpage nav li.active a,
.card-subpage nav li a:hover,
.card-subpage nav li:focus-within a {
  color: var(--color-hl2);
}
.card-subpage .main nav .buttonlike a {
  color: white;
}

#styleD,
#styleC {
  h1,
  h2 {
    --f-max: 40;
    text-transform: none;
  }
  .sect-pad {
    padding-block: clamp(2.5rem, 6vw, 95px);
  }
  .md-button {
    --f-max: 20;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .md-button::after {
    font-family: 'Material Icons';
    font-size: 1.2em;
    font-weight: normal;
    transition: transform 0.3s ease;
  }
  .md-button:hover::after {
    transform: translateX(5px);
  }
  ul.fancy {
    margin: 0;
  }

  .e-con-inner ul li {
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  ul.fancy li {
    display: flex;
    align-items: flex-start;
  }

  ul.fancy li::before {
    content: '';
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: -5px 12px 0 0;
    flex-shrink: 0;
  }

  .header .inner {
    padding: 3.72% 0;
  }
  header.main {
    padding: 0;
  }
  #____body:has(.hero) header.main {
    background: var(--color-hl)
      url('/wp-content/uploads/2026/05/kartya-hero.jpg') no-repeat;
    background-size: cover;
  }

  .head-section .titles,
  .head-section .img {
    flex: 50 1 0%;
    min-width: 300px;
    /*max-width: 587px;*/
  }
  .head-section .inner {
    --max-px: 45;
    gap: var(--distance);
  }
  .head-section .titles {
    margin-top: 7.85%;
  }
  .head-section h4 {
    font-weight: bold;
  }

  /* --- TNY Döntés Szekció --- */
  .decision-section h4 {
    font-weight: bold;
    color: white;
  }
  .decision-section {
    overflow: hidden;
    text-align: center;
    background: var(--color-prim);
    color: white;
  }

  .decision-section .cards-wrapper,
  .decision-section .inner {
    --max-px: 60;
    gap: var(--distance);
  }

  .decision-section .inner-container::after {
    margin-top: min(calc(30 / 1920 * 100%), 30px);
    margin-right: max(calc(-107 / 1920 * 100%), -107px);
    top: 0;
    right: 0;

    width: calc(592 / 1920 * 100%);
    max-width: 592px;
    aspect-ratio: 592 / 856;

    background-image: url(img/cards/arrows2.png);
  }

  .decision-section .card {
    min-width: 280px;
    max-width: 578px;
  }
}

/*------------------------------*/

#styleD {
  .md-button::after {
    content: '\e5c8';
  }
  header .logo {
    width: 207px;
    height: 55px;
  }

  footer .svg-logo-foot {
    padding-bottom: calc(55 / 207 * 100%);
  }

  #body:not(.card-subpage) .lightgradient {
    background: linear-gradient(
      to right,
      #ffffff 0%,
      var(--color-hl-prim) 100%
    );
  }
  #body:not(.card-subpage) .outer-container.header {
    background: linear-gradient(to right, white 50%, var(--color-hl-prim) 50%);
  }

  .head-section .inner-container::after {
    width: calc(1013 / 1920 * 100%);
    max-width: 1013px;
    max-height: 699px;
    aspect-ratio: 1013 / 699;
    margin-top: min(calc(75 / 1920 * 100%), 75px);
    margin-right: min(calc(112 / 1920 * 100%), 112px);
    top: 0;
    right: 0;
    background-image: url('img/cards/arrows1.png');
  }

  /* --- TNY Miért Érdemes Szekció --- */
  .why-register-section .inner {
    --max-px: 80;
    gap: var(--distance);
  }
  .why-register-section .col-left,
  .why-register-section .col-right {
    min-width: 320px;
  }

  /* --- TNY Kiknek Szól? Szekció --- */

  .audience-section {
    text-align: center;
    overflow: hidden;
  }

  .audience-section:not(.no-stump) {
    background-color: var(--color-gray);
  }

  .audience-section h4 {
    --f-max: 22;
    font-weight: bold;
  }

  .audience-section .svg-triad {
    margin-inline: auto;
  }

  .audience-section .coloredCard {
    text-align: left;
    position: relative;
  }
  .coloredCard {
    min-width: 280px;
    padding-inline: 20px;
    padding-block: 30px;
    border-radius: 8px;
    color: #fff;
  }

  .audience-section .col-left {
    background-color: var(--color-prim);
  }

  .audience-section .col-center {
    background-color: var(--color-hl-prim);
  }

  .audience-section .col-right {
    background-color: var(--color-sec);
  }

  .audience-section h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 45px;
    position: relative;
  }
  .time-section .time-card h4::before,
  .audience-section h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 31px;
    height: 31px;
    background-image: url("data:image/svg+xml,%3Csvg width='31' height='31' viewBox='0 0 31 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12.0696L14.4469 15.9099L18.2872 30.3568L30.3568 0L0 12.0696Z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }

  .audience-section .col-right .img {
    position: absolute;
    width: 100%;
    --max-px: 110;
    margin-top: var(--distance);
  }
  .audience-section .col-right .img img {
    margin: auto;
  }
  .audience-section .img.hide-gt-sm img {
    margin: auto;
    margin-top: 30px;
  }

  .audience-section:not(.no-stump) .inner-container::after {
    margin-top: min(calc(162 / 1920 * 100%), 162px);
    margin-right: max(calc(-107 / 1920 * 100%), -107px);
    top: 0;
    right: 0;

    width: calc(420 / 1920 * 100%);
    max-width: 420px;
    aspect-ratio: 420 / 417;

    background-image: url(img/cards/arrows3b.png);
  }

  .audience-section:not(.no-stump) .inner-container::before {
    margin-bottom: min(calc(307 / 1920 * 100%), 307px);
    bottom: 0;
    left: 0;

    width: calc(563 / 1920 * 100%);
    max-width: 563px;
    aspect-ratio: 563 / 599;

    background-image: url(img/cards/arrows3b.png);
  }

  .audience-section .button-wrapper {
    --max-px: 70;
    margin-top: var(--distance);
  }

  .audience-section .table {
    --max-px: 60;
    gap: var(--distance);
  }

  /* --- TNY Idő Szekció --- */

  .time-section .inner {
    text-align: center;
  }

  .time-section .bottom-text h4 {
    font-weight: bold;
  }
  .time-section .time-card h4 {
    --f-max: 22;
    font-weight: bold;
    position: relative;
    padding-top: 45px;
  }

  .time-section .cards-wrapper {
    --max-px: 30;
    gap: var(--distance);
    width: 100%;
  }

  .time-section .subtitle {
    --max-px: 60;
    margin-bottom: var(--distance);
  }

  .time-section .time-card h4 {
    color: #fff;
  }
  .time-section .card-dark {
    background-color: var(--color-prim);
  }
  .time-section .card-light {
    background-color: var(--color-hl-prim);
  }
  .time-section .bottom-text {
    --max-px: 55;
    margin-top: var(--distance);
    margin-bottom: var(--distance);
  }

  /* --- TNY Előny Hátrány Szekció --- */

  .lose-gain-section {
    background-color: var(--color-prim);
    color: #fff;
  }
  .lose-gain-section .content-row {
    --max-px: 80;
    gap: var(--distance);
  }
  .lose-gain-section .content-row h2 {
    color: #fff;
  }
  .lose-gain-section .col-left,
  .lose-gain-section .col-right {
    min-width: 320px;
  }

  .lose-gain-section .button-row {
    --max-px: 50;
    margin-top: var(--distance);
    text-align: center;
  }
  .lose-gain-section .bottom-content {
    --max-px: 40;
    margin-top: var(--distance);
  }
  .lose-gain-section .bottom-content a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
  }
  .lose-gain-section .bottom-content a:hover {
    color: var(--color-sec);
  }
  .lose-gain-section .inner-container {
    overflow: hidden;
  }
  .lose-gain-section .inner-container::after {
    margin-top: min(calc(162 / 1920 * 100%), 162px);
    margin-right: max(calc(-107 / 1920 * 100%), -107px);
    top: 0;
    right: 0;

    width: calc(420 / 1920 * 100%);
    max-width: 420px;
    aspect-ratio: 420 / 417;

    background-image: url(img/cards/arrows4b.png);
  }

  .lose-gain-section .inner-container::before {
    margin-bottom: min(calc(72 / 1920 * 100%), 72px);
    margin-left: min(calc(122 / 1920 * 100%), 122px);
    bottom: 0;
    left: 0;

    width: calc(244 / 1920 * 100%);
    max-width: 244px;
    aspect-ratio: 244 / 221;

    background-image: url(img/cards/arrows4.png);
  }

  .partner-section {
    text-align: center;
    color: white;
    background: var(--color-main);
    overflow: hidden;
  }
  .partner-section * {
    color: white;
  }

  .partner-section .button-wrapper {
    margin-top: 40px;
  }
  .partner-section .partner-container {
    margin-top: 60px;
  }

  .partner-section .logo {
    width: 373px;
    height: 50px;
    margin: auto;
  }

  .corp-grid-section .inner-container::before,
  .partner-section .inner-container::before {
    margin-bottom: max(calc(-240 / 1920 * 100%), -240px);
    margin-left: max(calc(-150 / 1920 * 100%), -150px);
    bottom: 0;
    left: 0;

    width: calc(540 / 1920 * 100%);
    max-width: 540px;
    aspect-ratio: 540 / 582;

    background-image: url(img/cards/arrows3.png);
    opacity: 0.5;
  }

  .corp-grid-section .inner-container::after,
  .partner-section .inner-container::after {
    margin-top: min(calc(28 / 1920 * 100%), 28px);
    margin-right: max(calc(-150 / 1920 * 100%), -150px);
    top: 0;
    right: 0;

    width: calc(410 / 1920 * 100%);
    max-width: 410px;
    aspect-ratio: 410 / 400;

    background-image: url(img/cards/arrows6b.png);
    opacity: 0.5;
  }

  .card-structure-section {
    text-align: center;
    background-color: var(--color-gray);
  }
  .redarr {
    width: 52px;
    aspect-ratio: 52/43;
    margin: 40px auto 30px auto;
    display: block;
  }
  .card-structure-section .iconset {
    max-width: 729px;
    width: 100%;
    aspect-ratio: 729 / 74;
    margin: 0 auto 30px auto;
    display: block;
  }
  .card-structure-section .joker {
    width: 126px;
    aspect-ratio: 1 / 1;
    margin: 30px auto 80px auto;
    display: block;
  }
  .card-structure-section .phase-keywords {
    gap: var(--distance);
    --max-px: 40;
  }
}

.inner-container.have-arrows {
  position: relative;
  z-index: 1;
}
.inner-container.have-arrows::before,
.inner-container.have-arrows::after {
  content: '';
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
