/* ========================================
   STRONA DOFINANSOWANIA - PREMIUM DESIGN
   Senior Frontend Developer Level
======================================== */

:root {
    --primary-navy: #0b2340;
    --primary-yellow: #f2e300;
    --deep-blue: #050f1a;
    --mid-blue: #0d2d52;
    --light-blue: #162d52;
    --card-bg: #0f1f35;
    --text-light: #ffffff;
    --text-muted: #ffffff;
}

.funding-page {
    overflow-x: hidden;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}



/* Lead paragraph under the section tag */
.section-lead {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.98rem, 2.1vw, 1.12rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: min(900px, 100%);
    line-height: 1.7;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 31, 53, 0.4), rgba(13, 45, 82, 0.3));
    border: 1px solid rgba(242, 227, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.section-lead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    border-radius: 16px 16px 0 0;
}

.section-lead:hover {
    background: linear-gradient(135deg, rgba(15, 31, 53, 0.5), rgba(13, 45, 82, 0.4));
    border-color: rgba(242, 227, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 48rem) {
    .section-tag-dofinansowania {
        padding: 0.45rem 1rem 0.45rem 2.8rem;
        font-size: clamp(0.95rem, 2.8vw, 1.05rem);
        margin-bottom: 0.5rem;
    }
    .section-tag-dofinansowania::before {
        left: 12px;
        width: 10px;
        height: 10px;
    }
    .section-lead {
        text-align: center;
        font-size: clamp(0.95rem, 2.6vw, 1rem);
        padding: 0.875rem 1.25rem;
        margin-bottom: clamp(1.25rem, 4vw, 2rem);
        border-radius: 12px;
    }
    .section-lead::before {
        height: 1px;
    }
}


.funders-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0 auto;
}

.funder-card {
    background: rgba(15, 31, 53, 0.6);
    backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: clamp(16px, 2vw, 24px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(242, 227, 0, 0.1);
    border: 1px solid rgba(242, 227, 0, 0.15);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

@media (max-width: 1024px) {
    .funder-card {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .funder-card {
        padding: clamp(1.25rem, 4vw, 1.5rem);
        gap: clamp(1.25rem, 4vw, 1.5rem);
    }
}

.funder-card-content {
    flex: 1;
    text-align: left;
}

@media (max-width: 1024px) {
    .funder-card-content {
        text-align: left;
    }
}

.funder-card-image {
    flex-shrink: 0;
    width: min(500px, 100%);
    max-width: 100%;
}

@media (max-width: 1024px) {
    .funder-card-image {
        width: 100%;
        max-width: 400px;
        order: -1;
    }
}

.funder-logo {
    width: 100%;
    height: clamp(180px, 30vw, 350px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: clamp(12px, 2vw, 16px);
    overflow: hidden;
    background: rgba(15, 31, 53, 0.4);
}

@media (max-width: 480px) {
    .funder-logo {
        height: clamp(150px, 40vw, 180px);
    }
}

.funder-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.funder-icon {
    width: 100%;
    height: clamp(180px, 30vw, 350px);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff176 100%);
    border-radius: clamp(12px, 2vw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .funder-icon {
        height: clamp(150px, 40vw, 180px);
    }
}

.funder-icon i {
    font-size: clamp(50px, 10vw, 80px);
    color: var(--primary-navy);
}





.funder-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: var(--text-light);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.funder-card p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    position: relative;
    z-index: 1;
}

.funder-content {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    position: relative;
    z-index: 1;
}

.funder-content p {
    margin-bottom: 15px;
}

.funder-content p:last-child {
    margin-bottom: 0;
}

.no-funding {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1.25rem, 3vw, 1.5rem);
}

.no-funding p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
}

.funder-details {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 12px);
    padding-top: clamp(12px, 3vw, 15px);
    margin-top: clamp(12px, 3vw, 15px);
    border-top: 1px solid rgba(242, 227, 0, 0.2);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .funder-details {
        align-items: flex-start;
    }
}

.detail-label {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.5vw, 1px);
}

.detail-value {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--primary-yellow);
    font-weight: 700;
}

/* ========================================
   TRANSPARENCY SECTION
======================================== */

.transparency-section {
    padding: clamp(3rem, 8vw, 6.25rem) clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--deep-blue) 100%);
    position: relative;
}

.transparency-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(242, 227, 0, 0.01) 40px, rgba(242, 227, 0, 0.01) 80px);
    pointer-events: none;
    opacity: 0.3;
}

.transparency-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.transparency-content h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--text-light);
    margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 900;
    letter-spacing: clamp(-1px, -0.1vw, -0.5px);
}

@media (max-width: 480px) {
    .transparency-content h2 {
        letter-spacing: -0.5px;
    }
}

.intro-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: min(800px, 95%);
    margin: 0 auto clamp(2rem, 5vw, 3.75rem);
    line-height: 1.8;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 768px) {
    .usage-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

.usage-item {
    background: rgba(15, 31, 53, 0.6);
    backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 1.875rem);
    border-radius: clamp(16px, 2vw, 20px);
    border: 1px solid rgba(242, 227, 0, 0.15);
    transition: all 0.4s ease;
}

.usage-item:hover {
    transform: translateY(-10px);
    background: rgba(15, 31, 53, 0.8);
    border-color: var(--primary-yellow);
    box-shadow: 0 15px 40px rgba(242, 227, 0, 0.2);
}

.usage-icon {
    width: clamp(55px, 10vw, 70px);
    height: clamp(55px, 10vw, 70px);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff176 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    transition: transform 0.3s ease;
}

.usage-item:hover .usage-icon {
    transform: scale(1.1) rotate(8deg);
}

@media (max-width: 768px) {
    .usage-item:hover .usage-icon {
        transform: scale(1.05) rotate(4deg);
    }
}

.usage-icon i {
    font-size: clamp(22px, 4vw, 28px);
    color: var(--primary-navy);
}

.usage-item h3 {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-weight: 700;
}

.usage-item p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   SUPPORT SECTION
======================================== */

.support-section {
    padding: clamp(3rem, 8vw, 6.25rem) clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--deep-blue) 100%);
}

.support-box {
    max-width: min(800px, 95%);
    margin: 0 auto;
    background: rgba(15, 31, 53, 0.6);
    backdrop-filter: blur(10px);
    padding: clamp(2rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: clamp(16px, 2vw, 24px);
    text-align: center;
    border: 1px solid rgba(242, 227, 0, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.support-box h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-light);
    margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    font-weight: 800;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
}

.support-box h2 i {
    color: var(--primary-yellow);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

@media (max-width: 480px) {
    .support-box h2 {
        flex-direction: column;
    }
}

.support-box p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.7;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(12px, 2.5vw, 16px) clamp(30px, 6vw, 40px);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff176 100%);
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: clamp(6px, 1vw, 8px);
    font-weight: 800;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(242, 227, 0, 0.3);
}

.btn-contact:hover {
    background: var(--primary-navy);
    color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 227, 0, 0.5);
}

@media (max-width: 480px) {
    .btn-contact {
        width: 100%;
        padding: 14px 30px;
    }
    
    .btn-contact:hover {
        transform: translateY(-2px);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Large Tablet - 1024px */
@media (max-width: 1024px) {
    .funding-hero,
    .funding-intro,
    .main-funders {
        padding: clamp(3.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2rem);
    }

    .funders-grid {
        max-width: 700px;
    }
    
    .funder-card-content {
        text-align: center;
    }
    
    .usage-item:hover {
        transform: translateY(-5px);
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    .funding-hero,
    .funding-intro,
    .main-funders {
        padding: clamp(3rem, 7vw, 4rem) clamp(1.25rem, 4vw, 1.75rem);
    }

    .funder-card {
        flex-direction: column;
    }

    .funder-card-content {
        text-align: left;
    }

    .funder-card-image {
        width: 100%;
        max-width: 350px;
        order: -1;
    }
    
    .funder-details {
        align-items: flex-start;
    }
    
    .usage-item:hover {
        transform: translateY(-3px);
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .funding-hero,
    .funding-intro,
    .main-funders {
        padding: clamp(2.5rem, 8vw, 3rem) clamp(1rem, 4vw, 1.25rem);
    }

    .funder-card-image {
        max-width: 280px;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .usage-item:hover {
        transform: translateY(-2px);
    }
}

/* Extra Small Mobile - 360px */
@media (max-width: 22.5rem) {
    .funding-page {
        padding: 0.75rem;
    }
    
    .funding-hero,
    .funding-intro,
    .main-funders {
        padding: 2rem 0.75rem;
    }
    
    .section-tag {
        font-size: 1rem;
        padding-left: 35px;
        letter-spacing: 1px;
    }
    
    .section-tag::before {
        width: 25px;
    }
    
    .funder-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .funder-card h3 {
        font-size: 1.15rem;
    }
    
    .funder-card p,
    .funder-content {
        font-size: 0.9rem;
    }
    
    .funder-card-image {
        max-width: 100%;
    }
    
    .funder-logo,
    .funder-icon {
        height: 140px;
        border-radius: 10px;
    }
    
    .transparency-section,
    .support-section {
        padding: 2.5rem 0.75rem;
    }
    
    .transparency-content h2 {
        font-size: 1.6rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .usage-item {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    .usage-icon {
        width: 50px;
        height: 50px;
    }
    
    .usage-icon i {
        font-size: 20px;
    }
    
    .usage-item h3 {
        font-size: 1.1rem;
    }
    
    .usage-item p {
        font-size: 0.85rem;
    }
    
    .support-box {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .support-box h2 {
        font-size: 1.3rem;
    }
    
    .support-box p {
        font-size: 0.95rem;
    }
    
    .btn-contact {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
}

/* 2K / Ultra-wide (2560px+) */
@media (min-width: 160rem) {
    .funders-grid {
        max-width: 1600px;
    }
    
    .transparency-content {
        max-width: 1600px;
    }
    
    .support-box {
        max-width: 900px;
    }
    
    .usage-grid {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Large Desktop (1440px - 1920px) */
@media (min-width: 90rem) and (max-width: 120rem) {
    .funders-grid {
    }
    
    .transparency-content {
        max-width: 1400px;
    }
}
