
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    width: 100%;
    height: calc(100vh - 110px);
    padding: 0;
    overflow: hidden;
    background: #000;
  }
  
  #hero .carousel-item {
    width: 100%;
    height: calc(100vh - 110px);
    background-size: cover;
    background-position: top right;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  
  #hero .carousel-item::before {
    content: "";
    /* background-color: rgba(31, 56, 78, 0.6); */
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
  }
  #hero .carousel-item-h::before {
    background-color: rgba(31, 56, 78, 0.6);
  }
  
  #hero .carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
  }
  
  #hero .carousel-content {
    text-align: left;
  }
  
  @media (max-width: 992px) {
  
    #hero,
    #hero .carousel-item {
      height: calc(100vh - 70px);
    }
  
    #hero .carousel-content.container {
      padding: 0 50px;
    }
  }
  
  #hero h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 48px;
    font-weight: 900;
  }
  
  #hero p {
    width: 80%;
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
    color: #fff;
  }
  
  #hero .carousel-inner .carousel-item {
    transition-property: opacity;
    background-position: center top;
  }
  
  #hero .carousel-inner .carousel-item,
  #hero .carousel-inner .active.carousel-item-start,
  #hero .carousel-inner .active.carousel-item-end {
    opacity: 0;
  }
  
  #hero .carousel-inner .active,
  #hero .carousel-inner .carousel-item-next.carousel-item-start,
  #hero .carousel-inner .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transition: 0.5s;
  }
  
  #hero .carousel-inner .carousel-item-next,
  #hero .carousel-inner .carousel-item-prev,
  #hero .carousel-inner .active.carousel-item-start,
  #hero .carousel-inner .active.carousel-item-end {
    left: 0;
    transform: translate3d(0, 0, 0);
  }
  
  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 10%;
  }
  
  #hero .carousel-control-next-icon,
  #hero .carousel-control-prev-icon {
    background: none;
    font-size: 48px;
    line-height: 1;
    width: auto;
    height: auto;
  }
  
  #hero .carousel-indicators li {
    cursor: pointer;
  }
  
  #hero .btn-get-started {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    transition: 0.5s;
    line-height: 1;
    margin: 10px;
    color: #fff;
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
    border: 2px solid #2374e1;
    background: #2374e1;
  }
  #hero .btn-get-started-line {
    background: #00b900;
    border: 2px solid #fff;
  }
  
  #hero .btn-get-started:hover {
    background: #0e4ea1;
    border: 2px solid #fff;
    
  }
  #hero .btn-get-started-line:hover {
    background: #077907;
    border: 2px solid #fff;
  }
  
  @media (max-width: 768px) {
    #hero h2 {
      font-size: 28px;
    }
  }
  
  @media (max-height: 500px) {
  
    #hero,
    #hero .carousel-item {
      height: 120vh;
    }
  }
  
  @media (min-width: 1024px) {
    #hero p {
      width: 60%;
    }
  
    #hero .carousel-control-prev,
    #hero .carousel-control-next {
      width: 5%;
    }
  }

  .entry-content-1 .read-more-1 {
    -moz-text-align-last: right;
    text-align-last: right;
  }
  .entry-content-1 .read-more-1 a{
    color: white;
    background-color: red;
    padding: .5rem 1rem;
  }
  .entry-content-1 .read-more-1 a:hover{
    background-color: rgb(22, 22, 22);
    padding: .5rem 1rem;
  }

  
/*--------------------------------------------------------------
# All service Section
--------------------------------------------------------------*/
:root {
    --d: 700ms;
    --e: cubic-bezier(0.19, 1, 0.22, 1);
  }
  
  .page-content_1 {
    display: grid;
    grid-gap: 1rem;
    padding: 1rem;
    margin: 0 0;
    font-family: var(--font-sans);
  }
  @media (min-width: 600px) {
    .page-content_1 {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 800px) {
    .page-content_1 {
      grid-template-columns: repeat(5, 1fr);
    }
  }
  
  .card_1 {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 1rem;
    width: 100%;
    text-align: center;
    color: whitesmoke;
    background-color: whitesmoke;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1),
      0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1),
      0 16px 16px rgba(0, 0, 0, 0.1);
  }
  @media (min-width: 600px) {
    .card_1 {
      height: 350px;
    }
  }
  .card_1:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105%;
    background-size: cover;
    background-position: center;
    transition: transform calc(var(--d) * 1.5) var(--e);
    pointer-events: none;
  }
  .card_1:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.009) 11.7%,
      rgba(0, 0, 0, 0.034) 22.1%,
      rgba(0, 0, 0, 0.072) 31.2%,
      rgba(0, 0, 0, 0.123) 39.4%,
      rgba(0, 0, 0, 0.182) 46.6%,
      rgba(0, 0, 0, 0.249) 53.1%,
      rgba(0, 0, 0, 0.32) 58.9%,
      rgba(0, 0, 0, 0.394) 64.3%,
      rgba(0, 0, 0, 0.468) 69.3%,
      rgba(0, 0, 0, 0.54) 74.1%,
      rgba(0, 0, 0, 0.607) 78.8%,
      rgba(0, 0, 0, 0.668) 83.6%,
      rgba(0, 0, 0, 0.721) 88.7%,
      rgba(0, 0, 0, 0.762) 94.1%,
      rgba(0, 0, 0, 0.79) 100%
    );
    transform: translateY(-50%);
    transition: transform calc(var(--d) * 2) var(--e);
  }
  .card_1:nth-child(1):before {
    background-image: url(../imgs/background_header/ขาย.jpg);
  }
  .card_1:nth-child(2):before {
      background-image: url(../imgs/background_header/part.jpg);
  }
  .card_1:nth-child(3):before {
      background-image: url(../imgs/background_header/GS.jpg);
  }
  .card_1:nth-child(4):before {
      background-image: url(../imgs/background_header/BP.jpg);
  }
  .card_1:nth-child(5):before {
      background-image: url(../imgs/background_header/ทะเบียน\ ประกันภัย.jpg);
  }
  
  .content_1 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem;
    transition: transform var(--d) var(--e);
    z-index: 1;
  }
  .content_1 > * + * {
    margin-top: 1rem;
  }
  
  .title_1 {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.2;
  }
  
  .copy_1 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.35;
  }
  
  .btn_1 {
    cursor: pointer;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
    color: white;
    background-color: red;
    border: none;
  }
  .btn_1:hover {
    background-color: rgb(199, 13, 13);
  }
  .btn_1:focus {
    outline: 1px dashed yellow;
    outline-offset: 3px;
  }
  
  @media (hover: hover) and (min-width: 600px) {
    .card_1:after {
      transform: translateY(0);
    }
  
    .content_1 {
      transform: translateY(calc(100% - 4.5rem));
    }
    .content_1 > *:not(.title_1) {
      opacity: 0;
      transform: translateY(1rem);
      transition: transform var(--d) var(--e), opacity var(--d) var(--e);
    }
  
    .card_1:hover,
    .card_1:focus-within {
      align-items: center;
    }
    .card_1:hover:before,
    .card_1:focus-within:before {
      transform: translateY(-4%);
    }
    .card_1:hover:after,
    .card_1:focus-within:after {
      transform: translateY(-50%);
    }
    .card_1:hover .content_1,
    .card_1:focus-within .content_1 {
      transform: translateY(0);
    }
    .card_1:hover .content_1 > *:not(.title_1),
    .card_1:focus-within .content_1 > *:not(.title_1) {
      opacity: 1;
      transform: translateY(0);
      transition-delay: calc(var(--d) / 8);
    }
  
    .card_1:focus-within:before,
    .card_1:focus-within:after,
    .card_1:focus-within .content_1,
    .card_1:focus-within .content_1 > *:not(.title_1) {
      transition-duration: 0s;
    }
  }

