/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /**
   * colors
   */

  --cultured: hsla(0, 0%, 97%, 1);
  /*--french-bistre: hsla(31, 17%, 44%, 1);*/
  /*--french-bistre: hsla(120, 40%, 44%, 1);*/
  --french-bistre: #9a2728;
  --jet: hsla(0, 0%, 20%, 1);
  /*--bistre: hsla(35, 100%, 9%, 1);*/
  --bistre: #256b46;
  /*--bistre_a75: hsla(35, 100%, 9%, 0.75);*/
  --bistre_a75: #256b4675;
  --camel: hsla(30, 30%, 58%, 1);
  --umber: hsla(31, 17%, 36%, 1);
  /*--golden-brown_a60: hsla(35, 70%, 38%, 0.6);*/
  --golden-brown_a60: hsla(120, 40%, 44%, 0.6);
  --granite-gray: hsla(0, 0%, 38%, 1);
  --white: hsla(0, 0%, 100%, 1);
  --black: hsla(0, 0%, 0%, 1);
  --green: hsl(116, 78%, 81%);
  --maroon: rgb(154, 40, 40);
  /**
   * typography
   */

  --ff-rosario: "Rosario", sans-serif;
  --ff-poppins: "Poppins", sans-serif;

  --fs-1: 5rem;
  --fs-2: 4.2rem;
  --fs-3: 2rem;
  --fs-4: 2.6rem;
  --fs-5: 1.8rem;

  --fw-600: 600;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 12rem;

  /**
   * box shadow
   */

  --shadow-1: 0px 0px 30px 0px hsla(0, 0%, 0%, 0.2);

  /**
   * border radius
   */

  --radius-circle: 50%;
  --radius-20: 20px;
  --radius-16: 16px;
  --radius-6: 6px;
  --radius-4: 4px;
  --btn-radius: 32px 6px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li {
  list-style: none;
}

a,
img,
span,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

html {
  font-family: var(--ff-poppins);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--granite-gray);
  font-size: 1.6rem;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*-----------------------------------*\
  #TEAM 
\*-----------------------------------*/

.team-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.person {
  display: flex;
  flex-direction: column;
  height: auto;
  align-items: center;
  width: 220px;
}

.person-container {
  height: 312px;
  width: 400px;
  cursor: pointer;
  transform: scale(0.48);
  transition: transform 250ms
    cubic-bezier(0.4, 0, 0.2, 1);
  
}

.person img{
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 340px;
  top: 164px;
  left: 22px;
  transform: translateY(20px) scale(1.15);
  transition: transform 250ms
    cubic-bezier(0.4, 0, 0.2, 1);
}

.person-container-inner {
  position: relative;
  clip-path: path("M 390,400 C 390,504.9341 304.9341,590 200,590 95.065898,590 10,504.9341 10,400 V 10 H 200 390 Z");
  top: -210px;
}

.divider {
  height: 3px;
  width: 130px;
  margin: -25px 0px 0px 0px;
  border-radius: 5px;
  background: #000;
}

.person h3{
  text-align: center;
  color: var(--french-bistre);
  margin: 0 0 0 0;
}

.person p {
  text-align: center;
  font-family: arial;
  color: #6e6e6e;
}

.person-container:hover {
  transform: scale(0.54);
}

.person-container:hover img{
  transform: translateY(0px) scale(1.3);
}

/*-----------------------------------*\
  #CONTACT US 
\*-----------------------------------*/
.contact{
  max-width: 80%;
  margin: auto;
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--white);
  background-size: cover;
}

.contactContainer
{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  
}

.contactContainer .contactInfo{
  width: 50%;
  display: flex;
  flex-direction: column;
}

.contactContainer .contactInfo .box{
  position: relative;
  padding: 20px 0;
  display: flex;
}

.contactContainer .contactInfo .box .icon{
  min-width: 80px;
  height: 80px;
  color: #fff;
  background: var(--french-bistre);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 22px;
}

.contactContainer .contactInfo .box .text{
  display: flex;
  margin-left: 20px;
  font-size: 16px;
  flex-direction: column;
  font-weight: 300;
}

.contactContainer .contactInfo .box .text h3{
  font-weight: 500;
  color: var(--french-bistre)
}

.contactForm{
  width: 45%;
  height: auto;
  padding: 30px;
  background: var(--french-bistre);  
  border-radius: 20px;
  position: relative;
}

.contactForm h2{
  font-size: 30px;
  color: #fff;
  font-weight: 500;  
  margin-bottom: 40px;
}

.contactForm .name{
  display: flex;
}

.contactForm .name .inputBox{
  width: 50%;
  margin-right: 10px;
  margin-top: 1px;
  margin-bottom: 1px;
}

.contactForm .inputBox{
  position: relative;
  margin-top: 50px;
  margin-bottom: 50px;
  width: 100%;
}

.contactForm .inputBox span{
  position: relative;
  left: 10px;
  /* padding: 5px; */
  font-size: 16px;
  margin: 10px 0;
  pointer-events: none;
  transition: 0.5s;
  z-index: 1;
  color: #fff
}

.contactForm .inputBox input,
.contactForm .inputBox textarea{
  
  position: absolute;
  width: 100%;
  resize: none;
  padding: 10px;
  outline: none;
  font-size: 16px;
  bottom: -2px;
  background-color: var(--french-bistre);
  border: none;
  border-bottom: 2px solid #fff;  
  color: #fff;
  /*  
  
  margin-top: 20px; */
}

.contactForm .inputBox textarea{
  height: 40px;

}


.contactForm .inputBox input:focus ~ span,
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span,
.contactForm .inputBox textarea:valid ~ span{
  color: var(--bistre);
  font-size: 12px;
  transform: translateY(-45px);
}


.contactForm .button input[type="submit"]
{
  width: 200px; 
  background-color: #fff;
  color: var(--french-bistre);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--btn-radius);
  height: 50px;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-top: 1px;
}

.contactForm .button input[type="submit"]:hover
{
  background-color: var(--bistre);
  color: #fff;
}

@media (max-width: 991px){
.contact
{
  padding: 50px;
}
.contactContainer
{
  flex-direction: column;
}
.contactContainer .contactInfo
{
  margin-bottom: 40px;
  width: 100%;
}
.contactContainer .contactForm,
.contactInfo
{
  width: 100%;
}
}


/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/


.container {
  padding-inline: 16px;
}


.logo {
  color: var(--bistre);
  font-size: var(--fs-5);
  font-family: var(--ff-rosario);
  font-weight: bold;
}
.header.active .logo{
  color: var(--bistre);
}
.section {
  padding-block: var(--section-padding);
}

.h1 {
  font-size: 30px;
  /* font-weight: 5; */
}

.h1,
.h2,
.h3,
.h4 {
  color: var(--bistre);
  font-family: var(--ff-rosario);
  font-weight: var(--fw-600);
  line-height: 1.3;
}

.h1 .span {
  color: var(--french-bistre);
}
.h2 .span {
  color: var(--french-bistre);
}
.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: 2.5rem;
}

.h4 {
  font-size: 2rem;
}

.btn {
  background-color: var(--french-bistre);
  color: var(--white);
  display: flex;
  align-items: center;
  max-width: max-content;
  gap: 12px;
  min-height: 45px;
  padding-inline: 30px;
  border-radius: var(--btn-radius);
  transition: var(--transition-1);
}

.btn:is(:hover, :focus-visible) {
  background-color: var(--umber);
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--granite-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.text-center {
  text-align: center;
}

.grid-list {
  display: grid;
  gap: 60px;
}

.has-after {
  position: relative;
  z-index: 1;
}

.has-after::after {
  content: "";
  position: absolute;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}


/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: var(--shadow-1);
  padding-block: 10px;
  background-color: #ffffff86;
  z-index: 999;

}

.header.active {
  position: fixed;
  animation: slideIn 0.5s ease forwards;
  background-color: var(--white);
  box-shadow: var(--shadow-1);
}

@keyframes slideIn {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  font-size: 3.5rem;
  color: var(--bistre);
}

.nav-open-btn ion-icon {
  --ionicon-stroke-width: 26px;
}

.navbar {
  position: absolute;
  top: 0;
  left: -350px;
  max-width: 350px;
  width: 100%;
  background-color: var(--cultured);
  height: 100vh;
  padding: 16px;
  z-index: 2;
  visibility: hidden;
  transition: 0.25s var(--cubic-in);
}

.navbar.active {
  visibility: visible;
  transform: translateX(350px);
  transition: 0.5s var(--cubic-out);
}

.nav-close-btn {
  margin-inline-start: auto;
  font-size: 2.4rem;
  border: 1px solid var(--bistre);
  color: var(--bistre);
  padding: 8px;
  border-radius: var(--radius-4);
  margin-block-end: 24px;
}

.navbar-link {
  padding-block: 10px;
  /* color: var(--white); */
  color: var(--black);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible) {
  color: var(--maroon);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--black);
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-1);
}

.overlay.active {
  visibility: visible;
  opacity: 0.4;
}

/*-----------------------------------*\
  #ACHIEVEMENTS
\*-----------------------------------*/

.achievements-container{
  align-items: center;
}

.achievements-image{
  overflow: hidden;
  align-content: center;
}

.achievements-image img {
  max-width: 100%;
  height: auto;  
  margin-left: auto;
  margin-right: auto;
  display: block;
  transition: 0.5s ease;
}

.achievements-image:hover img {
  transform: scale(1.1);
}



/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

/* .hero {
  padding-block-start: 150px;
} */

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero .section-text {
  margin-block: 20px 36px;
}

.hero .btn {
  margin-inline: auto;
  margin-block-end: 12px;
}

.hero .wrapper {
  position: relative;
  display: grid;
  row-gap: 40px;
}

.hero .img-holder {
  border-radius: var(--radius-20);
  max-width: max-content;
  margin-inline: auto;
}

.hero .hero-banner-1 {
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
}

.hero .hero-banner-2 {
  border-top-left-radius: 150px;
  border-bottom-right-radius: 50px;
}

.hero .shape {
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 160px;
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  background-color: var(--bistre);
  color: var(--white);
}

.about .container {
  display: grid;
  gap: 30px;
}

.about-banner {
  border-radius: var(--radius-16);
  max-width: max-content;
}

.about-banner-1 {
  border-bottom-right-radius: 120px;
}

.about .section-title {
  color: var(--white);
}

.about .wrapper .section-title {
  margin-block-start: 20px;
}

.about-banner-2 {
  border-top-right-radius: 100px;
  border-bottom-left-radius: 100px;
}

.about-content .section-title {
  margin-block-end: 20px;
}

.about .btn {
  margin-block: 30px;
}

.about-banner-3 {
  border-bottom-right-radius: 100px;
}

/*-----------------------------------*\
  #COLLECTION
\*-----------------------------------*/

.collection .section-text {
  margin-block: 20px 60px;
}

.collection-card .card-banner {
  border-radius: 250px 250px 20px 20px;
  max-width: max-content;
  margin-inline: auto;
}

.collection-card .card-title {
  margin-block: 20px;
}

.collection-card .btn {
  margin-inline: auto;
  margin-block-start: 24px;
}

/*-----------------------------------*\
  #FEATURES
\*-----------------------------------*/

.feature {
  background-color: var(--bistre);
  color: var(--white);
}

.feature-banner {
  min-height: 520px;
}

.feature-banner::after {
  inset: 0;
  background-color: var(--bistre);
  opacity: 0.4;
}

.feature .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bistre_a75);
  padding: 32px;
  border-radius: var(--radius-circle);
  animation: pulse 2.5s ease-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0%,
  75.1% {
    box-shadow: 0 0 0 0 var(--golden-brown_a60);
  }

  75% {
    box-shadow: 0 0 0 20px transparent;
  }
}

.feature :is(.h2, .h4) {
  color: var(--white);
}

.feature .section-text {
  margin-block: 30px;
}

.feature-list-card {
  display: flex;
  /* align-items: center; */
  gap: 20px;
  margin-block-end: 30px;
}

.feature-list-card .card-icon {
  background-color: var(--french-bistre);
  padding: 15px;
  padding-block-start: 20px;
  flex-shrink: 0;
  border-radius: var(--radius-6);
  border-top-left-radius: 40px;
}

.feature-list-card .card-title {
  margin-block-end: 12px;
}

/*-----------------------------------*\
  #TESTIMONIALS
\*-----------------------------------*/

/* .testi {
  padding-block-start: 160px;
} */

.testi-card {
  position: relative;
  padding-inline: 36px;
}

.testi :is(.card-text, .client-name) {
  color: var(--bistre);
  font-family: var(--ff-rosario);
  line-height: 1.3;
}

.testi-card .card-text {
  font-size: var(--fs-3);
  margin-block-end: 40px;
}

.testi-card .client-name {
  font-size: var(--fs-5);
  font-weight: var(--fw-700);
}

.testi-card .icon {
  position: absolute;
  top: -80px;
  left: 0;
}

/*-----------------------------------*\
  #GALLERY
\*-----------------------------------*/

.section1{
  text-align: center;
  margin: 110px 50px auto ;
}

.section1 .hero-content{
  text-align: center;
}



.gallery {
  margin-left: 5%;
  margin-right: 5%;
}

.gallery-card {
  height: 430px;
  padding: 20px;
  margin-top: 20px;
  border-radius: 20px;
}

.gallery-card::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: var(--bistre);
  opacity: 0.4;
  z-index: -1;
  transition: var(--transition-1);
}


.gallery-card:is(:hover, :focus-within)::after { opacity: 0; transform: scale(1.1);}


.gallery-card .card-content {
  display: grid;
  align-content: space-between;
  height: 100%;
}

.gallery-card .card-title {
  color: var(--white);
}

.gallery-card .btn-link {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-1);
}

.btn-link:is(:hover, :focus-visible) {
  color: var(--french-bistre);
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog .section-text {
  margin-block: 20px 36px;
}

.blog .grid-list {
  gap: 30px;
}

.blog-card .card-banner {
  border-radius: 50px 50px 0 0;
}

.blog-card .img-cover {
  will-change: transform;
}

.blog-card:is(:hover, :focus-within) .img-cover {
  transform: scale(1.05) rotate(2deg);
  opacity: 0.8;
}

.blog-card .card-content {
  padding: 10px;
}

.blog-card .card-title {
  margin-block: 8px 20px;
}

.blog-card :is(.card-meta, .card-meta-wrapper) {
  display: flex;
  align-items: center;
}

.blog-card .card-meta {
  flex-wrap: wrap;
  column-gap: 40px;
}

.blog-card .card-meta-wrapper {
  gap: 8px;
}

.blog-card .card-meta-wrapper ion-icon {
  color: var(--french-bistre);
}

.blog .btn {
  margin-block-start: 80px;
  margin-inline: auto;
}
.blog .btn.read {
  margin-block-start: 30px;
}
/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--bistre);
  color: var(--white);
}

.footer-top {
  display: grid;
  gap: 30px;
  padding-block-end: 50px;
  border-block-end: 1px solid var(--french-bistre);
  padding: 40px;
}

.footer .logo {
  color: var(--french-bistre);
  font-size: 3.2rem;
}

.footer-brand .footer-text {
  margin-block: 20px;
  font-size: 13px;
}
.list-services{
  font-size: 13px;
}
.social-list {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-link {
  color: #9a2728;
  font-size: 1.8rem;
  transition: 0.5s;
}
.social-link:hover{
  color: var(--white);
}

.footer-list-title {
  color: #9a2728;
  font-family: var(--ff-rosario);
  font-size: 2rem;
  font-weight: var(--fw-700);
  margin-block-end: 20px;
}

.footer-link {
  padding-block: 7px;
  font-size: 13px;

}
.policy{
  text-decoration: underline;
}

.footer-list .footer-text {
  margin-block-end: 24px;
  font-size: 13px;
}

.footer-bottom {
  padding-block: 40px;
  text-align: center;
}

.copyright {
  color: #9a2728;
  font-family: var(--ff-rosario);
  font-size: var(--fs-5);
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {
  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }
}

/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 6.5rem;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 720px;
  }

  .grid-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
  }

  /**
   * HERO
   */

  .hero .wrapper {
    grid-template-columns: 0.8fr 1fr;
    align-items: flex-end;
    column-gap: 20px;
  }

  /**
   * GALLERY
   */

  .gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 2rem;
    width: 90%;
    margin:0 auto;
    margin-bottom: 50px;
    padding-top: 50px;
  }

  /**
   * FOOTER
   */

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-2: 4.8rem;
    --fs-3: 3.5rem;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 950px;
  }

  /**
   * HEADER
   */

  .nav-open-btn,
  .nav-close-btn,
  .overlay {
    display: none;
  }

  .header {
    padding-block: 10px;
  }

  .navbar,
  .navbar.active {
    all: unset;
    display: block;
  }

  .navbar-list {
    display: flex;
    gap: 40px;
  }

  .navbar-link {
    /* color: var(--black); */
    font-weight: bold;
    color: var(--bistre);
  }
  .work { 
    color: var(--maroon);
  }
  .navbar-link:hover{
    color: var( --maroon);
  }
  /**
   * HERO
   */

  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero .wrapper {
    grid-template-columns: 0.6fr 1fr;
    align-items: flex-end;
    column-gap: 40px;
  }

  .hero-content {
    text-align: left;
  }

  .h1 .span {
    display: inline;
  }

  .hero .btn {
    margin-inline: 0;
  }

  /**
   * ABOUT
   */

  .about .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    align-items: center;
    gap: 2rem;
  }

  .about .wrapper {
    align-self: flex-end;
    /* margin-inline-end: -140px; */
  }

  .about-banner-1 {
    border-bottom-right-radius: var(--radius-16);
    border-top-left-radius: 120px;
  }

  .about-banner-3 {
    margin-block-start: 50px;
    margin-inline-start: -180px;
  }

  /**
   * COLLECTION
   */

  .collection .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /**
   * FEATURES
   */

  .feature {
    display: flex;
    align-items: stretch;
  }

  .feature-banner,
  .feature-content {
    width: 50%;
  }

  .feature-banner {
    min-height: 100%;
  }

  .feature-content {
    padding-inline: 80px;
  }

  /**
   * GALLERY
   */

  .gallery-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-card {
    height: 460px;
    padding: 60px 40px;
    border-radius: 20px;
    
  }
}

/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {
  /**
   * REUSED STYLE
   */

  .container {
    max-width: 1250px;
  }

  /**
   * HERO
   */

  /* .hero {
    padding-block-start: 200px;
  } */

  .hero .hero-banner-1 {
    margin-inline-start: -30px;
    margin-block-end: 60px;
  }

  /**
   * ABOUT
   */

  .about .container {
    gap: 70px;
  }

  .about .wrapper .section-title {
    margin-inline-end: -80px;
  }

  .about-banner-3 {
    margin-block-start: 60px;
  }

  /**
   * TESTIMONIALS
   */

  /* .testi .container {
    max-width: 800px;
  } */

  /**
   * BLOG
   */

  .blog .grid-list {
    gap: 60px;
  }

  /**
   * FOOTER
   */

  .footer-top {
    grid-template-columns: 1fr 0.5fr 0.5fr 0.6fr;
  }

  .footer-brand {
    padding-inline-end: 60px;
  }
}


/* carousel */
.carousel{
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  /* margin-top: -50px; */
  position: relative;
}
.carousel .list .item{
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}
.carousel .list .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .list .item .content{
  position: absolute;
  top: 20%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
  font-weight: bold;
  letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}
.carousel .list .item .des{
  color: var(--white);
  /* font-weight: bold; */
  /* font-size: 18px; */
  background: var(--golden-brown_a60);
  padding: 2%;
  width: 60%;
}
.carousel .list .item .topic{
  color: #f1683a;
}
.carousel .list .item .buttons{
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}
.carousel .list .item .buttons button{
  border: none;
  background-color: #eee;
  letter-spacing: 3px;
  font-family: Poppins;
  font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
  background-color: transparent;
  border: 1px solid #fff;
  color: #eee;
}
/* thumbail */
.thumbnail{
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: max-content;
  z-index: -100;
  display: flex;
  gap: 20px;
}
.thumbnail .item{
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}
.thumbnail .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.thumbnail .item .content{
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.thumbnail .item .content .title{
  font-weight: 500;
}
.thumbnail .item .content .description{
  font-weight: 300;
}
/* arrows */
.arrows{
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bistre_a75);
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: .5s;
}
.arrows button:hover{
  background-color: #fff;
  color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
  to{
      transform: translateY(0px);
      filter: blur(0px);
      opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title{
  animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
  animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
  animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
  animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
  to{
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1){
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
  z-index: 100;
}
@keyframes showThumbnail{
  from{
      width: 0;
      opacity: 0;
  }
}
.carousel.next .thumbnail{
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
  from{
      transform: translateX(150px);
  }
}

/* running time */

.carousel .time{
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #f1683a;
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time{
  animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
  from{ width: 100%}
  to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame{
  to{
      width: 150px;
      height: 220px;
      bottom: 50px;
      left: 50%;
      border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1){
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
  animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
  to{
      transform: translateY(-150px);
      filter: blur(20px);
      opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .carousel .list .item .content{
      padding-right: 0;
  }
  .carousel .list .item .content .title{
      font-size: 30px;
  }
}

.header-image{
  position: relative;
  top: 90px;
  width: 100%;
  height: 400px;
  background: linear-gradient(hsla(35, 70%, 38%, 0.4), hsla(35, 70%, 38%, 0.4)), url(../images/gallery/gp/31.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-bottom-left-radius: 20%;
 margin-bottom: 110px;

  h5{
    color: #f1f1f1;
    font-size: 25px;
    font-weight: 700;
  }

  h1{
    text-align: center;
    font-size: 40px;

  }
}

.containers{
  width: 85%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  grid-gap: 4rem;
  padding: 20px 0;
  align-items: center;
}
.hr1{
  width: 50%;
  background: var(--bistre);
  height: 5px;
  margin-bottom: 5px;
}
.hr2{
  width: 25%;
  background: var(--bistre_a75);
  height: 5px;
  margin-bottom: 15px;
}

.about-section{
  width: 100%;
  height: auto;
  background-image: url(../images/gallery/audience/slider\ 5.jpg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 40px;
  margin-bottom: 40px;
}
.left-image{
  width: 80%;
  height: 100%;
  border-top-right-radius: 30%;
  border-bottom-right-radius: 30%;
  background-color: var(--bistre);
}
.inners-image{
  width: 98%;
  height: 100%;
  border-top-right-radius: 30%;
  border-bottom-right-radius: 30%;
  background-color: var(--white);
  /*  */
}

ol > li{
  list-style: disc;
  margin-left: 30px;
}

.desci1{
  width: 90%;
  margin: 0 auto;
  padding: 30px;
}

@media (max-width: 991px){
  .hr1{
    margin: 0 auto;
    
  }

  .hr2{
    margin: 0 auto;
    
  }
}

@media (max-width: 500px){
  .left-image{
    width: 100%;
    border-top-right-radius: 10%;
  border-bottom-right-radius: 10%;
  }

  .inners-image{
    width: 97%;
    height: 100%;
    border-top-right-radius: 15%;
    border-bottom-right-radius: 15%;
    /*  */
  }

  .desci1{
    width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
}

.services-header{
  position: relative;
  top: 90px;
  width: 100%;
  height: 400px;
  background: linear-gradient(hsla(35, 70%, 38%, 0.4), hsla(35, 70%, 38%, 0.4)), url(../images/sacco-loans.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
 margin-bottom: 150px;

  h5{
    color: #f1f1f1;
    font-size: 25px;
    font-weight: 700;
  }

  h1{
    text-align: center;
    font-size: 40px;

  }
}


.Events-header{
  position: relative;
  top: 90px;
  width: 100%;
  height: 400px;
  background: linear-gradient(hsla(35, 70%, 38%, 0.4), hsla(35, 70%, 38%, 0.4)), url(../images/gallery/audience/45.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
 margin-bottom: 150px;

  h5{
    color: #f1f1f1;
    font-size: 25px;
    font-weight: 700;
  }

  h1{
    text-align: center;
    font-size: 40px;

  }
}

.team-header{
  position: relative;
  top: 90px;
  width: 100%;
  height: 400px;
  background: linear-gradient(hsla(35, 70%, 38%, 0.4), hsla(35, 70%, 38%, 0.4)), url(../images/team.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
 margin-bottom: 150px;

  h5{
    color: #f1f1f1;
    font-size: 25px;
    font-weight: 700;
  }

  h1{
    text-align: center;
    font-size: 40px;

  }
}

.contact-header{
  position: relative;
  top: 90px;
  width: 100%;
  height: 400px;
  background: linear-gradient(hsla(35, 70%, 38%, 0.4), hsla(35, 70%, 38%, 0.4)), url(../images/contact.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;

 margin-bottom: 150px;

  h5{
    color: #f1f1f1;
    font-size: 25px;
    font-weight: 700;
  }

  h1{
    text-align: center;
    font-size: 40px;

  }
}
.white{
  color: #fff !important;
}