﻿.table-scroll {
    max-height: 420px; /* ~10 rows */
    overflow-y: auto;
}

    .table-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #f8f9fa; /* same as .table-light */
    }


.fixed-height-img {
    height: 300px;
    width: 100%;
    object-fit: fill; /* Ensures no distortion */
}

.img-hover-card img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-hover-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.img-hover-card figcaption {
    font-size: 0.95rem;
}

/*-------------------
Achievements
*/
.image-card {
    width: 100%;
}

.image-wrapper {
    height: 200px;
    /*border: 2px solid #0d6efd;*/ /* Bootstrap primary blue */
    /*border-radius: 12px;*/
    /* background-color: #f8f9fa;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        /* Important: NO cropping */
        object-fit: contain;
        width: auto;
        height: auto;
    }

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.yt-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .yt-btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
    }

    .yt-btn i {
        transition: transform 0.25s ease;
    }

    .yt-btn:hover i {
        transform: rotate(-8deg) scale(1.15);
    }


/* Custom styling for the perfect circular button/link */
.circular-btn {
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height (must match width) */
    border-radius: 50%; /* Makes it a perfect circle */
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .circular-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    }

    .circular-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the image fills the circular container */
        border-radius: 50%; /* Makes the image itself circular for edge cases */
    }

