/* =========================================================
   ASTROSHASTRA
   UPCOMING FESTIVALS & VRATS
   ========================================================= */

.upcoming-festivals-section {
    padding: 65px 0;
    background: linear-gradient(180deg, #fffaf3 0%, #fff7ed 100%);
    position: relative;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.upcoming-festivals-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 42px;
}

.upcoming-festivals-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 16px;
    border-radius: 30px;
    background: #f7ead1;
    color: #8a1f2d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.upcoming-festivals-heading h2 {
    margin: 0 0 12px;
    color: #7a1725;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.upcoming-festivals-heading p {
    margin: 0 auto;
    max-width: 680px;
    color: #746b63;
    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   FESTIVAL CARD
   ========================================================= */

.upcoming-festival-card {
    position: relative;
    height: 100%;
    padding: 25px 22px 24px;
    background: #ffffff;
    border: 1px solid #ead9b8;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(91, 45, 20, 0.07);
    overflow: hidden;
    transition: all 0.35s ease;
}

.upcoming-festival-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #8a1f2d,
        #c89b3c,
        #8a1f2d
    );
}

.upcoming-festival-card:hover {
    transform: translateY(-7px);
    border-color: #c89b3c;
    box-shadow: 0 16px 38px rgba(91, 45, 20, 0.14);
}


/* =========================================================
   DATE BOX
   ========================================================= */

.festival-date-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.festival-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 7px 13px;
    border-radius: 8px;
    background: #8a1f2d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
}

.festival-days {
    color: #a07a2c;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.festival-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f1c453;
    color: #5e3b00;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
}


/* =========================================================
   FESTIVAL ICON
   ========================================================= */

.festival-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        #fff4d8,
        #f7e2b5
    );
    border: 1px solid #e6c987;
    font-size: 29px;
    box-shadow: 0 5px 15px rgba(170, 125, 45, 0.12);
}


/* =========================================================
   FESTIVAL CONTENT
   ========================================================= */

.festival-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 75px);
}

.festival-type {
    display: inline-block;
    margin-bottom: 7px;
    color: #a07a2c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.festival-content h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

.festival-content h3 a {
    color: #701522;
    text-decoration: none;
    transition: color .25s ease;
}

.festival-content h3 a:hover {
    color: #b1842f;
}

.festival-content p {
    margin: 0 0 18px;
    color: #706860;
    font-size: .91rem;
    line-height: 1.65;
}

.festival-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #8a1f2d;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.festival-read-more span {
    transition: transform .25s ease;
}

.festival-read-more:hover {
    color: #b1842f;
}

.festival-read-more:hover span {
    transform: translateX(4px);
}


/* =========================================================
   TODAY CARD
   ========================================================= */

.upcoming-festival-card.festival-today {
    border: 2px solid #c89b3c;
    box-shadow: 0 12px 35px rgba(200, 155, 60, 0.18);
}

.upcoming-festival-card.festival-today::before {
    height: 5px;
    background: linear-gradient(
        90deg,
        #c89b3c,
        #f1cf73,
        #c89b3c
    );
}


/* =========================================================
   BOTTOM BUTTON
   ========================================================= */

.upcoming-festivals-footer {
    text-align: center;
    margin-top: 42px;
}

.upcoming-festivals-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 25px;
    border-radius: 30px;
    background: linear-gradient(
        135deg,
        #8a1f2d,
        #a62b3b
    );
    color: #ffffff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(138, 31, 45, 0.18);
    transition: all .3s ease;
}

.upcoming-festivals-btn span {
    transition: transform .25s ease;
}

.upcoming-festivals-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(138, 31, 45, 0.25);
}

.upcoming-festivals-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991px) {

    .upcoming-festivals-section {
        padding: 55px 0;
    }

    .upcoming-festivals-heading {
        margin-bottom: 35px;
    }

    .upcoming-festivals-heading h2 {
        font-size: 2rem;
    }

    .upcoming-festival-card {
        padding: 22px 20px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .upcoming-festivals-section {
        padding: 45px 0;
    }

    .upcoming-festivals-heading {
        padding: 0 12px;
        margin-bottom: 30px;
    }

    .upcoming-festivals-kicker {
        font-size: 10px;
        letter-spacing: 1.2px;
        padding: 5px 13px;
    }

    .upcoming-festivals-heading h2 {
        font-size: 1.7rem;
    }

    .upcoming-festivals-heading p {
        font-size: .9rem;
    }

    .upcoming-festival-card {
        padding: 21px 19px;
        border-radius: 17px;
    }

    .festival-icon {
        width: 54px;
        height: 54px;
        font-size: 27px;
    }

    .festival-content h3 {
        font-size: 1.08rem;
    }

    .festival-content p {
        font-size: .88rem;
    }

    .upcoming-festivals-btn {
        width: 100%;
        padding: 12px 18px;
        font-size: .84rem;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.upcoming-festival-card a:focus-visible,
.upcoming-festivals-btn:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .upcoming-festival-card,
    .festival-read-more,
    .festival-read-more span,
    .upcoming-festivals-btn,
    .upcoming-festivals-btn span {
        transition: none;
    }

    .upcoming-festival-card:hover,
    .upcoming-festivals-btn:hover {
        transform: none;
    }

}