/* =================================================================== */
/*      Financial Literacy Styles (V3 - Colorful)         */
/* =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --text-color-on-dark: #f0f0f0;
    --text-color-on-light: #333;
}

/* Background */
.financial-literacy-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    font-family: 'Poppins', sans-serif;
}

/* Page Container */
.courses-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 1rem 4rem 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Header */
.courses-header {
    text-align: center;
    margin-bottom: 60px;
}

.courses-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #f0f0f0;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #000000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #f0f0f0, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
}

.courses-header p {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tags */
.course-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.tag {
    background-color: rgba(0, 102, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #0066ff;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tag:hover {
    background-color: rgba(92, 61, 46, 0.2);
    transform: translateY(-2px);
}

/* Card Grid */
.course-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Card Layout */
.course-card {
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s forwards;
    position: relative;
    overflow: hidden;
    text-align: center;
    flex: 0 1 350px;
    color: var(--text-color-on-dark);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Card Color Themes */
.course-card:nth-child(1) {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}
.course-card:nth-child(2) {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}
.course-card:nth-child(3) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.course-card:nth-child(4) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.course-card:nth-child(5) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}


/* Icon Layout & Animation */
.card-icon {
    font-size: 2.8rem;
    color: #ffffff;
    margin: 0 auto 25px auto;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
}

.course-card:hover .card-icon {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-content p {
    font-size: 1rem;
    color: var(--text-color-on-dark);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 0;
}

/* Footer */
.courses-footer {
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    background: #c89f6c;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(200, 159, 108, 0.3);
}

.cta-button:hover {
    background-color: #a17a4a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 159, 108, 0.4);
}

.cta-button .fas {
    margin-left: 10px;
    transition: transform 0.3s;
}

.cta-button:hover .fas {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideInUp { to { opacity: 1; transform: translateY(0); } }

/* Staggered animation */
.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .courses-container {
        padding: 6rem 1rem 3rem 1rem;
    }

    .courses-header h1 {
        font-size: 2.5rem;
    }

    .courses-header p {
        font-size: 1rem;
    }

    .course-card {
        flex: 0 1 100%;
    }
}