@font-face {
  font-family: 'Unbounded';
  src: url('./fonts/Unbounded-Regular.ttf') format('opentype');
}

.row {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.col {
    flex: 1;
    margin: 10px;
    text-align: center;
}

.col img {
    max-width: 100%;
    height: auto;
}

.col a {
    text-decoration: none;
    color: inherit;
}

.col a:hover {
    opacity: 0.8;
}

.row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.md-nav__item a[target="_blank"]::after {
    content: url('../images/external_item.svg');
}

/* Card container: Entire card is clickable */
.card-container {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--color-bg);
    transition: transform 0.2s ease-in-out !important;
    text-decoration: none !important;
    text-align: center; 
    color: var(--color-text-primary);
}

.card-title {
    font-size: 18px;
    font-weight: normal;
}

.card-container:hover {
    transform: scale(1.02);
}

/* Image inside the card */
.card-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 5px;
    object-fit: contain;
    /* Ensures images fit nicely */
    max-height: 250px;
    /* Keeps image height consistent */
}

/* Title text inside the card */
.card-title {
    margin-top: 5px;
    font-weight: bold;
    color: var(--color-text-primary);
    text-align: center;
}

.title {
    font-size: 25px;
}

/* Description text inside the card */
.card-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 5px;
    line-height: 1.4;
}

.md-search-result__meta {
    display: none;
}

@media only screen and (max-width: 600px) {
    .row {
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (min-width: 600px) {
    .card-container {
        width: 500px;
    }
}

.announcement-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;                    
}

.announcement-link {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
}

.youtube-icon {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-right: 6px;
        padding: 0.2em 0.45em;
        border-radius: 0.25em;
        background: #000000;
        color: #ffffff;
        font-size: 0.75em;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.02em;
        text-transform: uppercase;
}

.youtube-icon::before {
        content: "";
        width: 0;
        height: 0;
        border-left: 6px solid #ffffff;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
}

[data-md-color-scheme="custom-dark"] .youtube-icon {
    background: #ffffff;
    color: #000000;
}

[data-md-color-scheme="custom-dark"] .youtube-icon::before {
    border-left-color: #000000;
}