/**
 * Agrárbázis Template - Fő stíluslap
 *
 * @package     Agrarbazis Template
 * @copyright   (C) 2026 Whitecomp Kft.
 * @version     1.0.0
 *
 * Forrás: informaciok/design/v7/assets/styles.css
 * Optimalizálva: Csak V1 zöld téma, felesleges kód eltávolítva.
 * CSS változók az index.php :root-ban definiálva (inline).
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LAYOUT GRID
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col { padding: 0 12px; }
.col-2 { width: 16.666%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-6 { width: 50%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333%; }
.col-12 { width: 100%; }

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.content-wrapper {
    display: flex;
    gap: 35px;
}

.content-wrapper-inner {
    gap: 25px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar-right {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-right.sticky {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    height: fit-content;
    /* SCROLLBAR EGYELŐRE KIKOMMENTELVE (Margó 2026-05-14 kérése):
       a sidebar együtt görgessen az oldallal, ne legyen belső scroll.
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    */
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #111;
}

.hero-section-inner .hero-slider {
    height: 320px;
}

.hero-section-inner .hero-overlay {
    bottom: 0;
    padding-top: 40px;
    padding-bottom: 15px;
}

.hero-main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-main-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-main-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 310px 20px calc(max(20px, (100vw - 1200px) / 2 + 20px));
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
    box-sizing: border-box;
}

.featured-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.featured-badge i {
    margin-right: 4px;
    color: #ffd700;
}

.hero-overlay h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 2px 0;
    padding-left: 7px;
}

.hero-overlay h2 a {
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-overlay h2 a:hover {
    color: rgba(255,255,255,0.9);
}

.hero-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 0 0;
    padding-left: 11px;
}

.hero-meta i {
    margin-right: 4px;
}

/* Hero Thumbnails */
.hero-thumbs {
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: calc((100% - 1200px) / 2 + 20px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.hero-thumb {
    width: 280px;
    height: 195px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-thumb:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transform: scale(1.02);
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
}

.hero-thumb-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.hero-thumb-title a {
    color: white;
    text-decoration: none;
}

.hero-thumb-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-thumb-meta i {
    margin-right: 3px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--bg-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 12px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img,
.header-logo img {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 12px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:not(.nav-search):hover,
.main-nav a:not(.nav-search).active {
    color: var(--primary-color);
    background: var(--bg-alt);
}

.main-nav button.nav-search {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-nav button.nav-search:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================
   KERESŐ OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-overlay-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    padding: 0 20px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: scale(1.2);
}

.search-overlay-title {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.search-input {
    flex: 1;
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 28px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   BANNER ROW
   ============================================ */
.banner-row {
    background: var(--bg-warm);
    padding: 15px 0;
}

.banner-row-flex {
    display: flex;
    gap: 35px;
    align-items: center;
}

.banner-row-wide {
    flex: 1;
}

.banner-row-small {
    width: 280px;
    flex-shrink: 0;
}

.banner-row img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.banner-row-inner .banner-row-flex {
    gap: 15px;
}

.banner-row-inner img {
    height: 90px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 40px 0;
    background: var(--bg-warm);
}

/* ============================================
   SIDEBAR BANNER
   ============================================ */
.sidebar-right .bannergroup {
    margin-bottom: 20px;
}

.sidebar-right .banneritem {
    margin-bottom: 10px;
}

.sidebar-right .banneritem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================
   KIEMELT AJÁNLATOK - Sidebar
   ============================================ */
.featured-sidebar {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.featured-sidebar-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-sidebar-title i {
    color: #ffd700;
}

/* KOMPAKT layout (2026-05-14, Margó kérése):
   bal oldalon kis 64×64 kockakép, jobb oldalon cím + dátum + megtekintés.
   Minden cikk azonos magasságú → 2x annyi cikk fér ki scroll nélkül. */
.featured-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.25s ease;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.featured-item:hover {
    background: var(--bg-alt);
}

.featured-item:last-child {
    border-bottom: none;
}

.featured-item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.featured-item:hover .featured-item-image {
    transform: scale(1.04);
}

/* Placeholder (kép nélküli cikkek) */
.featured-item-image-placeholder {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.featured-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.featured-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-item:hover .featured-item-title {
    color: var(--primary-color);
}

.featured-item-date {
    font-size: 10.5px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-item-date i {
    font-size: 10px;
}

/* ============================================
   ROVAT SZEKCIÓK - Section blocks
   ============================================ */
.section-block {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 18px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--bg-alt);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.section-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

/* ============================================
   ARTICLE CARDS - Grid (főoldal szekciók)
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.article-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.article-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.article-card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.article-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.1));
    pointer-events: none;
}

.article-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-warm) 100%);
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image {
    transform: scale(1.08);
}

.article-card-content {
    padding: 16px;
}

.article-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-card-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   AD BANNER ROWS
   ============================================ */
.ad-banner-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px 0;
    background: #ffffff;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner-row a,
.ad-banner-row .banneritem {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner-row a img,
.ad-banner-row .banneritem img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.ad-banner-row .bannergroup {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.ad-banner-row-3 {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: #ffffff;
}

.ad-banner-row-3 a,
.ad-banner-row-3 .banneritem {
    flex: 1;
    min-width: 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner-row-3 a img,
.ad-banner-row-3 .banneritem img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.ad-banner-row-3 .bannergroup {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}

/* ============================================
   PARTNER LOGÓK
   ============================================ */
.partners-section {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-alt) 100%);
    padding: 50px 0;
    margin: 0;
}

.partners-title {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 600;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    max-height: 55px;
    max-width: 130px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: #a9a9a9;
    padding: 60px 0 30px;
}

.footer > .container > .row {
    justify-content: space-between;
}

.footer > .container > .row > .col {
    flex: 1;
    max-width: 280px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer a {
    color: #a9a9a9;
}

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #a9a9a9;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '\2192';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    color: #a9a9a9;
    font-size: 12px;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.4s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.footer-social {
    text-align: center;
}

/* Footer contact info */
.footer-contact {
    color: #a9a9a9;
    font-size: 13px;
    margin: 6px 0;
    line-height: 1.5;
}

.footer-contact a {
    color: var(--primary-light);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #666;
}

/* ============================================
   ROVATOLDAL - Category listing
   ============================================ */
.category-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 28px;
    margin-bottom: 25px;
    border-radius: 12px;
}

.category-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: white;
}

/* Banner Logos (2 oszlopban) */
.banner-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.banner-logo {
    background: white;
    border: 1px solid var(--border-color);
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-logo:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.banner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

/* Article List - Vízszintes kártyák (rovatoldal) */
.article-list-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin-bottom: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.article-list-item:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateX(5px);
    border-color: var(--primary-light);
}

.article-list-image-wrapper {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-list-item:hover .article-list-image {
    transform: scale(1.1);
}

.article-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-list-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-list-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-list-title a:hover {
    color: var(--primary-color);
}

.article-list-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-list-meta i {
    color: var(--primary-color);
}

/* Pagination (Joomla: ul.pagination > li.page-item > a/span.page-link) */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 40px 0;
    list-style: none;
    margin: 0;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   CIKKOLDAL - Article page
   ============================================ */
.article-page-wrapper {
    display: flex;
    gap: 35px;
}

.article-main {
    flex: 1;
    min-width: 0;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.article-header {
    padding: 35px 35px 25px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 18px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.article-category:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(25,142,1,0.3);
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.25;
    margin-bottom: 18px;
}

.article-meta {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item i {
    color: var(--primary-color);
}

.article-featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.article-content {
    padding: 35px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin: 35px 0 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Úsztatott képek (float: left / right) esetén a szöveg ne ragadjon
   a képhez — vízszintes margin a szöveg felé. !important kell,
   mert az inline `style="float: left"`-es kép a default
   `margin: 25px 0`-t kapja (csak vertikális), és ki kell egészíteni
   a horizontális irányba. Globális szabály — minden cikkre érvényes,
   nem kell egyenként szerkeszteni. */
.article-content img[style*="float: left"],
.article-content img[style*="float:left"] {
    margin: 8px 20px 14px 0 !important;
}
.article-content img[style*="float: right"],
.article-content img[style*="float:right"] {
    margin: 8px 0 14px 20px !important;
}

.article-content ul {
    margin: 20px 0 20px 25px;
}

.article-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 8px;
}

.article-content ul li::marker {
    color: var(--primary-color);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.article-content table th,
.article-content table td {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* Garantált bal-padding a SOR ELSŐ cellájához (label oszlop).
   A TinyMCE/JCE szerkesztők gyakran inline
   `style="padding: 6px 12px 6px 0"` style-t generálnak a cellákra,
   ami felülírja a `.article-content table td { padding: 14px 18px }`
   szabályt → a label szöveg ráragad a tábla bal szélére, olvashatatlan.
   !important kell az inline style legyőzéséhez.
   (A többi cellán a normál CSS padding érvényesül.) */
.article-content table tr > th:first-child,
.article-content table tr > td:first-child {
    padding-left: 12px !important;
}

.article-content table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-content table tr:nth-child(even) {
    background: var(--bg-alt);
}

/* Article Suggestions */
.article-suggestions {
    background: var(--bg-alt);
    padding: 35px;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

.suggestions-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-title i {
    color: var(--primary-color);
}

/* ============================================
   HAMBURGER MENÜ & MOBIL NAVIGÁCIÓ
   ============================================ */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger → X animáció */
.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobil menü panel */
.mobile-menu {
    display: none;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-nav {
    padding: 10px 0;
}

.mobile-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--bg-alt);
    color: var(--primary-color);
    padding-left: 28px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* --- 1100px: Kis desktop / széles tablet --- */
@media (max-width: 1100px) {
    .sidebar-right {
        width: 240px;
    }

    .hero-slider {
        height: 350px;
    }

    .hero-thumbs {
        right: 15px;
    }

    .hero-thumb {
        width: 220px;
        height: 160px;
    }

    .hero-overlay {
        padding-right: 250px;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 768px: Tablet / mobil --- */
@media (max-width: 768px) {
    /* Grid oszlopok full-width */
    .col-2, .col-3, .col-4,
    .col-6, .col-8, .col-9, .col-10 {
        width: 100%;
    }

    /* Hamburger menü megjelenítés */
    .nav-hamburger {
        display: flex;
    }

    .main-nav a:not(.nav-search):not(.nav-hamburger) {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero slider */
    .hero-slider {
        height: 280px;
    }

    .hero-thumbs {
        display: none;
    }

    .hero-overlay {
        padding: 20px;
        padding-right: 20px;
    }

    .hero-overlay h2 {
        font-size: 18px;
    }

    /* Sidebar alulra */
    .sidebar-right {
        width: 100%;
        margin-top: 30px;
        position: static;
    }

    /* Layout stacking */
    .content-wrapper,
    .content-wrapper-inner,
    .article-page-wrapper {
        flex-direction: column;
    }

    /* Cikk grid 2 oszlop */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Rovatoldal kártyák függőlegesre */
    .article-list-item {
        flex-direction: column;
    }

    .article-list-image-wrapper {
        width: 100%;
        height: 200px;
    }

    /* Cikkoldal csökkentett méret */
    .article-title {
        font-size: 24px;
    }

    .article-content,
    .article-header {
        padding: 25px;
    }

    .article-suggestions {
        padding: 25px;
    }

    /* Szekciók */
    .section-block {
        padding: 20px;
        border-radius: 8px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Banner sorok */
    .banner-row-flex {
        flex-direction: column;
        gap: 15px;
    }

    .banner-row-wide,
    .banner-row-small {
        width: 100%;
    }

    .ad-banner-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Footer 1 oszlopos + középre igazítás */
    .footer .row {
        flex-direction: column;
        margin: 0;
        align-items: center;
    }

    .footer {
        padding: 40px 0 25px;
    }

    .footer .col,
    .footer .col-2,
    .footer .col-3,
    .footer .col-4 {
        padding: 0;
        width: 100%;
    }

    .footer .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .footer-section h4 {
        text-align: center;
    }

    .footer .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .tag-cloud {
        justify-content: center;
    }

    .footer .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer .footer-links a::before {
        display: none;
    }

    .footer .footer-bottom,
    .footer .footer-contact {
        text-align: center;
    }

    /* Kiemelt ajánlatok (sidebar) — tablet / mobil layout
       (2026-05-15): a sidebar full-width-re kerül a tartalom alá.
       A cikkek a kategória-cikkkártyák stílusát kovetik:
       NAGY kép FELÜL, alatta cím + dátum + megtekintés.
       A kártya a sidebar teljes szélességéhez igazodik. */
    .featured-sidebar-title {
        text-align: center;
        justify-content: center;
    }
    .featured-list {
        display: block;
    }
    .featured-item {
        flex-direction: column;
        padding: 14px 16px;
        gap: 12px;
    }
    .featured-item-image,
    .featured-item-image-placeholder {
        width: 100%;
        height: 180px;
        border-radius: 8px;
    }
    .featured-item-image-placeholder {
        font-size: 36px;
    }
    .featured-item-content {
        text-align: center;
        align-items: center;
    }
    .featured-item-title {
        font-size: 15px;
        -webkit-line-clamp: 3;
        text-align: center;
    }
    .featured-item-date {
        font-size: 12px;
        justify-content: center;
    }

    /* Hírek lista középre mobilon */
    .article-list-item {
        text-align: center;
        align-items: center;
    }

    .article-list-title,
    .article-list-excerpt {
        text-align: center;
    }

    .article-list-meta {
        justify-content: center;
    }

    /* Section header középre */
    .section-header {
        align-items: center;
        text-align: center;
    }

    .section-title {
        justify-content: center;
        text-align: center;
    }

    /* Social ikonok */
    .social-icons {
        margin: 20px 0 15px;
        padding: 20px 0;
    }

    /* Kereső overlay */
    .search-overlay-inner {
        padding: 0 20px;
    }

    .search-overlay-title {
        font-size: 20px;
    }

    /* Category header */
    .category-header {
        padding: 15px 20px;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    /* Fejléc logó kisebb */
    .header-logo img {
        max-height: 36px;
    }
}

/* --- 480px: Kis mobil --- */
@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Kiemelt ajánlatok kis mobilon — a kep magassagat
       picit csokkentjuk, hogy ne tultsoek ki a kepernyot. */
    .featured-item-image,
    .featured-item-image-placeholder {
        height: 160px;
    }

    .partners-logos {
        gap: 20px;
    }

    .partner-logo {
        max-height: 40px;
    }

    .category-title {
        font-size: 22px;
    }

    .hero-slider {
        height: 220px;
    }

    .hero-overlay h2 {
        font-size: 15px;
    }

    .article-content,
    .article-header {
        padding: 18px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav a {
        padding: 14px 20px;
        font-size: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .featured-sidebar-title {
        font-size: 14px;
    }
}

/* ============================================
   KERESÉS TALÁLATI OLDAL (com_finder)
   ============================================ */
.finder-results-page {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.finder-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
}

.finder-form-row {
    display: flex;
    max-width: 600px;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.finder-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-family: inherit;
}

.finder-input:focus {
    border-color: var(--primary-color);
}

.finder-submit {
    padding: 12px 22px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.finder-submit:hover {
    background: var(--primary-dark);
}

.finder-results-summary {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.finder-results-summary strong {
    color: var(--text-color);
}

.finder-results-list {
    margin-bottom: 30px;
}

.finder-result-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.finder-result-item:last-child {
    border-bottom: none;
}

.finder-result-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.finder-result-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.finder-result-title a:hover {
    color: var(--primary-color);
}

.finder-result-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 6px 0;
}

.finder-result-date {
    color: var(--text-light);
    font-size: 12px;
    margin-right: 8px;
}

.finder-result-date i {
    margin-right: 4px;
}

.finder-result-url {
    font-size: 12px;
    color: #198e01;
    word-break: break-all;
}

.finder-no-results {
    text-align: center;
    padding: 60px 20px;
}

.finder-no-results-icon {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.finder-no-results h2 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.finder-no-results p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0 0 5px 0;
}

.finder-explained {
    background: var(--bg-alt);
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.finder-explained a {
    color: var(--primary-color);
    font-weight: 600;
}

.finder-pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.finder-pagination .pagination {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.finder-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.finder-pagination .page-link:hover {
    background: var(--bg-alt);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.finder-pagination .active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.finder-pagination .disabled .page-link {
    color: var(--border-color);
    pointer-events: none;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0;
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #fff;
}

.cookie-consent-text p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #8bc34a;
    text-decoration: underline;
}

.cookie-consent-categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cookie-cat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    padding: 10px 14px;
    border-radius: 6px;
    flex: 1;
    min-width: 140px;
}

.cookie-cat input {
    margin-right: 6px;
}

.cookie-cat span {
    font-weight: 600;
}

.cookie-cat small {
    color: #999;
    font-size: 11px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-btn-primary {
    background: #198e01;
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #14700a;
}

.cookie-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.cookie-btn-link {
    background: transparent;
    color: #999;
    padding: 10px 12px;
}

.cookie-btn-link:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .cookie-consent-categories {
        flex-direction: column;
    }
    .cookie-consent-buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
