/*
Theme Name: Kaszaper Község Honlapja
Theme URI: https://kaszaper.hu
Author: netDev.hu
Author URI: https://netdev.hu
Description: Egyedi WordPress téma Kaszaper Község hivatalos honlapja számára
Version: 1.12.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaszaperhu
*/

/* Reset és alapbeállítások */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: #eeeadd !important;
    background: #eeeadd !important;
    min-height: 100vh;
}

#page {
    background-color: #eeeadd;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #16163f;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Felső info sáv */
.header-top-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    font-size: 13px;
}

.header-info-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.info-link:hover {
    opacity: 0.8;
}

.info-link .icon {
    font-size: 16px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 50px 0;
    min-height: 330px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 22, 63, 0.75) 0%, rgba(45, 27, 105, 0.65) 50%, rgba(22, 22, 63, 0.75) 100%);
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 100px;
}

.hero-logo {
    flex-shrink: 0;
    max-width: 200px;
}

.hero-logo {
    max-width: 200px;
}

.hero-logo img,
.hero-logo .custom-logo,
.hero-logo a img,
.hero-logo .custom-logo-link img {
    max-height: 200px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

.custom-logo-link {
    display: inline-block !important;
    max-width: 200px !important;
}

.hero-text {
    flex: 1;
    text-align: center;
    padding-right: 100px;
}

.hero-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 4rem;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}



/* Navigáció */
.main-navigation {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 0;
    position: relative;
    z-index: 100;
}

.main-navigation .container {
    max-width: 1600px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-navigation .primary-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
    margin: 0;
    list-style: none;
    display: inline-block;
}

.main-navigation a {
    display: block;
    padding: 12px 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

/* Dropdown nyíl */
.main-navigation .menu-item-has-children > a::after {
    content: '';
}

.main-navigation .menu-item-has-children > a::before {
    content: '▼';
    font-size: 8px;
    margin-right: 6px;
    opacity: 0.8;
}

/* Alsó vonal */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 80%;
}

.main-navigation .current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Dropdown menü - első szint */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(22, 22, 63, 0.98);
    min-width: 220px;
    width: max-content;
    max-width: 350px;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    list-style: none;
    z-index: 999;
    padding: 8px 0;
    margin: 0;
    border-radius: 0 0 4px 4px;
}

/* Dropdown menü - második és további szintek */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    background: rgba(18, 18, 53, 0.98);
}

/* Dropdown menü - harmadik szint */
.main-navigation ul ul ul ul {
    background: rgba(14, 14, 43, 0.98);
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation li:hover > ul {
    display: block;
}

.main-navigation ul ul a {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    font-size: 14px;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 25px;
}



/* Mobilmenü wrapper */
.mobile-menu-wrapper {
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}

.mobile-menu-wrapper .container {
    display: flex;
    justify-content: flex-end;
}

/* Hamburger menü gomb */
.mobile-menu-toggle {
    display: none;
    background: #16163f;
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    z-index: 1001;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Három oszlopos layout */
.site-content {
    margin: 0;
    padding: 30px;
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    gap: 30px;
    align-items: start;
    max-width: 100%;
    width: 100%;
}

/* Bal oldali sidebar */
.sidebar-left {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.sidebar-left .widget {
    margin-bottom: 30px;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

.sidebar-left .widget:last-child {
    margin-bottom: 0;
}

.sidebar-left .widget-title {
    background-color: transparent;
    color: #16163f;
    padding: 0 0 10px 0;
    margin: 0 0 15px 0;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #16163f;
    text-align: left;
    display: block !important;
}

.sidebar-left h2.wp-block-heading {
    background-color: transparent;
    color: #16163f;
    padding: 0 0 10px 0;
    margin: 0 0 15px 0;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #16163f;
    text-align: left;
    display: block !important;
}

.sidebar-left .widget > *:not(.widget-title) {
    padding: 0;
}

.sidebar-left .widget > div,
.sidebar-left .widget > ul,
.sidebar-left .widget > p {
    margin: 0;
    padding: 20px;
}

/* Főtartalom */
.main-content {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.main-content > h2 {
    background-color: transparent;
    color: #16163f;
    padding: 0 0 15px 0;
    margin: 0 0 30px 0;
    font-size: 2.5rem;
    font-weight: 400;
    font-family: 'Merriweather', Georgia, serif;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ddd;
}

/* Jobb oldali sidebar */
.sidebar-right {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.sidebar-right .widget {
    margin-bottom: 0;
}

.sidebar-right .widget-title {
    background-color: transparent;
    color: #16163f;
    padding: 0 0 10px 0;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #16163f;
    text-align: left;
}

.sidebar-right h2.wp-block-heading {
    background-color: transparent;
    color: #16163f;
    padding: 0 0 10px 0;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid #16163f;
    text-align: left;
}

.sidebar-right h3 {
    color: #16163f;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 15px 0;
    padding: 0;
    line-height: 1.4;
}

.sidebar-right p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Widget területek */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding: 0 0 10px 0;
    background-color: transparent;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #16163f;
}

/* Polgármesteri köszöntő */
.polgarmester-koszonto {
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.polgarmester-koszonto img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

.polgarmester-koszonto h3 {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
}

.polgarmester-koszonto p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    margin-bottom: 10px;
}

.polgarmester-koszonto p:last-child {
    margin-bottom: 0;
}

/* Hírek / Bejegyzések */
.hirek-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

.post-item {
    margin-bottom: 0;
    padding: 20px;
    border-bottom: none;
    background: #eeeadd;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.post-item .post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 0;
    width: 33%;
    height: auto;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.post-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #16163f;
}

.hirek-lista .post-title {
    font-size: 1rem !important;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 400;
    text-align: center;
}

.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #16163f;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(22, 22, 63, 0.25);
}

.read-more:hover {
    background: #2a2a5a;
    box-shadow: 0 3px 10px rgba(22, 22, 63, 0.4);
    transform: translateY(-1px);
}

/* Pályázatok sidebar */
.palyazatok-item {
    margin-bottom: 20px;
    padding: 0;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.palyazatok-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #16163f;
}

.palyazatok-item:last-child {
    margin-bottom: 0;
}

.palyazatok-item a {
    display: block;
}

.palyazatok-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    display: block;
    max-height: 200px;
}

.palyazatok-item-content {
    padding: 15px;
}

.palyazatok-item h3 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}

.palyazatok-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.palyazatok-item h3 a:hover {
    color: #16163f;
}

.palyazatok-item .post-meta {
    font-size: 0.82rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: left;
}

.palyazatok-item .post-excerpt {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
    margin-bottom: 10px;
}

.palyazatok-item .read-more {
    display: inline-block;
    font-size: 0.85rem;
    color: #16163f;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border: 1px solid #16163f;
    border-radius: 4px;
    background-color: transparent;
}

.palyazatok-item .read-more:hover {
    color: #fff;
    background-color: #16163f;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: #16163f;
    color: #fff;
    padding: 0;
    margin-top: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer sitemap */
.footer-sitemap {
    background: linear-gradient(135deg, #16163f 0%, #2d1b69 100%);
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sitemap-column h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-family: 'Merriweather', Georgia, serif;
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-column ul li {
    margin-bottom: 10px;
    padding-left: 0;
}

.sitemap-column ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sitemap-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact strong {
    color: #fff;
    display: inline-block;
    min-width: 70px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 20px;
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Oldal navigáció */
.posts-navigation,
.post-navigation {
    margin-top: 40px;
    padding: 20px 30px;
    border-top: 2px solid #e8dcc4;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-links a {
    color: #3d2f7f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #5b4a9f;
}

/* Query Loop Post Template - PONTOS MÁSOLAT mint .post-item */

/* Grid layout - 2 oszlop */
.wp-block-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Li elem = post kártya - CSS GRID mint .post-item */
.wp-block-query .wp-block-post-template > li {
    margin-bottom: 0 !important;
    padding: 20px !important;
    border-bottom: none !important;
    background: #eeeadd !important;
    display: grid !important;
    grid-template-columns: 33% 1fr !important;
    grid-template-rows: auto 1fr auto !important;
    gap: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    list-style: none !important;
    align-items: start !important;
}

/* Featured Image - bal oldal, teljes magasság */
.wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    align-self: stretch !important;
    display: flex !important;
}

.wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    flex: 1 !important;
}

.wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.3s ease !important;
    flex: 1 !important;
}

.wp-block-query .wp-block-post-template > li:hover > .wp-block-post-featured-image img {
    transform: scale(1.05) !important;
}

/* Post Title - jobb oldal felső sor */
.wp-block-query .wp-block-post-template > li > .wp-block-post-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 1rem !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    font-family: 'Merriweather', Georgia, serif !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.wp-block-query .wp-block-post-template > li > .wp-block-post-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.wp-block-query .wp-block-post-template > li > .wp-block-post-title a:hover {
    color: #16163f !important;
}

/* Post Excerpt - jobb oldal középső sor */
.wp-block-query .wp-block-post-template > li > .wp-block-post-excerpt {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-query .wp-block-post-template > li > .wp-block-post-excerpt p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: justify !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Post Date - jobb oldal alsó sor */
.wp-block-query .wp-block-post-template > li > .wp-block-post-date {
    grid-column: 2 !important;
    grid-row: 3 !important;
    font-size: 0.85rem !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    text-align: center !important;
}

/* HR elválasztó - elrejtés */
.wp-block-query .wp-block-post-template > li > .wp-block-separator {
    display: none !important;
}

/* Query Loop responsive */
@media (max-width: 992px) {
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .wp-block-query .wp-block-post-template li {
        padding: 20px !important;
        flex-direction: column !important;
    }
    
    .wp-block-query .wp-block-post-featured-image {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 15px !important;
    }
}

/* Entry content (single post/page) */
.entry-content {
    padding: 30px;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #2d1b69;
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-content p {
    margin-bottom: 15px;
}

/* Single post kiemelt kép középre igazítása */
.single article .post-thumbnail {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 30px auto;
    text-align: center;
    cursor: pointer;
}

article .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article .post-thumbnail:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.entry-header {
    padding: 0 0 15px 0;
}

.entry-header .post-title {
    background-color: transparent;
    color: #16163f;
    padding: 0 0 15px 0;
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: 400;
    font-family: 'Merriweather', Georgia, serif;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ddd;
}

.main-content .post-meta {
    text-align: center;
    margin-bottom: 25px;
}

.entry-footer {
    padding: 0 30px 30px 30px;
}

/* 404 és keresési oldal */
.error-404 .page-header,
.search .page-header,
.archive .page-header {
    padding: 30px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Merriweather', Georgia, serif;
    color: #2d1b69;
    font-size: 2rem;
}

/* Reszponzív design */
@media (max-width: 1200px) {
    .site-content {
        grid-template-columns: 280px 1fr 340px;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-logo img {
        max-height: 140px;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 992px) {
    .site-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-left {
        order: 2;
    }
    
    .sidebar-right {
        order: 3;
    }
    
    .hirek-lista {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-logo img {
        max-height: 120px;
    }
    
    .hero-banner {
        padding: 50px 20px;
        min-height: 240px;
    }
    
    .post-item {
        flex-direction: row;
    }
    
    .post-thumbnail {
        width: 33%;
        order: 0;
    }
}

@media (max-width: 768px) {
    /* Hero banner mobilon */
    .hero-wrapper {
        gap: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo {
        max-width: 80px;
    }
    
    .hero-logo img,
    .hero-logo .custom-logo,
    .hero-logo a img,
    .hero-logo .custom-logo-link img {
        max-height: 80px !important;
        max-width: 80px !important;
    }
    
    .custom-logo-link {
        max-width: 80px !important;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-banner {
        padding: 30px 15px;
        min-height: auto;
    }
    
    /* Mobilmenü wrapper megjelenítése */
    .mobile-menu-wrapper {
        display: block;
    }
    
    /* Hamburger menü megjelenítése */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation .container {
        position: relative;
    }
    
    /* Menü elrejtése mobilon */
    .main-navigation .primary-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(22, 22, 63, 0.98);
        padding: 80px 20px 20px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .main-navigation .primary-menu.menu-open {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Csak a felső szintű menu-item-has-children legyen flex */
    .main-navigation .primary-menu > .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    /* Almenükben lévő menu-item-has-children is legyen flex */
    .main-navigation ul ul .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        flex: 1;
        width: auto;
        text-align: left;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    /* Dropdown menük mobilon */
    .main-navigation ul ul {
        position: static;
        display: none;
        width: 100%;
        flex-basis: 100%;
        box-shadow: none;
        background: rgba(18, 18, 53, 0.95);
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .main-navigation ul ul.submenu-open {
        display: block;
    }
    
    .main-navigation ul ul ul {
        background: rgba(14, 14, 43, 0.95);
    }
    
    .main-navigation ul ul li {
        display: block;
        width: 100%;
    }
    
    .main-navigation ul ul a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .main-navigation ul ul ul a {
        padding-left: 60px;
    }
    
    /* Nyilak mobilon */
    .main-navigation .menu-item-has-children > a::before {
        display: none;
    }
    
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 20px;
        color: #fff;
        cursor: pointer;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        min-width: 50px;
    }
    
    .submenu-toggle.active {
        transform: rotate(180deg);
    }
    
    /* Body scroll lock amikor menü nyitva */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-banner {
        padding: 40px 20px;
        min-height: 220px;
    }
    
    .hero-logo img {
        max-height: 100px;
    }
    
    .header-info-links {
        justify-content: center;
        font-size: 12px;
        gap: 15px;
    }
    
    .info-link {
        font-size: 12px;
    }
    
    .hirek-lista {
        grid-template-columns: 1fr;
    }
    
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-sitemap {
        padding: 30px 0 25px;
    }
    
    .post-item {
        padding: 20px;
        flex-direction: row;
    }
    
    .post-thumbnail {
        width: 33%;
        height: auto;
        margin-bottom: 15px;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .main-content > h2 {
        font-size: 1.6rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .site-content {
        margin: 30px auto;
        padding: 0 15px;
    }
}
