/* Programs Page Refinement - Clean, Tidy & Professional */

/* 1. Global Refinements */
.programs-grid-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

/* 2. Page Header Redesign */
.programs-header {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.programs-header h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

/* 3. Refined Program Cards */
.program-refine-card {
    background: var(--white);
    border-radius: 30px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.program-refine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-visual {
    position: relative;
    overflow: hidden;
}

.program-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-refine-card:hover .program-visual img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--primary-color);
    backdrop-filter: blur(5px);
    color: var(--secondary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.program-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.program-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.program-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.meta-item i {
    color: var(--primary-color);
}

.program-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-outline {
    padding: 12px 25px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-text {
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.btn-text:hover {
    gap: 12px;
    color: var(--primary-color);
}

/* 4. Streamlined CTA */
.programs-cta {
    padding: 100px 0;
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--text-dark), #1a1a1a);
    padding: 80px;
    border-radius: 50px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive fixes */
@media (max-width: 992px) {
    .program-refine-card {
        grid-template-columns: 1fr;
    }

    .program-visual {
        height: 300px;
    }

    .program-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .cta-card {
        padding: 50px 30px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .program-meta {
        flex-direction: column;
        gap: 15px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   PROJECT LAUNCH — Featured Program Card (programs.php)
============================================================ */

/* Outer card override — glowing purple border */
.program-launch-featured {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #6B21A8, #C026D3, #6B21A8) border-box;
    position: relative;
    overflow: visible;
    margin-bottom: 70px;
}

.program-launch-featured::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 32px;
    background: linear-gradient(135deg, #6B21A8, #C026D3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.program-launch-featured:hover::before {
    opacity: 0.15;
}

/* "FEATURED" ribbon in top-right corner */
.program-launch-featured::after {
    content: '✦ FEATURED';
    position: absolute;
    top: -14px;
    left: 40px;
    background: linear-gradient(135deg, #6B21A8, #C026D3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 18px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(192, 38, 211, 0.4);
}

/* Image side — subtle gradient overlay at bottom */
.launch-visual {
    position: relative;
    overflow: hidden;
}

.launch-visual img {
    object-position: top center;
}

.launch-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 25px 25px;
    background: linear-gradient(to top, rgba(74, 0, 114, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.launch-overlay-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Badge override — purple */
.launch-badge {
    background: linear-gradient(135deg, #6B21A8, #C026D3) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(192, 38, 211, 0.4);
}

/* Info panel */
.launch-info {
    background: linear-gradient(160deg, #fff 60%, #FDF4FF 100%);
}

/* Tag */
.launch-tag {
    color: #7C3AED !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Title */
.launch-card-title {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #4A0072, #C026D3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

/* Subtitle line */
.launch-card-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 18px;
}

.launch-card-subtitle strong {
    color: #6B21A8;
    font-weight: 700;
}

/* Description */
.launch-card-desc {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 22px;
}

/* Quick-feature badges row */
.launch-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #F5F0FF, #FDF4FF);
    border: 1px solid #E8DEFF;
    color: #6B21A8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lc-badge:hover {
    background: linear-gradient(135deg, #6B21A8, #C026D3);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.lc-badge i {
    font-size: 0.8rem;
}

/* Meta override */
.launch-card-meta {
    border-top: 1px solid #F0E8FF;
    padding-top: 20px;
    margin-bottom: 30px !important;
}

.launch-card-meta .meta-item i {
    color: #9333EA;
}

/* Action buttons */
.launch-card-actions {
    gap: 15px !important;
    flex-wrap: wrap;
}

.btn-launch-card-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #6B21A8, #C026D3);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(107, 33, 168, 0.3);
}

.btn-launch-card-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(107, 33, 168, 0.4);
    color: #fff !important;
}

.btn-launch-card-primary i {
    transition: transform 0.3s ease;
}

.btn-launch-card-primary:hover i {
    transform: translateX(5px);
}

.btn-launch-card-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #FFD700;
    color: #000 !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.btn-launch-card-secondary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
    color: #000 !important;
}

.btn-launch-card-secondary:hover i {
    animation: rocketPop 0.5s ease infinite alternate;
}

@keyframes rocketPop {
    0% {
        transform: translateY(0) rotate(-45deg);
    }

    100% {
        transform: translateY(-4px) rotate(-45deg);
    }
}

/* Responsive — stack on mobile like other cards */
@media (max-width: 992px) {
    .launch-card-overlay {
        display: none;
    }

    .launch-card-title {
        font-size: 2rem;
    }

    .program-launch-featured::after {
        font-size: 0.65rem;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .launch-card-actions {
        flex-direction: column;
    }

    .btn-launch-card-primary,
    .btn-launch-card-secondary {
        justify-content: center;
    }
}