@import url("https://fonts.googleapis.com/css?family=Open+Sans:400|Raleway:400");

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

html {
  font-size: 100%;
} /*16px*/

:root {
  --primary-100: #d9f0d3;
  --primary-200: #b2e1a8;
  --primary-300: #8cd17c;
  --primary-400: #65c251;
  --primary-500: #3fb325;
  --primary-600: #328f1e;
  --primary-700: #266b16;
  --primary-800: #19480f;
  --primary-900: #0d2407;
  --white: #fff;
  --black: #000;
  /* fonts  */
  --bodyFont: "Open Sans", sans-serif;
  --headingFont: "Raleway", sans-serif;
  /* grey colors  */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: 0.3s all linear;
  --letter-spacing: 1px;
  --border-radius: 0.25rem;
  --max-width: 1170px;
  --fixed-width: 700px;
  --error-alert: #ca322b;
  --green-alert: #d4edda;
}

/* global styles  */

body {
  background: var(--grey-50);
  font-family: var(--bodyFont);
  font-weight: 400;
  line-height: 1.75;
  color: var(--black);
}

p {
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  margin-bottom: 1.5rem;
  font-family: var(--headingFont);
  font-weight: 400;
  line-height: 1.3;
  text-transform: capitalize;
}

h1 {
  margin-top: 0;
  font-size: 3.052rem;
}

h2 {
  font-size: 2.441rem;
}

h3 {
  font-size: 1.953rem;
}

h4 {
  font-size: 1.563rem;
}

h5 {
  font-size: 1.25rem;
}

small,
.text_small {
  font-size: 0.8rem;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

ul {
  list-style: none;
}
/*
************
Custom Styles
************
*/
.btn {
  text-transform: capitalize;
  border: transparent;
  background: var(--primary-500);
  display: inline-block;
  border-radius: var(--border-radius);
  padding: 0.375rem 0.75rem;
  letter-spacing: var(--letter-spacing);
  color: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-size: 0.875rem;
}

.btn:hover {
  background: var(--primary-600);
  box-shadow: var(--shadow-3);
}

/*
************
Slider
************
*/
main {
  padding: 4rem 0;
}

.section-center {
  max-width: var(--fixed-width);
  width: 90%;
  margin: 0 auto;
}

.section-title {
  letter-spacing: var(--letter-spacing);
  text-align: center;
  margin-bottom: 1rem;
  margin: 0 auto 5rem auto;
}

.underline {
  background-color: var(--primary-500);
  width: 5rem;
  height: 0.3rem;
  border-radius: var(--border-radius);
  margin: -1rem auto 2rem auto;
}

.sliders {
  /* Hides the overflow in x axis  */
  overflow: hidden;
  display: grid;
  justify-items: stretch;
  position: relative;
  box-shadow: var(--shadow-3);
  transition: var(--transition);
}

.slider {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  display: grid;
  place-items: center;
  min-height: 28rem;
  transition: all 0.4s linear;
}

.img-container {
  position: relative;
}

.img-container::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  right: 0.5rem;
  border-radius: 50%;
  width: 9rem;
  height: 9rem;
  background: var(--primary-500);
}

.quote {
  position: absolute;
  top: 0.2rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  background: var(--primary-500);
}

.slider-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  position: relative;
  margin-bottom: 1rem;
}

.author {
  font-size: clamp(0.875rem, 5vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.job {
  text-transform: capitalize;
  font-weight: bold;
  color: var(--primary-500);
  letter-spacing: var(--letter-spacing);
  font-size: 1rem;
}

.slider p {
  text-align: center;
  max-width: 35rem;
}

.prev,
.next {
  position: absolute;
  top: 0;
  border: none;
  background: none;
  color: var(--white);
  background: var(--primary-500);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  /* z-index: 1; */
  transition: var(--transition);
}

.prev {
  left: 0;
  top: 50%;
}

.next {
  right: 0;
  top: 50%;
}

.next:hover,
.prev:hover {
  background: var(--primary-800);
}

@media (min-width: 768px) {
  .next,
  .prev {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}
