/* ==========================================================
   NEMES-GSZI
   NYÍLT NAPOK – 2027/2028
   ========================================================== */


/* ==========================================================
   FONT
   ========================================================== */

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================
   VÁLTOZÓK
   ========================================================== */

:root {
    --open-navy: #07324b;
    --open-navy-dark: #05283c;
    --open-navy-deep: #041f30;

    --open-blue: #08a9e6;
    --open-blue-dark: #0798d1;
    --open-blue-soft: #eaf7fc;

    --open-text: #17394c;
    --open-muted: #71848f;

    --open-bg: #f4f7f9;
    --open-bg-soft: #f8fafb;

    --open-border: #dce6ea;

    --open-white: #ffffff;
}


/* ==========================================================
   ALAP
   ========================================================== */

.open-hero,
.open-section,
.open-register,
.open-final {
    font-family: 'Inter', Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.open-hero *,
.open-section *,
.open-register *,
.open-final *,
.open-hero *::before,
.open-section *::before,
.open-register *::before,
.open-final *::before,
.open-hero *::after,
.open-section *::after,
.open-register *::after,
.open-final *::after {
    box-sizing: border-box;
}


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

.open-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: var(--open-blue);

    font-size: 11px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* ==========================================================
   GOMBOK
   ========================================================== */

.open-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    min-height: 51px;

    padding: 0 22px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.open-btn-primary {
    background: var(--open-blue);

    color: #fff !important;

    box-shadow:
        0 12px 28px rgba(8, 169, 230, .20);
}


.open-btn-primary:hover,
.open-btn-primary:focus {
    background: var(--open-blue-dark);

    color: #fff !important;

    transform: translateY(-2px);

    box-shadow:
        0 16px 32px rgba(8, 169, 230, .28);
}


.open-btn-secondary {
    border-color: rgba(255, 255, 255, .35);

    background: rgba(255, 255, 255, .06);

    color: #fff !important;
}


.open-btn-secondary:hover,
.open-btn-secondary:focus {
    border-color: rgba(255, 255, 255, .65);

    background: rgba(255, 255, 255, .12);

    color: #fff !important;
}


.open-btn-light {
    border-color: #cbd9df;

    background: #fff;

    color: var(--open-navy) !important;
}


.open-btn-light:hover,
.open-btn-light:focus {
    border-color: var(--open-blue);

    color: var(--open-blue-dark) !important;

    transform: translateY(-2px);
}


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

.open-hero {
    position: relative;

    overflow: hidden;

    padding: 34px 0 75px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(8, 169, 230, .16),
            transparent 30%
        ),
        linear-gradient(
            125deg,
            var(--open-navy-deep),
            var(--open-navy)
        );

    color: #fff;
}


.open-hero::after {
    content: "";

    position: absolute;

    right: -170px;
    bottom: -300px;

    width: 580px;
    height: 580px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 50%;

    pointer-events: none;
}


/* ----------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------- */

.open-breadcrumb {
    position: relative;

    z-index: 2;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-bottom: 58px;

    color: rgba(255, 255, 255, .52);

    font-size: 11px;
}


.open-breadcrumb a {
    color: rgba(255, 255, 255, .72);

    text-decoration: none;
}


.open-breadcrumb a:hover {
    color: var(--open-blue);
}


.open-breadcrumb strong {
    color: #fff;

    font-weight: 600;
}


/* ----------------------------------------------------------
   HERO GRID
   ---------------------------------------------------------- */

.open-hero-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, .75fr);

    align-items: center;

    gap: 75px;
}


.open-hero-content {
    max-width: 760px;
}


.open-hero-content h1 {
    max-width: 760px;

    margin: 0;

    color: #fff;

    font-size: clamp(46px, 5vw, 68px);
    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -2.5px;
}


.open-hero-content h1 strong {
    display: block;

    color: #fff;

    font-weight: 700;
}


.open-hero-lead {
    max-width: 680px;

    margin: 25px 0 0;

    color: rgba(255, 255, 255, .73);

    font-size: 16px;

    line-height: 1.75;
}


.open-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;

    margin-top: 31px;
}


/* ----------------------------------------------------------
   HERO ÖSSZEFOGLALÓ
   ---------------------------------------------------------- */

.open-hero-summary {
    position: relative;

    padding: 32px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;

    background: rgba(255, 255, 255, .07);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.open-hero-summary::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--open-blue);
}


.open-summary-label {
    display: block;

    margin-bottom: 21px;

    color: var(--open-blue);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.3px;
}


.open-summary-date {
    display: flex;

    align-items: center;

    gap: 18px;
}


.open-summary-date > strong {
    color: #fff;

    font-size: 70px;
    font-weight: 700;

    line-height: .9;

    letter-spacing: -4px;
}


.open-summary-date > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.open-summary-date span {
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
}


.open-summary-date small {
    color: rgba(255, 255, 255, .56);

    font-size: 11px;
    font-weight: 500;
}


.open-hero-summary p {
    margin: 25px 0 0;

    padding-top: 21px;

    border-top: 1px solid rgba(255, 255, 255, .12);

    color: rgba(255, 255, 255, .67);

    font-size: 12px;

    line-height: 1.7;
}


/* ==========================================================
   ÁLTALÁNOS SZEKCIÓ
   ========================================================== */

.open-section {
    padding: 80px 0;
}


.open-section-head {
    max-width: 730px;

    margin-bottom: 42px;
}


.open-section-head h2 {
    margin: 0;

    color: var(--open-navy);

    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 600;

    line-height: 1.1;

    letter-spacing: -1.5px;
}


.open-section-head > p {
    max-width: 680px;

    margin: 17px 0 0;

    color: var(--open-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* ==========================================================
   IDŐPONTOK
   ========================================================== */

.open-dates {
    background: var(--open-bg);
}


.open-days-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* ----------------------------------------------------------
   KÁRTYA
   ---------------------------------------------------------- */

.open-day-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--open-border);
    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 12px 34px rgba(7, 50, 75, .055);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.open-day-card:hover {
    transform: translateY(-4px);

    border-color: #c4dae3;

    box-shadow:
        0 20px 42px rgba(7, 50, 75, .10);
}


/* ----------------------------------------------------------
   DÁTUM
   ---------------------------------------------------------- */

.open-day-date {
    display: flex;

    align-items: baseline;

    min-height: 135px;

    padding: 29px 29px 25px;

    border-bottom: 1px solid var(--open-border);

    background: #f8fafb;
}


.open-day-month {
    align-self: flex-start;

    margin-top: 7px;
    margin-right: 8px;

    color: var(--open-blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}


.open-day-number {
    color: var(--open-navy);

    font-size: 70px;
    font-weight: 700;

    line-height: .9;

    letter-spacing: -4px;
}


.open-day-year {
    margin-left: auto;

    color: #98a7af;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .5px;
}


/* ----------------------------------------------------------
   KÁRTYA TARTALOM
   ---------------------------------------------------------- */

.open-day-content {
    display: flex;

    flex-direction: column;

    min-height: 360px;

    padding: 27px 29px 30px;
}


.open-day-time {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;
}


.open-day-time span {
    color: #83939c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .6px;
    text-transform: uppercase;
}


.open-day-time span::after {
    content: "·";

    margin-left: 8px;

    color: #aab6bc;
}


.open-day-time strong {
    color: var(--open-blue);

    font-size: 14px;
    font-weight: 700;
}


.open-day-content h3 {
    margin: 0 0 13px;

    color: var(--open-navy);

    font-size: 20px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -.4px;
}


.open-day-content > p {
    margin: 0 0 24px;

    color: var(--open-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* ----------------------------------------------------------
   ÁGAZATOK
   ---------------------------------------------------------- */

.open-day-sectors {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: auto;
}


.open-day-sectors span {
    display: inline-flex;

    align-items: center;

    max-width: 100%;

    padding: 7px 10px;

    border-radius: 6px;

    background: var(--open-blue-soft);

    color: #31738e;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.35;
}


/* ----------------------------------------------------------
   INFORMATIKA
   ---------------------------------------------------------- */

.open-day-card-it .open-day-date {
    background:
        linear-gradient(
            135deg,
            #eaf7fc,
            #f7fbfd
        );
}


/* ----------------------------------------------------------
   MINDEN ÁGAZAT
   ---------------------------------------------------------- */

.open-day-card-all {
    border-color: #bddce8;
}


.open-day-card-all .open-day-date {
    background:
        linear-gradient(
            135deg,
            var(--open-navy-dark),
            var(--open-navy)
        );
}


.open-day-card-all .open-day-number {
    color: #fff;
}


.open-day-card-all .open-day-year {
    color: rgba(255, 255, 255, .48);
}


.open-day-all-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    align-self: flex-start;

    margin-top: auto;

    padding: 9px 13px;

    border-radius: 6px;

    background: var(--open-blue);

    color: #fff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* ==========================================================
   MIÉRT ÉRDEMES ELJÖNNI?
   ========================================================== */

.open-why {
    background: #fff;
}


.open-why-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, .75fr)
        minmax(0, 1.25fr);

    gap: 90px;
}


.open-why-title h2 {
    max-width: 430px;

    margin: 0;

    color: var(--open-navy);

    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 400;

    line-height: 1.1;

    letter-spacing: -1.7px;
}


.open-why-title h2 strong {
    display: block;

    font-weight: 700;
}


.open-why-items {
    border-top: 1px solid var(--open-border);
}


.open-why-items article {
    display: grid;

    grid-template-columns: 50px 1fr;

    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid var(--open-border);
}


.open-why-items article > span {
    color: var(--open-blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .7px;
}


.open-why-items h3 {
    margin: 0 0 7px;

    color: var(--open-navy);

    font-size: 17px;
    font-weight: 700;
}


.open-why-items p {
    max-width: 620px;

    margin: 0;

    color: var(--open-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   REGISZTRÁCIÓ
   ========================================================== */

.open-register {
    padding: 0 0 80px;

    background: #fff;
}


.open-register-inner {
    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;

    gap: 60px;

    padding: 42px 45px;

    overflow: hidden;

    border-radius: 15px;

    background:
        linear-gradient(
            120deg,
            var(--open-navy-deep),
            var(--open-navy)
        );
}


.open-register-inner::after {
    content: "";

    position: absolute;

    right: -90px;
    top: -150px;

    width: 330px;
    height: 330px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 50%;

    pointer-events: none;
}


.open-register-inner > div {
    position: relative;

    z-index: 2;
}


.open-register h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(27px, 2.6vw, 36px);
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: -1px;
}


.open-register p {
    max-width: 690px;

    margin: 13px 0 0;

    color: rgba(255, 255, 255, .65);

    font-size: 13px;

    line-height: 1.7;
}


.open-register-action {
    flex-shrink: 0;
}


/* ==========================================================
   ZÁRÓ CTA
   ========================================================== */

.open-final {
    padding: 80px 0;

    background: var(--open-bg);
}


.open-final-inner {
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}


.open-final h2 {
    margin: 0;

    color: var(--open-navy);

    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;

    line-height: 1.1;

    letter-spacing: -1.8px;
}


.open-final h2 strong {
    font-weight: 700;
}


.open-final-actions {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-top: 30px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (max-width: 1199px) {

    .open-hero-grid {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(280px, .75fr);

        gap: 45px;
    }


    .open-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .open-day-card-all {
        grid-column: 1 / -1;
    }


    .open-day-card-all .open-day-content {
        min-height: 260px;
    }


    .open-why-grid {
        gap: 55px;
    }

}


/* ==========================================================
   KISEBB TABLET
   ========================================================== */

@media screen and (max-width: 991px) {

    .open-hero {
        padding-bottom: 60px;
    }


    .open-breadcrumb {
        margin-bottom: 42px;
    }


    .open-hero-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .open-hero-summary {
        max-width: 520px;
    }


    .open-section {
        padding: 65px 0;
    }


    .open-why-grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }


    .open-why-title h2 {
        max-width: 650px;
    }


    .open-register {
        padding-bottom: 65px;
    }


    .open-register-inner {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .open-register-action {
        justify-self: start;
    }


    .open-final {
        padding: 65px 0;
    }

}


/* ==========================================================
   MOBIL
   ========================================================== */

@media screen and (max-width: 767px) {

    .open-hero {
        padding: 25px 0 50px;
    }


    .open-breadcrumb {
        margin-bottom: 35px;
    }


    .open-hero-content h1 {
        font-size: 42px;

        letter-spacing: -1.7px;
    }


    .open-hero-lead {
        font-size: 15px;
    }


    .open-hero-actions {
        align-items: stretch;

        flex-direction: column;
    }


    .open-hero-actions .open-btn {
        width: 100%;
    }


    .open-hero-summary {
        padding: 27px 24px;
    }


    .open-summary-date > strong {
        font-size: 62px;
    }


    .open-section {
        padding: 55px 0;
    }


    .open-section-head {
        margin-bottom: 32px;
    }


    .open-section-head h2 {
        font-size: 34px;
    }


    .open-days-grid {
        grid-template-columns: 1fr;
    }


    .open-day-card-all {
        grid-column: auto;
    }


    .open-day-date {
        min-height: 0;

        padding: 25px;
    }


    .open-day-number {
        font-size: 62px;
    }


    .open-day-content,
    .open-day-card-all .open-day-content {
        min-height: 0;

        padding: 25px;
    }


    .open-day-sectors,
    .open-day-all-label {
        margin-top: 24px;
    }


    .open-why-grid {
        gap: 30px;
    }


    .open-why-title h2 {
        font-size: 35px;
    }


    .open-why-items article {
        grid-template-columns: 38px 1fr;

        gap: 12px;
    }


    .open-register {
        padding-bottom: 55px;
    }


    .open-register-inner {
        padding: 32px 25px;
    }


    .open-register-action {
        width: 100%;
    }


    .open-register-action .open-btn {
        width: 100%;
    }


    .open-final {
        padding: 55px 0;
    }


    .open-final h2 {
        font-size: 36px;
    }


    .open-final-actions {
        align-items: stretch;

        flex-direction: column;
    }


    .open-final-actions .open-btn {
        width: 100%;
    }

}


/* ==========================================================
   KIS MOBIL
   ========================================================== */

@media screen and (max-width: 480px) {

    .open-hero-content h1 {
        font-size: 37px;
    }


    .open-summary-date {
        align-items: flex-start;
    }


    .open-summary-date > strong {
        font-size: 57px;
    }


    .open-day-number {
        font-size: 57px;
    }


    .open-day-date {
        padding: 22px;
    }


    .open-day-content {
        padding: 23px 22px;
    }


    .open-register-inner {
        padding: 29px 22px;
    }

}


/* ==========================================================
   MOZGÁS CSÖKKENTÉSE
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .open-btn,
    .open-day-card {
        transition: none;
    }


    .open-btn:hover,
    .open-day-card:hover {
        transform: none;
    }

}