/* Universal Card Gradient & Border Styles for DIYA Delhi */

/* Pattern 1: Small Info Cards (What is DIYA section) */
.card.info-card {
    background: linear-gradient(135deg, rgba(234, 243, 255, 0.3), rgba(255, 255, 255, 0.9));
    border-left: 3px solid transparent;
    border-image: linear-gradient(135deg, #F57C00, #FF9800) 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card.info-card:hover {
    background: linear-gradient(135deg, rgba(234, 243, 255, 0.6), rgba(255, 255, 255, 1));
    border-left-width: 4px;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(245, 124, 0, 0.2), 0 5px 15px rgba(30, 90, 168, 0.1);
}

/* Pattern 2: Vision Cards (4 pillars - Educated, Healthy, etc) */
.card.vision-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(234, 243, 255, 0.4));
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #F57C00, #FF9800, #F57C00) 1;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 124, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.card.vision-card:hover::before {
    left: 100%;
}

.card.vision-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(234, 243, 255, 0.7));
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(245, 124, 0, 0.25), 0 10px 20px rgba(30, 90, 168, 0.15);
}

/* Pattern 3: Quote Cards (Inspirational quotes) */
.card.quote-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 255, 0.5));
    border-left: 5px solid #F57C00;
    border-right: 1px solid rgba(245, 124, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.card.quote-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #F57C00, #FF9800);
    transition: width 0.5s ease;
}

.card.quote-card:hover::after {
    width: 100%;
}

.card.quote-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(234, 243, 255, 0.8));
    border-left-width: 6px;
    transform: translateX(5px);
    box-shadow: -5px 15px 40px rgba(245, 124, 0, 0.2), 0 5px 20px rgba(30, 90, 168, 0.15);
}

/* Pattern 4: Four Pillars Cards (Large content cards) */
.card.pillar-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(234, 243, 255, 0.3));
    border-top: 5px solid #F57C00;
    border-bottom: 1px solid rgba(245, 124, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.card.pillar-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #F57C00, #FF9800, #F57C00);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card.pillar-card:hover::before {
    opacity: 1;
}

.card.pillar-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(234, 243, 255, 0.6));
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 45px rgba(245, 124, 0, 0.25), 0 10px 25px rgba(30, 90, 168, 0.15);
}

/* Pattern 5: Objective Cards (Simple icon cards) */
.card.objective-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(234, 243, 255, 0.4));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, rgba(245, 124, 0, 0.3), rgba(30, 90, 168, 0.2)) 1;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card.objective-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 124, 0, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.card.objective-card:hover::before {
    width: 300px;
    height: 300px;
}

.card.objective-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(234, 243, 255, 0.7));
    border-width: 3px;
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 18px 40px rgba(245, 124, 0, 0.2), 0 8px 20px rgba(30, 90, 168, 0.12);
}

/* CTA Card (Call to Action) */
.cta-card {
    background: linear-gradient(135deg, #1E5AA8, #4A90E2) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 124, 0, 0.2), transparent);
    transition: transform 0.6s ease;
}

.cta-card:hover::before {
    transform: translate(-25%, -25%);
}

.cta-card:hover {
    background: linear-gradient(135deg, #1E5AA8, #4A90E2, #F57C00) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(245, 124, 0, 0.3), 0 15px 30px rgba(30, 90, 168, 0.4);
}

/* Floating Cards (Hero section stats) */
.floating-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 255, 0.6)) !important;
    border: 2px solid rgba(245, 124, 0, 0.2);
    transition: all 0.4s ease;
}

.floating-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(234, 243, 255, 0.9)) !important;
    border-color: rgba(245, 124, 0, 0.5);
    box-shadow: 0 25px 70px rgba(245, 124, 0, 0.3), 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Apply classes automatically based on existing structure */
.card {
    transition: all 0.4s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card.info-card:hover,
    .card.vision-card:hover,
    .card.objective-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .card.pillar-card:hover {
        transform: translateY(-5px);
    }
}
