/*
Theme Name: TenderBook
Theme URI: 
Author: Isuru Karunathilaka
Author URI: 
Description: This is a custom theme for a tenderbook website.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenderbook
Tags: 
*/

/*================== GENERAL STYLES ================*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*-------------- Typography -----------------*/

:root {
  --tb-font-size-normal: var(--wp--preset--font-size--normal);
  --tb-font-size-normal-fixed: var(--wp--preset--font-size--normal-fixed);
  --tb-font-size-small: var(--wp--preset--font-size--small);
  --tb-font-size-small-fixed: var(--wp--preset--font-size--small-fixed);
  --tb-font-size-medium: var(--wp--preset--font-size--medium);
  --tb-font-size-large: var(--wp--preset--font-size--large);
  --tb-font-size-x-large: var(--wp--preset--font-size--x-large);
}

body {
  font-size: 16px;
  font-size: var(--tb-font-size-normal-fixed);
}

P,
li,
span,
label,
input {
  font-size: 16px;
  font-size: var(--tb-font-size-normal);
}

H1 {
  font-size: 2rem;
  font-size: clamp(32px, 2rem + ((1vw - 3.2px) * 0.556), 48px);
  font-size: var(--tb-font-size-x-large);
}

H2 {
  font-size: 1.75rem;
  font-size: clamp(28px, 1.75rem + ((1vw - 3.2px) * 0.444), 40px);
}

H3 {
  font-size: 1.5rem;
  font-size: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.333), 32px);
}

H4 {
  font-size: 1.25rem;
  font-size: clamp(20px, 1.25rem + ((1vw - 3.2px) * 0.278), 28px);
}

H5,
blockquote {
  font-size: 1.125rem;
  font-size: clamp(18px, 1.125rem + ((1vw - 3.2px) * 0.222), 24px);
}

H6 {
  font-size: 1rem;
  font-size: clamp(16px, 1rem + ((1vw - 3.2px) * 0.167), 20px);
}

button,
.wp-block-button {
  font-size: 18px;
  font-size: var(--wp--preset--font-size--normal);
  font-weight: 600;
  border-radius: 5px;
}

button a,
.wp-block-button a.wp-block-button__link {
  border-radius: 5px;
  color: white;
  background-color: var(--wp--preset--color--accent-1);
  transition: box-shadow 0.5s;
}

button a:hover,
.wp-block-button a.wp-block-button__link:hover {
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.hide {
  display: none;
}

.fixed {
  position: fixed;
}

body.fixed #wpadminbar {
  display: none;
}

.noscroll {
  overflow: hidden;
  height: 100vh;
}

/*---------------- Main Menu -----------------*/
.tb-main-menu {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
}

@media screen and (max-width: 1440px) {
  .tb-main-menu {
    font-size: 16px;
  }
}

@media screen and (max-width: 1024px) {
  .tb-main-menu {
    font-size: 14px;
  }
}

@media screen and (max-width: 800px) {
  .tb-main-menu {
    display: none !important;
  }
}

/*------------- Mobile Menu -------------*/
/* .tb-mobile-menu */

@media screen and (min-width: 801px) {
  .tb-mobile-menu-btn {
    display: none !important;
  }
}

.tb-mobile-menu-btn {
  cursor: pointer;
}

.tb-mobile-menu-btn .bar {
  width: 24px;
  height: 2px;
  background-color: var(--wp--preset--color--custom-color-4);
  transition: all 0.5s;
}

.tb-mobile-menu-btn .bar::after,
.tb-mobile-menu-btn .bar::before {
  content: "";
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--wp--preset--color--custom-color-4);
  transition: all 0.5s;
}

.tb-mobile-menu-btn .bar::before {
  transform: translateY(-8px);
}

.tb-mobile-menu-btn .bar::after {
  transform: translateY(8px);
}

.tb-mobile-menu-btn.close .bar {
  background-color: transparent;
}

.tb-mobile-menu-btn.close .bar::before {
  transform: rotate(45deg);
}

.tb-mobile-menu-btn.close .bar::after {
  transform: rotate(-45deg);
}

/*----- Mobile Menu Block -------*/

.tb-mobile-menu-block {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 100000;
}

.wp-block-template-part .tb-mobile-menu-block {
  display: none;
}

.tb-mobile-menu-block > div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  padding-top: 0 !important;
  align-items: center;
  padding-bottom: 15vh !important;
}

.tb-mobile-menu-block > div > div:last-child {
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tb-mobile-menu-block > div > div:first-child {
  width: 90%;
  max-width: 325px;
}

.tb-mobile-menu-block nav ul li a span {
  font-size: 20px !important;
  font-weight: 600 !important;
}

.tb-mobile-menu-block .wp-block-button {
  width: 90%;
  max-width: 325px;
  border-radius: 15px;
}

/*--------------- Site Logo ------*/
.wp-block-site-logo {
  max-width: 280px;
}

@media screen and (max-width: 1440px) {
  .wp-block-site-logo {
    max-width: 240px;
  }
}

@media screen and (max-width: 1024px) {
  .wp-block-site-logo {
    max-width: 220px;
  }
}

@media screen and (max-width: 768px) {
  .wp-block-site-logo {
    max-width: 180px;
  }
}

@media screen and (max-width: 360px) {
  .wp-block-site-logo {
    max-width: 140px;
  }
}

/*--------------- Header right block ----------*/

/* .tb-header-cta-block, .tb-header-hotline, .tb-header-cta-btn*/

.tb-header-cta-btn {
  font-size: 20px;
}

@media screen and (max-width: 1440px) {
  .tb-header-cta-btn {
    font-size: 18px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1440px) {
  .tb-header-hotline {
    display: none !important;
  }
}

@media screen and (max-width: 481px),
  (min-width: 801px) and (max-width: 1024px) {
  .tb-header-cta-block {
    display: none !important;
  }
}

@media screen and (max-width: 800px) {
  .tb-header-cta-btn {
    display: none !important;
  }

  .tb-header-hotline {
    scale: 0.9;
  }

  .tb-header-cta-block {
    margin-left: auto !important;
  }

  div:has(.tb-header-cta-block) {
    gap: 5px !important;
  }
}

/*-------------- Site Footer --------------*/

.tb-site-footer {
  color: #97a1b1;
}

@media screen and (max-width: 680px) {
  .tb-footer-content-row {
    flex-direction: column;
  }

  .tb-footer-note-row {
    justify-content: center;
    text-align: center;
    padding-top: 2em;
  }
}

.tb-site-footer .tb-footer-social-icons {
  gap: 16px;
}

.tb-site-footer .tb-footer-social-icons figure {
  width: 20px;
}

/* Footer Blocks */
.tb-site-footer .tb-footer-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
}

.tb-site-footer .tb-footer-block:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tb-site-footer .tb-footer-block .tb-block-1 {
  grid-column: 1;
  grid-row: 2;
}
.tb-site-footer .tb-footer-block:last-child .tb-block-2 {
  grid-row: 2;
  grid-column: 2;
}

.tb-site-footer .tb-footer-blocks h4 {
  font-size: var(--wp--preset--font-size--normal);
}

.tb-site-footer .tb-footer-blocks p {
  font-size: var(--tb-font-size-normal-fixed);
  line-height: 1.9;
  transition: max-height 0.5s;
}

.tb-site-footer .tb-block-2 a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--tb-font-size-normal-fixed);
  cursor: pointer;
}

.tb-site-footer .tb-block-2 a span {
  margin-left: 1rem;
}

@media screen and (max-width: 1100px) {
  .tb-site-footer .tb-footer-blocks {
    grid-template-columns: 1fr 1fr;
  }

  .tb-site-footer .tb-footer-block:last-child {
    grid-column: span 2;
  }
}

@media screen and (max-width: 680px) {
  .tb-site-footer .tb-footer-blocks {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .tb-site-footer .tb-footer-block:nth-child(2) {
    grid-column: 1;
  }

  .tb-site-footer .tb-footer-block:last-child {
    grid-template-columns: 1fr;
  }
  .tb-site-footer .tb-footer-blocks p {
    max-height: 0;
    overflow: hidden;
  }

  .tb-site-footer .tb-footer-blocks h4.active ~ p {
    max-height: 500px;
    padding-bottom: 2rem;
  }

  .tb-site-footer .tb-footer-block:last-child .tb-block-2 {
    grid-column: 1;
    grid-row: 3;
    margin-top: -3rem;
  }

  .tb-site-footer .tb-footer-blocks h4 {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .tb-site-footer .tb-footer-blocks h4::after {
    content: "\f347";
    font-family: dashicons;
    font-weight: 400;
    font-size: 1.6rem;
    transition: transform 0.5s;
  }

  .tb-site-footer .tb-footer-blocks h4.active::after {
    transform: rotate(180deg);
  }
}

/*--------------- Section Wrappers -----------------*/

.tb-section-m {
  margin-top: 10rem;
  margin-bottom: 10rem;
}

.tb-section-m-sm {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

@media screen and (max-width: 1200px) {
  .tb-section-m {
    margin-top: 8rem;
    margin-bottom: 8rem;
  }

  .tb-section-m-sm {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

@media screen and (max-width: 680px) {
  .tb-section-m {
    margin-top: 6rem;
    margin-bottom: 6rem;
  }

  .tb-section-m-sm {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
}

.tb-title {
  max-width: 45rem;
  margin-top: 0;
}

.tb-outer-wrapper {
  /* This already have align-full margins */
  padding-left: calc(var(--wp--style--root--padding-left) * 0.5);
  padding-right: calc(var(--wp--style--root--padding-right) * 0.5);
  justify-content: center;
}

.tb-inner-wrapper {
  padding-left: calc(var(--wp--style--root--padding-left) * 0.5);
  padding-right: calc(var(--wp--style--root--padding-right) * 0.5);
  margin-left: auto;
  margin-right: auto;

  width: 100%;
  max-width: var(--wp--style--global--wide-size);

  justify-content: center;
}

.tb-content-wrapper {
  margin-left: auto;
  margin-right: auto;

  width: 100%;
  max-width: var(--wp--style--global--content-size);
}

.tb-page-wrapper {
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);

  justify-content: center;
}

/*================= HOME PAGE STYLES ===================*/
/*----------------- Cover --------------*/

.tb-cover-block {
  position: relative;
  overflow: hidden;
}

.entry-content > .tb-cover-block:first-child {
  margin-block-start: -24px;
}

.entry-content .tb-cover-slides,
.is-editing-disabled .tb-cover-slides {
  display: flex;
  transition: transform 1s ease;
}

.entry-content .tb-cover-slide,
.is-editing-disabled .tb-cover-slide {
  position: absolute;
  /* width: 100%; */
  margin-block-start: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.entry-content .tb-cover-slide.active,
.is-editing-disabled .tb-cover-slide.active {
  position: relative;
  opacity: 1;
  z-index: 1000;
}

.entry-content .tb-cover-slide > div,
.is-editing-disabled .tb-cover-slide > div {
  min-height: 45vw;
  width: 100vw;
}

.tb-cover-slide > div {
  background-image: linear-gradient(to right, white 20%, transparent 60%);
  display: flex;
  align-items: center;
}

.entry-content .tb-cover-block .tb-cover-nav,
.is-editing-disabled.tb-cover-block .tb-cover-nav {
  margin-top: 0 !important;
  position: relative;
}

.entry-content .tb-cover-block .tb-cover-nav .tb-cover-nav-wrapper,
.is-editing-disabled.tb-cover-block .tb-cover-nav .tb-cover-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  /* width: 100%; */

  position: absolute;
  bottom: 8rem;
  right: 0;

  z-index: 1500;
}

.tb-cover-block .tb-cover-nav .tb-dots {
  margin: 0 !important;
}

.tb-cover-block .tb-cover-nav .tb-dot {
  width: 25px;
  height: 25px;
  background-color: white;
  border-radius: 100%;
  position: relative;
  box-shadow: var(--wp--preset--shadow--natural);
  transition: transform 5s;
}

.tb-cover-block .tb-cover-nav .tb-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.5;
  border-radius: 100%;
  transition: transform 4s;
}

.tb-cover-block .tb-cover-nav .tb-dot.zooming::after {
  transform: scale(2);
}

.tb-cover-block .tb-cover-nav .tb-dot:not(.zooming)::after {
  transition: transform 0.5s;
  transform: scale(1);
}

.tb-cover-nav-btns {
  display: flex;
  align-items: center;
  background-color: white;
  margin: 0 !important;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 10px;
}
.tb-cover-nav-btns figure {
  margin: 0 !important;
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.5s;
}

.tb-cover-nav-btns figure img {
  width: 24px;
}

@media screen and (max-width: 1280px) {
  .tb-cover-block .tb-cover-nav .tb-dot {
    width: 18px;
    height: 18px;
  }

  .tb-cover-nav-btns {
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .tb-cover-nav-btns figure {
    padding: 0.6rem;
  }

  .tb-cover-nav-btns figure img {
    width: 20px;
  }

  .entry-content .tb-cover-block .tb-cover-nav .tb-cover-nav-wrapper {
    bottom: 4rem;
  }
}

@media screen and (max-width: 680px) {
  .entry-content .tb-cover-block .tb-cover-nav .tb-cover-nav-wrapper {
    width: 100%;
    justify-content: space-between;
    bottom: 2rem;
  }

  .tb-cover-block .tb-cover-nav .tb-dot {
    width: 16px;
    height: 16px;
  }

  .tb-cover-nav-btns {
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .tb-cover-nav-btns figure {
    padding: 0.5rem;
  }

  .tb-cover-nav-btns figure img {
    width: 18px;
  }
}

.tb-cover-nav-btns figure:last-child {
  background-color: var(--wp--preset--color--accent-1);
}

.tb-cover-nav-btns figure img {
  opacity: 0.6;
}

.tb-cover-nav-btns figure:last-child img {
  opacity: 1;
  filter: invert(1) brightness(2);
}

.tb-cover-nav-btns figure:hover {
  background-color: var(--wp--preset--color--accent-1);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.tb-cover-nav-btns figure:hover img {
  opacity: 1;
  filter: invert(1) brightness(2);
}

.tb-cover-nav-btns figure:hover ~ figure {
  background-color: unset;
}

.tb-cover-nav-btns figure:hover ~ figure img {
  opacity: 0.6;
  filter: unset;
}

.tb-cover-hero-block {
  /* background-image: linear-gradient(to right, white 50%, transparent); */
  padding-top: 5rem;
  padding-bottom: 3rem;
  height: 100%;

  display: grid;
  grid-template-rows: 0.3fr auto 0.7fr;
}

.tb-cover-hero-content {
  grid-row: 2;
  max-width: 600px;
  width: 60%;
}

.tb-cover-hero-description {
  width: 80%;
}

@media screen and (min-width: 1680px) {
  .tb-cover-slide > div {
    min-height: 800px !important;
  }
}

@media screen and (max-width: 680px) {
  .tb-cover-slide {
    background-position: bottom !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
  }

  .tb-cover-slide > div {
    background-image: linear-gradient(to bottom, white 50%, transparent 80%);
    align-items: flex-start;
    min-height: 100vw !important;
  }

  .tb-cover-hero-block {
    padding-top: 2em;
    grid-template-rows: 3fr 1fr;
    justify-items: center;
    justify-content: center;
    background-image: radial-gradient(white, transparent 70%);
  }

  .tb-cover-hero-content {
    grid-row: 1;
    text-align: center;
    width: 100%;
  }

  .tb-cover-hero-content div,
  .tb-cover-hero-content p {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 480px) {
  .tb-cover-slide {
    background-size: auto 65% !important;
  }

  .tb-cover-slide > div {
    min-height: 150vw !important;
  }
}

@media screen and (max-width: 380px) {
  .tb-cover-slide > div {
    min-height: 80vh !important;
  }
}
/*------------- section why us --------------------*/

.tb-section-whyus .tb-flexbox {
  display: flex;
  align-items: start;
  justify-content: space-between;
  width: 100%;
  gap: 2em;
  margin-top: 3em;
}

.tb-section-whyus .tb-flexbox .tb-item {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: left;
}

@media screen and (max-width: 680px) {
  .tb-section-whyus {
    text-align: center;
  }

  .tb-section-whyus > div {
    align-items: center;
  }

  .tb-section-whyus .tb-flexbox {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .tb-section-whyus .tb-flexbox .tb-item {
    text-align: center;
    align-items: center;
  }
}

/*------------------ Service Banner -------------------*/

.tb-service-banner .tb-content-wrapper {
  display: flex;
  align-items: flex-end;
}

.tb-service-banner .tb-service-banner-content {
  max-width: 45rem;
  padding-top: 4em;
  padding-bottom: 4em;
  align-self: center;
}

@media screen and (min-width: 769px) and (max-width: 1680px) {
  .tb-service-banner .tb-service-banner-content {
    padding-left: 2%;
  }
}

.tb-service-banner .tb-service-banner-img-block {
  flex-grow: 1;
  flex-shrink: 0;
  justify-content: center;
  display: flex;
}

.tb-service-banner .tb-service-banner-img-block {
  width: 400px;
  width: clamp(380px, 25vw, 560px);
}

.tb-service-banner .tb-service-banner-img-block figure {
  margin-top: -5rem;
}

@media screen and (max-width: 768px) {
  .tb-service-banner .tb-content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .tb-service-banner .tb-content-wrapper > div {
    text-align: center;
    align-items: center;
  }
}

@media screen and (min-width: 1100px) {
  .tb-service-banner {
    margin-top: 10rem;
  }
}

@media screen and (max-width: 480px) {
  .tb-service-banner .tb-service-banner-img-block {
    width: 75%;
  }
}

/*----------- Alert Banner --------*/

.tb-alert-banner .tb-content-wrapper {
  justify-content: space-between;
  align-items: stretch;
}

.tb-alert-banner .tb-img-block {
  padding-top: 3rem;
  /* flex-shrink: 0; */
  align-self: flex-end;
  position: relative;
  margin-right: 15%;
}

.tb-alert-banner .tb-content {
  padding-top: 4rem;
  padding-bottom: 2rem;
  max-width: 45rem;
  align-self: center;
}

@media screen and (max-width: 768px) {
  .tb-alert-banner .tb-content-wrapper {
    flex-direction: column-reverse;
  }

  .tb-alert-banner .tb-img-block {
    width: 55%;
    align-self: center;
  }

  .tb-alert-banner .tb-content {
    text-align: center;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  .tb-alert-banner .tb-img-block {
    width: 70%;
    margin-top: 0;
  }
}

/* floater and animation */
.entry-content .tb-alert-banner .tb-img-block .tb-floater {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 90%;
}

.tb-alert-banner .tb-img-block .tb-floater .tb-animation {
  position: relative;
}

.entry-content .tb-alert-banner .tb-img-block .tb-floater .tb-animation figure {
  position: absolute;
  margin-block-start: 0 !important;
}

.entry-content
  .tb-alert-banner
  .tb-img-block
  .tb-floater
  .tb-animation
  figure:first-child {
  transform: scale(0.9) translateY(-2rem);
  animation: zoomcards 6s linear 0s infinite;
  z-index: 1;
}

.entry-content
  .tb-alert-banner
  .tb-img-block
  .tb-floater
  .tb-animation
  figure:nth-child(2) {
  transform: scale(0.95) translateY(-1rem);
  animation: zoomcards 6s linear 2s infinite;
  z-index: 2;
}

.entry-content
  .tb-alert-banner
  .tb-img-block
  .tb-floater
  .tb-animation
  figure:nth-child(3) {
  animation: zoomcards 6s linear 4s infinite;
  z-index: 3;
}

@keyframes zoomcards {
  0% {
    z-index: 1;
    transform: scale(0.9) translateY(-2rem);
  }
  28.33% {
    z-index: 1;
    transform: scale(0.9) translateY(-2rem);
  }
  33.33% {
    z-index: 2;
    transform: scale(0.95) translateY(-1rem);
  }
  61.66% {
    z-index: 2;
    transform: scale(0.95) translateY(-1rem);
  }
  66.66% {
    z-index: 3;
    transform: scale(1) translateY(0);
  }
  95% {
    z-index: 3;
    transform: scale(1) translateY(0);
  }
  100% {
    z-index: 1;
    transform: scale(0.9) translateY(-2rem);
  }
}
/*---------------- Categories ------------*/

.tb-categories .tb-content-wrapper {
  gap: 4rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.tb-categories .tb-grid {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: var(--tb-font-size-medium);
  gap: 2em;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
}

.tb-categories .tb-title-block {
  padding-top: 10rem;
  padding-bottom: 10rem;
  width: 40%;
}

.tb-categories .tb-grid div {
  padding: 1em;
  padding-right: 0;
  border-radius: 10px;
  gap: 0.5em;
}

.tb-categories .tb-grid figure {
  width: 5em;
  height: 5em;
  padding: 1em;
  border-radius: 10px 0 0 10px;
  background-color: #b4e2ff;
  flex-shrink: 0;
  flex-grow: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

.tb-categories .tb-grid div h5 {
  font-size: 0.9em;
  /* font-weight: 500; */
}

@media screen and (max-width: 1400px) {
  .tb-categories .tb-title-block {
    width: 50%;
  }

  .tb-categories .tb-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .tb-categories .tb-grid > div:last-child {
    display: none;
  }
}

@media screen and (max-width: 1100px) {
  .tb-categories .tb-content-wrapper {
    flex-direction: column;
  }

  .tb-categories .tb-title-block {
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .tb-categories .tb-grid {
    padding-top: 0.5em;
    gap: 0.5em;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .tb-categories .tb-grid figure {
    width: 4em;
    height: 4em;
    padding: 0.5em;
    border-radius: 5px 0 0 5px;
    flex-shrink: 1;
  }

  .tb-categories .tb-grid div {
    padding: 0.5em;
    padding-right: 0;
    border-radius: 5px;
  }
}

/*-------------- Filters and Coverage ---------------*/
.tb-filters > div {
  display: flex;
  align-items: stretch;
  gap: 3rem;
}

.tb-filters .flex-item {
  padding: 6% 5% 0;
  border-radius: 1.5rem;
}

.tb-filters .flex-item .tb-filter-img-block {
  margin-top: auto;
  margin-right: -10%;
  position: relative;
}

.entry-content .tb-filters .flex-item .tb-filter-img-block .tb-filter-list {
  position: absolute;
  top: 30%;
  left: 40%;
  height: 40%;
  padding: 1em;
  background-color: white;
  border-radius: 10px;
  overflow-y: hidden;
  list-style: none;
  color: var(--wp--preset--color--neutral);
  line-height: 2;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 3em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  font-size: clamp(10px, 10px + (1vw - 7.6px) * 1.3, 25px);
}

.entry-content .tb-filters .flex-item .tb-filter-img-block .tb-filter-list ul {
  padding-left: 0;
  animation: scrollList 6s ease-in-out 2s infinite;
}

.entry-content
  .tb-filters
  .flex-item
  .tb-filter-img-block
  .tb-filter-list::-webkit-scrollbar {
  display: none;
}

.entry-content .tb-filters .flex-item .tb-filter-img-block .tb-filter-list li {
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.entry-content
  .tb-filters
  .flex-item
  .tb-filter-img-block
  .tb-filter-list
  li::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  margin-right: 1em;
}

.entry-content
  .tb-filters
  .flex-item
  .tb-filter-img-block
  .tb-filter-list
  li:nth-child(2)::before,
.entry-content
  .tb-filters
  .flex-item
  .tb-filter-img-block
  .tb-filter-list
  li:nth-child(8)::before,
.entry-content
  .tb-filters
  .flex-item
  .tb-filter-img-block
  .tb-filter-list
  li:nth-child(11)::before {
  background-color: rgba(0, 0, 0, 0.3);
}

@keyframes scrollList {
  0% {
    transform: translateY(0%);
  }
  70% {
    transform: translateY(-64%);
  }
  100% {
    transform: translateY(0%);
  }
}

.entry-content
  .tb-filters
  .flex-item
  .tb-filter-img-block
  .tb-filter-list::after {
  content: "";
  width: 3px;
  height: 2.5em;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 10%;
  right: 1em;
  animation: scrollBarAnimation 6s ease-in-out 2s infinite;
}

@keyframes scrollBarAnimation {
  0% {
    top: 10%;
  }
  70% {
    top: 60%;
  }
  100% {
    top: 10%;
  }
}

.tb-filters .flex-item .tb-map-img {
  transform: scale(0.8);
  margin-top: -3rem;
  margin-right: -2rem;
}

@media screen and (max-width: 768px) {
  .tb-filters > div {
    flex-direction: column;
  }

  .entry-content .tb-filters .flex-item .tb-filter-img-block .tb-filter-list {
    font-size: clamp(10px, 10px + (1vw - 3.2px) * 2.5, 22px);
  }

  .tb-filters .flex-item {
    padding: 10% 8% 0;
    border-radius: 1rem;
  }

  .tb-filters .flex-item .tb-filter-img-block {
    margin-right: -5%;
  }
}

/*================ SINGLE PAGE STYLES =============*/

/*----------------- Page Template Styles ----------------*/

.tb-page-title-block {
  height: 100%;
  margin-top: -24px !important;
  margin-bottom: 3rem !important;
}

.tb-page-title-block > div {
  background-image: linear-gradient(to right, white 25%, transparent 75%);
  padding-top: 6em;
  padding-bottom: 6em;
}

.tb-page-title-block .breadcrumbs {
  margin-top: 0;
}

.tb-page-title-block .breadcrumbs a {
  text-decoration: none;
}

@media screen and (min-width: 769px) {
  .tb-page-content {
    margin-top: 3rem !important;
  }
}

/*----------------- About Us Page ---------------*/

@media screen and (max-width: 768px) {
  .tb-page-aboutus .tb-aboutus-main {
    grid-template-columns: 1fr;
  }
}

.tb-page-aboutus .tb-title-block {
  margin-top: 10rem;
  margin-bottom: 3rem;
}

.tb-page-aboutus .tb-title-block h2 {
  margin-top: 0;
  max-width: 16em;
}

.tb-page-aboutus .tb-block-description {
  max-width: 45em;
  text-align: center;
}

.tb-about-whyus .tb-grid {
  margin-top: 5rem;
  margin-bottom: 5rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.tb-about-whyus .tb-grid > div {
  max-width: 400px;
}

@media screen and (max-width: 768px) {
  .tb-about-whyus .tb-grid {
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 420px) {
  .tb-about-whyus .tb-grid {
    grid-template-columns: 1fr;
  }

  .tb-about-whyus .tb-grid > div {
    align-items: center;
    text-align: center;
  }

  .tb-about-whyus .tb-grid > div > p {
    max-width: 320px;
  }
}

.tb-about-team .tb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1440px) {
  .tb-about-team .tb-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .tb-about-team .tb-grid {
    grid-template-columns: 1fr;
  }
}

.tb-about-team .tb-grid figure {
  width: 90px;
  height: 90px;
}

.tb-about-team .tb-grid h5,
.tb-about-team .tb-grid p {
  margin: 0 !important;
}

.tb-about-team .tb-grid > div {
  display: grid;
  justify-content: start;
  grid-template-columns: auto 1fr !important;
  grid-template-rows: 1fr;
}

.tb-about-team .tb-grid > div > div {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

/*---------------- Pricing Page --------------*/

.tb-pricing .tb-block-description {
  text-align: center;
  max-width: 45rem;
}

.tb-package .tb-package-top {
  width: 100%;
  text-align: center;
  border-radius: 20px 20px 0 0;
}

.tb-package .tb-package-top h4 {
  margin-left: auto !important;
  margin-right: auto !important;
}

.tb-package .tb-package-header {
  padding-top: 2em !important;
  padding-bottom: 3em;
}

.tb-package .tb-package-header h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.tb-package .tb-package-price::after {
  content: "/mo";
  font-size: var(--wp--preset--font-size--large);
  font-weight: 500;
}

.tb-package .tb-package-footer {
  margin-top: 2em;
  margin-bottom: 3em;
}

.tb-package .tb-package-list ul {
  margin-top: 3em !important;
  margin-bottom: 2em !important;
}

.tb-package .tb-package-list ul {
  list-style: none;
}

.tb-package .tb-package-list ul li {
  margin-top: 0.75em;
  margin-bottom: 0.75em;

  display: flex;
  align-items: center;
}

.tb-package .tb-package-list ul li::before {
  content: "";
  display: inline-block;
  background: url("/wp-content/themes/tenderbook/assets/icons/check.png")
    no-repeat center;
  background-size: 1.25em 1.25em;
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.75em;
}

/*-------------------- Resources Page -----------------*/

.tb-resources .tb-block-description {
  max-width: 45rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.tb-resources-whyus .tb-title-block {
  margin-top: 10rem;
  margin-bottom: 3rem;
}

.tb-resources-whyus .tb-title-block h2 {
  margin-top: 0;
  max-width: 18em;
}

.tb-resources-whyus .tb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.tb-resources-whyus .tb-grid > div {
  max-width: 420px;
}

@media screen and (max-width: 768px) {
  .tb-resources-whyus .tb-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .tb-resources-whyus .tb-grid > div {
    align-items: center;
  }
}

.tb-resources-main .tb-content-block {
  width: 60%;
  max-width: 50rem;
}

@media screen and (max-width: 768px) {
  .tb-resources-main > div {
    flex-direction: column;
    align-items: center;
  }

  .tb-resources-main .tb-content-block {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
    align-items: center;
  }

  .tb-resources-main .tb-content-block h2 {
    text-align: center;
  }
}

@media screen and (min-width: 769px) {
  .tb-resources-main .tb-image-block figure:first-child {
    margin-bottom: -3rem;
  }

  .tb-resources-main .tb-image-block figure:last-child {
    margin-top: -3rem;
  }
}

/*================= PATTERNS STYLES ==================*/

/*-------- Forms ----------*/

form input,
form textarea,
form select,
form .tb-input-container .tb-options {
  padding: 0.75em;
  border-radius: 10px;
  border: 1px solid rgba(144, 144, 167, 0.1);
  background-color: white;

  font-size: var(--tb-font-size-normal);
  font-weight: 300;
  width: 100%;
}

@media screen and (max-width: 425px) {
  form input,
  form textarea,
  form select,
  form .tb-input-container .tb-options {
    border-radius: 5px;
  }
}

form input::placeholder,
form textarea::placeholder {
  /* font-weight: 100; */
  font-size: 0.9em;
  color: #9090a7;
}

form textarea {
  min-height: 15rem;
  font-family: inherit;
}

form input[type="submit"] {
  background-color: var(--wp--preset--color--accent-1);
  color: white;
  border: none;
  max-height: 3em;
  height: 2.5em;
  cursor: pointer;
}

form input[type="submit"].active {
  background-color: var(--wp--preset--color--accent-2);
  color: var(--wp--preset--color--contrast);
}

input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  cursor: not-allowed; /* Shows a disabled cursor */
  opacity: 0.6; /* Make it look faded */
}

/*---------------- Get Started Block -----------------*/

.tb-get-start-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: white;
  z-index: 100100;

  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
  padding-top: 2rem;
  padding-bottom: 2rem;

  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* display: none; */
}

/* TODO -- try this later */
/* .tb-get-start-block.submitted {
  background: radial-gradient(circle at 20% 30%, #f7e44e11, transparent 60%),
    radial-gradient(circle at 80% 90%, #38b6ff44, transparent 50%);
  background-color: #fff;
} */

.wp-block-template-part .tb-get-start-block {
  display: none;
}

.tb-get-start-block::-webkit-scrollbar {
  display: none;
}

.tb-get-start-block header.tb-block-header {
  margin-top: 2rem !important;
  margin-bottom: 5rem !important;
}

.tb-get-start-block .tb-get-start-content {
  display: flex;
  justify-content: space-between;
  gap: 5%;
}

.tb-get-start-block .tb-description-block {
  max-width: 580px;
}

.tb-get-start-block .tb-form-container {
  width: 50%;
}

@media screen and (max-width: 1100px) {
  .tb-get-start-block .tb-get-start-content {
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .tb-get-start-block header.tb-block-header {
    margin-top: 0.5rem !important;
    margin-bottom: 2rem !important;
  }

  .tb-get-start-block .tb-form-container {
    width: 100%;
  }
}

.tb-get-start-block form.tb-getstart-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;

  color: #928fa6;
  width: 100%;
  max-width: 780px;
}

@media screen and (max-width: 580px) {
  .tb-get-start-block .tb-form-container {
    width: 100%;
  }
  .tb-get-start-block form.tb-getstart-form {
    display: flex;
    flex-direction: column;
  }
}

.tb-get-start-block form.tb-getstart-form input::placeholder,
.tb-get-start-block form.tb-getstart-form textarea::placeholder {
  /* font-weight: 100; */
  font-size: 0.9em;
  color: #9090a7;
}

.tb-get-start-block form.tb-getstart-form input[name="company"] {
  grid-column: span 2;
}

.tb-get-start-block form.tb-getstart-form textarea[name="message"] {
  grid-column: span 2;
  min-height: 15rem;
  font-family: inherit;
}

/*---- country input ----*/

.tb-input-container {
  position: relative;
}

.tb-input-container .tb-angle-down {
  position: absolute;
  width: 1.3rem;
  top: 0;
  right: 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;

  cursor: pointer;
}

.tb-input-container .tb-options {
  position: absolute;
  width: 100%;
  height: 10rem;
  margin-top: 0.5rem;
  overflow-y: scroll;
  scrollbar-width: none;
  --ms-overflow-style: none;
  box-shadow: 2px 2px 6px #44444411;

  display: flex;
  flex-direction: column;
}

.tb-input-container .tb-options .tb-option {
  font-size: 0.9em;
  cursor: pointer;
  line-height: 28px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.tb-input-container .tb-options .tb-option:hover,
.tb-input-container .tb-options .tb-option.highlight {
  background-color: #eee;
}

.tb-input-container .tb-options::-webkit-scrollbar {
  display: none;
}

.tb-input-container .tb-angle-down img {
  width: 100%;
}

/*--------- Phone Input ------------*/

.tb-input-container .tb-flag-block {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0.5em 1em;
  font-size: 0.8em;
  cursor: pointer;
}

.tb-input-container input[name="phone"] {
  padding-left: 6em;
}

.tb-input-container .tb-flag-block .tb-dial-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
  margin-left: 0.5em;
  margin-right: 0.5em;
}

.tb-input-container .tb-flag-block .tb-dial-code:after {
  content: "\2BC6";
  margin-left: 0.5em;
  padding-right: 0.5em;
  margin-right: 1em;
  border-right: 2px solid #888;
}

.tb-phone-input .tb-option {
  width: 100%;
  display: flex;
}

.tb-phone-input .tb-option .tb-name {
  font-size: 0.8em;
  padding-left: 0.5em;
}

.tb-phone-input .tb-option .tb-dial-code {
  margin-left: auto;
  font-size: 0.8em;
  font-weight: bold;
  color: var(--wp--preset--color--contrast);
}

/*----------------------*/
.tb-get-start-block form.tb-getstart-form footer {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 2;
  align-items: center;
}

.tb-get-start-block form.tb-getstart-form footer p {
  font-size: 0.9em;
  padding: 0.75rem;
}

/* close icon  */

.tb-get-start-block .tb-close-icon {
  position: fixed;
  top: 3rem;
  right: 4rem;
  width: 3rem;
  height: 3rem;

  cursor: pointer;
  z-index: 1000;
}

@media screen and (max-width: 580px) {
  .tb-get-start-block .tb-close-icon {
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
  }
}

.tb-get-start-block .tb-close-icon figure {
  border-radius: 100%;
  transition: all 0.5s;
}

.tb-get-start-block .tb-close-icon figure:hover {
  /* box-shadow: var(--wp--preset--shadow--natural); */
  filter: drop-shadow(var(--wp--preset--shadow--natural));
  translate: 2px;
}

.wp-block-template-part .tb-get-start-block .tb-message-block {
  position: absolute;
  top: 30%;

  display: none;
}

/*- Thanks Section -*/

.tb-thanks-section .tb-title-block p {
  max-width: 35rem;
}

.tb-thanks-section .tb-title-block p strong,
.tb-thanks-section .tb-flexbox .tb-item p strong {
  color: var(--wp--preset--color--contrast);
}

.tb-thanks-section .tb-flexbox {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 3rem;
}

.tb-thanks-section .tb-flexbox .tb-item {
  flex: 0 1 450px;
  padding: 3rem 2rem;
  background-color: white;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

@media screen and (max-width: 680px) {
  .tb-thanks-section .tb-flexbox {
    flex-direction: column;
  }

  .tb-thanks-section .tb-flexbox .tb-item {
    flex: auto;
  }
}

.tb-thanks-section .tb-flexbox .tb-item figure {
  position: absolute;
  left: 2rem;
  top: -2rem;
}

.tb-thanks-section .tb-flexbox .tb-item p {
  font-size: var(--tb-font-size-normal-fixed);
}
/*------------------- FAQ Section ------------*/

.entry-content .tb-faq {
  margin-bottom: -3rem;
  padding-bottom: 10rem;
}

@media screen and (max-width: 1200px) {
  .entry-content .tb-faq {
    padding-bottom: 8rem;
  }
}

@media screen and (max-width: 680px) {
  .entry-content .tb-faq {
    padding-bottom: 6rem;
  }
}

.entry-content .tb-faq .tb-q-block p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, margin 0.5s;
  font-size: 1rem;
  font-weight: 300;
  color: var(--wp--preset--color--neutral);
  margin-top: 0;
}

.is-editing-disabled .tb-q-block p {
  max-height: 0;
  overflow: hidden;
}

.entry-content .tb-faq .tb-q-block h4 {
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.entry-content .tb-faq .tb-q-block h4::after {
  content: "\f543";
  font-family: dashicons;
  transition: transform 0.5s;
}

.entry-content .tb-faq .tb-q-block h4.active::after {
  /* content: "\f460"; */
  transform: rotate(45deg);
}

.entry-content .tb-faq .tb-q-block h4.active ~ p {
  max-height: 500px;
  margin: 1rem 0;
}

.tb-faq .tb-q-block {
  padding: 1rem 2rem;
  border-radius: 10px;
  background-color: white;
  font-size: var(--tb-font-size-normal-fixed);
  width: 100%;
}

.tb-faq .tb-flexbox {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.tb-faq .tb-flexbox > div {
  width: 100%;
}

@media screen and (max-width: 960px) {
  .tb-faq .tb-flexbox {
    flex-direction: column;
    gap: 1rem;
  }
}

/*----------------------- Contact Us Page -----------------*/

.tb-contact-page {
  margin-top: 5rem !important;
  margin-bottom: 10rem !important;
}

.tb-contact-page > div {
  display: flex;
  align-items: start;
}

.tb-contact-page .tb-contact-block {
  width: 50%;
}

.tb-contact-page .tb-contact-block h4 {
  margin-top: 3rem;
}

.tb-contact-page .tb-contact-block p strong {
  color: var(--wp--preset--color--contrast) !important;
}

.tb-contact-page .tb-contact-form-block {
  width: 50%;
  align-items: center;
  position: relative;
}

.tb-contact-page .tb-contact-form-block form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  gap: 0.75rem;
}

@media screen and (max-width: 768px) {
  .tb-contact-page > div {
    flex-direction: column-reverse;
  }

  .tb-contact-page .tb-contact-block,
  .tb-contact-page .tb-contact-form-block {
    width: 100%;
  }
}

.tb-contact-page .tb-contact-item {
  display: flex;
  align-items: flex-start;
}

.tb-contact-page .tb-contact-item > figure {
  width: 2em;
}

.tb-contact-page .tb-contact-item > div {
  gap: 0.5em;
  color: #777;
}

.tb-contact-page .tb-contact-item > div > h5 {
  font-size: var(--tb-font-size-normal);
}

.tb-contact-page .tb-contact-item > div > p {
  font-size: var(--tb-font-size-small);
  max-width: 20em;
}

.tb-contact-page .tb-contact-item > div > h6 {
  font-size: var(--tb-font-size-small);
}

/*---------- Message Blocks --------------*/

.tb-message-block {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background-color: whitesmoke;
}

.entry-content .tb-message-block {
  position: absolute;
  top: 30%;

  display: none;
}

.tb-message-block figure {
  width: 3rem;
}

.tb-success-block h5 {
  color: green;
}

.tb-error-block h5 {
  color: red;
}

.tb-message-block p {
  font-size: 0.9em;
  font-weight: 300;
  color: var(--wp--preset--color--custom-color-2);
  padding: 1em;
}

.tb-message-block .wp-block-buttons {
  width: 100%;
  justify-content: center;
}

.tb-message-block .wp-block-button {
  font-size: 0.9em;
}

.tb-message-block .wp-block-button a {
  color: var(--wp--preset--color--custom-color-2);
  background-color: transparent;
  border-radius: 100px;
  border: 1px solid var(--wp--preset--color--custom-color-2);
}
