/* ======= Базові стилі ======= */
html, body {
    height: 100%;
    min-height: 100%;
    width: 100%;
    overflow: auto;
    font-family: 'Roboto', sans-serif;
}

/* ======= Фон ======= */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: 0;
}

/* ======= Курсова сітка ======= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    justify-items: center;
}

/* ======= Курсова картка ======= */
.course-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 450px;
    overflow: hidden;
    position: relative;
    transition: transform 1s ease, box-shadow 0.3s ease;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.course-card h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #2C3333;
    line-height: 1.2;
    font-weight: bold;
    height: 2.15em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #4E4E4E;
    line-height: 1.4;
    height: 5.6em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card a {
    color: inherit;
    text-decoration: none;
}

.course-card a:hover {
    text-decoration: none;
    color: #0E8388;
}

.course-card-link {
    text-decoration: none;
    color: inherit;
}

.course-card-link:hover {
    text-decoration: none;
}

.course-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
