* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", serif;
    overflow-y: hidden;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
  * {
    font-family: "Roboto", sans-serif;
  }
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden;
    scroll-behavior: smooth !important;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 0.5vw;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: black;
    border: 0.125vw solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.625vw;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
    cursor: pointer;
}

/* header */
header,
header .navbar,
header .navbar ul,
header .navbar ul li {
  overflow: visible !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  width: 100vw;
  height: 10vh;
  box-shadow: 0 0.3vw 0.6vw rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease-in-out;
}

.hidden {
  transform: translateY(-100%);
}

nav {
  height: 100%;
}

header .navbar .nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4vw;
  list-style-type: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

header .navbar .nav-menu li {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

header .navbar .nav-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 1vw;
}

header .navbar .nav-menu li a:hover {
  color: darkred;
}

/* Dropdown Styles */
header .dropdown {
  position: relative;
  overflow: visible;
}

header .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 0 0 0.3vw 0.3vw;
  display: none !important;
  width: 10vw;
  z-index: 1000;
  margin: 0;
  padding: 0 !important;
}

header .dropdown-menu li {
  width: 100%;
  list-style: none;
  padding: 0.5vw;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header .dropdown-menu li a {
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: black;
  font-size: 1vw;
  display: block;
  padding: 1vh 0;
  transition: color 0.3s ease-in-out;
}

header .dropdown-menu li a:hover {
  color: darkred;
}

header .dropdown a {
  display: flex;
  align-items: center;
}

header .dropdown a div {
  margin-left: 0.5vw;
  transition: transform 0.3s ease-in-out;
}

header .dropdown:hover a div {
  transform: rotate(180deg);
}

header .dropdown:hover .dropdown-menu {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  height: auto !important;
}

/* Logos */
header .acmLogo {
  height: 7vh;
  width: 7vh;
  margin-left: 3vw;
  cursor: pointer;
}

header .tiuLogo {
  height: 7vh;
  width: 7vh;
  margin-left: 1vw;
  cursor: pointer;
}

header .technoLogo {
  height: 5vh;
  width: 35vh;
  margin-right: auto;
  margin-left: 1vw;
  cursor: pointer;
}

/* Register Button */
header nav .reg {
  font-size: 1.1vw;
  font-weight: 700 !important;
  color: #fff !important;
  background-color: rgb(255, 35, 35) !important;
  padding: 1.55vh 2.25vw;
  margin-right: 4vw;
  border-radius: 0.25vw;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out,
    box-shadow 0.5s ease-in-out;
}

header nav .reg:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

header nav .active {
  color: rgb(255, 35, 35) !important;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 1vw;
}

.hamburger span {
  height: 2px;
  width: 20px;
  background: #000;
  margin: 2px 5px;
  transition: all 0.3s;
}

/* Tablet styles: Devices between 769px and 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  header {
    height: 10vh;
    padding: 0 4vw;
  }
  header .acmLogo,
  header .tiuLogo {
    height: 6vh;
    width: 6vh;
    margin-left: 2vw;
  }
  header .technoLogo {
    height: 4.5vh;
    width: auto;
  }
  header .navbar .nav-menu {
    gap: 2vw;
  }
  header .navbar .nav-menu li a {
    font-size: 1.5vw;
  }
  header nav .reg {
    font-size: 1.5vw;
    padding: 1vh 2vw;
  }
  header .dropdown-menu {
    width: 20vw;
  }
}

/* Mobile styles: Devices up to 768px */
@media screen and (max-width: 1024px) {
  header {
    flex-direction: row;
    height: auto;
    padding: 1vh 2vw;
  }

  /* Show hamburger and hide nav-menu initially */
  .hamburger {
    display: flex;
  }

  header .navbar .nav-menu {
    display: none;
    position: absolute;
    top: 6.5vh; /* Adjust based on header height */
    right: 0;
    flex-direction: column;
    gap: 2vw;
    width: 40%;
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }
  .navbar .nav-menu.active {
    display: flex;
  }

  /* Adjust logos for mobile */
  header .acmLogo,
  header .tiuLogo {
    height: 4vh;
    width: 4vh;
    margin-left: 2vw;
  }
  header .acmLogo {
    margin-right: -5vw;
  }
  header .tiuLogo {
    margin-left: auto;
  }
  header .technoLogo {
    height: 2.5vh;
    width: auto;
    margin: 1vh auto;
    margin-left: 2vw;
    display: block;
  }
  /* Center nav items and adjust spacing */
  header .navbar .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 1vh 0;
  }
  header .navbar .nav-menu li a {
    font-size: 3vw;
    font-weight: 400;
  }
  /* Adjust register button for mobile */
  header nav .reg {
    font-size: 3vw;
    padding: 0.8vh 6vw;
    border-radius: 0.5vw;
    margin: 1vh auto;
  }
  /* Dropdown adjustments */
  header .dropdown-menu {
    width: 40vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Base Styles (Desktop) */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20vh 5vw;
  margin: 0;
  padding-bottom: 0;
}

.main-content .heading {
  width: 100%;
  font-size: 3vw;
  font-weight: 700;
  margin-bottom: 5vh;
  text-align: start;
}

.main-content .content-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5vw;
  margin-bottom: 5vh;
}

.main-content .contents {
  width: 45%;
}

.main-content .content {
  font-size: 1.15vw;
  font-weight: 400;
  text-align: left;
  margin-bottom: 2vh;
  line-height: 2;
}

.main-content a {
  color: #0000FF;
  text-decoration: none;
}

.main-content a:hover {
  color: #0000FF;
  text-decoration: underline;
}

.main-content img {
  width: 45%;
  border-radius: 0.75vw;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
  margin: 2vh 0.5vw;
  object-fit: cover;
}

/* Specifics for each section */
.about-tiu-wb img {
  height: 45vw;
}

.about-acm {
  padding-top: 5vh;
}

.about-acm img {
  height: 35vw;
}

.about-acm .content-box {
  flex-direction: row-reverse;
}

.about-acm-india {
  padding-top: 5vh;
  margin-bottom: 10vh;
}

.about-acm-india .content-box-1 img {
  height: 35vw;
  transform: rotateY(180deg);
}

.about-acm-india .content-box-2 {
  flex-direction: row-reverse;
}

.about-acm-india .content-box-2 img {
  height: 30vw;
}

/* Tablet Styles */
@media (max-width: 768px) {
  .main-content {
      padding: 0vh 4vw;
  }
  .main-content .heading {
      font-size: 5vw;
      margin-bottom: 4vh;
  }
  .main-content .content-box {
      flex-direction: column;
      gap: 3vh;
      align-items: center;
  }
  .main-content .contents,
  .main-content img {
      width: 90%;
  }
  .main-content .content {
      font-size: 2.5vw;
      line-height: 1.8;
  }
  .about-tiu-wb img {
      height: auto;
      max-height: 60vw;
  }
  .about-acm img,
  .about-acm-india .content-box-1 img,
  .about-acm-india .content-box-2 img {
      height: auto;
      max-height: 50vw;
  }
  #about-acm img{
     height: auto;
    max-height: 70vw;
  }

}

/* Mobile Styles */
@media (max-width: 768px) {
  .about-tiu-wb {
    padding-top: 12.5vh !important;
  }
  .main-content {
      padding: 0 7vw;
      padding-bottom: 5vh;
  }
  .main-content .heading {
      font-size: 6vw;
      font-weight: 400;
      margin-bottom: 3vh;
  
  }
 
  .main-content .content-box {
      flex-direction: column;
      gap: 2vh;
      align-items: center;
      margin-bottom: 0;
  }
  .main-content .contents,
  .main-content img {
      width: 100%;
  }
  .main-content .content {
      font-size: 3.5vw;
      font-weight: 300;
      line-height: 1.7;
  }
  .main-content img {
      margin: 2vh 0;
      border-radius: 1vw;
      box-shadow: none;
  }
  .about-tiu-wb img,
  .about-acm img,
  .about-acm-india .content-box-1 img,
  .about-acm-india .content-box-2 img {
      height: auto;
      max-height: 70vw;
  }
}

/* Tablet styles: Devices between 769px and 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    padding: 0vh 3vw;
    
}
.main-content .heading {
    font-size: 5.1vw;
    margin-bottom: 3vh;

}
#about-tiu-wb .heading{
  margin-top: 10vh;
}
.main-content .content {
  font-size: 1.7vw;
}

#about-tiu-wb img{
  margin-top: 3vh;
  height: 57vh;
}

#about-acm img{
  height: 50vh;
  margin-top: 1.2vh;
}

.main-content .content {
  width: 100%;   
  display: block;  
  clear: both;     
}

.main-content img {
  display: block;
  margin: 2vh auto;
  height: auto;
  max-width: 100%;
}
.content-box-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  align-items: flex-start;
}

.contents {
  flex: 1 1 55%;
}

.content-box-1 img {
  flex: 1 1 40%;
  max-width: 100%;
  border-radius: 8px;
}

.about-acm-india .content-box-1 img{
  height: 40vh;
}

}

/* Footer */
/* Base Footer Styles */
.footer {
  background-color: #0d1128;
  color: #fff;
  padding: 15vh 10vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: auto;
  flex-wrap: wrap;
}

.footer-column {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  width: max-content;
  margin-bottom: 2vh;
}

.footer-column:nth-last-of-type(1) {
  align-items: flex-end;
}

.footer-column:nth-last-of-type(1) > div {
  width: 100%;
  display: flex;
  justify-content: center !important;
}

.footer-column .title {
  font-size: 1.5vw;
  font-weight: 500;
  margin-bottom: 1.5vh;
  margin-top: 5vh;
  color: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-column a {
  text-decoration: none;
  color: #fff;
  margin-bottom: 1vh;
  font-size: 1vw;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-column:nth-of-type(1) .title {
  font-size: 2vw;
}

.footer-column:nth-of-type(1) a {
  font-size: 1.5vw;
}

.footer-column .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 0;
  color: #fff;
}

.footer-column .social-icons img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: invert(1);
}

.footer-column .social-icons img:hover {
  transform: scale(1.1);
}

.footer-column .title .svg {
  width: 100%;
  height: auto;
  margin-right: 0.5vw;
  margin-bottom: 1vh;
}

.footer-column .title .logo,
.footer-column .title .acmlogo {
  width: 5vw;
  margin-right: 0.5vw;
}

.footer-column .title .name {
  filter: invert(1);
}

.footer-column .email,
.footer-column .address {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  color: #fff;
  margin: 0.5vh 0.25vw;
}

.footer-column .email i,
.footer-column .address i {
  font-size: 1.5vw;
  margin-right: 0.5vw;
  margin-top: 0.5vh;
  color: #fff;
}

#map {
  width: 90%;
  height: 40vh;
  margin-top: 4vh;
}

#map * {
  overflow: visible !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .footer {
    padding: 9vh 8vw;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    width: 100%;
    align-items: center;
  }
  .footer-column:nth-last-of-type(1) {
    align-items: center;
  }
  .footer-column .title {
    font-size: 2.5vw;
    margin-top: 4vh;
    justify-content: center;
  }
  .footer-column a {
    font-size: 1.75vw;
  }
  .footer-column:nth-of-type(1) .title {
    font-size: 3vw;
  }
  .footer-column:nth-of-type(1) a {
    font-size: 3vw;
  }
  .footer-column .social-icons img {
    width: 32px;
    height: 32px;
  }
  .footer-column .title .logo,
  .footer-column .title .acmlogo {
    width: 7vw;
  }
  .footer-column .email i,
  .footer-column .address i {
    font-size: 2vw;
  }
  #map {
    width: 95%;
    height: 35vh;
    margin-top: 3vh;
  }
}


/* Mobile Styles */
@media (max-width:1024px) {
  .footer {
    padding: 8vh 4vw;
    flex-direction: column-reverse;
    align-items: center;
    text-align: start;
  }
  .footer-column {
    width: 90%;
    align-items: center;
  }
  .footer-column .title {
    font-size: 5vw;
    margin-top: 3vh;
    justify-content: center;
  }
  .footer-column a {
    font-size: 3vw;
    font-weight: 300;
  }

  .footer-column:nth-of-type(1) .title {
    font-size: 5vw;
  }
  .footer-column:nth-of-type(1) a {
    font-size: 4vw;
  }
  .footer-column .social-icons {
    justify-content: center;
  }
  .footer-column .social-icons img {
    width: 24px;
    height: 24px;
  }
  .footer-column .title .logo,
  .footer-column .title .acmlogo {
    width: 15vw;
  }
  .footer-column .email i,
  .footer-column .address i {
    font-size: 4vw;
  }
  #map {
    width: 80%;
    height: 25vh;
    margin-top: 3vh;
  }
}

.openInPC {
  display: none;
}

@media (max-width: 1024px) {
  .openInPC {
    display: block;
    color: #000;
    font-size: 1.5vw;
    font-weight: 600;
    text-align: center;
    background-color: #cfff41;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000000;
  }
}
