.case_study {
    font-family: "Roboto", Sans-serif;
}

.container {
    max-width: 1150px;
}

.case-study-header, .service-header {
    display: flex;
    height: 90vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 110%;
    background-position: 50%;
    justify-content: center;
    flex-direction: column;
}

.case-study-header h1, 
.case-study-header h4,
.service-header h1,
.service-header h4 {
    color: #fff;
}

.case-study-header h1,
.service-header h1 {
    font-size: 3rem;
}

.case-study-header h4,
.service-header h4 {
    margin-top: 30px;
    font-size: 1.25rem;
}

.project-overview,
.service-overview {
    position: relative;
    background-color: #F5F5F5;
    padding-top: 50px;
    margin-bottom: 50px;
}

.project-overview h2 {
    font-size: 50px;
}

.project-overview h2.sidebar-title {
    bottom: 250px;
}

.project-overview-content {
    display: flex;
    background-color: #fff;
    border: 1px solid #ddd; /* outer border around the whole group */
}

.project-overview-content .col-4 {
    flex: 1;
    padding: 25px;
    border-right: 1px solid #ddd; /* divider between boxes */
}

.project-overview-content .col-4:last-child {
    border-right: none; /* remove divider after the last box */
}

.project-overview-content h4 {
    font-weight: 600;
    font-size: 18px;
}

.service-overview-content {
    position: relative;
    top: -130px;
}

.service-overview-content .content-box {
    text-align: center;
}

.service-overview-content .content-box h2 {
    margin-bottom: 35px;
}

.service-lines p {
    margin-bottom: 1px;
}

.service-lines p a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding-left: 15px;
}
.service-lines p a:hover {
    color: #A40A0A;
}

.service-lines p a:after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #A40A0A;
}

.line-drawing {
    height: 50vh;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}

.challenge, .outcome {
    position: relative;
    margin: 50px 0;
}

.challenge img, .outcome img {
    width: 100%;
}

.challenge h2.sidebar-title {
    top: 120px;
}

.outcome h2.sidebar-title {
    top: 100px;
}

.overlap-box {
    background-color: #F5F5F5;
    width: 120%;
    margin-top: 30px;
    padding: 25px;
}

.overlap-box.right{
    position: relative;
    right: 20%;
}

.overlap-box h2 {
    font-size: 50px;
    font-weight: 600;
}

.overlap-box p {
    color: #333;
}

.client-outcomes {
    position: relative;
    background-image:url('../assets/case-studies/ThreeSixty-Background-CS-MODDogSectionOutcomes.webp');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 75px 0;
}

.client-outcomes .content-box {
    padding-left: 50px;
    padding-right: 50px;
}

.client-outcomes .content-box img {
    margin-bottom: 20px;
}

.client-outcomes h2 {
    color: #fff;
    font-size: 50px;
    margin-bottom: 25px;
}

.client-outcomes h2.sidebar-title {
    top: 220px;
}

.client-outcomes h4 {
    font-weight: 600;
}

.client-outcomes .dashicons {
    color: #A40A0A;
    font-size: 50px;
    height: 70px;
}

.project-gallery {
    position: relative;
    margin: 50px 0;
    margin-bottom: 100px;
}

.project-gallery img {
    width: 100%;
    height: 500px; /* adjust to taste, or vary per row */
    object-fit: cover;
    display: block;
}

.project-gallery h2.sidebar-title {
    top: 150px;
}

.related-case-studies {
    position: relative;
    margin: 100px 0;
}

.related-case-studies h2 {
    margin-bottom: 25px;
}

.related-case-studies h2.sidebar-title {
    top: 150px;
}

/* Cards */

.case-study-card {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
}

.case-study-card a {
    position: absolute;
    width: 100%;
    border-top: 1px solid #fff;
    bottom: 0;
    color: #fff;
    padding: 20px;
    text-decoration: none;
}

.case-study-card a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100px;
    height: 100%;
    width: 1px;
    background-color: #fff;
}

.case-study-card a::after {
    content: "";
    position: absolute;
    top: 37.5%;    /* (100% - 25%) / 2, centres it vertically */
    right: 40px;
    height: 25%;
    width: 20px;
    background-color: #fff;
    clip-path: polygon(0% 0%, 20% 0%, 100% 50%, 20% 100%, 0% 100%, 80% 50%);
    transition: background-color 0.2s ease;
}

.case-study-card a:hover::after {
    background-color: #A40A0A; /* colour on hover */
}


.case-study-card a .title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.case-study-card a .sector {
   margin-bottom: 5px;
}

/* Archive page styles */

.archive-case-studies, .archive-service {
    position: relative;
    padding-top: 150px;
    background-color: #F5F5F5;
}

.archive-case-studies h2.sidebar-title {
    top: 350px;
}

.archive-filters {
    padding-bottom: 30px;
}

.archive-items {
    margin: 25px 0;
}

.service-card {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    margin-bottom: 25px;
}

.service-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #fff; /* adjust to suit your background image */
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.2s ease;
}

.service-card a:hover {
    background: rgba(0,0,0,0.5);
    color: #A40A0A;
}