:root {
  --fs-300: 0.9375rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.375rem;
  --fs-600: 1.875rem;
  --fs-700: 2rem;

  --ff-body: 'Raleway', sans-serif;
  --ff-heading: 'Libre Baskerville', sans-serif;

  --fw-400: 400;
  --fw-700: 700;
  --fw-900: 900;

  --clr-primary-200: rgb(233, 233, 233);
  --clr-primary-300: rgb(255, 0, 0);
  --clr-primary-400: rgb(201, 0, 0);
  --clr-primary-500: rgb(179, 0, 0);

  --clr-neutral-100: hsla(0, 0%, 100%, 1);
  --clr-neutral-300: hsla(0, 0%, 50%, 1);
  --clr-neutral-400: hsla(0, 0%, 40%, 1);
  --clr-neutral-500: hsla(0, 0%, 60%, 1);
  --clr-neutral-900: rgb(18, 18, 18);
}

@media (min-width: 35em) {
  :root {
    --fs-300: 1rem;
    --fs-400: 1.125rem;
    --fs-500: 1.5rem;
    --fs-600: 2.25rem;
    --fs-700: 3rem;
  }
}

/* //////////////////////
  RESET - source: https://piccalil.li/blog/a-modern-css-reset
  /////////////////////// */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
  font-family: 'Libre Baskerville', sans-serif;
}

blockquote {
  margin: 0 0 0 30vmin;
  color: rgb(158, 26, 0);
}

p {
  text-align: justify;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul:where([role="list"]),
ol:where([role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;

}

figure>img,
picture {
  display: block;
  /* width: 100%; */
  height: 850px;
  object-fit: cover;
}




/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* //////////////////////
  General styling
  /////////////////////// */

body {
  font-family: var(--ff-body);
  font-size: var(--fs-400);
  color: var(--clr-neutral-900);
}

h1,
h2,
h3 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-900);
  line-height: 1.1;
}

strong {
  font-weight: var(--fw-700);
}

section,
.section {
  padding: min(10vh, 10em) 0;
  /* padding-top: 40vmin; */
}

.recent {
  padding-top: 250px ;
}

/* //////////////////////
  Utility Classes
  /////////////////////// */

/* select all direct childen of .flow
   and add margin to the top for proper
   spacing */

   
.flow>*:where(:not(:first-child)) {
  margin-top: var(--flow-spacer, 1em);
}

.container {
  margin-inline: auto;
  padding-inline: 1.5em;
  max-width: 72rem;
}

.container--narrow {
  max-width: 65rem;
}

.container--narrow a{
  line-break: anywhere;
}





.flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, 1em);
}

.text-center {
  text-align: center;
}

/* typgraphy */




.article-title,
.section-title {
  color: var(--clr-primary-500);
}

.article-title {
  font-size: var(--fs-700);
}

.section-title {
  font-size: var(--fs-600);
}


.red {
  border: solid 5px red;
  width: 25%;
  background-color: red;
}

.yellow {
  border: solid 5px yellow;
  width: 25%;
  background-color: yellow;
}

.green {
  border: solid 5px green;
  width: 25%;
  background-color: green;
}

.blue {
  border: solid 5px blue;
  width: 25%;
  background-color: blue;

}


/*////////////////////// 
   Dropdown-menu 
  ////////////////*/

.dropdown-container {
  /* border: solid 1px orange; */
  position: relative;
  padding: 0;
}





.blog-dropdown {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
}

.dropdown-title {
  display: flex;
  align-items: center;
  
}

.dropdown-title>a>span>svg {
  padding: 0;
  margin-left: 5px;
  transform: rotate(-90deg);
  transition: 0.2s ease-in;
}

.dropdown-container:hover .dropdown-title>a>span>svg {
  transform: rotate(0deg);
}

.dropdown-item {
  /* border: solid 1px black; */
  border-radius: 0 0 15px 15px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  background-color: white;
  top: 40px;
  position: absolute;
  list-style: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 60px;
  width: 140px;
  visibility: hidden;
  transition: visibility 1s, opacity 0.5s, all 0.3s ease-in;
  opacity: 0;
  z-index: 2;
}

.dropdown-container:hover .dropdown-item {
  visibility: visible;
  height: 6.2em;
  opacity: 1;
}


/* .dropdown-item:hover .dropdown-item {
  visibility: visible;
  height: 6.2em;
  opacity: 1;
} */


.dropdown-submenu {
  position: relative;
  color: black;
  border-left: 1px solid black;
  margin-left: 12px;
  padding-left: 5px;
}

.dropdown-submenu:hover {
  color: red;
}


/* //////////////////////
  Footer
  /////////////////////// */

.footer-container {
  /* border: solid 10px black; */
  height: 300px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer-objects-main {
  /* border: solid 10px orange; */
  width: 90%;
  height: 95%;
  display: flex;
}

.footer-objects1 {
  /* border: solid 10px blue; */
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.footer-objects2 {
  /* border: solid 10px blue; */
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: row;
}


.footer-pages-main {
  /* border: solid 10px pink ; */
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-pages {
  /* border: solid 10px green; */
  width: 80%;
  height: 80%;
}

.footer-pages {
  display: flex;
  flex-direction: column;
}

.footer-pages a {
  text-decoration: none;
  color: black;
  margin-bottom: 12px;
  transition: 0.1s;
  width: max-content;
}

.footer-pages a:hover {
  color: red;
}

.rainbow-object {
  width: 50%;
  display: flex;
  flex-direction: row;
  margin-bottom: 12px;
}

.footer-social-main {
  /* border: solid 10px red; */
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-social {
  /* border: solid 10px hotpink; */
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
}

.footer-social-text p {
  /* border: solid 10px blue; */
  font-size: 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
}

.footer-social-icon {
  /* border: solid 10px yellow; */
  margin-top: 12px;
  width: 100%;
  display: flex;
  gap: 5px;
}

.footer-social-icon img {
  height: 40px;
  width: 40px;
  background-color: red;
  border: solid 5px red;
  border-radius: 25px;
  transition: 0.3s;
  /* width: 55px; */
  /* height: 55px; */
}

.footer-social-icon img:hover {
  border: solid 5px cyan;
  background-color: cyan;
  filter: invert(100%);
}

.footer-icon {
  /* border: solid 10px gold; */
  height: 15%;
  width: 70%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
}

.footer-icon img {
  height: 62px;
  width: 54px;
}

.footer-agenda-container {
  border: solid 10ox black;
  width: 100%;
  height: auto;
  /* background-color: black; */
  font-family: 'Raleway', sans-serif;
}

.footer-agenda-title {
  font-size: 19px;
  font-weight: bold;
  margin: 12px 0 5px 0;
}

.footer-agenda-info {
  font-size: 12px;
  display: flex;
  flex-direction: column;
}

.footer-agenda-info p {
  margin-bottom: 4px;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
  
}

.footer-social-info {
  /* border: solid 10px black; */
  height: auto;
  width: 100%;
  font-size: 14px;
  display: flex;
  margin-top: 12px;
  color: grey;
  cursor: pointer;
}

.arrow-footer-info {
  background-color: red;
  color: black;
  border-radius: 15px;
  height: 22px;
  width: 22px;
  margin-left: 7px;
  padding: 2px 0 0 5px;
}

@media (min-width: 800px) {
  .footer-social-info {
    display: none;
  }
}

.footer-text {
  /* border: solid 10px black; */
  height: 70%;
  width: 70%;
  /* margin-bottom: 12px; */
}

.footer-text-title {
  /* border: solid 10px cyan; */
  height: 25%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  /* margin: 12px 0 12px 0; */
  font-size: 30px;
  font-weight: bold;
  font-family: 'Raleway', sans-serif;

}

.footer-text-p {
  /* border: solid 10px maroon; */
  max-height: 63%;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  min-width: 310px;
  text-align: justify;
}

.footer-sub {
  /* border: solid 10px rebeccapurple; */
  /* overflow: visible; */
  height: 15%;
  width: max-content;
  display: flex;
  font-size: 16px;
  color: gray;
  transition: 0.3s;
  cursor: pointer;
  margin-top: 12px;
}

.footer-sub p {
  font-family: 'Raleway', sans-serif;
}

.footer-sub:hover {
  color: red;
}

.arrow-footer {
  border: solid 1px red;
  background-color: red;
  color: black;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  margin-left: 12px;
  font-size: 12px;
  padding: 2px 0 0 5px;
}


@media (max-width:800px) {
  .footer-container {
    height: 250px;
  }

  .footer-objects-main {
    width: 100%;
    height: 100%;
  }

  .footer-objects1 {
    display: none;
  }

  .footer-objects2 {
    /* border: solid 10px; */
    height: 100%;
    width: 100%;
  }

  .footer-pages {
    display: flex;
    /* padding: 12px; */
  }

  .footer-pages a {
    margin: 0 0 10px 0;
  }

  .footer-text-p {
    display: none;
  }
}


.rights-container {
  position: relative;
  margin-top: 50px;
  border-top: solid 1px rgb(177, 177, 177);
  height: 50px;
  width: 100%;
  background-color: white;
}

.rights-element {
  padding-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  font-size: 11px;
  color: grey;
}

.rights-element a {
  text-decoration: none;
  color: grey;
  cursor: pointer;
}

.rights-element a:hover {
  color: red;
}

/* //////////////////////
  Homepage
  /////////////////////// */

.hero {
  padding-top: 250px;
}

.hero>div {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  align-items: center;
  gap: 3em;
}

.hero__image {
  width: 100%;
  /* max-height: max(15rem, 40vh); */
  object-fit: cover;
}

@media (min-width: 45em) {
  .hero>div {
    grid-auto-flow: column;
  }
}

@media (max-width:500px) {
  .hero__image{
    display: none;
  }
}

.featured-articles {
  background-color: var(--clr-primary-200);
}

.articles__list {
  --flow-spacer: 3rem;
  margin: 6rem 0;
}

/* //////////////////////
  Individual article page
  /////////////////////// */

  .photo-container {
    /* border: solid 10px #ff0000; */
    width: 100%;
    height: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
  }
  
  .overlay-article {
    /* border: solid 10px purple; */
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .logo-article {
    /* border: solid 10px red; */
    height: 5%;
    width: 85%;
  }
  .info-article {
    /* border: solid 10px yellow; */
    height: 8%;
    width: 85%;
    font-family: 'Raleway', sans-serif;
    display: flex;
    flex-direction: row;
    gap: 30px;
  }
  .title-article {
    /* border: solid 10px green ; */
    height: 16%;
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }



  .photo-article {
    /* border: solid 10px blue; */
    height: 68%;
    width: 85%;
  }

  .rainbow-article {
    /* border: solid 10px black; */
    display: flex;
    flex-direction: row;
    width: 13%;
    height: 50%;
  }

  .author-article {
    /* border: solid 10px black; */
    display: flex;
    flex-direction: column;
    
  }
  .date-article {
    /* border: solid 10px black; */
    display: flex;
    flex-direction: column;
  }
  .img-alt-article {
    /* border: solid 10px black; */
    display: flex;
    flex-direction: column;
  }

  .info-element {
    font-weight: bold;
    font-size: 14px;
  }

    

  .info-sub {
    font-weight: bold;
    font-size: 12px;
  }

  .title-article-element {
    font-weight: bold;
    font-size: 60px ;
  }

  .subtitle-article-element {
    font-size: 14px;
    color: rgb(172, 172, 172);
  }

  .photo-article img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  @media (max-width: 1000px) {
    .photo-container {
      height: 100vmax;
    }
    .title-article {
      margin-top: 21vmax;
    }

    .title-article-element {
      font-size: 5vmin;
    }

    /* .photo-article {
      height: 50%;
    } */
  }

  .main-article {
    margin-bottom: 3rem;
    padding-top: 8%;
  }

  @media (max-width:1000px) {
    .main-article {
      padding-top: 13em;
    }    

  }
  
  .main-article__figure figcaption {
    /* margin: 1rem 0; */
    font-size: var(--fs-300);
    opacity: .5;
    margin: 1rem 0 1rem 8rem;
  }
  
  
  
  
  
  



/* //////////////////////
  Article snippets
  /////////////////////// */

.snippet {
  display: grid;
  gap: 1em;
  grid-template-areas:
    "image"
    "title"
    "meta"
    "body"
    "button";
}

.snippet__image {
  grid-area: image;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.snippet__title {
  grid-area: title;
}

.snippet__meta {
  grid-area: meta;
  color: var(--clr-neutral-300);
}

.snippet__meta span {
  color: black;
}

.snippet .btn {
  grid-area: button;
}

.snippet__title {
  color: black;
  font-size: var(--fs-500);
}

.snippet__title a {
  color: inherit;
  text-decoration: none;
}

.snippet__title a:hover,
.snippet__title a:focus {
  color: var(--clr-primary-500);
}

@media (min-width: 45em) {
  .snippet {
    grid-template-areas:
      "title image"
      "meta image"
      "body image"
      "button image";
    grid-column-gap: 4em;
    grid-template-columns: 1fr 40%;
    grid-template-rows: min-content min-content min-content 1fr;
  }
}

.btn {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  padding: 0.75em 1.75em;
  border-radius: 12px;
  align-self: start;
  justify-self: start;
}

.btn:focus {
  outline: 0.125em solid var(--clr-primary-400);
  outline-offset: 0.25em;
}

.btn--primary {
  background: var(--clr-primary-400);
  color: var(--clr-neutral-100);
  font-weight: var(--fw-700);
  border: 2px solid var(--clr-primary-400);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--clr-primary-500);
  border-color: var(--clr-primary-500);
}

.btn--neutral {
  background-color: var(--clr-neutral-100);
  color: black;
  font-weight: var(--fw-700);
  border: 2px solid black;
}

.btn--neutral:hover,
.btn--neutral:focus {
  color: var(--clr-neutral-100);
  background-color: black;
}