:root {
    --home-navy: #123b63;
    --home-blue: #056db6;
    --home-red: #b01302;
    --home-ink: #172033;
    --home-muted: #687286;
    --home-border: #e7ebf1;
}

.homepage {
    background: #fff;
}

.homepage-hero {
    min-height: calc(100vh - 86px);
    margin-top: 86px;
    background-image:
        linear-gradient(rgba(10, 32, 54, 0.16), rgba(10, 32, 54, 0.16)),
        url('../imgs/as.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-products-section {
    padding: 76px 0;
}

.home-featured-section {
    background: #fff;
}

.home-category-section {
    background: #f7f9fc;
    border-top: 1px solid #edf0f4;
}

.home-category-cpap,
.home-category-monitors {
    background: #fff;
}

.home-section-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-section-heading span {
    display: block;
    margin-bottom: 8px;
    color: var(--home-blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section-heading h2 {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: clamp(2rem, 4vw, 3rem);
}

.home-section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--home-muted);
    line-height: 1.75;
}

.home-section-heading-left {
    max-width: 760px;
    margin: 0 0 32px;
    text-align: left;
}

.home-section-heading-left p {
    max-width: 760px;
    margin: 0;
    white-space: normal;
    overflow: visible;
}

.home-category-cpap .home-section-heading-left p {
    max-width: 900px;
    white-space: normal;
    overflow: visible;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-product-card {
    min-width: 0;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: 0.25s ease;
}

.home-product-card:hover {
    border-color: rgba(5, 109, 182, 0.22);
    box-shadow: 0 16px 38px rgba(18, 59, 99, 0.11);
    transform: translateY(-5px);
}

.home-product-image {
    height: 238px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fa;
    text-decoration: none;
    overflow: hidden;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: 0.35s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.04);
}

.home-offer {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 9px;
    background: var(--home-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.home-product-body {
    padding: 18px;
}

.home-product-category {
    display: block;
    margin-bottom: 7px;
    color: var(--home-blue);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-product-body h3 {
    min-height: 48px;
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.45;
}

.home-product-body h3 a {
    color: var(--home-ink);
    text-decoration: none;
}

.home-product-body h3 a:hover {
    color: var(--home-blue);
}

.home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--home-border);
    padding-top: 13px;
}

.home-product-footer strong {
    color: var(--home-red);
    font-size: 1.12rem;
}

.home-view-link {
    color: var(--home-blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.home-view-link i {
    margin-left: 4px;
    transition: 0.2s ease;
}

.home-view-link:hover i {
    transform: translateX(3px);
}

.homepage-banner {
    min-height: 280px;
    background:
        linear-gradient(90deg, rgba(18, 59, 99, 0.88), rgba(18, 59, 99, 0.15)),
        url('../imgs/as.jpeg') center 48% / cover no-repeat;
}

.home-category-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.home-category-action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--home-blue);
    border-radius: 8px;
    padding: 11px 16px;
    color: var(--home-blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.home-category-action a:hover {
    background: var(--home-blue);
    color: #fff;
}

.expert-team-section {
    position: relative;
    padding: 86px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(5, 109, 182, 0.08), transparent 22%),
        linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
}

.team-heading {
    margin-bottom: 42px;
}

.expert-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.expert-team-card {
    border: 1px solid rgba(18, 59, 99, 0.09);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(18, 59, 99, 0.07);
    overflow: hidden;
    transition: 0.25s ease;
}

.expert-team-card:hover {
    box-shadow: 0 20px 45px rgba(18, 59, 99, 0.13);
    transform: translateY(-6px);
}

.expert-team-image {
    height: 270px;
    background: #edf3f8;
    overflow: hidden;
}

.expert-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: 0.35s ease;
}

.expert-team-card:hover .expert-team-image img {
    transform: scale(1.025);
}

.expert-team-body {
    padding: 24px;
}

.expert-team-role {
    display: block;
    margin-bottom: 7px;
    color: var(--home-blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.expert-team-body h3 {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: 1.35rem;
}

.expert-team-body > p {
    min-height: 74px;
    margin: 0 0 18px;
    color: var(--home-muted);
    font-size: 0.87rem;
    line-height: 1.7;
}

.expert-team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}

.expert-team-stats div {
    padding: 14px 4px;
    text-align: center;
}

.expert-team-stats div + div {
    border-left: 1px solid var(--home-border);
}

.expert-team-stats strong,
.expert-team-stats span {
    display: block;
}

.expert-team-stats strong {
    color: var(--home-navy);
    font-size: 1rem;
}

.expert-team-stats span {
    margin-top: 3px;
    color: #929baa;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.expert-team-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.expert-team-actions a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--home-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-blue);
    text-decoration: none;
    transition: 0.2s ease;
}

.expert-team-actions a:hover {
    border-color: var(--home-blue);
    background: var(--home-blue);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .home-product-grid,
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expert-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        min-height: 70vh;
        margin-top: 70px;
        background-position: center;
    }

    .home-products-section {
        padding: 58px 0;
    }

    .home-section-heading-left {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .home-section-heading-left p {
        margin: 0 auto;
    }

    .homepage-banner {
        min-height: 220px;
    }

    .expert-team-section {
        padding: 68px 0;
    }

    .expert-team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .homepage-hero {
        min-height: 60vh;
    }

    .home-products-section {
        padding: 48px 0;
    }

    .home-product-grid,
    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-product-image {
        height: 260px;
    }

    .home-category-action {
        justify-content: center;
    }

    .expert-team-image {
        height: 230px;
    }
}
