* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Twemoji Mozilla', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #51628e;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Custom scroll */
/* Görgetősáv szélessége */
::-webkit-scrollbar {
    width: 16px;
}

/* Görgetősáv háttere */
::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 8px;
}

/* Görgetősáv csúszkája */
::-webkit-scrollbar-thumb {
    background-color: #51628e;
    /* a kívánt szín */
    border-radius: 8px;
    border: 3px solid #f0f0f0;
    /* kis “keret” */
}

/* Görgetősáv hover effekt */
::-webkit-scrollbar-thumb:hover {
    background-color: #3f4b7a;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 2px solid #ffffff;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: #51628e !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

header.scrolled .title {
    color: #ffffff;
}

header.scrolled nav a,
header.scrolled .mobile-menu a {
    color: #ffffff;
}

header.scrolled nav a:hover,
header.scrolled .mobile-menu a:hover {
    color: #f9df18;
}

header.scrolled nav a.active,
header.scrolled .mobile-menu a.active {
    background-color: #f9df18;
    color: #51628e;
}

/* Logo */

.logo-link {
    display: flex;
    align-items: center;
    /* függőlegesen középre rendezi a szöveget a logóhoz */
    gap: 10px;
    /* kis térköz a kép és a szöveg között */
    text-decoration: none;
    /* eltünteti az aláhúzást */
    color: inherit;
    /* örökölje a szöveg színét */
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.logo-container .logo {
    height: 50px;
    width: auto;
}

.title {
    font-weight: 500;
    font-size: 1rem;
    margin-left: 10px;
    white-space: nowrap;
    color: #ffffff;
}

/* Nav */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #ffffff;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s;
}

nav a:hover {
    color: #f9df18;
}

/* Aktív menüpont */
nav a.active,
.mobile-menu a.active {
    background-color: #f9df18;
    color: #51628e;
    border-radius: 5px;
}

/* Hamburger ikon */
.hamburger {
    position: absolute;
    top: 25px;
    right: 40px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.hamburger div {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}

.hamburger div:nth-child(1) {
    top: 0;
}

.hamburger div:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger div:nth-child(3) {
    bottom: 0;
}

.hamburger.open div:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.hamburger.open div:nth-child(2) {
    opacity: 0;
}

.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg);
    top: 50%;
}

/* Mobil menü */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background-color: #51628e;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    border-radius: 5px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    z-index: 50;
}

.mobile-menu a {
    color: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #ffffff33;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: #f9df18;
    color: #51628e;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('res/img/stock/hero-image.webp') center/cover no-repeat;
    margin-top: 0;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    background-color: rgba(0, 0, 0, 0);
    padding: 10px 20px;
    border-radius: 10px;
    white-space: pre;
}

.hero-text span {
    opacity: 0;
    display: inline-block;
    animation: fadeIn 0.05s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Main */
main {
    padding: 100px 40px 60px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Index hírek */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.news-item.reverse {
    flex-direction: row-reverse;
}

.news-text {
    flex: 1;
}

.news-image {
    flex: 1;
}

.news-image img {
    width: auto;
    max-height: 300px;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #029fd5;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: 10px;
}

.btn:hover {
    background-color: #ef7b02;
}

/* Jelentkezés */
iframe {
    width: 100%;
    height: 4000px;
    border: none;
    margin-top: 20px;
}

/* Szponzorok */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.sponsor-card {
    width: 300px;
    /* pontos szélesség */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sponsor-card img {
    max-width: 100%;
    height: auto;
    /* arány megtartása */
}

/* Dokumentumok */
.document-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.document-card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.document-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.document-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #51628e;
}

.document-card p {
    font-size: 0.95rem;
    color: #51628e;
    line-height: 1.4;
}

/* Footer */
footer {
    background-color: #51628e;
    color: #ffffff;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .contact,
footer .social {
    flex: 1 1 200px;
    margin: 10px;
}

footer .social a {
    margin-right: 15px;
    color: #ffffff;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 10px;
}

.social-item a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.social-item a:hover {
    color: #f9df18;
}

.social-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Reszponzív */
@media (max-width: 900px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    main {
        padding: 60px 20px;
    }

    footer {
        flex-direction: column;
    }

    .hero-text {
        font-size: 1.5rem;
        padding: 8px 15px;
        left: 15px;
    }

    .news-item,
    .news-item.reverse {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .news-text {
        text-align: left;
    }

    .news-image img {
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }
}


/*Rólunk oldal*/

.about {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

.kitt-info h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.kitt-info h2 {
    margin-top: 2rem;
    color: #1a5276;
    font-size: 1.6rem;
    border-left: 6px solid #3498db;
    padding-left: 0.5rem;
}

.kitt-box {
    background: #f8f9fa;
    border-left: 5px solid #3498db;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.kitt-box.alt {
    border-left-color: #27ae60;
}

.highlight {
    background: yellow;
    padding: 0 4px;
}

.steps {
    list-style: none;
    /* alapértelmezett számok eltüntetése */
    padding: 0;
    margin: 0;
}

.steps li {
    background-color: #e8f5e9;
    /* világos zöld háttér */
    border-left: 5px solid #4caf50;
    /* sötétzöld hangsúly */
    margin: 12px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.steps li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.steps li strong {
    color: #2e7d32;
    /* sötétebb zöld a főbb kiemeléseknek */
}

.steps li em {
    font-style: italic;
    color: #555;
    /* enyhébb szín az emelt szövegeknek */
}

.steps li::before {
    content: "✅ ";
    /* emoji a lista elejére */
    font-size: 1.2rem;
}

.warning {
    background: #fbe9e7;
    color: #c0392b;
    padding: 1rem;
    border-left: 6px solid #e74c3c;
    margin-top: 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.highlight-box {
    background: #fcf3cf;
    border-left: 6px solid #f1c40f;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.facts {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 6px;
}

.facts li {
    margin: 0.5rem 0;
    margin-left: 1rem;
}

.note {
    background-color: #f0f8ff;
    /* világoskék háttér */
    border-left: 5px solid #4caf50;
    /* zöld hangsúly */
    padding: 15px 20px;
    margin-top: 30px;
    border-radius: 8px;
    font-style: italic;
    line-height: 1.6;
}