/* ==========================================================================
   Events Custom Post Type Styles
   ========================================================================== */

/* Event Header Adjustments */
.home-head.event {
    min-height: 400px;
}

/* Event Holder - extends case-study-holder */
.event-holder {
    flex-direction: row;
}

/* Main Content Area */
.event-details {
    width: 65%;
}

.event-hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.event-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

/* Event Sections */
.event-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.event-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.event-section-title {
    color: var(--dark-blue);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
}

.event-content {
    line-height: 1.7;
}

.event-content p {
    margin-bottom: 16px;
}

.event-content ul,
.event-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.event-content li {
    margin-bottom: 8px;
}

/* CLE Section Highlight */
.event-cle-section {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 8px;
    border-bottom: none;
}

.event-cle-section .event-section-title {
    color: var(--green);
}

/* Key Features Grid */
.event-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.event-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.event-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.event-feature-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--dark-blue);
}

.event-feature-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Sidebar Styles */
.event-sidebar {
    width: 35%;
}

.event-sidebar-title {
    color: var(--dark-blue);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--white);
}

.event-quick-facts {
    margin-top: 20px;
}

/* Key Sectors */
.event-sectors {
    margin-top: 30px;
}

.event-sector-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-sector-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.event-sector-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 18px;
}

/* CTA Box in Sidebar */
.event-cta-box {
    background-color: var(--dark-blue);
    padding: 24px;
    border-radius: 8px;
    margin-top: 30px;
}

.event-cta-title {
    color: var(--green);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
}

.event-cta-text {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.event-cta-box .main-button {
    width: 100%;
    text-align: center;
}

/* Sidebar Links */
.event-sidebar a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.event-sidebar a:hover {
    color: var(--dark-blue);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 991px) {
    .event-holder {
        flex-direction: column;
    }

    .event-details,
    .event-sidebar {
        width: 100%;
    }

    .event-sidebar {
        border-radius: 0 0 8px 8px;
    }

    .event-details {
        border-radius: 8px 8px 0 0;
    }

    .cs-logo-holder {
        align-items: center;
    }

    .event-features-grid {
        grid-template-columns: 1fr;
    }

    .event-section-title {
        font-size: 24px;
    }
}

@media screen and (max-width: 767px) {
    .home-head.event {
        min-height: 300px;
    }

    .event-details {
        padding: 20px;
    }

    .event-sidebar {
        padding: 20px;
    }

    .event-section {
        margin-bottom: 30px;
        padding-bottom: 24px;
    }

    .event-section-title {
        font-size: 22px;
    }

    .event-cle-section {
        padding: 20px;
    }

    .event-feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .event-cta-box {
        padding: 20px;
    }

    .gallery-holder {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 479px) {
    .gallery-holder {
        grid-template-columns: 1fr;
    }
}
