/* ====== 證照課程頁面樣式 — Group 3 石青夜 ====== */

main {
    background: var(--bg-group-3);
}

body {
    color: var(--text-on-light);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(101, 199, 208, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(143, 185, 139, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 60% 20%, rgba(227, 219, 116, 0.08) 0%, transparent 50%),
        conic-gradient(from 45deg at 40% 80%, transparent, rgba(255, 230, 167, 0.06), transparent);
    pointer-events: none;
    z-index: 1;
    animation: atmosphereShift 30s ease-in-out infinite;
}

@keyframes atmosphereShift {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 容器樣式 */
.course-catalog-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 英雄區域樣式 */
.hero-section {
    padding: 5rem 2rem 2rem;
    text-align: center;
    position: relative;
    animation: slideInFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding: 2rem 2rem 0 2rem;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 40px;
    position: relative;
    animation: slideInFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        #e3db74 20%,
        #8fb98b 50%,
        #65c7d0 80%,
        transparent);
    background-size: 300% 100%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(101, 199, 208, 0.4);
    animation: decorativeLineFlow 4s ease-in-out infinite;
}

@keyframes decorativeLineFlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(101, 199, 208, 0.4);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(227, 219, 116, 0.6);
    }
}

.section-header img {
    width: 75px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(227, 219, 116, 0.4));
    animation: logoBreathing 4s ease-in-out infinite;
}

@keyframes logoBreathing {
    0%, 100% {
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(227, 219, 116, 0.4));
    }
    50% {
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(227, 219, 116, 0.7));
    }
}

.section-header img:hover {
    transform: scale(1.08) rotate(8deg);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 40px rgba(227, 219, 116, 0.8));
}

.section-header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg,
        #e3db74 0%,
        #d4c347 25%,
        #8fb98b 50%,
        #7ba085 75%,
        #65c7d0 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.18em;
    animation: advancedGradientShift 5s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(101, 199, 208, 0.2));
    margin: 0;
}

@keyframes advancedGradientShift {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    33% {
        background-position: 50% 0%;
        transform: scale(1.02);
    }
    66% {
        background-position: 100% 100%;
        transform: scale(1.01);
    }
}

.hero-content p {
    color: var(--text-on-light);
    font-size: 1.2rem;
    margin: 4rem 0 0;
    text-shadow: none;
    animation: slideInFromRight 0.8s ease-out 0.6s both;
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg,
        rgba(255, 230, 167, 0.1) 0%,
        rgba(227, 219, 116, 0.08) 30%,
        rgba(143, 185, 139, 0.06) 70%,
        rgba(101, 199, 208, 0.1) 100%);
    border-radius: 25px;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 230, 167, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(255, 230, 167, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    letter-spacing: 0.02em;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

.hero-content p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 230, 167, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    transition: left 3s ease-in-out;
    animation: subtitleShimmer 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes subtitleShimmer {
    0% { left: -100%; opacity: 0; }
    20% { left: -50%; opacity: 0.5; }
    50% { left: 0%; opacity: 0.8; }
    80% { left: 50%; opacity: 0.5; }
    100% { left: 100%; opacity: 0; }
}

.hero-content p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 230, 167, 0.6) 20%,
        rgba(227, 219, 116, 0.8) 40%,
        rgba(143, 185, 139, 0.8) 60%,
        rgba(101, 199, 208, 0.6) 80%,
        transparent 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 230, 167, 0.4);
    animation: subtitleUnderlineFlow 6s ease-in-out infinite;
}

@keyframes subtitleUnderlineFlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 230, 167, 0.4);
        width: 80%;
    }
    25% {
        background-position: 50% 50%;
        box-shadow: 0 0 20px rgba(227, 219, 116, 0.6);
        width: 90%;
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(143, 185, 139, 0.7);
        width: 95%;
    }
    75% {
        background-position: 150% 50%;
        box-shadow: 0 0 20px rgba(101, 199, 208, 0.6);
        width: 90%;
    }
}

/* 主要內容區域 */
.main-content {
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 課程區域樣式 */
.courses-section {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

.courses-section .section-header {
    margin-bottom: 3rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 搜尋和計數區域 */
.search-and-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 2;
    min-width: 450px;
    max-width: 650px;
}

.search-box form {
    display: flex;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(248, 254, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.search-box form:hover {
    border-color: rgba(44, 62, 80, 0.5);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(101, 199, 208, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text-on-light);
}

.search-box input::placeholder {
    color: rgba(44, 62, 80, 0.65);
}

.search-box button {
    padding: 1rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #8fb98b 0%, #65c7d0 100%);
    color: var(--text-on-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
}

.search-box button:hover {
    background: linear-gradient(135deg, #7ba085 0%, #4f9da6 100%);
    transform: scale(1.05);
}

/* 下拉選單樣式 */
.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(248, 254, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    color: var(--text-on-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.filter-select:hover {
    border-color: rgba(44, 62, 80, 0.5);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(101, 199, 208, 0.1);
    transform: translateY(-2px);
}

.filter-select:focus {
    border-color: rgba(101, 199, 208, 0.5);
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(101, 199, 208, 0.15);
}

.filter-select option {
    background: #ffffff;
    color: var(--text-on-light);
    padding: 0.5rem;
}

.course-count {
    color: var(--text-on-light);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: none;
    white-space: nowrap;
}

.course-source-info {
    font-size: 0.85em;
    opacity: 0.75;
}

/* 課程卡片網格 */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* 課程卡片樣式 */
.course-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(240, 248, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(248, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.14) 100%);
    border-color: rgba(44, 62, 80, 0.45);
}

/* 點閱數標籤 - 獨立一行靠右 */
.view-count-badge {
    position: static;
    align-self: flex-end;
    margin-top: -1rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg,
        rgba(101, 199, 208, 0.25) 0%,
        rgba(143, 185, 139, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(44, 62, 80, 0.85);
    z-index: 3;
    transition: all 0.3s ease;
}

.view-count-badge i {
    font-size: 0.75rem;
    color: var(--text-on-light);
}

.view-count-badge .view-count {
    font-weight: 600;
}

.course-card:hover .view-count-badge {
    background: linear-gradient(135deg,
        rgba(101, 199, 208, 0.35) 0%,
        rgba(143, 185, 139, 0.3) 100%);
    border-color: rgba(44, 62, 80, 0.45);
}

/* 課程標題 */
.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    text-shadow: none;
    transition: all 0.4s ease;
}

.course-card:hover .course-title {
    color: var(--text-on-light);
    text-shadow: none;
    transform: translateY(-2px);
}

/* 課程元數據 */
.course-meta {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-on-light);
    font-size: 1rem;
    transition: all 0.4s ease;
}


.course-card:hover .meta-item {
    color: rgba(44, 62, 80, 0.92);
}

/* 課程操作區域 */
.course-actions {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

/* 主要按鈕樣式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #8fb98b 0%, #65c7d0 100%);
    background-size: 200% 200%;
    color: var(--text-on-light);
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(101, 199, 208, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(150%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #7ba085 0%, #4f9da6 100%);
    background-position: 100% 50%;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(101, 199, 208, 0.4),
        0 0 50px rgba(143, 185, 139, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
    border-color: rgba(44, 62, 80, 0.5);
}

.btn-primary i {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.btn-primary:hover i {
    transform: translateX(4px) scale(1.1);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(101, 199, 208, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* 無課程狀態 */
.no-courses {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(248, 254, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.no-courses i {
    font-size: 4rem;
    color: rgba(44, 62, 80, 0.5);
    margin-bottom: 1.5rem;
}

.no-courses h3 {
    font-size: 1.8rem;
    color: var(--text-on-light);
    margin-bottom: 1rem;
    text-shadow: none;
}

.no-courses p {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.85);
    line-height: 1.6;
}

/* 分頁樣式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 6rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(240, 248, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-on-light);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.page-link:hover:not(.disabled):not(.page-link-active) {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(240, 248, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.22) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(101, 199, 208, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    border-color: rgba(44, 62, 80, 0.45);
}

/* 當前頁樣式 - 實心高亮 */
.page-link-active {
    background: linear-gradient(135deg, #8fb98b 0%, #65c7d0 100%);
    color: var(--text-on-light);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 15px rgba(143, 185, 139, 0.4),
        0 0 20px rgba(101, 199, 208, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    cursor: default;
}

/* 箭頭按鈕樣式 */
.page-arrow {
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 42px;
}

.page-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 省略號樣式 */
.page-ellipsis {
    color: rgba(44, 62, 80, 0.65);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem;
    user-select: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-content {
        padding: 0;
    }

    .section-header {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .section-header::after {
        bottom: -8px;
    }

    .section-header img {
        width: 55px;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-and-count {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .course-count {
        text-align: center;
    }

    .search-box {
        min-width: auto;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .pagination {
        gap: 0.3rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .page-arrow {
        font-size: 1.1rem;
    }

    .page-ellipsis {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 4rem 1rem 2rem;
    }

    .section-header::after {
        bottom: -8px;
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .section-header img {
        width: 55px;
    }

    .course-title {
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 0.8rem 1.4rem;
        font-size: 0.95rem;
        border-radius: 15px;
    }

    .course-actions {
        margin-top: 1.2rem;
    }
}

/* 全域動畫效果 */
* {
    scroll-behavior: smooth;
}

/* 加載動畫序列 */
.course-catalog-container > * {
    opacity: 0;
    animation: fadeInSequence 0.6s ease-out forwards;
}

.course-catalog-container > *:nth-child(1) { animation-delay: 0.1s; }
.course-catalog-container > *:nth-child(2) { animation-delay: 0.2s; }
.course-catalog-container > *:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInSequence {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 課程卡片交錯動畫 */
.course-card:nth-child(1) { animation: cardSlideIn 0.8s ease-out 1.2s both; }
.course-card:nth-child(2) { animation: cardSlideIn 0.8s ease-out 1.3s both; }
.course-card:nth-child(3) { animation: cardSlideIn 0.8s ease-out 1.4s both; }
.course-card:nth-child(4) { animation: cardSlideIn 0.8s ease-out 1.5s both; }
.course-card:nth-child(5) { animation: cardSlideIn 0.8s ease-out 1.6s both; }
.course-card:nth-child(6) { animation: cardSlideIn 0.8s ease-out 1.7s both; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
