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

.category {
  --sports-color: #f99500;
  --ent-color: #a66bbe;
  --tech-color: #009cff;
}

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

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

a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

ul {
  list-style: none;
}

img {
  width: 100%;
}


h1, h2, h3, h4, h5, h6 {
  margin-bottom: .55rem;
  line-height: 1.3;
}

.container {
  max-width: 1100px;
  overflow: hidden;
  margin: auto;
 padding: 0.2rem;
 overflow: hidden;
}

.category {
  display: inline-block;
  color: white;
  font-size: 0.5rem;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

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


.article-light a {
  color: white;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  padding: 7px 20px;
}


.btn-dark {
  background-color: #333;
  color: white;
  padding: 7px 20px;
}

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

.card {
  background: white;
  padding: 1rem;
}

.bg-dark {
  background-color: var(--dark-color);
  color: white;
}
.bg-primary {
  background-color: var(--primary-color);
  color: white;
}
.bg-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.py-1 {padding: 1.5rem 0;}
.py-2 {padding: 2rem 0;}
.py-3 {padding: 3rem 0;}
.p1 {padding: 1.5rem;}
.p2 {padding: 2rem;}
.p3 {padding: 3rem;}


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


#navbar {
  background-color: white;
}

#navbar .container {
  display:grid;
  grid-template-columns: 6fr 3fr 2fr;
  align-items: center;
  padding: 1rem;
}

#navbar .logo {
  width: 180px;
}

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

#navbar ul li a {
  padding: 15px;
}

#navbar ul li a.current {
  background-color: var(--primary-color);
  color: white;
}

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

/* Inner page grid container */

.page-container {
  display: grid;
  grid-template-columns: 5fr 2fr;
  margin: 2rem 0;
  grid-gap: 1.5rem
}

.page-container > *:first-child {
  grid-row: 1 / span 3;
}

.page-container h1 {
  text-transform: uppercase;
}

.articles-container {
  display: grid;
  grid-template-columns: 5fr 2fr;
  margin: 2rem 0;
  grid-gap: 1.5rem;
  
}

.social_media i {
  color: lightgray;
  margin-right: 10px;
}

#showcase {
  color: white;
  background: #333;
  padding: 2rem;
  position: relative;
}

#showcase::before {
  content: '';
  background: url(../img/featured.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);
  justify-content: center;
  align-items: center;
  height: 50vh;
}

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

.showcase-content h1 {
  font-size: 2rem;
  padding-bottom: 1rem;
}

.showcase-content p {
  font-size: 1rem;
  font-weight: bold;
}
.showcase-content a {
  display: block;
  margin-top: 20px;
  width: fit-content;
}

/* 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;
  align-items: center;
  grid-column: 1/ span 2;
}

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



#footer {
  background-color:#333;
}

#footer .container .news img {
  width: 140px;
  margin-bottom: 10px;
}

#footer .container {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2fr;
  padding: 20px;
  color: white;
  grid-gap: 5rem;
}

#footer .container h3 {
  text-transform: uppercase;
  text-align: left;
}

#footer .container .email p {
  margin-bottom: 10px;
}
#footer .container .email input {
  display: block;
  padding: 8px;
  width: 100%;
  color: #333;
  margin-bottom: 5px;
}

#footer .container .email .btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
}

#footer .container .email .btn:hover {
  background-color: darkred
}


#footer .container .site-links ul li {
  
  border-bottom: 1px solid #444;
  margin-top: 15px;
}
#footer .container .site-links ul li a {
  display: block;
  color: white;
  font-weight: normal;
  margin-bottom: 5px;
}

#footer .container .join-club a {
  display: block;
  color: white;
  text-align: center;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  
}

#footer .copyright {
  background-color: #444;
  grid-column: 1 / span 4;
  color: white;
  text-align: center;
  margin: auto;
  padding: 10px 390px;
}

#about .container .page-container {
  padding: 0 20px;
}


#about .writer {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: var(--light-color);
  align-items: center;
  text-align: center;
}

#about .writer .category-ent {
  margin-top: 0.6rem;
  margin-right: 10px;
  }

#about .writer small {
  margin-top: 0.2rem;
  margin-left: 10px;
}

#categories ul {
  display: flex;
  flex-direction: column;
  justify-content:center;
  
  
}

#categories ul li {
  
  border-bottom: #333 dotted 1px;
  padding: 7px;
  list-style: inside;
}




