/* --- Global Font Rule --- */
.font-serif,
.gallery-hero-banner,
.gallery-item-card,
.video-item-card {
    font-family: 'Times New Roman', Times, serif !important;
}

.bg-light-section {
    background-color: #f7faff;
}

/* --- Screenshot Banner Style --- */
.gallery-hero-banner {
    min-height: 240px;
    background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1400&q=80'); /* Student writing pen banner */
    background-size: cover;
    background-position: center 30%;
    position: relative;
    border-bottom: 3px solid #e2e8f0;
}

/* Light white fade overlay jaisa screenshot me hai */
.gallery-hero-banner::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(1.5px);
    z-index: 1;
}

.gallery-hero-banner .container {
    position: relative;
    z-index: 2;
}

/* Red Rounded Box Badge for Gallery */
.gallery-red-badge {
    display: inline-block;
    background-color: #e51a2e; /* Red as in image */
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    padding: 10px 36px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(229, 26, 46, 0.3);
    letter-spacing: 0.5px;
}

/* --- Filter Tabs --- */
.gallery-filter-tabs .nav-link {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #dbeafe;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.gallery-filter-tabs .nav-link.active,
.gallery-filter-tabs .nav-link:hover {
    background-color: #0288d1;
    color: #ffffff;
    border-color: #0288d1;
    box-shadow: 0 4px 14px rgba(2, 136, 209, 0.25);
}

/* --- Photo Gallery Card (3 Per Row) --- */
.gallery-item-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: #e2e8f0;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(2, 136, 209, 0.2);
}

.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item-card:hover img {
    transform: scale(1.08);
}

/* Overlay zoom icon */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 34, 68, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-card:hover .gallery-overlay {
    opacity: 1;
}

/* --- Video Card Styling --- */
.video-item-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 14px 16px;
}

.video-info h6 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .gallery-hero-banner {
        min-height: 180px;
    }
    .gallery-red-badge {
        font-size: 20px;
        padding: 8px 24px;
    }
    .gallery-item-card {
        height: 200px;
    }
    .video-wrapper {
        height: 190px;
    }
}