/* =====================================================
   CALENDAR OF EVENTS — CLEAN + FINAL + GRADIENT OVERLAY
   ===================================================== */

.calendar-events {
    position: relative;
    background-image: url("../images/2024/Home/Calender_Of_Events.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 0;
    z-index: 1;
}

/* Gradient overlay — fades halfway, bottom is clear */
.calendar-events::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 30, 65, 0.85) 0%,    /* Deep blue top */
        rgba(5, 30, 65, 0.65) 30%,   /* Smooth blend */
        rgba(5, 30, 65, 0) 50%,      /* Transparent middle */
        rgba(5, 30, 65, 0) 100%      /* Fully transparent bottom */
    );
    z-index: -1;
}

/* Heading styling */
.calendar-title {
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Calendar wrapper */
.calendar-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 70%;  /* Aspect ratio */
    overflow: hidden;
    border-radius: 20px;
    background: transparent; /* no conflicting color */
    backdrop-filter: none;
}

/* Responsive iframe */
.calendar-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   MOBILE OPTIMIZATION
   ===================================================== */
@media (max-width: 768px) {
    .calendar-events {
        padding: 45px 0;
    }

    .calendar-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .calendar-wrapper {
        padding-bottom: 120%;
        border-radius: 16px;
    }
}
