﻿/* =========================================================
   IK EDUCATION
   NEWS + NEWS DETAILS
========================================================= */


/* =========================================================
   COMMON HERO
========================================================= */

.ik-news-hero,
.ik-news-detail-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 82% 20%, rgba(22, 180, 216, .20), transparent 30% ), radial-gradient( circle at 12% 90%, rgba(245, 130, 32, .10), transparent 26% ), #001a2c;
    color: #fff;
}

    .ik-news-hero::before,
    .ik-news-detail-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .10;
        background-image: linear-gradient( rgba(255,255,255,.18) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,.18) 1px, transparent 1px );
        background-size: 42px 42px;
    }


/* =========================================================
   NEWS MAIN HERO
========================================================= */

.ik-news-hero {
    padding: 40px 0 45px;
}

.ik-news-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.ik-news-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #16b4d8;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

    .ik-news-kicker::before {
        content: "";
        width: 30px;
        height: 2px;
        border-radius: 10px;
        background: #f58220;
    }

.ik-news-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 5vw, 70px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2.5px;
}

    .ik-news-hero h1 span {
        color: #16b4d8;
    }

.ik-news-hero p {
    max-width: 650px;
    margin: 23px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.ik-news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 29px;
    font-size: 14px;
}

    .ik-news-breadcrumb a {
        color: rgba(255,255,255,.68);
        text-decoration: none;
        transition: color .2s ease;
    }

        .ik-news-breadcrumb a:hover {
            color: #16b4d8;
        }

    .ik-news-breadcrumb span {
        color: rgba(255,255,255,.35);
    }

    .ik-news-breadcrumb strong {
        color: #fff;
        font-weight: 600;
    }


/* =========================================================
   NEWS LIST
========================================================= */

.ik-news-list-section {
    position: relative;
    padding: 85px 0 100px;
    background: linear-gradient( rgba(8,124,196,.025) 1px, transparent 1px ), linear-gradient( 90deg, rgba(8,124,196,.025) 1px, transparent 1px ), #f8fcfe;
    background-size: 38px 38px;
}


/* SECTION HEAD */

.ik-news-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 60px;
    align-items: end;
    margin-bottom: 44px;
}

.ik-news-small-kicker {
    margin-bottom: 10px;
    color: #f58220;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.ik-news-section-head h2 {
    max-width: 600px;
    margin: 0;
    color: #032b43;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.7px;
}

    .ik-news-section-head h2 span {
        color: #087cc4;
    }

.ik-news-section-head > p {
    margin: 0 0 4px;
    color: #697b84;
    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   NEWS GRID
========================================================= */

.ik-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
}


/* =========================================================
   NEWS CARD
========================================================= */

.ik-news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dcebf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(3,64,87,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .ik-news-card:hover {
        transform: translateY(-6px);
        border-color: rgba(8,124,196,.22);
        box-shadow: 0 22px 50px rgba(3,64,87,.11);
    }


/* IMAGE */

.ik-news-card-image {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: #eaf5fa;
}

    .ik-news-card-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .5s ease;
    }

.ik-news-card:hover .ik-news-card-image img {
    transform: scale(1.045);
}

.ik-news-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,26,44,.38), transparent 48% );
    pointer-events: none;
}


/* PLACEHOLDER */

.ik-news-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #087cc4;
    background: linear-gradient(135deg, #eef8ff, #dff4fa);
}

    .ik-news-image-placeholder svg {
        width: 50px;
        height: 50px;
        opacity: .45;
    }


/* DATE */

/* NEWS IMAGE DATE BADGE */

.ik-news-card-image {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: #eaf5fa;
    isolation: isolate;
}

    .ik-news-card-image img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .5s ease;
    }

.ik-news-image-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( to top, rgba(0, 26, 44, .78) 0%, rgba(0, 26, 44, .22) 38%, transparent 65% );
}

.ik-news-date-badge {
    position: absolute;
    z-index: 5;
    left: 18px;
    bottom: 17px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 9px;
    background: rgba(0, 26, 44, .88);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .ik-news-date-badge svg {
        flex: 0 0 auto;
        width: 15px;
        height: 15px;
        color: #16b4d8;
    }


/* BODY */

.ik-news-card-body {
    padding: 25px 25px 27px;
}

.ik-news-author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #778a93;
    font-size: 12px;
    font-weight: 600;
}

    .ik-news-author svg {
        width: 16px;
        height: 16px;
        color: #087cc4;
    }

.ik-news-card h2 {
    margin: 0 0 13px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
}

    .ik-news-card h2 a {
        color: #032b43;
        text-decoration: none;
        transition: color .2s ease;
    }

        .ik-news-card h2 a:hover {
            color: #087cc4;
        }

.ik-news-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 21px;
    color: #687b84;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* READ MORE */

.ik-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #087cc4;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

    .ik-news-read-more span {
        width: 27px;
        height: 27px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #eef8ff;
        transition: transform .2s ease, color .2s ease, background .2s ease;
    }

    .ik-news-read-more:hover span {
        transform: translateX(4px);
        color: #fff;
        background: #087cc4;
    }


/* =========================================================
   EMPTY
========================================================= */

.ik-news-empty {
    max-width: 600px;
    margin: 20px auto;
    padding: 55px 30px;
    border: 1px solid #dcebf0;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.ik-news-empty-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    color: #087cc4;
    background: #eef8ff;
}

    .ik-news-empty-icon svg {
        width: 30px;
        height: 30px;
    }

.ik-news-empty h3 {
    margin: 0 0 7px;
    color: #032b43;
    font-size: 20px;
}

.ik-news-empty p {
    margin: 0;
    color: #71828a;
    font-size: 14px;
}


/* =========================================================
   PAGINATION
========================================================= */

.ik-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 55px;
}

.ik-news-page,
.ik-news-page-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e8ed;
    border-radius: 10px;
    background: #fff;
    color: #415d6a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

    .ik-news-page:hover,
    .ik-news-page-arrow:hover {
        color: #087cc4;
        border-color: #087cc4;
        transform: translateY(-2px);
    }

    .ik-news-page.active {
        border-color: #087cc4;
        background: #087cc4;
        color: #fff;
    }

    .ik-news-page-arrow svg {
        width: 17px;
        height: 17px;
    }


/* =========================================================
   NEWS DETAIL HERO
========================================================= */

.ik-news-detail-hero {
    padding: 85px 0 90px;
}

.ik-news-detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.ik-news-detail-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
}

.ik-news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

    .ik-news-detail-meta > div {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: rgba(255,255,255,.72);
        font-size: 13px;
        font-weight: 600;
    }

    .ik-news-detail-meta svg {
        width: 17px;
        height: 17px;
        color: #16b4d8;
    }


/* =========================================================
   NEWS DETAIL
========================================================= */

.ik-news-detail-section {
    padding: 75px 0 100px;
    background: linear-gradient( rgba(8,124,196,.022) 1px, transparent 1px ), linear-gradient( 90deg, rgba(8,124,196,.022) 1px, transparent 1px ), #f8fcfe;
    background-size: 38px 38px;
}

.ik-news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 55px;
    align-items: start;
}


/* =========================================================
   ARTICLE
========================================================= */

.ik-news-article {
    min-width: 0;
    padding: 0 0 10px;
}

.ik-news-feature-image {
    width: 100%;
    margin-bottom: 35px;
    overflow: hidden;
    border-radius: 22px;
    background: #eaf4f8;
    box-shadow: 0 18px 45px rgba(3,64,87,.10);
}

    .ik-news-feature-image img {
        width: 100%;
        display: block;
        object-fit: cover;
    }


/* DATABASE HTML CONTENT */

.ik-news-article-content {
    color: #526b76;
    font-size: 16px;
    line-height: 1.9;
}

    .ik-news-article-content > *:first-child {
        margin-top: 0;
    }

    .ik-news-article-content h1,
    .ik-news-article-content h2,
    .ik-news-article-content h3,
    .ik-news-article-content h4,
    .ik-news-article-content h5,
    .ik-news-article-content h6 {
        margin: 35px 0 15px;
        color: #032b43;
        line-height: 1.3;
        font-weight: 800;
    }

    .ik-news-article-content h2 {
        font-size: 29px;
    }

    .ik-news-article-content h3 {
        font-size: 23px;
    }

    .ik-news-article-content p {
        margin: 0 0 21px;
    }

    .ik-news-article-content img {
        max-width: 100%;
        height: auto;
        margin: 15px 0 25px;
        border-radius: 15px;
    }

    .ik-news-article-content a {
        color: #087cc4;
    }

    .ik-news-article-content ul,
    .ik-news-article-content ol {
        margin: 15px 0 25px;
        padding-left: 24px;
    }

    .ik-news-article-content li {
        margin-bottom: 8px;
    }

    .ik-news-article-content blockquote {
        margin: 30px 0;
        padding: 20px 25px;
        border-left: 4px solid #f58220;
        border-radius: 0 12px 12px 0;
        background: #fff4eb;
        color: #3e5966;
        font-size: 17px;
        font-style: italic;
    }


/* =========================================================
   SHARE
========================================================= */

.ik-news-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 45px;
    padding: 24px;
    border: 1px solid #dcebf0;
    border-radius: 16px;
    background: #fff;
}

.ik-news-share-label span,
.ik-news-share-label small {
    display: block;
}

.ik-news-share-label span {
    margin-bottom: 3px;
    color: #032b43;
    font-size: 14px;
    font-weight: 800;
}

.ik-news-share-label small {
    color: #82929a;
    font-size: 12px;
}

.ik-news-share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ik-news-share-links a {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid #dcebf0;
        border-radius: 10px;
        background: #f8fcfe;
        color: #087cc4;
        text-decoration: none;
        transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
    }

        .ik-news-share-links a svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        .ik-news-share-links a:hover {
            transform: translateY(-3px);
            border-color: #087cc4;
            background: #087cc4;
            color: #fff;
        }


/* BACK */

.ik-news-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: #087cc4;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

    .ik-news-back span {
        transition: transform .2s ease;
    }

    .ik-news-back:hover span {
        transform: translateX(-4px);
    }


/* =========================================================
   RECENT NEWS SIDEBAR
========================================================= */

.ik-news-sidebar {
    position: sticky;
    top: 110px;
    overflow: hidden;
    border: 1px solid #dcebf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(3,64,87,.07);
}

.ik-news-sidebar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e4eef2;
    background: radial-gradient( circle at 100% 0, rgba(22,180,216,.10), transparent 45% ), #fff;
}

    .ik-news-sidebar-head span {
        display: block;
        margin-bottom: 4px;
        color: #f58220;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.3px;
        text-transform: uppercase;
    }

    .ik-news-sidebar-head h2 {
        margin: 0;
        color: #032b43;
        font-size: 21px;
        font-weight: 800;
    }

    .ik-news-sidebar-head > a {
        flex: 0 0 auto;
        color: #087cc4;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }


/* RECENT ITEM */

.ik-news-recent-list {
    padding: 7px 20px;
}

.ik-news-recent-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8f0f3;
    text-decoration: none;
}

    .ik-news-recent-item:last-child {
        border-bottom: 0;
    }

.ik-news-recent-image {
    width: 88px;
    height: 72px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef8ff;
}

    .ik-news-recent-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .3s ease;
    }

.ik-news-recent-item:hover
.ik-news-recent-image img {
    transform: scale(1.06);
}

.ik-news-recent-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #087cc4;
    background: #eef8ff;
}

    .ik-news-recent-placeholder svg {
        width: 25px;
        height: 25px;
        opacity: .45;
    }

.ik-news-recent-content {
    min-width: 0;
}

    .ik-news-recent-content > span {
        display: block;
        margin-bottom: 5px;
        color: #f58220;
        font-size: 10px;
        font-weight: 700;
    }

    .ik-news-recent-content h3 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        color: #032b43;
        font-size: 13px;
        line-height: 1.45;
        font-weight: 750;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        transition: color .2s ease;
    }

.ik-news-recent-item:hover
.ik-news-recent-content h3 {
    color: #087cc4;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .ik-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ik-news-detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 35px;
    }
}


@media (max-width: 900px) {

    .ik-news-section-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

        .ik-news-section-head > p {
            max-width: 650px;
        }

    .ik-news-detail-layout {
        grid-template-columns: 1fr;
    }

    .ik-news-sidebar {
        position: relative;
        top: auto;
        max-width: 650px;
    }
}


@media (max-width: 768px) {

    .ik-news-hero,
    .ik-news-detail-hero {
        padding: 65px 0 70px;
    }

        .ik-news-hero h1 {
            font-size: 44px;
            letter-spacing: -1.5px;
        }

        .ik-news-detail-hero h1 {
            font-size: 39px;
            letter-spacing: -1.3px;
        }

        .ik-news-hero p {
            font-size: 15px;
        }

    .ik-news-list-section,
    .ik-news-detail-section {
        padding: 65px 0 75px;
    }

    .ik-news-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .ik-news-card-image {
        height: 280px;
    }

    .ik-news-share {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 480px) {

    .ik-news-hero,
    .ik-news-detail-hero {
        padding: 55px 0 58px;
    }

        .ik-news-hero h1 {
            font-size: 38px;
        }

        .ik-news-detail-hero h1 {
            font-size: 34px;
        }

    .ik-news-breadcrumb {
        margin-top: 23px;
    }

    .ik-news-section-head h2 {
        font-size: 34px;
    }

    .ik-news-card {
        border-radius: 17px;
    }

    .ik-news-card-image {
        height: 225px;
    }

    .ik-news-card-body {
        padding: 22px 20px 24px;
    }

    .ik-news-card h2 {
        font-size: 18px;
    }

    .ik-news-feature-image {
        margin-bottom: 28px;
        border-radius: 16px;
    }

    .ik-news-article-content {
        font-size: 15px;
        line-height: 1.8;
    }

        .ik-news-article-content h2 {
            font-size: 25px;
        }

        .ik-news-article-content h3 {
            font-size: 21px;
        }

    .ik-news-share {
        padding: 19px;
    }

    .ik-news-sidebar {
        border-radius: 17px;
    }

    .ik-news-sidebar-head {
        padding: 21px 19px 18px;
    }

    .ik-news-recent-list {
        padding: 6px 17px;
    }

    .ik-news-recent-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
    }

    .ik-news-recent-image {
        width: 78px;
        height: 67px;
    }

    .ik-news-page,
    .ik-news-page-arrow {
        width: 38px;
        height: 38px;
    }
}
