.bento-img,
.bento-overlay {
    inset: 0;
    position: absolute
}

#programs-slider .splide__arrow svg,
.video-testimonial-slider .splide__arrow svg {
    fill: #00549E !important
}

@font-face {
    font-family: Gilroy;
    src: url('assets/fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Gilroy;
    src: url('assets/fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Gilroy;
    src: url('assets/fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

.clip-underline {
    position: relative;
    display: inline-block;
    padding: 0 .06em .22em
}

.clip-underline::after {
    content: "";
    position: absolute;
    left: -.04em;
    right: -.04em;
    bottom: .02em;
    height: .52em;
    background: #c4161c;
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-1.2deg);
    transform-origin: 50% 80%;
    clip-path: polygon(0% 62%, 3% 52%, 97% 44%, 100% 55%, 100% 100%, 0% 100%)
}

@supports not (clip-path:polygon(0 0)) {
    .clip-underline::after {
        clip-path: none
    }
}

.hero-section {
    background-image: url('assets/bvanner.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat
}

.hero-overlay {
    background: linear-gradient(90deg, #00549e 40%, rgba(0, 84, 158, .9) 65%, rgba(0, 84, 158, .2) 100%)
}

@media (max-width:1024px) {
    .hero-overlay {
        background: linear-gradient(180deg, #00549e 40%, rgba(0, 84, 158, .9) 70%, rgba(0, 84, 158, .4) 100%)
    }

    .hero-section {
        background-position: top right
    }
}

.doodle-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

#academic-slider .splide__arrow {
    background: 0 0 !important
}

#academic-slider .splide__arrow svg {
    fill: #00549E !important;
    height: 2em;
    width: 2em
}

#testimonial-slider .splide__pagination,
#video-testimonial-slider .splide__pagination,
#programs-slider .splide__pagination,
#ecosystem-slider .splide__pagination {
    bottom: -1.5rem !important;
    position: relative;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.splide__pagination__page {
    width: 10px !important;
    height: 10px !important;
    background: #cbd5e1 !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.splide__pagination__page:hover {
    background: #94a3b8 !important;
}

.splide__pagination__page.is-active {
    background: #c4161c !important;
    transform: scale(1.3);
    width: 24px !important;
    border-radius: 5px !important;
}

#programs-slider .splide__arrow {
    background: #ffd3b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.splide__arrow--prev {
    left: -2rem !important
}

.splide__arrow--next {
    right: -2rem !important
}

@keyframes marquee-left {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(calc(-50% - 12px))
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(calc(-50% - 12px))
    }

    100% {
        transform: translateX(0)
    }
}

.animate-marquee-left {
    animation: 40s linear infinite marquee-left
}

.animate-marquee-right {
    animation: 40s linear infinite marquee-right
}

.marquee-wrapper:hover .animate-marquee-left,
.marquee-wrapper:hover .animate-marquee-right {
    animation-play-state: paused
}

.no-scrollbar::-webkit-scrollbar {
    display: none
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none
}

/* Pagination positions fixed above */

@media (max-width:768px) {

    #academic-slider .splide__arrow--next,
    #programs-slider .splide__arrow--next {
        right: 0 !important
    }

    #academic-slider .splide__arrow--prev,
    #programs-slider .splide__arrow--prev {
        left: 0 !important
    }

    #ecosystem-slider .splide__pagination {
        bottom: -1rem !important;
    }
}

@media (max-width:767px) {
    #programs-slider.is-static {
        visibility: visible !important
    }

    #programs-slider.is-static .splide__track {
        overflow: visible !important
    }

    #programs-slider.is-static .splide__list {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        transform: none !important
    }

    #programs-slider.is-static .splide__slide {
        width: 100% !important;
        transform: none !important
    }

    #programs-slider.is-static .splide__arrows,
    #programs-slider.is-static .splide__pagination {
        display: none !important
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px
}

@media (min-width:640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px
    }
}

.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: box-shadow .4s, transform .4s
}

.bento-item:hover {
    box-shadow: 0 12px 40px rgba(32, 64, 154, .18);
    transform: translateY(-4px)
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25, .46, .45, .94)
}

.bento-item:hover .bento-img {
    transform: scale(1.08)
}

.bento-overlay {
    background: linear-gradient(to top, rgba(10, 21, 38, .88) 0, rgba(10, 21, 38, .5) 40%, rgba(10, 21, 38, .15) 70%, transparent 100%);
    transition: background .4s;
    z-index: 1
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    z-index: 2;
    transform: translateY(10px);
    transition: transform .4s cubic-bezier(.25, .46, .45, .94)
}

.bento-item:hover .bento-content {
    transform: translateY(0)
}

.bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(196, 22, 28, .9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
    transition: transform .3s, background .3s;
    box-shadow: 0 4px 12px rgba(196, 22, 28, .3)
}

.bento-item:hover .bento-icon {
    transform: scale(1.1);
    background: #c4161c
}

@media (min-width:1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px
    }

    .bento-large {
        grid-column: span 2;
        min-height: 340px
    }

    .bento-icon {
        width: 46px;
        height: 46px;
        font-size: 18px
    }
}

.bento-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3)
}

.bento-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5;
    font-weight: 500;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.25, .46, .45, .94), opacity .4s .1s
}

.bento-item:hover .bento-desc {
    max-height: 80px;
    opacity: 1
}

@media (min-width:768px) {
    .bento-title {
        font-size: 22px
    }

    .bento-desc {
        font-size: 14px
    }
}

#video-testimonial-slider .splide__arrow {
    background: #ffd3b3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

/* Fix mobile sliding: transparent shield over iframe */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    pointer-events: none;
}

.video-shield {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: transparent;
    cursor: pointer;
}

.video-container.is-playing .video-shield {
    display: none;
}

.video-container.is-playing iframe {
    pointer-events: auto;
}