/*
Theme Name: ditest
Theme URI: 
Author: Digital Ignite
Author URI: 
Description: test theme for digital ignite
Requires at least: 6.0
Tested up to: 6.6
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: ditest
Tags: 
*/

/* ADMIN */

:root {
    --headerHeight: auto;
}

.sr-only,
.hide {
    display: none !important;
}

body {
    color: #6b6b85;
    color: #4f4f6f;
    background-color: #f9f9ff;
}

h1, h2, h3 {
    color: #000;
}

.header-position-absolute + .wp-block-post-content > .wp-block-cover {
    padding-top: var(--headerHeight);
}

.logged-in .wp-site-blocks {
    position: relative;
}

@media (max-width: 899px) {
    .grid-collapse {
        grid-template-columns: 1fr;
    }
}


/* Header */

.header-position-absolute {
    position: absolute;
    width: 100%;
    top: 0px;
    z-index: 99999;
}

.header-color-scheme-dark * {
    color: #FFF;
}

.header-color-scheme-dark .di-logo-3d .logo-pixel::before {
    background: #FFF;
}

header .wp-block-columns .wp-block-column:nth-child(1) {
    flex-basis: 200px;
    flex-grow: 0;
}
header .wp-block-columns .wp-block-column:nth-child(2) {
    flex-basis: auto;
}
header .wp-block-columns .wp-block-column:nth-child(3) {
    flex-basis: 200px;
    flex-grow: 0;
}

@media (max-width:899px) {
    header .wp-block-columns .wp-block-column:nth-child(1) {
        order: 1;
        flex-basis: 50px;
    }
    header .wp-block-columns .wp-block-column:nth-child(2) {
        order: 3;
        flex-basis: 50px;
    }
    header .wp-block-columns .wp-block-column:nth-child(3) {
        order: 2;
        flex-basis: auto;
    }
}


.page-template-wp-custom-template-empty .entry-content {
    margin-block-start: 0px;
}
    
.wp-block-separator {
    border: none;
    border-top: 1px solid;
}
    
footer { 
    margin-block-start: 0px
}

/* Links */
a:where(:not(.wp-element-button)) {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.di-link-arrow,
.di-category-list-link-arrow .cat-item {
    position: relative;
    padding-right: 1em;
}

.di-link-arrow::after,
.di-category-list-link-arrow .cat-item::after {
    content: '';
    position: absolute;
    /* display: block; */
    /* right: 0px; */
    bottom: 0em;
    width: 1.5em;
    height: 1em;
    mask: url('/wp-content/themes/ditest/assets/svg/link-arrow-wide.svg') no-repeat center;
	-webkit-mask: url('/wp-content/themes/ditest/assets/svg/link-arrow-wide.svg') no-repeat center;
	mask-size: 100%;
    -webkit-mask-size: 100%;
    background-color: #000;
    margin-left: 0.5em;
    transform: translateX(0);
    transition: transform .35s;
}

.di-link-arrow:hover::after,
.di-category-list-link-arrow .cat-item:hover::after {
    transform: translateX(0.5em);
}

.di-category-list-link-arrow {
    list-style-type: none;
    padding-left: 0px;
}
    
    
/* pixel logo */

.di-logo-3d {
    width: 40px;
    height: 50px;
    position: relative;
    perspective: 2000px;
}

.di-logo-3d .logo-pixel {
    width: 10px;
    height: 10px;
    display: block;
    position: absolute;
    transition: transform .25s;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.di-logo-3d .logo-pixel::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: rotateY(0deg) translateZ(5px);
}

.di-logo-3d .logo-pixel::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: #811dd0;
    transform: rotateY(90deg) translateZ(5px);
}

.di-logo-3d .logo-pixel:nth-child(1) {
    top: 10px;
    left: 0;
}

.di-logo-3d .logo-pixel:nth-child(2) {
    top: 20px;
    left: 0;
    transition-delay: 25ms;
}

.di-logo-3d .logo-pixel:nth-child(3) {
    top: 30px;
    left: 0;
    transition-delay: 50ms;
}

.di-logo-3d .logo-pixel:nth-child(4) {
    top: 40px;
    left: 0;
    transition-delay: 75ms;
}

.di-logo-3d .logo-pixel:nth-child(5) {
    top: 10px;
    left: 10px;
    transition-delay: 100ms;
}

.di-logo-3d .logo-pixel:nth-child(6) {
    top: 40px;
    left: 10px;
    transition-delay: 125ms;
}

.di-logo-3d .logo-pixel:nth-child(7) {
    top: 10px;
    left: 20px;
    transition-delay: 150ms;
}

.di-logo-3d .logo-pixel:nth-child(8) {
    top: 40px;
    left: 20px;
    transition-delay: 175ms;
}

.di-logo-3d .logo-pixel:nth-child(9) {
    top: 0px;
    left: 30px;
    transition-delay: 200ms;
}

.di-logo-3d .logo-pixel:nth-child(10) {
    top: 20px;
    left: 30px;
    transition-delay: 225ms;
}

.di-logo-3d .logo-pixel:nth-child(11) {
    top: 30px;
    left: 30px;
    transition-delay: 250ms;
}

.di-logo-3d:hover {
    cursor: pointer;
}

.di-logo-3d:hover .logo-pixel {
    transform-origin: center center;
    transform: rotateY(-90deg);
}


/* Blog */

.custom-posts-loop {
    /* display: grid;
    grid: auto / 1fr 1fr 1fr 1fr;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--20); */
}

.post-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    /* padding: 1rem; */
    position: relative;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
}

.post-item__image {
    flex-basis: 33.33%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.post-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item__info {
    flex-basis: 66.66%;
}

.post-item__arrow {
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: url('/wp-content/themes/ditest/assets/svg/icon-arrow-top-right.svg') no-repeat center center / contain;
}

h2.post-item__title {
    font-size: 1.625rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

h2.post-item__title a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    /* background: -webkit-linear-gradient(30deg, #2242a6, #811dd0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

.post-date, .post-item__category {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.di-category-list-link-arrow .cat-item {
    margin-bottom: 1rem;
}

/* Forms */

form input[type="text"],
form input[type="email"],
form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 2rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    color: #ccc;
    font-size: 1rem;
}

form label {
    /* font-family: var(--wp--preset--font-family--rajdhani); */
    font-weight: 600;
}

form label:not(:first-of-type) {
    display: block;
    margin-top: 1rem;
}

form input[type="submit"] {
    padding: 1rem;
    border-radius: 2rem;
    font-size: 1rem;
}

.form-color-scheme-dark label {
    color: #FFF;
}

.form-color-scheme-dark input:not([type="submit"]),
.form-color-scheme-dark textarea {
    background: rgba(255,255,255,0.1);
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}


/* Service Items */

.service-item {
    position: relative;
}

.service-item svg {
    overflow: visible;
    height: 100px;
}

.service-item svg rect {
    fill: purple !important;
}

@media (min-width: 900px) {
    .service-item > * {
        position: relative;
    }  
    .service-item svg {
        position: absolute;
        transform: translateX(-125%);
        height: 100px;
        top: -25%;
    } 
}

/* Glitch */

.glitch-heading .word {
    display: inline-block;
    position: relative;
    font-size: inherit;
    animation: glitch-in-word 0.25s both;
}
  
.glitch-heading .word .inner {
    position: relative;
}
  
.glitch-heading .word[data-text]:before,
.glitch-heading .word[data-text]:after {
    content: attr(data-text);
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0px;
}

.glitch-heading .word[data-text]:before {
    opacity: var(--word-before-opacity);
    transform: var(--word-before-transform);
    text-shadow: var(--word-before-text-shadow);
    clip-path: polygon( 0 0, 100% 0%, 100% 30%, 0% 30%);
}
  
.glitch-heading .word .inner {
    clip-path: polygon( 0 30%, 100% 30%, 100% 80%, 0% 80%);
    transform-origin: center center;
}

.glitch-heading .word[data-text]:after {
    opacity: var(--word-after-opacity);
    transform: var(--word-after-transform);
    text-shadow: var(--word-after-text-shadow);
    clip-path: polygon( 0 80%, 100% 80%, 100% 100%, 0% 100%);
}

/* Forms */

.wpcf7-checkbox {
    display: flex;
    flex-direction: column;
}

.wpcf7-list-item {
    display: inline-block;
    margin: 0.5rem 0;
}

.wpcf7-list-item.first {
    margin-top: 1rem;
}

.wpcf7-list-item input[type="checkbox"] {
    display: none;
}

.wpcf7-list-item .wpcf7-list-item-label {
    position: relative;
    padding-left: 1.5rem;
}

.wpcf7-list-item input[type="checkbox"] + .wpcf7-list-item-label::before {
    content: '';
    border: 1px solid gray;
    width: 1em;
    height: 1em;
    position: absolute;
    top: 0;
    left: 0;
}

.wpcf7-list-item input[type="checkbox"] + .wpcf7-list-item-label::after {
    content: '';
    display: block;
    background: #FFF;
    width: calc(1em - 4px);
    height: 1em;
    position: absolute;
    top: .25em;
    left: 3px;
    mask-repeat: no-repeat;
    mask-image: url('/wp-content/themes/ditest/assets/svg/input-checkmark.svg');
    clip-path: polygon(0px 0px, 0px 0px, 0px 100%, 0px 100%);
    transition: all .5s cubic-bezier(.6,.01,.01,1);
}

.wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 0px 100%);
}

.flex-end {
    align-items: flex-end;
}

.display-none {
    display: none;
}


/* Case Study */
ul.statistics {
    list-style-type: none;
    padding-left: 0px;
}

li.statistic {
    margin: 2.5rem 0;
    position: relative;
    padding-left: 2.5rem;
    padding-top: 0.25rem;
}

li.statistic::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 39 36" style="fill:%232242a6"><g><g><polygon points="15 24 18 24 18 21 21 21 21 15 18 15 18 12 15 12 15 9 12 9 12 6 9 6 9 3 6 3 6 0 0 0 0 6 3 6 3 9 6 9 6 12 9 12 9 15 12 15 12 18 12 21 9 21 9 24 6 24 6 27 3 27 3 30 0 30 0 36 6 36 6 33 9 33 9 30 12 30 12 27 15 27 15 24"/><polygon points="39 15 36 15 36 12 33 12 33 9 30 9 30 6 27 6 27 3 24 3 24 0 18 0 18 6 21 6 21 9 24 9 24 12 27 12 27 15 30 15 30 18 30 21 27 21 27 24 24 24 24 27 21 27 21 30 18 30 18 36 24 36 24 33 27 33 27 30 30 30 30 27 33 27 33 24 36 24 36 21 39 21 39 15"/></g></g></svg>');
    position: absolute;
    top: 0px;
    left: 0px;
    width: 80px;
    height: 40px;
    opacity: 0.15;
}

.statistic__value {
    font-family: var(--wp--preset--font-family--rajdhani);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.statistic__metric {
    font-size: 1.25rem;
}

.statistic__description {
    font-size: var(--wp--preset--font-size--small);
    font-style: italic;
    margin-top: 0.25rem;
}

.testimonial {
    position: relative;
}

.testimonial::before {
    content: url('data:image/svg+xml,<svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50.07 30" fill="%23FFF" height="30px"><g id="Layer_1-2" data-name="Layer 1"><g><polygon points="10 10 10 0 0 0 0 10 0 30 20 30 20 10 10 10"/><polygon points="40.07 10 40.07 0 30.07 0 30.07 10 30.07 30 50.07 30 50.07 10 40.07 10"/></g></g></svg>');
    display: block;
    margin-bottom: 1rem;
}

/* Spotify Episode */

.spotify-episode {
    display: flex;
    gap: 1.5rem;
}

.spotify-episode__artwork img {
    max-width: 100%;
    height: auto;
}

.spotify-episode__info {
    display: grid;
    grid-template-columns: auto 120px;
}

.spotify-episode__artwork-banner {
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--rajdhani);
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    padding: 0.3em;
    background-color: purple;
}

.spotify-episode__strap {
    font-size: 0.9rem;
    font-family: var(--wp--preset--font-family--rajdhani);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: block;
}

.spotify-episode__name {
    font-size: 1.125rem !important;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0px;
    margin-bottom: 0.75rem;
}

.spotify-episode__info p {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.5;
}

.spotify-episode__link {
    position: relative;
}

.spotify-episode__link svg {
    position: absolute;
    width: 24px;
    top: 0px;
    right: 0px;
    transform: translate(-10px, 10px);
    transition: transform .25s;
}

.spotify-episode:hover .spotify-episode__link svg {
    transform: translate(0px, 0px);
}

.client-logos.is-layout-grid {
    align-items: center;
    justify-content: center;
}

.client-logos img {
    /* filter: grayscale(1);
    transition: filter .25s; */
    margin: auto;
    display: block;
}

@media (max-width: 899px) {
    .client-logos.grid-collapse {
        grid-template-columns: 1fr 1fr;
    }
}



/* .client-logos img:hover {
    filter: grayscale(0);
} */

.wp-block-cover.parallax-cover .wp-block-cover__image-background,
.wp-block-cover.parallax-cover .wp-block-cover__video-background {
    min-height: 120%;
    min-width: 100%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.1s linear;
    top: -10%;
}

@media (min-width: 900px) {
    .single .addtoany_list {
        /* display: flex;
        flex-direction: column; */
        /* align-items: flex-end; */
    }
}

/* Forms */


/* Dashboards */
.single-dashboard {
    background-color: #000;
    color: #FFF;
}

.single-dashboard .di-logo-3d {
    transform: scale(0.8);
}

.single-dashboard .di-logo-3d .logo-pixel::before {
    background: #FFF;
}

.datasets {
    width: 100%; 
}

.datasets__menu {
    display: block;
    position: relative;
    padding-top: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
}

.datasets__menu-content {
    display: block;
    position: relative;
}

.datasets__title {
    color: #FFF;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.2;
}

.datasets__links {
    display: flex;
    gap: var(--wp--preset--spacing--40);
    flex-direction: row;
    list-style-type: none;
    padding-left: 0px;
}

.datasets__link a {
    color: gray;
    text-decoration: none;
}

.datasets__link a:hover {
    color: #FFF;
}

.datasets__title span {
    color: #FFF;
    display: block;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.datasets__content {
    display: block;
    position: relative;
    padding-top: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
}

.dataset {
    margin-bottom: var(--wp--preset--spacing--50);
    height: 400px;
}

.dataset iframe {
    width: 100%;
    
}

@media (min-width: 900px) {
    .datasets {
        display: flex;
    }
    .datasets__menu {
        flex-basis: 20%;
    }
    .datasets__menu-content {
        padding-right: 1rem;
        position: sticky;
        top: 1rem;
    }
    .datasets__links {
        flex-direction: column;
    }
    .datasets__content {
        flex-basis: 80%;
        padding-left: 1rem;
        padding-top: var(--wp--preset--spacing--50);
        padding-bottom: var(--wp--preset--spacing--50);
        border-left: 1px solid #333;
    }
    .dataset {
        margin-bottom: var(--wp--preset--spacing--50);
        height: 800px;
    }
}