
/* =========================================
   POULTECH Homepage Banner
   ========================================= */

.pt-hero {
    --pt-orange: #f15a24;
    --pt-duration: 6500ms;

    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: clamp(560px, 43.83vw, 835px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
    background: #222;
    isolation: isolate;
    box-sizing: border-box;
    font-family: inherit;
}

.pt-hero *,
.pt-hero *::before,
.pt-hero *::after {
    box-sizing: border-box;
}

.pt-hero__slides,
.pt-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pt-hero__slide {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1100ms ease,
        visibility 1100ms ease;
}

.pt-hero__slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.pt-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: scale(1);
    transition: transform 7500ms linear;
}

.pt-hero__slide.is-active .pt-hero__image {
    transform: scale(1.055);
}

/* Original-style subtle image overlay */
.pt-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

/* Centered content */
.pt-hero__content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(90%, 1050px);
    margin: 0;
    padding: 0 20px;
    text-align: center;
    color: #fff;
    transform: translate(-50%, -43%);
}

.pt-hero__eyebrow {
    margin: 0 0 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 700ms ease 200ms,
        transform 700ms ease 200ms;
}

.pt-hero__title {
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    color: #fff;
    font-size: clamp(38px, 3.25vw, 64px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -1.2px;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 800ms ease 350ms,
        transform 800ms ease 350ms;
}

.pt-hero__description {
    max-width: 780px;
    margin: 24px auto 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 800ms ease 500ms,
        transform 800ms ease 500ms;
}

.pt-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 157px;
    min-height: 50px;
    margin-top: 42px;
    padding: 13px 32px;
    border: 1px solid var(--pt-orange);
    border-radius: 5px;
    background: var(--pt-orange);
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    text-transform: none;
    box-shadow: none;
    transition:
        background 250ms ease,
        border-color 250ms ease,
        transform 250ms ease;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 800ms ease 650ms,
        transform 800ms ease 650ms,
        background 250ms ease,
        border-color 250ms ease;
}

.pt-hero__button:hover {
    background: #d94b19;
    border-color: #d94b19;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Animate text after slide becomes active */
.pt-hero__slide.is-active .pt-hero__eyebrow,
.pt-hero__slide.is-active .pt-hero__title,
.pt-hero__slide.is-active .pt-hero__description,
.pt-hero__slide.is-active .pt-hero__button {
    opacity: 1;
    transform: translateY(0);
}

/* Square navigation arrows */
.pt-hero__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 250ms ease,
        border-color 250ms ease;
}

.pt-hero__arrow:hover {
    border-color: var(--pt-orange);
    background: var(--pt-orange);
    color: #fff;
}

.pt-hero__arrow span {
    display: block;
    margin-top: -5px;
}

.pt-hero__arrow--prev {
    left: max(5.5%, 24px);
}

.pt-hero__arrow--next {
    right: max(5.5%, 24px);
}

/* Pagination dots */
.pt-hero__pagination {
    position: absolute;
    z-index: 5;
    bottom: 27px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transform: translateX(-50%);
}

.pt-hero__dot {
    display: block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition:
        width 300ms ease,
        background 300ms ease;
}

.pt-hero__dot.is-active {
    width: 30px;
    background: var(--pt-orange);
}

/* Bottom progress bar */
.pt-hero__progress {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.pt-hero__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--pt-orange);
}

.pt-hero__progress.is-running span {
    animation: ptHeroProgress 6500ms linear forwards;
}

@keyframes ptHeroProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Tablet */
@media (max-width: 1024px) {
    .pt-hero {
        height: clamp(560px, 65vw, 700px);
    }

    .pt-hero__title {
        font-size: clamp(40px, 5vw, 56px);
    }

    .pt-hero__description {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .pt-hero {
        height: 620px;
        min-height: 520px;
        max-height: 80vh;
    }

    .pt-hero__image {
        object-position: center center;
    }

    .pt-hero__overlay {
        background: rgba(0, 0, 0, 0.22);
    }

    .pt-hero__content {
        top: 48%;
        width: 94%;
        padding: 0 12px;
    }

    .pt-hero__eyebrow {
        margin-bottom: 17px;
        font-size: 13px;
    }

    .pt-hero__title {
        font-size: clamp(34px, 8vw, 44px);
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .pt-hero__description {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.6;
    }

    .pt-hero__button {
        min-width: 135px;
        min-height: 46px;
        margin-top: 28px;
        padding: 11px 24px;
        font-size: 15px;
    }

    .pt-hero__arrow {
        width: 38px;
        height: 42px;
        font-size: 30px;
    }

    .pt-hero__arrow--prev {
        left: 12px;
    }

    .pt-hero__arrow--next {
        right: 12px;
    }

    .pt-hero__pagination {
        bottom: 19px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .pt-hero *,
    .pt-hero *::before,
    .pt-hero *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
