:root {
  /*--primary-color: #3B71CA;*/
  --primary-color: #0d6efd;
  --ghost-white: #F8F8FF;
  --black: #1c1c1c;
  --gray: #7E7E7E;
  --gray-light: #E4E4E4;
  --red: #b30000;
  --font-size-base: 1rem;
  --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
  --font-size-xl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
  --border-radius: 10px;
}

*{
	margin: 0;
	padding: 0;
}

body {
  min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
	"header header"
	"main main"
	"footer footer";
  /*font-size: 1.5rem;*/
  color: var(--black);
  background-color: var(--ghost-white);
}
/*
a { color: var(--black); }
h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); } */


header {
  top: 0;
	position: sticky;
	grid-area: header;
  background-color: var(--primary-color);
  z-index: 10;
}

main {
  grid-area: main;
  background-color: var(--ghost-white);
}

.c-item {
	height: 480px;
}

.c-img {
	height: 100%;
	object-fit: cover; /* This preserves the aspect ratio of the img, making it sharp and non-distorted esp. when the width/heigth is changed */
	filter: brightness(0.6); /* This is to make the img a bit darker since I'm going to place text on it */
}

.c-overview {
  height: 180px;
  background-color: #d3dae1;
}

.category-links {
	width: 100%;
	padding: 0;
}

.category-links ul {
	background-color: whitesmoke;
}

.category-links ul li {
  width: 100%;
	height: 50px;
  background-color: rgba(245, 245, 245, 0.638);
}

.category-links ul li:first-child {
	background-color: #0d6efd;
	color: rgba(245, 245, 245, 0.638);
	font-weight: bold;
	font-size: 1.5rem;
	padding: 2px 5px;
}

.category-links ul li a {
  width: 100%;
	height: 100%;
	color: #26272b;
	font-size: 1rem;
}

.category-links ul li:hover {
	color: #0d6efd;
}

footer {
  grid-area: footer;
  background-color: #26272b;
  padding: 45px 0 20px;
  font-size: 15px;
  line-height: 24px;
  color: #737373;
}

footer ul li a, footer p {
  font-size: 1.13rem;
}

footer hr {
  border-top-color: #bbb;
  opacity: 0.5
}

footer hr.small {
  margin: 20px 0
}

footer h6 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 2px
}

footer a {
  color: #737373;
  text-decoration: none;
}

footer a:hover {
  color: #0d6efd;
  text-decoration: none;
}

.footer-links {
  padding-left: 0;
  list-style: none
}

.footer-links li {
  display: block
}

.footer-links a {
  color: #737373
}

.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
  color: #3366cc;
  text-decoration: none;
}

.footer-links.inline li {
  display: inline-block
}

footer .social-icons {
  text-align: right
}

footer .social-icons a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: #33353d
}

.copyright-text {
  margin: 0
}

@media (max-width:991px) {
  footer [class^=col-] {
      margin-bottom: 30px
  }
}

@media (max-width:767px) {
  footer {
      padding-bottom: 0
  }

  footer .copyright-text,
  footer .social-icons {
      text-align: center
  }
}

.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none
}

.social-icons li {
  display: inline-block;
  margin-bottom: 4px
}

.social-icons li.title {
  margin-right: 15px;
  text-transform: uppercase;
  color: #96a2b2;
  font-weight: 700;
  font-size: 13px
}

.social-icons a {
  background-color: #eceeef;
  color: #818a91;
  font-size: 16px;
  display: inline-block;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all .2s linear;
  -o-transition: all .2s linear;
  transition: all .2s linear
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #29aafe
}

.social-icons.size-sm a {
  line-height: 34px;
  height: 34px;
  width: 34px;
  font-size: 14px
}

.social-icons a.facebook:hover {
  background-color: #3b5998
}

.social-icons a.twitter:hover {
  background-color: #00aced
}

.social-icons a.linkedin:hover {
  background-color: #007bb6
}

.social-icons a.dribbble:hover {
  background-color: #ea4c89
}

@media (max-width:767px) {
  .social-icons li.title {
      display: block;
      margin-right: 0;
      font-weight: 600
  }
}

@media (min-width: 768px) {
  main {
    min-height: 68.7vh;
  }
}

.custom-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f8f8;
}

.custom-input {
  border-radius: 3px;
  border: 1px solid #ccc;
  padding: 8px;
}

.custom-file-input {
  padding: 8px;
  border-radius: 7px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.custom-button {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 10px 20px;
  border-radius: 10px;
}

/* Color of the links BEFORE scroll */
.navbar-scroll .nav-link,
.navbar-scroll .navbar-toggler-icon,
.navbar-scroll .navbar-brand {
  color: #262626;
}

/* Color of the navbar BEFORE scroll */
.navbar-scroll {
  background-color: #FFC017;
}

/* Color of the links AFTER scroll */
.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-toggler-icon,
.navbar-scroll .navbar-brand {
  color: #262626;
}

/* Color of the navbar AFTER scroll */
.navbar-scrolled {
  background-color: #fff;
}

/* An optional height of the navbar AFTER scroll */
.navbar.navbar-scroll.navbar-scrolled {
  padding-top: auto;
  padding-bottom: auto;
}

.navbar-brand {
  font-size: unset;
  height: 3.5rem;
}


/* Banner Section */
.banner-image {
  max-height: 528px;
  filter: drop-shadow(0px 44px 34px rgba(0, 0, 0, 0.25));
  overflow: hidden;
  border-radius: var(--border-radius);
}
  
/* Main Header */
.header {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas: 
  "logo button"
  "menu menu";
  padding-top: 10px;
}
  
@media only screen and (min-width: 768px) {
  .header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 
    "logo menu button";
  }
}


/* Delete from here */

  .header__logo {
    font-weight: 800;
    font-size: 25px;
    text-decoration: none;
    grid-area: logo;
  }
  
  .header__logo:hover {
    text-decoration: underline;
  }
  
  .header__nav {
    justify-content: center;
    display: flex;
    grid-area: menu;
  }
  
  .header__logo, .header__nav, .header__button {
    width: 100%;
  }
  
  .header__button {
    display: flex;
    justify-content: end;
    grid-area: button;
  }
  
  .header__button button {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    border: 0;
    padding: 6px 12px;
    background: none;
    border-radius: 10px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
  }
  
  .header__button button:hover {
    border: 2px solid var(--black);
  }
  
  /* Header -> Navigation */
  .header__nav ul {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    font-weight: 600;
    padding: 0;
  }
  
  .header__nav ul a {
    padding: 10px;
    text-decoration: none;
  }
  
  .header__nav ul a.active {
    color: #7E7E7E;
  }
  
  .header__nav ul a:hover {
    text-decoration: underline;
  }
  
  /* Site Info - HomePage */
  .siteinfo {
    padding: 10px 0;
    text-align: center;
  }
  
  .siteinfo__heading {
    margin-top: 10px;
    margin-bottom: 5px;
  }
  
  .siteinfo__body {
    font-size: var(--font-size-md);
    margin: 5px 0 40px 0;
  }

  .color__green {
    color: #17e194;
  }



  /* Dashboard Admin */
.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .admin-items {
    padding: 0;
    margin: 0;
  }
  
  .admin-item-controls form {
    display: inline-block;
  }
  
  .admin-item-controls .btn  {
    display: inline-block;
    background-color: var(--black);
    color: var(--gray-light);
    border: 0;
    text-decoration: none;
    font-size: .8rem;
    padding: 4px 8px;
    line-height: 2;
  }
  
  .admin-items li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
  }
  
  /* SeachBar */
  .searchBar {
    visibility: hidden;
    transform: translateY(-100px);
    background-color: var(--black);
    padding: 4px 0;
    position: absolute;
    left: 0;
    right: 0;
  }
  
  
  .searchBar.open {
    transform: translateY(0);
    transition: transform 0.1s;
  }
  
  .searchBar input {
    margin: 0;
    border: 0;
  }
  
  #searchClose {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--gray-light);
    padding: 15px;
  }
  
  
  .pagination {
    font-size: 1.3rem;
    color: var(--gray);
    text-decoration: none;
    margin-top: 40px;
    display: inline-block;
  }
  
  .pagination:hover {
    color: var(--black);
  }