/* Page styles for certificate-courses.html — course link tiles */

/* Grid of course tiles: auto-fills on wide screens, collapses to a single
   column on phones (no fixed widths) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 18px;
}

/* One tile per course link — the whole card is the tap target.
   Same visual family as .doc-card in css/style.css. */
.course-tile {
    margin: 0;
    font-size: 1rem;
}
.course-tile a {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .course-tile a:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(214, 67, 28, .35);
    }
}
.course-tile__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 67, 28, .09);
    border: 1px solid rgba(214, 67, 28, .22);
    color: var(--iith-vermillion);
    font-size: 1.3rem;
}
.course-tile__name {
    flex: 1;
    min-width: 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--iith-indigo);
    font-size: .98rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.course-tile__go {
    flex-shrink: 0;
    color: var(--iith-vermillion);
    font-size: .95rem;
    opacity: .75;
    transition: opacity .3s ease, transform .3s ease;
}
.course-tile a:hover .course-tile__name { color: var(--iith-vermillion); }
.course-tile a:hover .course-tile__go { opacity: 1; transform: translate(2px, -2px); }

/* Featured tile — the new flagship FAST-E program (internal page link) */
.course-tile--featured a {
    position: relative;
    overflow: hidden;
    border-color: rgba(214, 67, 28, .4);
    background:
        radial-gradient(120% 160% at 100% 0, rgba(196, 136, 28, .10), transparent 55%),
        var(--surface);
}
.course-tile--featured a::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--sunrise-bar);
}
.course-tile--featured .course-tile__icon {
    background: var(--sunrise-bar);
    border-color: transparent;
    color: #fff;
}
.course-tile__flag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--sunrise-bar);
    color: #fff;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    vertical-align: 2px;
}

/* Closing note under the grid */
.course-note {
    margin: 26px 0 0;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}
.course-note .bi { color: var(--iith-vermillion); }

@media (max-width: 575.98px) {
    .course-tile a { padding: 15px 16px; gap: 13px; }
    .course-tile__icon { width: 40px; height: 40px; font-size: 1.15rem; }
}
