/* past festivals section start */
.past-festivals-section-main {
    padding: 60px 0;
    background-color: #F4E1D2;
    text-align: center;
    padding-top: 40px;
}

.past-festivals-section h1 {
    font-size: 40px;
    color: #562C39;
    margin-bottom: 15px;
    font-weight: bold;
}

.past-festivals-section p {
    font-size: 18px;
    margin-bottom: 40px;
    font-style: italic;
}

.festival-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.festival-item {
    background: white;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    overflow: hidden;
    width: 32%;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.festival-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid #FF4500;
}

.festival-item h2 {
    font-size: 24px;
    color: #FF4500;
    margin: 15px 0;
    font-weight: bold;
}

.festival-item p {
    font-size: 16px;
    padding: 0 20px;
    margin-bottom: 12px;
}

.festival-date {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #d32f2f;
    background-color: #fbe9e7;
    border-top: 2px solid #e57373;
    padding: 12px 20px;
    font-size: 16px;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
}

.festival-date::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: #FF4500;
    z-index: -1;
    transition: width 0.5s ease;
}

.festival-date:hover::before {
    width: 100%;
}

.festival-date:hover {
    color: #fff;
}

.festival-date i {
    color: inherit;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.festival-date:hover i {
    transform: translateX(5px);
}

.festival-search-bar {
    margin-bottom: 20px;
}

.festival-search-bar input#festivalSearch {
    width: 300px;
    padding: 12px 20px;
    border: 2px solid #562C39;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #562C39;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.festival-search-bar input#festivalSearch::placeholder {
    color: #562C39;
    font-style: italic;
}

.festival-search-bar input#festivalSearch:focus {
    border-color: #562C39;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.6);
}

.festival-gallery {
    max-height: 150vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #FAF5EE;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    border-radius: 5px;
}

.festival-gallery::-webkit-scrollbar {
    width: 6px;
}

.festival-gallery::-webkit-scrollbar-thumb {
    background-color: #FF4500;
    border-radius: 10px;
}

.festival-gallery::-webkit-scrollbar-track {
    background: #f0e0d0;
}

@media(max-width:1025px) {
    .festival-item {
        width: 31%;
    }
}

@media (max-width: 768px) {
    .festival-gallery {
        display: flex;
        flex-wrap: wrap;
        max-height: 177vh;
    }

    .festival-item {
        width: 48%;
    }
}

@media (max-width: 426px) {
    .festival-gallery {
        max-height: 173vh;
    }

    .festival-item {
        width: 100%;
    }
}

/* past festivals section end */