/* ========================================
   FINANCIAL AID PROGRAMS - EUFL DESIGN
   Modern, Beautiful, Animated
   ======================================== */

/* Ensure Font Awesome icons display */
.fas, .far, .fab, .fa {
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Background Pattern */
.bg-pattern {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Section Spacing */
.spacing {
    padding: 100px 0;
}

.spacing-20 {
    padding: 60px 0;
}

/* Section Heading */
.section-heading h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 25px;
}

.section-heading h6 {
    font-size: 1.2rem;
    color: var(--body-color);
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.9;
}

/* Decorative Dots */
.decorative-dots {
    display: flex !important;
    gap: 10px;
    justify-content: center;
}

.decorative-dots span {
    width: 10px !important;
    height: 10px !important;
    background: var(--accent-color) !important;
    border-radius: 50% !important;
    opacity: 0.7;
    display: inline-block !important;
    transition: all 0.3s ease;
}

.decorative-dots span:hover {
    opacity: 1;
    transform: scale(1.3);
    background: var(--accent-color) !important;
}

/* Animated decorative dots */
.decorative-dots span:nth-child(1) { animation-delay: 0s; }
.decorative-dots span:nth-child(2) { animation-delay: 0.1s; }
.decorative-dots span:nth-child(3) { animation-delay: 0.2s; }
.decorative-dots span:nth-child(4) { animation-delay: 0.3s; }
.decorative-dots span:nth-child(5) { animation-delay: 0.4s; }
.decorative-dots span:nth-child(6) { animation-delay: 0.5s; }
.decorative-dots span:nth-child(7) { animation-delay: 0.6s; }
.decorative-dots span:nth-child(8) { animation-delay: 0.7s; }
.decorative-dots span:nth-child(9) { animation-delay: 0.8s; }
.decorative-dots span:nth-child(10) { animation-delay: 0.9s; }

/* Financial Intro Image */
.financial-intro-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.financial-intro-image img {
    width: 100%;
    transition: transform 0.4s ease;
}

.financial-intro-image:hover img {
    transform: scale(1.05);
}

/* Para1 Style */
.para1 {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--body-color);
}

/* Program Type Boxes */
.program-type-box {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 50px 35px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 27, 115, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.program-type-box:hover .program-overlay {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(8, 27, 115, 0.7) 100%);
}

.program-content {
    position: relative;
    z-index: 2;
}

.program-type-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.program-type-box h6 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.program-type-box .para1 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
}

/* Button Style */
.btn-style {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-style:hover {
    background: #ffffff;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

/* Budget Box */
.budget-box {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 50px 40px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.budget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 27, 115, 0.92) 0%, rgba(59, 130, 246, 0.75) 100%);
    z-index: 1;
}

.budget-content {
    position: relative;
    z-index: 2;
}

.budget-box h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.4;
}

.budget-logo {
    max-width: 160px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    object-fit: contain;
}

.budget-box:hover .budget-logo {
    opacity: 1;
    transform: scale(1.05);
}

.budget-box .btn-style {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.budget-box .btn-style:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

/* Eligibility Box */
.eligibility-box {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 55px 45px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.eligibility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(255,255,255,0.92));
    z-index: 1;
}

.eligibility-content {
    position: relative;
    z-index: 2;
}

.eligibility-box h5 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.eligibility-box .para1 {
    font-size: 1.08rem;
}

/* Affordability Section */
.affordability-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.affordability-cta-box {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 55px 35px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 27, 115, 0.85) 0%, rgba(59, 130, 246, 0.65) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.affordability-cta-box h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.cta-logo-img {
    max-width: 140px !important;
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    object-fit: contain;
}

.affordability-cta-box:hover .cta-logo-img {
    opacity: 1;
    transform: scale(1.08);
}

/* Ranking Boxes - Light Background */
.ranking-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 16px;
    padding: 35px 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(8, 27, 115, 0.08);
    transition: all 0.3s ease;
    border: 2px solid rgba(8, 27, 115, 0.1);
}

.ranking-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff5f2 0%, #ffeee9 100%);
}

.rank-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, #cb3f0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1;
    display: block;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .rank-number {
        color: #000000;
    }
}

.ranking-box p {
    font-size: 1rem;
    color: var(--body-color);
    margin: 0;
    font-weight: 500;
}

/* Insights Section */
.insights-section {
    padding: 80px 0;
}

.insight-stat-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(8, 27, 115, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 27, 115, 0.1);
    height: 100%;
}

.insight-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff5f2 0%, #ffeee9 100%);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #cb3f0a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.6s ease;
    position: relative;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #cb3f0a 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.insight-stat-box:hover .icon-wrapper::before {
    opacity: 1;
}

.icon-wrapper i {
    color: #ffffff !important;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.insight-stat-box:hover .icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(8, 27, 115, 0.5);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, #cb3f0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0 15px;
    line-height: 1;
    display: block;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .stat-value {
        color: #000000;
    }
}

/* Funding Chart */
.funding-chart-image {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(8, 27, 115, 0.1);
    border: 1px solid rgba(8, 27, 115, 0.08);
    transition: all 0.3s ease;
}

.funding-chart-image:hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.funding-chart-image img {
    width: 100%;
    border-radius: 12px;
}

/* Financial CTA */
.financial-cta-section {
    padding: 100px 0;
}

.financial-cta-box {
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 70px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.financial-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92) 0%, rgba(8, 27, 115, 0.88) 100%);
    z-index: 1;
}

.financial-cta-box > .row {
    position: relative;
    z-index: 2;
}

.financial-cta-box h6 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.financial-cta-box .btn-secondary {
    background: #ffffff;
    color: #000000;
    border-radius: 50px;
    padding: 16px 45px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.financial-cta-box .btn-secondary:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.financial-cta-box .cta-logo img {
    max-width: 160px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    object-fit: contain;
}

.financial-cta-box:hover .cta-logo img {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive Images */
@media (max-width: 991px) {
    .budget-logo, .cta-logo-img, .financial-cta-box .cta-logo img {
        max-width: 120px !important;
        max-height: 50px !important;
    }
}

/* Icon Pulse Animation */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.icon-wrapper {
    animation: iconPulse 2s ease-in-out infinite;
}

.insight-stat-box:hover .icon-wrapper {
    animation: none;
}

/* Decorative Dots Wave Animation */
@keyframes dotWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.decorative-dots span {
    animation: dotWave 1.5s ease-in-out infinite;
}

/* Card Entrance Animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-type-box,
.ranking-box,
.insight-stat-box {
    animation: cardEntrance 0.6s ease-out;
}

/* Gradient Text Shine Effect */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.rank-number,
.stat-value {
    background-size: 200% auto;
    animation: textShine 3s linear infinite;
}
