﻿.dante-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 14400px;
    margin: 0 auto;
    width: 100%;
}

.dante-course-card {
    padding: 1rem;
    border: 2px solid #241e4d;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.dante-course-card .icon {
    padding: 1rem;
    background-color: #e9cd53;
    border-radius: 1rem;
    /* styles.css sets a site-wide .icon{display:inline-flex}, which the card being a flex
       column blockifies - without this the yellow tile stretches the full card width. */
    align-self: flex-start;
}

.dante-course-card .fa-solid {
    font-size: 50px;
}

.dante-course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.arlo-catalogue {
    margin: 0 auto !important;
    max-width: 1440px;
    padding: 0 20px;
}

.category-name h2 {
    font: normal normal 40px / 44px "BM", sans-serif;
    color: #000;
    padding-bottom: 15px;
}

.dante-title a {
    color: #241E4D;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font: normal normal 30px / 38px "BM", sans-serif;
    text-decoration: none;
    margin-top: 20px;
    /* A line-clamp box is exactly lines x line-height, so glyph descenders on the
       final line (e.g. "...Technologies", "...Regulations") were sliced off by
       overflow: hidden. This gives them room. */
    padding-bottom: 6px;
}

    .dante-title a:hover {
        text-decoration: underline;
    }

.dante-title {
    margin-bottom: 35px;
    min-height: 120px;
}

.course-meta {
    color: #000;
    margin-bottom: 15px;
    /* Titles vary from one line to five, so push the meta/price/button group to the
       bottom of the card. Grid rows are equal height, so all three line up across a row
       the way the old fixed .dante-title height used to force. */
    margin-top: auto;
    font: normal normal normal 18px / 26px "BL", sans-serif;
}

    .course-meta i {
        color: #0d1456;
        margin-right: 5px;
        font-size: 24px;
        width: 30px;
    }

.course-price {
    margin-bottom: 15px;
    font-weight: bold !important;
    color: #0d1456;
    font: normal normal normal 18px / 26px "BL", sans-serif;
}

    .course-price i {
        color: #0d1456;
        margin-right: 5px;
        font-size: 24px;
        width: 30px;
    }

.dante-button {
    font: normal normal 18px / 24px "BM", sans-serif;
    background-color: #241E4D;
    color: #fff;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    gap: 12px;
    max-width: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .dante-button span {
        flex: 1;
    }

    .dante-button i {
        flex-shrink: 0;
    }

    .dante-button:hover {
        background-color: #5F509B;
        color: #fff;
    }

    .dante-button:active {
        transform: translateY(0);
    }

@media (max-width: 767px) {

    .dante-course-grid {
        grid-template-columns: 1fr;
    }

    .category-name h2 {
        font: normal normal 30px / 36px "BM", sans-serif;
    }

    .dante-title a {
        font: normal normal 24px / 32px "BM", sans-serif;
    }

    .dante-title {
        margin-bottom: 20px;
        min-height: 0;
    }

    .dante-button {
        max-width: 100%;
    }
}
