/* || Carousel Slider */

.carousel-caption {
    right: 15%;
    left: 15%;
    bottom: 10%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 0.25em;
}

.carousel-caption h5,
.carousel-caption p {
    color: var(--purple);
}

.carousel-caption p {
    margin-bottom: 0;
}

.carousel__caption-btn {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 0 0;
    padding: 0.5rem 0.75rem;
    width: 115px;
    border: 1px solid #ccc;
    border-radius: var(--box-radius-2);
    background-color: #fff;
    color: var(--medium-blue2);
    font-size: 0.6rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease-out;
}

.carousel__caption-btn:visited {
    color: var(--medium-blue2);
}

.button__anim-1:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--light-blue);
    color: #fff;
    height: 100%;
    width: 100%;
    z-index: -1;
    transform-origin: bottom left;
    transform: translateX(-20rem);
    transition: transform 0.5s;
}

.button__anim-1:hover {
    color: #fff;
    background-color: transparent;
    text-decoration: none;
}

.button__anim-1:hover:before {
    transform: translateX(0px);
}

/* || Featured Stories */

.featured__container {
    display: flex;
    flex-direction: column;
}

.featured {
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: no-wrap;
    flex-direction: row;
    background-color: #fff;
    width: 100%;
}

.featured a {
    color: var(--purple);
}

.featured ul.fa-ul {
    list-style-type: none;
    margin: 1rem 1rem 1rem 0.5rem;
    font-size: 0.75rem;
}

.featured ul.fa-ul li {
    padding: 0.2rem 0;
    line-height: 1.3;
}

.featured > div {
    position: relative;
}

.featured__image {
    overflow: hidden;
}

.featured__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 10px solid var(--light-blue);
}

.featured__graphic-content {
    position: absolute;
    top: 2rem;
    left: -5px;
    width: 3rem;
    opacity: 0;
}

.featured__graphic-content-slideIn {
    animation-duration: 1.3s;
    animation-delay: 0.7s;
    animation-name: featured__graphic-content-slideIn;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
}

@keyframes featured__graphic-content-slideIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.featured__graphic-img {
    position: absolute;
    top: 1.5rem;
    right: 0px;
    opacity: 1;
}

.featured__graphic-img img {
    width: 2.5rem;
}

.featured__graphic-img-slideIn {
    animation-duration: 0.7s;
    animation-name: featured__graphic-img-slideIn;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
}

@keyframes featured__graphic-img-slideIn {
    from {
        /* right: -100px; */
        transform: translateX(0);
        opacity: 0;
    }

    to {
        /* right: 0px; */
        transform: translateX(-100px);
        opacity: 1;
    }
}

.featured__story {
    position: relative;
    padding: 2rem 2rem;
    overflow: hidden;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 50%;
}

.featured__story h3 {
    letter-spacing: -1px;
    color: var(--purple);
}

/* || Media Queries */

@media all and (max-width: 512px) {
    .featured__graphic-img img {
        width: 1.25rem;
    }
}

@media all and (max-width: 768px) {
    .carousel-caption {
        right: 5%;
        left: 5%;
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: .7rem;
    }

    .d-none {
        display: block !important;
    }

    .featured__story h3 {
        font-size: 1.4rem !important;
    }
        
}

@media all and (max-width: 1024px) {
    .featured {
        flex-direction: column;
        gap: 1rem;
    }
}
