/* Pályázatok oldal stílusok */

.grants-hero {
    background: linear-gradient(rgba(0, 9, 40, 0.8), rgba(0, 86, 166, 0.7)), url('../assets/grants/grants-hero.jpg');
    background-size: cover;
    background-position: center;
}

.grants-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

.grants-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.grant-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.grant-header {
    background-color: var(--primary-color);
    padding: 20px;
    color: var(--white-color);
}

.grant-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.grant-content {
    padding: 25px;
}

.grant-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.grant-details {
    margin-bottom: 20px;
}

.grant-detail {
    display: flex;
    margin-bottom: 10px;
}

.grant-detail-label {
    font-weight: 600;
    width: 150px;
    min-width: 150px;
}

.grant-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

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

.grant-logo img {
    max-height: 60px;
    max-width: 180px;
}

.btn-grant {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-grant:hover {
    background-color: var(--secondary-dark-color);
}

.eu-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 30px;
    flex-wrap: wrap;
}

.eu-logos img {
    max-height: 80px;
    max-width: 200px;
}

/* Pályázat részletei oldal stílusok */
.grant-navigation {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--light-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-back i {
    margin-right: 8px;
}

.btn-back:hover {
    background-color: #e0e0e0;
}

.grant-details-content {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.grant-details-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.grant-details-logo {
    max-width: 200px;
}

.grant-details-logo img {
    width: 100%;
    height: auto;
}

.grant-details-meta {
    flex: 1;
    min-width: 300px;
}

.grant-details-meta h2 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.grant-id {
    color: var(--text-light-color);
    font-size: 0.9em;
    margin: 0;
}

.grant-details-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.grant-info-item {
    flex: 1;
    min-width: 200px;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.info-value {
    color: var(--primary-color);
}

.grant-details-description h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.grant-details-text {
    line-height: 1.7;
}

.grant-details-gallery {
    margin: 30px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 10px;
    background-color: var(--light-color);
    margin: 0;
    font-size: 0.9em;
}

.grant-details-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message i {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 20px;
}

.error-message p {
    font-size: 18px;
    margin: 10px 0;
}

/* További pályázatok tömörebb megjelenítése */

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.grant-card.compact {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grant-card.compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.grant-card.compact .grant-header {
    border-radius: 10px 10px 0 0;
}

.grant-card.compact .grant-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.grant-card.compact .grant-description {
    flex: 1;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.grant-card.compact .grant-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.grant-card.compact .btn-grant {
    width: 100%;
    text-align: center;
}

.text-center {
    text-align: center;
    margin-top: 25px;
}

.all-grants-button {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: var(--text-light-color);
}

/* Betöltés indikátor */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Navbar dropdown menü javítás - erősebb specificitás */
header .dropdown-menu a,
header .dropdown-menu .nav-link,
.dropdown-menu a,
.dropdown-menu .nav-link {
    color: var(--dark-color) !important;
    text-decoration: none !important;
    padding: 12px 18px;
    display: block;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

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

header .dropdown-menu a.active,
header .dropdown-menu .nav-link.active,
.dropdown-menu a.active,
.dropdown-menu .nav-link.active {
    background-color: var(--secondary-color) !important;
    color: var(--white-color) !important;
}

/* Reszponzív módosítások */
@media (max-width: 768px) {
    .grant-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .grant-logo {
        justify-content: center;
    }
    
    .grant-detail {
        flex-direction: column;
    }
    
    .grant-detail-label {
        width: auto;
        margin-bottom: 5px;
    }
    
    .grant-details-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grant-details-logo {
        max-width: 150px;
    }
}
