:root {
  --brand-color: #cf2027;
  --brand-hover: #a51b1f;
  --social-hover: #ffcccb;
  --dropdown-bg: #ffeff0;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
  width: 100%;
}
/* Apply to the entire page */
body::-webkit-scrollbar {
  width: 4px; /* You can set to 2px or 1px for ultra-thin */
}
.red {middle-menu-outer
  color: #cf2027;
}
.bg-red {
  background-color: #cf2027;
}

body::-webkit-scrollbar-track {
  background: transparent; /* Optional: make track invisible */
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Light thumb */
  border-radius: 10px;
}
h1,
h2 {
  font-family: "Times New Roman", Times, serif !important;
}

.middle-menu-outer{
  background-color:#ffffff;
}


/* Add smooth transitions */
/* Sticky header container */
.desktop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color:#ffffff;
}
.curve-outer{
  position: absolute;
    left: 0;
}
/* When scrolled down, push the whole header up slightly */
.desktop-header.hide-top-row.header-lifted {
 animation: maninmenu 0.8s ease;
 transition: all 0.5s;
 position: fixed;
 left:0px;
 right: 0px;
}
.desktop-header.hide-top-row.header-lifted .top-bar{
display: none !important;
}
/*---Header dropdown keyframes---*/
@keyframes maninmenu {
  from {
    transform: translateY(-200px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*---ram css end---*/


/* Top Bar Styles */
.top-bar {
  background-color: var(--brand-color);
  color: white;
  font-size: 14px;
  font-weight: 300 !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

/* Middle Header Styles */
.middle-header {
  background-color: white;
}

/* Responsive styles for screens below 1200px */
@media (max-width: 1199px) {
  .top-bar {
    flex-direction: column;
    padding: 8px 0;
  }
  .top-bar > div {
    width: 100% !important;
    justify-content: center !important;
    padding: 4px 0;
  }
  .social-icons {
    justify-content: center !important;
    margin-top: 8px;
  }

  .middle-header {
    flex-direction: column;
    text-align: center;
  }
  .middle-header > div {
    justify-content: center !important;
    margin: 8px 0;
  }
  .nav-second {
    justify-content: center !important;
    margin-top: 12px;
    flex-wrap: wrap;
  }
}

/* Navigation Styles */
.main-navbar {
  background-color: var(--brand-color) !important;
}

.nav-link {
  color: white !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-second .nav-link {
  color: var(--brand-color) !important;
}

.nav-second .nav-link:hover {
  text-decoration: underline;
  background-color: transparent !important;
}

.nav-second .nav-link span {
  font-size: 14px;
  color: #d8666b;
  font-weight: 500;
  transition: all 0.5s;
  transform: scale(1);
  display: block;
}
.nav-second .nav-link:hover span {
  transition: all 0.5s;
  color: #a51b1f;
  font-weight: 500;
  transform: scale(1.06);
}

.contact-info {
  font-size: 12px;
  color: var(--brand-color);
}

.contact-info .material-icons {
  font-size: 30px !important;
  color: var(--brand-color);
}

.contact-info span:last-child {
  font-size: 16px;
  font-weight: bolder;
}
.contact-info small {
  font-weight: 500 !important;
  font-size: 12px;
}
.contact-info span a {
  font-weight: bold !important;
}

/* Dropdown Styles - Desktop */
@media (min-width: 1200px) {
  .desktop-dropdown {
    position: static;
  }

  .dropdown-item:hover {
    background-color: rgba(207, 32, 39, 0.1);
    color: var(--brand-color) !important;
  }

  .desktop-dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
    transform: translateY(10px);
    display: block;
  }

  .desktop-dropdown:hover .desktop-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
  }
}

.dropdown-menu {
  background-color: var(--dropdown-bg);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 8px 16px;
  /* transition: all 0.2s; */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Image Panel Styles */
.image-panel {
  background: linear-gradient(#cf2027db, #cf2027db),
    url("./Images/header-dropdown-bg.webp") center/cover no-repeat;
  height: 100%;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile Sidebar Styles */
@media (max-width: 1199px) {
  .offcanvas {
    background-color: var(--brand-color);
    width: 280px !important;
  }

  .dropdown-item:hover {
    background-color: rgb(251, 251, 251);
    color: var(--brand-color) !important;
  }

  .navbar-nav {
    padding: 16px;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .dropdown-item {
    color: white !important;
    padding-left: 32px;
  }

  .dropdown-toggle::after {
    display: inline-block !important;
  }

  /* Mobile menu toggle button */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    color: white;
    background: transparent;
    border: 1px solid white;
    padding: 5px 10px;
    border-radius: 4px;
  }

  .mobile-menu-btn .menu-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
    margin-right: 5px;
  }

  .mobile-menu-btn .menu-icon:before,
  .mobile-menu-btn .menu-icon:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    left: 0;
  }

  .mobile-menu-btn .menu-icon:before {
    top: -6px;
  }

  .mobile-menu-btn .menu-icon:after {
    top: 6px;
  }
}

/* Button Styles */
.apply-btn {
  background-color: var(--brand-color);
  color: white;
  border: none;
  padding: 0px 10px;
  font-weight: bold;
  border-radius: 0.25rem;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  border-radius: 30px;
  font-size: 13px;
}

.apply-btn:hover {
  background-color: var(--brand-hover);
}

.mobile-announcement-text {
  white-space: normal;
  word-wrap: break-word;
}

/* Utility Classes */
.logo-placeholder {
    height: 44px;
    width: 200px;
    background-color: white;
}

.text-nowrap {
  white-space: nowrap;
}

.dropdown-menu .dropdown-item {
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.4;
}

a {
  text-decoration: none !important;
}

/* Fix for horizontal scroll */
.container-fluid {
  padding-right: 0;
  padding-left: 0;
}

/* Mobile Header Styles */
.mobile-header-container {
  display: none;
}

@media (max-width: 1199px) {
  .desktop-header {
    display: none;
  }

  @media (max-width: 1199px) {
    .mobile-header-container {
      display: block;
      background-color: white;
      position: sticky;
      top: 0;
      z-index: 1030;
      /* Add these properties to prevent flickering */
      backface-visibility: hidden;
      perspective: 1000px;
      transform: translate3d(0, 0, 0);
    }
    @media screen and (max-width: 991px) {
      .html {
        overflow-x: hidden;
      }
    }

    .mobile-top-row {
      position: relative;
      transform: translateY(0);
      will-change: transform;
      transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
      z-index: 1000;
      background: white;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Simplify the mobile header structure */
    .mobile-bottom-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      background: white;
    }


    /* Optimize the mobile menu toggle */
    .mobile-nav-toggle {
      background-color: transparent;
      color: var(--brand-color);
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      gap: 5px;
      z-index: 1001;
    }
  }
  @media screen and (min-width: 1400px) {
    .container {
      max-width: 1450px !important;
    }
  }

  .mobile-top-row {
    position: relative;
    transform: translateY(0);
    will-change: transform; /* Optimize for GPU acceleration */
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1000;
    background: white; /* Ensure content doesn't show through */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Visual separation */
  }

  .mobile-announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
  }

  .mobile-announcement-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
  }

  .mobile-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }

  .mobile-logos {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-logos img {
    height: 40px;
  }

  .sendwith-icon {
    height: 40px;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }

  .mobile-nav-toggle {
    background-color: transparent;
    color: var(--brand-color);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
}

/* Footer Styles */
:root {
  --footer-brand-color: #cf2027;
  --footer-brand-hover: #a51b1f;
  --footer-social-hover: #ffcccb;
}

.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 0 1rem;
  font-family: "Arial", sans-serif;
  font-size: 0.85rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer a:hover {
  color: var(--footer-brand-color);
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem !important;
  text-transform: uppercase;
  position: relative;
     color: #ffffff !important;
      text-align: left;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 35px;
  height: 2px;
  background: var(--footer-brand-color);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  color: #ccc;
  font-size: 0.85rem;
}

.footer-contact-info .material-icons {
  margin-right: 10px;
  color: var(--footer-brand-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-map iframe {
  border: 0;
  width: 100%;
  height: 150px;
  border-radius: 8px;
}

.footer-newsletter-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.85rem;
  width: 100%;
}

.footer-newsletter-btn {
  background-color: var(--footer-brand-color);
  border: none;
  padding: 6px 12px;
  color: #fff;
  font-size: 0.85rem;
}

.footer-newsletter-btn:hover {
  background-color: var(--footer-brand-hover);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 6px;
  transition: 0.3s ease;
}

.footer-social-icon:hover {
  background-color: var(--footer-social-hover);
  color: #000;
}

.footer-description {
  font-size: 0.85rem;
  color: black;
  line-height: 1.5;
}

.footer-university-name img {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
}
/* Mobile Sidebar Styles */
@media (max-width: 1199px) {
  .offcanvas-body .navbar-nav {
    text-align: left !important;
    padding-left: 15px !important;
    gap: 20px;
  }

  .offcanvas-body .nav-link {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .offcanvas-body .dropdown-menu {
    text-align: left !important;
  }

  .offcanvas-body .dropdown-item {
    padding-left: 15px !important;
  }
}

/*---ram css---*/

.desktop-header .middle-header {
  padding: 14px 0;
}
.desktop-header .top-bar #announcementText {
  font-weight: 300 !important;
}
.desktop-header .middle-header a.logo img {
  width: 100%;
  max-width: 150px;
  height: auto;
}

.desktop-header .middle-header .apply-btn {
  padding: 0 18px;
  position: relative;
  overflow: hidden;
}
.desktop-header .middle-header .apply-btn:hover {
  background-color: #cf2027;
}
.desktop-header .middle-header .apply-btn:after {
  content: "";
  position: absolute;
  background-color: #f7252c;
  transition: all 0.5s;
  height: 50px;
  width: 100%;
  left: 0;
  top: -50px;
  margin: 0 auto;
  z-index: 1;
}
.desktop-header .middle-header .apply-btn:hover:after {
  transition: all 0.5s;
  top: 0px;
}
.desktop-header .middle-header .apply-btn span {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.desktop-header .middle-header .apply-btn i {
  margin-top: 2px;
  font-size: 14px;
}
.desktop-header nav.navbar {
  padding: 0px;
}
.desktop-header nav.navbar ul li.nav-item a.nav-link {
  font-size: 15px !important;
  font-weight: 500 !important;
  position: relative;
  padding: 14px 0 !important;
  display: inline-block !important;
}
.desktop-header nav.navbar ul li.nav-item a.nav-link:after {
  content: "\F282";
  width: 15px;
  height: 15px;
  position: absolute;
  top: 18px;
  font-family: "bootstrap-icons";
  border: none;
  font-size: 12px;
  right: -22px;
  transition: all 0.5s;
  margin: 0;
}
.desktop-header nav.navbar ul li.nav-item a.nav-link:hover:after {
  transition: all 0.5s;
  transform: rotate(180deg);
}
.desktop-header .navbar-expand-lg .navbar-nav .dropdown-menu {
  top: 47px;
  transition: transform 0.5s ease;
  opacity: 0;
  z-index: -1;
}
.desktop-header nav.navbar ul li.nav-item:hover .dropdown-menu {
  animation: moveUpHeader 0.5s forwards;
  opacity: 1;
}
.desktop-header nav.navbar ul li.nav-item .dropdown-item {
font-size: 13px !important;
    padding: 8px 0px !important;
    position: relative;
}
.desktop-header nav.navbar ul li.nav-item .dropdown-item:hover{
background-color:transparent;
}
.desktop-header nav.navbar ul li.nav-item .dropdown-item::after{
content: "\F134";
    width: 15px;
    height: 15px;
    position: absolute;
    top: 9px;
    font-family: "bootstrap-icons";
    border: none;
    font-size: 12px;
    right:40px;
    transition: all 0.5s;
    margin: 0;
    opacity:0;
}
.desktop-header nav.navbar ul li.nav-item .dropdown-item:hover::after{
  opacity: 1;
  transition: all 0.5s;
  right:0px;
}
.desktop-header .navbar-expand-lg .navbar-nav .dropdown-menu .row h3{
font-size:16px;
margin-bottom: 32px !important;
}


/*---Header dropdown keyframes---*/
@keyframes moveUpHeader {
  from {
    transform: translateY(-200px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
 .cstm-pdng-50{
      padding-left: 20px !important;
    }
    .stu-slider-section h1{
        font-weight: bold;
    }
    
    .g-cloud-top-section{
         font-weight: bold;
    }
    section.py-5 .lead-head{
        font-weight: bold;
    }
    
    
     a.arrowhide.nav-link:after{
        display:none;
    }
    .g-cloud-top-section .headingStyle2 h1{
        font-weight:bold;
    }
    section.py-2.mb-5 h3.lead-head{
      font-weight:bold;  
    }
    .headingStyle2 h2{
       font-weight:bold;   
    }
    section.py-5.bg-light.mt-3 h1{
      font-weight:bold;   
    }
    .why-nims h3.why-heading{
       font-weight:bold;  
    }
    .media-highlight h3{
        font-weight:bold;
    }
    .spaceboth.collegetestimonials .headingStyle2 h2{
         font-weight:bold; 
    }
    
   
    
/*---ram css end---*/



@media screen and (max-width:1400px){
.middle-menu-outer .container{
    max-width: 100% !important;
    width:100%;
}
}
@media (max-width: 768px) {
  .last-footer-section.col-md-4.col-6.p-3 .h3 {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
