/* IPCEI Project Elementor Widget Styles */

.ipcei-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(237, 0, 83, 0.15);
    border: 2px solid rgba(237, 0, 83, 0.4);
    border-radius: 3rem;
    font-size: 0.875rem;
    color: #ED0053;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.project-title {
    font-size: 65px !important;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #ED0053 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card {
    backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237, 0, 83, 0.1) 0%, transparent 50%);
    animation: ipcei-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes ipcei-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-content {
    position: relative;
    z-index: 10;
}

.section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 2rem !important;
    font-weight: 700;
    color: #ED0053;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: rgba(237, 0, 83, 0.2);
    border: 1px solid #ED0053;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
}

.section-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.section-content {
    padding-left: 3.5rem;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: baseline;
}

.info-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.info-value {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.description-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.125rem;
}

.description-text p {
    margin: 0;
}

.timeline-display {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-point {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.timeline-point:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(237, 0, 83, 0.3);
    transform: translateY(-5px);
}

.timeline-date {
    font-size: 2rem;
    font-weight: 800;
    color: #ED0053;
    margin-bottom: 0.5rem;
}

.timeline-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-arrow {
    font-size: 2rem;
    color: #ED0053;
    flex-shrink: 0;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.budget-item {
    background: rgba(237, 0, 83, 0.1);
    border: 1px solid rgba(237, 0, 83, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.budget-item:hover {
    background: rgba(237, 0, 83, 0.15);
    border-color: rgba(237, 0, 83, 0.5);
    transform: scale(1.05);
}

.budget-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.budget-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ED0053;
    line-height: 1;
}

.budget-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Project Length Display */
.project-length-display {
    display: flex;
    align-items: center;
}

.project-length-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ED0053;
    letter-spacing: 0.02em;
}

/* EU Funding Section */
.budget-grid-single {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.eu-funding-item {
    background: rgba(0, 51, 153, 0.1);
    border-color: rgba(0, 51, 153, 0.3);
}

.eu-funding-item:hover {
    background: rgba(0, 51, 153, 0.15);
    border-color: rgba(0, 51, 153, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .project-title {
        font-size: 48px !important;
    }
    
    .project-card {
        padding: 3rem;
    }
    
    .section-content {
        padding-left: 2.5rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        padding: 2rem;
    }

    .project-title {
        font-size: 32px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-content {
        padding-left: 0;
    }

    .section-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .section-icon img {
        width: 20px;
        height: 20px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .info-label {
        margin-bottom: 0.25rem;
    }

    .timeline-display {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-arrow {
        transform: rotate(90deg);
    }

    .budget-grid {
        grid-template-columns: 1fr;
    }

    .budget-grid-single {
        max-width: 100%;
    }

    .budget-amount {
        font-size: 2rem;
    }

    .project-length-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .project-header {
        margin-bottom: 2rem;
    }

    .project-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .project-title {
        font-size: 24px !important;
    }

    .project-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .section-title {
        font-size: 1.25rem !important;
        gap: 0.75rem;
    }

    .section-icon {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }

    .section-icon img {
        width: 16px;
        height: 16px;
    }

    .info-value,
    .description-text {
        font-size: 1rem;
    }

    .timeline-date {
        font-size: 1.5rem;
    }

    .budget-item {
        padding: 1.5rem;
    }

    .budget-amount {
        font-size: 1.75rem;
    }

    .project-length-value {
        font-size: 1.1rem;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .project-card::before {
    animation-play-state: paused;
}

