.resources {
    padding: 5rem 0;
    background-color: var(--light);
    position: relative;
}

.resources .leaf-decoration {
    top: 50%;
    right: -100px;
    transform: rotate(90deg);
}

.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.resources-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.resource {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.resource:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.15);
}

.resource:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
}

.resource-image {
    flex: 1;
    height: clamp(150px, calc(60vw - 144px), 300px);
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.resource-info {
    flex: 1;
    padding: clamp(8px, calc(8px + 1vw), 32px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-info .title {
    font-size: clamp(1rem, calc(5vw + 1px), 1.5rem);
    font-weight: 600;
    color: var(--primary);
}

.resource-info p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.resource-info a {
    width: 100%;
}

.resource-info button {
    width: 100%;
    font-size: clamp(0.8rem, calc(2vw + 7px), 1.3rem);
    padding: clamp(6px, calc(3vw - 3px), 12px) 6px;
}

.resource:nth-child(even) {
    flex-direction: row-reverse;
}

.resource:nth-child(even):before {
    left: auto;
    right: 0;
}
