/* 1. Reset standard browser margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* 2. Announcement Bar Styling */
.announcement-bar {
    background-color: #8b0000; /* A mature, professional dark red */
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 3. Sticky Header Styling */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* The "Glassmorphism" blur effect */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow underneath */
    z-index: 1000; /* Keeps it on top of all other content */
}

/* 4. Navigation Menu Styling */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #8b0000; /* Changes to red when hovered */
}

/* --- Dropdown Menu Magic (Upgraded & Smooth) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-group {
    display: block;
    padding: 15px 20px 5px 20px;
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none; 
    border-bottom: 1px solid #ddd;
}
.dropdown-content {
    /* We removed display: none! */
    position: absolute;
    background-color: #ffffff;
    min-width: 230px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1); /* Slightly softer, wider shadow */
    z-index: 100;
    border-radius: 4px;
    
    /* 1. Fixing the "Too Up" problem: We push it down below the navigation bar */
    top: calc(100% + 5px); 
    left: 0;

    /* 2. The Animation Magic */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px); /* Starts slightly floating up */
    
    /* This tells the browser to smoothly animate these 3 properties over 0.3 seconds */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* This creates an invisible bridge so your mouse doesn't lose the menu while moving down */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-content a {
    color: #333 !important;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: none !important;
    transition: background-color 0.2s ease, padding-left 0.2s ease; /* Adds a tiny slide to the text when hovered! */
}

.dropdown-content a:last-child {
    border-bottom: none; /* Cleans up the bottom edge */
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #8b0000 !important;
    padding-left: 25px; /* A very premium modern UI touch */
}

/* The Trigger: When hovering the main button, the menu glides down */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Glides into its true position */
}

/* 5. Language Toggle Styling */
.lang-toggle {
    font-weight: 700;
    font-size: 1rem;
    color: #888;
    cursor: pointer;
}

.lang-toggle .active {
    color: #8b0000;
}

/* --- 6. Hero Section --- */
.hero {
    /* 85vh means it takes up 85% of the browser window's height */
    height: 85vh; 
    min-height: 500px;
    
    /* I am putting a temporary, high-quality placeholder image of an antenna here for testing! */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/hero-image.png');
    background-size: cover;
    background-position: center;
    
    /* Flexbox centers everything perfectly in the middle */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8); /* Helps readability */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* The Call to Action Button */
.btn-primary {
    display: inline-block;
    background-color: #8b0000;
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #a00000;
    transform: translateY(-3px); /* Gentle float effect on hover */
}

/* --- 7. News Feed Layout --- */
.news-section {
    padding: 80px 10%;
    background-color: #f4f7f6; /* A very soft, modern gray/blue background */
}

.news-container {
    max-width: 900px;
    margin: 0 auto; /* Centers the news column */
}

/* The Post Cards */
.post-card {
    background: white;
    border-left: 5px solid #8b0000; /* Nice branding touch */
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft, modern shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* The Micro-interaction you asked for earlier! */
.post-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-meta {
    display: block;
    color: #888;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-excerpt {
    /* Forces long, unbroken words (like keyboard smashes or crazy long links) to wrap */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    
    /* Just to make sure it looks neat with normal text too */
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- 8. Global Footer --- */
.main-footer {
    background-color: #1a1a1a; /* A sleek, dark charcoal gray */
    color: #f4f4f4;
    padding: 60px 5% 20px 5%;
    margin-top: 0;
    border-top: 5px solid #8b0000; /* Ties in the brand color */
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Makes it stack nicely on mobile phones */
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Quick Links styling */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: #8b0000;
}

.tax-number {
    font-weight: bold;
    color: #ff4d4d !important; /* Makes the tax number pop safely on a dark background */
    font-size: 1.1rem;
}

/* The Bottom Copyright Bar */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.85rem;
}

/* --- 9. About Us Section --- */
.about-section {
    padding: 70px 10% 20px 10%;
    background-color: #ffffff;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-container h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* A sleek red underline effect for the modern corporate look */
.about-container h2::after {
    content: '';
    width: 60%;
    height: 4px;
    background-color: #8b0000;
    position: absolute;
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.about-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-top: 25px;
}

/* --- 10. Features Section (Grid) --- */
.features-section {
    padding: 40px 10% 80px 10%;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    /* This automatically figures out how many cards fit side-by-side based on screen size! */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background-color: #f9f9f9;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Card hover animation */
.feature-card:hover {
    transform: translateY(-10px); /* Makes it float up */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid #8b0000; /* Red line appears at the bottom */
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 11. Partner Logos Strip --- */
.partner-logos {
    padding: 50px 10%;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea; /* A very subtle gray line to separate it from the news */
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows them to wrap to the next line on mobile phones */
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* The Grayscale Hover Magic */
.partner-logo {
    max-height: 60px; /* Keeps all logos the same uniform height */
    filter: grayscale(100%); /* Turns the image completely black and white */
    opacity: 0.6; /* Makes them slightly faded */
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%); /* Brings the full color back! */
    opacity: 1; /* Makes them fully solid */
    transform: scale(1.05); /* Gives a tiny "pop" effect */
}

/* --- 12. Bottom Call to Action (CTA) --- */
.bottom-cta {
    background-color: #333; 
    color: white;
    padding: 70px 10%;
    text-align: center;
    margin-bottom: 0;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: #f0f0f0; /* Slightly off-white for better readability */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* The CTA Button */
.btn-secondary {
    display: inline-block;
    background-color: white;
    color: #000000;
    padding: 14px 40px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f4f4f4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- 13. Sub-Page Headers (Used for Documents, Gallery, etc.) --- */
.page-header {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 5px solid #8b0000;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #cccccc;
}

/* --- 14. Documents Page Layout --- */
.documents-content {
    padding: 60px 10%;
    background-color: #f9f9f9;
}

.docs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.doc-highlight-section h2, .archive-column h3 {
    color: #333;
    margin-bottom: 25px;
    border-left: 4px solid #8b0000;
    padding-left: 10px;
}

/* The Big Alapszabály Card */
.highlight-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f7f6;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 20px;
}

.highlight-icon {
    font-size: 3rem;
}

.highlight-text {
    flex: 1;
}

.highlight-text h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.highlight-text small {
    color: #666;
    font-size: 0.95rem;
}

.doc-divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 50px 0;
}

/* The 2-Column Archive Grid (Updated for Centering) */
.archive-grid {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 60px;
}

.doc-list {
    list-style: none;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-info {
    display: flex;
    flex-direction: column;
}

.doc-title {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.doc-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.btn-download {
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 6px 12px;
    border: 1px solid #8b0000;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #8b0000;
    color: white;
}

.empty-msg {
    color: #888;
    font-style: italic;
}

/* --- 15. Gallery & Album Styles --- */
.gallery-content {
    padding: 60px 10%;
    background-color: #f9f9f9;
    min-height: 50vh;
}

/* The Main Album Grid */
.album-grid {
    display: grid;
    /* This automatically creates columns that fit the screen size! */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.album-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.album-cover {
    height: 200px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces the image to fill the box without stretching */
}

.no-image-placeholder {
    color: #888;
    font-style: italic;
}

.album-info {
    padding: 20px;
    text-align: center;
}

.album-info h2 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.album-info p {
    color: #8b0000;
    font-weight: bold;
    font-size: 0.9rem;
}

/* The Inside Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.photo-card a:hover img {
    opacity: 0.8;
}

.photo-caption {
    text-align: center;
    padding-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

/* --- 16. KUPA SUB-SITE STYLES --- */

/* The Sub-Menu Bar */
.kupa-nav-wrapper {
    background-color: #196F3D; /* Changed to Forest Green */
    border-bottom: 3px solid #11502b; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.kupa-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kupa-nav-brand {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.kupa-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.kupa-nav li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.kupa-nav li a:hover {
    background-color: #11502b; ;
}

/* Kupa Pages Content */
.kupa-header {
    background: linear-gradient(rgba(25, 111, 61, 0.85), rgba(17, 80, 43, 0.95)), url('../images/hero-image.png') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.kupa-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.kupa-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.kupa-about {
    padding: 60px 10%;
    background-color: #f4f7f6;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    color: #196F3D;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.about-text p {
    line-height: 1.8;
    color: #444;
}

.highlight-box {
    background: white;
    border-left: 5px solid #196F3D;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.highlight-box strong {
    font-size: 1.2rem;
    color: #333;
}

.highlight-box span {
    display: block;
    color: #666;
    margin: 10px 0 20px 0;
}

.btn-kupa {
    display: inline-block;
    background-color: #196F3D;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-kupa:hover {
    background-color: #11502b;
}

/* Make it stack on mobile */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
/* Sub-site mobile navigation layout */
    .kupa-nav {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .kupa-nav-brand {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .kupa-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        padding: 0;
    }
    
    .kupa-nav li {
        width: 100%;
        text-align: center;
    }
}

/* --- 17. KUPA VERSENYEK (COMPETITIONS) PAGE --- */

/* The Upcoming Event Hero */
.kupa-hero {
    background-color: #196F3D;
    background-image: linear-gradient(135deg, #196F3D 0%, #11502b 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 5px solid #8b0000; /* Subtle red accent to tie back to the main site */
}

.kupa-hero h2 {
    color: #ffd700; /* Gold text for "Next Event" */
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.kupa-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.btn-kupa-large {
    display: inline-block;
    background-color: #ffffff;
    color: #196F3D;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-kupa-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #8b0000;
}

.coming-soon {
    font-style: italic;
    color: #ccc;
}

/* External Calendar Box */
.kupa-calendar-link {
    padding: 40px 10%;
    background-color: #f4f7f6;
}

.info-box {
    background: white;
    border-left: 5px solid #8b0000;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-box p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Archive Table */
.kupa-archive {
    padding: 40px 10% 80px;
    background-color: #ffffff;
}

.kupa-archive h2 {
    text-align: center;
    color: #196F3D;
    margin-bottom: 30px;
}

.table-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto; /* Lets the table scroll horizontally on tiny phones */
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.archive-table th {
    background-color: #196F3D;
    color: white;
    padding: 15px;
    text-align: left;
}

.archive-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.archive-table tr:hover {
    background-color: #f9f9f9;
}

.archive-table tr:last-child td {
    border-bottom: none;
}

.pdf-link, .gallery-link {
    color: #196F3D;
    text-decoration: none;
    font-weight: bold;
}

.pdf-link:hover, .gallery-link:hover {
    color: #8b0000;
    text-decoration: underline;
}

.text-muted {
    color: #aaa;
}

/* --- 18. KUPA EREDMÉNYEK (RESULTS) --- */
.results-content {
    padding: 50px 10%;
    background-color: #f4f7f6;
    min-height: 50vh;
}

.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* The Accordion Boxes */
.comp-accordion {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.comp-summary {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #196F3D;
    background-color: #ffffff;
    cursor: pointer;
    list-style: none; /* Removes default arrow */
    border-left: 5px solid #196F3D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.comp-summary:hover {
    background-color: #f0f5fa;
}

.comp-summary::-webkit-details-marker {
    display: none;
}

.comp-date {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

/* Inside the Accordion */
.comp-details {
    padding: 20px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-card h3 {
    color: #8b0000;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.table-responsive {
    overflow-x: auto;
}

.modern-res-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-res-table th {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
}

.modern-res-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* Place Highlights */
.gold { color: #d4af37; font-weight: bold; font-size: 1.1rem; }
.silver { color: #aaa9ad; font-weight: bold; font-size: 1.1rem; }
.bronze { color: #cd7f32; font-weight: bold; font-size: 1.1rem; }

.time-col {
    font-family: monospace;
    font-weight: bold;
    color: #196F3D;
}

/* --- 19. KAPCSOLAT (CONTACT) PAGE --- */
.contact-section {
    padding: 60px 10%;
    background-color: #f4f7f6;
    min-height: 50vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info h2 {
    color: #8b0000;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.info-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.info-item strong {
    color: #222;
}

.info-item a {
    color: #196F3D;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.info-item a:hover {
    color: #8b0000;
    text-decoration: underline;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 30px 0;
}

.contact-map {
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #eee;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        min-height: 300px;
    }
}

/* --- 20. MOBILE RESPONSIVENESS (HAMBURGER MENU) --- */

/* Hide the hamburger button on desktop screens */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
}

/* When the screen is 900px or smaller (Tablets and Phones) */
@media (max-width: 900px) {
    header {
        flex-wrap: wrap; /* Allows elements to wrap to the next line */
        padding: 15px 20px;
    }
/* Adjust dropdown group headers for mobile view */
    .dropdown-group {
        display: block;
        padding: 15px 0 5px 0;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    /* Shrink the massive logo text on mobile */
    .logo h2 {
        font-size: 0.9rem; 
    }
    
    .menu-toggle {
        display: block; /* Show the hamburger button! */
        margin-left: auto; /* Pushes it to the right side */
        margin-right: 15px;
    }
    
    .main-nav {
        display: none; /* Hide the horizontal menu by default */
        width: 100%;
        margin-top: 15px;
        order: 3; /* Pushes the menu to the bottom row of the header */
    }
    
    /* The JavaScript adds this class to show the menu */
    .main-nav.active {
        display: block; 
    }
    
    .main-nav ul {
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        padding: 0;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Fix the Dropdown so it doesn't fly off the screen on mobile */
    .dropdown-content {
        position: static; 
        box-shadow: none;
        background-color: #f9f9f9;
        min-width: 100%;
    }
    
    .dropdown-content a {
        padding-left: 0;
    }

}

/* --- 22. POST GALLERY PREVIEW (FADE EFFECT) --- */

.post-gallery-preview {
    position: relative;
    margin-top: 25px;
    /* This limits the height of the box so we only see the upper half of the gallery */
    max-height: 180px; 
    overflow: hidden;
    border-radius: 8px;
}

.preview-grid {
    display: grid;
    /* Automatically creates columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.preview-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Prevents the images from stretching weirdly */
    border-radius: 6px;
    opacity: 0.9;
}

/* The Magic Gradient */
.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* How tall the fade effect is */
    
    /* Fades from completely transparent at the top, to solid white at the bottom */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    
    pointer-events: none; /* Ensures the fade doesn't accidentally block mouse clicks */
}

.post-gallery-action {
    text-align: center;
    /* We use negative margin to pull the button UP into the white space created by the fade! */
    margin-top: -20px; 
    position: relative;
    z-index: 2; /* Keeps the button layered on top of the fade */
    padding-bottom: 15px;
}

.post-gallery-action .btn-secondary {
    font-size: 0.95rem;
    padding: 10px 25px;
    border: 1px solid #ddd;
}

/* --- 23. URH SUB-SITE (GOLDEN YELLOW THEME) --- */
.urh-nav-wrapper {
    background-color: #196F3D; /* Changed to Forest Green */
    border-bottom: 3px solid #11502b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.urh-header {
    background: linear-gradient(rgba(25, 111, 61, 0.85), rgba(17, 80, 43, 0.95)), url('../images/hero-image.png') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.btn-urh {
    display: inline-block;
    background-color: #196F3D;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-urh:hover {
    background-color: #11502b;
}

.auto-date-box {
    background: #fff;
    border-left: 5px solid #196F3D;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.auto-date-box h3 {
    color: #196F3D;
    margin-bottom: 5px;
}

.urh-category-title {
    color: #196F3D; 
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* --- 24. HST SUB-SITE (FOREST GREEN THEME) --- */
.hst-nav-wrapper {
    background-color: #196F3D; /* Forest Green */
    border-bottom: 3px solid #11502b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hst-header {
    background: linear-gradient(rgba(25, 111, 61, 0.85), rgba(17, 80, 43, 0.95)), url('../images/hero-image.png') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.btn-hst {
    display: inline-block;
    background-color: #196F3D;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-hst:hover {
    background-color: #11502b;
}

/* --- 25. PROJECTS SUB-SITE (BROWN THEME) --- */
.projects-nav-wrapper {
    background-color: #5D4037; /* Dark Cocoa Brown */
    border-bottom: 3px solid #3E2723;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Override the default green hover color to dark brown ONLY on the Konstruktőr sub-site navigation */
.projects-nav-wrapper .kupa-nav ul li a:hover {
    background-color: #3E2723; /* Dark Cocoa Brown */
}

.projects-header {
    background: linear-gradient(rgba(93, 64, 55, 0.85), rgba(62, 39, 35, 0.95)), url('../images/hero-image.png') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

/* The Heavy-Duty Project Post Cards */
.project-card {
    background: white;
    border-left: 6px solid #5D4037;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.project-card h2 {
    color: #3E2723;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.project-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: block;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

/* Large Photo Grid for the Projects */
.project-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.project-photo-grid img {
    width: 100%;
    height: 250px; /* Big, clear pictures */
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-photo-grid img:hover {
    transform: scale(1.02);
}

/* File Attachments Area */
.project-files {
    background: #f4f7f6;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.btn-project-file {
    display: inline-block;
    background-color: #5D4037;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn-project-file:hover {
    background-color: #3E2723;
}

/* --- 26. PROJECTS SEARCH BAR --- */
.project-search-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border-left: 6px solid #5D4037; /* Matches the project cards */
}

.project-search-bar form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows the bar to stack on mobile phones */
}

.project-search-bar input[type="text"] {
    flex: 1; /* Takes up the most space */
    min-width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.project-search-bar select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #555;
    background-color: #f9f9f9;
    cursor: pointer;
}

.btn-project-search {
    background-color: #5D4037;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-project-search:hover {
    background-color: #3E2723;
}

.btn-project-clear {
    display: flex;
    align-items: center;
    background-color: #e0e0e0;
    color: #555;
    text-decoration: none;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-project-clear:hover {
    background-color: #ccc;
}



/* --- 27. BURABU SUB-SITE (NAVY & ORANGE THEME) --- */
.burabu-nav-wrapper {
    background-color: #0B132B; /* Deep Navy */
    border-bottom: 3px solid #FF6B35; /* Sunset Orange */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 990;
}
/* --- BURABU "BACK TO MAIN SITE" BUTTON --- */
.btn-burabu-back {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    color: white !important;
    border: 1px solid #FF6B35; /* Orange border to match the theme */
    padding: 6px 16px !important;
    border-radius: 4px;
    margin-left: 20px; /* Pushes it away from the other event links */
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-burabu-back:hover {
    background-color: #FF6B35;
    text-decoration: none !important;
}

.burabu-hero {
    /* Uses a darker gradient so the Orange countdown pops! */
    background: linear-gradient(rgba(11, 19, 43, 0.8), rgba(11, 19, 43, 0.95)), url('../images/hero-image.png') center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.burabu-accent-text {
    color: #FF6B35;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Javascript Countdown Boxes */
.countdown-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 120px;
}

.countdown-box span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #FF6B35;
    line-height: 1;
}

.countdown-box small {
    font-size: 0.9rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

/* --- JAVASCRIPT SCROLL REVEAL ANIMATIONS --- */
.reveal {
    position: relative;
    opacity: 0; /* Hidden by default */
    transform: translateY(50px); /* Pushed down 50px */
    transition: all 0.8s ease-in-out;
}

.reveal.active {
    opacity: 1; /* Fades in */
    transform: translateY(0); /* Slides up to normal position */
}

/* Event Schedule Timeline */
.timeline-item {
    background: white;
    border-left: 4px solid #FF6B35;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
}

/* Interactive FAQ Accordion */
.faq-question {
    background: #0B132B;
    color: white;
    padding: 18px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #1a2530;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
    padding: 0 25px;
    border-left: 2px solid #0B132B;
}

/* --- BURABU CUSTOM FOOTER --- */
.burabu-footer {
    background-color: #050914; /* An even darker Navy Blue for the absolute bottom */
    color: #e0e0e0;
    padding: 40px 20px;
    border-top: 3px solid #FF6B35; /* The Sunset Orange accent line */
    text-align: center;
    margin-top: 0; /* Overrides the main footer's top margin */
}

.burabu-footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.burabu-footer-content h3 {
    color: #FF6B35;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.burabu-footer-content p {
    margin-bottom: 5px;
    color: #aaa;
    font-size: 0.95rem;
}

.burabu-contact {
    margin-top: 15px !important;
}

.burabu-contact a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.burabu-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- BREADCRUMB NAVIGATION --- */
.kupa-breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* Subtle, slightly transparent text */
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.kupa-breadcrumb a {
    color: white;
    text-decoration: none;
    margin-right: 6px;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.kupa-breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- POST RICH LINK CARDS --- */
.post-rich-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rich-card {
    display: flex;
    align-items: center;
    background-color: #f8f9fa; /* Light gray to stand out from the white post */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rich-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.rich-card-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.rich-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rich-card-info strong {
    color: #333;
    font-size: 1rem;
    margin-bottom: 2px;
}

.rich-card-info span {
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-rich-card {
    background-color: #990000; /* Puskás Dark Red */
    color: white !important;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn-rich-card:hover {
    background-color: #7a0000;
}