/*

TemplateMo 590 topic listing

https://templatemo.com/tm-590-topic-listing

*/

/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/

:root {
  --white-color1:                  #ffffff;
  --primary-color1:                #13547a;
  --secondary-color1:              #80d0c7;
 /* --section-bg-color1:             #f0f8ff; */
  --custom-btn-bg-color1:          #80d0c7;
  --custom-btn-bg-hover-color1:    #13547a;
  --dark-color1:                   #000000;
  --p-color1:                      #717275;
  --border-color1:                 #7fffd4;
  --link-hover-color1:             #13547a;

  /*--body-font-family:             'Open Sans', sans-serif;
  --title-font-family:            'Montserrat', sans-serif; */
 /*--h1-font-size1 :               58px;
  --h2-font-size1:                 46px;
  --h3-font-size1:                 32px;
  --h4-font-size1:                 28px;
  --h5-font-size1:                 24px;
  --h6-font-size1:                 22px;
  --p-font-size1:                  20px;  */
  --menu-font-size1:               14px;
  --btn-font-size1:                18px;
  --copyright-font-size1:          16px;

  --border-radius-large1:          100px;
  --border-radius-medium1:         20px;
  --border-radius-small1:          10px;

  --font-weight-normal1:           400;
  --font-weight-medium1:           500;
  --font-weight-semibold1:         600;
  --font-weight-bold1:             700;
} 

/*
body {
  background-color: var(--white-color);
  font-family: var(--body-font-family); 
} */


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/
/*
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title-font-family); 
  font-weight: var(--font-weight-semibold);
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  color: var(--primary-color);
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}
*/
/*
a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}
/*
a {
  display: inline-block;
  color: var(--primary-color1);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color1);
}
/*
b,
strong {
  font-weight: var(--font-weight-bold1);
}
*/

/*---------------------------------------
  SECTION               
-----------------------------------------*/

.section-padding3 {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-bg {
  background-color: var(--section-bg-color1);
}

.section-overlay {
  background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.section-overlay + .container {
  position: relative;
}

.tab-content {
  background-color: var(--white-color1);
  border-radius: var(--border-radius-medium1);
}


 /* nav tab */

.nav-tabs {
  border-bottom: 1px solid #ecf3f2;
  margin-bottom: 40px;
  justify-content: center;
}

.nav-tabs .nav-link {
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: var(--p-color1);
  font-family: var(--title-font-family1);
  font-size: var(--btn-font-size1);
  font-weight: var(--font-weight-medium1);
  padding: 15px 25px;
  transition: all 0.3s;
}

.nav-tabs .nav-link:first-child {
  margin-right: 20px;
}


.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus, 
.nav-tabs .nav-link:hover {
  border-bottom-color: var(--primary-color1);
  color: var(--primary-color1);
}








/*---------------------------------------
  TOPICS              
-----------------------------------------*/

.featured-section {
  background-color: var(--secondary-color1);
  border-radius: 0 0 100px 100px;
  padding-bottom: 100px;
}

.featured-section .row {
  position: relative;
  bottom: 100px;
  margin-bottom: -100px;
}

.custom-block {
  border-radius: var(--border-radius-medium1);
  position: relative;
  overflow: hidden;
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.custom-block:hover {
  background-color: var(--secondary-color1);
  transform: translateY(-3px);
}

.custom-block > a {
  width: 100%;
}

.custom-block-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 35px;
}

.custom-block .rounded-pill {
  border-radius: 5px !important;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 30px;
  height: 30px;
  line-height: 20px;
}

.custom-block-overlay {
  height: 100%;
  min-height: 350px;
  padding: 0;
}

.custom-block-overlay > a {
  height: 100%;
}

.custom-block-overlay .custom-block-image {
  border-radius: var(--border-radius-medium1);
  display: block;
  height: 100%;
  margin-top: 0;
}

.custom-block-overlay-text {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  padding: 30px;
}

.social-share {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 20px 35px;
}

.social-share .bi-bookmark {
  color: var(--white-color1);
  font-size: var(--h5-font-size1);
}

.social-share .bi-bookmark:hover {
  color: var(--secondary-color1);
}

.bg-design {
  background-color: #00B0FF;
}

.bg-graphic {
  background-color: #00BFA6;
}

.bg-advertising {
  background-color: #F50057;
}

.bg-finance {
  background-color: #536DFE;
}

.bg-music {
  background-color: #F9A826;
}

.bg-education {
  background-color: #00BFA6;
}






/*---------------------------------------
  FAQs              
-----------------------------------------*/

.faq-section .accordion-item {
  border: 0;
  
}

.faq-section .accordion-button {
  /*font-size: var(--h6-font-size);*/
  font-size: 16px;
  font-weight: var(--font-weight-semibold1);
}

.faq-section .accordion-item:first-of-type .accordion-button {
  border-radius: var(--border-radius-large1);
}

.faq-section .accordion-button:not(.collapsed) {
  border-radius: var(--border-radius-large1);
  box-shadow: none;
  color: var(--primary-color1);
} 

.faq-section .accordion-body {
  /*color: var(--p-color1);*/
  /*font-size: var(--btn-font-size1);*/
 /* line-height: 30px;
  font-weight: var(--font-weight-semibold1);*/
}



/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/

@media screen and (max-width: 991px) {
  /*
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }
*/
  
  .section-padding3 {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  


  .nav-tabs .nav-link:first-child {
    margin-right: 5px;
  }

  .nav-tabs .nav-link {
    font-size: var(--copyright-font-size1);
    padding: 10px;
  } 

  .featured-section {
    border-radius: 0 0 80px 80px;
    padding-bottom: 50px;
  } 

  .custom-block-topics-listing .custom-block-image {
    width: auto;
  }

  .custom-block-topics-listing > .d-flex,
  .custom-block-topics-listing-info,
  .custom-block-topics-listing a {
    flex-direction: column;
  }

  

}

@media screen and (max-width: 480px) {
  
  /*
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  } */
} 
