/* lg */
@media (min-width: 1200px) {
  .enquiry-item {
    width: 60%;
    margin-left: 16% !important;
  }
  .skating {
    margin-top: 0px;
    background-color: var(--red);
  }

  .dropdown-menu {
    min-width: 400px !important;
  }

  #health:hover #sub-menu-id {
    display: block;
    position: absolute;
    max-width: 270px;
    margin-left: 384px;
    margin-top: -45px;
  }

  #sub-menu-id {
    min-width: 334px !important;
  }

  #third-sub-menu-id {
    position: absolute;
    margin-left: 97px !important;
    margin-top: -35px !important;
  }

  li.dropdown-li:hover #third-sub-menu-id {
    display: block;
    position: relative;
    z-index: 3;
    width: 100% !important;
    background-color: white;
  }
}

/* md */
@media (min-width: 992px) and (max-width: 1199px) {
  .container.top_section.desktop {
    display: flex;
  }

  .dropdown-menu {
    min-width: 400px !important;
  }

  #health:hover #sub-menu-id {
    display: block;
    position: absolute;
    max-width: 270px;
    margin-left: 384px;
    margin-top: -45px;
  }

  #third-sub-menu-id {
    position: absolute;
    max-width: 333px;
    margin-left: 124px !important;
    margin-top: 0px !important;
  }

  li.dropdown-li:hover #third-sub-menu-id {
    display: block;
    position: relative;
    /* width: 100%; */
    z-index: 3;
    width: 100%;
    background-color: white;
  }

  .col-md-2.logo_box,
  .col-md-8,
  .col-md-2.logo_box #carousel-example-generic {
    display: flex;
    align-items: center;
  }

  .col-md-2.logo_box img,
  .col-md-2.logo_box #carousel-example-generic img,
  .col-md-8 .row.college_name {
    width: 100%;
  }

  .nav > li > a {
    color: #fff;
    padding: 12px 5px;
    font-size: 16px;
  }

  .enquiry-item {
    width: 60%;
    margin-left: 16% !important;
  }

  .skating .col-md-10 p span.icon {
    margin-right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background-color: var(--red);
  }

  .college_name h1 small {
    font-family: "Times New Roman", Times, serif;
    font-size: medium;
    margin: 0px;
    color: var(--darkBlue);
  }

  .header-title {
    width: 100%;
  }

  .college_name h1 {
    font-family: "Cooper Black Regular";
    font-weight: normal;
    color: var(--red);
    font-size: 33px;
    text-align: center;
    line-height: 3;
    padding-left: 0px;
    padding-top: 50px;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .logo_box {
    display: block;
    margin-bottom: 14px;
    margin-top: 14px;
    padding: 0px;
  }

  .skating .col-md-10 {
    position: relative;
    min-height: 1px;
    padding-left: 0px;
    margin-right: 0;
    padding: 0;
    max-width: 100%;
  }

  .skating .col-md-10 p {
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }
}

/* sm */
@media (min-width: 768px) and (max-width: 991px) {
  .container.top_section.desktop {
    display: flex;
  }

  .col-md-2.logo_box,
  .col-md-8,
  .col-md-2.logo_box #carousel-example-generic {
    display: flex;
    align-items: center;
  }

  .col-md-2.logo_box img,
  .col-md-2.logo_box #carousel-example-generic img,
  .col-md-8 .row.college_name {
    width: 100%;
  }

  .nav > li > a {
    color: #fff;
    padding: 12px 5px;
    font-size: 16px;
  }

  .enquiry-item {
    width: 60%;
    margin-left: 16% !important;
  }

  .skating {
    margin-top: 0px;
    background-color: var(--red) !important;
  }

  .skating .col-md-10 p span.icon {
    margin-right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background-color: var(--red);
  }

  .college_name h1 small {
    font-family: "Times New Roman", Times, serif;
    font-size: medium;
    margin: 0px;
    color: var(--darkBlue);
  }

  .header-title {
    width: 100%;
  }

  .college_name h1 {
    font-family: "Cooper Black Regular";
    font-weight: normal;
    color: var(--red);
    font-size: 33px;
    text-align: center;
    line-height: 3;
    padding-left: 0px;
    padding-top: 50px;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .logo_box {
    display: block;
    margin-bottom: 14px;
    margin-top: 14px;
    padding: 0px;
  }

  .skating .col-md-10 {
    position: relative;
    min-height: 1px;
    padding-left: 0px;
    margin-right: 0;
    padding: 0;
    max-width: 100%;
  }

  .skating .col-md-10 p {
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .welcome-text h2 {
    font-size: 30px;
    font-family: "Cooper Black";
    font-weight: 900;
    color: var(--orange);
  }

  p.animated.bounceInUp.weclome-to-info {
    text-align: start;
    color: var(--orange) !important;
    font-family: Arial;
    padding-left: 0px;
  }

  .carousel-caption h2 {
    font-size: 30px;
    font-family: "Arial Black";
    font-weight: 900;
    color: var(--white) !important;
  }

  .carousel-caption {
    text-transform: uppercase;
    font-weight: 900;
    background-color: rgba(0, 0, 0, 0.4);
    background-color: transparent;
    padding-top: 110px;
    padding-left: 50px;
    text-align: left;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .welcome-text {
    text-transform: uppercase;
    font-weight: 900;
    background-color: rgba(0, 0, 0, 0.4);
    background-color: transparent;
    padding-top: 120px;
    padding-left: 50px;
    text-align: left;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .container#events {
    margin-top: 0px;
    margin-bottom: 50px;
  }

  .home-about-text {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
    width: 100% !important;
  }

  .accreditation-container.welcome {
    padding: 0;
    margin: 0;
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .image-container {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  .dropdown:hover .dropdown-menu {
    min-width: 100% !important;
  }

  .container-fluid > .navbar-collapse {
    margin: 0px !important;
    height: 65vh !important;
  }

  .section-two-container {
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
  }

  .col-md-12 {
    position: relative;
    min-height: 1px;
    padding-right: 0;
    padding-left: 0px;
  }

  p.animated.bounceInUp.weclome-to-info {
    text-align: start;
    color: var(--orange) !important;
    font-family: Arial;
    padding-left: 0px;
  }

  .welcome-text {
    text-transform: uppercase;
    font-weight: 900;
    background-color: rgba(0, 0, 0, 0.4);
    /* background-color: transparent; */
    padding-top: 150px;
    padding-left: 15px;
    text-align: left;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .navbar.navbar-default.mobile {
    position: fixed;
  }

  div.greetings {
    margin-top: 128px;
    height: 40px;
    box-sizing: border-box;
    color: var(--darkBlue);
  }

  .navbar.navbar-default.mobile {
    background: none;
    background-color: var(--darkBlue);
    border: none;
    border-radius: 0px;
    padding-bottom: 0px;
    width: 100%;
    z-index: 1000;
  }

  .container#events {
    margin-top: 0px;
    margin-bottom: 50px;
  }

  .home-about-text {
    margin-top: 0px;
    position: relative;
    min-height: 1px;
    padding: 15px 10px 30px 15px;
  }

  .maincarousel > .item > img {
    display: block;
    height: 33vh;
    min-width: 115%;
  }

  .bi.bi-chevron-left,
  .bi.bi-chevron-right {
    font-size: 25px;
    background-color: transparent !important;
    color: var(--grey) !important;
  }

  .image-container {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .Accreditation h2 {
    font-family: "Cooper Black Regular";
    color: var(--darkBlue) !important;
    margin-bottom: 40px;
  }

  .image-row {
    flex-direction: column; /* Stack images vertically */
    align-items: center; /* Center images */
    gap: 5px; /* Reduce spacing between images */
  }

  .img-group {
    gap: 40px !important;
  }

  .custom-img {
    max-width: 80%; /* Make images take 80% of the screen width */
    height: auto; /* Maintain aspect ratio */
  }

  #multiImageCarousel {
    height: 580px;
  }

  .xcard-img::after {
    height: 100%;
    top: 86px !important;
    background: linear-gradient(
      to right,
      rgba(242, 242, 242, 0) 0%,
      rgba(242, 242, 242, 0.55) 35%,
      rgba(242, 242, 242, 0.85) 65%,
      #f2f2f2 100%
    );
  }

  .xcard-img {
    position: relative;
    overflow: hidden;
  }

  .xcard-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    top: 86px !important;
    width: 100%;
    height: 80px;
    background: linear-gradient(
      to top,
      #f2f2f2 0%,
      rgba(242, 242, 242, 0.85) 35%,
      rgba(242, 242, 242, 0.55) 65%,
      rgba(242, 242, 242, 0) 100%
    );
    pointer-events: none;
  }
}

/* XS Portrait */
@media (max-width: 767px) {
  .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }

  .topImg .container.home {
    padding-top: 0 !important;
  }

  /* Move the border & background from xcard → xcard-link */
  .xcard-link {
    background: #f2f2f2;
    border-radius: 35px;
    border: 7px solid var(--darkBlue);
    padding-bottom: 20px;
    display: block;
    overflow: hidden;
  }

  /* Remove border from the internal .xcard on mobile */
  .xcard {
    border: none;
    border-radius: 0;
    background: transparent;
    height: auto;
    flex-direction: column;
    text-align: center;
  }

  .xcard-textbox {
    position: relative;
    z-index: 5;
    margin-left: 0;
    padding-right: 15px;
    max-width: 121%;
  }

  .xcard-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0px;
  }

  /* .xcard-img,
  .xcard-content {
    width: 100%;
  }

  .xcard-content {
    width: 100%;
    padding: 15px;
    margin: 532px 0px 15px 0px;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px 15px 15px 15px;
  } */

  .topImg .container h1.home:after {
    position: absolute;
    content: "";
    height: 5px;
    left: 0;
    right: 0;
    width: 180px;
    background: var(--white);
    margin-top: 43px;
    margin-left: 20px;
  }

  /* Buttons now naturally appear inside xcard-link border */
  .xcard-factsheet-btn,
  .xcard-apply-btn {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 85%;
    margin: 12px auto 0 auto;
    display: block;
  }

  .summarySction .sidebar {
    height: auto !important;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #health:hover #sub-menu-id {
    display: block;
    position: relative;
    max-width: 333px;
    margin-left: 40px !important;
    width: 100%;
    margin-top: 3px;
    border-bottom: 2px solid var(--darkBlue);
    transition: opacity 1s ease-in;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  }

  li.dropdown-li:hover #third-sub-menu-id {
    display: block;
    position: relative;
    margin-left: 35px !important;
    z-index: 1;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--darkBlue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  }

  .contentToggle {
    padding-top: 30px;
  }

  #third-sub-menu-id {
    margin-top: -8px;
  }

  .col-12.center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .center .btn-red {
    width: 100%;
    margin-bottom: 10px;
  }

  .col-md-6.col-md-offset-3 {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .collapse-content {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .collapse-content .well {
    padding-left: 15px;
    padding-right: 15px;
  }

  .row {
    margin-right: 0px;
    margin-left: 0px;
  }

  .container-fluid > .navbar-header {
    margin: 0 !important;
    margin-left: 0;
    margin-right: 0;
    background-color: var(--red);
  }

  .logo_box img {
    width: 40px !important;
    margin-top: -29px;
  }

  /* .navbar-header{
  background-color: var(--darkBlue);
} */

  .navbar-default .navbar-collapse {
    border-color: none !important;
  }

  .container-fluid {
    padding: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .navbar.navbar-default.mobile {
    background: none;
    background-color: var(--darkBlue);
    border: none;
    border-radius: 0px;
    padding-bottom: 0px;
  }

  .container.top_section.mobile {
    margin: 0;
    padding: 0;
  }

  .college_name h1 small {
    font-family: "Times New Roman", Times, serif;
    font-size: 17px !important;
    line-height: 3 !important;
    margin: 0 !important;
    color: var(--darkBlue) !important;
  }

  .college_name h1 {
    font-size: 26px !important;
    padding-left: 0px;
    font-family: "Cooper Black Regular";
    font-weight: normal;
    color: var(--red);
    text-align: center;
    line-height: 0;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 5px;
  }

  .col-md-8.title-section {
    position: relative;
    min-height: 0;
    padding: 0 !important;
  }

  /* .carousel-inner.topCarousel{
      position: relative;
      width: 100%;
      height: 40px;
      overflow: hidden;
  } */

  .item.mobile.active {
    padding-top: 30px !important;
    padding-left: 45%;
  }
  .item.mobile {
    padding-top: 30px !important;
    padding-left: 45%;
  }

  li.dropdown-li:hover #third-sub-menu-id {
    display: block;
    position: relative;
    margin-left: 0px;
    z-index: 1;
    background-color: var(--white);
    border-bottom: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Adjust the shadow values as needed */
  }

  .dropdown:hover .dropdown-menu {
    min-width: 100% !important;
  }

  .skating {
    margin-top: 0px;
    background-color: var(--red);
  }

  .navbar-default {
    background: none;
    background-color: var(--green);
    border: none;
    border-radius: 0px;
    /* margin-bottom: 5px; */
    padding-bottom: 10px;
  }

  .navbar-toggle {
    border: none;
  }

  .navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
  }

  .carousel-caption,
  .welcome-text {
    text-transform: uppercase;
    font-weight: 900;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 0px;
    padding-left: 15px;
    text-align: left;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .home-image {
    margin-top: 1px;
    margin-left: 0px !important;
  }

  .carousel-caption h2 {
    font-size: 25px;
    font-family: "Arial Black";
    font-weight: 900;
    color: var(--white) !important;
  }

  .col-md-12.noPaddingLeft {
    padding-right: 0px;
  }

  .third_section {
    padding: 10px;
  }

  .navbar-default .navbar-nav > li > a,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: var(--white);
    padding-top: 14px;
  }

  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: var(--darkBlue);
    padding-top: 14px;
    padding-left: 7px;
  }

  .navbar-nav .open .dropdown-menu > li > a {
    padding: 0px 15px 5px 0px;
  }

  .whyus .row > p {
    width: 100%;
  }

  .third_section h3 {
    margin-top: 0px;
  }

  .col-md-6 {
    width: 100%;
    padding-top: 0px;
  }

  #picture {
    width: 100%;
    padding-top: 25px;
  }

  #upgrade {
    width: 100%;
  }
  #why-upgrade {
    color: var(--darkBlue);
    font-family: "Times New Roman";
    font-style: italic;
    font-size: x-large;
  }
  #faculty {
    margin-left: 0;
  }
  .container-faculty {
    font-family: "Cooper Black Regular";
    margin-top: -30px;
    padding-left: 6%;
    font-size: 26px;
    padding-bottom: 2px;
    color: #000;
  }

  .nav.nav-tabs {
    font-family: "Cooper Black Regular";
    font-size: 10px;
    padding-left: 0px;
    margin-left: 0px;
    display: flex;
    justify-items: stretch;
  }

  .borderRight {
    border-right: none;
    border-bottom: 2px solid var(--orange);
    padding: 10px;
  }

  .infoBox a {
    border: none;
    width: 100%;
    display: block;
  }

  .enquiry-item {
    width: 100% !important;
  }

  .navbar-nav .open .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    color: var(--darkBlue);
    background-color: var(--white);
    border: 0;
    border-bottom: 2px solid var(--darkBlue);
    -webkit-box-shadow: none;
    box-shadow: none;
    transition: opacity 1s ease-in;
  }

  .container-fluid > .navbar-collapse {
    margin: 0px !important;
    padding: 0;
  }

  .navbar-nav {
    margin: 0 !important;
  }

  .dropdown-li.li-border-bottom {
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  }

  .topImg .container h2 {
    margin-top: 60%;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 33px;
    padding-bottom: 24px;
    color: var(--white);
    margin-bottom: 30px;
  }

  .topImg .container h1.home {
    margin-top: 90%;
    font-size: 30px;
  }

  .topImg .container {
    padding-top: 0;
  }

  .topImg .container .credentials {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0;
    color: var(--white);
    border: 1px solid var(--orange);
    margin-bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
  }

  .topImg {
    /* height: 85vh; */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .topImg.home {
    height: auto !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  svg.bi.bi-whatsapp {
    margin-left: 0px !important;
  }

  li.dropdown-li:hover #third-sub-menu-id {
    display: block;
    position: relative;
    margin-left: 0px;
    z-index: 1;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--darkBlue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  }

  .welcome-text h2 {
    font-size: 19px;
    font-family: "Cooper Black";
    font-weight: 900;
    color: var(--orange);
  }

  #third-sub-menu-id {
    transition: opacity 1s ease-in;
    opacity: 1s easyin;
    position: absolute;
    margin-left: 382px;
    max-width: 0px;
  }

  ul#third-sub-menu-id li {
    padding-left: 0;
  }

  ul {
    padding-left: 0;
  }

  #third-sub-menu-id li a {
    text-decoration: none;
    font-size: 15px;
    padding-left: 15px;
    font-family: arial !important;
  }

  .dropdown:hover .dropdown-menu {
    min-width: 0px !important;
  }

  .dropdown-menu {
    min-width: 0px !important;
  }

  #health:hover #sub-menu-id-matri {
    display: block;
    position: absolute;
    max-width: 100%;
    margin-left: 26px;
    margin-top: 5px;
    width: 100%;
  }

  .margin-none {
    margin: 0px 0px 0px 0px;
    font-size: 30px;
  }

  .head-column {
    margin: 0px;
    background-color: var(--darkBlue);
    padding: 15px;
  }

  .bi-arrow-left-circle,
  .bi-arrow-right-circle {
    font-size: 23px;
    background-color: transparent !important;
    color: var(--grey) !important;
  }

  .carousel-control-next {
    right: 0%;
    bottom: -8% !important;
  }

  .carousel-control-prev {
    position: absolute;
    bottom: -8% !important;
    left: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    z-index: 5;
  }

  .carousel-control-next {
    position: absolute;
    bottom: -12%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    z-index: 5;
  }

  .carousel-control-prev {
    position: absolute;
    bottom: -13%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    z-index: 5;
  }
}

@media screen and (min-width: 768px) {
  .carousel-indicators {
    top: 80px;
  }

  .custom-img {
    max-height: 82px;
    width: auto;
    margin: 0;
    padding: 0;
  }

  #multiImageCarousel {
    height: 200px;
  }

  .img-h {
    max-height: 70px !important;
  }

  .carousel-control .glyphicon-chevron-left {
    left: 80% !important;
    top: 35%;
    color: var(--orange);
  }

  .carousel-control .glyphicon-chevron-right {
    right: 80% !important;
    top: 35%;
    color: var(--orange);
  }
}

@media (min-width: 768px) {
  /*     
    .xcard-img::after {
        height: 100%;
        top: 86px !important;
        background: linear-gradient(to right, rgba(242, 242, 242, 0) 0%, rgba(242, 242, 242, 0.55) 35%, rgba(242, 242, 242, 0.85) 65%, #f2f2f2 100%);
    }

    .xcard-img {
    position: relative; 
    overflow: hidden;
}

.xcard-img::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;   
    top: 86px !important;
    width: 100%; 
    height: 80px;
    background: linear-gradient(
        to top,
        #f2f2f2 0%,
        rgba(242, 242, 242, 0.85) 35%,
        rgba(242, 242, 242, 0.55) 65%,
        rgba(242, 242, 242, 0) 100%
    );
    pointer-events: none;
} */
}
