.learning-gallery {
    padding: 90px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.gallery-video-grid {
    max-width: 1000px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.gallery-item,
.gallery-video-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover,
.gallery-video-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.gallery-item img,
.gallery-video-item img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.gallery-info-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.gallery-info-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.gallery-info-card p {
    padding: 14px 16px 4px;
    color: #1f2a44;
    font-weight: 700;
}

.gallery-info-card span {
    display: block;
    padding: 0 16px 16px;
    color: #4a5568;
    font-size: 0.95rem;
}

.gallery-item button {
    border: none;
    background: none;
    padding: 0;
    display: block;
    width: 100%;
    cursor: pointer;
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item .gallery-caption,
.gallery-video-item .gallery-caption {
    padding: 14px 16px 8px;
    color: #1f2a44;
    font-weight: 600;
    font-size: 1rem;
}

.gallery-cta-text {
    padding: 0 16px 14px;
    color: #4a5568;
    font-size: 0.95rem;
}

.gallery-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 18px;
    padding: 8px 16px;
    background: #0d47a1;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.gallery-video-item:hover .gallery-cta-button {
    background: #08347b;
}

.gallery-item .gallery-thumb {
    position: relative;
    overflow: hidden;
}

.gallery-item .gallery-thumb::after,
.gallery-video-item .gallery-thumb::after {
    content: "▶";
    position: absolute;
    inset: auto 16px 16px auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 71, 161, 0.9);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 210px;
    }
}
