/* Header Content */
#header img {
    padding: 0;
}

#header .header-logo {
    margin: 15px 0;
}

#this-logo {
    width: 15%;

}

#this-nhs-logo {
    width: 50%;
}

@media screen and (max-width: 991px) {
    #this-logo {
        width: 20%;
    }

    #this-nhs-logo {
        width: 70%;
    }
}

@media screen and (max-width: 767px) {
    #this-logo {
        width: 28%;
    }

    #this-nhs-logo {
        width: 100%;
    }
}

/* Banner Content */
.banner-wrapper {
    color: white;
    padding: 15px 10px;
    background: linear-gradient(135deg, #425563 0%, #354550 100%);
    border: 0;
    min-height: 120px;
}

@media (prefers-contrast: more) {
    .banner-wrapper {
        border: 2px solid #fff;
        background: #425563;
    }

    .skip-link {
        display: none;
    }

    .skip-link:focus,
    .skip-link:active {
        border: 2px solid #005fcc;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-wrapper {
        background: #425563;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    gap: 2rem;
    min-height: 80px;
    flex-wrap: wrap;
}

/* Left section containing text and logo */
.left-section {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 1rem;
}

/* Text Section */
.text-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    gap: 1rem;
}

.text-section h1 {
    color: #fff !important;
    /*margin-bottom: 1rem;*/
    /*font-size: 2.5rem;*/
    /*!*font-weight: 700;*!*/
    /*line-height: 1.2;*/
    /*letter-spacing: -0.02em;*/
    /*outline: none;*/
}

.text-section h2:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.text-section p {
    color: #fff !important;
    /*font-size: 1.125rem;*/
    /*line-height: 1.5;*/
    /*margin-bottom: 1.5rem;*/
    /*max-width: 600px;*/
}

/* Main Heading */
h1 {
    /*font-size: 3rem;*/
    /*margin: 0;*/
    color: white;
    /*font-family: "Frutiger W01", Arial, sans-serif;*/
}

/* Logo Styling */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* CHuFT Logo */
img[alt="CHuFT - Calderdale and Huddersfield NHS Foundation Trust logo"] {
    width: 150px;
    height: auto;
    /*margin-right: 20px;*/
    /*margin-top: 25px;*/
    filter: brightness(1.1);
    border-radius: 4px;
    outline: none;
}

img[alt="CHuFT - Calderdale and Huddersfield NHS Foundation Trust logo"]:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center;
        min-height: 80px;
        flex-wrap: wrap;
    }

    .left-section {
        order: 1;
        width: 100%;
        flex-direction: column;
        margin: 20px 0;
        gap: 1rem;
        min-width: 0;
    }

    .text-section {
        margin: 20px 0;
        text-align: center;
        min-width: auto;
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .text-section h2 {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
        outline: none;
    }

    .text-section h2:focus {
        outline: 3px solid #ffd700;
        outline-offset: 2px;
    }

    .text-section p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 600px;
    }

    img[alt="CHuFT Logo"],
    img[alt="CHuFT - Calderdale and Huddersfield NHS Foundation Trust logo"] {
        width: 120px;
        height: auto;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
        border-radius: 4px;
        outline: none;
    }

    img[alt="CHuFT Logo"]:focus,
    img[alt="CHuFT - Calderdale and Huddersfield NHS Foundation Trust logo"]:focus {
        outline: 3px solid #ffd700;
        outline-offset: 2px;
    }

    .banner-content > div:last-child {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #csLogo {
        width: 250px;
        height: auto;
        margin: 20px auto 0 auto;
        max-width: 80%;
        display: block;
        border-radius: 8px;
        outline: none;
        object-fit: contain;
    }

    #csLogo:focus {
        outline: 3px solid #ffd700;
        outline-offset: 2px;
    }

    .banner-wrapper a,
    .banner-wrapper button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-wrapper {
        padding: 30px 15px;
        min-height: 100px;
    }

    .text-section h2 {
        font-size: 1.8rem;
    }

    .text-section p {
        font-size: 0.9rem;
    }

    #csLogo {
        width: 200px;
        max-width: 90%;
    }

    img[alt="CHuFT - Calderdale and Huddersfield NHS Foundation Trust logo"] {
        width: 100px;
    }
}

.banner-wrapper a,
.banner-wrapper button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner-content > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media print {
    .banner-wrapper {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000;
    }

    .text-section h2,
    .text-section p {
        color: #000 !important;
    }
}

.thisIconH2 {
    font-size: 2.5rem;
    line-height: 2.3;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    --icon-url: url('/images/THIS-Arrow-Icon.png');

}

.thisIconH2.withIcon:before {
    content: var(--icon-url);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    width: 34px;
    height: 34px;
}

.home-h1 {
    font-family: "Frutiger W01", Arial, sans-serif;
    color: #000;
}

.home-intro {
    margin-top: 1%;
}

.home-intro h1 {
    padding-bottom: 1%;
}

.home-intro p {
    line-height: 1.8;
}

.home-col {
    margin-bottom: 5%;
}

.award-card {
    background-color: #E8EDEE;
    border: 1px solid #e9ecef;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    height: 100%;
    color: #000 !important;
}

.award-card:focus-within {
    box-shadow: 0 0 0 3px #005fcc;
    border: 2px solid #005fcc;
}

.award-icon-container {
    flex-shrink: 0;
}

.award-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.award-content {
    flex: 1;
    min-width: 0;
}

.award-title {
    color: #7C2855;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
    padding-bottom: 1px;
    display: inline-block;
    text-decoration: underline;
}


.award-title-link:focus {
    background-color: #ffb81C;
    color: #212b32;
    text-decoration: underline;
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.award-title-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px;
    margin: -8px;
    color: #553366 !important;
}

.award-description {
    color: #000;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left !important;
    margin: 0;
}

/* Responsive design */
@media (max-width: 767px) {
    .award-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }

    .award-icon-container {
        margin: 0 auto;
    }

    .award-icon {
        width: 60px;
        height: 60px;
    }

    .award-title {
        font-size: 1.2rem;
    }

    .award-description {
        text-align: left;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .award-card {
        padding: 15px;
        align-items: center;
    }

    .award-icon {
        width: 50px;
        height: 50px;
    }

    .award-title {
        font-size: 1.1rem;
    }
}


.admin-header {
    display: flex;
    align-content: flex-start;
    padding: 3%;
}

.table-btn {
    background-color: #000;
    cursor: pointer;
    border-radius: 5px !important;
    padding: 4% 10%;
    text-decoration: none;
    color: #FFF !important;
}

.nominations-table th {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.nominations-table td {
    border-bottom: 1px solid #000;
    padding: 10px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 12px 0;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.breadcrumb .breadcrumb-item {
    color: #000;
    margin-right: 8px;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    display: none !important;
}

.breadcrumb .breadcrumb-item a {
    color: #000;
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: none;
}

.breadcrumb .breadcrumb-item.active {
    color: #000;
    font-weight: 500;
}

.submit-btn {
    display: inline-block !important;
    background-color: #000 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: relative !important;
    text-align: center !important;
    line-height: 1.5 !important;
    vertical-align: top !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 16px !important;
    margin: .5rem 0 2rem 0 !important;
    font-size: 1.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
}

.submit-btn:hover {
    box-shadow: 0 0 0 4px #ffcd60 !important;
    text-decoration: none !important;
    outline: 4px solid transparent !important;
    outline-offset: 4px !important;
    color: #ffffff !important;
}

.submit-btn:focus {
    background-color: #ffb81C;
    color: #212b32;
    text-decoration: underline;
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.pagination .page-link {
    background-color: #000 !important;
    color: #ffffff !important;
    border: 1px solid #000 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    margin: 0 2px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.pagination .page-item.active .page-link {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #ffffff !important;
}

.pagination .page-link:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 4px #ffcd60 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    outline: 4px solid transparent !important;
    outline-offset: 4px !important;
}

.pagination .page-link:focus {
    background-color: #000 !important;
    color: #ffffff !important;
    border-color: #000 !important;
    text-decoration: none !important;
    outline: 3px solid transparent !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px #ffcd60 !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.nominations-table td,
.nominations-table th {
    vertical-align: middle;
}

.guide-head {
    margin-bottom: 2%;
}

.guide-p {
    padding-top: 2%;
    padding-bottom: 2%;
}

/* Footer Content */
body {
    margin-bottom: 0 !important;
}

footer {
    background-color: #231F20;
    color: #fff;
    padding: 40px 0;
    font-size: 16px;
    margin-top: 40px;
    position: relative;
}

footer img {
    max-width: 100%;
    height: auto;
}

footer a {
    color: #FFC947;
    text-decoration: underline;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

footer a:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    background-color: #ffb81C;
    color: #212b32;
    text-decoration: underline;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #005fcc;
}

footer a:hover {
    background-color: rgba(255, 201, 71, 0.2);
    color: #FFC947;
    text-decoration: underline;
}

footer a:visited {
    color: #FFC947;
}

.skip-link-footer {
    position: absolute;
    left: -200px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skip-link-footer:hover,
.skip-link-footer:focus {
    color: #FFFFFF !important;
    left: 16px;
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    background-color: #ffb81C;
}

.internal-link:focus{
    color: #FFFFFF !important;
}

.internal-link:hover{
    color: #FFFFFF !important;
}

#contact-details, #policies, #copyright {
    padding: 40px 0 0;
}

.aboutTHIS #quality-icons {
    margin: 30px auto 0;
}

#quality-icons {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

#quality-icons img {
    max-width: 150px;
    margin: 0.5em 0;
    object-fit: contain;
}

.quality-cert:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    border-radius: 4px;
}

footer #policies span {
    color: #FFC947;
}

footer #policies span:hover {
    color: inherit;
}

#footer-this-logo {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 88px;
}

@media screen and (max-width: 991px) {
    #footer-this-logo {
        max-width: 200px;
        margin-bottom: 20px;
    }
}

#footer-this-logo:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    border-radius: 4px;
}

#social-links a {
    margin: 0 0.25rem;
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
    border-radius: 4px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

#social-links a:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    background-color: #ffb81C;
}

#social-links a:hover {
    background-color: rgba(255, 201, 71, 0.2);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer-nav-list li {
    display: inline-flex;
    align-items: center;
}

.footer-nav-list li::after {
    content: "|";
    margin-left: 1rem;
    color: #FFC947;
    font-size: 16px;
}

.footer-nav-list li:last-child::after {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info h3 {
    margin: 0;
    font-size: 0;
}

.contact-info p {
    margin: 0;
    line-height: 1.5;
    color: #fff !important;

    .contact-info address {
        font-style: normal;
        line-height: 1.5;
        color: #fff !important;
    }

    footer p,
    footer span:not(.sr-only) {
        color: #fff !important;
    }

    footer .contact-info div {
        color: #fff !important;
    }

    .copyright-text {
        color: #fff !important;
        text-align: center;
        margin: 0;
    }

    @media screen and (max-width: 753px) {
        #quality-icons {
            max-width: 300px;
        }

        .footer-nav-list {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
        }

        .footer-nav-list li::after {
            display: none;
        }

        #social-links a {
            margin: 0 0.5rem !important;
        }

        .contact-info {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
        }
    }

    @media screen and (max-width: 991px) {
        #footer-this-logo {
            width: 40%;
            margin-bottom: 20px;
        }
    }

    @media (prefers-contrast: more) {
        footer {
            border: 2px solid #fff;
        }

        footer a {
            border: 1px solid #fff;
        }

        footer a:focus {
            border: 2px solid #005fcc;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        footer a,
        #social-links a,
        .skip-link-footer {
            transition: none;
        }
    }

    @media print {
        footer {
            background: #fff !important;
            color: #000 !important;
            border: 1px solid #000;
        }

        footer a {
            color: #000 !important;
            text-decoration: underline !important;
        }

        .skip-link-footer {
            display: none;
        }

        #social-links {
            display: none;
        }
    }
}