:root {
    --nav-blue: #0099d6;
    --btn-dark: #006699;
    --login-green: #28a745;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-navbar {
    background-color: var(--nav-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 15px; /* Lekerekített navbar mint a képen */
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background-color: var(--btn-dark);
    color: white;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-btn:hover {
    background-color: #004d73;
}

.login-btn {
    background-color: var(--login-green);
    color: white;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 15px;
    font-weight: bold;
}

/* Felhasználói infó stílusa bejelentkezés után */
.user-info {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.1);
    padding: 5px 15px;
    border-radius: 15px;
    color: white;
}

.rank-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.user-rank {
    margin-left: 5px;
    font-weight: bold;
    color: #e0e0e0;
}

/* Mobil nézet - Hamburger menü */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 10px;
        background: var(--nav-blue);
        padding: 20px;
        border-radius: 15px;
        width: 200px;
        z-index: 1000;
    }
    .nav-menu.active { display: flex; }
}

/* Login oldal háttér és konténer */
.login-page {
    background-color: white; /* Vagy amilyen hátteret szeretnél a navbar alatt */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.login-box {
    background-color: var(--nav-blue); /* A navbar kék színe */
    width: 400px;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.login-box h2 {
    margin-top: 0;
    font-size: 28px;
}

.login-box hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 25px;
}

/* Input mezők stílusa */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 15px;
    background-color: #cccccc; /* Szürke háttér mint a képen */
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
}

.login-box input::placeholder {
    color: white;
    font-weight: bold;
}

/* Checkbox és linkek */
.remember-me {
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
}

.forgot-pw {
    display: block;
    color: red;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Gombok */
.btn-login-submit {
    width: 100%;
    padding: 12px;
    background-color: #28a745; /* Zöld */
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-reg-link {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #99d9ea; /* Világoskék */
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    box-sizing: border-box;
}

.login-box input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 15px;
    background-color: #cccccc;
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
}

/* Hogy ne legyen túl zsúfolt a mobil menü alatt */
@media (max-height: 700px) {
    .login-container {
        align-items: flex-start;
        padding-top: 20px;
    }
}

.hero-banner {
    background: linear-gradient(rgba(0,153,214,0.8), rgba(0,102,153,0.9)), url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    color: white;
    border-radius: 20px;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border-left: 5px solid var(--nav-blue);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

.read-more {
    color: var(--nav-blue);
    text-decoration: none;
    font-weight: bold;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-input, .admin-input-small, .admin-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th {
    text-align: left;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--nav-blue);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.btn-save {
    background-color: var(--login-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.btn-save:hover {
    background-color: #218838;
}

.orbat-bg { background-color: white; margin: 0; }

.orbat-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    font-family: sans-serif;
}

/* Dobozok stílusa */
.orbat-box {
    background-color: #0099d6;
    border-radius: 15px;
    color: white;
    text-align: center;
    width: 350px;
    z-index: 2;
}

.main-box { width: 450px; }

.box-header { padding: 10px; font-weight: bold; font-size: 18px; }

.box-content {
    background-color: #c0c0c0;
    margin: 8px;
    padding: 15px;
    border-radius: 12px;
}

.member-name {
    background-color: #b0b0b0;
    padding: 12px;
    border-radius: 8px;
    margin: 5px 0 15px 0;
    font-weight: bold;
    min-height: 20px;
}

/* --- JAVÍTOTT VONALAK --- */
.connector-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -2px; /* Összeérjen a rács tetejével */
}

.line-vertical {
    width: 3px;
    height: 40px;
    background-color: #0099d6;
}

/* A vízszintes vonal pont a két szélső doboz közepéig érjen */
.line-horizontal {
    /* A 3 doboz szélessége (3*350px) + a 2 gap (2*40px) = 1130px. 
       A két szélső doboz közepe közötti távolság: 1130px - 350px = 780px. */
    width: 780px; 
    height: 3px;
    background-color: #0099d6;
}

.line-branches {
    display: flex;
    justify-content: space-between;
    width: 780px; /* Ugyanaz, mint a vízszintes vonalé */
    height: 20px;
}

.line-branches span {
    width: 3px;
    height: 20px;
    background-color: #0099d6;
}

/* Elrendezés fixálása */
.orbat-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.section-box {
    width: 350px; /* Fix szélesség, hogy a matek kijöjjön */
}

/* --- Rólunk Oldal Specifikus Stílusok --- */

.about-hero {
    background: linear-gradient(rgba(0,153,214,0.7), rgba(0,60,90,0.85)), url('img/lynx_bg.jpg'); /* Ide majd tegyél egy jó képet */
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
    border-radius: 20px;
    margin: 10px;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Használjuk a már meglévő kék színeidet a konzisztencia miatt */
.feature-box {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-top: 5px solid var(--nav-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,153,214,0.2);
}

.feature-box h3 {
    color: var(--nav-blue);
    margin-top: 0;
}

.about-section-title {
    color: var(--btn-dark);
    font-size: 24px;
    border-left: 5px solid var(--nav-blue);
    padding-left: 15px;
    margin: 40px 0 20px 0;
}

.cta-box {
    background-color: var(--nav-blue);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 50px;
}

.cta-box h3 { margin-top: 0; font-size: 26px; }

.btn-large {
    display: inline-block;
    background-color: var(--login-green);
    color: white;
    padding: 15px 40px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-large:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Arany szegély a tiszti kártyának a style.css-be */
.card-gold {
    border-top: 5px solid #d4af37 !important;
    background: linear-gradient(to bottom, #ffffff, #fffdf0);
}

/* Globális igazítások */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* A zöld fejléc (Hero) szépítése */
.apply-hero {
    background-color: #28a745;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.apply-hero h1 {
    margin: 0;
    text-transform: uppercase;
    font-size: 32px;
}

/* A három oszlopos rács (Grid) */
.apply-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* A kártyák stílusa */
.apply-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 8px solid #0099d6; /* Alap kék felső csík */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.apply-card:hover {
    transform: translateY(-10px);
}

/* Külön színek az állománycsoportoknak */
.card-legenyseg { border-top-color: #888888; } /* Szürke */
.card-altiszt { border-top-color: #0099d6; }  /* Kék */
.card-tiszt { border-top-color: #d4af37; }    /* Arany */

/* Ikonok és címek */
.apply-card img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.apply-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.apply-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    min-height: 100px;
}

.apply-card ul li {
    padding: 5px 0;
    font-size: 15px;
    color: #555;
}

.apply-card ul li::before {
    content: "• ";
    color: var(--nav-blue);
    font-weight: bold;
}

/* Gombok javítása (hogy ne sima kék linkek legyenek) */
.btn-apply {
    display: block;
    background-color: var(--btn-dark);
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-apply:hover {
    background-color: #004d73;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Egyedi gomb színek */
.btn-gold { background-color: #d4af37; }
.btn-gold:hover { background-color: #b8952d; }