.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 3rem 0;
}

.line {
    opacity: 0;
}

.contentinner {
    display: flex;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
}

.contents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.contents img {
    height: 25rem;
    flex-shrink: 0;
}

.textblock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 45%;
}

.textblock .ctaButton,
.textblock .ctaButton1 {
    margin-top: 1rem;
}

.contentdescript {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word;
    text-align: justify;
}

.kiemelt {
    color: var(--sarga);
}

.news-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    width: 80%;
    align-items: stretch;
}

.news-main {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
}

.news-side {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-item {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
}

.news-main::before,
.news-item::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.news-main img,
.news-item img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
}

.news-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 40%,
            rgba(0, 0, 0, 0.6) 65%,
            rgba(0, 0, 0, 0.0) 100%);
    color: #fff;
    box-sizing: border-box;
    padding-right: 1rem;
    overflow: hidden;
}

.news-innertext {
    position: relative;
    transition: transform .3s ease;
}

.news-category-news {
    font-size: 0.9rem;
    padding: .25rem .6rem;
    background-color: var(--new);
    border-radius: 999rem;
}

.news-category-team {
    font-size: 0.9rem;
    background-color: var(--team);
    padding: .25rem .6rem;
    border-radius: 999rem;
}

.news-category-blog {
    font-size: 0.9rem;
    padding: .25rem .6rem;
    background-color: var(--blog);
    border-radius: 999rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: .3rem;
}

.news-time {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: .3rem;
}

.news-main:hover .news-innertext,
.news-item:hover .news-innertext {
    transform: translateY(-15%);
}


.carosuelwrap {
    position: relative;
    width: 80%;
    display: flex;
    align-items: center;
}

.carosuel {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 1rem;
    anchor-name: --carousel;
    border-radius: .5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carosuel::-webkit-scrollbar {
    display: none;
}

.projectcard {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16/9;
    max-height: 36rem;
    width: 100%;
    background-color: #000;
    border-radius: .5rem;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.projectcard .project-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.carosuelwrap:hover .project-bg {
    transform: scale(1.04);
}

.projectcard .project-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 1.8rem 2.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.35) 35%,
            rgba(0, 0, 0, 0) 65%);
}

.projectcard .project-title {
    font-size: 2.2rem;
    font-weight: 650;
    letter-spacing: .04em;
    color: #fff;
    margin: 0;
}

.carosuelarrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.carosuelwrap:hover .carosuelarrow,
.carosuelarrow:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.carosuelarrow img {
    width: 100%;
    height: auto;
}

.carosuelarrow-left {
    left: 0;
    justify-content: flex-start;
    background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
    border-radius: .5rem 0 0 .5rem;
}

.carosuelarrow-left img {
    transform: scaleX(-1);
}

.carosuelarrow-right {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
    border-radius: 0 .5rem .5rem 0;
}

.carosuelarrow:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.scrollmarker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    margin: 1rem 0;
}

.scrolldot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background-color: var(--kek1);
    cursor: pointer;
}

.active-dot {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background-color: var(--sarga);
    transition: left .3s ease;
}


.ctaButton,
.ctaButton1 {
    align-self: flex-start;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: .5rem .8rem;
    border-radius: .5rem;
    border: 2px solid var(--sarga);
    background-color: rgb(0, 0, 0, .2);
    transition: background-color .3s, margin .3s;
}

.ctaButton:hover,
.ctaButton1:hover {
    background-color: var(--sarga);
    margin-left: .5rem;
    color: var(--kek5);
}

.ctaButton:active,
.ctaButton1:active {
    opacity: var(--activeOpacity);
}

.project-cta {
    align-self: center;
    text-align: center;
}

@media (min-width: 1100px) {
    /* PC */

    .contentnamewrap {
        position: relative;
        width: 80%;
        margin: 0 auto;
        overflow: hidden;
        display: flex;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .contentname {
        position: relative;
        display: inline-block;
        font-size: 3rem;
        font-weight: 600;
        text-align: center;
        padding: 0 1.5rem;
        background: transparent;
        white-space: nowrap;
    }

    .contentname::before,
    .contentname::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 9999px;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-50%);
    }

    .contentname::before {
        right: 100%;
    }

    .contentname::after {
        left: 100%;
    }

}

@media (max-width: 1099px) {
    /* TELÓ */

    .line2 {
        content: "";
        width: 95%;
        flex: 1 1 auto;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .contentinner {
        width: 95%;
    }

    .contents {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .contents img {
        height: 18rem;
    }

    .textblock {
        align-items: center;
        max-width: 100%;
    }

    .ctaButton,
    .ctaButton1 {
        padding: .5rem .8rem;
    }

    .ctaButton {
        align-self: center;
        text-align: center;
    }

    .contentname {
        font-size: 2.1rem;
        max-width: 100%;
        font-weight: 600;
        text-align: center;
        padding-bottom: 2rem;
    }

    .contentdescript {
        font-size: 1rem;
        max-width: 90%;
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
        width: 95%;
        gap: 1rem;
    }

    .news-main::before,
    .news-item::before {
        padding-bottom: 65%;
    }

    .news-side {
        grid-template-rows: none;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-text {
        padding: 0.8rem;
        background: linear-gradient(0deg,
                rgba(0, 0, 0, 0.95) 0%,
                rgba(0, 0, 0, 0.85) 40%,
                rgba(0, 0, 0, 0.6) 70%,
                rgba(0, 0, 0, 0.0) 100%);
    }

    .news-category {
        font-size: 0.8rem;
    }

    .news-title {
        font-size: 1.1rem;
        line-height: 1.3rem;
    }

    .news-time {
        font-size: 0.75rem;
    }

    .carosuelwrap {
        width: 95%;
    }

    .carosuelarrow {
        display: none;
    }

    .projectcard {
        aspect-ratio: 3/2;
        max-height: none;
    }

    .projectcard .project-overlay {
        padding: 1.4rem 1.4rem;
    }

    .projectcard .project-title {
        font-size: 1.6rem;
    }
}

.news-section .news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: auto;
    margin-top: .5rem;
}

.successmessage {
    position: fixed;
    width: 80%;
    box-sizing: border-box;
    background-color: #41994888;
    border: #419948 3px solid;
    border-radius: .5rem;
    font-size: 2.5rem;
    text-align: center;
    z-index: 1000;
    top: 10%;
    transition: opacity 0.3s ease-in;
    cursor: pointer;
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* --- görgetésre beúszó tartalom -------------------------------------------
   A .js-anim jelzőt a base.html fejléce teszi ki, még az első festés előtt —
   csak akkor, ha fut a JS és a látogató nem kért csökkentett mozgást. Ezért a
   rejtett kezdőállapot sosem ragad be: JS nélkül meg sem születik, ha pedig a
   lap alján lévő beúsztató elhasalna, a fejléc failsafe-je leveszi a jelzőt.
   A .is-visible szabály szándékosan AZONOS fajsúlyú a rejtő szabályokkal, és
   utánuk áll — így a sorrend dönt, nem kell !important.
   Ami kimarad: a nyitó videós fejléc és a projektoldalak hero-ja — azok az
   érkezéskor rögtön a helyükön vannak.
   ------------------------------------------------------------------------- */
.js-anim main .pp-chapter-head,
.js-anim main .pp-heading,
.js-anim main .pp-prose,
.js-anim main .pp-brief,
.js-anim main .pp-stat,
.js-anim main .ab-field,
.js-anim main .ab-project,
.js-anim main .pp-member,
.js-anim main .pp-sponsor,
.js-anim main .pp-figure,
.js-anim main .pp-table-block,
.js-anim main .pp-quote,
.js-anim main .xs-gauge,
.js-anim main .ss-card,
.js-anim main .contentnamewrap,
.js-anim main .carosuelwrap,
.js-anim main .contents,
.js-anim main .formfield,
.js-anim main .news-main,
.js-anim main .news-item,
.js-anim main .blog-post {
  opacity: 0;
  transform: translateY(1.25rem);
}

.js-anim main .is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
