:root {
  --light: rgb(244, 244, 244);
  --accent: rgb(8, 128, 129);
  --green: rgb(8, 200, 94);
  --red: rgb(220, 53, 69);

  --serif: 'Cormorant Garamond', serif;
  --sans: 'Barlow', sans-serif;

  --swiper-navigation-size: 1.5rem;
}

body {
  font-family: var(--sans);
}

.navbar-brand,
.navbar-nav a,
.nav a,
.badge,
.category-tab.nav-link,
footer h5 {
  font-family: var(--serif);
}

.max-wide {
  max-width: 1600px;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: black;
}


/* *
* HOME PAGE 
*  */

.navbar-brand {
  letter-spacing: 10px;
}

.navbar-nav a,
.nav a,
.badge {
  letter-spacing: 2px;
}

body:not(.about).navbar ul li a {
  font-size: 1.25rem;
}

.sticky-nav .nav-item {
  border: 2px solid var(--light);
  transition: all 0.5s ease-in-out;
}

.sticky-nav .nav-item:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.sticky-nav .nav-item a {
  color: black;
}

.sticky-nav .nav-item:hover a {
  color: white;
}

#search {
  border: 2px solid rgba(255, 255, 255, 0.5);
}

#search input {
  background: black;
  color: white;
  border: none;
  box-shadow: none;
}



#search .btn {
  color: white;
}

search .btn:hover,
search .btn:focus {
  color: var(--accent);
}

#search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

section .heading-title {
  color: var(--accent);
  border-bottom: 2px solid;
  border-top: 2px solid;
  border-color: black;
  font-family: var(--serif);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.heading-title h2 {
  margin-bottom: 0;
}

/* stock bar */
.market .open,
.marketplaces .open {
  color: var(--green);
}

.market span:last-of-type,
.marketplaces span:last-of-type {
  color: rgba(255, 255, 255, 0.5);
}

.crypto-item,
.stock-item {
  max-width: 200px;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev,
.swiper-button-next {
  color: black;
}

.stock-wrapper .high,
.crypto-wrapper .high,
.fa-solid.fa-arrow-trend-up {
  color: var(--green);
}

.stock-wrapper .low,
.crypto-wrapper .low,
.fa-solid.fa-arrow-trend-down {
  color: var(--red);
}

.fa-solid.fa-arrow-trend-up,
.fa-solid.fa-arrow-trend-down {
  font-size: 1.25rem;
}

/* crypto */
.crypto-wrapper {
  margin-bottom: 3.5rem;
}

.crypto-wrapper .swiper-slide[aria-label='1 / 20'] .crypto-item {
  padding-left: 0 !important;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -1rem;
}

.swiper-pagination-bullet-active {
  background: black;
}

/* Top News section */
.article-title a {
  text-decoration: none;
  color: black;
}

.top-section article:not(.featured) .article-content {
  min-height: 240px;
}

.thumbnail {
  width: 100%;
  height: 100%;
  background-color: gray;
}

.featured.thumbnail {
  height: 400px;
  width: 100%;
}

.thumbnail img,
.featured.thumbnail img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#favourite {
  padding: 0.75rem 1rem;
  font-size: 0.89rem;
  transition: all 0.5s ease-in-out;
}

#favourite:hover {
  color: var(--accent);
}

#favourite.pressed {
  transform: scale(1.2);
  color: var(--accent);
}

article .badge {
  width: fit-content;
  background: black;
  font-size: 0.89rem;
  font-weight: normal;
  letter-spacing: 5px;
}

.article-details:hover > .article-title a,
.article-details:hover > .article-title h3 {
  color: var(--accent);
  text-decoration: underline;
}

.top-section article.featured .badge {
  background: var(--accent) !important;
}

.top-section .article-abstract p {
  font-size: 1.25rem;
}

.by-line,
.last-updated {
  font-size: 0.9rem;
}

.by-line span {
  font-weight: bold;
}

/* Financial news */
.category-news .nav-pills .nav-link {
  background: var(--light);
  color: black;
  letter-spacing: 2px;
  padding-top: 0.75rem;
}

.category-news .nav-pills .nav-link.active {
  background: var(--accent);
  color: white;
}

.category-news {
  min-height: 500px;
}

.article-wrapper:not(:last-child) {
  border-bottom: 1px solid var(--light);
}

.category-news .thumbnail {
  max-width: 30%;
  height: 250px;
}

.category-news .thumbnail-bg {
  height: 100%;
  width: 100%;
  background: var(--accent);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease-in-out;
}

.category-news article:hover .thumbnail-bg {
  filter: grayscale(0);
}

.category-news .badge {
  padding: 1rem 1rem 0.75rem;
}

.category-news-articles-wrapper .article-wrapper:last-of-type {
  padding-bottom: 0 !important;
}

/* aside */
.aside-container {
  overflow: hidden;
}

.greeting .btn,
.contact button.submit {
  border: 2px solid var(--accent);
  background: white;
  color: var(--accent);
}

.greeting .btn:hover,
.greeting .btn:focus,
.contact button.submit:hover,
.contact button.submit:focus {
  background: var(--accent);
  color: white;
}

.aside-title {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid black;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
}

aside article {
  border-bottom: 2px solid var(--light);
}

#aside-top-news .article-title h3 {
  font-size: 1.25rem;
}

.deco-border {
  border-top: 2px solid rgba(0, 0, 0, 0.5);
}

footer h4 {
  font-family: var(--serif);
  letter-spacing: 5px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--accent) !important;
}

footer p.fst-italic {
  font-size: 1.5rem;
  font-family: var(--serif);
}

.copyright {
  background: black;
}

/*====================
*
* PAGES
* 
======================*/
.nav a {
  color: black;
  padding: 0;
  margin: 0.5rem 1rem;
}

.masthead {
  background-image: url('../img/about_bg.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  min-height: 60vh;
  position: relative;
  color: white;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.masthead h1 {
  font-size: 4rem;
  font-family: var(--serif);
  letter-spacing: 10px;
}

.color-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, black, rgba(0, 0, 0, 0.2) 30%);
}

.masthead-container {
  max-width: 1600px;
}

.section-content {
  max-width: 768px;
}

.grid {
  display: grid;
}

.grid-item {
  width: 100%;
  height: 100%;
}

.section-title {
  color: var(--accent);
  font-family: var(--serif);
  letter-spacing: 5px;
}

.card {
  max-width: 350px;
  border: 2px solid var(--light);
}

span.purecounter {
  font-family: var(--serif);
  font-size: 4rem;
}

span.purecounter.percentage::after {
  content: '%';
}

.icon-wrapper i {
  color: var(--accent);
}

.form-control {
  border-radius: 0;
}

.form-control:focus {
  border-color: var(--accent);
  outline: 0;
  border: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(8, 128, 129, 0.25);
}

.form-check-input[type='checkbox'] {
  border-radius: 0;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.terms span.display-5 {
  font-family: var(--serif);
}

/*====================
*
* MEDIA QUERIES
* 
======================*/
@media (max-width: 575.999px) {
  .today-weather {
    width: 100%;
    justify-content: space-between;
  }

  #search {
    width: 100%;
  }

  .category-news .thumbnail {
    height: 100px;
  }
}

@media (min-width: 576px) {
  .top-section article .badge {
    position: absolute;
    right: 0;
  }
}

@media (max-width: 767.9999px) {
  .masthead {
    height: 40vh;
  }

  .masthead h1 {
    font-size: calc(2.5rem + 3.3vw);
  }

  .category-news .thumbnail {
    max-width: 100%;
  }

  .category-news-articles-wrapper .article-wrapper:last-of-type {
    margin-bottom: 0 !important;
    border-bottom: 2px solid black;
  }
}

@media (min-width: 768px) {
  .top-section article:not(.featured) .badge {
    left: -1.5rem;
  }

  .services-section .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-section .grid,
  .stats-section .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  aside {
    border-left: 2px solid var(--light);
  }
}


 .row mx-auto max-wide{
  display: flex; /* Use flexbox */
  justify-content: space-between; 
  /* margin-bottom: auto; */
} 

.container{
  width: 400px;
  height: 100px;
  /* border: 1px solid black; */
  margin: 5px;
  /* margin-bottom: auto; */
}






