/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

* {
    font-family: "Poppins", sans-serif;
} */

section .container-event {
    padding: 0.1px;

}

:root {
    --clr-gray-light: #d7dfe2;
    --clr-gray-med: #616b74;
    --clr-gray-dark: #414b56;
    --clr-link: #4d97b2;
    --clr-bisnis: #003366;
    --clr-musik: #ffa500;
    --clr-olahraga: #32cd32;
    --clr-seminar: #ffd700;
    --clr-keluarga: #ffc0cb;
}

.event-container {
    display: flex;
    align-items: baseline;
    margin: 2.5rem 0 0.5rem 15px;
}

.cards-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-right: 0.5rem;
}

.cards-sub-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-right: 0.3rem;
}

.dropdown-event {
    width: 12em;
    position: relative;
    border-radius: 10px;
}

.dropdown-event * {
    box-sizing: border-box;
}

.select-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.selected-event {
    font-size: 16px;
    margin-right: -50px;
}

.caret-event {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ac9458;
    transition: 0.3s;
}

.caret-rotate {
    transform: rotate(180deg);
}

.menu-event {
    list-style: none;
    padding: 0.2em 0.5em;
    background: #fff;
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
    border-radius: 0.5em;
    color: #000;
    position: absolute;
    top: calc(100% + 0.2em);
    left: 0;
    width: 100%;
    opacity: 0;
    display: none;
    transition: 0.2s;
    z-index: 100;
}

.menu-event li {
    padding: 0.7em 0.5em;
    margin: 0.3em 0;
    border-radius: 0.5em;
    cursor: pointer;
}

.menu-event li:hover {
    background: lightgray;
}

.menu-event li i {
    color: inherit;
}

.menu-event li.active {
    color: #ac9458;
}

.menu-event li.active i {
    color: #ac9458;
}

.active {
    background: lightgray;
}

.menu-open {
    display: block;
    opacity: 1;
}

.selected-blue {
    color: #ac9458;
}

.selected-blue i {
    color: #ac9458;
}

.wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.wrapper a {
    text-decoration: none;
    color: inherit;
}

.card {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 0;
    position: relative;
    width: 18rem;
    height: 23rem;
    margin: 1rem;
    transition: 250ms all ease-in-out;
    cursor: pointer;
    flex: 0 0 auto;
}

.card:hover {
    transform: scale(1.02);
}

.banner-img {
    position: absolute;
    object-fit: cover;
    height: 9.5rem;
    width: 100%;
}

/* .category-tag {
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    background: red;
    padding: 0.5rem 1.3rem 0.5rem 1rem;
    text-transform: uppercase;
    position: absolute;
    z-index: 1;
    top: 1rem;
    border-radius: 0 2rem 2rem 0;
} */

/* .musik {
    background: var(--clr-musik);
} */

.card-body {
    margin: 10rem 0 0 0;
}

.blog-title {
    font-size: 1.3rem;
}

.blog-date {
    color: gray;
    font-size: 1rem;
    margin-top: 10px;
}

.blog-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin: -10px 0 20px 0;
}

.card-profile {
    display: flex;
    align-items: center;
    margin-top: 18px;
}

.card-profile a {
    text-decoration: none;
}

.profile-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.card-profile-info {
    margin-left: 1rem;
}

.profile-name {
    font-size: 1rem;
    margin-top: 0.6rem;
    color: var(--clr-gray-dark);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0);
    background: white;
    border-radius: 50%;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    margin: 10px;
}

.carousel-container:hover .arrow {
    display: block;
    opacity: 1;
}

.left-arrow {
    left: 10px;
    color: #000;
}

.right-arrow {
    right: 10px;
    color: #000;
}

.carousel-container:hover .left-arrow {
    transform: translateY(-50%) translateX(-10px); /* Slide in from the left */
}

.carousel-container:hover .right-arrow {
    transform: translateY(-50%) translateX(10px); /* Slide in from the right */
}

.carousel-container .left-arrow {
    transform: translateY(-50%) translateX(10px); /* Slide out to the right */
}

.carousel-container .right-arrow {
    transform: translateY(-50%) translateX(-10px); /* Slide out to the left */
}

.arrow-more-event {
    text-align: center;
    padding: 50px 0 80px 0;
}

.custom-button {
    padding: 12px;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    border: 2px solid #ac9458;
    border-radius: 15px;
    transition: all 0.3s ease;
    background-color: transparent;
}
.custom-button:hover {
    background-color: #ac9458;
    color: #333;
}
.custom-button .arrow-event {
    margin-left: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}
.custom-button:hover .arrow-event {
    margin-left: 15px;
}

// Responsive card
@media (max-width: 768px) {
    .arrow {
        top: 55%;
    }
}

@media (max-width: 685px) {
    .cards-title {
        font-size: 1.6rem;
        margin-right: 0.4rem;
    }

    .cards-sub-title {
        font-size: 1.1rem;
        margin-right: 0.2rem;
    }
}

@media (max-width: 625px) {
    .arrow {
        top: 60%;
    }

    .card {
        width: 15rem;
        height: 20rem;
    }

    .banner-img {
        position: absolute;
        object-fit: cover;
        height: 8rem;
        width: 100%;
    }

    .card-body {
        margin: 8rem 0 0 0;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-date {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .blog-price {
        font-size: 1.1rem;
        font-weight: bold;
        margin: -10px 0 20px 0;
    }
    
    .card-profile {
        display: flex;
        align-items: center;
        margin-top: -5px;
    }
    
    .profile-img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .card-profile-info {
        margin-left: 1rem;
    }
    
    .profile-name {
        font-size: 1rem;
        margin-top: 0.6rem;
        color: var(--clr-gray-dark);
    }
}

@media (max-width: 615px) {
    .cards-title {
        margin-right: -0.3rem;
    }

    .cards-sub-title {
        display: none;
    }

    .selected-event {
        font-size: 18px;
    }
}

@media (max-width: 425px) {
    .cards-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 375px) {
    .cards-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 350px) {
    .cards-title {
        font-size: 1.2rem;
    }

    .selected-event {
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .cards-title {
        font-size: 1.1rem;
    }

    .selected-event {
        font-size: 14px;
    }
}
