* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
/* Font */
@font-face {
  font-family: "josefinsans";
  src: url(asset/font/solway-regular-webfont.woff);
}
@font-face {
  font-family: "poppins";
  src: url(asset/font/poppins-regular-webfont.woff) format("woff");
}
@font-face {
  font-family: "poppins-medium";
  src: url(asset/font/poppins-medium-webfont.woff) format("woff");
}
@font-face {
  font-family: "poppins-semibold";
  src: url(asset/font/poppins-semibold-webfont.woff) format("woff");
}
@font-face {
  font-family: "poppins-extrabolditalic";
  src: url(asset/font/poppins-extrabolditalic-webfont.woff) format("woff");
}
@font-face {
  font-family: "poppins-talic";
  src: url(asset/font/poppins-italic-webfont.woff) format("woff");
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "poppins";
  min-height: 1000px;
}
header {
  position: fixed;
  width: 100%;
  height: 80px;
  background-color: rgb(236, 236, 236);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0px 2px 5px rgba(70, 64, 64, 0.548);
  z-index: 9999;
}
header h1 {
  color: rgba(241, 6, 6, 0.952);
  text-transform: capitalize;
  font-size: 2.4rem;
  border-bottom: 3px solid red;
}
header h1 span {
  color: black;
  font-size: 1.9rem;
}
header nav {
  width: 30%;
}
header nav ul {
  display: flex;
  /* gap: 50px; */
  list-style: none;

  justify-content: space-around;
}
header nav ul a {
  text-decoration: none;
}
header nav ul a li {
  color: black;
  font-size: 1.2rem;
  text-transform: capitalize;
  transition: all 300ms;
  position: relative;
}
header nav ul a li::after {
  content: "";
  position: absolute;
  width: 0px;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgba(243, 9, 9, 0.87);
  transition: all 300ms;
}
header nav ul a li:hover::after {
  width: 100%;
}
header nav ul a li:hover {
  color: rgb(92, 8, 247);
}
header .light .toggle {
  background-color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 50px 20px rgba(0, 0, 0, 0.1);
  line-height: 1;
}

header .light .toggle .input {
  display: none;
}

header .light .toggle .icon {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  transition: transform 500ms;
  display: flex;
  align-items: center;
  justify-content: center;
}
header .light .toggle .icon svg {
  width: 25px;
}

header .light .toggle .icon--moon {
  transition-delay: 200ms;
}

header .light .toggle .icon--sun {
  transform: scale(0);
}

#switch:checked + .icon--moon {
  transform: rotate(360deg) scale(0);
}

#switch:checked ~ .icon--sun {
  transition-delay: 200ms;
  transform: scale(1) rotate(360deg);
}
#checkbox {
  display: none;
}
header .tgl-clk {
  display: none;
}
header .tgl-clk .toggle-bar {
  position: relative;
  width: 40px;
  cursor: pointer;
  margin: auto;
  display: block;
  height: calc(4px * 3 + 11px * 2);
  line-height: 0;
}

header .tgl-clk .toggle-bar .bar {
  position: absolute;
  left: 0;
  right: 0;
  width: 30px;
  height: 4px;
  border-radius: calc(4px / 2);
  background: #7b52b9;
  color: inherit;
  opacity: 1;
  transition: none 0.35s cubic-bezier(0.5, -0.35, 0.35, 1.5) 0s;
}

header .tgl-clk .toggle-bar .bar--top {
  bottom: calc(40% + 11px + 4px / 2);
  transition-property: bottom, margin, transform;
  transition-delay: calc(0s + 0.35s), 0s, 0s;
}

header .tgl-clk .toggle-bar .bar--middle {
  top: calc(50% - 4px / 2);
  transition-property: top, opacity;
  transition-duration: 0.35s, 0s;
  transition-delay: calc(0s + 0.35s * 1.3), calc(0s + 0.35s * 1.3);
}

header .tgl-clk .toggle-bar .bar--bottom {
  top: calc(40% + 11px + 4px / 2);
  transition-property: top, transform;
  transition-delay: 0s;
}

#checkbox:checked + .toggle-bar .bar--top {
  bottom: calc(50% - 11px - 4px);
  margin-bottom: calc(11px + 4px / 2);
  transform: rotate(45deg);
  transition-delay: calc(0s + 0.35s * 0.3), calc(0s + 0.35s * 1.3),
    calc(0s + 0.35s * 1.3);
}

#checkbox:checked + .toggle-bar .bar--middle {
  top: calc(50% + 11px);
  opacity: 0;
  transition-duration: 0.35s, 0s;
  transition-delay: 0s, calc(0s + 0.35s);
}

#checkbox:checked + .toggle-bar .bar--bottom {
  top: calc(50% - 4px / 2);
  transform: rotate(-45deg);
  transition-delay: calc(0s + 0.35s * 1.3), calc(0s + 0.35s * 1.3);
}
header h1 {
  order: 2;
}
header nav {
  order: 3;
}
header .light {
  order: 4;
}
header .tgl-clk {
  order: 1;
}
/* Main content */

main article img {
  width: 100%;
  height: 400px;
  margin-top: 3rem;
}
main .container {
  display: flex;
  width: 100%;
  padding: 1rem;
  justify-content: space-between;
  margin-top: 2.3rem;
}
main .container .content {
  width: 70%;
}
main .container .content h2 {
  margin: 2rem;
  font-family: "poppins-medium";
  font-weight: 100;
  font-size: 1.2rem;
  position: relative;
}
main .container .content h2::after {
  content: "";

  position: absolute;
  width: 4rem;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: rgba(243, 9, 9, 0.87);
}
main .container .content .artcl,
.artcl2 {
  display: flex;
  width: 100%;
  gap: 2.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
main .container .content .artcl2 {
  display: none;
}
main .container .content .artcl section,
.content .artcl2 section {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 1rem;
  border-radius: 10px;
  background: #f8f5f5;
  box-shadow: 6px 6px 12px #d7d4d4, -6px -6px 12px #edeaea;
}
a {
  text-decoration: none;
}
main .container .content .artcl section a img,
.artcl2 section a img {
  width: 200px;
  height: 100px;
  margin: 0;
}
main .container .content .artcl section p,
.artcl2 section p {
  font-size: 0.7rem;
  color: rgb(255, 3, 3);
  margin: 1rem 0;
}
main .container .content .artcl section h5,
.artcl2 section h5 {
  font-size: 0.9rem;
  line-height: 1.2;
  width: 200px;
  color: black;
}
main .container .content .slice {
  width: 90%;
  display: flex;
  justify-content: space-between;
  /* margin-right: 5rem; */
  margin-top: 2rem;
}

main .container .content .slice button {
  display: inline-block;
  border-radius: 4px;
  background-color: #3d405b;
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 17px;
  padding: 16px;
  width: 130px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}

main .container .content .slice button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}
main .container .content .slice button:nth-child(1) {
  display: none;
}
main .container .content .slice button .bt2::after {
  content: "«";
  position: absolute;
  opacity: 0;
  top: 0;
  left: -15px;
  transition: 0.5s;
}
main .container .content .slice button .bt1:after {
  content: "»";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -15px;
  transition: 0.5s;
}

main .container .content .slice button:hover span:after {
  opacity: 1;
}
main .container aside {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  width: 350px;

  align-items: center;
}
main .container aside .txt-aside {
  display: flex;
  gap: 10px;
}
main .container aside .txt-aside img {
  width: 25px;
}
main .container aside .txt-aside h3 {
  width: 100%;
  text-align: center;
  margin: 2rem 0;
}
main .container aside img {
  width: 300px;
}
main .container aside h4 {
  text-indent: 1.4rem;
  line-height: 1.2;
  margin: 1rem 0;
  font-size: 1.2rem;
}
main .container aside p {
  text-indent: 1rem;
  line-height: 1.1;
  font-size: 1rem;
  margin-top: 2rem;
}
main .container aside .button {
  background-color: #ffffff00;
  color: #020202;
  width: 12.5em;
  height: 2.9em;
  border: #3654ff 0.2em solid;
  border-radius: 11px;
  text-align: right;
  transition: all 0.6s ease;
  margin-top: 3rem;
}

main .container aside .button:hover {
  background-color: #3654ff;
  color: white;
  cursor: pointer;
}

main .container aside .button svg {
  width: 1.6em;
  margin: -0.3em 0.8em 1em;
  position: absolute;
  display: flex;
  transition: all 0.6s ease;
}

main .container aside .button:hover svg {
  transform: translateX(5px);
}

main .container aside .button .text {
  margin: 0 1.5em;
  font-family: "poppins";
}
/* footer */
footer {
  background-color: rgb(29, 73, 139);
  text-align: center;
  padding: 1rem 0 3rem;
  margin-top: 3rem;
}
footer .media-socials {
  padding: 1rem 0;
}
footer .media-socials a {
  color: #fff;
  margin: 1rem;
  font-size: 24px;
}
footer .media-socials a:hover,
footer .links-footbar a:hover {
  color: rgb(14, 241, 25);
}
footer .links-footbar {
  margin-bottom: 1.4rem;
}
footer .links-footbar a {
  color: #fff;
  padding: 0.7rem 1rem;
}
footer .label-name {
  font-size: 1rem;
}
footer .label-name {
  color: #86e696;
  font-weight: 700;
}
footer .label-name p a {
  color: rgb(184, 247, 233);
}
/* media queris */
@media (max-width: 768px) {
  header h1 {
    margin-left: 2.5rem;
    color: rgba(241, 6, 6, 0.952);
    text-transform: capitalize;
    font-size: 1.9rem;
    border-bottom: 3px solid red;
  }
  header h1 span {
    color: black;
    font-size: 1.3rem;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: -1000px;
    width: 100%;
    align-items: center;
    background-color: rgb(236, 236, 236);
    height: 90px;
    transition: all 600ms;
    z-index: -1;
  }
  .slider {
    left: 0px;
  }
  header .tgl-clk {
    display: flex;
  }
  /* main content */
  main article img {
    width: 100%;
    height: 300px;
    margin-top: 2rem;
  }
  main .container {
    flex-direction: column-reverse;
    align-items: center;
  }
  main .container .content {
    width: 100%;
  }
  main .container .content .artcl,
  .artcl2 {
    gap: 2rem;
    justify-content: center;
  }

  main .container .content .artcl section a,
  .content .artcl2 section a {
    display: flex;
    flex-direction: row-reverse;
  }
  main .container .content .artcl section a img,
  .artcl2 section a img {
    width: 100px;
    height: 80px;
    margin-left: 10px;
  }
  main .container .content .artcl section a p,
  .artcl2 section a p {
    margin-bottom: 0.6rem;
    margin-top: 0;
    font-size: 0.6rem;
  }
  main .container .content .artcl section h5,
  .artcl2 section h5 {
    font-size: 0.8rem;
    line-height: 1.2;
    width: 180px;
    color: black;
  }
  main .container aside {
    width: 100%;
    border-bottom: 2px solid rgb(71, 68, 68);
    padding-bottom: 1rem;
  }
  /* footer */
  footer {
    font-size: 82.5%;
  }
  footer .label-name p {
    font-size: 0.8rem;
  }
}
