:root {
  /* --main-color: #be6134;
  --secondary-color: #e4a98c;
  --secondary-color2: #f9ebe3; */
  /* #f1f1f1; */

  /* --main-color: #da591b;
  --secondary-color: #073763;
  --secondary-color2: #f9ebe3; */

  --primary-color1: #da591b;
  --primary-color2: #073763;
  --secondary-color: #f5b123ff;

  /* others */
  --topaz-color: #ffd47aff;
  --snow-color: #fdf8f6;
  --peach-color: #fee7b6;
  --isabelline-color: #f1efed;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  /* background: var(--main-color); */
  background-color: rgb(195, 195, 195);
  border-radius: 20px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background-color: rgb(70, 68, 68);
  /* background: var(--main-color); */
}

body {
  font-family: "Roboto", sans-serif !important;
}

.navbar-brand>img {
  width: 120px;
}

/* 
@media (max-width: 768px) {
  .navbar-brand>img {
    width: 100px;
  }
} */
nav {
  border-bottom: 2px solid lightgray;
}

.nav-link {
  color: black !important;
}

.nav-link:hover {
  text-decoration: underline;
}

li>.dropdown-item:hover {
  text-decoration: underline;
}

li>.dropdown-item:focus {
  background-color: transparent;
  color: black;
}

li>.dropdown-item {
  color: var(--primary-color1) !important;
}

li>.dropdown-toggle,
li>.nav-link-d {
  text-decoration: none;
  color: var(--primary-color1);
  font-size: 18px;
}


li>.dropdown-toggle:hover,
li>.nav-link-d:hover {
  color: var(--primary-color1) !important;
}

li>.dropdown-toggle::after {

  vertical-align: 0.201em;
}

.dropdown-menu {
  padding: .75rem 0 !important;
}

/* header */
#header-section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 6vw;
  padding-inline: 6vw 3vw;

  background-color: var(--snow-color);
}

#header-section img {
  width: 45vw;
  border-radius: 10px;
}

#header-section div:last-child {
  width: 50vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
  gap: 2vw;
}

#header-section h1 {
  color: var(--primary-color1);
}

/* form style */
#form-section {
  background-color: var(--snow-color);
  /* margin-top: 20px; */

  /* padding-inline: 10vw; */
  /* padding-block: 5vw; */
}

#form-section .container {
  padding-block: 3vw 5vw;
  padding-inline: 10vw;
}

#form-section .container h1 {
  padding-bottom: 20px;
  color: var(--primary-color1);
}

#form {
  /* background-color: red; */
  /* padding-inline: 10vw;
  padding-block: 5vw; */
}

#form input:not([type="checkbox"]),
#form select {
  /* width: 100%; */
  height: 50px;
}

#college_name {
  color: rgb(0, 0, 0, 0.7);
}

#college_name option {
  color: black;
  /* display: inline-block;
  padding: 8px 10px !important; */
}

/* Style the scrollbar thumb */
#college_name::-webkit-scrollbar-thumb {
  background-color: rgb(195, 195, 195) !important;
  border-radius: 6px;
}

/* Style the scrollbar thumb when hovered */
/* #college_name::-webkit-scrollbar-thumb:hover {
  background-color: rgb(70, 68, 68) !important;
} */

#form input:is([type="checkbox"]) {
  width: 20px;
  height: 20px;
  border: 2px solid #0f5faa !important;
}

#form label:not([for="checkbox"]) {
  font-weight: 500;
}

.custom-textarea {
  height: 200px;
}

#form button {
  font-weight: 500;
  padding: 8px;
  font-size: 1.2rem;
  background-color: #0f5faa;
  margin-top: 0px;
}

/* autocomplete-list */
#autocomplete-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
  border-top: none;
  background-color: white;
  z-index: 99;
  /* color: #218fa3; */
}

#autocomplete-list li {
  padding: 6px;
  cursor: pointer;
  border: 1px solid rgb(186, 180, 180);
  /* border-radius: 8px; */
  font-size: 14px;
}

#autocomplete-list li:hover {
  color: #f0f0f0;
  background-color: var(--primary-color2);
}

#header-section p {
  font-size: 20px;
  line-height: 30px;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

/* end-section */
#end-section {
  /* background-color: var(--secondary-color2); */
  height: 60%;
}

#end-section>div {
  width: 50%;
}

#end-section>div>h2 {
  font-size: 2.5rem;
}

#end-section>div>p {
  width: 85%;
  font-size: 1.3rem;
}

footer {
  background-color: var(--primary-color1);
}

#scrollToTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#scrollToTopBtn.visible {
  opacity: 1;
}

#scrollToTopBtn button {
  font-size: 16px;
  background-color: var(--primary-color1);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  padding: 3px;
  overflow: hidden;
  border: 2px solid var(--primary-color1);
}

#myModal button {
  background: transparent;
  border: none;
  font-size: 32px;
  color: white;
}

#myModal button:hover {
  color: black;
}

/* footer desktop */
#footer-top {
  width: 100%;
  padding-inline: 7rem;
}

#footer-top>h1 {
  color: var(--primary-color1);
}

#footer-top>p {
  font-size: 1.15rem;
}

#footer-top a {
  text-decoration: none;
  font-weight: 500;
  color: white;
  background-color: #073763;
  padding: 10px 30px;
  width: fit-content;
  border: none;
  /* box-shadow: 0 0 0 2px #0c508d; */
}

.social-links {
  margin: 10px;
  padding: 5px 10px;
}

.social-links:hover {
  background-color: rgb(254, 133, 71, 0.5);
  border-radius: 8px;
}

#footer-top a:hover {
  background-color: #0a4276;
  border-radius: 1px;
  /* text-decoration-line: underline;     */
}

#footer-bottom {
  border-top: 2px solid lightgray;
}

#footer-bottom-right>div>a {
  text-decoration: none;
  color: black;
}

#footer-bottom-right>div:first-child>a:hover {
  text-decoration: underline;
  background-color: transparent;
  transition: all 0.5s ease-in-out;
}

#footer-bottom-right>div:nth-child(2)>a:hover {
  transform: rotate(-30deg);
  background-color: transparent;
  transition: all 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .nav-link {
    padding-inline: 10px !important;
    margin-top: 8px;
  }

  .custom-textarea {
    height: 150px;
  }

  #header-section {
    flex-direction: column;
    justify-content: center;
    gap: 6vw;
    padding-inline: 5vw 5vw;
  }

  #header-section img {
    width: 100%;
  }

  #header-section div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    gap: 3vw;
  }

  #header-section h1 {
    color: var(--primary-color1);
    font-size: 26px;
  }

  #header-section p {
    font-size: 14px;
    line-height: unset;

    display: flex;
    flex-direction: column;
    gap: 3vw;
  }

  /* form style */
  #form-section .container {
    padding-block: 3vw 3vw;
    /* padding-inline: 10px; */
  }

  #form {
    padding-inline: 0vw;
  }

  #form-section {
    padding-inline: 0px;
    padding-block: 30px;
  }

  #form button {
    margin-top: 0px;
  }

  /* end-section */
  #end-section {
    justify-content: start !important;
    padding-top: 5vh !important;
  }

  #end-section>div {
    width: 100%;
  }

  #end-section>div>h2 {
    font-size: 1.2rem;
  }

  #end-section>div>p {
    width: 100%;
    font-size: 1rem;
  }

  /* footer */

  #footer-top {
    width: 100%;
    padding-inline: 8vw;
  }

  #footer-bottom-right>div:first-child>a {
    padding: 0;
    margin: 0;
    margin-block: 5px;
  }

  #footer-logo {
    margin: auto;
    /* padding-right: 30px; */
  }
}

/* animated highlight navbar nav-link */
:root {
  --accent-color: #f5b123ff;
  --white-color: #fff;
  /* --box-shadow: 0 0 5px #f5b123ff, 0 0 25px #f5b123ff, 0 0 50px #03e9f4,
    0 0 100px #f5b123ff; */
  --box-shadow: 0 0 10px 1px rgb(6, 207, 46);
  --box-shadow2: 0 0 10px 1.5px #da591b;
}

.navbar>div.container-fluid {
  justify-content: space-between !important;
}

@media screen and (min-width: 992px) {
  .navbar>div.container-fluid {
    justify-content: center !important;

  }
}

/* floating counter */
#counterm,
#counterd {
  background-color: white;
  padding-top: 2px;
  padding-bottom: 2px;
  z-index: 99999
}

#counterm button,
#counterd button {
  color: var(--main-color);
  background-color: white;
  text-decoration: none;
  border: none;
  /* text-transform: uppercase; */
  font-weight: bolder;
  font-size: 120%;
  padding: 0px 0px;
}

#counterm a,
#counterd a {
  text-decoration: none;
}

#counterm p,
#counterd p {
  font-size: 14px;
  /* color: white; */
  color: black;
  text-align: center;
  margin: 0px 0px;
}

#counterm h1,
#counterd h1 {
  /* color: white; */
  color: var(--primary-color2);
  margin: 0px 0px;
  text-align: center;
  font-weight: bolder;
  font-size: 1.7rem;
}



/* Join community section */
#join-community {
  background-color: #da5a19;
  background-image: url(../img/blue_bg.png);
  margin: 0 2rem;
  border-radius: 10px;
}

#join-community>div {
  background-color: white;
  border-radius: 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;


}

#join-community>div h2 {
  color: var(--primary-color1)
}

#join-community>div button {
  color: rgb(255, 255, 255) !important;
  background-color: var(--primary-color1);
}

#join-community>div button:after {
  z-index: -1;
}

#got-questions a {
  font-size: 24px;
  color: var(--primary-color1);
}

#footer-bottom {
  /* background-color: var(--secondary-color); */
}

@media screen and (max-width: 768px) {
  #join-community {
    margin: 0;
    border-radius: 0px;
  }

  #join-community>div {


    flex-direction: column;
    justify-content: center;
    width: 95%;
  }

  #got-questions a {
    font-size: 22px;
  }
}

#footer-logo>p>a {
  color: rgb(255, 255, 255);
  text-decoration: none
}

#footer-logo>p>a:hover {
  text-decoration: underline;
}


/* button animation */
.button-animation {
  font-size: 20px !important;
  padding: 12px 20px;
  font-size: 16px !important;
  padding: 10px 10px;
  position: relative;
  display: inline-block;
  color: white !important;

  transition: 0.5s;
  border-radius: 5px;

  outline: 0;
  border: 1px solid black;
  cursor: pointer;
  position: relative;
  background-color: #da591b;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;

  top: 5px;
  left: 7px;

}

.button-animation:after {
  content: "";
  border: 1px solid black;
  /* background-color: #ffe54c; */
  background-color: transparent !important;
  width: 100%;
  z-index: 0;
  position: absolute;
  height: 100%;
  top: 5px;
  left: 7px;
  left: -7px;
  top: -5px;
  transition: 0.2s;
  border-radius: 5px;
}

@media (min-width: 768px) {
  .button-animation {
    padding: 13px 50px 13px;
    font-size: 20px !important;

  }

  li:has(.button-animation) {
    position: absolute;
    left: calc(50% - 115px);
    width: 230px;
  }
}