/* ============================================
   Shared Page Hero Styles
   Used by: sustainability, ebooks, careers,
            contact, delivery, terms, privacy
   ============================================ */

.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- Header Image variant ---- */
.page-hero--image {
    background: #1a1a2e;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---- Plain / grey fallback ---- */
.page-hero--plain {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

/* ---- Shared overlay ---- */
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero--plain .page-hero__overlay {
    background: transparent;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ---- Content / heading ---- */
.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero--plain .page-hero__content {
    position: static;
    z-index: auto;
}

.page-hero h1 {
    display: block;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-hero h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #ffc107;
    border-radius: 2px;
    margin: 0.55rem auto 0;
}

.page-hero--plain h1 {
    color: #1a1a2e;
    text-shadow: none;
}


.page-hero .subtitle {
    display: block;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.04em;
    margin: 0.6rem 0 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.page-hero--plain .subtitle {
    color: #444;
    text-shadow: none;
}

/* ---- Slider section (standalone, below hero) ---- */
.page-slider-section {
    padding: 30px 0;
}

.page-slider-section .category-slider-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    overflow: hidden;
}

.page-hero-slider {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}

.page-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.page-hero-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.page-hero-slide img {
    width: 100%;
    display: block;
    min-height: 300px;
    object-fit: cover;
}

.page-hero-slide .page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-slide .page-hero__content p {
    display: block;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    background: none;
    padding: 0;
    margin: 0.4rem 0 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Slider nav buttons */
.page-hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}

.page-hero-btn:hover {
    background: rgba(255, 193, 7, 0.85);
    color: #1a1a1a;
}

.page-hero-btn--prev { left: 1rem; }
.page-hero-btn--next { right: 1rem; }

/* Slider dots */
.page-hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.page-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.page-hero-dot.active {
    background: #ffc107;
    transform: scale(1.3);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-hero {
        min-height: 200px;
    }

    .page-hero-slider,
    .page-hero-slide img {
        min-height: 200px;
    }

    .page-hero h1 {
        padding: 0.75rem 2rem;
    }

    .page-hero-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.25rem;
        padding: 0.625rem 1.5rem;
        letter-spacing: 0.08em;
    }
}
