:root {
    --primary-color: #0056a6;    /* Kék szín a logóból */
    --secondary-color: #ff6600;  /* Narancs szín a logóból */
    --accent-color: #ff6600;     /* Accent szín (ugyanaz mint secondary) */
    --dark-color: #333333;
    --light-color: #e9f2fa;      /* Világosabb kék árnyalat */
    --light-bg: #f8f9fa;         /* Világos háttér szín */
    --text-color: #333333;
    --gray-color: #666666;
    --light-gray: #f5f5f5;
    --white-color: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

/* Erős specificitású felülírás a dropdown menü linkekhez */
header nav .dropdown-menu a,
header .dropdown-menu a,
.dropdown-menu a {
    color: var(--dark-color) !important;
}

/* További biztosíték a grants oldalhoz */
body .dropdown-menu a {
    color: var(--dark-color) !important;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color); /* Narancs gomb a kontrasztért */
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}

/* Header */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
}

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

.logo a {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo-img {
    height: 60px;
    margin-right: 15px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    position: relative;
    margin-left: 20px;
}

.nav-menu .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-menu .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 102, 0, 0.1);
}

.nav-menu .nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
    background-color: transparent;
}

.nav-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.nav-menu .nav-link.external {
    color: var(--primary-color);
}

.nav-menu .nav-link.external:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 86, 166, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu .nav-link {
    padding: 12px 18px;
    display: block;
    border-radius: 0;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu .nav-link:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-menu .nav-link:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

.dropdown-menu .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-menu .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.dropdown-menu .nav-link.active::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 9, 40, 0.8), rgba(0, 86, 166, 0.7)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color) 70%, var(--secondary-color) 30%);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-cta-button {
    margin-top: 25px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--secondary-color);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 10px;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reference-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.reference-card:hover {
    transform: translateY(-5px);
}

.reference-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.reference-logo img {
    max-width: 80%;
    max-height: 80px;
}

/* Reference Category Cards */
.reference-category-card {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.reference-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.category-icon i {
    font-size: 32px;
    color: var(--white-color);
}

.reference-category-card:hover .category-icon {
    transform: scale(1.1);
}

.reference-category-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.reference-category-card p {
    color: var(--gray-color);
    margin-bottom: auto;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    margin-top: auto;
    align-self: center;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    align-items: start;
    justify-content: center;
}

/* Single member category centering */
.team-grid:has(.team-member:only-child) {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* Multi-member category optimization */
.team-grid:not(:has(.team-member:only-child)) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 4px solid var(--light-color);
}

.team-member h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 18px;
}

.team-member .position {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 10px;
    font-size: 14px;
}

.team-member .description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: auto;
    flex-grow: 1;
    width: 100%;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Team Info Button */
.team-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.team-info-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Contact Info Popup */
.contact-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-info-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white-color);
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.contact-info-popup.show .popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-color);
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 15px 15px 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.popup-close {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.popup-body {
    padding: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    background-color: #e8f4fd;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    width: 20px;
}

.contact-item span {
    flex-grow: 1;
    font-weight: 500;
}

.copy-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color, #28a745);
    color: var(--white-color);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-weight: 500;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .copy-notification {
        right: 15px;
        top: 15px;
        font-size: 14px;
    }
}

/* Team Photo Container */
.team-photo-container {
    text-align: center;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-photo-container .team-photo {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: none;
    margin: 0 auto;
    display: block;
}

.team-photo-container .team-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .team-photo-container {
        max-width: 100%;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .team-photo-container .team-photo {
        max-width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .team-photo-container {
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .team-photo-container .team-photo {
        border-radius: 8px;
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 100%;
    overflow: hidden;
}

.contact-info, .contact-form {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    min-width: 0;
    max-width: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.contact-text h3 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.contact-text p {
    margin-bottom: 2px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Grant Banner */
.grant-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.grant-banner.collapsed {
    transform: translateX(calc(100% - 30px));
}

.grant-banner-content {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grant-banner-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.grant-banner-image {
    display: block;
    max-width: 250px;
    height: auto;
    transition: opacity 0.3s ease;
}

.grant-banner.collapsed .grant-banner-image {
    opacity: 0;
    width: 0;
}

.grant-banner-toggle {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 60px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 1001;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

.grant-banner-toggle:hover {
    background: var(--secondary-color);
}

.grant-banner.collapsed .grant-banner-toggle i {
    transform: rotate(180deg);
}

/* Mobile responsiveness for grant banner */
@media (max-width: 768px) {
    .grant-banner {
        bottom: 80px;
        right: 5px;
        transform: scale(0.8);
    }
    
    .grant-banner.collapsed {
        transform: translateX(calc(100% - 25px)) scale(0.8);
    }
    
    .grant-banner-image {
        max-width: 180px;
    }
    
    .grant-banner-toggle {
        width: 25px;
        height: 50px;
        left: -25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }
    
    header .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo-img {
        height: 40px;
        margin-right: 8px;
    }
    
    .mobile-menu-btn {
        font-size: 22px;
        padding: 6px;
    }
    
    .nav-menu {
        top: 56px;
        height: calc(100vh - 56px);
    }
    
    .nav-menu .nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .dropdown-menu .nav-link {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .grant-banner {
        bottom: 70px;
        right: 2px;
        transform: scale(0.7);
    }
    
    .grant-banner.collapsed {
        transform: translateX(calc(100% - 20px)) scale(0.7);
    }
    
    .grant-banner-image {
        max-width: 150px;
    }
    
    .grant-banner-toggle {
        width: 20px;
        height: 40px;
        left: -20px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .grant-banner {
        display: none;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 60px;
    height: auto;
}

.footer-logo-text h2 {
    margin-bottom: 10px;
}

.footer-links h3, 
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-links h3:after, 
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--white-color);
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Footer refresh (unified, cleaner) --- */
footer {
    background: #1f2937; /* sötétebb, elegánsabb háttér */
    padding: 20px 0 10px; /* minimális függőleges tér */
    margin-top: 16px; /* kisebb felső margó */
}

.footer-content {
    align-items: flex-start;
    gap: 20px; /* még kisebb vízszintes tér */
    margin-bottom: 4px; /* minimális alsó tér */
}

.footer-logo {
    align-items: flex-start; /* balra igazított tartalom */
    gap: 12px;
    flex-direction: column; /* logó felül, szöveg alatta */
}

.footer-logo-img {
    width: 140px; /* nagy logó kérés szerint */
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}

.footer-logo-text h2 {
    color: var(--white-color);
    font-size: 26px; /* arányos a nagyobb logóval */
    font-weight: 700;
    letter-spacing: .3px;
}
.footer-logo-text p {
    margin-top: 6px;
}

.footer-logo-text p {
    color: #cbd5e1;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white-color);
    font-size: 16px; /* kompakt alcímek */
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #d1d5db;
    line-height: 1.4;
    font-size: 14px;
}

.footer-links a::before {
    content: '›';
    color: var(--primary-color);
    opacity: .7;
}

.footer-links a:hover {
    color: var(--white-color);
}

.footer-contact-item {
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: var(--primary-color);
}

.footer-contact p {
    color: #e5e7eb;
    line-height: 1.5;
}

.footer-bottom {
    color: #94a3b8;
    margin-top: 0;
    padding: 8px 0; /* minimális alsó rész */
}

@media (max-width: 768px) {
    footer .footer-content {
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-contact-item {
        justify-content: center;
        gap: 12px; /* kisebb sorköz a kapcsolat adatok között */
    }
    .footer-links ul {
        align-items: center;
        gap: 12px; /* kisebb sorköz a linkek között */
    }
}

/* Nagyobb képernyőkön finomhangolt oszlopsúlyok az arányosságért */
@media (min-width: 1024px) {
    .footer-content {
        display: grid;
        grid-template-columns: 2.2fr 1fr 1fr; /* több hely a logónak és szövegnek */
    }
}

/* Gyors linkek két oszlopban (alapértelmezett desktopon) */
.footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 8px;
}

/* Mobilon maradjon egy oszlop, hogy jól törjön */
@media (max-width: 600px) {
    .footer-links ul {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

/* Reszponzív logó méretezés frissítése a nagy alaphoz igazítva */
@media (max-width: 1200px) {
    .footer-logo-img { width: 120px; }
    .footer-logo-text h2 { font-size: 24px; }
}
@media (max-width: 768px) {
    .footer-logo-img { width: 100px; }
    .footer-logo-text h2 { font-size: 22px; }
}
@media (max-width: 480px) {
    .footer-logo-img { width: 90px; }
    .footer-logo-text h2 { font-size: 20px; }
}

/* Reszponzív logó méretezés */
@media (max-width: 1200px) {
    .footer-logo-img { width: 90px; }
    .footer-logo-text h2 { font-size: 19px; }
}
@media (max-width: 768px) {
    .footer-logo-img { width: 80px; }
    .footer-logo-text h2 { font-size: 18px; }
}
@media (max-width: 480px) {
    .footer-logo-img { width: 72px; }
    .footer-logo-text h2 { font-size: 17px; }
}

/* 404 hiba oldal stílusok */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.error-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.error-icon {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.error-title {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 28px;
    color: var(--dark-color);
    margin: 20px 0;
    font-weight: 600;
}

.error-description {
    font-size: 16px;
    color: var(--text-light-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.helpful-links {
    text-align: left;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.helpful-links h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 18px;
}

.helpful-links ul {
    margin: 0;
    padding: 0;
}

.helpful-links li {
    margin-bottom: 8px;
}

.helpful-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.helpful-links a:hover {
    color: var(--primary-color);
}

/* 404 oldal responsive */
@media (max-width: 768px) {
    .error-title {
        font-size: 80px;
    }
    
    .error-subtitle {
        font-size: 24px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-content {
        margin: 20px;
        padding: 30px 20px;
    }
}


/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    header .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo-img {
        height: 45px;
        margin-right: 10px;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--dark-color);
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: var(--transition);
    }
    
    .mobile-menu-btn:hover {
        background-color: var(--light-color);
        color: var(--primary-color);
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: var(--white-color);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
        color: var(--dark-color);
        border-radius: 0;
        background: none;
    }
    
    .nav-menu .nav-link:hover {
        background-color: var(--light-color);
        color: var(--primary-color);
    }
    
    .nav-menu .nav-link.active {
        background-color: var(--secondary-color);
        color: var(--white-color);
    }
    
    .nav-menu .nav-link.active::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        display: none;
        padding: 0;
        background-color: #f8f9fa;
        border-radius: 0;
        margin-left: 0;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dropdown-menu .nav-link {
        padding: 12px 40px;
        font-size: 15px;
        background-color: transparent;
        border-bottom: 1px solid #e9ecef;
        transform: none;
        transition: background-color 0.2s ease;
    }
    
    .dropdown-menu .nav-link:hover {
        background-color: var(--light-color);
        transform: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 300px;
        }
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

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

