/* IPS 2.0 home page — original index header + new public design */
.ips-home-v2 {
    --ips-home-navy: #003a5a;
    --ips-home-navy-dark: #002a41;
    --ips-home-ink: #172c37;
    --ips-home-muted: #657985;
    --ips-home-line: #dfe7eb;
    --ips-home-soft: #f3f7f9;
    --ips-home-white: #ffffff;
    background: #fff;
}

.ips-home-v2 main {
    overflow: hidden;
}

.ips-home-hero {
    position: relative;
    padding: 8.5rem 0 0;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(0, 42, 65, .97) 0%, rgba(0, 58, 90, .91) 52%, rgba(0, 58, 90, .76) 100%),
        url("../images/sajt/ips-banner-2.jpg") center/cover no-repeat;
}

.ips-home-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 14%, rgba(255,255,255,.12), transparent 27%),
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}

.ips-home-hero .container {
    position: relative;
    z-index: 1;
}

.ips-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(38rem, .72fr);
    align-items: center;
    gap: 7rem;
    padding-bottom: 7rem;
}

.ips-home-kicker,
.ips-home-section-heading > div > span,
.ips-home-repository__inner > div:nth-child(2) > span {
    display: inline-block;
    color: #5bc0e6;
    font-family: var(--primary-font, "Roboto", sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ips-home-hero__content h1 {
    max-width: 78rem;
    margin: 1.6rem 0 2rem;
    color: #fff;
    font-family: var(--primary-font, "Roboto", sans-serif);
    font-size: clamp(4.4rem, 5.2vw, 7rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.03;
}

.ips-home-hero__content > p {
    max-width: 70rem;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-family: var(--secondary-font, "Roboto", sans-serif);
    font-size: 1.8rem;
    line-height: 1.75;
}

.ips-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 3.2rem;
}

.ips-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 5rem;
    padding: 1.3rem 2.2rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-family: var(--primary-font, "Roboto", sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.ips-home-button:hover,
.ips-home-button:focus {
    transform: translateY(-2px);
}

.ips-home-button--primary {
    background: #fff;
    color: var(--ips-home-navy);
}

.ips-home-button--primary:hover,
.ips-home-button--primary:focus {
    background: #eaf5fa;
    color: var(--ips-home-navy-dark);
}

.ips-home-button--ghost {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.04);
    color: #fff;
}

.ips-home-button--ghost:hover,
.ips-home-button--ghost:focus {
    border-color: #fff;
    background: rgba(255,255,255,.12);
    color: #fff;
}

.ips-home-featured-news {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 1rem;
    background: rgba(255,255,255,.97);
    box-shadow: 0 3rem 8rem rgba(0,0,0,.22);
}

.ips-home-featured-news__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eff2;
}

.ips-home-featured-news__media img,
.ips-home-news-card__media img,
.ips-home-employee-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.ips-home-featured-news:hover .ips-home-featured-news__media img,
.ips-home-news-card:hover .ips-home-news-card__media img,
.ips-home-employee-card:hover .ips-home-employee-card__media img {
    transform: scale(1.035);
}

.ips-home-featured-news__body {
    padding: 2.5rem 2.7rem 2.8rem;
}

.ips-home-featured-news__meta,
.ips-home-card-meta,
.ips-home-publication-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    color: #748590;
    font-family: var(--secondary-font, "Roboto", sans-serif);
    font-size: 1.2rem;
    line-height: 1.4;
}

.ips-home-featured-news__meta span {
    color: var(--ips-home-navy);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ips-home-featured-news__body > small {
    display: inline-block;
    margin-top: 1.6rem;
    color: var(--ips-home-navy);
    font-size: 1.2rem;
    font-weight: 700;
}

.ips-home-featured-news h2 {
    margin: .8rem 0 1.8rem;
    font-size: 2.5rem;
    line-height: 1.28;
    text-transform: none;
}

.ips-home-featured-news h2 a,
.ips-home-news-card h3 a,
.ips-home-book-card h3 a,
.ips-home-publication-card h3 a,
.ips-home-journal-card h3 a {
    color: var(--ips-home-ink);
}

.ips-home-featured-news h2 a:hover,
.ips-home-news-card h3 a:hover,
.ips-home-book-card h3 a:hover,
.ips-home-publication-card h3 a:hover,
.ips-home-journal-card h3 a:hover {
    color: var(--ips-home-navy);
}

.ips-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--ips-home-navy);
    font-family: var(--primary-font, "Roboto", sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.ips-home-text-link i {
    transition: transform .2s ease;
}

.ips-home-text-link:hover i {
    transform: translateX(3px);
}

.ips-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.18);
}

.ips-home-stats > div {
    padding: 2.7rem 2rem 3rem;
    border-right: 1px solid rgba(255,255,255,.16);
    text-align: center;
}

.ips-home-stats > div:last-child {
    border-right: 0;
}

.ips-home-stats strong {
    display: block;
    color: #fff;
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1;
}

.ips-home-stats span {
    display: block;
    margin-top: .8rem;
    color: rgba(255,255,255,.72);
    font-size: 1.3rem;
}

.ips-home-section {
    padding: 8rem 0;
}

.ips-home-section--soft {
    background: var(--ips-home-soft);
}

.ips-home-section--dark {
    background: var(--ips-home-navy-dark);
}

.ips-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.ips-home-section-heading h2 {
    margin: .9rem 0 0;
    color: var(--ips-home-ink);
    font-family: var(--primary-font, "Roboto", sans-serif);
    font-size: clamp(3rem, 3.4vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
    text-transform: none;
}

.ips-home-section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    flex: 0 0 auto;
    padding-bottom: .5rem;
    color: var(--ips-home-navy);
    font-size: 1.35rem;
    font-weight: 700;
}

.ips-home-section-heading--light h2,
.ips-home-section-heading--light > a {
    color: #fff;
}

.ips-home-section-heading--light > div > span {
    color: #5bc0e6;
}

.ips-home-news-grid,
.ips-home-books-grid,
.ips-home-publications-grid,
.ips-home-journals-grid,
.ips-home-centers-grid,
.ips-home-employees-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.ips-home-news-card,
.ips-home-book-card,
.ips-home-publication-card,
.ips-home-center-card,
.ips-home-employee-card {
    overflow: hidden;
    border: 1px solid var(--ips-home-line);
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(22,43,54,.055);
    transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease;
}

.ips-home-news-card:hover,
.ips-home-book-card:hover,
.ips-home-publication-card:hover,
.ips-home-center-card:hover,
.ips-home-employee-card:hover {
    border-color: rgba(0,58,90,.24);
    box-shadow: 0 1.8rem 4rem rgba(22,43,54,.09);
    transform: translateY(-4px);
}

.ips-home-news-card,
.ips-home-book-card,
.ips-home-publication-card,
.ips-home-employee-card {
    display: flex;
    flex-direction: column;
}

.ips-home-news-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eaf0f3;
}

.ips-home-news-card__body,
.ips-home-book-card__body,
.ips-home-employee-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 2rem;
}

.ips-home-card-meta span,
.ips-home-publication-card__top span {
    color: var(--ips-home-navy);
    font-weight: 700;
}

.ips-home-news-card h3,
.ips-home-book-card h3,
.ips-home-publication-card h3,
.ips-home-journal-card h3,
.ips-home-center-card h3,
.ips-home-employee-card h3 {
    margin: 1.1rem 0 1rem;
    color: var(--ips-home-ink);
    font-size: 1.8rem;
    line-height: 1.34;
    text-transform: none;
}

.ips-home-news-card__body > p,
.ips-home-publication-card > p,
.ips-home-center-card > p,
.ips-home-repository__inner p {
    color: var(--ips-home-muted);
    font-family: var(--secondary-font, "Roboto", sans-serif);
    font-size: 1.4rem;
    line-height: 1.65;
}

.ips-home-news-card__body .ips-home-text-link,
.ips-home-book-card__body .ips-home-text-link,
.ips-home-publication-card .ips-home-text-link,
.ips-home-employee-card__body .ips-home-text-link {
    margin-top: auto;
    padding-top: 1.5rem;
}

.ips-home-book-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31rem;
    padding: 2.4rem;
    background: #e8eef1;
}

.ips-home-book-card__cover img,
.ips-home-journal-card__cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1.2rem 1.4rem rgba(20,37,46,.17));
    transition: transform .35s ease;
}

.ips-home-book-card:hover .ips-home-book-card__cover img,
.ips-home-journal-card:hover .ips-home-journal-card__cover img {
    transform: translateY(-4px);
}

.ips-home-authors {
    color: var(--ips-home-muted);
    font-size: 1.3rem;
    line-height: 1.55;
}

.ips-home-publication-card {
    padding: 2.3rem;
}

.ips-home-publication-card__top {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--ips-home-line);
}

.ips-home-publication-card h3 {
    font-size: 1.85rem;
}

.ips-home-journal-card {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: .8rem;
    background: rgba(255,255,255,.07);
    transition: transform .23s ease, background .23s ease, border-color .23s ease;
}

.ips-home-journal-card:hover {
    border-color: rgba(91,192,230,.55);
    background: rgba(255,255,255,.11);
    transform: translateY(-4px);
}

.ips-home-journal-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1.1rem;
    background: rgba(0,0,0,.14);
}

.ips-home-journal-card__body {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
}

.ips-home-journal-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.6rem;
}

.ips-home-journal-card h3 a,
.ips-home-journal-card h3 a:hover {
    color: #fff;
}

.ips-home-journal-card p,
.ips-home-journal-card small {
    color: rgba(255,255,255,.67);
    font-size: 1.2rem;
}

.ips-home-journal-card .ips-home-text-link {
    margin-top: auto;
    padding-top: 1.2rem;
    color: #6fd2f5;
}

.ips-home-center-card {
    position: relative;
    padding: 2.5rem;
}

.ips-home-center-card__number {
    color: #a7b4bb;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.ips-home-center-card h3 {
    margin-top: 1.4rem;
}

.ips-home-center-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ips-home-line);
    color: var(--ips-home-muted);
    font-size: 1.2rem;
}

.ips-home-center-card > div a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 50%;
    background: rgba(0,58,90,.08);
    color: var(--ips-home-navy);
}

.ips-home-employee-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #dfe9ed;
}

.ips-home-employee-card__media > span,
.ips-home-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--ips-home-navy);
    font-family: var(--primary-font, "Roboto", sans-serif);
    font-size: 3.8rem;
    font-weight: 800;
}

.ips-home-image-fallback i {
    opacity: .55;
}

.ips-home-employee-card__body p {
    margin-bottom: 0;
    color: var(--ips-home-muted);
    font-size: 1.3rem;
    line-height: 1.5;
}

.ips-home-repository {
    padding: 0 0 8rem;
    background: #fff;
}

.ips-home-repository__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
    padding: 3.5rem 4rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(125deg, var(--ips-home-navy-dark), var(--ips-home-navy));
    box-shadow: 0 2rem 5rem rgba(0,42,65,.17);
}

.ips-home-repository__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
    color: #71d3f6;
    font-size: 2.6rem;
}

.ips-home-repository__inner h2 {
    margin: .6rem 0 .7rem;
    color: #fff;
    font-size: 3rem;
    text-transform: none;
}

.ips-home-repository__inner p {
    max-width: 72rem;
    margin: 0;
    color: rgba(255,255,255,.74);
}

.ips-home-button--light {
    background: #fff;
    color: var(--ips-home-navy);
}

.ips-home-button--light:hover,
.ips-home-button--light:focus {
    background: #eaf5fa;
    color: var(--ips-home-navy-dark);
}

@media (max-width: 1199px) {
    .ips-home-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(34rem, .72fr);
        gap: 4rem;
    }

    .ips-home-news-grid,
    .ips-home-books-grid,
    .ips-home-publications-grid,
    .ips-home-centers-grid,
    .ips-home-employees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ips-home-journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ips-home-hero {
        padding-top: 6.5rem;
    }

    .ips-home-hero__grid {
        grid-template-columns: 1fr;
    }

    .ips-home-featured-news {
        max-width: 65rem;
    }

    .ips-home-repository__inner {
        grid-template-columns: auto 1fr;
    }

    .ips-home-repository__inner .ips-home-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .ips-home-hero {
        padding-top: 5.5rem;
    }

    .ips-home-hero__grid {
        gap: 3.5rem;
        padding-bottom: 5rem;
    }

    .ips-home-hero__content h1 {
        font-size: 4rem;
    }

    .ips-home-hero__content > p {
        font-size: 1.6rem;
    }

    .ips-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ips-home-stats > div:nth-child(2) {
        border-right: 0;
    }

    .ips-home-stats > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .ips-home-section {
        padding: 6rem 0;
    }

    .ips-home-section-heading {
        align-items: flex-start;
    }

    .ips-home-section-heading h2 {
        font-size: 3rem;
    }

    .ips-home-news-grid,
    .ips-home-books-grid,
    .ips-home-publications-grid,
    .ips-home-centers-grid,
    .ips-home-employees-grid,
    .ips-home-journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .ips-home-news-card__body,
    .ips-home-book-card__body,
    .ips-home-employee-card__body,
    .ips-home-publication-card,
    .ips-home-center-card {
        padding: 1.5rem;
    }

    .ips-home-news-card h3,
    .ips-home-book-card h3,
    .ips-home-publication-card h3,
    .ips-home-center-card h3,
    .ips-home-employee-card h3 {
        font-size: 1.55rem;
    }

    .ips-home-news-card__body > p,
    .ips-home-publication-card > p,
    .ips-home-center-card > p {
        display: none;
    }

    .ips-home-book-card__cover {
        height: 24rem;
        padding: 1.5rem;
    }

    .ips-home-journal-card {
        grid-template-columns: 7.5rem minmax(0, 1fr);
        min-height: 16rem;
    }

    .ips-home-journal-card__body {
        padding: 1.4rem 1.2rem;
    }

    .ips-home-journal-card h3 {
        font-size: 1.4rem;
    }

    .ips-home-repository {
        padding-bottom: 6rem;
    }

    .ips-home-repository__inner {
        grid-template-columns: 1fr;
        padding: 2.8rem 2.4rem;
    }

    .ips-home-repository__icon {
        width: 5.5rem;
        height: 5.5rem;
    }

    .ips-home-repository__inner .ips-home-button {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 479px) {
    .ips-home-hero__content h1 {
        font-size: 3.5rem;
    }

    .ips-home-actions {
        flex-direction: column;
    }

    .ips-home-actions .ips-home-button {
        width: 100%;
    }

    .ips-home-section-heading {
        flex-direction: column;
        margin-bottom: 2.6rem;
    }

    .ips-home-news-grid,
    .ips-home-books-grid,
    .ips-home-publications-grid,
    .ips-home-centers-grid,
    .ips-home-employees-grid,
    .ips-home-journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ips-home-card-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: .3rem;
    }

    .ips-home-news-card__body,
    .ips-home-book-card__body,
    .ips-home-employee-card__body,
    .ips-home-publication-card,
    .ips-home-center-card {
        padding: 1.25rem;
    }

    .ips-home-news-card h3,
    .ips-home-book-card h3,
    .ips-home-publication-card h3,
    .ips-home-center-card h3,
    .ips-home-employee-card h3 {
        font-size: 1.4rem;
    }

    .ips-home-book-card__cover {
        height: 20rem;
        padding: 1.1rem;
    }

    .ips-home-journal-card {
        display: flex;
        flex-direction: column;
    }

    .ips-home-journal-card__cover {
        height: 13rem;
    }

    .ips-home-journal-card small,
    .ips-home-journal-card p,
    .ips-home-authors {
        font-size: 1.1rem;
    }

    .ips-home-text-link {
        font-size: 1.15rem;
    }
}
