/* The hero and bottom navigation share the initial viewport in both languages. */
.gpt-home-viewport {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100svh;
}
.gpt-home-viewport > .gpt-home-hero {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    max-height: none;
}
.gpt-home-viewport > .site-header {
    flex: 0 0 auto;
}

.gpt-home-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    background: #07111f;
}

.gpt-home-swiper,
.gpt-home-swiper .swiper-wrapper,
.gpt-home-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.gpt-home-slide {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gpt-home-slide__media,
.gpt-home-slide__media img,
.gpt-home-slide__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gpt-home-slide__media img,
.gpt-home-slide__media video {
    object-fit: cover;
    object-position: center center;
}

.gpt-home-slide__media video {
    background: #07111f;
}

.gpt-home-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .22) 48%, rgba(0, 0, 0, .12) 100%);
    pointer-events: none;
}

.gpt-home-slide__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: min(100% - 48px, 1200px);
    height: 100%;
    margin: 0 auto;
}

.gpt-home-slide__content {
    width: min(800px, 72vw);
    color: #fff;
    text-align: left;
}

.gpt-home-slide__title,
.gpt-home-slide__description,
.gpt-home-slide__action {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.swiper-slide-active .gpt-home-slide__title,
.swiper-slide-active .gpt-home-slide__description,
.swiper-slide-active .gpt-home-slide__action {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .gpt-home-slide__title { transition-delay: .18s; }
.swiper-slide-active .gpt-home-slide__description { transition-delay: .34s; }
.swiper-slide-active .gpt-home-slide__action { transition-delay: .50s; }

.gpt-home-slide__title {
    margin: 0 0 22px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: clamp(36px, 4.4vw, 65px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 2px;
}

.gpt-home-slide__description {
    max-width: 640px;
    margin: 0 0 30px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 400;
    line-height: 1.7;
}

.gpt-home-slide__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 30px;
    border-radius: 2px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    transition: opacity .7s ease, transform .7s ease, filter .2s ease;
}

.gpt-home-slide__action:hover,
.gpt-home-slide__action:focus {
    color: #fff;
    filter: brightness(1.08);
}

.gpt-home-swiper .swiper-button-prev,
.gpt-home-swiper .swiper-button-next {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(3px);
    transition: background .2s ease, border-color .2s ease;
}

.gpt-home-swiper .swiper-button-prev:hover,
.gpt-home-swiper .swiper-button-next:hover {
    border-color: rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .34);
}

.gpt-home-swiper .swiper-button-prev::after,
.gpt-home-swiper .swiper-button-next::after {
    font-size: 17px;
    font-weight: 700;
}

.gpt-home-swiper .swiper-button-prev { left: 24px; }
.gpt-home-swiper .swiper-button-next { right: 24px; }

.gpt-home-swiper .swiper-pagination {
    bottom: 22px !important;
}

.gpt-home-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #fff;
    opacity: .45;
}

.gpt-home-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Persian variant: direction affects content only; Swiper navigation remains predictable. */
.gpt-home-hero--rtl .gpt-home-slide__overlay {
    background: linear-gradient(270deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .22) 48%, rgba(0, 0, 0, .12) 100%);
}

.gpt-home-hero--rtl .gpt-home-slide__inner {
    justify-content: flex-start;
    direction: rtl;
}

.gpt-home-hero--rtl .gpt-home-slide__content {
    margin-left: auto;
    text-align: right;
    direction: rtl;
}

.gpt-home-hero--rtl .gpt-home-slide__title,
.gpt-home-hero--rtl .gpt-home-slide__description,
.gpt-home-hero--rtl .gpt-home-slide__action {
    font-family: "IRANSansX", sans-serif;
}

.gpt-home-hero--rtl .gpt-home-slide__title {
    font-size: clamp(30px, 3.6vw, 52px);
    line-height: 1.35;
    letter-spacing: 0;
}

.gpt-home-hero--rtl .gpt-home-slide__description {
    font-size: clamp(13px, 1.05vw, 14px);
    line-height: 1.9;
}

.gpt-home-hero--rtl .gpt-home-slide__action {
    font-size: 11px;
    letter-spacing: 0;
}

@media (max-width: 991.98px) {

    .gpt-home-slide__inner {
        width: min(100% - 80px, 900px);
    }

    .gpt-home-slide__content {
        width: min(680px, 82vw);
    }

    .gpt-home-swiper .swiper-button-prev { left: 14px; }
    .gpt-home-swiper .swiper-button-next { right: 14px; }
}

@media (max-width: 767.98px) {

    .gpt-home-slide__inner {
        width: calc(100% - 40px);
        justify-content: center;
    }

    .gpt-home-slide__content,
    .gpt-home-hero--rtl .gpt-home-slide__content {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .gpt-home-slide__description {
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }

    .gpt-home-hero--rtl .gpt-home-slide__content,
    .gpt-home-hero--rtl .gpt-home-slide__description {
        text-align: right;
    }

    .gpt-home-swiper .swiper-button-prev,
    .gpt-home-swiper .swiper-button-next {
        width: 38px;
        height: 38px;
        top: auto;
        bottom: 15px;
        margin-top: 0;
    }

    .gpt-home-swiper .swiper-button-prev { left: 16px; }
    .gpt-home-swiper .swiper-button-next { right: 16px; }

    .gpt-home-swiper .swiper-pagination {
        bottom: 26px !important;
    }
}

@media (max-width: 479.98px) {

    .gpt-home-slide__inner {
        width: calc(100% - 32px);
    }

    .gpt-home-slide__title {
        margin-bottom: 16px;
    }

    .gpt-home-slide__description {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gpt-home-slide__title,
    .gpt-home-slide__description,
    .gpt-home-slide__action {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Fit content on short screens and landscape phones without hiding the menu. */
@media (max-height: 600px) {
    .gpt-home-slide__inner { padding-top: 18px; padding-bottom: 52px; }
    .gpt-home-slide__title,
    .gpt-home-hero--rtl .gpt-home-slide__title {
        font-size: clamp(22px, 3vw, 32px);
        line-height: 1.25;
        margin-bottom: 12px;
    }
    .gpt-home-slide__description,
    .gpt-home-hero--rtl .gpt-home-slide__description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    .gpt-home-slide__action { min-height: 36px; padding: 9px 20px; }
}
