/* =====================================================
   NUCLEUS ACADEMIC CARDS - ULTRA PREMIUM FIX
   Symmetrical, High-End & Perfectly Aligned
   ===================================================== */

/* Grid Container - Force 3 Columns on Desktop */
.programs-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch !important;
    /* Force equal height cells */
}

/* Program Card - Flex for vertical alignment */
.program-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    position: relative;
}

.program-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.18) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

/* Header Section */
.program-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 35px 25px !important;
    text-align: center;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.program-icon {
    width: 75px !important;
    height: 75px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px !important;
    /* Modern rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px !important;
    font-size: 32px !important;
    color: #ffffff !important;
    transform: rotate(-10deg);
    transition: all 0.3s;
}

.program-card:hover .program-icon {
    transform: rotate(0deg) scale(1.1);
    background: rgba(255, 255, 255, 0.25) !important;
}

.program-title {
    font-size: 23px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
    letter-spacing: -0.5px;
}

.program-university {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
}

/* Body Section */
.program-body {
    padding: 35px 30px !important;
    flex: 1 !important;
    /* Fill remaining space */
    display: flex;
    flex-direction: column;
}

/* Feature List */
.program-features {
    list-style: none !important;
    margin-bottom: 35px !important;
    padding: 0 !important;
    flex: 1 !important;
    /* Push price/button down */
}

.program-features li {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
    color: #2d3748 !important;
    font-size: 14.5px !important;
    line-height: 1.5;
    font-weight: 500 !important;
}

.program-features li:last-child {
    border-bottom: none !important;
}

.program-features i {
    display: inline-block !important;
    color: #667eea !important;
    font-size: 16px !important;
    margin-top: 3px;
    flex-shrink: 0;
}

.program-features li {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    /* Back to flex for icon alignment */
    align-items: flex-start !important;
    gap: 12px;
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.6;
    font-weight: 500 !important;
}

/* =====================================================
   NUCLEUS ELITE UI/UX - NUCLEAR SPECIFICITY FIX
   Ensuring 100% Consistency Across All Cards
   ===================================================== */

/* 1. Force White Price Box (Neutral Ground) */
body .programs-grid .program-card .program-body .modern-price-box {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 15px auto !important;
    min-height: 75px !important;
    width: 200px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: none !important;
    /* Static for official look */
}

/* 2. Original (Discounted) Price Clarity - Bold & Clear */
body .programs-grid .program-card .program-body .modern-price-box [style*="text-decoration: line-through"] {
    color: #94a3b8 !important;
    /* Slate Blue Gray */
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: line-through !important;
    text-decoration-color: #ef4444 !important;
    /* Red Strike */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 3. Final Price & Currency Visibility */
body .programs-grid .program-card .program-body .modern-price-box .price-value {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #1a202c !important;
    /* Deep Charcol for max contrast on white */
    line-height: 1.1 !important;
}

body .programs-grid .program-card .program-body .modern-price-box .price-currency {
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 800 !important;
}

body .programs-grid .program-card .program-body .modern-price-box .price-icon {
    display: none !important;
}

/* 4. Academy Button (Small, Elegant, Official Pill) */
body .programs-grid .program-card .program-body .program-cta {
    width: auto !important;
    min-width: 150px !important;
    max-width: 200px !important;
    padding: 10px 24px !important;
    /* Significantly smaller & more elegant */
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    /* Primary Academic Indigo */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    /* Perfect Pill */
    font-weight: 700 !important;
    font-size: 14.5px !important;
    cursor: pointer !important;
    margin: 10px auto 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* 5. STOP Color Change (User Request) */
body .programs-grid .program-card .program-body .program-cta:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    /* SAME AS NORMAL */
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3) !important;
}

/* Card Geometry Fixes */
.program-features {
    text-align: right !important;
    padding: 0 15px !important;
}

[dir="ltr"] .program-features {
    text-align: left !important;
}

/* RTL / LTR Alignment Support */
[dir="rtl"] .program-features li {
    text-align: right;
}

[dir="ltr"] .program-features li {
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr !important;
    }

    .program-header {
        clip-path: none;
    }
}