/* Enhanced Awards Section Styles - Preserving all external CSS */
.awards-showcase {
    padding: 20px 0 50px;
}

/* Animated Header Container */
.animated-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e5a2e, #4caf50, #ff9800);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    animation: gradientShift 4s ease infinite, floatText 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatText {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #ff9800, #4caf50);
    border-radius: 2px;
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {

    0%,
    100% {
        width: 80px;
        opacity: 1;
    }

    50% {
        width: 120px;
        opacity: 0.7;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    position: relative;
    display: inline-block;
}

.subtitle:before,
.subtitle:after {
    content: '✨';
    opacity: 0;
    animation: starTwinkle 1.5s ease-in-out infinite 0.5s;
    display: inline-block;
    margin: 0 8px;
}

.subtitle:before {
    animation-delay: 0.3s;
}

.subtitle:after {
    animation-delay: 0.7s;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative elements animation */
.animated-header {
    position: relative;
}

.floating-icon {
    position: absolute;
    opacity: 0.6;
    animation: floatIcon 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.icon-1 {
    top: -10px;
    left: 10%;
    font-size: 2rem;
    animation-delay: 0s;
}

.icon-2 {
    bottom: -20px;
    right: 10%;
    font-size: 1.8rem;
    animation-delay: 1s;
}

.icon-3 {
    top: 20%;
    right: 15%;
    font-size: 1.5rem;
    animation-delay: 0.5s;
}

.icon-4 {
    bottom: 10%;
    left: 15%;
    font-size: 1.7rem;
    animation-delay: 1.5s;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .icon-1,
    .icon-2,
    .icon-3,
    .icon-4 {
        display: none;
    }
}

/* Modern Filter Bar - Hidden on mobile */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0 20px;
}

/* Hide filter bar on mobile devices */
@media (max-width: 768px) {
    .filter-bar {
        display: none;
    }
}

.filter-btn {
    padding: 12px 28px;
    border: none;
    background: white;
    color: #2c5e2a;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover:before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.filter-btn.active {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Modern Awards Grid - Fully Responsive */
.awards-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .awards-grid-modern {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 10px 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .awards-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

/* Award Card Stunning Design */
.award-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.award-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .card-image-wrapper {
        height: 200px;
    }
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.award-card-modern:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.category-badge.kvk {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.category-badge.scientist {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.category-badge.farmers {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.award-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
    flex: 1;
}

.award-description strong {
    background: linear-gradient(
        90deg,
        #FF9933 0%,
        #138808 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Center the award title badge */
.award-title-badge {
    display: block;
    background: linear-gradient(135deg, #f0f7e8, #e8f0e0);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .award-title-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}

/* Footer at bottom */
.award-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
}

.award-footer i {
    color: #ff9800;
    margin-right: 5px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .award-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .award-footer {
        font-size: 0.7rem;
        padding-top: 12px;
    }

    .card-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .award-description {
        font-size: 0.8rem;
    }

    .category-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
        top: 10px;
        right: 10px;
    }
}

/* Mobile Filter Dropdown - Only visible on mobile */
.mobile-filter-container {
    display: none;
    margin: 20px 0 30px;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .mobile-filter-container {
        display: block;
    }
}

.mobile-filter-select {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    color: #2c5e2a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%234caf50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.mobile-filter-select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Animation for filter transition */
.award-card-modern.hide-award {
    display: none;
}

/* Smooth filter transition */
.filter-transition {
    transition: all 0.3s ease-out;
}