*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-weight: 400;
}

.header {
  position: fixed;
  /* width: 100%; */
  /* height: 70px; */
  top: 0;
  left: 0;
  right: 0;

  padding: 16px 10%;

  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav a {
  padding: 8px;
  border: 4px solid none;
  border-radius: 2px;

  text-decoration: none;
  font-size: 1.25rem;
  margin-left: 28px;
  color: black;
  position: relative; /* To position the pseudo-elements */
  transition: color 0.3s ease; /* Smooth transition for color change */
}

.nav a::before,
.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #ffc300;
  /* transition: width 0.3s ease; */
  transition: width 0.4s ease, left 0.4s ease; /* Add transition for left property */
}

.nav a::before {
  top: 0; /* Position at the top of the anchor */
  left: 50%; /* Start from the middle */
  transform: translateY(-50%); /* Adjust to center from the middle */
}

.nav a::after {
  bottom: 0; /* Position at the bottom of the anchor */
  left: 50%; /* Start from the middle */
  transform: translateY(-50%); /* Adjust to center from the middle */
}

.nav a:hover {
  color: #ffc300; /* Change text color to blue */
}

.nav a:hover::before,
.nav a:hover::after {
  width: 100%; /* Expand underline to full width */
  left: 0; /* Move to start from the beginning of the element */
  transform: none; /* Remove transform to extend underline */
}

.logo {
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #ee5a50;
}

/* MAIN PICTURE */
/* MAIN PICTURE */

.main {
  background: top/cover url(Pictures/sub_page2.png) no-repeat;
  width: 100%;
  height: 45.88vh;
  padding: 67.6px 10%;
  /* margin-bottom: 50px; */

  box-shadow: none;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.main h1 {
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.main p {
  font-size: 1.5rem;
  text-align: center;
}

/**/

.readings {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 360px;
}

/* FOOTER STARTS HERE */

.footer {
  background-color: rgb(186, 184, 197);
  width: 100%;
  padding: 20px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer h1,
.footer p {
  margin: 5px;
  padding: 5px 0;
}

.footer .social-links {
  display: flex;
  gap: 15px;
}

.footer a img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.footer a img:hover {
  transform: translateY(-10px); /* Move icon upward on hover */
}
