/* =========================================================
   SADHIKA RESEARCH & PUBLICATIONS
   NEWS & EVENTS PAGE
========================================================= */

:root {
    --news-blue: #102a43;
    --news-dark: #06233f;

    --news-gold: #d39b24;
    --news-gold-light: #f3c343;

    --news-border: #e5dfd2;

    --news-bg: #faf9f6;

    --news-text: #102a43;
}


/* =========================================================
   GLOBAL
========================================================= */

.news-events-page,
.news-events-page * {
    box-sizing: border-box;
}

.news-events-page {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: var(--news-blue);

    background: #ffffff;
}

.news-events-page img {
    max-width: 100%;
}

.news-events-page a {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


/* =========================================================
   HERO
========================================================= */

.news-events-hero {
    position: relative;

    min-height: 245px;

    background-image:
        url("../images/hero/news-events-banner.jpg");

    background-size: cover;

    background-position: center;

    overflow: hidden;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.news-events-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 34, 61, 0.96) 0%,
            rgba(4, 34, 61, 0.88) 35%,
            rgba(4, 34, 61, 0.48) 62%,
            rgba(4, 34, 61, 0.08) 100%
        );
}


/* =========================================================
   HERO CONTAINER
========================================================= */

.news-events-hero-container {
    position: relative;

    z-index: 2;

    width: 90%;

    max-width: 1380px;

    min-height: 245px;

    margin: 0 auto;

    display: block;
}


/* =========================================================
   HERO LEFT CONTENT
========================================================= */

.news-events-hero-content {
    position: relative;

    z-index: 3;

    width: 690px;

    max-width: 55%;

    padding-top: 25px;

    color: #ffffff;
}


.news-events-breadcrumb {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    font-size: 15px;
}


.news-events-breadcrumb a {
    color: #ffffff;

    text-decoration: none;
}


.news-events-breadcrumb span {
    color: #ffffff;
}


.news-events-breadcrumb span:last-child {
    color: var(--news-gold-light);
}


/* =========================================================
   HERO TITLE
========================================================= */

.news-events-hero-content h1 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size:
        clamp(46px, 5vw, 64px);

    line-height: 1.05;

    font-weight: 700;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.news-events-hero-content p {
    max-width: 690px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(19px, 2vw, 25px);

    line-height: 1.25;

    text-align: left;
}


/* =========================================================
   HERO RIGHT HIGHLIGHTS
   DESKTOP FIX

   IMPORTANT:
   Absolute positioning is used here so the highlights
   do NOT depend on the second grid column.

   This places them around the marked position from
   the user's screenshot.
========================================================= */

.news-events-hero-highlights {
    position: absolute;

    z-index: 10;

    /*
       IMPORTANT POSITION

       51% places the highlights around the centre-right
       area of the banner instead of over the books.
    */

    left: 51%;

    top: 50%;

    transform: translateY(-50%);

    width: 390px;

    max-width: 390px;

    padding-left: 34px;

    border-left:
        2px solid var(--news-gold-light);
}


/* =========================================================
   HERO HIGHLIGHT ITEM
========================================================= */

.hero-highlight-item {
    display: flex;

    align-items: center;

    gap: 18px;

    min-height: 38px;

    margin-bottom: 7px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    line-height: 1.25;

    text-align: left;

    white-space: nowrap;
}


.hero-highlight-item:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HERO HIGHLIGHT ICON
========================================================= */

.hero-highlight-icon {
    width: 28px;

    min-width: 28px;

    color: var(--news-gold-light);

    font-size: 22px;

    text-align: center;
}


/* =========================================================
   MAIN
========================================================= */

.news-events-main {
    width: 100%;

    padding:
        28px 0
        55px;

    background: #ffffff;
}


.news-events-container {
    width: 94%;

    max-width: 1450px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        335px;

    column-gap: 28px;

    row-gap: 0;

    align-items: start;
}


/* =========================================================
   TOP LAYOUT
========================================================= */

.news-events-top-layout {
    display: contents;
}


/* =========================================================
   LATEST NEWS
========================================================= */

.latest-news-section {
    grid-column: 1;

    grid-row: 1;

    min-width: 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 13px;
}


.section-heading {
    min-width: 0;
}


.section-heading h2 {
    margin: 0;

    color: var(--news-blue);

    font-size: 26px;

    line-height: 1.2;

    font-weight: 700;

    text-align: left;
}


.section-heading > span {
    display: block;

    width: 32px;

    height: 3px;

    margin-top: 7px;

    background: var(--news-gold);
}


/* =========================================================
   VIEW ALL BUTTON
========================================================= */

.section-view-all,
.sidebar-view-all {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        8px 15px;

    border:
        1px solid #e0b13c;

    background: #f0b82f;

    color: var(--news-blue);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        transform .25s ease,
        background .25s ease;
}


.section-view-all:hover,
.sidebar-view-all:hover {
    background: #dca72d;

    transform: translateY(-2px);
}


.section-view-all strong,
.sidebar-view-all strong {
    font-size: 16px;
}


/* =========================================================
   LATEST NEWS GRID
========================================================= */

.latest-news-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   NEWS CARD
========================================================= */

.news-card {
    min-width: 0;

    border:
        1px solid #e4e4e4;

    background: #ffffff;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


.news-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 9px 22px
        rgba(16, 42, 67, .12);
}


/* =========================================================
   NEWS IMAGE
========================================================= */

.news-image {
    position: relative;

    width: 100%;

    aspect-ratio: 1.55 / 1;

    overflow: hidden;

    background: #eeeeee;
}


.news-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;
}


.news-card:hover
.news-image img {
    transform: scale(1.045);
}


/* =========================================================
   NEWS BADGES
========================================================= */

.news-badge {
    position: absolute;

    top: 9px;

    left: 9px;

    padding:
        5px 9px;

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .3px;
}


.news-badge-red {
    background: #b62d2d;
}


.news-badge-blue {
    background: #164d8d;
}


.news-badge-green {
    background: #239064;
}


.news-badge-purple {
    background: #8247a9;
}


/* =========================================================
   NEWS CONTENT
========================================================= */

.news-card-content {
    padding:
        9px 13px
        12px;

    text-align: left;
}


.news-date {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    color: #555555;

    font-size: 12px;

    text-align: left;
}


.news-date span {
    color: var(--news-gold);

    font-size: 14px;
}


.news-card-content h3 {
    margin:
        0 0 7px;

    color: var(--news-blue);

    font-size: 16px;

    line-height: 1.2;

    font-weight: 700;

    text-align: left;
}


.news-card-content p {
    margin:
        0 0 11px;

    color: #444444;

    font-size: 13px;

    line-height: 1.35;

    text-align: left;
}


/* =========================================================
   READ MORE
========================================================= */

.news-read-more {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        7px 14px;

    background: #f0b82f;

    color: var(--news-blue);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease;
}


.news-read-more:hover {
    background: #dca72d;

    transform: translateX(3px);
}


.news-read-more strong {
    font-size: 15px;
}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.news-events-sidebar {
    grid-column: 2;

    grid-row: 1 / span 2;

    min-width: 0;
}


/* =========================================================
   SIDEBAR HEADING
========================================================= */

.sidebar-heading-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;
}


.sidebar-heading-row .section-heading h2 {
    font-size: 23px;
}


.sidebar-view-all {
    padding:
        7px 11px;

    background: #ffffff;
}


/* =========================================================
   SIDEBAR EVENTS
========================================================= */

.sidebar-event-list {
    border-top:
        1px solid #e6e6e6;
}


.sidebar-event {
    display: grid;

    grid-template-columns:
        75px
        minmax(0, 1fr);

    gap: 12px;

    padding:
        10px 0;

    border-bottom:
        1px solid #e5e5e5;
}


/* =========================================================
   EVENT DATE BOX
========================================================= */

.event-date-box {
    min-height: 76px;

    padding: 8px 4px;

    background:
        linear-gradient(
            180deg,
            #f3f7fa,
            #e9f0f5
        );

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.event-date-box strong {
    color: var(--news-blue);

    font-size: 25px;

    line-height: 1;
}


.event-date-box span {
    color: var(--news-blue);

    font-size: 12px;

    font-weight: 700;
}


.event-date-box small {
    color: var(--news-blue);

    font-size: 11px;
}


/* =========================================================
   EVENT INFORMATION
========================================================= */

.event-information h3 {
    margin:
        0 0 6px;

    color: var(--news-blue);

    font-size: 14px;

    line-height: 1.25;

    text-align: left;
}


.event-information p {
    display: flex;

    align-items: flex-start;

    gap: 6px;

    margin:
        4px 0;

    color: #555555;

    font-size: 11px;

    line-height: 1.3;

    text-align: left;
}


.event-information p span {
    color: var(--news-gold);

    font-weight: 700;
}


/* =========================================================
   EVENT CALENDAR
========================================================= */

.event-calendar-box {
    margin-top: 18px;

    padding-top: 2px;
}


.calendar-header {
    display: grid;

    grid-template-columns:
        35px
        1fr
        35px;

    align-items: center;

    gap: 8px;

    margin-top: 12px;
}


.calendar-header button {
    width: 32px;

    height: 30px;

    border:
        1px solid #dcdcdc;

    background: #ffffff;

    color: var(--news-blue);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease;
}


.calendar-header button:hover {
    background: var(--news-blue);

    color: #ffffff;
}


.calendar-header h3 {
    margin: 0;

    color: var(--news-blue);

    font-size: 15px;

    text-align: center;
}


/* =========================================================
   CALENDAR WEEKDAYS
========================================================= */

.calendar-weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    margin-top: 10px;

    border-bottom:
        1px solid #eeeeee;
}


.calendar-weekdays span {
    padding:
        6px 1px;

    color: #555555;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   CALENDAR DAYS
========================================================= */

.calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);
}


.calendar-day {
    min-height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    color: var(--news-blue);

    font-size: 11px;
}


.calendar-day.empty {
    color: transparent;
}


.calendar-day.event-day::after {
    content: "";

    position: absolute;

    bottom: 2px;

    width: 4px;

    height: 4px;

    border-radius: 50%;

    background: var(--news-gold);
}


.calendar-day.today {
    width: 29px;

    height: 29px;

    margin: auto;

    border-radius: 50%;

    background: #dcecf5;
}


.calendar-day.highlight {
    width: 29px;

    height: 29px;

    margin: auto;

    border-radius: 50%;

    background: #dca72d;

    color: #ffffff;
}


/* =========================================================
   UPCOMING EVENTS MAIN SECTION
========================================================= */

.upcoming-events-section {
    grid-column: 1;

    grid-row: 2;

    min-width: 0;

    margin-top: 30px;
}


.upcoming-events-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   EVENT CARD
========================================================= */

.event-card {
    display: grid;

    grid-template-columns:
        145px
        minmax(0, 1fr);

    min-width: 0;

    border:
        1px solid #e5e5e5;

    background: #ffffff;

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


.event-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 9px 22px
        rgba(16, 42, 67, .11);
}


/* =========================================================
   EVENT CARD IMAGE
========================================================= */

.event-card-image {
    position: relative;

    min-height: 174px;

    overflow: hidden;
}


.event-card-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .5s ease;
}


.event-card:hover
.event-card-image img {
    transform: scale(1.045);
}


/* =========================================================
   EVENT CARD DATE
========================================================= */

.event-card-date {
    position: absolute;

    right: 7px;

    bottom: 7px;

    width: 52px;

    padding:
        5px 2px;

    background:
        rgba(245, 248, 250, .96);

    color: var(--news-blue);

    text-align: center;
}


.event-card-date strong {
    display: block;

    font-size: 23px;

    line-height: 1;
}


.event-card-date span {
    display: block;

    font-size: 10px;

    font-weight: 700;
}


.event-card-date small {
    display: block;

    font-size: 9px;
}


/* =========================================================
   EVENT CARD CONTENT
========================================================= */

.event-card-content {
    padding:
        11px 12px;

    text-align: left;
}


.event-card-content h3 {
    margin:
        0 0 10px;

    color: var(--news-blue);

    font-size: 15px;

    line-height: 1.25;

    text-align: left;
}


.event-meta {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin:
        5px 0;

    color: #555555;

    font-size: 11px;

    line-height: 1.35;

    text-align: left;
}


.event-meta span {
    color: var(--news-gold);
}


.event-register {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 15px;

    padding:
        8px 10px;

    background: #f0b82f;

    color: var(--news-blue);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease;
}


.event-register:hover {
    background: #dca72d;

    transform: translateX(2px);
}


/* =========================================================
   MOTION
========================================================= */

.news-reveal {
    opacity: 0;

    transform:
        translateY(25px);
}


.news-reveal.news-visible {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity .65s ease,
        transform .65s ease;
}


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1250px) {

    .news-events-container {
        width: 94%;

        grid-template-columns:
            minmax(0, 1fr)
            310px;

        column-gap: 22px;
    }


    /*
       Keep highlights at the desired banner position,
       but slightly reduce their size.
    */

    .news-events-hero-highlights {
        left: 50%;

        width: 370px;

        max-width: 370px;

        padding-left: 28px;
    }


    .hero-highlight-item {
        font-size: 15px;

        gap: 15px;
    }


    .latest-news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .upcoming-events-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .event-card {
        grid-template-columns:
            135px
            minmax(0, 1fr);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .news-events-hero {
        min-height: 330px;
    }


    .news-events-hero-container {
        width: 92%;

        min-height: 330px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;

        gap: 25px;
    }


    .news-events-hero-content {
        width: 100%;

        max-width: 700px;

        padding-top: 20px;
    }


    .news-events-hero-content h1 {
        font-size: 48px;
    }


    .news-events-hero-content p {
        font-size: 19px;
    }


    /*
       RESET DESKTOP ABSOLUTE POSITION
    */

    .news-events-hero-highlights {
        position: relative;

        left: auto;

        top: auto;

        transform: none;

        width: 390px;

        max-width: 100%;

        padding-left: 25px;
    }


    /* =====================================================
       MAIN TABLET LAYOUT
    ===================================================== */

    .news-events-container {
        display: flex;

        flex-direction: column;

        gap: 32px;

        width: 94%;
    }


    .news-events-top-layout {
        display: contents;
    }


    .latest-news-section {
        order: 1;

        width: 100%;
    }


    .news-events-sidebar {
        order: 2;

        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px;
    }


    .upcoming-events-section {
        order: 3;

        width: 100%;

        margin-top: 0;
    }


    .event-calendar-box {
        margin-top: 0;
    }


    .upcoming-events-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .news-events-hero {
        min-height: 560px;

        background-position: center;
    }


    .news-events-hero-container {
        width: 90%;

        min-height: 560px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: stretch;

        gap: 30px;
    }


    .news-events-hero-content {
        width: 100%;

        max-width: none;

        padding:
            25px 0 0;
    }


    .news-events-breadcrumb {
        margin-bottom: 14px;
    }


    .news-events-hero-content h1 {
        font-size: 43px;
    }


    .news-events-hero-content p {
        font-size: 19px;

        line-height: 1.4;
    }


    /*
       MOBILE HIGHLIGHTS
    */

    .news-events-hero-highlights {
        position: relative;

        left: auto;

        top: auto;

        transform: none;

        width: 100%;

        max-width: 100%;

        padding-left: 20px;

        padding-bottom: 10px;
    }


    .hero-highlight-item {
        font-size: 15px;

        margin-bottom: 9px;

        gap: 14px;
    }


    .hero-highlight-icon {
        width: 26px;

        min-width: 26px;

        font-size: 20px;
    }


    /* =====================================================
       MAIN
    ===================================================== */

    .news-events-main {
        padding:
            25px 0
            40px;
    }


    .news-events-container {
        width: 92%;

        gap: 30px;
    }


    .section-heading-row {
        align-items: center;
    }


    .section-heading h2 {
        font-size: 24px;
    }


    .section-view-all {
        padding:
            7px 10px;

        font-size: 11px;
    }


    .latest-news-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .news-card-content h3 {
        font-size: 17px;
    }


    .news-card-content p {
        font-size: 13px;
    }


    /* =====================================================
       SIDEBAR
    ===================================================== */

    .news-events-sidebar {
        display: flex;

        flex-direction: column;

        gap: 28px;
    }


    .sidebar-heading-row {
        align-items: center;
    }


    .upcoming-events-section {
        margin-top: 0;
    }


    .upcoming-events-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* =====================================================
       EVENT CARD
    ===================================================== */

    .event-card {
        grid-template-columns:
            42%
            58%;
    }


    .event-card-image {
        min-height: 190px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .news-events-hero {
        min-height: 590px;
    }


    .news-events-hero-container {
        min-height: 590px;
    }


    .news-events-hero-content h1 {
        font-size: 38px;
    }


    .news-events-hero-content p {
        font-size: 18px;
    }


    .news-events-breadcrumb {
        font-size: 14px;
    }


    .hero-highlight-item {
        font-size: 14px;

        gap: 12px;
    }


    .section-heading-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .sidebar-heading-row {
        align-items: flex-start;
    }


    .sidebar-view-all {
        font-size: 11px;
    }


    .event-card {
        grid-template-columns: 1fr;
    }


    .event-card-image {
        min-height: 210px;
    }


    .event-card-content {
        padding: 14px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .news-card,
    .event-card,
    .news-image img,
    .event-card-image img,
    .news-read-more,
    .event-register {

        transition: none;
    }


    .news-reveal {
        opacity: 1;

        transform: none;
    }
}