/* Statistics Counter Styles */
.stats-counter {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 5px solid #007bff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 2rem 1.5rem !important;
}

.stats-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.1) 100%);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
}

.stats-counter:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15) !important;
}

.stats-counter:hover::before {
    opacity: 1;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.counter-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px;
}

.counter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Item Styles */
.corporate-categories-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff) !important;
    padding: 4rem 0 !important;
    position: relative;
    overflow: hidden;
}

.corporate-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007bff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.category-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 4px solid #007bff;
    border-radius: 8px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: -1;
    transition: all 0.4s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15) !important;
    border-color: #0056b3;
}

.category-item:hover::before {
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.category-count {
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #007bff !important;
    color: white;
    padding: 0.35em 0.65em;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-item:hover .category-count {
    background-color: #0056b3 !important;
    transform: scale(1.05);
}

/* Exhibition Card Styles */
.corporate-exhibitions-section {
    background-color: #ffffff;
    position: relative;
    padding: 4rem 0 !important;
}

.exhibition-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.exhibition-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.exhibition-card:hover .card-img-top {
    transform: scale(1.05);
}

.exhibition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.exhibition-card .card-body {
    padding: 1.5rem;
}

.exhibition-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.exhibition-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.exhibition-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.exhibition-card .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.exhibition-card .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateX(5px);
}

.exhibition-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px !important;
}

.exhibition-placeholder i {
    color: #adb5bd;
    transition: all 0.3s ease;
}

.exhibition-card:hover .exhibition-placeholder i {
    transform: scale(1.1);
    color: #007bff;
}

/* Animation for section titles */
.corporate-section-title h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.corporate-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .stats-counter {
        margin-bottom: 1.5rem;
    }
    
    .corporate-categories-section,
    .corporate-exhibitions-section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 767px) {
    .counter-value {
        font-size: 2.5rem;
    }
    
    .counter-title {
        font-size: 1.1rem;
    }
    
    /* Animation classes */
    .animated {
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Add a subtle pulse animation to the counter values */
    .counter-value {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
        100% {
            transform: scale(1);
        }
    }
    
    /* Add a bounce animation for category icons */
    .fa-bounce {
        animation: bounce 0.6s ease infinite;
    }
    
    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
    
    .category-item {
        margin-bottom: 1rem;
    }
    
    .exhibition-card {
        margin-bottom: 1.5rem;
    }
    
    .corporate-section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575px) {
    .counter-value {
        font-size: 2rem;
    }
    
    .counter-title {
        font-size: 1rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .exhibition-card .card-title {
        font-size: 1.1rem;
    }
}