/* Cards Grid */
.cards-section {
    padding: 120px 60px;
    background: var(--gradient-soft);
    color: var(--primary);
}

.cards-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.cards-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 200;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    background: var(--pure-white);
    position: relative;
    overflow: hidden;
    height: 500px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border-radius: 20px;
}

.card:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.card:hover .card-image {
    height: 50%;
}

.card-content {
    padding: 40px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.6s ease;
}

.card:hover .card-content {
    height: 50%;
}

.card-label {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-title {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.card-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}


/* Image with icon overlay for additional cards */
.card-image-with-overlay {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
    transition: all 0.6s ease;
}

.card:hover .card-image-with-overlay {
    height: 50%;
}

.card-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(175, 77, 88, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.card:hover .card-icon-overlay {
    opacity: 1;
}

.card-icon {
    font-size: 60px;
    color: var(--pure-white);
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1);
}

/* Extended cards for additional institutions */
/* .extended-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1600px;
    margin: 40px auto 0;
}

.small-card {
    background: var(--pure-white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.small-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.small-card-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

.small-card h4 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
}

.small-card p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.small-card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.small-card-link:hover {
    gap: 10px;
} */

/* =====================================================
PROGRAMS/CARDS SECTION
===================================================== */
/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    .cards-grid {
    padding: 0 40px;
    }
    }
    /* Mobile Styles (max-width: 768px) */
    @media (max-width: 768px) {
    .cards-section {
    padding: 80px 20px;
    }
    .cards-title {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .extended-cards {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
    
    .card {
        height: 450px;
    }
    
    .card-content {
        padding: 30px;
    }
    
    .card-title {
        font-size: 24px;
    }
    }
    /* Small Mobile (max-width: 480px) */
    @media (max-width: 480px) {
    .cards-grid {
    grid-template-columns: 1fr;
    }
    }