/* Resource Page Styles */

/* Categories Menu */
.categories-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.categories-menu {
    padding: 20px;
}

.categories-menu h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-filter {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-filter:hover {
    color: #622a8e;
    background-color: rgba(98, 42, 142, 0.1);
}

.category-filter.active {
    color: #fff;
    background-color: #622a8e;
}

/* Resource Items */
.resource-item {
    background: linear-gradient(to bottom right, #ffffff, #f8fdf9);
    border-radius: 8px;
    border: 1px solid rgba(98, 42, 142, 0.1);
    box-shadow: 0 2px 8px rgba(98, 42, 142, 0.08);
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-item:hover {
    transform: translateY(-5px);
    border-color: #622a8e;
    box-shadow: 0 4px 12px rgba(98, 42, 142, 0.15);
}

.resource-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #622a8e;
    transition: height 0.3s ease;
}

.resource-item:hover:before {
    height: 100%;
}

.resource-title-box {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(98, 42, 142, 0.1);
}

.resource-title-box h3 {
    color: #2c3e50;
    margin-bottom: 0;
    font-weight: 600;
    padding-left: 15px;
}

.resource-title-box a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.resource-title-box a:hover {
    color: #622a8e;
    padding-left: 5px;
}

.resource-description-box {
    color: #666;
    line-height: 1.6;
    padding-left: 15px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    background: none;
    border: none;
    padding: 15px;
    width: 100%;
    cursor: pointer;
}

.menu-toggle .hamburger {
    width: 20px;
    height: 2px;
    background-color: #333;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger:before,
.menu-toggle .hamburger:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger:before {
    top: -6px;
}

.menu-toggle .hamburger:after {
    bottom: -6px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Resources Grid */
.resources-list .row {
    margin: -12px;
}

.resource-wrapper {
    padding: 12px;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    .menu-toggle {
        display: flex;
    }

    .categories-menu {
        display: none;
        padding: 15px;
    }

    .categories-menu.show {
        display: block;
    }

    .resource-item {
        margin-bottom: 20px;
    }
}