/* whatsapp */
.containers {
    bottom: 24px;
    position: fixed;
    margin: 1em;
    left: 33px;
    z-index: 1000;
}

.buttons {
    background: #25d366;
    box-shadow: 0px 5px 11px -2px rgba(0, 0, 0, 0.18),
        0px 4px 12px -7px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: block;
    width: 56px;
    height: 56px;
    margin: 20px auto 0;
    position: relative;
    -webkit-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}

.buttons:active,
.buttons:focus,
.buttons:hover {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

.buttons:not(:last-child) {
    width: 40px;
    height: 40px;
    margin: 20px auto 0;
    opacity: 0;
    -webkit-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
}

.containers:hover .buttons:not(:last-child) {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    margin: 15px auto 0;
}

/* Unessential styling for sliding up buttons at differnt speeds */

.buttons:nth-last-child(1) {
    -webkit-transition-delay: 25ms;
    transition-delay: 25ms;
    background-image: url(../image/whatsapp.png);
    background-size: contain;
}

.buttons:not(:last-child):nth-last-child(2) {
    -webkit-transition-delay: 50ms;
    transition-delay: 20ms;
    background-image: url(../image/whatsapp.png);
    background-size: contain;
}

.buttons:not(:last-child):nth-last-child(3) {
    -webkit-transition-delay: 75ms;
    transition-delay: 40ms;
    background-image: url(../image/whatsapp.png);
    background-size: contain;
}

.buttons:not(:last-child):nth-last-child(4) {
    -webkit-transition-delay: 100ms;
    transition-delay: 60ms;
    background-image: url(../image/whatsapp.png);
    background-size: contain;
}

/* Show tooltip content on hover */

[tooltip]:before {
    bottom: 25%;
    font-family: arial;
    font-weight: 600;
    border-radius: 2px;
    background: #585858;
    color: #fff;
    content: attr(tooltip);
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    padding: 5px 7px;
    margin-left: 12px;
    position: absolute;
    left: 100%;
    white-space: nowrap;
}

[tooltip]:hover:before,
[tooltip]:hover:after {
    visibility: visible;
    opacity: 1;
}

.post-info-wrap {
    gap: 20px;
}

/* artikel beranda */

.templines-blog-posts-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.entry-blog-post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-item-content {
    flex: 0 1 300px;
    overflow: hidden;
    position: relative;
}

.top-item-content .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title-wrap {
    flex: 1;
}

.post-title-link h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* embedmap kontak */
.map-container {
    margin-top: 30px;
    position: relative;
    width: 90%;
    height: 275px;
    overflow: hidden;
    border-radius: 5px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}

/* video */
.templines-video-box-wrapper {
    position: relative;
    overflow: hidden;
}

.templines-video-btn-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.templines-video-box-wrapper:hover .templines-video-btn-wrap {
    opacity: 1;
}

.templines-video-btn-wrap svg {
    width: 40px;
    height: 40px;
    fill: #000;
}

.templines-video-bg img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 991px) {
  .templines-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .templines-row > div {
    margin-bottom: 20px;
  }

  .templines-row .col-5 img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    float: none;
    border-radius: 5px;
    display: flex;
    justify-content: center;
  }

  .templines-banner-wrapper {
    padding: 30px 20px;
  }
}