/* Courses Section - Cards & Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: rgba(1, 6, 28, 0.6);
    border: 2px solid rgba(0, 245, 255, 0.35); /* Base subtle cyan border */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
    box-shadow: 0 0 10px rgba(0, 246, 254, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff, #ff4a3f); 
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,245,255,0.25);
}

.course-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid rgba(0, 246, 254, 0.3);
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image-wrapper img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    color: #00f6fe;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.course-content .course-desc {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
    font-family: "Source Sans Pro", Arial, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1.5px solid #00f6fe;
    color: #00f6fe;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background: #00f6fe;
    color: #01061c;
    box-shadow: 0 0 15px rgba(0, 246, 254, 0.4);
}