@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
/* Montserrat, Nunito, Roboto */
:root {
  --purpledark: rgb(15, 2, 24);
  --purplelight: rgb(171, 148, 175);
  --green: #057963;
  --title: "Montserrat", sans-serif;
  --subtitle: "Roboto", sans-serif;
  --text: "Nunito Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--purpledark);
}

a {
  text-decoration: none;
  color: var(--purplelight);
  font-family: var(--subtitle);
}

nav {
  border: solid 1px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(2px);
  background-color: rgba(76, 58, 99, 0.368);
  position: fixed;
  top: 0;
  left: 0;
  font-weight: 600;
  z-index: 10;
}
nav a {
  font-size: 0.6rem;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.nav-Blog {
  background-color: var(--purplelight);
  border-radius: 5px;
}

nav a:hover {
  scale: 1.15;
  color: rgb(206, 165, 246);
  filter: saturate(2);
  border-left: solid 1px;
  border-right: solid 1px;
}
nav a img {
  width: 2rem;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--title);
  color: white;
  text-shadow: 2px 2px 8px #000;
  font-size: 2.5rem;
  text-align: center;
}
h2 {
  font-family: var(--text);
  color: whitesmoke;
  text-align: center;
  font-size: 1.5rem;
}

section {
  padding: 2vw;
  margin-bottom: 3vw;
}

.articles-grid {
  position: relative;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.articles-grid article {
  padding: 3vw;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.articles-grid article img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 0;
  object-fit: cover;
}

.articles-grid article::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    1deg,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.3) 85%
  );
  z-index: 1;
}

.article-texts {
  color: whitesmoke;
  position: relative;
  z-index: 1;
}

.article-texts h3 {
  font-family: var(--title);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-texts p {
  font-family: var(--text);
  font-size: 1rem;
  margin-bottom: 3vw;
}

.article-texts span {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.8rem;
  font-family: var(--subtitle);
}

.article-texts a {
  font-size: 1.3rem;
}

footer {
  text-align: center;
  color: var(--purplelight);
  font-family: "Courier New", Courier, monospace;
}
footer img {
  width: 5%;
  height: auto;
}

/* Article View  Article View  Article View  Article View */
/* For the new hero section in articleview.html */
.article-hero {
  background-size: cover;
  background-position: center;
  min-height: 350px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white; /* Text color for contrast */
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* For better readability */
  padding: 20px; /* Add some padding */
  /* Add any other desired static styles here, e.g., transition effects */
}

.article-hero-title {
  font-size: 2.5em; /* Example font size, adjust as needed */
  margin: 0;
  padding: 0 15px; /* Add horizontal padding to prevent text from touching edges */
  z-index: 1; /* Ensure title is above background if any overlay is added */
}

.article-hero {
  animation: zoominout 6s ease-in infinite alternate-reverse;
}

@keyframes zoominout {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

.article-hero-title {
  color: var(--purpledark);
  font-family: var(--title);
  text-shadow: 0.5vw 0.5vw 1vw whitesmoke;
  text-transform: capitalize;
}

.article-grid article::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    1deg,
    rgba(25, 10, 51, 0.9) 5%,
    rgba(255, 255, 255, 0.3) 65%
  );
  z-index: 1;
}

.article-grid h3 {
  font-family: var(--title);
  color: var(--purpledark);
  font-size: 2rem;
  text-shadow: 0.5vw 0.5vw 0.8vw rgba(238, 238, 238, 0.618);
}
.article-content {
  padding: 2vw 5vw;
  margin: 0 auto;
  color: whitesmoke;
}

.article-content p {
  font-family: var(--text);
  font-size: 1rem;
}

.article-content details {
  margin: 5vw 1vw;
  font-family: var(--subtitle);
  border-left: solid var(--green);
  border-right: solid var(--green);
  border-top: solid var(--green);
  border-radius: 3%;
  cursor: pointer;
}

.article-content details summary {
  font-family: var(--text);
  padding-left: 10%;
}
.article-content details p {
  font-family: var(--subtitle);
  color: black;
  background-color: var(--purplelight);
  padding: 1vw 3vw;
  margin: 2vw;
}
.article-content .article-image {
  text-align: center;
}

.article-image img {
  width: 85%;
  border-radius: 4%;
}

.bordered-text {
  margin-inline: 2vw;
  padding: 1vw 5vw;
  border-left: double var(--green) 2vw;
}

.article-content span {
  font-family: var(--subtitle);
  font-size: 0.7rem;
  color: var(--purplelight);
}

@media (min-width: 600px) {
  nav a {
    padding: 1vw 0;
    font-size: 1rem;
  }

  nav a img {
    width: 4vw;
  }
  .hero {
    height: 93vh;
  }
  .hero h1 {
    font-size: 3.5rem;
  }

  .articles-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2vw;
  }

  .articles-grid article {
    width: calc(33.333% - 2vw);
    position: relative;
  }

  .article-content {
    width: 80%;
    margin: 0 auto;
    padding: 3vw;
  }

  .article-content p {
    font-size: 1.2rem;
  }

  .articles-grid article img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 150%;
    z-index: 0;
    object-fit: cover;
  }

  .article-texts span {
    bottom: -2vw;
  }

  /* Article View  Article View  Article View  Article View */
  .article-hero-title {
    height: 20vw;
    font-size: 2.5rem;
  }

  .article-content p {
    font-size: 1.5rem;
  }
  .article-content summary {
    font-size: 1.2rem;
  }

  .article-content span {
    font-size: 0.9rem;
  }
}

@media (min-width: 900px) {
  nav a {
    padding: 0.5vw 0.5vw;
    font-size: 1.1rem;
  }

  .article-hero-title {
    height: 30vw;
    font-size: 3rem;
    text-align: center;
  }

  .article-hero {
    height: 70vh;
  }

  .article-hero-title {
    margin-top: 30%;
    text-shadow: 0.2vw 0.2vw 0.5vw whitesmoke;
  }

  footer img {
    width: 2%;
    height: auto;
  }

  .article-content details {
    border-radius: 5px;
  }

  .article-content details summary {
    font-size: 1.2rem;
  }
  .article-content details p {
    border-radius: 5px;
  }
  .article-content .article-image {
    margin-inline: 10%;
    width: 80%;
  }
}
