/*==================================================================================
    Custom Stylesheet (Any custom styling you want to apply should be defined here).
====================================================================================*/

/* News details: show long titles in full instead of truncating them. */
.single-blog-inner .news-detail-title h4 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

/* Homepage banner: responsive split layout and device mockup. */
.home-banner .banner-inner-area {
    padding: clamp(138px, 11.3vw, 217px) 0 clamp(72px, 5vw, 96px);
}

.home-banner .banner-inner-area.banner-area1::before {
    z-index: 0;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-position: center;
    background-size: cover;
}

.home-banner .banner-inner-area > .container {
    position: relative;
    z-index: 1;
}

.home-banner .home-banner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(230px, 22vw, 320px);
    gap: clamp(36px, 6vw, 96px);
    margin-right: 0;
    margin-left: 0;
}

.home-banner-copy,
.home-banner-media {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
}

.home-banner .banner-text-inner h1 {
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.home-banner .banner-text-inner p {
    max-width: 42rem;
    margin-bottom: clamp(28px, 3vw, 43px);
    overflow-wrap: anywhere;
}

.home-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-banner .home-banner-actions .btn,
.home-banner .home-banner-actions .btn + .btn {
    margin: 0;
    white-space: nowrap;
}

.home-banner-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-banner .banner-image {
    width: 100%;
}

@media (max-width: 991px) {
    .banner-inner-area.banner-area1::before {
        display: block;
        z-index: 0;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100%;
        background-image: url(../img/banner/mobile-main-base.png);
        background-position: center;
        background-size: cover;
    }

    .home-banner .banner-inner-area {
        padding-top: 124px;
    }

    .home-banner .home-banner-layout {
        grid-template-columns: minmax(0, 1fr) clamp(210px, 28vw, 270px);
        gap: clamp(28px, 5vw, 52px);
    }

    .home-banner .banner-text-inner h1 {
        font-size: clamp(22px, 3vw, 28px);
    }
}

.banner-phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.banner-phone-screen {
    position: absolute;
    z-index: 1;
    top: 1.4%;
    right: 5.3%;
    bottom: 1.7%;
    left: 5.3%;
    overflow: hidden;
    border-radius: 13% / 6.5%;
    background: #020617;
}

.banner-phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.banner-phone-frame {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

@media (max-width: 767px) {
    .home-banner .banner-inner-area {
        padding: 112px 0 64px;
    }

    .home-banner .home-banner-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .home-banner .banner-text-inner {
        padding-bottom: 0;
        text-align: center;
    }

    .home-banner .banner-text-inner p {
        max-width: 34rem;
        margin-right: auto;
        margin-left: auto;
    }

    .home-banner-actions {
        justify-content: center;
    }

    .home-banner .banner-phone-mockup {
        width: min(52vw, 230px);
        min-width: 168px;
    }

    .home-banner .banner-shape-wrap {
        display: none;
    }
}

@media (max-width: 479px) {
    .home-banner .banner-inner-area {
        padding-top: 104px;
    }

    .home-banner-actions {
        width: min(100%, 280px);
        margin: 0 auto;
        flex-direction: column;
    }

    .home-banner .home-banner-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner .banner-image,
    .home-banner .shape {
        animation: none;
    }
}

/* Homepage advanced features: add breathing room below the hero. */
.home-features {
    padding-top: 60px;
}

@media (max-width: 767px) {
    .home-features {
        padding-top: 40px;
    }
}

/* App gallery: reuse the same device frame as the homepage banner. */
.app-scrin-inner {
    padding-bottom: 73px;
}

.app-carousel-inner {
    width: min(355px, calc(100vw - 48px));
    height: auto;
    aspect-ratio: 355 / 702;
    padding: 0;
    background: none;
}

.app-carousel {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.app-carousel .owl-stage-outer,
.app-carousel .owl-stage,
.app-carousel .owl-item,
.app-carousel .single-app-image {
    height: 100%;
}

.app-carousel .owl-stage-outer {
    overflow: visible;
}

.app-carousel .single-app-image {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.app-phone-screen {
    position: absolute;
    z-index: 1;
    top: 1.4%;
    right: 5.3%;
    bottom: 1.7%;
    left: 5.3%;
    overflow: hidden;
    border-radius: 13% / 6.5%;
    background: #020617;
}

.app-carousel .single-app-image .app-phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: fill;
}

.app-phone-frame {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.app-carousel .single-app-image > .app-phone-frame {
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.app-carousel .owl-dots {
    position: absolute;
    z-index: 3;
    top: calc(100% + 48px);
    right: 0;
    left: 0;
    margin-top: 0;
}

/* Homepage version updates: purple backdrop with readable white cards. */
.version-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .16), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(225, 193, 255, .22), transparent 28%),
        linear-gradient(128deg, #4b20aa 0%, #6d3bd1 52%, #9b5be3 100%);
}

.version-section::before {
    position: absolute;
    top: -280px;
    right: -220px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.version-section .container {
    position: relative;
    z-index: 1;
}

.version-section .section-title h2 {
    color: #fff;
}

.version-section .section-title p {
    color: rgba(255, 255, 255, .78);
}

.version-section .single-blog-inner {
    overflow: hidden;
    border-radius: 16px 16px 16px 5px;
    box-shadow: 0 22px 48px rgba(39, 14, 91, .25);
}

.version-section .post-content {
    padding: 28px 26px 30px;
    background: #fff;
}

.version-section .post-details {
    padding-top: 0;
}

/* Keep oversized source images contained. */
.version-card-image {
    width: 100%;
    height: 220px;
}

.version-card-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.single-blog-inner .version-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* News list cards: use a restrained landscape crop for large source images. */
.news-list-card-image {
    width: 100%;
    height: 360px;
}

.news-list-card-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.single-blog-inner .news-list-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Homepage customer testimonials. */
.testimonial-section {
    position: relative;
    overflow: hidden;
    padding: 108px 0 120px;
    color: #fff;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .16), transparent 31%),
        radial-gradient(circle at 88% 86%, rgba(211, 175, 255, .20), transparent 29%),
        linear-gradient(125deg, #4920a8 0%, #7141d8 48%, #9b5be3 100%);
}

.testimonial-section::before {
    position: absolute;
    top: -310px;
    left: -260px;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    content: "";
}

.testimonial-container {
    position: relative;
    z-index: 2;
}

.testimonial-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.testimonial-orb-one {
    top: -130px;
    left: 20%;
    width: 430px;
    height: 430px;
    background: rgba(43, 17, 109, .18);
}

.testimonial-orb-two {
    right: -90px;
    bottom: -180px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.testimonial-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 52px;
}

.testimonial-heading {
    max-width: 650px;
}

.testimonial-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
}

.testimonial-heading h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.testimonial-heading p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.8;
}

.testimonial-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
}

.testimonial-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-size: 25px;
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.testimonial-control:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .18);
    transform: translateY(-3px);
}

.testimonial-control:active {
    transform: translateY(0) scale(.96);
}

.testimonial-control:focus-visible {
    outline: 3px solid rgba(255, 226, 146, .9);
    outline-offset: 4px;
}

.testimonial-carousel .owl-stage {
    display: flex;
}

.testimonial-carousel .owl-item {
    display: flex;
}

.testimonial-card {
    display: flex;
    width: 100%;
    min-height: 355px;
    padding: 38px 34px 32px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 28px 28px 28px 8px;
    color: #343042;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 55px rgba(42, 16, 96, .24);
    transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 32px 65px rgba(42, 16, 96, .32);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    flex: 0 0 72px;
    border-radius: 22px;
    background: #f2eaff;
}

.testimonial-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author h3 {
    margin: 0;
    color: #28223b;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

.testimonial-card blockquote {
    margin: 42px 0 28px;
    color: #656071;
    font-size: 16px;
    font-style: normal;
    line-height: 1.85;
}

.testimonial-rating {
    margin-top: auto;
    color: #f4ad34;
    font-size: 20px;
    letter-spacing: .22em;
}

.testimonial-carousel .owl-dots {
    display: none;
}

@media (max-width: 991px) {
    .testimonial-section {
        padding: 88px 0 96px;
    }

    .testimonial-heading h2 {
        font-size: 44px;
    }

    .testimonial-card {
        min-height: 335px;
    }
}

@media (max-width: 575px) {
    .news-list-card-image {
        height: 240px;
    }

    .testimonial-section {
        padding: 72px 0 82px;
    }

    .testimonial-carousel {
        margin-bottom: 40px;
    }

    .testimonial-heading-row {
        display: block;
        margin-bottom: 36px;
    }

    .testimonial-heading h2 {
        font-size: 38px;
    }

    .testimonial-heading p {
        font-size: 15px;
    }

    .testimonial-controls {
        margin-top: 26px;
    }

    .testimonial-control {
        width: 50px;
        height: 50px;
    }

    .testimonial-card {
        min-height: 330px;
        padding: 30px 26px 28px;
        border-radius: 24px 24px 24px 8px;
    }

    .testimonial-card blockquote {
        margin-top: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-control {
        transition: none;
    }
}
