/* =========================================================
   IIM SAMBALPUR — HOMEPAGE NEWS & EVENTS
   Screenshot-inspired institutional layout
   ========================================================= */

.home-news-events-ref{
    --hne-text:#11151a;
    --hne-muted:#667079;
    --hne-line:#25282c;
    --hne-soft-line:#d9dfe3;
    --hne-accent:#ef5a0a;
    --hne-paper:#ffffff;
    --hne-soft:#f7f8f8;

    padding:
        clamp(42px,5vw,76px)
        0
        clamp(48px,5.5vw,82px);

    background:#fff;

    font-family:Arial,Helvetica,sans-serif;
}


.home-news-events-ref__container{
    display:grid;

    grid-template-columns:
        minmax(0,.82fr)
        minmax(0,1.18fr);

    gap:
        clamp(24px,3vw,42px);

    align-items:start;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.home-news-events-ref__heading-row{
    min-height:46px;

    margin-bottom:18px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:18px;
}


.home-news-events-ref__heading-row h2{
    margin:0;

    color:var(--hne-text);

    font-size:
        clamp(22px,1.75vw,30px);

    line-height:1.18;

    font-weight:800;

    letter-spacing:-.025em;
}


.home-news-events-ref__round-link{
    width:45px;
    height:45px;

    flex:0 0 45px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#082943;
    color:#fff;

    font-size:22px;
    line-height:1;

    font-weight:800;

    text-decoration:none;

    box-shadow:
        0 6px 16px rgba(239,90,10,.16);

    transition:
        transform .28s cubic-bezier(.16,1,.3,1),
        box-shadow .25s ease,
        background .2s ease;
}


.home-news-events-ref__round-link:hover{
    transform:
        translateY(-2px)
        rotate(3deg);

    background:#da4c00;

    box-shadow:
        0 9px 20px rgba(239,90,10,.22);
}


.home-news-events-ref__round-link span{
    transform:translateY(-1px);
}


/* =========================================================
   LEFT — ANNOUNCEMENT CARDS
   ========================================================= */

.home-news-events-ref__announcement-list{
    display:flex;
    flex-direction:column;

    gap:18px;
}


.home-news-events-ref__announcement-card{
    min-height:94px;

    padding:
        15px
        18px
        14px
        20px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:18px;

    border:1px solid var(--hne-line);
    border-radius:6px;

    background:var(--hne-paper);
    color:var(--hne-text);

    text-decoration:none;

    box-shadow:
        0 1px 0 rgba(0,0,0,.015);

    transition:
        transform .28s cubic-bezier(.16,1,.3,1),
        border-color .2s ease,
        box-shadow .28s ease,
        background .2s ease;
}


.home-news-events-ref__announcement-card:hover{
    transform:translateY(-2px);

    border-color:var(--hne-accent);

    background:#fff;

    box-shadow:
        0 9px 24px rgba(0,0,0,.07);
}


.home-news-events-ref__announcement-copy{
    min-width:0;

    flex:1;
}


.home-news-events-ref__announcement-copy h3{
    margin:0;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    color:var(--hne-text);

    font-size:
        clamp(14px,1vw,17px);

    line-height:1.35;

    font-weight:800;

    letter-spacing:.005em;
}


.home-news-events-ref__announcement-date{
    margin-top:8px;

    display:flex;
    align-items:center;

    gap:8px;

    min-height:28px;

    color:#20262a;
}


.home-news-events-ref__date-line{
    width:4px;
    height:31px;

    flex:0 0 4px;

    background:#082943;
}


.home-news-events-ref__announcement-date time{
    display:flex;
    align-items:baseline;

    gap:5px;
}


.home-news-events-ref__announcement-date strong{
    font-size:19px;
    line-height:1;

    font-weight:800;
}


.home-news-events-ref__announcement-date span{
    font-size:11px;
    line-height:1.2;
}


.home-news-events-ref__announcement-date small{
    font-size:9px;
    line-height:1;

    color:#30383d;
}


.home-news-events-ref__card-arrow{
    flex:0 0 auto;

    color:#000;

    font-size:28px;
    line-height:1;

    font-weight:400;

    transition:
        transform .25s cubic-bezier(.16,1,.3,1),
        color .2s ease;
}


.home-news-events-ref__announcement-card:hover
.home-news-events-ref__card-arrow{
    transform:translateX(4px);

    color:var(--hne-accent);
}


/* =========================================================
   RIGHT — FEATURED NEWS / EVENT IMAGE
   ========================================================= */

.home-news-events-ref__feature-card{
    position:relative;

    min-height:
        clamp(360px,30vw,500px);

    overflow:hidden;

    border-radius:7px;

    background:#e9edef;

    box-shadow:
        0 2px 0 rgba(0,0,0,.02);
}


.home-news-events-ref__feature-media{
    position:absolute;
    inset:0;

    display:block;

    overflow:hidden;

    text-decoration:none;
}


.home-news-events-ref__feature-media img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
    object-position:center;

    transition:
        transform .8s cubic-bezier(.16,1,.3,1);
}


.home-news-events-ref__feature-card:hover
.home-news-events-ref__feature-media img{
    transform:scale(1.025);
}


.home-news-events-ref__media-shade{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0) 44%,
            rgba(0,0,0,.15) 62%,
            rgba(0,0,0,.78) 100%
        );
}


.home-news-events-ref__feature-overlay{
    position:absolute;

    left:0;
    right:0;
    bottom:0;

    z-index:3;

    padding:
        clamp(18px,2.2vw,30px);

    color:#fff;
}


.home-news-events-ref__feature-overlay time{
    display:inline-flex;

    margin-bottom:7px;

    color:#fff;

    font-size:10px;
    line-height:1.2;

    font-weight:700;

    letter-spacing:.05em;

    text-transform:uppercase;
}


.home-news-events-ref__feature-overlay h3{
    max-width:800px;

    margin:0;

    color:#fff;

    font-size:
        clamp(20px,2vw,30px);

    line-height:1.22;

    font-weight:800;

    letter-spacing:-.02em;
}


.home-news-events-ref__feature-overlay p{
    max-width:720px;

    margin:
        8px
        0
        0;

    color:rgba(255,255,255,.88);

    font-size:
        clamp(11px,.9vw,13px);

    line-height:1.55;
}


.home-news-events-ref__read-link{
    margin-top:13px;

    display:inline-flex;
    align-items:center;

    gap:8px;

    color:#fff;

    font-size:10.5px;
    line-height:1;

    font-weight:800;

    text-decoration:none;
}


.home-news-events-ref__read-link span{
    color:#ffc28f;

    transition:
        transform .2s ease;
}


.home-news-events-ref__read-link:hover span{
    transform:translateX(3px);
}


.home-news-events-ref__feature-media--placeholder{
    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            135deg,
            #001340,
            #004c58
        );

    color:#fff;
}


.home-news-events-ref__feature-media--placeholder span{
    font-size:24px;
    font-weight:800;
}


/* =========================================================
   SMALL SECONDARY NEWS LINKS
   ========================================================= */

.home-news-events-ref__mini-news{
    margin-top:12px;

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:10px;
}


.home-news-events-ref__mini-news-item{
    min-height:54px;

    padding:10px 13px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    border:1px solid var(--hne-soft-line);
    border-radius:5px;

    background:#fff;
    color:#26343d;

    text-decoration:none;

    transition:
        border-color .2s ease,
        transform .22s ease,
        color .2s ease;
}


.home-news-events-ref__mini-news-item span{
    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    font-size:10.5px;
    line-height:1.4;

    font-weight:700;
}


.home-news-events-ref__mini-news-item b{
    flex:0 0 auto;

    color:var(--hne-accent);

    font-size:15px;
}


.home-news-events-ref__mini-news-item:hover{
    transform:translateY(-1px);

    border-color:var(--hne-accent);

    color:#000;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.home-news-events-ref__empty,
.home-news-events-ref__feature-empty{
    min-height:140px;

    padding:24px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    border:1px solid var(--hne-soft-line);
    border-radius:6px;

    background:var(--hne-soft);

    color:var(--hne-muted);

    text-align:center;
}


.home-news-events-ref__feature-empty{
    min-height:360px;
}


.home-news-events-ref__feature-empty span{
    color:var(--hne-text);

    font-size:22px;

    font-weight:800;
}


.home-news-events-ref__feature-empty p{
    margin:6px 0 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1100px){

    .home-news-events-ref__container{
        grid-template-columns:
            minmax(0,.9fr)
            minmax(0,1.1fr);

        gap:24px;
    }

    .home-news-events-ref__announcement-card{
        min-height:88px;

        padding:13px 15px;
    }

    .home-news-events-ref__feature-card{
        min-height:420px;
    }
}


@media(max-width:900px){

    .home-news-events-ref{
        padding-top:42px;
        padding-bottom:52px;
    }

    .home-news-events-ref__container{
        grid-template-columns:1fr;

        gap:34px;
    }

    .home-news-events-ref__feature-card{
        min-height:460px;
    }
}


@media(max-width:600px){

    .home-news-events-ref{
        padding-top:34px;
        padding-bottom:42px;
    }

    .home-news-events-ref__container{
        gap:28px;
    }

    .home-news-events-ref__heading-row{
        min-height:40px;

        margin-bottom:13px;
    }

    .home-news-events-ref__heading-row h2{
        font-size:21px;
    }

    .home-news-events-ref__round-link{
        width:39px;
        height:39px;

        flex-basis:39px;

        font-size:19px;
    }

    .home-news-events-ref__announcement-list{
        gap:12px;
    }

    .home-news-events-ref__announcement-card{
        min-height:82px;

        padding:12px 13px 12px 14px;
    }

    .home-news-events-ref__announcement-copy h3{
        font-size:13.5px;
    }

    .home-news-events-ref__announcement-date strong{
        font-size:17px;
    }

    .home-news-events-ref__feature-card{
        min-height:330px;
    }

    .home-news-events-ref__feature-overlay{
        padding:16px;
    }

    .home-news-events-ref__feature-overlay h3{
        font-size:19px;
    }

    .home-news-events-ref__feature-overlay p{
        display:-webkit-box;

        overflow:hidden;

        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
    }

    .home-news-events-ref__mini-news{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"] .home-news-events-ref{
    --hne-text:#f3f6f8;
    --hne-muted:#b8c4ca;
    --hne-line:#6f818b;
    --hne-soft-line:#314754;
    --hne-paper:#102131;
    --hne-soft:#0e1d2a;

    background:#091824;
}


html[data-theme="dark"]
.home-news-events-ref__announcement-card,
html[data-theme="dark"]
.home-news-events-ref__mini-news-item{
    background:#102131;

    color:#f2f5f7;
}


html[data-theme="dark"]
.home-news-events-ref__announcement-date,
html[data-theme="dark"]
.home-news-events-ref__announcement-date small,
html[data-theme="dark"]
.home-news-events-ref__card-arrow{
    color:#f2f5f7;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.home-news-events-ref a:focus-visible{
    outline:3px solid rgba(239,90,10,.28);

    outline-offset:3px;
}


@media(prefers-reduced-motion:reduce){

    .home-news-events-ref *,
    .home-news-events-ref *:before,
    .home-news-events-ref *:after{
        transition:none!important;
    }
}
