/* Custom Flyer Gallery Styles for Updates Page */
.updates-section {
    padding: 50px 0 70px;
    background-color: #f6f8fb;
}

.updates-intro-text {
    max-width: 750px;
    margin: 0 auto 35px auto;
    color: #556070;
    font-size: 16px;
    line-height: 1.7;
}

.updates-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.updates-filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.updates-filter-btn:hover,
.updates-filter-btn.active {
    background: #1b2a4a;
    color: #ffffff;
    border-color: #1b2a4a;
    box-shadow: 0 4px 15px rgba(27, 42, 74, 0.25);
}

.updates-search-box {
    max-width: 480px;
    margin: 0 auto 40px auto;
    position: relative;
}

.updates-search-box input {
    width: 100%;
    padding: 14px 22px 14px 48px;
    border-radius: 30px;
    border: 2px solid #cbd5e1;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    color: #1e293b;
}

.updates-search-box input:focus {
    border-color: #1b2a4a;
    box-shadow: 0 0 0 4px rgba(27, 42, 74, 0.12);
}

.updates-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

.flyer-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.flyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(27, 42, 74, 0.18);
    border-color: #cbd5e1;
}

.flyer-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 95%; /* Reduced height ratio for smaller cards */
    overflow: hidden;
    background: #f1f5f9;
}

.flyer-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.flyer-card:hover .flyer-img-wrapper img {
    transform: scale(1.07);
}

.flyer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 42, 74, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 14px;
}

.flyer-card:hover .flyer-overlay {
    opacity: 1;
}

.flyer-btn-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #1b2a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
}

.flyer-btn-action:hover {
    background: #e63946;
    color: #ffffff;
    transform: scale(1.12);
}

.flyer-content {
    padding: 14px 16px;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
}

.flyer-badge {
    display: none !important;
}

.flyer-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.flyer-footer-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.flyer-card:hover .flyer-footer-link {
    color: #1d4ed8;
    text-decoration: underline;
}

.no-flyers-found {
    display: none;
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.no-flyers-found i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* PDF Special Card Styling */
.pdf-card {
    background: linear-gradient(135deg, #1b2a4a 0%, #2d4373 100%);
    color: #ffffff;
}

.pdf-card .flyer-title {
    color: #ffffff;
}

.pdf-card .flyer-content {
    background: transparent;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.pdf-card .flyer-footer-link {
    color: #93c5fd;
}

.pdf-card .flyer-footer-link:hover {
    color: #ffffff;
}

@media (max-width: 575px) {
    .updates-section {
        padding: 40px 0 60px;
    }

    .updates-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .flyer-title {
        font-size: 15px;
    }
}
