/* Scrolling Cards Section */
.scrolling-cards-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(120, 109, 60, 0.2);
    border-bottom: 1px solid rgba(120, 109, 60, 0.2);
}

.scrolling-cards-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.scrolling-cards-section .section-header h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.scrolling-cards-section .section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

.scrolling-cards-section .section-header p {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.scrolling-cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.scrolling-cards-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.scrolling-cards-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-290px * 7)); /* Adjust based on card width + margin */
    }
}

.scrolling-card {
    width: 250px;
    height: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(120, 109, 60, 0.2);
}

.scrolling-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.scrolling-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--primary-dark));
}

.scrolling-card-image {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.scrolling-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.scrolling-card-description {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.scrolling-card-button {
    padding: 8px 15px;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.scrolling-card-button:hover {
    background-color: var(--accent);
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scrolling-cards-section {
        padding: 3rem 0;
    }
    
    .scrolling-card {
        width: 220px;
        height: 320px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-260px * 7)); /* Adjust based on card width + margin */
        }
    }
}
