/*
 * IEC pages/news-landing-page.css
 * Is file mein milega (page-templates/news-landing-page.php):
 * - Featured news band
 * - Sidebar filters
 * - Posts list
 * - Loader
 * - Pagination
 *
 * Featured card aur swiper arrows shared hain — unki CSS sections.css mein hai.
 * Mobile rules responsive.css mein.
 */

@keyframes iec-news-spin {
    to { transform: rotate(360deg); }
    70% { opacity: 0; }
    100% {
        width: 3.36695063894rem;
        height: 3.36695063894rem;
        opacity: 0;
    }
    50% { transform: translate(0.39150588825rem, -0.1566023553rem) rotate(8deg); }
    12% { opacity: 0.9; }
    30% { opacity: 0; }
}

.iec_news_main_posts_warpper.is-loading .iec_news_posts_list { pointer-events: none; }

/* ====== Featured news band — news-landing-page ====== */
.iec_news_hero_banner { background: #1b204c; padding: 2.740541rem 0px; }

.iec_news_hero_banner h1 {
    font-weight: 700;
    font-size: 1.76177649712rem;
    margin-bottom: 1.761776rem;
    line-height: 104%;
    letter-spacing: 0.012528rem;
    color: #727da3;
    width: 100%;
    position: relative;
    z-index: 1;
}

.iec_news_hero_banner h1 span { display: block; width: max-content; padding-right: 0.391506rem; background: #1b204c; }

.iec_news_hero_banner h1:before {
    content: " ";
    width: 100%;
    height: 0.156602rem;
    display: block;
    background-color: #727da3;
    position: absolute;
    top: calc(50% - 0.274054rem);
    left: 0;
    z-index: -1;
}

.iec_news_hero_banner .iec_news_post_box_warpper { min-height: 16.913054rem; }

.iec_hero_news_post_content {
    width: 100%;
    flex: 1;
    display: flex;
    background: #727da333;
    flex-direction: column;
    padding: 0.841738rem 1.252819rem;
}

.iec_hero_news_post_content .iec_news_post_box_meta { margin-top: 0; border-color: #fff; }

.iec_hero_news_post_content .iec_news_post_box_meta span.date { font-size: 0.46980706589827111rem; color: #fff; }

.iec_hero_news_post_content .iec_news_post_title { line-height: 130%; color: #fff; flex-grow: 1; }

.iec_hero_news_post_content .iec_news_post_read_more_link { gap: 0.313205rem; }

.iec_hero_news_post_content .iec_news_post_read_more_link span { font-weight: 600; font-size: 0.548108rem; line-height: 114.286%; }

/* ====== Posts list — news-landing-page ====== */
.iec_main_news_posts_section { padding: 2.740541rem 0px; position: relative; overflow: hidden; }

/* ====== Sidebar filters — news-landing-page ====== */
.iec_news_posts_filters {
    width: 100%;
    max-width: 9.9834rem;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.33112rem;
}

.iec_news_post_filter_box_warpper { display: flex; flex-direction: column; gap: 0.66556rem; }

.iec_news_post_filter_box_warpper h2 {
    font-family: "Myriad Pro";
    font-weight: 700;
    font-size: 0.861313rem;
    line-height: 120%;
    color: #1b204c;
    border-bottom: 1px solid #727da3;
    padding-bottom: 0.391506rem;
}

.iec_news_post_filter_box { display: flex; flex-direction: column; gap: 0.66556rem; width: 100%; }

.iec_news_post_filter_industry_box_wapper h3,
.iec_news_post_filter_box .iec_news_post_filter_item,
.iec_news_post_filter_box .iec_news_post_filter_sub__item {
    width: 100%;
    font-family: Myriad Pro;
    font-weight: 400;
    font-size: 0.704710598847406665rem;
    line-height: 155%;
    color: #1b204c;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iec_news_post_filter_box .iec_news_post_filter_item svg,
.iec_news_post_filter_box .iec_news_post_filter_sub__item svg,
.iec_news_main_posts_warpper .iec_paginate_item.arrow svg { width: auto; height: 0.548108rem; }

.iec_news_post_filter_box .iec_news_post_filter_item.iec_news_post_main_filter_item { color: #727da3; font-weight: 700; }

.iec_news_post_filter_box .iec_news_post_filter_item svg,
.iec_news_post_filter_industry_box .iec_news_post_filter_sub__item svg { transition: all 0.4s ease-in-out; }

.iec_news_post_filter_box .iec_news_post_filter_item:not(.iec_news_post_filter_item_active):hover svg,
.iec_news_post_filter_industry_box .iec_news_post_filter_sub__item:hover svg { transform: translateX(-10px); }

.iec_news_post_filter_box .iec_news_post_filter_item.iec_news_post_filter_item_active svg path { fill: #1b204c; }

.iec_news_post_filter_box .iec_news_post_filter_item.iec_news_post_filter_item_active svg { height: 0.783012rem; }

.iec_news_post_filter_industry_box_wapper { display: flex; flex-direction: column; gap: 0.704710598847406665rem; }

.iec_news_post_filter_industry_box_wapper:not(:last-child) { margin-bottom: 0.195753rem; }

.iec_news_post_filter_industry_box { display: flex; flex-direction: column; gap: 0.391506rem; margin-left: 0.313205rem; list-style: disc; }

.iec_news_post_filter_industry_box .iec_news_post_filter_sub__item { padding-left: 0.783012rem; }

.iec_news_post_filter_industry_box .iec_news_post_filter_sub__item:before {
    width: 0.156602rem;
    height: 0.156602rem;
    background: #1b204c;
    border-radius: 100%;
    position: absolute;
    content: "";
    top: 30%;
    left: 0;
}

.iec_news_main_posts_warpper {
    width: 100%;
    gap: 1.096216rem;
    padding-top: 0.978765rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.iec_main_news_post_box { width: 100%; gap: 0.783012rem; display: flex; flex-direction: row; text-decoration: none; }

.iec_main_news_post_image {
    flex: 0 0 auto;
    max-width: 100%;
    height: 6.420697rem;
    width: 9.865948rem;
    position: relative;
    overflow: hidden;
}

.iec_main_news_post_image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: all 0.4s ease-in-out; }

.iec_main_news_post_content {
    flex: 0 0 auto;
    max-width: 100%;
    width: calc(100% - 10.64896rem);
    display: flex;
    flex-direction: column;
    margin-top: 0.313205rem;
    gap: 0.46980706589827111rem;
}

.iec_main_news_post_meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.313205rem; }

.iec_main_news_post_meta .category_pill {
    font-family: "Myriad Pro";
    font-weight: 400;
    font-size: 0.430656rem;
    line-height: 165%;
    letter-spacing: 0.086131rem;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #727da3;
    border-radius: 100vw;
    width: fit-content;
    display: flex;
    align-items: center;
    padding: 0.195753rem 0.46980706589827111rem 0.078301rem;
    height: 0.783012rem;
}

.iec_main_news_post_meta .date {
    font-family: "Myriad Pro";
    font-weight: 400;
    font-size: 0.46980706589827111rem;
    line-height: 155%;
    letter-spacing: 0.093961413179654222rem;
    text-transform: uppercase;
    color: #758592;
}

.iec_main_news_post_title { font-family: "Myriad Pro"; font-weight: 700; font-size: 0.783012rem; line-height: 120%; color: #1b204c; }

.iec_main_news_post_content p { font-family: "Myriad Pro"; font-weight: 300; font-size: 0.626409rem; line-height: 155%; color: #1b204c; }

.iec_main_news_post_box:hover .iec_main_news_post_image img { transform: scale(1.1); }

/* ====== Pagination — news-landing-page ====== */
.iec_news_main_posts_warpper .iec_paginate {
    gap: 0.46980706589827111rem;
    margin-top: 1.174518rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.iec_news_main_posts_warpper .iec_paginate_item {
    width: 1.252819rem;
    height: 1.252819rem;
    border: 1px solid #727da3;
    border-radius: 0.313205rem;
    background-color: #fff;
    font-family: "Myriad Pro";
    font-weight: 400;
    font-size: 0.783012rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    color: #758592;
    transition: all 0.4s ease-in-out;
}

.iec_news_main_posts_warpper .iec_paginate_item:not(.arrow) { padding-top: 0.078301rem; }

.iec_news_main_posts_warpper .iec_paginate_item.iec_paginate_item_active { color: #fff; border-color: #1b204c; background-color: #1b204c; }

.iec_news_main_posts_warpper .iec_paginate_item:hover { transform: scale(1.1); transition: all 0.4s ease-in-out; }

.iec_news_posts_list { display: flex; flex-direction: column; gap: 1.096216rem; }

.iec_news_no_results { font-family: "Myriad Pro", sans-serif; font-size: 0.783012rem; color: #1b204c; }

/* ====== Loader — news-landing-page ====== */
.iec_news_loader {
    display: none;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(241, 243, 249, 0.78);
    border-radius: 0.234904rem;
}

.iec_news_spinner {
    position: sticky;
    top: 45vh;
    width: 2rem;
    height: 2rem;
    border: 2px solid #e8eaf3;
    border-top-color: #727da3;
    border-radius: 50%;
    animation: iec-news-spin 0.8s linear infinite;
}

@media (hover: hover) {
    .iec_news_post_box:hover .iec_hero_news_post_content > *,
    .iec_news_post_box:hover .iec_hero_news_post_content > * span { color: #fff; }

    .iec_news_post_box:hover .iec_hero_news_post_content > * svg path { fill: #fff; stroke: #fff; }
}

