.template-inner,
.template-inner * {
    box-sizing: border-box;
}

h1 {
    font-size: 65px;
}

h2 {
    font-size: 22px;
    line-height: 1.5;
}

.top-section {
    padding: 100px 0 0;
}

.top-section .content-wrap {
    max-width: 1200px;
}

.banner-head {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.banner-media {
    justify-self: center;
    align-self: end;
}

.banner-media img {
    vertical-align: bottom;
}

.data-section {
    background: #f2f2f2;
    padding: 80px 0;
}

.data-section .content-wrap {
    max-width: 1200px;
}

.tips-data-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 1fr;
}

.tips-data-loader {
    grid-area: 2/1/3/3;
    text-align: center;
    align-self: center;
}

.tips-loader-ring {
    display: inline-block;
    width: 50px;
    height: 50px;
    position: relative;
}

.tips-loader-ring:after {
    content: " ";
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 6px solid #1976d2;
    border-color: #1976d2 transparent #1976d2 transparent;
    animation: ring 1.2s linear infinite;
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tips-search-box {
    margin: 0 auto 20px;
    position: relative;
    z-index: 9
}

.tips-search-box form {
    position: relative
}

.tips-search-box .tips-search-input {
    width: 100%;
    padding: 8px 60px 10px 15px;
    height: 45px;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--zf-primary-regular)
}

.tips-search-box.active .tips-search-input {
    border-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid #e1e1e1;
}

.tips-search-box .tips-search-submit {
    width: 60px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer
}

.tips-search-submit span {
    background: url('/sites/default/files/tips-tricks-sprite.svg') no-repeat -25px 0/50px auto;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.tips-search-data {
    max-height: 250px;
    overflow-y: scroll;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0 5px;
    background: #fff;
    width: 100%;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 1px solid #e1e1e1;
    border-top-color: #fff;
    box-shadow: 0px 7px 14px 0px rgb(0, 0, 0, 0.1);
    display: none
}

.tips-search-box.active .tips-search-data {
    display: block
}

.tips-search-loader-box {
    display: none
}

.tips-search-loader {
    margin: 0 auto;
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px
}

.tips-search-loader>span {
    background: #1976d2;
    height: 100%;
    width: 3px;
    display: inline-block;
    margin: 0 1px;
    animation: stretchdelay 1.2s infinite ease-in-out
}

.tips-search-loader .rect2 {
    animation-delay: -1.1s
}

.tips-search-loader .rect3 {
    animation-delay: -1s
}

.tips-search-loader .rect4 {
    animation-delay: -0.9s
}

.tips-search-loader .rect5 {
    animation-delay: -0.8s
}

@keyframes stretchdelay {
    0%,
    40%,
    100% {
        transform: scaleY(0.4)
    }
    20% {
        transform: scaleY(1.0)
    }
}

.tips-search-data ul {
    background: #fff
}

.tips-search-data ul li {
    margin-bottom: 10px
}

.tips-search-data ul li:not(.no-data):hover {
    background: #c7deff;
}

.tips-search-data ul li.no-data {
    text-align: center
}

.tips-search-data ul li a,
.tips-search-data ul li {
    font-size: 15px;
    color: #000;
    display: block;
    text-align: left
}

.tips-search-data ul li a {
    padding: 0 10px;
}

.tips-search-data ul strong {
    color: #1976d2;
}

.tips-category-nav {
    grid-area: 1/1/2/2;
}

.tips-n-fixed {
    position: fixed;
    width: 300px;
    overflow-y: scroll;
    height: calc(100% - 160px);
    scrollbar-width: none;
    scrollbar-color: transparent;
    transition: top .1s ease-out;
}

.tips-n-fixed::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.tips-select-category {
    display: none;
    position: relative;
}

.tips-select-category span {
    display: none;
}

.tips-select-category.is-loaded {
    display: block;
}

.tips-data-category {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
}

.tips-data-category li {
    margin-bottom: 20px;
    font-size: 16px;
    cursor: pointer;
}

.tips-data-category li.active {
    color: #388bfd;
    font-family: var(--zf-primary-semibold);
}

.tips-data-category li:last-child {
    margin-bottom: 0
}

.tips-top-articles {
    padding: 40px;
    margin: 20px 0 0;
    display: none;
}

.tips-top-articles.is-loaded {
    display: block;
}

.tips-top-articles p {
    font-size: 15px;
    font-family: var(--zf-primary-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.tips-top-articles a {
    color: #000;
    font-size: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
    display: block;
}

.tips-top-articles a:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tips-data-outer {
    grid-area: 1/2/2/3;
    padding-left: 80px;
}

.tips-data-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}

.tips-data-box {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
    transition: box-shadow .5s ease;
    transform: translateY(50px);
    animation: postUp .4s linear forwards;
}

@keyframes postUp {
    from {
        transform: translateY(50px);
    }
    to {
        transform: translateY(0);
    }
}

.tips-data-box:hover {
    box-shadow: -4px 4px 20px 4px rgba(0, 0, 0, .1);
}

.tips-data-media {
    position: relative;
    display: block;
}

.tips-data-media:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .5s ease;
}

.tips-data-box:hover .tips-data-media:before {
    opacity: 1;
}

.tips-data-media img {
    vertical-align: middle;
}

.tips-data-media span {
    position: absolute;
    display: inline-block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    font-size: 14px;
    font-family: var(--zf-primary-semibold);
    text-transform: uppercase;
    color: #fff;
    width: 100px;
    height: 20px;
    opacity: 0;
    transition: opacity .5s ease;
}

.tips-data-box:hover span {
    opacity: 1;
}

.tips-data-media span:before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    border-radius: 50px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.tips-data-media span:after {
    content: '';
    width: 3px;
    height: 3px;
    border-width: 0 1px 1px 0;
    border-style: solid;
    border-color: #fff;
    position: absolute;
    top: 8px;
    right: 5px;
    transform-origin: center;
    transform: rotate( -45deg);
}

.tips-data-nav {
    padding: 20px 15px 10px;
}

.tips-data-nav li {
    font-size: 10px;
    text-transform: uppercase;
    display: inline-block;
    padding: 3px 5px;
    margin: 0 5px 5px 0;
    border-radius: 5px;
    border: 1px solid #000;
    font-family: var(--zf-primary-semibold);
    cursor: pointer;
    transition: border-color .3s linear, background .3s ease;
}

.tips-data-nav li:nth-child(n+1):hover {
    border-color: #000;
}

.tips-data-nav li:last-child {
    margin-right: 0;
}

.tips-data-nav li:nth-child(1),
.tips-data-nav li:nth-child(7) {
    border-color: #f38094;
}

.tips-data-nav li:nth-child(1):hover,
.tips-data-nav li:nth-child(7):hover {
    background: #f38094;
}

.tips-data-nav li:nth-child(2),
.tips-data-nav li:nth-child(8) {
    border-color: #ffc78d;
}

.tips-data-nav li:nth-child(2):hover,
.tips-data-nav li:nth-child(8):hover {
    background: #ffc78d;
}

.tips-data-nav li:nth-child(3),
.tips-data-nav li:nth-child(9) {
    border-color: #41c2c2;
}

.tips-data-nav li:nth-child(3):hover,
.tips-data-nav li:nth-child(9):hover {
    background: #41c2c2;
}

.tips-data-nav li:nth-child(4),
.tips-data-nav li:nth-child(10) {
    border-color: #24c552;
}

.tips-data-nav li:nth-child(4):hover,
.tips-data-nav li:nth-child(10):hover {
    background: #24c552;
}

.tips-data-nav li:nth-child(5),
.tips-data-nav li:nth-child(11) {
    border-color: #ec93f9;
}

.tips-data-nav li:nth-child(5):hover,
.tips-data-nav li:nth-child(11):hover {
    background: #ec93f9;
}

.tips-data-nav li:nth-child(6),
.tips-data-nav li:nth-child(12) {
    border-color: #a7acfd;
}

.tips-data-nav li:nth-child(6):hover,
.tips-data-nav li:nth-child(12):hover {
    background: #a7acfd;
}

.tips-data-box h2 {
    padding: 0 15px;
    margin-bottom: 25px;
    font-family: var(--zf-primary-semibold);
}

.tips-data-box h2 a {
    color: #000;
    display: block;
}

.tips-data-status {
    display: none;
    justify-content: center;
    margin-bottom: 20px;
}

.tips-data-status.is-ready {
    display: grid;
}

.tips-data-status span {
    font-size: 15px;
}

.tips-visible-count,
.tips-total-count {
    font-weight: 600;
}

.tips-data-more {
    font-family: var(--zf-primary-semibold);
    display: none;
    margin: 0 auto;
    max-width: 150px;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 30px;
    border: 1px solid #388bfd;
    background: #fff;
    padding: 10px 15px;
    cursor: pointer;
    transition: background .3s linear, color .3s linear;
}

.tips-data-more.is-more {
    display: block;
}

.tips-data-more:hover {
    background: #388bfd;
    color: #fff;
}

@media only screen and (min-width:1400px) and (max-width:1599px) {
    h1 {
        font-size: 60px;
    }
}

@media only screen and (max-width:1399px) {
    h1 {
        font-size: 55px;
    }
}

@media only screen and (max-width:1199px) {
    .top-section {
        padding: 80px 0 0;
    }
    .data-section .content-wrap {
        width: 90%;
    }
    .tips-data-container {
        grid-template-columns: 250px 1fr;
    }
    .tips-n-fixed {
        width: 250px;
    }
    .tips-data-category,
    .tips-top-articles {
        padding: 40px 30px;
    }
    .tips-data-outer {
        padding-left: 50px;
    }
    .tips-data-inner {
        margin-bottom: 50px;
    }
}

@media only screen and (max-width:1140px) {
    .data-section .content-wrap {
        width: 95%;
    }
    .tips-n-fixed {
        height: calc(100% - 100px);
    }
}

@media only screen and (min-width:992px) {
    .banner-con {
        padding-bottom: 70px;
    }
}

@media only screen and (max-width:991px) {
    h1 {
        font-size: 50px;
    }
    h2 {
        font-size: 21px;
    }
    .top-section {
        padding: 50px 0 0;
    }
    .banner-head {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 70px;
    }
    .banner-media img {
        max-width: 360px;
        width: 100%;
    }
    .data-section {
        padding: 70px 0;
    }
    .tips-data-category li {
        font-size: 15px;
    }
}

@media only screen and (max-width:900px) {
    .data-section .content-wrap {
        max-width: 680px;
        width: 90%;
    }
    .tips-data-inner {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width:767px) {
    h1 {
        font-size: 40px;
    }
    .banner-head {
        gap: 30px;
    }
    .banner-media img {
        max-width: 250px;
    }
    .data-section {
        padding: 40px 0;
    }
    .tips-search-box,
    .tips-data-navInner {
        max-width: 350px;
        margin: 0 auto;
    }
    .tips-search-box {
        margin: 0 auto 10px;
    }
    .tips-search-box .tips-search-input,
    .tips-search-box.active .tips-search-input {
        font-size: 15px;
        border-radius: 5px;
        border-color: #ccc;
    }
    .tips-search-box.active .tips-search-input {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .tips-search-data {
        border-radius: 5px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-color: #ccc;
        border-top-color: #fff;
    }
    .tips-data-container {
        grid-template-columns: 1fr;
        grid-template-rows: 100px 1fr;
    }
    .tips-select-category span {
        display: block;
        padding: 10px 50px 10px 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background: #fff;
        font-size: 15px;
        position: relative;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
    }
    .tips-select-category span.active {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border: 1px solid #ccc;
    }
    .tips-select-category span:after,
    .tips-select-category span.active:after {
        content: '';
        width: 7px;
        height: 7px;
        border-width: 0 2px 2px 0;
        border-style: solid;
        border-color: #000;
        position: absolute;
        right: 25px;
        top: 15px;
        transform-origin: center;
        transform: rotate(45deg);
    }
    .tips-select-category span.active:after {
        transform: rotate(225deg);
        top: 20px;
    }
    .tips-data-category {
        position: absolute;
        top: 100%;
        display: none;
        max-height: 190px;
        overflow-y: scroll;
        left: 0;
        width: 100%;
        z-index: 9;
        padding: 15px;
        border-radius: 5px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border: 1px solid #ccc;
        border-top-color: #fff;
    }
    .tips-data-category li {
        margin-bottom: 15px;
    }
    .tips-data-outer {
        grid-area: 2/1/3/2;
        padding: 40px 0 0;
    }
    .tips-data-loader {
        margin-top: 20px;
    }
    .tips-data-inner {
        gap: 50px;
    }
    .tips-data-box {
        max-width: 380px;
        margin: 0 auto;
    }
    .tips-data-more {
        padding: 10px 15px;
        margin: 0 auto 50px;
    }
    .tips-top-articles {
        max-width: 380px;
        margin: 60px auto 10px;
        padding: 0;
    }
    .tips-top-articles p {
        margin-bottom: 20px;
    }
    .tips-top-articles a {
        padding: 0 0 0 15px;
        border: none;
        margin-bottom: 10px;
        position: relative;
    }
    .tips-top-articles a:before {
        content: '';
        width: 8px;
        height: 8px;
        background: #000;
        border-radius: 50px;
        position: absolute;
        top: 7px;
        left: 0;
    }
    .tips-top-articles a:last-child {
        margin: 0;
    }
}