/* Joomla Template Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@400;500;600&display=swap');

:root {
    --gold: #e1b878;
    --gold-dark: #9c6838;
    --gold-light: #e2b879;
    --turquoise: #5a7b8b;
    --pale-blue: #9eb6c2;
    --header-scroll: rgba(90, 123, 139, 0.6);
    --bg-color: #f8fafc;
    --text-color: #333;
    --card-bg: #ffffff;
    --card-border: rgba(225, 184, 120, 0.25);
}

body.dark-mode {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --card-bg: #1a1a1a;
    --card-border: #333333;
    --pale-blue: #2c3e50;
    --turquoise: #f1d9a7;
    --header-scroll: rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--text-color);
    background: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.top-header.scrolled {
    background: var(--header-scroll);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

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

.main-logo {
    height: 80px;
    drop-shadow: 0 2px 5px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.main-nav-top {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.main-nav-top ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Submenu Support */
.main-nav-top ul li {
    position: relative;
}

.main-nav-top ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--turquoise);
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
}

.main-nav-top ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.main-nav-top ul li ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 1px;
}

.main-nav-top ul li ul li a:hover {
    background: rgba(255,255,255,0.1);
}

.main-nav-top a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: color 0.3s;
}

.main-nav-top a:hover {
    color: var(--gold-light);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--pale-blue);
        padding: 100px 40px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-collapse.active {
        right: 0;
    }

    .main-nav-top ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav-top ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        background: rgba(0,0,0,0.1);
        box-shadow: none;
        padding: 10px 0;
        margin-top: 10px;
        display: none;
    }

    .main-nav-top ul li.active > ul,
    .main-nav-top ul li:hover > ul {
        display: block;
    }

    .main-nav-top a {
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 25px;
    transition: background 0.3s;
    font-size: 1rem;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sun-icon { display: block; }
body.dark-mode .moon-icon { display: none; }
body:not(.dark-mode) .sun-icon { display: none; }
body:not(.dark-mode) .moon-icon { display: block; }

/* Dark Mode Overrides */
body.dark-mode .secondary-nav {
    background: var(--bg-color);
    border-bottom-color: #333;
}

body.dark-mode .slider-wrapper .module-content,
body.dark-mode .slider-wrapper .mod-articles-category,
body.dark-mode .slider-wrapper .mod-articles-news {
    background: var(--card-bg);
    border-color: var(--card-border);
}

body.dark-mode .main-content p {
    color: #bbb;
}

body.dark-mode .footer {
    background: #111;
    border-top: 1px solid #222;
}

body.dark-mode .footer-map {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 80px); /* 80px is the height of the secondary nav */
    max-height: 800px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 110px; /* Space for fixed header */
    box-sizing: border-box;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 60px); /* 60px is the mobile height of secondary nav */
        min-height: 500px;
        padding-top: 80px; /* Space for mobile header */
    }
    .hero-container {
        justify-content: center;
    }
    .hero-quote {
        font-size: 2.2rem; /* Larger quote on mobile */
        margin-bottom: 15px;
        padding: 0 15px;
    }
    .hero-quote small {
        font-size: 1.1rem;
        display: block;
        margin-top: 10px;
    }
    .hero-welcome {
        font-size: 12px !important; /* Fixed size for better control */
        padding: 0 25px;
        line-height: 1.4;
        opacity: 0.9;
    }
    .main-logo {
        height: 50px;
    }
    .slider-wrapper li,
    .slider-wrapper .category-module li,
    .slider-wrapper .latestnews li,
    .slider-wrapper .news-item {
        padding: 17px 12px 15px 12px !important; /* Half of desktop padding */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.hero-quote {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    .hero-quote {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .hero-quote small {
        font-size: 1.1rem;
    }
    .hero-container {
        margin-top: 40px;
        padding: 0 15px;
    }
}

.hero-quote small {
    font-size: 1.8rem;
    font-weight: normal;
    font-style: italic;
    opacity: 0.9;
}

.hero-welcome {
    color: white;
    font-size: 1.8rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Secondary Navigation */
.secondary-nav {
    background: white;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.secondary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .secondary-nav {
        height: 60px;
    }
    .secondary-nav ul {
        gap: 10px 15px;
        padding: 0 10px;
    }
    .secondary-nav li {
        flex: 0 0 auto;
    }
    .secondary-nav a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
}

.secondary-nav a {
    text-decoration: none;
    color: var(--turquoise);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.secondary-nav a:hover {
    color: var(--pale-blue);
}

/* Subpage Header */
.subpage-header {
    height: 120px;
    background: var(--turquoise);
}

/* Main Content Typography */
.main-content {
    padding: 30px 0;
    line-height: 1.8;
}

.main-content h1, .main-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--turquoise);
    margin-bottom: 30px;
}

.main-content p {
    margin-bottom: 20px;
    color: #555;
}

/* Slider Overrides - More generic for Joomla modules */
.slider-section {
    padding: 30px 0;
    background: var(--bg-color);
    overflow: hidden;
}

.slider-container {
    position: relative;
    padding: 0 60px;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Target standard Joomla module output - make them invisible to flex layout */
.slider-wrapper > div,
.slider-wrapper .moduletable,
.slider-wrapper .module-content,
.slider-wrapper .mod-articles-category,
.slider-wrapper .mod-articles-news,
.slider-wrapper .category-module,
.slider-wrapper .latestnews,
.slider-wrapper ul,
.slider-wrapper .mod-articles-category-group {
    display: contents !important;
}

/* Now target the actual items (li or direct divs inside modules) */
.slider-wrapper li,
.slider-wrapper .category-module li,
.slider-wrapper .latestnews li,
.slider-wrapper .news-item,
.u-container-layout {
    flex: 0 0 calc(33.333% - 10px); /* Account for 5px margins on both sides */
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    list-style: none;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid #e1b878;
    border-top: 12px solid #e1b878; /* A felső vastag sáv most már a szegély része */
    border-radius: 20px;
    padding: 35px 25px 30px 25px; /* Megnövelt felső padding a vastag keret miatt */
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    min-height: 440px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    position: relative;
    margin: 10px 20px; /* Valódi margó a kártyák között */
    overflow: hidden;
}

/* Eltávolítjuk a korábbi ::before megoldást, mert a border-top váltja fel */
.slider-wrapper li::before,
.slider-wrapper .news-item::before,
.u-container-layout::before {
    display: none;
}

.slider-wrapper li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(225, 184, 120, 0.15);
}

.slider-wrapper li a,
.slider-wrapper .news-title a {
    color: var(--turquoise);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-style: italic; /* Italic as per Statue of Liberty image */
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.slider-wrapper li .readmore,
.slider-wrapper .news-item .readmore {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.slider-wrapper li .readmore a,
.slider-wrapper li .btn,
.slider-wrapper li .u-btn,
.slider-wrapper li .mod-articles-category-readmore a {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--turquoise);
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    padding: 15px 0;
    transition: all 0.3s;
}

.slider-wrapper li .readmore a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

.slider-wrapper li a:hover {
    color: var(--gold-dark);
}

.slider-wrapper li img,
.slider-wrapper .news-item img,
.slider-wrapper li .introimg img,
.slider-wrapper li .img-intro img,
.slider-wrapper li .item-image img,
.slider-wrapper li .image-intro img,
.u-image {
    display: block !important;
    visibility: visible !important;
    max-width: 100%;
    height: 220px;
    border-radius: 20px; /* Egyezik a kártya lekerekítésével */
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%;
}

.slider-wrapper li .item-image,
.slider-wrapper .news-item .item-image {
    margin: 0 0 20px 0; /* Eltávolítva a negatív margó, így marad a 25px belső távolság */
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    border-radius: 20px;
}

/* Fallback for background images */
.slider-wrapper li [style*="background-image"] {
    display: block !important;
    height: 160px !important;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
}

.slider-wrapper li .intro-text,
.slider-wrapper li .article-intro,
.slider-wrapper li .item-intro,
.slider-wrapper li .introtext,
.slider-wrapper li .mod-articles-category-introtext,
.slider-wrapper li .mod-articlescategory-introtext,
.slider-wrapper li .news-intro,
.slider-wrapper li p,
.u-post-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.95rem;
    color: #555;
    margin-top: 5px;
    line-height: 1.5;
    text-align: center;
    overflow: visible; /* Engedjük a teljes szöveget */
    -webkit-line-clamp: unset !important; /* Kikapcsoljuk a vágást */
    max-height: none !important;
}

/* Date and Time styling to match user image */
.slider-wrapper li .published,
.slider-wrapper li .date,
.slider-wrapper li time {
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1px;
}

/* Slider Navigation */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--card-border);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--turquoise);
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(225, 184, 120, 0.3);
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

@media (max-width: 1024px) {
    .slider-wrapper li {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .slider-section { padding: 20px 0; }
    .slider-container { padding: 0 5px; }
    .slider-wrapper li {
        flex: 0 0 100%;
        padding: 25px 15px;
        min-height: 160px;
        border-right: 0;
        border-left: 0;
    }
    .slider-prev, .slider-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .slider-prev { left: 0; }
    .slider-next { right: 0; }
}

/* Footer Overrides */
.footer {
    background: var(--gold-light);
    padding: 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
}

.footer-info {
    text-align: left;
    flex: 1;
}

.footer-info h4 {
    color: var(--gold-dark);
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
}

.footer-info p, .footer-info div, .footer-info span {
    color: var(--turquoise);
    margin: 0;
    text-align: left;
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}

/* Hide redundant map and extra spacing generated by Joomla modules in footer-info */
.footer-info iframe,
.footer-info p[style*="float"],
.footer-info br,
.footer-info p:empty {
    display: none !important;
}

.footer-info p {
    margin-bottom: 2px !important;
}

.fields-container:empty {
    display: none;
}

.footer-map {
    background: rgba(255,255,255,0.4);
    height: 220px;
    border-radius: 20px;
    flex: 0 0 400px;
    overflow: hidden;
    position: relative;
}

.footer-map #mapDiv, 
.footer-map iframe, 
.footer-map .moduletable,
.footer-map .custom {
    width: 100% !important;
    height: 100% !important;
    border: none;
    margin: 0 !important;
    display: block;
}

/* If mapDiv is inside footer-map, make it fill the container */
.footer-map #mapDiv {
    flex: 1;
    height: 100%;
    background: transparent;
    border-radius: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 2px 15px;
    }
    .footer {
        padding: 0;
    }
    .footer-info {
        text-align: center;
    }
    .footer-info h4 {
        margin-top: 0;
        margin-bottom: 2px;
        font-size: 1.1rem;
    }
    .footer-info p, .footer-info div, .footer-info span {
        text-align: center;
        font-size: 0.9rem;
        margin: 0 !important;
    }
    .footer-map {
        margin: 5px auto;
        width: 100%;
        max-width: 300px;
        height: 140px;
        flex: none;
    }
}

/* A naptár konténere */
/* --- ALKALMAINK: TELJES ÉS STABIL KÁRTYA DESIGN --- */

/* 1. KONTÉNER: 800px korlát és középre igazítás */
.templom-napi-kartya {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* 2. TÁBLÁZAT ALAPOK: Rácsok eltüntetése */
.templom-napi-kartya table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 15px !important; 
    border: none !important;
}

/* 3. A KÁRTYA (SOR): Doboz kialakítása flex-szel */
.templom-napi-kartya tr {
    display: flex !important;
    flex-direction: row !important; /* Vízszintes alapirány */
    flex-wrap: wrap !important;     /* Engedi, hogy a Dátum és Megjegyzés új sort kezdjen */
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid #e69c5c !important; 
    border-top: 5px solid #e69c5c !important; 
    box-sizing: border-box !important;
}

/* 4. DÁTUM (1. oszlop): Mindig felül, teljes szélességben */
.templom-napi-kartya td:first-child {
    flex: 0 0 100% !important; /* Kiszorít minden mást a sorából */
    font-weight: bold !important;
    color: #e69c5c !important;
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    border: none !important;
    padding: 0 !important;
    text-align: left;
}

/* 5. ESEMÉNYEK (Köztes oszlopok): Egymás mellett, egyenlő szélességben */
.templom-napi-kartya td:not(:first-child):not(:last-child) {
    display: block !important;
    flex: 1 1 0px !important; /* Egyenlően osztoznak a maradék helyen */
    width: auto !important;
    margin-right: 15px !important;
    padding: 5px 0 !important;
    color: #5a7b8b !important; /* ESEMÉNY SZÍNE */
    font-weight: 600 !important;
    border: none !important;
    text-align: left;
}

/* ÜRES ESEMÉNY CELLÁK ELTÜNTETÉSE */
.templom-napi-kartya td:not(:first-child):not(:last-child):empty,
.templom-napi-kartya td:not(:first-child):not(:last-child):is(:blank) {
    display: none !important;
    flex: 0 !important;
}

/* 6. IDŐPONT (strong): Narancs kiemelés */
.templom-napi-kartya td strong, 
.templom-napi-kartya td b {
    color: #e69c5c !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-right: 6px !important;
}

/* 7. MEGJEGYZÉS (Utolsó oszlop): Mindig alul, teljes szélességben */
.templom-napi-kartya td:last-child {
    flex: 0 0 100% !important;
    display: block !important;
    font-style: italic !important;
    font-size: 0.9rem !important;
    margin-top: 15px !important;
    border-top: 1px solid #eee !important;
    padding-top: 12px !important;
    /* SZÍN BEÁLLÍTÁSA AZ ESEMÉNYEKKEL AZONOSRA: */
    color: #5a7b8b !important; 
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    text-align: left;
}

/* Üres megjegyzés elrejtése */
.templom-napi-kartya td:last-child:empty {
    display: none !important;
}

/* MOBILNÉZET: 600px alatt az események is egymás alá kerülnek */
@media (max-width: 600px) {
    .templom-napi-kartya td:not(:first-child):not(:last-child) {
        flex: 0 0 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
    }
}

/*TOVÁBBI HÍREK */

/* --- TOVÁBBI HÍREK: VÉGLEGES ÉS JAVÍTOTT DESIGN --- */

/* 1. KONTÉNER: Külső keret, háttér és 800px korlát */
.tovabbi-hirek {
    max-width: 800px !important;
    margin: 20px auto !important;
    background: #f9fbfc !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #e1e8eb !important;
    box-sizing: border-box !important;
}

/* 2. TÁBLÁZAT ALAPOK: Fix szélesség és rácsmentesség */
.tovabbi-hirek table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    table-layout: fixed !important;
}

/* 3. ÁLTALÁNOS SOROK: Blokkosítás és elválasztó vonal */
.tovabbi-hirek tr {
    display: block !important;
    width: 100% !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e1e8eb !important;
    height: auto !important;
    box-sizing: border-box !important; /* Megakadályozza a kilógást */
}

/* 4. KIEMELT SOR (A szaggatott box): Csak ha a keret nem 0px */
.tovabbi-hirek tr[style*="border"]:not([style*="border-width: 0px"]):not([style*="border: 0px"]),
.tovabbi-hirek tr:has(td[style*="border"]:not([style*="border-width: 0px"]):not([style*="border: 0px"])) {
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 15px 0 !important;
    border: 2px dashed #e69c5c !important; /* Narancs szaggatott */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    
    /* Kilógás elleni védelem */
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. CELLÁK: Fix méretek törlése */
.tovabbi-hirek td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* 6. TARTALOM FORMÁZÁSA (SZÍNEK ÉS MÉRETEK) */

/* Dátum és idő */
.tovabbi-hirek td:nth-child(1) { 
    color: #e69c5c !important; 
    font-weight: bold !important; 
    font-size: 0.85rem !important; 
    text-transform: uppercase !important; 
    margin-bottom: 5px !important; 
    text-align: left !important;
}

/* Esemény megnevezése */
.tovabbi-hirek td:nth-child(2) { 
    font-weight: 600 !important; 
    color: #5a7b8b !important; 
    font-size: 1rem !important; 
    margin-bottom: 5px !important; 
    text-align: left !important;
}

/* Leírás szövege */
.tovabbi-hirek td:nth-child(3),
.tovabbi-hirek td:nth-child(3) p { 
    font-size: 0.9rem !important; 
    color: #333 !important; 
    line-height: 1.5 !important; 
    text-align: left !important;
    margin: 5px 0 0 0 !important;
}

/* 7. FÉLKÖVÉR SZÖVEGEK SZÍNEZÉSE (strong/b) */
.tovabbi-hirek td strong, 
.tovabbi-hirek td b {
    color: #e69c5c !important; /* Narancssárga */
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    margin-right: 5px !important;
    display: inline-block !important;
}

/* 8. LINKEK ÉS E-MAIL CÍMEK */
.tovabbi-hirek td a {
    color: #e69c5c !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Utolsó sor elválasztó vonalának törlése */
.tovabbi-hirek tr:last-child {
    border-bottom: none !important;
}