:root {
    --index-primary-color: #005904;
    --nav-link-color: var(--index-primary-color) !important;
    --white-sd: #fff;
}

/* ========== GLOBAL STYLES ========== */
* {
    font-family: "Poppins", sans-serif;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .ctrl-crsl-prnt {
        transform: translateY(-5rem) !important;
    }

    .ctrl-crsl {
        transform: scale(0.7) translateY(-10rem);
    }
}

@media (max-width: 500px) {
    .diamond-wrapper {
        right: 10px;
        bottom: 10px;
        transform: scale(0.7);
    }

    .leaf:nth-child(1) {
        left: -40% !important;
        top: -5%;
    }
    .leaf:nth-child(2) {
        right: -50% !important;
    }
    .leaf:nth-child(3) {
        bottom: 0 !important;
        left: -100px !important;
    }
    .leaf:nth-child(4) {
        right: -50% !important;
        bottom: 0;
    }

    .jis-diamond-text {
        opacity: 1 !important;
    }
    .jis-diamond {
        transition: all 0.5s ease;
    }
    .jis-diamond:hover {
        background: white !important;
        border: 1px var(--index-primary-color) solid !important;
        outline: 1px var(--index-primary-color) solid !important;
        color: var(--index-primary-color) !important;
    }
}

@media (min-width: 500px) {
    .leaf:nth-child(1) {
        top: -15%;
        left: -35% !important;
    }
    .leaf:nth-child(2) {
        top: -5%;
        right: -5%;
    }
    .leaf:nth-child(3) {
        bottom: 10px;
        left: 0;
    }
    .leaf:nth-child(4) {
        top: 50%;
        right: -38%;
    }
    .diamond-footer {
        display: flex;
        justify-content: end;
        align-items: center;
    }
    .jis-diamond {
        transform: rotate(45deg);
        margin: 0 auto 1rem;
        z-index: 10;
        transition: 0.5s ease;
        width: 60px;
        height: 60px;
    }

    .jis-diamond:hover {
        transform: translateX(-5.5rem) rotate(45deg);
    }

    .jis-diamond i {
        transform: rotate(-45deg);
        font-size: 2rem;
        position: absolute;
    }
    .jis-diamond-text {
        position: absolute;
        z-index: 7;
        opacity: 0;
        transition: 0.5s ease;
    }
}
/* ========== MEDIA ========== */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== FLOATING DIAMOND ========== */
.diamond-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: calc(50px * 2 + 85px);
    height: calc(50px * 2 + 85px);
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    grid-template-rows: 1fr 20px 1fr;
    place-items: center;
    z-index: 10;
}

.diamond {
    width: 55px;
    aspect-ratio: 1 / 1;
    background: #fff;
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.diamond:nth-child(1),
.diamond:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
}
.diamond:nth-child(2),
.diamond:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}
.diamond:nth-child(3),
.diamond:nth-child(7) {
    grid-column: 2;
    grid-row: 3;
}
.diamond:nth-child(4),
.diamond:nth-child(8) {
    grid-column: 1;
    grid-row: 2;
}

.diamond-txt {
    font-size: 10px;
}
.diamond-txt:nth-child(4) {
    font-size: 9px !important;
}

.diamond:hover {
    opacity: 0;
}

/* ========== LINK UNDERLINE SWIPE ========== */
.swipe-underline {
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
    display: inline-block;
    color: var(--nav-link-color) !important;
}

.swipe-underline::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: -9px;
    left: 0;
    background-color: var(--white-sd);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.5s ease-out;
}

.in-page.swipe-underline::after,
.swipe-underline:hover::after {
    transform: scaleX(1);
}

/* ========== DROPDOWN ========== */
.dropdown-item:hover {
    background-color: transparent !important;
}

.dropdown-menu {
    transition: opacity 0.5s ease;
    opacity: 0;
    display: none;
}

.dropdown-center:hover > .dropdown-menu {
    opacity: 1;
    display: flex;
}

.dropdown-center {
    position: relative;
}

.dropdown-center .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ========== HAMBURGER MENU ========== */
#menu-toggles,
#menu-toggle {
    display: none;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 1.4px;
}

#menu-toggle:checked ~ .nav-menu {
    transform: translateY(0);
}

#menu-toggle:checked ~ .hamburger .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

#menu-toggle:checked ~ .hamburger .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

#menu-toggle:checked ~ .hamburger .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ========== TEXT & COLORS ========== */
.highlight-text {
    text-decoration: underline;
    text-decoration-color: var(--index-primary-color);
    font-weight: 700;
}

.primary-color {
    color: var(--index-primary-color) !important;
}

.bg-primary-custom {
    background: var(--index-primary-color) !important;
}

/* ========== SCROLL ========== */
.scrolled {
    transform: translateY(0);
}

/* ========== LEAVES ANIMATION ========== */
.leaves {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.leaf {
    position: absolute;
    will-change: transform;
    animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ========== CARD HOVER ========== */
.card-hover {
    overflow: hidden;
}

.card-hover img {
    transition: 0.5s ease-out;
}

.card-hover:hover img {
    transform: scale(1.2);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

/* ========== NAVIGATION UNDERLINE ========== */
.nav-container {
    position: relative;
    display: inline-block;
    padding-left: 0;
}

.nav-container .nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--index-primary-color);
    transition: all 0.5s ease;
}

.nav-container .nav-link {
    position: relative;
    padding: 0 1rem;
    color: #555;
    font-weight: 500;
}

.nav-container .nav-link.active {
    color: var(--index-primary-color) !important;
}

/* ========== IMAGE CARD ========== */
.image-card {
    position: relative;
    width: 230px;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.image-card:hover > img {
    filter: brightness(60%) blur(3px);
    transform: scale(1.05);
}

/* ========== CUSTOM GALLERY ==========*/
.custom-gallery {
    padding-bottom: 4rem;
}

.custom-gallery .gallery-section {
    position: relative;
    padding-top: 1rem;
    margin: 0 auto;
    text-align: center;
}

.custom-gallery .image-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    padding: 0;
}

.custom-gallery .image-row::-webkit-scrollbar {
    display: none;
}

.gallery-5 .image-card,
.gallery-5 .video-item {
    flex: 0 0 20%;
    aspect-ratio: 9 / 16;
}

.gallery-4 .image-card,
.gallery-4 .video-item {
    flex: 0 0 25%;
    aspect-ratio: 9 / 16;
}

.gallery-3 .image-card,
.gallery-3 .video-item {
    flex: 0 0 33.3333%;
    aspect-ratio: 5 / 6;
}

@media (max-width: 992px) {
    .gallery-4 .image-card,
    .gallery-4 .video-item {
        flex: 0 0 25%;
    }

    .gallery-5 .image-card,
    .gallery-5 .video-item {
        flex: 0 0 25%;
    }

    .gallery-3 .image-card,
    .gallery-3 .video-item {
        flex: 0 0 34%;
    }
}

@media (max-width: 768px) {
    .gallery-5 .image-card,
    .gallery-5 .video-item {
        flex: 0 0 40%;
    }
    
    .gallery-4 .image-card,
    .gallery-4 .video-item {
        flex: 0 0 33.333%;
    }

    .gallery-3 .image-card,
    .gallery-3 .video-item {
        flex: 0 0 50%;
    }
}

.custom-gallery .image-card,
.custom-gallery .video-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
}

.custom-gallery .image-card img,
.custom-gallery .video-item img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.custom-gallery .image-card:hover img,
.custom-gallery .video-item:hover img {
    transform: scale(1.2);
}

.custom-gallery .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 20px;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    overflow: visible;
}

.custom-gallery .text-overlay h3 {
    position: absolute;
    bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.6s ease, bottom 0.3s ease;
}

.custom-gallery .text-overlay p {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s ease, bottom 0.3s ease;
    padding-top: 12px;
}

.custom-gallery .text-overlay p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    opacity: 0.7;
    border-radius: 1px;
}

.custom-gallery .image-card:hover .text-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.nav-buttons button i {
    transform: rotate(-45deg);
}

.nav-buttons button:hover {
    background: var(--index-secondary-color, #555);
}

@media (min-width: 992px) {
    .nav-buttons {
        position: absolute;
        top: 50%;
        left: 0;
        justify-content: space-between;
        transform: translate(-200%, -10%);
        margin-top: 0;
        padding: 0 0rem;
        pointer-events: none;
    }

    .nav-buttons button {
        pointer-events: all;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-buttons button:hover {
        background: rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 768px) {
    .nav-buttons {
        position: absolute;
        top: 50%;
        left: 0;
        justify-content: space-between;
        transform: translate(-160%, -10%);
        margin-top: 0;
        padding: 0 0rem;
        pointer-events: none;
    }

    .nav-buttons button {
        pointer-events: all;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-buttons button:hover {
        background: rgba(0, 0, 0, 0.7);
    }
}
.nav-buttons button {
    width: 45px;
    height: 45px;
    border: 2px solid var(--index-primary-color);
    background: transparent;
    color: var(--index-primary-color);
    font-size: 1.5rem;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-buttons button i {
    transform: rotate(-45deg);
}
.nav-buttons .next-btn {
    transform: rotate(45deg) translate(15px, 45px);
}

.nav-buttons button:hover {
    background: var(--index-primary-color);
    color: white;
}

/* ========== MARQUEE ========== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100vw;
    padding: 10px 0;
}

.marquee-content {
    display: inline-block;
    animation: scroll-left 10s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 3rem;
    color: var(--index-primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.marquee-item img {
    height: 60px !important;
    object-fit: cover;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* .marquee-container:hover .marquee-content {
    animation-play-state: paused;
} */

.university_list img {
    filter: grayscale(100%);
}

/* ========== FOOTER ========== */
.jis-footer {
    background: linear-gradient(0deg, rgba(0, 89, 4, 0.9), rgba(0, 89, 4, 0.9)), url('../img/footer-patern-min.png');
    background-size: contain;
    background-position: 0 0;
    /* background-blend-mode: multiply; */
    overflow: hidden;
}

.jis-footer .social-icons a {
    color: #fff;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.jis-footer .social-icons a:hover {
    color: #ffd800;
}

.jis-footer .accreditations {
    gap: 1rem;
}

.jis-footer .accreditations img {
    filter: brightness(0) invert(1);
}

.jis-diamond {
    width: 60px;
    height: 60px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
}

.jis-diamond i {
    transform: rotate(-45deg);
    font-size: 2rem;
}

/* ========== HEADER ========== */

#stickyHeader,
#customHeroHeader {
    --white-sd: #005904;
    --index-primary-color: #005904 !important;
}
#heroHeader .dropdown-center .btn {
    color: #fff !important;
}
#heroHeader {
    --index-primary-color: #fff !important;
    z-index: 10;
    transition: opacity 0.4s ease;
}
#stickyHeader {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 9999;
}

#stickyHeader.show {
    transform: translateY(0);
}

#stickyHeader.hide {
    transform: translateY(-100%);
}
.hidden {
    display: none;
}
#offcanvas-input:focus {
    outline: none;
    border: none;
}
#offcanvas-input::placeholder {
    color: #ccc;
}

.carousel-container {
    overflow: visible;
    position: relative;
    max-width: 80vw;
    margin: 0 auto;
}

.carousel-container .carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-container .carousel-track .carousel-item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
    .carousel-container .carousel-track .carousel-item img {
        aspect-ratio: 4 / 6;
    }
}

@media (max-width: 992px) {
    .carousel-container .carousel-track .carousel-item img {
        aspect-ratio: 6 / 4;
    }
}

.carousel-container .carousel-track .carousel-item {
    flex: 0 0 60vw;
    margin: 0 1rem;
    transform: scale(0.85);
    transition: transform 0.6s ease;
}

.carousel-container .carousel-track .carousel-item.active {
    transform: scale(1);
    z-index: 2;
}

.carousel-container .carousel-track .text-overlay {
    position: absolute;
    top: 15%;
    left: -10%;
    width: 60%;
    color: white;
}

.carousel-container .carousel-track .text-overlay h3 {
    font-size: 2.4rem !important;
}

@media (max-width: 768px) {
    .navbar-brand-img {
        width: 110px;
    }
}
@media (min-width: 768px) {
    .navbar-brand-img {
        width: 200px;
    }
}
.alt-before-gallery {
    position: relative;
}

.alt-before-gallery::before {
    content: "";
    background: linear-gradient(0deg, rgba(1, 148, 35, 0.9), rgba(1, 148, 43, 0.9)), url("../img/footer-patern-min.png");
    background-size: contain;
    background-position: 0 0;
    position: absolute;
    top: -1rem;
    left: -2rem;
    width: 130%;
    height: 100%;
    z-index: -1;
}
.alt-after-gallery::before {
    content: "";
    background: linear-gradient(0deg, rgba(1, 70, 148, 0.9), rgba(1, 70, 148, 0.9));
    position: absolute;
    bottom: -2rem;
    left: -3.5rem;
    width: calc(100% + 7rem);
    height: 30%;
    z-index: -1;
}
.video-item {
    aspect-ratio: 295 / 522;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 200px !important;
    transition: all 0.6s ease;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(0);
}

.video-item:hover video {
    filter: grayscale(0);
}

.video-item.inactive video {
    filter: grayscale(100%) !important;
}

.video-item.inactive .caption {
    bottom: -100%;
}

.video-item .caption {
    position: absolute;
    text-align: left;
    bottom: 0.85rem;
    left: 1.2rem;
    color: white;
    padding: 5px;
    border-radius: 5px;
    transition: bottom 0.3s ease;
}

.video-item .caption::after {
    content: "";
    width: 1.3rem;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: #fff;
    position: absolute;
    right: 1.2rem;
    bottom: -100%;
    padding: 5px;
    transition: all 0.3s ease;
    aspect-ratio: 3/4;
}

.video-item:hover .caption::after {
    bottom: 0.85rem;
}

/* additional style for accordion */
.accordion .accordion-item {
    border: 0;
    border-bottom: 0.6px solid #e0e0e0;
    padding: 0.8rem 0;
    border-radius: 0;
    background: transparent;
}

.accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: none !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-weight: 600;
}

.accordion-button:hover,
.accordion-button:focus,
.accordion-button:active {
    background: transparent !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: transparent !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-collapse .accordion-body {
    border: 0;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    background: transparent;
}

[data-bs-toggle="offcanvas"] {
    background-color: transparent !important;
    color: #fff !important;
    border: 0;
}

[data-bs-toggle="offcanvas"]:hover,
[data-bs-toggle="offcanvas"]:focus,
[data-bs-toggle="offcanvas"]:active {
    background-color: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-close {
    filter: invert(1);
}

.card-hover-info {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
}

.card-hover-info img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-hover-info h4 {
    position: absolute;
    bottom: 15px;
    left: 10px;
    color: #ddd;
    z-index: 4;
    transition: all 0.5s ease !important;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(1, 70, 148, 0.75), rgba(1, 70, 148, 0.75));
    color: white;
    padding: 10px;
    font-size: 16px;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    display: flex;
    align-items: end;
}

.card-hover-info:hover .caption {
    transform: translateY(0);
    opacity: 1;
}

.custom-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0;
}

.custom-accordion .accordion-button {
    border-top: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    background-color: #fff;
    box-shadow: none;
    position: relative;
    padding-left: 4rem;
    z-index: 1;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #014694;
    background-color: #fff;
    box-shadow: none;
}

.custom-accordion .accordion-button::before {
    content: "+";
    position: absolute;
    left: 1rem;
    border-right: solid 1px #ccc;
    padding-right: 1rem;
    font-weight: 300;
    font-size: 1.8rem;
    transition: content 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed)::before {
    content: "-";
    left: 1.25rem;
}

.custom-accordion .accordion-button::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 0;
    background-color: #014694 !important;
    border: none !important;
    transition: height 0.4s ease;
    filter: inherit;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    height: 100%;
}

.btn-primary-custom {
    background: #014694;
    color: #fff;
    padding: 1rem 1.5rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    line-height: 15px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.5s ease;
    width: fit-content;
}

.btn-primary-custom:hover {
    color: #014694;
    background: #fff;
    outline: 0.7px solid #014694;
}

.btn-outline-primary-custom {
    background: #fff;
    color: #014694;
    padding: 1rem 1.5rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    line-height: 15px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.5s ease;
    width: fit-content;
    outline: 0.7px solid #014694;
    border: none;
}

.btn-outline-primary-custom:hover {
    color: #fff;
    background: #014694;
    outline: 0.7px solid #fff;
}

.move-arrow:hover i {
    display: inline-block;
    animation: wiggle 1s ease-in-out alternate;
}

@keyframes wiggle {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(10px);
    }

    50% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* custom carousels */
.mySwiper .swiper-slide {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    padding: 0;
    transition: all .5s ease;
}

.mySwiper .swiper-slide .position-absolute {
    top: 20px;
    left: -70px;
    width: 40%;
}
@media (max-width: 768px) {
    .mySwiper .swiper-slide .position-absolute {
        top: 10px;
        left: 0;
        width: 60%;
    }
}

.mySwiper .swiper-slide-next,
.mySwiper .swiper-slide-prev {
    transform: scale(0.68) !important;
}

.mySwiper .swiper-slide .position-absolute .text-start,
.mySwiper .swiper-slide .position-absolute .text-start {
    transition: transform 1s ease, opacity .5s ease;
    transform: translateY(0);
}

.mySwiper .swiper-slide-next .position-absolute .text-start,
.mySwiper .swiper-slide-prev .position-absolute .text-start {
    opacity: 0;
    transform: translateY(40px);
}

.mySwiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.AlumniSwiper {
    padding: 20px 0;
    /* overflow: visible; */
}

.AlumniSwiper .swiper-slide {
    height: auto;
}