@import url("https://fonts.googleapis.com/css2?family=Skranji&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit&family=Nova+Square&family=Skranji&display=swap");

:root {
  --bg-color: #f7efe7;
  --second-bg-color: #bfb0a0;
  --text-color: #312c38;
  --main-color: #e73c37;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  font-family: "Kanit" !important;
  max-width: 100vw !important;
}
body {
  background-image: url("../images/uploads/bg.png");
  background-repeat: no-repeat;
}
/* .iframe{
  display: none;
  width: 100vw;
  height: 100vh;
} */
/*=== navbar section ===*/
header {
  height: 90px;
}
.header {
  position: fixed;
  width: 100vw;
  z-index: 100;
  height: 90px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.logo img {
  height: 80px;
  width: auto;
}
.mob-logo {
  display: none;
}
.mob-top {
  display: none;
  height: 90px;
  width: 100vw;
}
nav {
  width: 45vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 85px;
}
.google_translate_element {
  width: 50%;
  height: 50%;
}
/* Style the menu items */
nav a {
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 400;
  position: relative;
  font-family: "Kanit";
  text-decoration: none;
}

/* Style the line */
.menu-line {
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  bottom: -4px; 
  left: 0;
  transition: width 0.4s ease;
}
/* Add a hover effect */
nav a:hover .menu-line {
  width: 100%;
}
.mobile-nav {
  display: none;
  position: fixed;
  z-index: 100;
  width: 100vw;
  bottom: 0;
  left: -2.5vw;
  ul {
    width: 105vw;
    height: 50px;
    padding: 10px 0 50px 0;
    position: relative;
    background: #8ee4f3;
    display: flex;
    justify-content: space-evenly;
  }
  ul li {
    margin-left: -22px;
    position: relative;
    text-decoration: none;
    list-style: none;
  }
  ul li a {
    position: relative;
    height: 100px;
    width: 90px;
  }
  ul li a .activeNavIcon {
    opacity: 1 !important;
    transition: all 0.3s ease;
    transition-delay: 0.2s;
  }
  ul li a .inactiveNavIcon {
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: 0.2s;
  }
  a > img {
    width: 30px;
    height: auto;
    position: absolute;
    opacity: 1;
  }
  a > box-icon {
    width: 30px;
    height: auto;
    position: absolute;
    opacity: 1;
  }
  a > box-icon:nth-child(2) {
    opacity: 0;
  }
  a > img:nth-child(2) {
    opacity: 0;
  }
  ul .indicator {
    position: absolute;
    bottom: -19px;
    left: 20vw;
    height: 36px;
    width: 25px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  ul .indicator::before {
    content: "";
    position: absolute;
    left: -15px;
    bottom: 50%;
    height: 22px;
    width: 20px;
    background: #8ee4f3;
    border-bottom-right-radius: 20px;
    box-shadow: 0 10px 0 #fff;
  }
  ul .indicator::after {
    content: "";
    position: absolute;
    right: -15px;
    bottom: 50%;
    height: 22px;
    width: 20px;
    background: #8ee4f3;
    border-bottom-left-radius: 20px;
    box-shadow: 0 10px 0 #fff;
  }
}
.space-for-header {
  height: 90px;
}

/*========== home page  ===========*/
.home {
  height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
}

.home-left {
  width: 50%;
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
}
.home-left-title {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.home-left-title h2 {
  text-transform: capitalize;
  font-family: "Kanit";
  font-size: 43px;
  width: 30vw;
  line-height: 150%;
}
.home-left-title h2 span {
  color: #b32346;
}
.home-blood-group {
  display: none;
}
.home-left-title h3 {
  text-transform: capitalize;
  font-family: "Kanit";
  font-size: 30px;
  line-height: 120%;
}
.home-left-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-left-details p {
  font-family: "Kanit";
  font-size: 24px;
  line-height: 120%;
}
.home-left-links {
  display: flex;
  gap: 60px;
}
.home-left-links a box-icon {
  width: 50px;
  height: 50px;
}
.support-by-chaitanya{
  display: flex;
  align-items: center;
  gap: 40px;
}
.support-by-chaitanya-text{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.support-by-chaitanya-text p{
    font-weight: 800;
    font-size: 20px;
}
.chaitanya-image{
  width: auto;
  height: 100px;
}
.donation-buttons {
  display: flex;
  gap: 10px;
}
/* another styling of social links  */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}

.home-right {
  width: 50vw;
  height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* border: 2px solid #000; */
}
.home-right img {
  width: 36vw;
  height: auto;
}
.home-right .blood-image {
  width: 20vw;
  position: absolute;
  bottom: 7%;
  right: 30vw;
}
.floating-box{
  position: absolute;
  bottom: 20px;
  right: 10px;
  display: flex;
  align-items: center;
}
.floating-box a{
  width: 80px;
}
.floating-box img{
  width: 90%;
  height: auto;
}
.floating-box p{
  display: none;
  margin: 0 10px;
}
.rise-up {
  position: relative;
  animation: riseUp 0.8s ease-in-out forwards;
  opacity: 0;
}

@keyframes riseUp {
  0% {
    transform: translateY(70%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes riseUpHomeRight {
  0% {
    transform: translateY(20%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/*idea section css */

.idea {
  font-family: "kanit";
  display: flex;
  flex-direction: column;
  /* justify-content: space-evenly; */
  align-items: center;
  /* border: 2px solid aqua; */
}
.idea-content {
  display: flex;
  justify-content: space-between;

  /* border: 2px solid green; */
}
.idea-cont {
  width: 50vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  margin-left: 55px;
  padding: 20px;
  /* border: 2px solid red; */
}
.idea-head,
.donating-steps-head,
.donate-blood-head h1,
.core-head h1,
.contact h1 {
  font-size: 40px;
  text-align: center;
  padding: 20px 0px;
  font-weight: bold;
  font-family: "Kanit";
}
.idea-head span,
.donating-steps-head span,
.donate-blood-head span,
.core-head span,
.contact span {
  color: #a83b3f;
}
.idea-desc {
  font-size: 18px;
  text-align: left;
}
.idea-auth {
  width: 100%;
  text-align: right;
  font-size: 18px;
}
.idea-pic {
  width: 50%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.idea-pic img {
  width: 400px;
  height: 300px;
  border-radius: 20px;
  transition: 0.5s ease-in-out;
  object-fit: cover;
}
.idea-pic-img {
  width: 400px;
  overflow: hidden;
  border-radius: 20px;
}
.idea-pic img:hover {
  transform: scale(1.1);
  transition: 0.5s;
}

/* Donation Steps  */
.donating-steps,
.donating-steps-mobile {
  width: 100%;
  height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  position: relative;
}
.steps-left,
.steps-right {
  width: 50%;
  position: relative;
  background: #00000011;
}
.steps-card {
  width: 300px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
}
.steps-card:nth-child(1) {
  bottom: 0;
  left: 100px;
}
.steps-card:nth-child(2) {
  top: 0;
  right: 100px;
}
.steps-card .card-number {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--rato);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
}
.steps-card .card-number:hover {
  color: white;
  background: var(--rato);
  transition: all 0.3s ease;
}
.steps-card .card-title h2 {
  text-align: center;
  margin: 10px 0;
}
.steps-card .card-title-details {
  height: 150px;
  visibility: hidden;
  font-size: 14px;
  position: relative;
  animation: fallDown 0.5s ease-in-out forwards;
}
.steps-arrow-1 img {
  width: 270px;
  position: absolute;
  top: 17%;
  left: 22%;
  transform: rotate(-130deg);
}
.steps-arrow-2 {
  width: 270px;
  position: absolute;
  top: 15%;
  right: 7%;
  transform: rotate(-120deg);
}
.steps-arrow-2 img {
  width: 100%;
  transform: scaleX(-1);
}
.donating-blood-img {
  width: 300px;
  position: absolute;
  top: 20%;
  left: 42%;
}
.donating-steps-mobile {
  display: none;
  height: fit-content;
}
/* Core team */
.core-team {
  font-family: "kanit";
  padding-top: 0;
}
.core-members {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  font-size: 18px;
}
.core-members span {
  padding: 10px 0 0 0;
  font-size: 20px;
  font-weight: bold;
  color: var(--rato);
  border-bottom: 3px solid rgb(93, 159, 7);
}

.core-members p {
  min-width: 300px;
  width: 20vw;
  margin-top: 7px;
  height: 100px;
  font-size: 16px;
}
.core-member{
  padding: 20px;
}
/* why to donate blood  */
.donate-blood {
  width: 90%;
  margin: 0 auto;
}
#m-donate_blood{
  display: none;
}
.swiper{
  width: 0;
  height: 0;
}
.donate-blood-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  padding-bottom: 50px;
}
.donate-blood-all-indicators {
  padding: 30px 0;
  display: flex;
  gap: 20px;
}
.donate-blood-indicator .hide {
  display: block;
  cursor: pointer;
}
.donate-blood-indicator:nth-child(1) .hide {
  display: none;
}
.donate-blood-indicator .show {
  display: none;
}
.donate-blood-indicator:nth-child(1) .show {
  display: block;
}
.donate-blood-child {
  display: none;
  padding: 80px 0;
  background: transparent;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.donate-blood-child:nth-child(1) {
  display: flex;
}
.donate-blood-child-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.donate-blood-child-left img {
  width: 65%;
  height: auto;
  border-radius: 20px;
  /* box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5); */
}
.donate-blood-child-right h1 {
  width: fit-content;
  margin: 30px 0;
  border-bottom: 3px solid rgb(93, 159, 7);
}
.donate-blood-child-right p {
  font-size: 18px;
  text-align: left;
}
.donate-blood-child-right {
  width: 70%;
  padding-right: 70px;
}
.show-image,
.hide-image {
  width: 105px;
  height: 105px;
}
.fall-down {
  position: relative;
  animation: fallDown 0.5s ease-in-out forwards;
}
@keyframes fallDown {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
.fall-down-2 {
  position: relative;
  animation: fallDown2 0.6s ease-out backwards;
  opacity: 1;
}
@keyframes fallDown2 {
  0% {
    transform: translateY(0px);
    opacity: 1;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}
.donate-blood-bottom p,
.donate-blood-bottom h2 {
  font-size: 18px;
  margin: 0 auto;
  text-align: center;
  width: 80vw;
}
.donate-blood-bottom h2 {
  font-size: 20px;
}
/*=== contact page ===*/
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-container {
  display: flex;
  justify-content: space-between;
  padding: 40px;
}

.form-container {
  flex: 1;
}

.contact-info {
  flex: 1;
  margin-left: 40px;
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
}

.contact-info ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-info .icon {
  font-size: 24px;
  margin-right: 10px;
  color: #d95567;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
}

form input,
form textarea {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

form textarea {
  height: 100px;
  resize: none;
}

.msg-dailoag-box {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 2s ease;
  overflow: hidden;
}
.dailoag-box-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 75px 0px;
  border: 1px solid #888;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #ccc;
}
/* close btn  */
.close {
  color: #aaa;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 50px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.dailoag-box-content form {
  width: 50vw;
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 20px;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  padding: 50px;
}
.dailoag-box-content form {
  p {
    display: inline-block;
    width: 100px;
  }
  label {
    font-size: 20px;
  }
  input,
  textarea {
    padding: 10px 20px 5px 20px;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid #000;
    outline: none;
    color: #3f86fc;
    background: transparent;
  }
  textarea {
    width: 400px;
    min-height: 100px;
    border: 2px solid #000;
    border-radius: 10px;
    outline: none;
    font-size: 16px;
  }
  input::placeholder,
  textarea::placeholder {
    color: #000;
  }
  .message {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
}
.successMessage {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: green;
  color: white;
  padding: 15px;
  border-radius: 10px;
  z-index: 9999;
}

.my-profile {
    width: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.my-profile box-icon {
  width: 40px;
  height: 40px;
}
.my-profile span {
  font-size: 14px;
}
.my-profile:hover .my-profile-menu-line {
  width: 100%;
}
.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  display: none; /* Initially hidden */
  flex-direction: column;
  width: 150px;
  z-index: 1000;
}

.profile-menu a {
  padding: 10px;
  text-align: center;
  color: #333;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.profile-menu a:hover {
  background-color: #e02e6d;
  color: #fff;
}

.my-profile:hover .profile-menu {
  display: flex; /* Show dropdown on hover */
}
