/* ============================================================
   HAPPENINGS AT PRAGATI - MODERN TWO-COLUMN LAYOUT
   File: assets/css/happenings-section.css
   ============================================================ */

.pa-happenings {
    background-color: #FAF8F5;
    /* Warm off-white/cream background */
    padding: 80px 0;
    font-family: var(--body-font, 'Poppins', sans-serif);
}

.pa-happenings__grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Common Card Base for both columns */
.pa-happenings__col-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ============================================================
   LEFT COLUMN: LATEST EVENTS (2/3 width)
   ============================================================ */
.pa-events-col {
    flex: 0 0 calc(66.666% - 12px);
    width: calc(66.666% - 12px);
    position: relative;
}

.pa-events__header {
    text-align: center;
    margin-bottom: 32px;
}

.pa-events__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Events Slider Wrapper */
.pa-events__slider-wrap {
    position: relative;
    padding: 0 40px;
    /* Space for external arrows */
}

/* Single Event Card inside Slider */
.pa-event-card {
    background: #fff;
    border-radius: 8px;
    margin: 15px;
    /* space between slides */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border: none;
}

.pa-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left-color: var(--theme-color);
}

.pa-event__img {
    width: 100%;
    aspect-ratio: 3/2;
    height: auto;
    object-fit: cover;
    display: block;
    background: #f8f8f8;
}

.pa-event__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pa-event__tag {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pa-event__name {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pa-event__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}

.pa-event__meta i {
    color: var(--theme-color);
}

.pa-event__readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.pa-event__readmore:hover {
    color: var(--title-color);
}

/* Custom Slick Arrows — reset global .slick-arrow / .slick-next (margin-top, right) so prev & next align */
.pa-events-col .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0 !important;
    right: auto;
    left: auto;
    line-height: 1;
    width: 40px;
    height: 40px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50%;
    border: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: none;
}

.pa-events-col .slick-arrow:hover {
    background: var(--title-color);
}

.pa-events-col .slick-prev {
    left: -10px;
    right: auto;
}

.pa-events-col .slick-next {
    right: -10px;
    left: auto;
    margin-top: 0 !important;
}


/* ============================================================
   RIGHT COLUMN: IMPORTANT NEWS (1/3 width)
   ============================================================ */
.pa-news-col {
    flex: 0 0 calc(33.333% - 12px);
    width: calc(33.333% - 12px);
}

.pa-news__header {
    text-align: center;
    margin-bottom: 24px;
}

.pa-news__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Month Line Separator */
.pa-news__month-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 24px;
}

.pa-news__month-divider:first-of-type {
    margin-top: 0;
}

.pa-news__month-divider span {
    font-size: 14px;
    font-weight: 800;
    color: #b11f26;
    /* Deep Red */
    text-transform: uppercase;
}

.pa-news__month-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #b11f26;
}

/* Vertical Scroll Container */
.pa-news__list-wrap {
    position: relative;
    height: 480px;
    /* Increased slightly again since events cards are compressed and we want columns to match naturally */
    overflow-y: auto;
    padding-right: 12px;
}

/* Custom Scrollbar for News List */
.pa-news__list-wrap::-webkit-scrollbar {
    width: 6px;
}

.pa-news__list-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pa-news__list-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.pa-news__list-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color);
}

/* Single News Item */
.pa-news-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

.pa-news-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.pa-news-item:last-child {
    margin-bottom: 0px;
}

/* Date Block (Left) */
.pa-news__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background: #b6232e;
    border-radius: 6px;
    color: #fff;
}

.pa-news__date-month {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: -1px;
}

.pa-news__date-day {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* Content Block (Right) */
.pa-news__content {
    flex: 1;
    padding-top: 0;
}

.pa-news__item-desc {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.pa-news-item:hover .pa-news__item-desc {
    color: #b11f26;
}

.pa-news__meta-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.pa-news__meta-location i {
    color: #aaa;
}

.pa-news__readmore {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #b11f26;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pa-news__readmore:hover {
    color: #222;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .pa-happenings__grid {
        flex-direction: column;
    }

    .pa-events-col,
    .pa-news-col {
        flex: 0 0 100%;
        width: 100%;
    }

    .pa-events__slider-wrap {
        padding: 0 20px;
    }
}

@media (max-width: 575px) {
    .pa-happenings__col-card {
        padding: 24px 16px;
    }

    .pa-news__list-wrap {
        height: auto;
        max-height: 400px;
    }
}