/*
 * ============================================================
 * ABAD.HU – TUDÁSTÁR
 * Frontend CSS
 * ============================================================
 */


/* ============================================================
   ALAP
============================================================ */

.tudastar {
    --tudastar-blue: #0c1d78;
    --tudastar-blue-dark: #071452;
    --tudastar-blue-light: #1d36a5;
    --tudastar-gold: #d6ad45;
    --tudastar-gold-light: #f1d57b;
    --tudastar-bg: #f5f7fb;
    --tudastar-text: #182033;
    --tudastar-muted: #687086;
    --tudastar-border: rgba(12, 29, 120, .10);

    color: var(--tudastar-text);
    background: var(--tudastar-bg);
    min-height: 100vh;
    font-size: 16px;
}


.tudastar *,
.tudastar *::before,
.tudastar *::after {
    box-sizing: border-box;
}


.tudastar__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* ============================================================
   HERO
============================================================ */

.tudastar__hero {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(214, 173, 69, .18),
            transparent 27%
        ),
        radial-gradient(
            circle at 15% 75%,
            rgba(29, 54, 165, .28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #06134f 0%,
            var(--tudastar-blue-dark) 35%,
            var(--tudastar-blue) 72%,
            #172c91 100%
        );

    color: #fff;

    padding: 48px 15px 105px;
}


.tudastar__hero::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -90px;
    height: 180px;
    background: var(--tudastar-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}


.tudastar__hero-glow {
    position: absolute;

    width: 520px;
    height: 520px;

    right: -180px;
    top: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(214, 173, 69, .18) 0%,
            rgba(214, 173, 69, .07) 30%,
            transparent 70%
        );

    filter: blur(3px);

    pointer-events: none;
}


.tudastar__hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}


.tudastar__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--tudastar-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}


.tudastar__eyebrow i {
    font-size: 17px;
}


.tudastar__hero h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 32px);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -.035em;
	color: ghostwhite;
}


.tudastar__hero h1 strong {
    color: var(--tudastar-gold-light);
    font-weight: 700;
}


.tudastar__hero p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 18px;
    line-height: 1.65;
}


/* ============================================================
   KERESŐ
============================================================ */

.tudastar__search {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;

    max-width: 820px;
    min-height: 68px;

    margin-top: 42px;
    padding: 7px;

    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 16px;

   box-shadow:
        0 22px 55px rgba(3, 12, 55, .24),
        0 4px 15px rgba(255,255,255,.08);

    backdrop-filter: blur(8px);
}


.tudastar__search > i {
    flex: 0 0 auto;
    margin-left: 18px;
    margin-right: 12px;

    color: var(--tudastar-blue);
    font-size: 21px;
}


.tudastar__search input {
    flex: 1;
    min-width: 0;

    height: 52px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--tudastar-text);
    font-size: 15px;
}


.tudastar__search input::placeholder {
    color: #9299a9;
}


.tudastar__search button {
    flex: 0 0 auto;

    height: 52px;
    padding: 0 25px;

    border: 0;
    border-radius: 11px;

     background:
        linear-gradient(
            135deg,
            var(--tudastar-blue-light),
            var(--tudastar-blue)
        );

    box-shadow:
        0 5px 14px rgba(12,29,120,.20);
    color: #fff;

    font-weight: 700;
    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.tudastar__search button:hover {
    background: var(--tudastar-blue-light);
    transform: translateY(-1px);
}


/* ============================================================
   MAIN
============================================================ */

.tudastar__main {
    position: relative;
    padding: 35px 0 90px;
}


.tudastar__section {
    margin-bottom: 75px;
}


.tudastar__section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}


.tudastar__section-label {
    display: block;
    margin-bottom: 8px;

    color: var(--tudastar-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}


.tudastar__section-heading h2 {
    margin: 0;

    color: var(--tudastar-blue);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
}


.tudastar__section-heading p {
    max-width: 390px;
    margin: 0;

    color: var(--tudastar-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}


.tudastar__section-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 13px;

    background: rgba(214,173,69,.12);
    color: var(--tudastar-gold);
    font-size: 19px;
}


.tudastar__result-count {
    color: var(--tudastar-muted);
    font-size: 13px;
}


/* ============================================================
   CÉLCSOPORT KÁRTYÁK
============================================================ */

.tudastar__target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}


.tudastar__target-card {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 78px;

    padding: 13px 15px;

    border: 1px solid var(--tudastar-border);
    border-radius: 14px;

    background: #fff;

    color: var(--tudastar-text);

    text-align: left;
    cursor: pointer;

    box-shadow: 0 5px 18px rgba(15,25,60,.035);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.tudastar__target-card:hover {
    transform: translateY(-3px);

    border-color: rgba(214,173,69,.55);

    box-shadow:
        0 12px 28px rgba(15,25,60,.09);
}


.tudastar__target-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    margin-right: 13px;

    border-radius: 12px;

    background: rgba(12,29,120,.07);
    color: var(--tudastar-blue);

    font-size: 19px;

    transition:
        background .2s ease,
        color .2s ease;
}


.tudastar__target-card:hover .tudastar__target-icon {
    background: var(--tudastar-blue);
    color: #fff;
}


.tudastar__target-name {
    flex: 1;

    font-size: 14px;
    font-weight: 700;
}


.tudastar__target-arrow {
    margin-left: 8px;

    color: #adb3c1;
    font-size: 15px;

    transition:
        transform .2s ease,
        color .2s ease;
}


.tudastar__target-card:hover .tudastar__target-arrow {
    color: var(--tudastar-gold);
    transform: translateX(3px);
}


/* ============================================================
   KIEMELT PÁLYÁZAT
============================================================ */

.tudastar__featured {
    overflow: hidden;

    border: 1px solid rgba(214,173,69,.32);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #fff 65%,
            #fffaf0 100%
        );

    box-shadow:
        0 14px 40px rgba(15,25,60,.08);
}


.tudastar__featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 24px;

    border-bottom: 1px solid rgba(214,173,69,.15);
}


.tudastar__featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #9c761d;
    font-size: 12px;
    font-weight: 800;
}


.tudastar__featured-badge i {
    font-size: 13px;
}


.tudastar__featured-id {
    color: #9299a9;
    font-size: 12px;
}


.tudastar__featured-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}


.tudastar__featured-main {
    padding: 30px 30px 28px;
}


.tudastar__featured-main h3 {
    margin: 0;

    color: var(--tudastar-blue);
    font-size: 25px;
    line-height: 1.25;
}


.tudastar__featured-main p {
    max-width: 680px;
    margin: 15px 0 20px;

    color: var(--tudastar-muted);
    font-size: 14px;
    line-height: 1.7;
}


.tudastar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


.tudastar__tag {
    display: inline-flex;
    align-items: center;

    min-height: 27px;
    padding: 4px 10px;

    border-radius: 30px;

    background: rgba(12,29,120,.07);
    color: var(--tudastar-blue);

    font-size: 11px;
    font-weight: 700;
}


.tudastar__featured-data {
    display: flex;
    flex-direction: column;

    padding: 25px;

    border-left: 1px solid rgba(12,29,120,.08);

    background: rgba(12,29,120,.025);
}


.tudastar__data-box {
    padding: 13px 0;

    border-bottom: 1px solid rgba(12,29,120,.08);
}


.tudastar__data-box:last-child {
    border-bottom: 0;
}


.tudastar__data-box span {
    display: block;
    margin-bottom: 4px;

    color: var(--tudastar-muted);
    font-size: 11px;
}


.tudastar__data-box strong {
    display: block;

    color: var(--tudastar-blue);
    font-size: 15px;
    line-height: 1.4;
}


.tudastar__data-box strong small {
    color: var(--tudastar-muted);
    font-weight: 400;
}


.tudastar__featured-bottom {
    display: flex;
    justify-content: flex-end;

    padding: 0 25px 25px;
}


.tudastar__details-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 17px;

    border-radius: 10px;

    background: var(--tudastar-blue);
    color: #fff !important;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;

    transition:
        background .2s ease,
        transform .2s ease;
}


.tudastar__details-button:hover {
    background: var(--tudastar-blue-light);
    transform: translateY(-2px);
}


/* ============================================================
   PÁLYÁZAT KÁRTYÁK
============================================================ */

.tudastar__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


.tudastar__card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 21px;

    border: 1px solid var(--tudastar-border);
    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 7px 25px rgba(15,25,60,.045);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.tudastar__card:hover {
    transform: translateY(-4px);

    border-color: rgba(12,29,120,.17);

    box-shadow:
        0 15px 35px rgba(15,25,60,.10);
}


.tudastar__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 17px;

    border-radius: 14px;

    background: rgba(12,29,120,.07);
    color: var(--tudastar-blue);

    font-size: 21px;
}


.tudastar__card-id {
    display: block;
    margin-bottom: 6px;

    color: #9a8090;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}


.tudastar__card h3 {
    min-height: 50px;

    margin: 0 0 15px;

    color: var(--tudastar-text);
    font-size: 17px;
    line-height: 1.45;
}


.tudastar__card-data {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin-top: 20px;

    border-top: 1px solid rgba(12,29,120,.08);
    border-bottom: 1px solid rgba(12,29,120,.08);
}


.tudastar__card-data > div {
    padding: 13px 0;
}


.tudastar__card-data > div + div {
    padding-left: 15px;
    border-left: 1px solid rgba(12,29,120,.08);
}


.tudastar__card-data span {
    display: block;
    margin-bottom: 4px;

    color: var(--tudastar-muted);
    font-size: 10px;
}


.tudastar__card-data strong {
    color: var(--tudastar-blue);
    font-size: 14px;
}


.tudastar__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 17px;
}


.tudastar__card-footer > span {
    color: var(--tudastar-muted);
    font-size: 10px;
    line-height: 1.4;
}


.tudastar__card-footer > span i {
    margin-right: 3px;
}


.tudastar__card-footer a {
    flex: 0 0 auto;

    color: var(--tudastar-blue) !important;

    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}


.tudastar__card-footer a i {
    margin-left: 3px;
}


.tudastar__card-footer a:hover {
    color: var(--tudastar-gold) !important;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991.98px) {

    .tudastar__hero {
        padding-top: 60px;
        padding-bottom: 80px;
    }


    .tudastar__target-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .tudastar__cards {
        grid-template-columns: repeat(2, 1fr);
    }


    .tudastar__featured-body {
        grid-template-columns: 1fr;
    }


    .tudastar__featured-data {
        border-left: 0;
        border-top: 1px solid rgba(12,29,120,.08);
    }

}


/* ============================================================
   MOBIL
============================================================ */

@media (max-width: 767.98px) {

    .tudastar__container {
        padding-left: 15px;
        padding-right: 15px;
    }


    .tudastar__hero {
        padding-top: 48px;
        padding-bottom: 70px;
    }


    .tudastar__hero h1 {
        font-size: 40px;
    }


    .tudastar__hero p {
        font-size: 16px;
    }


    .tudastar__search {
        display: block;
        padding: 8px;
    }


    .tudastar__search > i {
        display: none;
    }


    .tudastar__search input {
        display: block;
        width: 100%;
        height: 50px;
        padding: 0 12px;
    }


    .tudastar__search button {
        display: block;
        width: 100%;
        margin-top: 5px;
    }


    .tudastar__section {
        margin-bottom: 55px;
    }


    .tudastar__section-heading {
        display: block;
    }


    .tudastar__section-heading h2 {
        font-size: 27px;
    }


    .tudastar__section-heading p {
        margin-top: 10px;
        text-align: left;
    }


    .tudastar__target-grid {
        grid-template-columns: 1fr;
    }


    .tudastar__cards {
        grid-template-columns: 1fr;
    }


    .tudastar__featured-top {
        display: block;
    }


    .tudastar__featured-id {
        display: block;
        margin-top: 8px;
    }


    .tudastar__featured-main {
        padding: 24px 20px;
    }


    .tudastar__featured-main h3 {
        font-size: 21px;
    }


    .tudastar__featured-data {
        padding: 15px 20px;
    }


    .tudastar__featured-bottom {
        padding: 0 20px 20px;
    }


    .tudastar__card h3 {
        min-height: 0;
    }

}


/* ============================================================
   KIS MOBIL
============================================================ */

@media (max-width: 420px) {

    .tudastar__hero h1 {
        font-size: 35px;
    }


    .tudastar__hero {
        padding-top: 40px;
    }


    .tudastar__card-footer {
        align-items: flex-end;
    }

}
