/*
 * TudásKözpont kezdőlap - blokk stílusok
 *
 * Minden szabály a .tk-<blokk_típus> wrapperre van szűkítve
 * (tudaskoz/tudaskoz_home_page.html), így a közös
 * templates/blocks/*.html sablonok más oldalakon változatlanok maradnak.
 */

:root {
    --block-title: 30px;
    --block-title-weight: 700;
    --tk-section-y: 60px;
    --tk-gutter: 15px;
}

@media (max-width: 991.98px) {
    :root {
        --tk-section-y: 48px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --block-title: 24px;
        --tk-section-y: 36px;
    }
}

/* =========================
   KÖZÖS
   ========================= */

/* Bootstrap 3 + Tailwind .container ütközés: mindig középre, oldalsó belső margóval */
.tk-home .container {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tk-gutter);
    padding-right: var(--tk-gutter);
}

.tk-home img {
    max-width: 100%;
    height: auto;
}

.tk-home h1,
.tk-home h2,
.tk-home h3,
.tk-home h4,
.tk-home p {
    overflow-wrap: break-word;
}

/* Bootstrap 3 rácsban az oszlopok mobilon is legyenek egymás alatt, teljes szélességben */
@media (max-width: 991.98px) {
    .tk-services .row > [class*="col-md-"],
    .tk-features .row > [class*="col-md-"],
    .tk-stream .row > [class*="col-md-"] {
        float: none;
        width: 100%;
    }
}

/* =========================
   HERO
   ========================= */

.tk-hero .hero-section {
    height: auto;
    min-height: clamp(360px, 80vh, 750px);
    display: flex;
}

.tk-hero .hero-overlay {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 60px 0;
}

.tk-hero .hero-title {
    font-size: clamp(30px, 6vw, 56px);
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 800px;
}

.tk-hero .hero-subtitle {
    font-size: clamp(16px, 2.4vw, 22px);
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
}

/* Mobilon a szöveg a teljes szélességet kitölti: egyenletesebb sötétítés kell */
@media (max-width: 767.98px) {
    .tk-hero .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,0.35) 0%,
            rgba(0,0,0,0.65) 100%
        );
        align-items: flex-end;
        padding: 40px 0;
    }
}

/* =========================
   SZOLGÁLTATÁSOK
   ========================= */

.tk-services .box.box-landing-1 {
    padding: var(--tk-section-y) 0;
    margin-bottom: 0;
}

.tk-services h4,
.tk-services .box.box-landing-1 .box__caption {
    color: #fff;
    font-size: var(--block-title) !important;
    font-weight: var(--block-title-weight);
    line-height: 1.25;
    margin-bottom: 30px !important;
}

.tk-services .box.box-landing-1 .row {
    margin-top: 0 !important;
    display: flex;
    flex-wrap: wrap;
}

/* Bootstrap 3 clearfix pszeudo-elemek ne legyenek flex elemek */
.tk-services .box.box-landing-1 .row::before,
.tk-services .box.box-landing-1 .row::after {
    display: none;
}

.tk-services .row > [class*="col-md-"] {
    display: flex;
}

.tk-services .b-entity {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100% - 30px);
    color: #333;
}

.tk-services .b-entity:hover {
    color: #fff;
}

.tk-services .b-entity__title {
    font-size: 22px;
    line-height: 1.3;
    margin: 15px 0 10px;
}

.tk-services .b-entity p {
    flex: 1 1 auto;
}

.tk-services .service-more {
    display: inline-block;
    margin-top: 10px;
}

@media (max-width: 575.98px) {
    .tk-services .b-entity {
        padding: 24px 18px;
        margin-bottom: 20px;
        height: calc(100% - 20px);
    }

    .tk-services .b-entity__icon {
        font-size: 40px;
    }

    .tk-services .b-entity__title {
        font-size: 20px;
    }
}

/* =========================
   ESEMÉNYEK
   ========================= */

.tk-events .events-section {
    padding: var(--tk-section-y) 0;
}

.tk-events h2 {
    color: #fff;
    font-size: var(--block-title);
    font-weight: var(--block-title-weight);
    line-height: 1.25;
    margin: 0 0 30px;
}

.tk-events .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

/* A user-style.css esemény-részletek oldali szabályai (38px cím, vízszintes meta)
   felülírnák a kártyát, ezért itt visszaállítjuk a kártya méreteit */
.tk-events .event-card {
    color: #333;
    min-width: 0;
}

.tk-events .event-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.tk-events .event-title {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 10px;
    color: #222;
}

.tk-events .event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.tk-events .event-meta span {
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow-wrap: anywhere;
}

.tk-events .event-meta i {
    flex: 0 0 14px;
    text-align: center;
}

.tk-events .event-btn {
    align-self: flex-start;
    padding: 6px 0;
}

.tk-events .events-more {
    margin-top: 32px;
}

.tk-events .events-more-btn {
    display: inline-block;
    max-width: 100%;
}

@media (hover: none) {
    .tk-events .event-card:hover {
        transform: none;
    }
}

/* =========================
   BEMUTATKOZÁS (FEATURES)
   ========================= */

.tk-features .features-section {
    padding: var(--tk-section-y) 0;
}

.tk-features .section-title {
    color: #fff;
    font-size: var(--block-title);
    font-weight: var(--block-title-weight);
    line-height: 1.25;
    text-align: center;
    margin: 0 0 30px;
}

.tk-features .row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
}

.tk-features .row::before,
.tk-features .row::after {
    display: none;
}

.tk-features .feature-image {
    height: auto;
    min-height: 0;
    margin-bottom: 16px;
}

.tk-features .feature-image img {
    max-height: 200px;
    width: auto;
}

.tk-features .feature-title {
    color: #fff;
    margin: 0 0 10px;
}

.tk-features .feature-text {
    color: rgba(255,255,255,0.75);
    margin: 0 auto;
    max-width: 480px;
}

@media (min-width: 640px) and (max-width: 991.98px) {
    .tk-features .row > [class*="col-md-"] {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .tk-features .feature-image img {
        max-height: 160px;
    }
}

/* =========================
   CTA
   ========================= */

.tk-cta .cta-section {
    padding: var(--tk-section-y) 0;
}

.tk-cta .cta-text {
    font-size: clamp(18px, 2.6vw, 26px);
    line-height: 1.4;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 24px;
}

.tk-cta .btn {
    display: inline-block;
    max-width: 100%;
    padding: 12px 28px;
    font-size: 17px;
    white-space: normal;
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .tk-cta .btn {
        display: block;
        width: 100%;
    }
}

/* =========================
   KÉPES SZEKCIÓ
   ========================= */

.tk-image_section .image-section {
    display: flex;
    align-items: center;
    min-height: clamp(220px, 45vw, 480px);
    padding: var(--tk-section-y) 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tk-image_section .image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.tk-image_section .image-section .container {
    position: relative;
    z-index: 1;
}

.tk-image_section .image-section-text {
    color: #fff;
    font-size: clamp(18px, 2.8vw, 30px);
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* =========================
   KAPCSOLAT
   ========================= */

.tk-contact h2 {
    color: #fff;
    font-size: var(--block-title);
    font-weight: var(--block-title-weight);
    line-height: 1.25;
}

.tk-contact .contact-section {
    padding: var(--tk-section-y) 0;
}

.tk-contact .section-title {
    margin-bottom: 40px;
}

/* Flex sor: a két oszlop függőlegesen középre igazítva */
.tk-contact .contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 30px;
    margin-top: 0;
}

/* Bootstrap 3 clearfix pszeudo-elemek ne legyenek flex elemek */
.tk-contact .contact-row::before,
.tk-contact .contact-row::after {
    display: none;
}

/* Mobilon és tableten egymás alatt, teljes szélességben */
.tk-contact .contact-row > .contact-info,
.tk-contact .contact-row > .contact-map {
    float: none;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.tk-contact .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tk-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tk-contact .contact-item i {
    flex: 0 0 24px;
    margin-right: 0;
    text-align: center;
    line-height: inherit;
}

.tk-contact .contact-extra p:last-child {
    margin-bottom: 0;
}

/* Reszponzív térkép (a sablon fix 600x400-as iframe-et ad) */
.tk-contact .contact-map iframe,
.tk-contact .map-wrapper {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 8px;
}

.tk-contact .map-wrapper {
    position: relative;
    overflow: hidden;
}

.tk-contact .map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tablet / mobil (egymás alatt): a bal oldali elérhetőségek középre */
@media (max-width: 991.98px) {
    .tk-contact .contact-info {
        align-items: center;
        text-align: center;
    }

    .tk-contact .contact-item {
        justify-content: center;
    }

    .tk-contact .contact-item i {
        flex-basis: auto;
    }
}

/* Asztali nézet: két oszlop egymás mellett */
@media (min-width: 992px) {
    .tk-contact .contact-row > .contact-info,
    .tk-contact .contact-row > .contact-map {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }

    .tk-contact .contact-map iframe,
    .tk-contact .map-wrapper {
        aspect-ratio: 3 / 2;
    }
}

/* Kis kijelzők */
@media (max-width: 575.98px) {
    .tk-contact .section-title {
        margin-bottom: 24px;
    }

    .tk-contact .contact-item {
        font-size: 16px;
    }

    .tk-contact .contact-map iframe,
    .tk-contact .map-wrapper {
        aspect-ratio: 1 / 1;
    }
}

/* =========================
   STREAM STUDIO
   ========================= */

.tk-stream .stream-section {
    padding: var(--tk-section-y) 0 0;
}

.tk-stream h2 {
    color: #fff;
    font-size: var(--block-title);
    font-weight: var(--block-title-weight);
    line-height: 1.25;
}

.tk-stream .row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 24px;
}

.tk-stream .row::before,
.tk-stream .row::after {
    display: none;
}

.tk-stream iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px;
}

/* Videó: 16:9 arány a fix 350px magasság helyett */
.tk-stream .row > :first-child iframe {
    height: auto;
    aspect-ratio: 16 / 9;
}

@media (min-width: 992px) {
    .tk-stream .row > :first-child iframe,
    .tk-stream .row > :last-child iframe {
        height: 350px;
        aspect-ratio: auto;
    }
}

@media (max-width: 991.98px) {
    .tk-stream .row > :last-child iframe {
        height: 420px;
    }
}

@media (max-width: 575.98px) {
    .tk-stream .row > :last-child iframe {
        height: 360px;
    }
}

/* =========================
   PARTNEREK
   ========================= */

.tk-partners .partners-section {
    padding-top: var(--tk-section-y);
    padding-bottom: var(--tk-section-y);
}

.tk-partners .partner-category h2 {
    color: #222;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.3;
}

.tk-partners .partner-category:last-child {
    margin-bottom: 0;
}

.tk-partners .partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

@media (max-width: 575.98px) {
    .tk-partners .partner-slider {
        padding: 0 32px;
    }

    .tk-partners .swiper-button-prev,
    .tk-partners .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .tk-partners .swiper-button-prev::after,
    .tk-partners .swiper-button-next::after {
        font-size: 14px;
    }

    .tk-partners .partner-item {
        min-height: 72px;
        padding: 10px;
    }

    .tk-partners .partner-logo {
        max-height: 40px;
    }
}
