.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-size: 1.25rem;
}


@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.cloudy-text {
  color: transparent;
  background: linear-gradient(to bottom, rgba(8, 95, 187, 0.63), rgb(255, 255, 255));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  opacity: 1;
}


@media only screen and (max-width: 990px) {
    .cloudy-text {
        font-size: 60px !important;
        top: -50px !important;

    }
    .header-text{
        padding: 0;
        font-size: 14px;

        .container{
            padding: 0 !important;
        }
    }
    .service-item{
        flex-basis: 100% !important;
    }
}


.institution-card {
  height: 400px;

        .university-image{
          height: 100%;
          object-fit: cover;
        }
        .overlay{
          position: absolute;
          top: 0;
          width: 100%;
          height: 100%;
          opacity: 0;
          transition: 0.4s ease-in-out opacity;
          background-color: black;
        }
      .translate-top {
        position: absolute;
        transform: translateY(-80px);
      }
      .translate-bottom {
        transform: translateY(10px);

      }
  .transition {
    transition: all 0.3s ease-in-out;
  }
}

.institution-card:hover .overlay {
  opacity: 0.6;
}

.institution-card:hover .translate-top  {
  transform: translateY(10px);
}
.institution-card:hover .translate-bottom  {
  transform: translateY(-150px);

}


.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.service-item {
    flex-basis: 24%;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: fit-content;
    transition: color 0.3s ease;
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;

}
.service-icon img{
    width: 100%;
}
.service-title {
    font-weight: 600;
    font-size: 14px;
    color: #000;
    transition: color 0.3s ease;
}

.service-item:hover .service-title {
    color: var(--hover-color);
}

.service-item:hover .service-icon i {
    color: var(--hover-color);
}

.mentors-bg {
    background: url('/assets/images/bestInstitution/mentorsbg-new-home-page.png') fixed ;
    background-position: center;
    background-size: cover;
    height:60vh;
}

.logo-adjustments{
    height: 100%;
    width: 70% !important;
}

.logo-image-adjustments{
    height: 120px !important;
    width: 70% !important
}

@media (max-width: 900px) {
    .mentors-heading-content {
        top: -30px !important;
    }

}

.mentors-overlay {
    background-color: rgba(0, 35, 75, 0.8);
    width: 100%;

    height: 100%;

    .owl-carousel{
        margin-top: -50px;
    }
}

.mentors-heading-faded {
    font-size: 60px;
    font-weight: 800;
    color: white;
    opacity: 0.3;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    .mentors-heading-faded {
        font-size: 100px;
    }
    .mentors-bg {
        background: url('/assets/images/bestInstitution/mentorsbg-new-home-page.png') fixed ;
        background-position: center;
        background-size: cover;
        height:85vh;
    }
    .logo-adjustments{
        height: 5%;
        width: 100%
    }
    .logo-image-adjustments{
        height: 90px !important;
        width: 50% !important
    }
}
@media (min-width: 992px) {
    .mentors-heading-faded {
        font-size: 140px;
    }
}

.mentors-heading-content {
    position: relative;
    top: -10rem;
}

@media (min-width: 768px) {
    .mentors-heading-content {
        top: -4rem;
    }
}

@media (min-width: 992px) {
    .mentors-heading-content {
        top: -6rem;
    }
}

@media (max-width: 756px) {
    .mentors-overlay {
        height: 95vh;
        .owl-carousel {
            margin-top: 0px !important;
            img{
                height: 300px;
            }
        }
    }
    .mentors-bg{
        height: 95vh;
    }
    .logo-adjustments{
        height: 10%;
        width: 100%
    }
    .logo-image-adjustments{
        height: 100px !important;
        width: 50% !important
    }
}
.border-theme-color{
    border: 1px solid #30709F
}

.logo-red-color{
    color: #C02826;
}
.z-20 {
    z-index: 20;
}

.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.blog-card img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

.blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease-in-out;
}

.blog-card:hover .blog-icon {
    opacity: 1;
    transform: translateY(0);
}

.blog-icon {
    font-size: 2.5rem;
    margin-left: 1rem;
    color: #f1f1f1;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.3s ease;
}

.hover-zoom {
    position: relative;
    height: 350px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease-in-out;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}


.bg-blue-overlay {
    background-color: rgba(13, 82, 160, 0.9);
    height: 350px;
    position: relative;
    border-radius: 0.5rem;
}

.bg-image-cover {
    background-image: url('/assets/images/bestInstitution/expertSection/expert12.png');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
}

.icon-list li i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.gray-box {
    background-color: #6b7280;
    border-radius: 0.5rem;
}
.banner-height {
    height: 450px;

}

@media (max-width: 1360px) {
    .banner-height {
        height: 300px;
        .display-4 {
            font-size: 2rem;
            font-weight: 500;
            line-height: 1.2;
        }
    }
}
@media (max-width: 1024px) {
    .banner-height {
        height: 300px;
    }
    .bottom-space-banner-text{
        margin-top: auto;
        margin-bottom: auto;
    }
}

.bottom-space-banner-text{
    margin-bottom: 5%;
}

@media (max-width: 768px) {
    .banner-height {
        height: 400px;
    }
    .bottom-space-banner-text{
        margin-top: auto;
        margin-bottom: auto;
    }
}
@media (max-width: 480px) {
    .banner-height {
        height: 450px;
    }
    .bottom-space-banner-text{
        margin-top: auto;
        margin-bottom: auto;
    }
}
.custom-search-wrapper {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 480px) {
    .custom-search-wrapper {
        width: 90%;
    }
}

@media (min-width: 576px) {
    .custom-search-wrapper {
        width: 85%;
    }
}

@media (min-width: 768px) {
    .custom-search-wrapper {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .custom-search-wrapper {
        width: 55%;
    }
}

@media (min-width: 1200px) {
    .custom-search-wrapper {
        width: 40%;
    }
}

@media (min-width: 1400px) {
    .custom-search-wrapper {
        width: 22%;
    }
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1.25rem;
    border-radius: 3rem;
    font-size: 0.9rem;
    font-family: monospace;
    border: 2px solid #30709f;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
    outline: none;
    background-color: white;
}

@media (min-width: 768px) {
    .search-input {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .search-input {
        font-size: 1.05rem;
    }
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #30709f;
    font-size: 1.2rem;
    pointer-events: none;
}

.search-input.animate-placeholder::placeholder {
    color: #30709f;
    font-weight: 900;
    opacity: 1;
    animation: placeholderTypewriter 2.5s steps(40, end) 0.2s 1 normal both !important;
}

.search-input.animate-placeholder::-webkit-input-placeholder {
    color: #30709f;
    opacity: 1;
    animation: placeholderTypewriter 2.5s steps(40, end) 0.2s 1 normal both !important;
}

.search-input.animate-placeholder::-moz-placeholder {
    color: #30709f;
    opacity: 1;
    animation: placeholderTypewriter 2.5s steps(40, end) 0.2s 1 normal both !important;
}

.search-input.animate-placeholder:-ms-input-placeholder {
    color: #30709f;
    opacity: 1;
    animation: placeholderTypewriter 2.5s steps(40, end) 0.2s 1 normal both !important;
}

.newHomePageSearchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin: 0;
    z-index: 1050;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    background: white;

}

.suggestions-class {
    padding: 0.5rem 1rem;
    border: 1px solid #30709f;
    border-radius: 0.5rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #30709f;
    margin-top: 10px;
    font-size: 0.9rem;
}

.suggestions-class:hover {
    background-color: #e2e6ea;
}
.expert-icon{
    width: 35px;
    margin-right: 10px;
}

.prof-image {
    max-width: 100%;
    max-height : 250px;
}

.prof-br{
    border-radius: 5px;
}


.expert-icon-loc{
    height: 38px;
}
.gray-box {
    background-color: #e5e8eb;
    border-radius: 0.5rem;
}


.tab-highlight {
    background-color: #30709f;
    color: #fff;
    font-weight: 600;
}

.tab-highlight:hover {
    background-color: #30709f;
}
.nav-dec {
    .nav-pills .nav-link {
        background-color: #30709f;
        color: #ffffff;
        margin: 0 5px;
        transition: all 0.3s ease;
    }

    .nav-pills .nav-link:hover {
        color: #ffffff !important;
    }

    .nav-pills .nav-link.active {
        background-color: #ffffff !important;
        color: #30709f !important;
        border: 2px solid #30709f;
    }
}
.header-height{
    height: 100px;
}

@media (max-width: 767.98px) {
    .header-height {
        height: 70px;
    }
    .view-more-btn{
        width: 100% !important;
        margin: 0 60px
    }
}
.apply-now-home {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    z-index: 1050 !important;
    rotate: 180deg !important;
    background-color: rgb(197, 40, 42) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 10px 0 !important;
    width: 50px !important;
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3) !important;
    overflow: visible !important;
}
.vertical-text {
    writing-mode: horizontal-tb;
    text-orientation: upright;
    rotate: 90deg;
    white-space: nowrap;
    font-weight: bold;
}

.apply-now-home:hover {
    background-color: #ffffff;
    color: rgb(197, 40, 42);
    font-weight: bold;
    border: 2px solid rgb(197, 40, 42);
}

.apply-now-home::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 200px;
    border-radius: 12px 12px 12px 12px;
    background-color: rgb(197, 40, 42);
    z-index: -1;
    animation: wavePulse 2s infinite ease-out;
}

@keyframes wavePulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}
@media (max-width: 766px) {
    .apply-now-mobile {
        position: fixed !important;
        bottom: 20px !important;
        left: 24.5% !important;
        z-index: 1000 !important;
        width: 48% !important;
        background-color: rgb(197 40 42) !important;
        color: #fff !important;
        padding: 2px 20px !important;
        border-radius: 15px !important;
        cursor: pointer !important;
    }

    #applyNowBtn:hover {
        color: rgb(197 40 42);
        background: #fff;
    }
}
.hover-zoom img {
    transition: transform 0.5s ease-in-out;
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}


.mega-dropdown {
    left: 30% !important;
    right: 0 !important;
    top: 100%;
    border-radius: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mega-dropdown .list-group-item {
    border: none;
    cursor: pointer;
}

.mega-dropdown .list-group-item:hover,
.mega-dropdown .list-group-item.active {
    background-color: #f8f9fa;
    color: #007bff;
    font-weight: bold;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .mega-dropdown {
        left: 0% !important;
        right: 0 !important;
        top: 100%;
        border-radius: 0;
        background-color: #fff;
        border: 1px solid #dee2e6;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 1000;
    }
}

.uni-vid{
    height: 100%;
}

.view-more-btn {
    border-radius: 0.5rem;
    width: 20%;
    font-weight: 700;
    background-color: #ffffff;
    color: #30709f;
    border: 2px solid #30709f;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #30709f;
    color: white;
}


@media (min-width: 768px) and (max-width: 1280px) {
    .mentors-owl-carousel{
        margin-top: 80px !important;
    }

}

@media (max-width: 992px) {
    .flex-wrap-mob {
        flex-wrap: wrap;
    }
}

.placements-bg {
    height:60vh;
}


.placements-overlay {
    .owl-carousel{
        margin-top: -85px;
    }
}

@media (max-width: 756px) {
    .placements-overlay {
        height: 50vh;

    }


}

@media (max-width: 992px) {
    .placements-overlay {
        .owl-carousel{
            margin-top: -20px;
        }
    }
}

.course-section{
    .course-grid{
        position: relative;
        .card {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            text-align: center;
            position: relative;

            a{
                text-decoration: none;
                padding: 1rem;
                text-align: center;
            }
            h5 {
                font-size: 16px;
                font-weight: 600;
            }

            .course-name {
                font-size: 14px;
                font-weight: 600;
                color: darkred;
                padding-top: 1rem;
                text-align: center;
            ;
            }

            .specializations{
                background: #eee0e0;
                position: absolute;
                color: rgba(28, 71, 119, 0.96);
                padding: 2px 6px;
                width: 90%;
                left: 6%;
                font-size: 12px;
                top: 0;
                border-radius: 5px;
            }
            .compare-now{
                background: #30709f;
                color: #fff;
                position: absolute;
                bottom: -10px;
                left: 10%;
                width: 80%;
                font-size: 10px;
                /*text-align: center;*/
                font-weight: bold;
                border-radius:5px;
                padding: 2px 3px;


            }
        }

    }

    .course-section-icon{
        width: 25%;
        margin-top: 10%;
    }
    .flex-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    @media (min-width: 1024px) {
        .flex-container {
            flex-direction: row;
        }
    }

    .sidebar {
        width: 20%;
        max-height: 500px;
        overflow-y: auto;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: none;
        ul{
            list-style: none;
            margin: auto;
            padding:5px;
        }
    }

    @media (min-width: 1024px) {
        .sidebar {
            display: block;
        }
    }

    .sidebar li {
        margin: 0.25rem 0;
        padding: 0.25rem 0.5rem;
        border-bottom: 1px solid #dee2e6;
        border-radius: 5px;
        cursor: pointer;
        text-align: start;
        font-size: 14px;
    }

    .sidebar li.active {
        background-color: #30709f;
        color: white;
    }

    .sidebar li .badge {
        background-color: #ebf8ff;
        color: #30709f;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 10px;
        margin-top: 4px;
        display: inline-block;
    }

    .sidebar li i {
        transition: transform 0.2s ease;
    }

    .sidebar li.active i {
        transform: rotate(0deg);
        color: white;
    }

    .sidebar li:not(.active) i {
        transform: rotate(90deg);
        color: #30709f;
    }

    .mobile-scroll {
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        padding: 0 0.5rem;
        list-style: none;
    }

    @media (min-width: 1024px) {
        .mobile-scroll {
            display: none;
        }
    }

    .mobile-scroll li {
        flex-shrink: 0;
        font-size: 14px;
        font-weight: 500;
        padding: 0.5rem;
        border-radius: 0.5rem;
        cursor: pointer;
        white-space: nowrap;
    }

    .mobile-scroll li.active {
        background-color: #30709f;
        color: white;
    }

    .mobile-scroll li:not(.active) {
        background-color: #f3f4f6;
        border: 1px solid #e5e7eb;
        color: #30709f;
    }

    .course-container {
        width: 100%;
    }

    @media (min-width: 1024px) {
        .course-container {
            width: 80%;
        }
    }

    .course-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 1rem;
    }

    @media (min-width: 768px) {
        .course-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (min-width: 1166px) {
        .course-grid {
            grid-template-columns: repeat(5, 1fr);
        }
    }




}

.mega-dropdown {
    width: 42%;
    height: 60vh;
    left: 30% !important;
    right: 0 !important;
    top: 98%;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    position: absolute;
}

.height-adjustments{
    height: 58vh;
}

.mega-dropdown.show {
    display: block !important;
}

.mega-dropdown .list-group-item {
    border: none;
    cursor: pointer;
}

.mega-dropdown .list-group-item:hover,
.mega-dropdown .list-group-item.active {
    background-color: #f8f9fa;
    color: #30709f;
    font-weight: bold;
}

@media (min-width: 768px) and (max-width: 1280px) {
    .mega-dropdown {
        width: 70%;
        left: 15% !important;
        height: 80vh;
    }
    .height-adjustments{
        height: 76vh !important;
    }
    .hide-on-md{
        display: none;
    }
}

.thin-scroll::-webkit-scrollbar {
    width: 4px;
    height: 10px !important;
}

.thin-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.thin-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.thin-scroll::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.thin-scroll {
    scrollbar-width: thin;
    scrollbar-color: #30709f transparent;
}

.list-group-item {
    color: #3d88b7 !important;
    text-align: start !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s !important;
    margin-bottom: 8px !important;
}

.list-group-item.active {
    border-left: 8px solid #3d88b7 !important;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    color: #3d88b7 !important;
}
