/* Globális beállítások */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #6b7783; /* A színátmenet alsó árnyalata */
    background-image: url('../images/Page-BgSimpleGradient.jpg');
    background-repeat: repeat-x;
    background-position: top center;
    background-attachment: fixed; /* Rögzített háttér, ami görgetéskor sem vágódik el */
    color: #6A1306;
}

/* Rögzített villám effektus a bal oldalon */
#bg-glare {
    position: fixed;
    top: 0;
    left: 0;
    width: 274px;
    height: 423px;
    background-image: url('../images/Page-BgGlare.png');
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Központi keret (Sheet) */
.sheet {
    position: relative;
    z-index: 2;
    width: 960px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #a0a0a0;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Header transzformátoros képpel (a feliratot maga a kép tartalmazza) */
.header {
    position: relative;
    width: 100%;
    height: 180px;
    background: url('../images/Header.jpg') no-repeat center center;
    background-size: cover;
    border-bottom: 2px solid #800000;
}

/* Menüsor (Bordó füles navigáció) */
.nav {
    background: linear-gradient(to bottom, #a81c07 0%, #630c00 100%);
    height: 38px;
    border-top: 1px solid #d43b24;
    border-bottom: 1px solid #400500;
}

.nav ul {
    list-style: none;
    display: flex;
    padding-left: 10px;
}

.nav li {
    margin-right: 2px;
}

.nav a {
    display: block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border-right: 1px solid #7d1102;
    transition: background 0.2s;
}

.nav a:hover {
    background: #c2250d;
}

/* Aktív menüfül */
.nav a.active {
    background: #d8d8d8;
    color: #333333;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-top: 2px;
    height: 36px;
    line-height: 36px;
}

/* Tartalmi rész */
.content {
    padding: 20px;
}

/* Széchenyi 2020 banner középen */
.top-banner {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d0d0d0;
}

.top-banner img {
    max-width: 380px;
    border: 1px solid #cccccc;
    padding: 4px;
    background: #fff;
}

/* Cikktörzs */
.article h2 {
    color: #6A1306;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.article p {
    color: #6A1306;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: justify;
}

.article p strong {
    color: #500a00;
}

/* Jobbra igazított kép */
.bulb-img {
    float: right;
    margin: 0 0 15px 15px;
    width: 230px;
    height: auto;
    border: 1px solid #b2210a;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Lista stílus */
.feature-list {
    list-style: none;
    margin-top: 10px;
}

.feature-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f4f4f4;
    border-left: 4px solid #6A1306;
    font-size: 0.95rem;
    color: #333333;
}

/* Táblázat stílusok (Referencia) */
.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.85rem;
}

table th, table td {
    border: 1px solid #cccccc;
    padding: 8px;
    text-align: left;
    color: #333333;
}

table th {
    background-color: #6A1306;
    color: #ffffff;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Galéria Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid #cccccc;
    background: #fff;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 85vh;
}

/* Kapcsolat Form */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #6A1306;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #cccccc;
    font-family: inherit;
}

.btn {
    background: #6A1306;
    color: #ffffff;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #941a08;
}

/* Lábléc */
.footer {
    background: #e8e8e8;
    border-top: 1px solid #cccccc;
    padding: 12px;
    text-align: center;
    color: #666666;
    font-size: 0.8rem;
}
/* Középre igazított EU Támogatási Sáv */
.eu-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px dashed #cccccc;
}

.eu-banner a {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.eu-banner a:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

.eu-banner img {
    display: block;
    max-width: 240px;
    height: auto;
    border: 1px solid #e0e0e0;
    padding: 5px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}