:root {
  --primary-color: #195cce;
  --secondary-color: #195cce;
  --light-color: #f3f3f3;
  --dark-color: #333;
  --max-width: 1100px;
}

.category {
  --hacking-color: #b00000;
  --ent-color: #000000;
  --tech-color: #195cce;
}

.data-handle-important {
  color: #195cce;
}

.margin-left {
  margin-left: auto;
}

* {
  margin: 0rem;
  padding: 0rem;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.5;
  background: var(--light-color);
}

a {
  color: #1d1515;
  text-decoration: none;
}

ul {
  list-style: none;
}

ul + h2 {
  margin-top: 1rem;
}

h3 {
  margin: 1rem 0rem;
}
p {
  margin: 1rem 0rem;
}

img {
  width: 100%;
}


.img-grid-first {
  padding-right: 1rem;
}

.img-grid-last {
  padding-left: 1rem;
}


.highlight-spacing {
    margin-top: 0.5rem;
}
/* Utility */

.title-header {
  font-size: 3rem;
  margin: 1rem 0rem;
}

.title-header-grid {
  font-size: 3rem;
  margin: 2rem 0rem;
  text-align: center;
  color: #404040;
}

.container {

  max-width: var(--max-width);
  margin: auto;
  padding: 0rem 2rem;
  overflow: hidden;
}

.container-nav {
  margin: auto;
  max-width: var(--max-width);
  align-items: center;
}

.container-purchase-premium {
  margin: auto;
  align-items: center;
  text-align: center;
}
.category {
  display: inline-block;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

.category-hacking { background: var(--hacking-color) }
.category-ent { background: var(--ent-color) }
.category-tech { background: var(--tech-color) }

.btn {
  display: inline-block;
  border: none;
  background: var(--dark-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
}

.btn-purchase {
  margin: 1rem 0rem;
  text-align: center;
}

.btn-light { background: var(--light-color) }
.btn-primary { background: var(--primary-color) }
.btn-secondary { background: var(--secondary-color) }

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

.card {
  background: #fff;
  padding: 1rem;
}

.bg-dark {
  background: var(--dark-color);
  color: #fff;
}

.bg-primary {
  background: var(--primary-color);
  color: #fff;
}

.bg-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark a,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary a,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary a {
  color: #fff;
}



.l-heading {
  font-size: 3rem;
}

.list li a:hover {
  color: var(--primary-color) !important;
}


.logo-footer {
  width: 70%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  margin: 2rem auto;
}

.logo-footer img {
  max-width: 100%; 
  height: auto; 
}

.footer-container {
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  text-align: center;
}

.footer-title {
  margin-top: 1.5rem;
}

.copyright{
  margin-top: 1.5rem;
}

/* Navigation */
#main-nav {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin: 1.5em;
  top: 0;
  z-index: 2;
}


#main-nav .logo {
  width: 30%;
}

#main-nav ul {
  justify-self: end;
  display: flex;
}

#main-nav ul li a {
  padding: 0.75rem;
  font-weight: bold;
}

#main-nav ul li a.current {
  background: var(--primary-color);
  color: #fff;
}

#main-nav ul li a:hover {
  background: var(--light-color);
  color: var(--dark-color);
}


/* Showcase */
#showcase {
  color: #fff;
  background: rgb(15, 14, 14);
  padding: 2rem;
  position: relative;
}

#showcase:before {
  content: '';
  background: url('../img/data-source.jpg') no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

#showcase .showcase-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
  height: 60vh;
}

#showcase .showcase-content {
  z-index: 1;
}

#showcase .showcase-content p {
  margin-bottom: 1rem;
}

/* Home Articles */
#home-articles .articles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

#home-articles .articles-container > *:first-child,
#home-articles .articles-container > *:last-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;  
  grid-column: 1 / span 2;
}

#home-articles .articles-container > *:last-child {
  grid-column: 2 / span 2;
}

#article .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eee;
  padding: 0.5rem;
}

#article .meta .category {
  margin-top: 0.4rem;
}
