/* Probash Hub homepage — purpose-first, Bangladesh green brand */

.home-page {
    --home-pad-y: clamp(3rem, 6vw, 5rem);
}

.home-page main {
    overflow-x: clip;
}

/* —— Hero (one composition, brand-first, full-bleed) —— */
.home-page .hero-section {
    position: relative;
    min-height: min(92vh, 720px);
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}

.home-page .hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(115deg, rgba(0, 74, 54, .92) 0%, rgba(0, 106, 78, .78) 42%, rgba(12, 36, 30, .55) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.04);
    animation: heroDrift 22s ease-in-out infinite alternate;
}

.home-page .hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 80%, rgba(232, 163, 23, .18), transparent 55%),
        linear-gradient(to top, rgba(10, 28, 22, .45), transparent 40%);
    pointer-events: none;
}

@keyframes heroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.home-page .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: clamp(4rem, 10vh, 6rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
}

.home-page .hero-copy {
    max-width: 38rem;
    animation: heroCopyIn .75s cubic-bezier(.22, 1, .36, 1);
}

@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-page .hero-brand {
    font-family: var(--pb-font-display);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 .75rem;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.home-page .hero-title {
    font-family: var(--pb-font);
    font-size: clamp(1.2rem, 2.8vw, 1.65rem);
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, .96);
    max-width: 28ch;
}

.home-page .hero-lead {
    font-size: clamp(.95rem, 2.2vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    margin: 0 0 1.75rem;
    max-width: 42ch;
}

.home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

.home-page .hero-btn-primary {
    min-width: 11rem;
    padding: .75rem 1.4rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}

.home-page .hero-btn-secondary {
    border-width: 1.5px;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .06);
}

.home-page .hero-btn-secondary:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

.home-page .hero-scroll-hint {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    opacity: .7;
}

.home-page .hero-scroll-hint span {
    display: block;
    width: 18px;
    height: 28px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 10px;
    position: relative;
}

.home-page .hero-scroll-hint span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    margin-left: -1.5px;
    background: rgba(255, 255, 255, .75);
    border-radius: 2px;
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: .35; transform: translateY(6px); }
}

/* —— Shared section rhythm —— */
.home-section {
    padding: var(--home-pad-y) 0;
}

.home-page .section-head {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.home-page .section-title {
    font-family: var(--pb-font-display);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.home-page .section-subtitle {
    margin-bottom: 0;
    font-size: 1.02rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.bg-surface {
    background: var(--pb-surface);
}

/* —— How it works —— */
.home-how {
    background: linear-gradient(180deg, #fff 0%, var(--pb-mist) 100%);
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.how-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: 1.15rem 1.1rem 1.15rem 1.15rem;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    transition: border-color .25s ease, transform .25s ease;
}

.how-step:hover {
    border-color: rgba(0, 106, 78, .35);
    transform: translateY(-2px);
}

.how-step-num {
    position: absolute;
    top: .85rem;
    right: .95rem;
    font-family: var(--pb-font-display);
    font-size: .8rem;
    font-weight: 700;
    color: var(--pb-gold);
    opacity: .9;
}

.how-step-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 106, 78, .1), rgba(0, 106, 78, .04));
    color: var(--pb-green);
    font-size: 1.25rem;
    margin-bottom: .25rem;
}

.how-step-title {
    font-size: 1.05rem;
    color: var(--pb-ink);
}

.how-step-desc {
    font-size: .88rem;
    color: var(--pb-muted);
    line-height: 1.45;
}

@media (min-width: 768px) {
    .how-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1100px) {
    .how-steps {
        grid-template-columns: repeat(6, 1fr);
        gap: .75rem;
    }

    .how-step {
        text-align: center;
        align-items: center;
        padding: 1.25rem .75rem;
        min-height: 100%;
    }

    .how-step-num {
        position: static;
        margin-bottom: .15rem;
    }

    .how-step::after {
        content: '';
        position: absolute;
        top: 2.6rem;
        right: -0.55rem;
        width: .55rem;
        height: 2px;
        background: linear-gradient(90deg, rgba(0, 106, 78, .35), rgba(232, 163, 23, .5));
        border-radius: 2px;
    }

    .how-step:last-child::after {
        display: none;
    }
}

/* —— Trust —— */
.home-trust {
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.trust-item {
    text-align: center;
    padding: .5rem 1rem;
}

.trust-item i {
    font-size: 1.75rem;
    color: var(--pb-green);
    display: block;
    margin-bottom: .65rem;
}

.trust-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pb-ink);
    margin: 0 0 .35rem;
}

.trust-item p {
    margin: 0;
    font-size: .92rem;
    color: var(--pb-muted);
    line-height: 1.5;
}

.trust-oep {
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* —— Countries —— */
.home-countries {
    background: linear-gradient(180deg, var(--pb-mist) 0%, #fff 100%);
}

.country-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.05rem 1.1rem;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.country-tile:hover {
    border-color: rgba(0, 106, 78, .4);
    transform: translateY(-3px);
    box-shadow: var(--pb-shadow);
    color: inherit;
}

.country-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.country-tile-region {
    font-size: .68rem;
    font-weight: 600;
    color: var(--pb-green);
    background: rgba(0, 106, 78, .08);
    padding: .2rem .45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.country-tile-name {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: var(--pb-ink);
    line-height: 1.3;
}

.country-tile-jobs {
    font-size: .8rem;
    color: var(--pb-muted);
    line-height: 1.45;
    margin: 0 0 .75rem;
    flex-grow: 1;
}

.country-tile-cta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--pb-green);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: auto;
}

.country-tile:hover .country-tile-cta {
    color: var(--pb-green-dark);
}

/* —— Tools —— */
.home-tools {
    background: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: var(--pb-mist);
    border: 1px solid transparent;
    border-radius: var(--pb-radius);
    text-decoration: none;
    color: inherit;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.tool-link:hover {
    background: #fff;
    border-color: rgba(0, 106, 78, .28);
    transform: translateY(-2px);
    color: inherit;
}

.tool-link > i {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--pb-green), var(--pb-green-dark));
    color: #fff;
    font-size: 1.2rem;
}

.tool-link strong {
    display: block;
    font-size: 1rem;
    color: var(--pb-ink);
    margin-bottom: .15rem;
}

.tool-link small {
    display: block;
    font-size: .85rem;
    color: var(--pb-muted);
}

@media (min-width: 576px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tool-link {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.1rem;
        align-items: center;
    }
}

/* —— News —— */
.news-tile {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
}

.news-tile.is-featured {
    border-color: color-mix(in srgb, var(--pb-accent, #0d6efd) 35%, var(--pb-border));
}

.news-tile-media {
    aspect-ratio: 16 / 9;
    background: #eef2f7;
    overflow: hidden;
}

.news-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-tile-body {
    padding: 1.15rem 1.25rem 1.25rem;
    flex: 1;
}

.news-tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .55rem;
}

.news-tile-cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .2rem .45rem;
    border-radius: .25rem;
    color: #fff;
    background: #0d6efd;
}

.news-tile-cat-policy { background: #6f42c1; }
.news-tile-cat-opportunity { background: #198754; }
.news-tile-cat-alert { background: #dc3545; }

.news-tile-featured {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .45rem;
    border-radius: .25rem;
    background: #fff3cd;
    color: #856404;
}

.news-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--pb-ink);
}

.news-tile p {
    margin: 0;
    font-size: .9rem;
    color: var(--pb-muted);
    line-height: 1.55;
}

/* —— Final CTA / office —— */
.home-cta {
    background: linear-gradient(180deg, var(--pb-mist) 0%, #e8f2ee 100%);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-panel {
    background: #fff;
    border-radius: calc(var(--pb-radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--pb-border);
    box-shadow: var(--pb-shadow);
}

.cta-panel-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.cta-panel .col-lg-6:last-child {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cta-eyebrow {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pb-green);
    margin: 0 0 .5rem;
}

.cta-title {
    font-family: var(--pb-font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--pb-ink);
    margin: 0 0 1rem;
}

.cta-address,
.cta-meta {
    margin: 0 0 .4rem;
    color: var(--pb-muted);
    font-size: .95rem;
}

.cta-address .bi,
.cta-meta .bi {
    color: var(--pb-green);
    margin-right: .35rem;
}

/* —— Reveal motion —— */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero-backdrop,
    .home-page .hero-scroll-hint span::after,
    .home-page .hero-copy {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .how-step:hover,
    .country-tile:hover,
    .tool-link:hover {
        transform: none;
    }
}

@media (max-width: 575px) {
    .home-page .hero-section {
        min-height: min(88vh, 640px);
        align-items: flex-end;
    }

    .home-page .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-page .hero-scroll-hint {
        display: none;
    }

    .country-tile-jobs {
        display: none;
    }
}
