/* ========================================= */
/* COURSES PAGE STYLES */
/* ========================================= */



.load-more-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    padding-bottom: 20px;
}

#loadMoreBtn {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-normal), transform var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

#loadMoreBtn:hover {
    background: var(--color-success-accent);
    transform: translateY(-2px);
}

.search-bar-wrapper {
    margin: 30px auto;
    max-width: 600px;
    display: flex;
    background: var(--bg-primary);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.search-bar-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: var(--text-primary);
    outline: none;
    font-size: 16px;
}

.course-card.vertical {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
}

.btn-small {
    background: var(--accent-gradient);
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 15px;
    transition: filter 0.25s ease, transform 0.25s ease;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-small:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Added Missing Styles for Alignment & Glassy Effect */

.page-title-hero {
    text-align: center;
    padding: 80px 0 40px 0;
    position: relative;
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230284c7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), var(--theme-gradient);
    background-size: 60px 60px, cover;
}

.page-title-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: none;
}

.all-courses-section {
    padding: 60px 0 100px 0;
}

.all-courses-section .container {
    flex-direction: column;
    align-items: stretch;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}





.course-card {
    /* Base card style is shared in common.css */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    /* Remove padding for image */
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.1);
}

.course-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card:hover {
    border-color: rgba(0, 180, 255, 0.45);
    box-shadow: 0 16px 50px rgba(0, 180, 255, 0.14);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 180, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

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

.course-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

.course-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Card Icon styles removed */