:root {
  --primary: #33312f;
  --bg: rgb(32, 31, 31);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
  border: 0;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 7%;
  background-color: rgba(39, 38, 36, 0.93);
  border-bottom: 1px solid #252423;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar img {
  width: 200px;
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1rem;
  margin: 0.6rem;
}

.navbar .navbar-nav a:hover {
  color: #21211f;
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.2rem;
  border-bottom: 0.1rem solid #21211f;
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: #21211f;
}

#menu {
  display: none;
}

/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/header.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  contain: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(1, 1, 3, 1) 3%,
    rgba(255, 255, 255, 0) 25%
  );
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 55rem;
}

.hero .content h1 {
  font-size: 2em;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(1, 1, 3, 0.5);
  line-height: 1.1;
}

.hero .content h1 span {
  color: #ca391c;
}

.hero .content p {
  font-size: 1.1rem;
  color: #fff;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  background-color: #ca391c;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* breadcumb */
ul.breadcrumb {
  padding: 10px 16px;
  list-style: none;
  background-color: rgb(37, 35, 35);
  margin-top: 2rem;
  margin-bottom: 0;
}
ul.breadcrumb li {
  display: inline;
  font-size: 13px;
}
ul.breadcrumb li+li:before {
  padding: 8px;
  color: #fff;
  content: "/\00a0";
}
ul.breadcrumb li a {
  color: #fff;
  text-decoration: none;
}
ul.breadcrumb li a:hover {
  color: #21211f;
  text-decoration: underline;
}

/* dijual section */
.dijual {
  padding: 5rem 7% 1.4rem;
  background-color: rgb(37, 35, 35);
}

.dijual h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0rem;
}

.dijual h2 span {
  color: #ca391c;
}

.dijual p span {
  color: #ca391c;
}

.dijual p {
  text-align: center;
  font-weight: 300;
}

.dijual .container {
  width: 100%;
  margin: 20px auto 0.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.dijual .container .card {
  border: 1px solid #fff;
  border-radius: 20px;
  background-color: #dbdbdb;
  overflow: hidden;
  margin: 10px;
}

.card .header {
  height: 250px;
  background-color: bisque;
  background-size: cover;
}

.card .header img {
  width: 335px;
  height: 250px;
}

.card .content {
  padding-bottom: 10px;
  text-align: center;
  padding-top: 10px;
  color: black;
}

.card .content h3 {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 1rem;
  color: #fff;
  background-color: #ca391c;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.card .content p span {
  padding-bottom: 10px;
  text-align: center;
  padding-top: 10px;
  color: black;
  font-weight: 900;
}

.dijual .card .cta {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.dijual .card .cta:hover {
  background-color: #525151;
}

.dijual .button-lihatsemua {
  text-align: center;
}

.dijual .btn:hover {
  background-color: #525151;
}

.dijual .btn {
  margin-top: 1rem;
  display: flex;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  background-color: #ca391c;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* disewa section */
.disewa {
  padding: 5rem 7% 1.4rem;
}

.disewa h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0rem;
}

.disewa h2 span {
  color: #ca391c;
}

.disewa p span {
  color: #ca391c;
}

.disewa p {
  text-align: center;
  font-weight: 300;
}

.disewa .container img {
  border: 2px solid #fff;
  width: 100%;
  margin-top: 1rem;
  border-radius: 10px;
}

/* kredit section */
.kredit {
  padding: 5rem 7% 1.4rem;
  background-color: rgb(37, 35, 35);
}

.kredit h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0rem;
}

.kredit h2 span {
  color: #ca391c;
}

.kredit p span {
  color: #ca391c;
}

.kredit p {
  text-align: center;
  font-weight: 300;
}

.kredit .container {
  width: 100%;
  margin: 20px auto 0.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.kredit .container .card {
  border: 1px solid #fff;
  border-radius: 20px;
  background-color: #dbdbdb;
  overflow: hidden;
  margin: 10px;
}

.kredit .card .cta {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.kredit .card .cta:hover {
  background-color: #525151;
}

.kredit .button-lihatsemua {
  text-align: center;
}

.kredit .btn:hover {
  background-color: #525151;
}

.kredit .btn {
  margin-top: 1rem;
  display: flex;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  background-color: #ca391c;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* pasang iklan section */
.iklan {
  padding: 5rem 7% 1.4rem;
  background-color: rgb(37, 35, 35);
}

.iklan h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0rem;
}

.iklan h2 span {
  color: #ca391c;
}

.iklan p span {
  color: #ca391c;
}

.iklan p {
  text-align: center;
  font-weight: 300;
}

.iklan .row {
  display: flex;
  margin-top: 30px;
}

.iklan .row .iklan-img {
  flex: 1 1 45rem;
}

.iklan .row .iklan-img img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid white;
}

.iklan .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.iklan .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.iklan .row .content p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: left;
}

/* footer section */

footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0;
  margin-top: 3 rem;
}

footer .socials {
  padding: 1rem;
}

footer .socials a {
  color: brown;
  margin: 1rem;
  font-size: 2.5rem;
}

footer .socials a:hover,
footer .links a:hover {
  color: var(--bg);
}

footer .links {
  margin-bottom: 1.4rem;
}

footer .links a {
  color: white;
  padding: 0.7rem 1rem;
}

footer .credit {
  font-size: 0.8rem;
}

footer .credit a {
  color: tomato;
  font-weight: 700;
}

/* whatsapp html */

.wa {
  padding: 5rem 7% 1.4rem;
}

.wa .row {
  display: flex;
  margin-top: 30px;
}

.wa .row .logo {
  flex: 1 1 40rem;
}

.wa .row .logo img {
  width: 100%;
  border-radius: 25px;
  border: 1px solid white;
}

.wa .row .logo .logo-wa {
  font-size: 15rem;
  text-align: center;
}

.wa .row .content {
  flex: 1 1 50rem;
  padding: 0 3rem;
  margin-top: 5.5rem;
}

.wa .row .content h2 span {
  color: #ca391c;
}

.wa .row .content p {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: left;
}

/* pagination */
.container-pagination {
  text-align: center;
  background-color: rgb(37, 35, 35);
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: white;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid #ddd;
  margin: 0 4px 20px;
  border-radius: 15%;
}

.pagination a.active {
  background-color: tomato;
  color: white;
  border: 1px solid tomato;
}

.pagination a:hover:not(.active) {
  background-color: tomato;
}

/* media queries */

/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 100%;
  }
}

/* tablet */
@media (max-width: 864px) {
  html {
    font-size: 70.5%;
  }

  #menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 20rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .dijual .container {
    display: flex;
    flex-wrap: wrap;
  }

  .disewa .container img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .kredit .container img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .iklan .row {
    flex-wrap: wrap;
  }

  .iklan .row .content h3 {
    margin-top: 1rem;
  }

  .iklan .row .iklan-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .iklan .row .content {
    padding: 0;
  }
}

/* handphone */
@media (max-width: 450px) {
  html {
    font-size: 70%;
  }
}
