/* Google Fonts: Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-cream: #FAF9F6;
    --navy-blue: #1e3a8a;
    --slate-gray: #475569;
    --white: #ffffff;
    --card-border: #f1f5f9;
    --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 35px -5px rgba(30, 58, 138, 0.12), 0 10px 20px -10px rgba(30, 58, 138, 0.06);
}

.allcourses-section {
    margin-top: 100px;
    width: 100%;
    background-color: var(--bg-cream);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Sticky Tabs Container */
.tabs-container {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.tab {
    padding: 10px 22px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.tab.active {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.tab-section {
    display: block;
}

.hidden-section {
    display: none !important;
}

/* Courses Container styling */
.courses-container {
    text-align: center;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Beautiful Heading Line */
.courses-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
    padding-bottom: 16px;
    line-height: 1.3;
}

.courses-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ffb700;
    border-radius: 2px;
}

/* Premium Card Grid */
.courses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

/* Bento Style Program Cards */
.program-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    width: 320px;
    padding: 30px 24px;
    box-sizing: border-box;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Enable smooth transform transition for hover effects only after reveal animation is complete */
.program-card.revealed {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e3a8a, #06ABE2);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 58, 138, 0.12);
}

.program-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 10px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* Friendly Bullet List with Custom Checkmarks */
.program-details {
    list-style: none;
    padding: 0;
    margin: 15px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.program-details li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9rem;
    color: var(--slate-gray);
    line-height: 1.5;
    font-weight: 500;
}

.program-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    background-color: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
}

/* Call To Action Buttons with Rich Hover States */
.program-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #ffffff;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.program-button:hover {
    background: linear-gradient(135deg, #ffb700, #ffd700);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 183, 0, 0.35);
}

/* Responsive Design Overrides */
@media (max-width: 768px) {
    .tabs-container {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px;
        scrollbar-width: none;
        position: sticky;
        top: 70px;
        z-index: 1000;
    }

    .tabs-container::-webkit-scrollbar {
        display: none;
    }

    .tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        width: max-content;
    }

    .tab {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 0;
    }

    .courses-container {
        padding: 40px 16px;
    }

    .courses-heading {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 30px auto;
        font-size: 1.15rem;
        line-height: 1.4;
        padding: 0 10px 12px 10px;
        text-align: center;
    }

    .courses-heading::after {
        width: 45px;
        height: 3px;
    }

    .program-card {
        width: 100%;
        max-width: 340px;
        padding: 24px 20px;
    }
}