/**
 * Event Section Styles
 * Replicated from vithu.org for vithu.itaskedlabs.com
 */

/* Utility Classes */
.pt-100 {
    padding-top: 100px;
}

.pb-70 {
    padding-bottom: 70px;
}

/* Event Area - Main Section with Blue Background */
.event-area {
    background-image: url("../images/event-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
}

.event-area:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #0e75c0; /* Blue overlay color */
    opacity: 0.9;
}

.event-area .section-title {
    position: relative;
    z-index: 1;
}

.event-area .section-title .sub-title {
    color: #fff;
}

.event-area .section-title h2 {
    color: #fff;
    margin-bottom: 0;
}

/* Event Item - Featured Event with Image (Left Column) */
.event-item {
    margin-bottom: 30px;
    position: relative;
    -webkit-transition: 0.5s all ease;
    transition: 0.5s all ease;
    border-radius: 30px 30px 0 30px;
    overflow: hidden;
}

.event-item:hover {
    -webkit-transform: translate(0, -10px);
    transform: translate(0, -10px);
}

.event-item:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(rgba(48, 44, 81, 0.937755)),
        color-stop(74%, rgba(48, 44, 81, 0))
    );
    background: linear-gradient(
        180deg,
        rgba(48, 44, 81, 0.937755) 0%,
        rgba(48, 44, 81, 0) 74%
    );
    border-radius: 30px 30px 0 30px;
    -webkit-transition: 0.5s all ease;
    transition: 0.5s all ease;
}

.event-item img {
    display: inline-block;
    border-radius: 30px 30px 0 30px;
    width: 100%;
    -webkit-transition: 0.5s all ease;
    transition: 0.5s all ease;
}

/* Event Item Inner Content (Overlay on Image) */
.event-item .inner {
    position: absolute;
    top: 30px;
    left: 30px;
    padding-left: 90px;
    z-index: 1;
}

.event-item .inner h4 {
    max-width: 65px;
    padding-top: 5px;
    padding-bottom: 5px;
    position: absolute;
    top: 0;
    left: 0;
    color: #0e75c0;
    margin-bottom: 0;
    font-size: 30px;
    background-color: #fff;
    border-radius: 5px;
    text-align: center;
    height: 75px;
}

.event-item .inner h4 span {
    color: #275b8f;
    font-weight: 400;
    font-size: 24px;
    position: relative;
    top: -7px;
}

.event-item .inner h3 {
    margin-bottom: 10px;
    font-size: 22px;
    margin-top: 8px;
}

.event-item .inner h3 a {
    color: #fff;
    text-decoration: none;
}

.event-item .inner h3 a:hover {
    color: #fff;
    text-decoration: none;
}

.event-item .inner ul {
    padding: 0;
    margin: 0;
    display: block;
    margin-top: 8px;
}

.event-item .inner ul li {
    list-style-type: none;
    display: block;
    margin-right: 0;
    color: #fff;
    font-size: 15px;
}

.event-item .inner ul li:last-child {
    margin-right: 0;
}

.event-item .inner ul li i {
    display: inline-block;
    color: #fff;
    margin-right: 3px;
    font-size: 16px;
}

/* Event Item Right - List of Events (Right Column) */
.event-item-right {
    padding-left: 90px;
    position: relative;
    border-bottom: 1px dashed #ffffff;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.event-item-right:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 30px;
}

.event-item-right h4 {
    max-width: 65px;
    position: absolute;
    top: 0;
    left: 0;
    color: #0e75c0;
    margin-bottom: 0;
    font-size: 30px;
    background-color: #fff;
    border-radius: 5px;
    text-align: center;
    height: 60px;
    padding-top: 5px;
}

.event-item-right h4 span {
    color: #275b8f;
    font-weight: 400;
    font-size: 20px;
    position: relative;
    top: -12px;
}

.event-item-right h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.event-item-right h3 a {
    color: #fff;
    text-decoration: none;
}

.event-item-right h3 a:hover {
    color: #fff;
    text-decoration: none;
}

.event-item-right ul {
    padding: 0;
    margin: 0;
    display: block;
    margin-top: 8px;
}

.event-item-right ul li {
    list-style-type: none;
    display: block;
    margin-right: 0;
    color: #fff;
    font-size: 15px;
}

.event-item-right ul li:last-child {
    margin-right: 0;
}

.event-item-right ul li i {
    display: inline-block;
    color: #fff;
    margin-right: 3px;
    font-size: 16px;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .event-area {
        background-attachment: scroll; /* Fixed background can cause performance issues on mobile */
    }

    .event-item .inner {
        padding-left: 0;
        position: relative;
        top: auto;
        left: auto;
        margin-top: 20px;
        background: rgba(48, 44, 81, 0.85);
        padding: 20px;
        border-radius: 10px;
    }

    .event-item .inner h4 {
        position: relative;
        margin-bottom: 15px;
        display: inline-block;
    }

    .event-item-right {
        padding-left: 0;
        padding-top: 75px;
    }

    .event-item-right h4 {
        position: relative;
        margin-bottom: 15px;
        display: inline-block;
    }

    .pt-100 {
        padding-top: 60px;
    }

    .pb-70 {
        padding-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .event-item .inner h3 {
        font-size: 18px;
    }

    .event-item-right h3 {
        font-size: 18px;
    }

    .event-item .inner h4,
    .event-item-right h4 {
        font-size: 24px;
        height: auto;
        padding: 5px 10px;
    }

    .event-item .inner h4 span,
    .event-item-right h4 span {
        font-size: 16px;
        top: -8px;
    }
}
