/* ==========================================
   PSC New Homepage - Node 432
   ========================================== */

.psc-new-homepage {
    width: 100%;
}

/* Welcome banner */

.psc-home-hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 65, 72, 0.99) 0%,
            rgba(0, 75, 82, 0.98) 30%,
            rgba(0, 82, 90, 0.94) 42%,
            rgba(0, 95, 105, 0.60) 53%,
            rgba(0, 95, 105, 0.10) 68%,
            rgba(0, 95, 105, 0) 78%
        ),
        url('/themes/custom/psc_theme/assets/img/psc-home-banner.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    color: #ffffff;
    padding: 45px max(30px, calc((100vw - 1400px) / 2));
    min-height: 350px;

    display: flex;
    align-items: center;
}

.psc-home-hero-content {
    max-width: 700px;
}

.psc-new-homepage .psc-home-hero h1 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 15px;
}

.psc-home-hero h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 20px 0 12px;
}

.psc-home-hero p {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Heading underline */

.psc-new-homepage .psc-heading-line {
    width: 50px;
    height: 4px;
    background: #00c7b1;
    margin: 8px 0 18px;
}

/* How we can help */

.psc-home-help {
    padding: 25px 0 35px;
    background: #ffffff;
}

.psc-home-help h2,
.psc-home-news h2 {
    color: #092d81;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.psc-help-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.psc-help-card {
    display: block;
    border: 1px solid #c9e3ee;
    border-radius: 8px;
    padding: 22px 15px;
    background: #ffffff;
    text-decoration: none;
    min-height: 160px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.psc-help-card:hover,
.psc-help-card:focus-visible {
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 50, 90, 0.12);
    transform: translateY(-3px);
}

.psc-help-card h3 {
    color: #092d81;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.psc-help-card p {
    color: #143b83;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

/* Latest News */

.psc-home-news {
    background: #e5f5fa;
    padding: 30px 0 45px;
    min-height: 220px;
}

/* Wider homepage content on desktop */

@media (min-width: 1200px) {
    .psc-new-homepage .psc-home-help > .container,
    .psc-new-homepage .psc-home-news > .container {
        max-width: 1450px;
        width: calc(100% - 60px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablet - 3 cards per row */

@media (min-width: 768px) and (max-width: 1199px) {
    .psc-help-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile - 1 card per row */

@media (max-width: 767px) {

    .psc-home-hero {
        padding: 35px 20px;
        min-height: auto;
    }

    .psc-new-homepage .psc-home-hero h1 {
        font-size: 28px;
    }

    .psc-home-hero h2 {
        font-size: 19px;
    }

    .psc-home-hero p {
        font-size: 15px;
    }

    .psc-home-help,
    .psc-home-news {
        padding: 25px 0;
    }

    .psc-home-help h2,
    .psc-home-news h2 {
        font-size: 27px;
    }

    .psc-help-grid {
        grid-template-columns: 1fr;
    }

    .psc-help-card {
        min-height: auto;
    }
}