.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.08);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-overlay i {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay i {
    transform: scale(1);
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    color: #333;
    font-size: 1rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.dataset-preview {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
}

.dataset-count {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.latest-datasets .dataset-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.latest-datasets .dataset-item:hover {
    background: rgba(13, 110, 253, 0.05);
}

.latest-datasets .dataset-item:last-child {
    border-bottom: none;
}

.latest-datasets .dataset-item i {
    color: #0ea2bd;
}

.dataset-item span {
    font-size: 0.85rem;
}

.no-dataset {
    color: #999;
    text-align: center;
    font-style: italic;
}

/* Custom column class for 5 columns */
.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Dataset card styles */
#dataset .card {
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#dataset .card:hover {
    transform: translateY(-5px);
}

#dataset .card-body {
    background: #fff;
}

#dataset .card-title {
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

#dataset .card-text {
    color: #666;
    line-height: 1.4;
}

#dataset a {
    text-decoration: none;
}

/* Dataset Carousel Styles */
#datasetCarousel {
    position: relative;
    padding: 0 25px;
}

#datasetCarousel .carousel-control-prev,
#datasetCarousel .carousel-control-next {
    width: 24px;
    height: 24px;
    background: rgba(33, 37, 41, 0.6);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#datasetCarousel .carousel-control-prev:hover,
#datasetCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(33, 37, 41, 0.8);
}

#datasetCarousel .carousel-control-prev {
    left: -5px;
}

#datasetCarousel .carousel-control-next {
    right: -5px;
}

#datasetCarousel .carousel-control-prev-icon,
#datasetCarousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

#datasetCarousel .carousel-item {
    transition: transform .6s ease-in-out;
}

/* Navigation Menu Styles */
.navmenu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.navmenu ul li {
    position: relative;
    padding: 0 1rem;
}

.navmenu a {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #2c3135;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    padding: 8px 0;
}

.navmenu a i {
    font-size: 16px;
    margin-right: 8px;
    line-height: 0;
    color: #0ea2bd;
}

.navmenu .dropdown ul {
    margin: 0;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.navmenu .dropdown ul li {
    padding: 0 15px;
}

.navmenu .dropdown ul a {
    padding: 8px 0;
    font-size: 14px;
    color: #2c3135;
    white-space: nowrap;
}

.navmenu .dropdown ul a i {
    color: #0ea2bd;
}

.navmenu .dropdown .toggle-dropdown {
    margin-left: 6px;
}

/* Dataset Card Styles */
.dataset-card {
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.dataset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.dataset-card .position-relative {
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.dataset-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dataset-card:hover .card-img-top {
    transform: scale(1.05);
}

.dataset-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.dataset-overlay i {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dataset-card:hover .dataset-overlay i {
    transform: translateY(0);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive styles */
@media (max-width: 1199px) {
    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgb(14, 60, 105);
        transition: 0.3s;
        padding: 20px;
    }

    .navmenu ul {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .navmenu ul li {
        border-bottom: 1px solid #e9ecef;
    }

    .navmenu ul li:last-child {
        border-bottom: none;
    }

    .navmenu a,
    .navmenu a:focus {
        color: #0e3c69;
        padding: 12px 20px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: #0056b3;
        background: #f8f9fa;
    }

    .navmenu .dropdown ul {
        position: static;
        display: none;
        padding: 10px 0;
        margin: 10px 20px;
        box-shadow: none;
        background: #f8f9fa;
    }

    .navmenu .dropdown ul li {
        border-bottom: 1px solid #e9ecef;
    }

    .navmenu .dropdown ul li:last-child {
        border-bottom: none;
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
    }
}

@media (max-width: 991.98px) {
    .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    #dataset .carousel-item .row {
        margin: 0 -8px;
    }
    
    #dataset .col-lg-2 {
        padding: 0 8px;
    }
}

@media (max-width: 767.98px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .category-image {
        height: 160px;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
