:root {
  --navbar-bg: rgba(0, 0, 0, 0.9); /* Main navbar background */
  --navbar-bg-scrolled: rgba(
    0,
    0,
    0,
    0.9
  ); /* Navbar background when scrolled */
  --navbar-text: #e0e0e0; /* Text color */
  --navbar-hover: #ffffff; /* Hover color for links */
  --dropdown-bg: var(--navbar-bg); /* Unified dropdown background with navbar */
  --dropdown-border: rgba(255, 255, 255, 0.1);
  --accent-color: #0071e3; /* Accent color */
  --hover-color: #0071e3; /* Hover effect color */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.college-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  align-items: center;
  margin-top: 0 !important; /* Remove unnecessary margin */
  padding-top: 0;
  text-decoration: none;
}
body.homepage .college-name {
  margin-top: 25px; /* Adjust as needed */
}
.college-text span {
  text-decoration: none !important;
}

.college-name {
  font-size: 1.5rem; /* Larger size for "SRI VENKATESHWARA" */
  font-weight: bold;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
}

.college-subtitle {
  font-size: 1rem; /* Slightly smaller for "COLLEGE OF ENGINEERING" */
  font-weight: normal;
  text-decoration: none;
  color: white;
  letter-spacing: 2px; /* Adjust spacing for style */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  background-color: white;
  color: var(--navbar-text);
}

body:not(.homepage) #nav-navbar {
  background-color: var(--navbar-bg) !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}
#nav-navbar {
  background-color: var(--navbar-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#nav-navbar:hover {
  background-color: var(--navbar-bg-scrolled);
}

.nav-container {
  height: 15dvh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: center; /* Centers the entire navbar */
  width: 100%;
  background-color: black;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navbar-text);
}

.nav-logo img {
  height: 60px;
  width: 300px;
  margin-right: 10px;
}

.nav-logo span {
  font-size: 20px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style-type: none;
  
}

.nav-item {
  position: static;
}

.nav-link {
  color: var(--navbar-text);
  text-decoration: none;
  padding: 10px 5px;
  display: block;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.nav-link:hover {
  color: var(--navbar-hover);
  background-color: var(--accent-color);
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 5px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 130px;
  left: 0;
  width: 100%;
  height: 60vh;
  background-color: var(--dropdown-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  margin-top:-30px;
}

.dropdown-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
}

.dropdown-column {
  flex: 1;
  margin-right: 40px;
}

.dropdown-column:last-child {
  margin-right: 0;
}

.dropdown-column h3 {
  color: var(--accent-color);
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.dropdown-column ul {
  list-style-type: none;
}

.dropdown-column ul li {
  margin-bottom: 10px;
}

.dropdown-column ul li a {
  color: var(--navbar-text);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
}

.dropdown-column ul li a:hover {
  color: var(--navbar-hover);
  background-color: var(--accent-color);
}

#nav-toggle {
  display: none;
}

/* Initial state of the navbar */
#nav-navbar {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* When the navbar is scrolled */
#nav-navbar.scrolled,
.nav-dropdown.scrolled {
  background-color: var(--navbar-bg-scrolled);
}

/* Ensure the nav menu is scrollable in mobile view */
.nav-menu.active {
  max-height: 100vh; /* Set max height to the viewport height */
  overflow-y: auto; /* Enable scrolling within the mobile nav menu */
}

/* Prevent body scrolling when the nav menu is open */
body.nav-open {
  overflow: hidden;
}

img {
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: cover;
  transition: all 200mslinear;
}

.card img {
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: fill;
  transition: all 200mslinear;
}

 /* Media Queries start */
@media only screen and (max-width: 768px) {

    .nav-logo img {
    height: 60px; /* Adjust logo size */
    width: 300px; /* Adjust logo size */
    margin-right: 10px; /* Space between the logo and text */
  }

  .dropdown-column h3 {
    color: var(--accent-color);
    font-size: 16px !important;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* stop scrolling */

  html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overscroll-behavior: none; /* prevents scroll chaining/elastic bounce */
}
body {
  width: 100%;
}

}

 html, body{
        overscroll-behavior: none; /* prevents scroll chaining/elastic bounce */

    }

/* For Mobile devices */
@media only screen and (max-width: 1199px) {

  .nav-item:hover .nav-dropdown {
    display: block;
  }

  .nav-container {
    height: 10dvh;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--navbar-bg-scrolled);
    padding: 20px 0;
    max-height: 100vh;
    overflow-y: auto; /* Enable scrolling in mobile view */
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 15px 5px;
    
  }

  .nav-dropdown {
    position: static;
    height: auto;
    display: none;
  }

  .nav-dropdown.active {
    display: block;
  }

  .dropdown-content {
    flex-direction: column;
    padding: 20px;
  }

  .dropdown-column {
    margin-right: 0;
    margin-bottom: 20px;
  }


 .nav-logo img {
    height: 140px; /* Adjust logo size */
    width: 736px; /* Adjust logo size */
    margin-right: 10px; /* Space between the logo and text */
  }

  #nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  #nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--navbar-text);
    margin: 5px 0;
    transition: 0.4s;
  }

  #nav-toggle.active span:nth-child(1) {
    margin-right: 13rem;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    color: var(--navbar-text);
    margin-right: 20px; /* Spacing between the logo and navbar items */
  }
}
/* end of style for mobile device */

 /* Media Queries start */
@media only screen and (max-width: 760px) {

    .nav-logo img {
    height: 60px; /* Adjust logo size */
    width: 300px; /* Adjust logo size */
    margin-right: 10px; /* Space between the logo and text */
  }

}

/* Laptop Devices */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  /* Container for the navbar - ensures it spans the full width */
.nav-container {
  height: 15dvh;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between logo+text and navbar items */
  padding: 0 20px;
  width: 100%;
  max-width: 100%; /* No limit on width, allow it to expand */
  background-color: black;
}

/* Logo and text on the left */
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--navbar-text);
  margin-right: 20px; /* Spacing between the logo and navbar items */
}

.nav-logo img {
  height: 133px; /* Adjust logo size */
  width: 690px; /* Adjust logo size */
  margin-right: 10px; /* Space between the logo and text */
  margin-left: 0px !important;
}

.nav-logo span {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* Each navbar item */
.nav-item {
  position: static;
  margin-right: 15px;
}

.nav-link {
  color: var(--navbar-text);
  text-decoration: none;
  padding: 10px 5px;
  display: block;
  font-size: 1.25rem !important;
  transition: all 0.3s ease;
  border-radius: 20px;
  white-space: nowrap; /* Prevent wrapping of text */
}

.nav-link:hover {
  color: var(--navbar-hover);
  background-color: var(--accent-color);
}


.college-name {
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(to right, #000000, #333333);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.8); /* Subtle white text-shadow */
}

.college-subtitle {
  font-size: 0.75rem;
  font-weight: normal;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(to right, #000000, #333333);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 2px;
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.8); /* Subtle white text-shadow */
}

.college-subtitles {
  font-size: 0.85rem;
  font-weight: normal;
  text-decoration: none;
  color: white;
  letter-spacing: 2px;
  padding-bottom: 10px; 
}


  body.homepage .college-name {
    margin-top: 25px;
}

}

/* Desktop Devices */
@media only screen and (min-width: 1440px) {
  /* Container for the navbar - ensures it spans the full width */
.nav-container {
  height: 15dvh;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between logo+text and navbar items */
  padding: 0 20px;
  width: 100%;
  max-width: 100%; /* No limit on width, allow it to expand */
  background-color: black;
 margin-top: -1rem;
}



/* Logo and text on the left */
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--navbar-text);
  margin-right: 20px; /* Spacing between the logo and navbar items */
}

.nav-logo img {
  height: 70px !important; /* Adjust logo size */
  width: 400px; /* Adjust logo size */
  margin-right: 10px; /* Space between the logo and text */
}

.nav-logo span {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity:0.96;
  background-color: black;
}

/* Each navbar item */
.nav-item {
  position: static;
  margin-right: 15px;
}

.nav-link {
  color: var(--navbar-text);
  text-decoration: none;
  padding: 10px 5px;
  display: block;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 20px;
  white-space: nowrap; /* Prevent wrapping of text */
}

.nav-link:hover {
  color: var(--navbar-hover);
  background-color: var(--accent-color);
}


.college-name {
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(to right, #000000, #333333);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.8); /* Subtle white text-shadow */
}

.college-subtitle {
  font-size: 1.2rem !important;
  font-weight: normal;
  text-decoration: none;
  color: transparent;
  background: linear-gradient(to right, #000000, #333333);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 2px;
  text-shadow: 0 0 0.5px rgba(255, 255, 255, 0.8); /* Subtle white text-shadow */
}

.college-subtitles {
  font-size: 0.85rem;
  font-weight: normal;
  text-decoration: none;
  color: white;
  letter-spacing: 2px;
  padding-bottom: 10px; 
}


  body.homepage .college-name {
    margin-top: 25px;
}

 .nav-item.has-dropdown:hover .nav-dropdown {
    display: block;
    margin-top: 1rem !important;
}



}

.nav-top-container {
  height: 7dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  width: 100%;
  max-width: 100%; /* No limit on width, allow it to expand */
  background-color: black;
  text-align: center;
}



@media only screen and (orientation: landscape) and (max-width: 1024px) {
   .nav-logo img {
    height: auto;
    width: 80vw;             /* increase from 60vw to 80vw */
    max-width: 400px !important;        /* increase max width from 300px */
    max-height: 12dvh;       /* keep to fit inside nav height */
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

body {
    font-size: 0.85rem; /* or try 0.75rem */
  }

  .impactContent {
    max-width: 700px;
    margin: 42vh 0 0 5vw;
    padding: 2rem;
    background: black;
    border-radius: 12px;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s 
ease-out, transform 1.2s 
ease-out;
    text-align: left;
    height: 79vh;
}

.scroll-section {
    position: relative;
    height: 165vh !important;
    display: flex
;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    padding-left: 5vw;
}

.Accreditation-container {
        padding: 0rem !important;
    }
.vision-desc {
        margin-top: -3rem !important;
    }

        .inst-heading {
        margin-top: -2rem !important;
    }

    .hero h2 {
    font-size: 3rem;
    margin-top: -21px !important;
    letter-spacing: 2px;
    color: #0071e3;
    margin-bottom: 10px;
}
  
}

  @media only screen and (min-width: 401px) and (max-width: 1199px) {
    .dropdown-column ul li a {
        color: #fff;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
        padding: 0.6rem 1rem;
        border-radius: 0.75rem;
        display: block;
        font-size: 1rem !important;
        line-height: 1.5;
        background-color: #111;
        -webkit-tap-highlight-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}


