@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Platypi:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* https://coolors.co/009ffd-2a2a72-232528-f9b61f */
  --orange: rgb(234, 167, 16);
  --light: #f4f4f4;
  --mid-white: #d3dee7;
  --grey: #757c86;
  --light-grey: #e3e5e7;
  --black: #232528;
  --light-blue: #009ffd;
  --light-blue-tint: #4dbcfe;
  --deep-blue: #2a2a72;
  --shadow-color: rgba(51, 51, 51, 0.4);
  --overlay: rgba(51, 51, 51, 0.6);
  --pitch-black: #131313;
  /* size-property */
  --border-radius-1: 4px;
  --max-width: 1300px;
  --grid-gap: 1.5rem;
  --grid-gap-large: 2.5rem;
  --section-gap: 5rem;
  --page-top-offset: 68px;
  --nav-pass-through: 0.65;
  --card-margin-offset: -100px;
  --card-margin-offset-small: -50px;
  /* Fonts */
}
.dark-glow {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
.category {
  --sport-color: #f9b61f;
  --ent-color: #2a2a72;
  --tech-color: #009ffd;
}

* {
  margin: 0em;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Lato, sans-serif;
  line-height: 1.5;
  background: var(--pitch-black);
  position: relative;
  top: calc(var(--page-top-offset) * -1);
}

a {
  color: var(--black);
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Platypi, sans-serif;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  font-weight: 500;
}

/* Utility */
.button {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  color: var(--light);
  background-color: var(--light-blue);
  padding: 1rem;
  border-radius: var(--border-radius-1);
  border-style: none;
  cursor: pointer;
  margin: var(--grid-gap) 0;
}
.button:hover {
  background-color: var(--light-blue-tint);
}
.input {
  border-radius: var(--border-radius-1);
  padding: 0.5rem;
  font-size: 1.3rem;
  border-style: none;
  margin-top: 1rem;
}
.category {
  /* implement hover cursor styling for this */
  display: none;
  color: #fff;
  font-size: 0.55rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}
.category-sport {
  background-color: var(--sport-color);
}
.category-tech {
  background-color: var(--tech-color);
}
.category-ent {
  background-color: var(--ent-color);
}

/* Navigation bar */
.nav-container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 2fr;
}

#main-nav {
  position: sticky;
  top: 10px;
  padding: 0.5rem 0;
  max-width: 88%;
  border-radius: var(--border-radius-1);
  margin: 0 auto;
  z-index: 3;
  box-shadow: 0 1px 3px 0 var(--shadow-color);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(234, 167, 16, 0.37);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: width 0.3s;
}

#main-nav.shrink {
  width: 85px;
  margin-left: 20px;
}
#main-nav.shrink .logo-container p {
  display: none;
}
#main-nav.shrink .topics {
  display: none;
}
#main-nav.grow {
  width: 100%;
}

.shrink {
  animation: 0.3s shrink ease-in-out;
}

@keyframes shrink {
  0% {
    width: 100%;
    margin: auto;
  }
  30% {
    width: 85px;
  }
  100% {
    width: 85px;
    margin-left: 20px;
  }
}

.grow {
  animation: 0.3s grow ease-in-out;
}

@keyframes grow {
  0% {
    width: 85px;
    margin-left: 20px;
  }
  30% {
    width: 85px;
  }
  100% {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  #main-nav {
    width: 100%;
  }
}
/* scroll snapping */

html {
  overflow: scroll;
  height: 100vh;
  scroll-snap-type: y mandatory;
}

.snap-child {
  scroll-snap-align: start;
  position: relative;
}
.breaker {
  height: 200px;
}
/* --logo */
.logo-container {
  display: flex;
  align-items: center;
}
.logo-container img {
  width: 50px;
  height: 50px;
  margin-right: 0.5rem;
}
.logo-container > p {
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  padding-top: 0;
}
.logo-container > p > span {
  color: var(--orange);
}
/* social */
.social {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  font-size: 2rem;
}
.social a {
  color: var(--grey);
  margin-right: 0.5rem;
}
.social:last-child {
  margin-right: 0;
}
/* Page Tab */
.tab {
  display: flex;
  justify-self: end;
  align-items: center;
}
.tab > li > a {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.6rem;
  border-radius: var(--border-radius-1);
  margin-right: 0.5rem;
}
.tab > li > a.current {
  background-color: var(--orange);
}

.tab > li > a:hover {
  background-color: var(--mid-white);
  color: #fff;
}
/* Nav Topics */
.topics {
  display: flex;
  gap: 2rem;
  justify-self: right;
  align-items: center;
}
.topics > li > a {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 0.4rem;

  font-size: 1rem;
  position: relative;
  display: block;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-1);
  margin-right: 0.5rem;
  font-family: Lato, sans-serif;
  letter-spacing: 1px;
  color: #e6e6e6;
  transition: transform 0.3s;
  border: 1px solid transparent;
}
.topics > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  width: 0px;
  height: 0.3rem;
  z-index: -1;
  /* background-color: var(--orange); */
  background-color: #232528;
  transition: width 0.1s;
}

.topics > li > a::first-letter {
  font-size: 1.5rem;
}
.btn-lg {
  padding: 1rem;
  font-size: 2rem;
  font-weight: bold;
  font-family: Raleway, sans-serif;
  background-color: transparent !important;
  color: var(--light);
}
.btn-lg:hover i {
  transform: translateX(15px);
  transition: transform 0.3s;
}

.btn-lg:hover span {
  transform: translateX(-15px);
  display: inline-block;
  transition: transform 0.3s;
}

.topics > li > a.current {
  background: rgba(57, 57, 57, var(--nav-pass-through));
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  border-radius: 10px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.topics > li > a:hover:not(.current) {
  background: rgba(57, 57, 57, var(--nav-pass-through));
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  border-radius: 10px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
/* .topics > li > a:hover::after {
  width: 90%;
  margin: 0 auto  ;
} */
img.test {
  width: 100%;
  height: 300px;
}

/* Showcase area */
#showcase {
  position: relative;
  margin: auto;
  padding: 0 2rem;
  overflow: hidden;
  height: 110vh;
  display: flex;
  align-items: center;
  justify-content: start;
  min-height: 262px;
  padding-left: calc((100vw - 88%) / 2);
  border-bottom: 2px solid var(--orange);
}
.parallax-container {
  background: url(../img/showcase.jpg) no-repeat center center/cover;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

.parallax-container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--overlay);
  z-index: 1;
}

#showcase .scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: calc(50% - 100px);
  color: white;
  font-size: 1.6rem;
}

.showcase-container {
  color: #ffffff;
  max-width: calc(var(--max-width) / 2);
  z-index: 2;
}
.showcase-container h1 {
  font-size: 6rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.showcase-container a {
  background-color: var(--light-blue);
  margin-top: 0.4rem;
}
.showcase-container p {
  font-size: 1.4rem;
  display: inline;
  padding: 0.2rem;
  margin-top: 0.4rem;
}

/* News Grid */
/* grid structure */
.card-margin-offset {
  margin-top: var(--card-margin-offset) !important;
  margin-bottom: calc(var(--card-margin-offset) * -1) !important;
}
.card-margin-offset-small {
  margin-top: var(--card-margin-offset-small) !important;
  margin-bottom: calc(var(--card-margin-offset-small) * -1) !important;
}
.grid-container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 1rem;
  overflow: visible;
  display: grid;
  grid-template-areas:
    "item-0 item-1 item-2"
    "item-3 item-4 item-5"
    "item-6 item-7 item-7";
  grid-gap: var(--grid-gap);
}
.item-0 {
  grid-area: item-0;
  cursor: auto !important;
  background-color: transparent !important;
  color: var(--light) !important;
  font-size: 1.3rem;
  box-shadow: none !important;
  border-left: 12px solid var(--light);
  border-radius: 0 !important;
}

.item-0:hover {
  transform: none !important;
  background: none !important;
}

.item-0 h4,
.item-0 h3 {
  text-align: left;
  font-size: 4rem;
}

.item-1 {
  grid-area: item-1;
}
.item-2 {
  grid-area: item-2;
  background-color: var(--black) !important;
  color: var(--light);
}

.item-3 {
  grid-area: item-3;
}
.item-4 {
  grid-area: item-4;
}
.item-5 {
  grid-area: item-5;
}
.item-6 {
  grid-area: item-6;
  background: var(--deep-blue) !important;
  color: var(--light);
}
.item-6 a,
.item-2 a {
  color: var(--light);
}
.item-7 {
  grid-area: item-7;
}
/* grid element */
#news-grid {
  padding-top: 100px;
  background-color: var(--pitch-black) !important;
  margin: var(--section-gap) 0;
}
#news-grid .title {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  margin-top: 0.3rem;
}
#news-grid > h2,
h4 {
  text-align: center;
}
#news-grid > h2 {
  font-size: 2.4rem;
  margin-bottom: 1.4rem;
}
.grid-container > div {
  /* background: var(--black); */
  padding: 2rem;
  color: var(--light);
  border-radius: var(--border-radius-1);
  /* box-shadow: 1px 1px 3px 0px var(--shadow-color); */
  gap: 6px;
  transition: all 0.3s;
}
.grid-container > div:hover {
  box-shadow: 0px 0px 2px 0 var(--light);
  transform: scale(1.02);
  cursor: pointer;
  background: linear-gradient(
    92.59deg,
    rgba(120, 120, 120, 0.34) 11.69%,
    rgba(217, 217, 217, 0) 94.6%
  );
}
.grid-container > div:hover img {
  transform: scale(0.98);
  transition: all 0.3s;
}
/* content orientation */
.item-row {
  display: flex;
  flex-direction: row;
}
.item-row-reverse {
  display: flex;
  flex-direction: row-reverse;
}
.item-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.item-col-reverse {
  display: flex;
  flex-direction: column-reverse;
}
/* gap btwn img and text */
.item-row img {
  margin-right: var(--grid-gap);
}
.item-row-reverse img {
  margin-left: var(--grid-gap);
}
/* news content */
.news-content > a {
  display: block;
  font: 500 1.6rem Lato;
  cursor: pointer;
  color: var(--light);
}
.thumbnail {
  height: auto;
  border-radius: var(--border-radius-1);
  margin: auto auto;
}
.item-row .thumbnail,
.item-row-reverse .thumbnail {
  width: 50%;
}
/* Footer */
footer {
  background-color: var(--black);
  /* max-height: 300px; */
}
.footer-container {
  max-width: var(--max-width);
  margin: auto;
  padding: 2.5rem 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 6fr 1fr;
  gap: var(--grid-gap);
  color: var(--light);
}
footer .fe {
  display: flex;
  flex-direction: column;
}

.org-intro .logo-container {
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
/* newsletter */
.footer-container input[type="submit"] {
  width: 50%;
  margin-top: 1rem;
}

/* links */
.links > li {
  position: relative;
  border-bottom: 1px solid var(--grey);
  margin-bottom: 0.6rem;
  padding: 0.6rem;
  padding-left: 0;
}
.links > li > a {
  color: var(--light);
}
.links > li > a:hover {
  color: var(--orange);
}

/* bottom banner */
.bottom-banner {
  border-radius: var(--border-radius-1);
  grid-column: 1 / span 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Aricle Page */

#content-container {
  max-width: var(--max-width);
  margin: calc(var(--page-top-offset) * 1.5) auto;
  padding: 0 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 5fr 2fr;
  /* grid-template-rows:300px 240px 1fr; */
  gap: var(--grid-gap);
}
#content-container > * {
  background-color: var(--light);
  padding: 1.4rem;
  border-radius: var(--border-radius-1);
}
/* author line */
#content-container .author-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-grey);
  padding: 1rem;
  border-radius: var(--border-radius-1);
}

/* catergory menu */
aside.catergory-menu ul li {
  border-bottom: 1px dotted var(--grey);
}
aside.catergory-menu ul li a {
  display: block;
  padding: 0.5rem;
}
aside.catergory-menu ul li a:hover {
  color: var(--orange);
}
/* promotion */
#content-container aside.promotion {
  background-color: var(--orange);
  grid-column: 2;
}

article {
  grid-row: 1 / span 3;
}

/* about page */
#about-container {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 5fr 2fr;
  gap: var(--grid-gap);
}
#about-container > * {
  background-color: var(--light);
  padding: 1.4rem;
  border-radius: var(--border-radius-1);
}
#about-container aside.promotion {
  background-color: var(--orange);
  grid-column: 2;
}
#about-container article h1 {
  font-size: 2.5rem;
}
