.ami-page-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: -90px;
}

.page-hero-overlay {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.80) 47%, 
        rgba(0, 0, 0, 0) 100%);
    position: relative;
    padding: 140px 0 80px;
}

.page-hero-pill-wrapper {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.page-hero-content {
    max-width: 840px;
    width: 70%;
    padding-top: 45px;
}

.page-hero-pill {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 54px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 44px;
    color: #fff !important;
    margin: 20px 0 20px 0;
    font-style: italic;
}

.page-hero-title .highlight {
    color: #D0F45B;
}

.page-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 36px;
    color: #fff;
    margin: 16px 0 32px 0;
}

.page-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.page-hero-button {
    display: inline-block;
    padding: 2px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700!important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-hero-button-green {
    background: #D1ED45;
    color: #000;
    border: 2px solid #D1ED45;
}

.page-hero-button-green:hover {
    background: #bfd838;
    border-color: #bfd838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 237, 69, 0.3);
}

.page-hero-button-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}

.page-hero-button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateY(-2px);
}

.page-hero-scroll {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.page-hero-scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.page-hero-scroll-mouse::before {
    content: '';
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    animation: pageScrollWheel 4s infinite;
}

@keyframes pageScrollWheel {
    0%, 15% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0.8;
        transform: translateY(12px);
    }
    30%, 50% {
        opacity: 1;
        transform: translateY(12px);
    }
    65% {
        opacity: 0.8;
        transform: translateY(0);
    }
    75%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero-scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.5px;
    animation: pageScrollTextFade 4s infinite;
}

@keyframes pageScrollTextFade {
    0%, 28% {
        opacity: 0;
        visibility: hidden;
    }
    30% {
        visibility: visible;
        opacity: 0;
    }
    35%, 48% {
        opacity: 0.9;
    }
    53% {
        opacity: 0;
    }
    55%, 100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 968px) {
    .ami-page-hero {
        min-height: 60vh;
    }
    
    .page-hero-overlay {
        min-height: 60vh;
        padding: 100px 0 70px;
    }
    
    .page-hero-pill-wrapper {
        top: 120px;
    }
    
    .page-hero-pill {
        font-size: 12px;
        line-height: 18px;
        padding: 6px 16px;
    }
    
    .page-hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .page-hero-subtitle {
        font-size: 20px;
        line-height: 30px;
    }
}

@media (max-width: 768px) {
    .ami-page-hero {
        min-height: 60vh;
        margin-top: -70px;
    }
    
    .page-hero-overlay {
        min-height: 60vh;
        padding: 100px 0 60px;
        background: linear-gradient(180deg, 
            rgba(0, 0, 0, 0.9) 0%, 
            rgba(0, 0, 0, 0.75) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .page-hero-container {
        padding: 0 20px;
        text-align: center;
    }
    
    .page-hero-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
        padding-top: 0;
    }
    
    .page-hero-pill-wrapper {
        position: static;
        max-width: 100%;
        margin: 0 0 16px 0;
        padding: 0;
        display: flex;
        justify-content: center;
    }
    
    .page-hero-pill {
        font-size: 11px;
        line-height: 16px;
        padding: 5px 14px;
    }
    
    .page-hero-title {
        font-size: 26px;
        line-height: 34px;
        margin-top: 0;
        margin-bottom: 16px;
    }
    
    .page-hero-subtitle {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 24px;
    }
    
    .page-hero-buttons {
        gap: 12px;
        justify-content: center;
    }
    
    .page-hero-button {
        padding: 6px 24px;
        font-size: 13px;
    }
    
    .page-hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .ami-page-hero {
        margin-top: -60px;
    }
    
    .page-hero-overlay {
        padding: 90px 0 50px;
    }
    
    .page-hero-container {
        padding: 0 15px;
    }
    
    .page-hero-pill-wrapper {
        margin-bottom: 12px;
    }
    
    .page-hero-pill {
        font-size: 10px;
        line-height: 14px;
        padding: 4px 12px;
    }
    
    .page-hero-title {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 14px;
    }
    
    .page-hero-subtitle {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 20px;
    }
    
    .page-hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .page-hero-button {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 12px 20px;
    }
}

.block-editor-block-list__block[data-type="ami-custom/ami-page-hero"] .page-hero-content {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 20px;
}

