/* ========================================
   CUSTOM TEAM SECTION STYLES
   ======================================== */

/* Replace grid with flex layout for Safari compatibility */
.home-grid_component {
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
}

.error-404.not-found {
    padding-top: 200px;
    padding-bottom: 200px;
    padding-left: 20px;
    padding-right: 20px;
}

.gap-32 {
    gap: 32px;
    display: flex;
    flex-direction: column;
}

.display-block {
    display: block;
}

.text-gradient {
    color: #c8c8c8;
}

.home-header_contact-pic {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0);
}

/* Left section: Team (50%) */
.left-section {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.home-grid_team {
    flex: 1;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

/* Right section: Chat + Pricing (50%) */
.right-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-grid_chat {
    flex: 1;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

.home-grid_pricing {
    flex: 1;
    min-width: 0;
    /* Prevent flex item from overflowing */
}

/* Team Content Center */
.team-content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-description {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Custom Circles – Lottie animation container */
.custom-circle-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-circle-lottie,
.custom-circle-wrapper [lottie-loop] {
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* ========================================
     HOME GRID PRICING BACKGROUND VIDEO
     ======================================== */

.home-grid_pricing {
    position: relative !important;
    overflow: hidden;
}

/* Video samo iz HTML <video> elementa – bez ::before da ne bi bilo duplo */

.home-grid_pricing video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

.pricing-money-smaller {
    font-size: 46px !important;
}

/* Desktop styles remain unchanged - only mobile responsive changes */

/* Responsive adjustments for testimonials numbers - ONLY for smaller screens */
@media screen and (max-width: 992px) {
    .testimonials_numbers-main {
        display: grid !important;
        gap: 1.5rem !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        justify-items: start !important;
    }

    .number_block {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .number_wrap {
        justify-content: flex-start !important;
        gap: 0.1rem !important;
    }

    .number_group {
        min-width: 50px !important;
        max-width: 70px !important;
    }

    .number_number {
        min-width: 50px !important;
        max-width: 70px !important;
        font-size: 2.5rem !important;
        text-align: left !important;
    }

    .number_desc {
        text-align: left !important;
    }
}

@media screen and (max-width: 768px) {
    .number_group {
        min-width: 20px !important;
        max-width: 20px !important;
    }

    .number_number {
        min-width: 45px !important;
        max-width: 60px !important;
        font-size: 2.2rem !important;
    }
}

@media screen and (max-width: 479px) {
    .number_number {
        min-width: 20px !important;
        max-width: 20px !important;
        font-size: 2rem !important;
    }

    .custom-circle-lottie,
    .custom-circle-wrapper [lottie-loop] {
        width: 100%;
        height: auto;
        min-height: 0;
        min-width: 370px
    }
}

/* Rotation Animations */
@keyframes rotateClockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateCounterClockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@media screen and (max-width: 992px) {
    .home-grid_component {
        flex-direction: column;
    }

    .left-section {
        width: 100% !important;
    }

    .right-section {
        width: 100% !important;
    }

    .home-about_video-wrap {
        padding: 0 !important;
    }

    .number_desc {
        margin: 10px !important;
    }
}

/* 767*/
@media screen and (max-width: 768px) {
    .testimonials_items {
        display: flex;
        flex-direction: column;
    }

    .padding-section-large {
        padding-top: 48px;
    }

    .number_desc {
        margin: 0px !important;
    }

    .number_block {
        gap: 10px;
    }

    .number_number {
        justify-content: flex-start !important;
    }

    .number_group.is-procent {
        min-width: 26px !important;
    }

    .team-description {
        font-size: 10px !important;
        line-height: 1.2;
        max-width: 120px !important;
    }

    .home-grid_team {
        padding: 10px;
    }

    .home-header_subhead {
        font-size: 32px;
    }

    .home-header_subhead {
        font-size: 32px;
    }

    /* Mobile: Stack vertically */
    .home-grid_component {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile: Full width sections */
    .left-section {
        width: 100%;
    }

    .right-section {
        width: 100%;
    }

    .custom-circle-1 {
        min-width: 105%;
    }

    .home-grid_pricing {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    .home-grid_pricing-title {
        max-width: 168px;
    }

    .home-about_video-wrap {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        border-radius: 0 !important;
    }

    .testimonials_cover {
        aspect-ratio: 0.9/1;
    }

    .testimonials_data {
        display: flex;
        margin-top: 20px;
    }

    .testimonials_data-items {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials_data-item.is-last {
        grid-column: span 2;
    }

    .testimonials_heading {
        max-width: 250px;
    }

    .pricing-money-smaller {
        font-size: 36px !important;
    }

    .pricing_main {
        grid-row-gap: 30px;
    }

    .testimonials_heading {
        max-width: 280px;
    }
}

/* ========================================
     CUSTOM SMOOTH MARQUEE IMPLEMENTATION
     ======================================== */

/* Hide the original marquee */
.cta_note {
    display: none !important;
}

/* Custom marquee container */
.cta_note_custom {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

/* Custom marquee component */
.custom-marquee_component {
    width: 100%;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Custom marquee inner container */
.custom-marquee_in {
    display: flex;
    align-items: center;
    animation: smoothMarquee 25s linear infinite;
    width: max-content;
    gap: 2rem;
    padding: 0 2rem;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Custom marquee text styling */
.custom-marquee_text {
    font-family: var(--_typography---font-family--detail);
    color: #fff;
    font-size: var(--fixed--0-875rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Smooth marquee animation */
@keyframes smoothMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Hide marquee on smaller screens */
@media screen and (max-width: 991px) {
    .cta_note_custom {
        display: none !important;
    }
}

/* Responsive adjustments for larger screens only */
@media screen and (min-width: 992px) and (max-width: 1200px) {
    .cta_note_custom {
        top: 15px;
    }

    .custom-marquee_in {
        gap: 1.8rem;
        padding: 0 1.5rem;
    }

    .custom-marquee_text {
        font-size: 0.8rem;
    }
}

/* ========================================
     TESTIMONIALS NUMBERS FIX
     ======================================== */

/* ========================================
     W-RICHTEXT FIGURE STYLES
     ======================================== */
.w-richtext figure {
    max-width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
}

.wp-block-heading {
    line-height: 1.2;
}

/* ========================================
   WORKS PAGE – same background for all projects
   ======================================== */
.section_work-list .work-list_infos-v2 {
    background-color: #C8C8C8;
}

/* ========================================
   HOW IT WORKS – mobile steps (< 480px)
   ======================================== */
.how-it-works-steps-mobile {
    display: none;
}

@media (max-width: 479px) {
    .how-it-works-steps-desktop {
        display: none !important;
    }

    .testimonials_img {
        object-position: 50% 20%;
    }

    .how-it-works-steps-mobile {
        display: block !important;
        padding: 0;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;

    }

    .steps-mobile_stack {
        padding: 0;
        margin: 0;
    }

    .steps-mobile_item {
        position: sticky;
        top: 0;
        margin-bottom: 20px;
    }

    .steps-mobile_item:last-child {
        margin-bottom: 0;
    }

    .steps-mobile_item img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 0.53 / 1;
        object-fit: cover;
        vertical-align: top;
        border-radius: 20px;
    }
}

@media (min-width: 480px) {
    .how-it-works-steps-mobile {
        display: none !important;
    }
}

/* Policy page uses .section_post-content and .text-rich-text.w-richtext – same as single post, no extra overrides */

/* Blog listing: limit excerpt to 3 lines */
.section_blog-list .blog-list_desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Portfolio: hover samo na dugmetu, ne na celom itemu */
.section_work-list .work-list_card-button:hover .button_text._1 {
    opacity: 0;
}
.section_work-list .work-list_card-button:hover .button_text._2 {
    opacity: 1;
    filter: blur(0);
}
.section_work-list .work-list_card-button:hover .button_dot-scale {
    display: block;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    opacity: 1;
}

@media screen and (max-width: 375px) {
    .home-header_subhead {
        font-size: 28px;
    }
    .home-header_subhead{
        font-size: 28px;
    }
}