.imgWrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 100%;
    height: 350px;
}
.imgFill {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imgWrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
}
.flexCol {
    padding: 0 60px;
    height: 50%;
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.flexRow {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    margin-bottom: 20px;
}
.flexCol > h2 {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}
.flexCol > a {
    margin-top: auto;
}
.flexRow > p {
    color: white;
    font-size: 16px;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.events-hero {
    background: linear-gradient(135deg, #013eb7 0%, #0955ec 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}
.events-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
}
.events-hero p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.events-listing-section {
    padding: 50px 00px;
}

.section-subtitle.blue-bar {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #0040a8;
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
}

.section-subtitle.blue-bar::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    background-color: #0040a8;
    margin-right: 12px;
}

#right .section-subtitle.blue-bar,
#right .section-subtitle.text-only,
#right .section-title {
    text-align: right;
    justify-content: flex-end;
    margin-left: auto;
}

#right .section-subtitle.blue-bar::before {
    display: none;
}

#right .section-subtitle.blue-bar::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    background-color: #0040a8;
    margin-left: 12px;
}

.imgWrapper {
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.month-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c2c2c;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.event-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: calc(33.333% - 20px); /* (100% / 3) - (2 * gap / 3) */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-card img.event-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-card-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card .event-name {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-card .event-date {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.event-card .event-date i {
    margin-right: 8px;
    color: #0040a8;
    font-size: 16px;
}

.event-card .about-btn {
    margin-top: auto;
    align-self: flex-start;
}

.about-btn.disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.about-btn.disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
}

.past-events-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.past-events-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.past-events-title-group .section-subtitle {
    margin-right: 10px;
}
.past-events-title-group .section-title {
    margin-bottom: 0;
}

.past-events-header .arrow-link i {
    font-size: 28px;
    color: #0040a8;
    transition: color 0.3s ease;
}
.past-events-header .arrow-link:hover i {
    color: #002a6e;
}

.subscribe-cta-section {
    background-color: #0040a8;
    padding: 60px 0;
    text-align: center;
    color: white;
}
.subscribe-cta-section .container {
    max-width: 700px;
}
.subscribe-cta-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}
.subscribe-cta-btn {
    background-color: white;
    color: #0040a8;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: inline-block;
    border: 2px solid white;
}
.subscribe-cta-btn:hover {
    background-color: transparent;
    color: white;
    transform: scale(1.05);
}

.subscribe-cta-btn.disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    border: 2px solid #ccc;
    pointer-events: none;
}

.subscribe-cta-btn.disabled:hover {
    background-color: #ccc;
    color: #999;
    transform: none;
}

.subscribe-cta-section .coming-soon-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-style: italic;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .event-card {
        width: calc(50% - 15px);
    }
    .events-hero h1 {
        font-size: 44px;
    }
    .events-hero p {
        font-size: 17px;
    }
    .section-title {
        font-size: 30px;
    }
    .month-title {
        font-size: 24px;
    }
    .subscribe-cta-section h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .flexCol {
        padding: 0 30px;
    }
    .flexCol > h2 {
        font-size: 28px;
    }

    .event-card {
        width: 100%;
    }
    .event-cards-container {
        gap: 25px;
    }
    .events-hero h1 {
        font-size: 36px;
    }
    .events-hero p {
        font-size: 16px;
        max-width: 90%;
    }
    .section-title {
        font-size: 26px;
    }
    .month-title {
        font-size: 22px;
    }
    .subscribe-cta-section h2 {
        font-size: 22px;
    }

    .past-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .past-events-header .arrow-link {
        align-self: flex-end;
    }
    .subscribe-cta-btn {
        font-size: 16px;
        padding: 12px 30px;
    }

    .subscribe-cta-section .coming-soon-text {
        font-size: 14px;
        margin-top: 15px;
    }
}

.timeline-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 20px);
    background: #4d6be6;
    z-index: 1;
}

.timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #4d6be6;
    border-radius: 50%;
    z-index: 2;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #4d6be6;
    border-radius: 50%;
    z-index: 2;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px #4d6be6;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item.left .timeline-content {
    margin-left: 0;
}

.timeline-item.right .timeline-content {
    margin-left: 55%;
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item.left .timeline-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent white transparent transparent;
}

.timeline-link {
    color: #4d6be6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.timeline-link:hover {
    border-bottom-color: #4d6be6;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.timeline-date {
    font-size: 14px;
    color: #4d6be6;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.timeline-start-dot {
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #4d6be6;
    border-radius: 50%;
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline-start-dot {
        left: 30px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item::before {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
    }

    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -15px;
        border-width: 15px 15px 15px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-content h3 {
        font-size: 20px;
    }

    .timeline-item {
        margin-bottom: 60px;
    }
}
