/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Euclid Circular B font - @font-face declarations */
@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Light Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Medium Italic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B SemiBold Italic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Euclid Circular B';
    src: url('fonts/Euclid Circular B Bold Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Brand colors from design system */
    --teal-dark: #05405C; /* Dark teal/blue for sections, headings, and descriptive text */
    --teal-medium: #14A085;
    --teal-light: #B2DFDB;
    --background-light: #F8F9FA; /* Light grey section background */
    --background-white: #FFFFFF; /* Pure white */
    --text-dark: #002F46; /* Heading and descriptive text color - rgb(0, 47, 70) */
    --text-light: #FFFFFF; /* White text */
    --green-accent: #5EF078; /* Lime green for buttons, icons, and links */
    --green-accent-dark: #4FD866; /* Hover state - slightly darker */
    --green-accent-light: #6EF285; /* Lighter variant */
    --purple-accent: #AB47BC; /* Softer purple */
    --purple-accent-light: #CE93D8; /* Lighter purple */
    --yellow-accent: #FFD54F; /* Softer yellow */
    --gray-light: #E0E0E0;
    --gray-medium: #757575;
    --focus-outline: #5EF078; /* Focus outline color - lime green */
}

body {
    font-family: 'Euclid Circular B', 'Euclid Circular B Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    font-weight: 300; /* Light weight as default for body text */
}

/* Accessibility: Ensure focus is visible */
*:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #05405C; /* Dark teal/blue */
    color: var(--text-light);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    font-family: 'Euclid Circular B', sans-serif;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-white);
    border-top: 1px solid var(--gray-light);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-accept, .btn-decline, .btn-manage {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-accept {
    background-color: #5EF078; /* Lime green for buttons - rgb(94, 240, 120) */
    color: #002F46; /* Text color on green buttons - rgb(0, 47, 70) */
    min-height: 44px; /* Accessibility: minimum touch target */
    font-family: 'Euclid Circular B', sans-serif;
}

.btn-decline {
    background-color: var(--gray-light);
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    min-height: 44px;
    font-family: 'Euclid Circular B', sans-serif;
}

.btn-manage {
    background-color: transparent;
    color: #002F46; /* Dark teal/blue for links - rgb(0, 47, 70) */
    text-decoration: underline;
    min-height: 44px;
    font-family: 'Euclid Circular B', sans-serif;
}

.btn-accept:hover, .btn-decline:hover {
    opacity: 0.9;
}

.btn-accept:focus, .btn-decline:focus, .btn-manage:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--background-white);
    padding: 40px;
    border-radius: 8px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #002F46; /* Heading text color - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
}

.modal-content p {
    margin-bottom: 15px;
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
}

.cookie-type {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.cookie-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-type-header h3 {
    margin: 0;
    color: #002F46; /* Heading text color - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
}

.toggle-label {
    color: #002F46; /* Dark teal/blue - rgb(0, 47, 70) */
    font-weight: bold;
    font-family: 'Euclid Circular B', sans-serif;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #5EF078; /* Lime green for buttons/icons */
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background-color: #002F46; /* Corporate blue - rgb(0, 47, 70) */
    color: var(--text-light);
    padding: 60px 40px 120px;
    min-height: 100vh; /* Full page height */
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-header {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end; /* Back to website link on the right */
    align-items: center;
    z-index: 10;
}

.hero-header a {
    z-index: 11;
}

/* Back to Patchwork website - hero (mix of half-size + ghost/outline) */
.back-to-website-hero {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Euclid Circular B', sans-serif;
    text-decoration: none;
    color: var(--text-light);
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.back-to-website-hero:hover {
    color: #002F46;
    background-color: #4FD866;
    border-color: #4FD866;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-website-hero:active {
    transform: translateY(0);
}

.back-to-website-hero:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Footer brand link (patchwork.health) */
.footer-brand-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Euclid Circular B', sans-serif;
    transition: color 0.3s;
}

.footer-brand-link:hover {
    color: var(--green-accent);
}

.footer-brand-link:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.hero-logo {
    height: auto;
    width: auto;
    max-width: 400px;
    max-height: 200px;
    margin-bottom: 40px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.icon-btn:hover,
.icon-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.icon-btn:active {
    transform: translateY(0);
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    z-index: 10;
    padding-top: 100px;
    position: relative;
}

.hero-content .hero-logo {
    display: block;
}

/* Hero heading removed - replaced with logo */
.hero-content h1 {
    display: none;
}

.diversity-hero-title {
    display: block !important;
    color: #FFFFFF !important; /* White color for diversity page heading */
    font-size: 36px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
    font-family: 'Euclid Circular B', sans-serif;
}

@media (max-width: 768px) {
    .diversity-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .diversity-hero-title {
        font-size: 24px;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 18px 36px;
    background-color: #5EF078; /* Lime green for buttons - rgb(94, 240, 120) */
    color: #002F46; /* Text color on green buttons - rgb(0, 47, 70) */
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Oval/pill shape - same as "All jobs" button */
    font-size: 18px;
    font-weight: 400; /* Regular weight - not bold */
    font-family: 'Euclid Circular B', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px; /* Minimum touch target size for accessibility */
}

.btn-hero:hover {
    background-color: #4FD866; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero:active {
    transform: translateY(0);
}

.btn-hero:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 3px;
}

/* Smaller hero-style button (same size as Back to Patchwork website in hero) */
.btn-hero-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
}

.hero-graphic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: none; /* Hide the banner image */
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
    animation: none;
}

.scroll-indicator svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Sections */
.section-light {
    background-color: var(--background-light); /* Light grey #F8F9FA */
    padding: 80px 20px;
}

.section-white {
    background-color: #FFFFFF; /* Pure white */
    padding: 80px 20px;
    scroll-margin-top: 0; /* Ensure scroll goes to the very top of the section */
}

/* Reduce gap between welcome section and values section */
#welcome-section {
    padding-bottom: 20px;
}

#values-heading {
    margin-top: 0;
}

section[aria-labelledby="values-heading"] {
    padding-top: 20px;
}

.section-dark {
    background-color: #05405C;
    color: #FFFFFF;
    padding: 80px 20px;
}

.section-light h2, .section-dark h2, .section-white h2 {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400; /* Regular weight for section headings */
    line-height: 1.2;
    font-family: 'Euclid Circular B', sans-serif;
}

.section-dark h2 {
    color: #FFFFFF;
}

.section-light h2, .section-white h2 {
    color: #002F46; /* Heading text color - rgb(0, 47, 70) */
}

.section-light p, .section-white p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    line-height: 1.7;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight for body text */
}

.section-dark p {
    color: #FFFFFF;
    line-height: 1.7;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight for body text */
}

.mission-vision {
    margin-top: 40px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-vision p {
    font-size: 18px;
    font-weight: 300; /* Light weight for descriptions */
}

.mission-vision p strong {
    font-weight: 700; /* Bold for "Our Mission" and "Our Vision" subheadings */
}

/* Values Grid */
.values-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background-color: #002F46; /* Company blue - rgb(0, 47, 70) */
    padding: 30px;
    border-radius: 8px;
}

.value-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 400; /* Regular weight */
}

.value-item p {
    color: #FFFFFF;
    opacity: 0.95;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight for body text */
}

/* Large screens: Show all 5 in one row */
@media (min-width: 1600px) {
    .values-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .values-grid .value-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Medium-large screens: 3 on top, 2 centered below */
/* Use a 6-column grid to perfectly center the bottom 2 items */
@media (min-width: 900px) and (max-width: 1599px) {
    .values-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* First row: 3 items, each spanning 2 columns */
    .values-grid .value-item:nth-child(1) {
        grid-column: 1 / 3; /* Columns 1-2 */
        grid-row: 1;
    }
    
    .values-grid .value-item:nth-child(2) {
        grid-column: 3 / 5; /* Columns 3-4 */
        grid-row: 1;
    }
    
    .values-grid .value-item:nth-child(3) {
        grid-column: 5 / 7; /* Columns 5-6 */
        grid-row: 1;
    }
    
    /* Second row: 2 items centered, each spanning 2 columns */
    .values-grid .value-item:nth-child(4) {
        grid-column: 2 / 4; /* Columns 2-3 (centered) */
        grid-row: 2;
    }
    
    .values-grid .value-item:nth-child(5) {
        grid-column: 4 / 6; /* Columns 4-5 (centered) */
        grid-row: 2;
    }
}

/* Small screens: Responsive auto-fit */
@media (max-width: 899px) {
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .values-grid .value-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Awards Section */
.awards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.award-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Create consistent image container height so text aligns */
.award-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    height: 350px; /* Increased to match reference image size */
    width: auto;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.award-badge p {
    text-align: left;
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    margin-top: 0;
    margin-bottom: 0;
    font-family: 'Euclid Circular B', sans-serif;
}

/* Add space after the first paragraph (introductory line) */
.award-badge p:first-of-type {
    margin-top: 0;
    margin-bottom: 20px; /* Space between first line and rest of text */
}

/* Videos Carousel */
.videos-carousel-container {
    position: relative;
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
}

.videos-carousel {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    padding: 20px 60px;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 20px 0;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 55%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.85);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-slide.active {
    width: 70%;
    opacity: 1;
    transform: scale(1);
    z-index: 5;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.carousel-slide.prev,
.carousel-slide.next {
    opacity: 0.6;
    transform: scale(0.9);
    width: 60%;
}

.team-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #05405C;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    color: #002F46; /* rgb(0, 47, 70) */
    box-shadow: 0 4px 16px rgba(5, 64, 92, 0.3);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background-color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-slide:hover:not(.active) {
    opacity: 0.7;
    transform: scale(0.88);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #05405C;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background-color: rgba(5, 64, 92, 0.3);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: #05405C;
}

.carousel-indicator:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Life at Patchwork */
.life-video {
    margin-top: 40px;
    width: 100%;
}

.life-video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    background-color: #000;
}

.life-video-player:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: var(--background-white);
    padding: 25px;
    border-radius: 8px;
    border: none; /* Removed border lines */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #DCF7DC; /* Light pastel green background - rgb(220, 247, 220) */
    border-radius: 50%;
    border: 2px solid #B4E8B4; /* Slightly darker green border */
}

.benefit-icon i {
    font-size: 36px;
    color: #006446; /* Dark green - rgb(0, 100, 70) */
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #002F46; /* Heading text color - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 400; /* Regular weight */
}

.benefit-item p {
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    font-size: 16px;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight for body text */
}

/* Talent Team */
.talent-team {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    flex: 0 1 auto;
    min-width: 300px;
}

.member-photo-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid #5EF078; /* Lime green for icons/borders */
    overflow: hidden;
    position: relative;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Specifically target Leanne's photo to zoom in and remove white space - only the image, not the border */
.team-member:nth-child(2) .member-photo {
    transform: scale(1.35);
    object-fit: cover;
    object-position: center center;
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #002F46; /* Heading text color - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 400; /* Regular weight */
}

.member-title {
    font-size: 18px;
    color: var(--gray-medium);
    margin-bottom: 5px;
    font-family: 'Euclid Circular B', sans-serif;
}

.member-email {
    font-size: 16px;
    color: #002F46; /* Dark teal for links - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 968px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

.jobs-loading,
.jobs-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-dark);
    font-size: 18px;
}

.jobs-error p {
    margin: 10px 0;
    color: var(--text-dark);
}

.jobs-error a {
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.jobs-error a:hover {
    color: var(--green-accent-dark);
}

.job-card {
    background-color: var(--background-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #E5E8EB;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.job-card:hover,
.job-card:focus {
    background-color: #F0F3F6; /* Light blue-grey background on hover */
    border-color: #D1D9E0; /* Subtle border on hover */
    transform: none; /* Remove transform to match image */
    box-shadow: none; /* Remove shadow to match flat design */
}

.job-card:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.job-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #002F46; /* Dark blue text - rgb(0, 47, 70) */
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 500; /* Medium weight for title */
    text-align: center;
}

.job-card .job-details {
    color: #002F46; /* Dark blue text - rgb(0, 47, 70) */
    font-size: 14px;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight for details */
    margin-bottom: 8px;
    text-align: center;
}

.job-card .work-arrangement {
    color: #002F46; /* Dark blue text - rgb(0, 47, 70) */
    font-size: 14px;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight */
    margin-bottom: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.job-card p {
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    font-size: 14px;
    font-family: 'Euclid Circular B', sans-serif;
    font-weight: 300; /* Light weight for body text */
    text-align: center;
}

.jobs-button-container {
    text-align: center;
    margin-top: 40px;
}

.btn-jobs {
    display: inline-block;
    padding: 15px 40px;
    background-color: #5EF078; /* Lime green for buttons - rgb(94, 240, 120) */
    color: #002F46; /* Text color on green buttons - rgb(0, 47, 70) */
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400; /* Regular weight - not bold */
    font-family: 'Euclid Circular B', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    border: none;
}

.btn-jobs:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.btn-jobs:hover {
    background-color: #4FD866; /* Slightly darker on hover */
    color: #002F46; /* Ensure text color remains visible on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-jobs:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* London Hub */
.london-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.map-container {
    width: 100%;
}

.map-image-location {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.map-embed {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    display: block;
}

.hub-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.address {
    font-size: 18px;
    line-height: 1.8;
}

.address p {
    margin-bottom: 5px;
}

.diversity-button-container {
    margin-top: 40px;
    text-align: center;
}

.btn-diversity {
    display: inline-block;
    padding: 15px 30px;
    background-color: #5EF078; /* Green background - rgb(94, 240, 120) */
    color: #002F46; /* Blue text - rgb(0, 47, 70) */
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Euclid Circular B', sans-serif;
    transition: all 0.3s ease;
    min-height: 48px;
    border: none;
}

.btn-diversity:hover {
    background-color: #4FD866; /* Slightly darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-diversity:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Footer */
.footer {
    background-color: var(--background-white);
    padding: 60px 20px 40px;
    border-top: 1px solid var(--gray-light);
}

.footer-back-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-back-wrapper .btn-hero-sm {
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-nav a {
    color: #002F46; /* Descriptive text color - rgb(0, 47, 70) */
    text-decoration: none;
    font-size: 14px;
    font-family: 'Euclid Circular B', sans-serif;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #5EF078; /* Lime green for links on hover */
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
}

.footer-brand {
    text-align: center;
    margin-bottom: 30px;
}

.footer-brand p {
    font-size: 16px;
    color: #002F46; /* Dark teal/blue - rgb(0, 47, 70) */
    font-weight: bold;
    font-family: 'Euclid Circular B', sans-serif;
}


.footer-referral {
    background-color: #05405C; /* Dark teal/blue */
    color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-referral h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-family: 'Euclid Circular B', sans-serif;
}

.footer-referral p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-family: 'Euclid Circular B', sans-serif;
}

.referral-input {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    gap: 10px;
}

.referral-input input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    min-height: 44px;
}

.referral-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.referral-input input:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
    border-color: var(--green-accent);
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-referral {
    padding: 12px 20px;
    background-color: #5EF078; /* Lime green for buttons - rgb(94, 240, 120) */
    color: #002F46; /* Text color on green buttons - rgb(0, 47, 70) */
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-family: 'Euclid Circular B', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-referral:hover {
    background-color: #4FD866; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-referral:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.referral-profiles {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
}


/* Diversity Page Styles */
.diversity-content {
    max-width: 1600px;
    margin: 0 auto;
    opacity: 1 !important; /* Ensure content is always visible */
    transform: none !important; /* Prevent transform from hiding content */
}

.diversity-content h2 {
    font-size: 48px;
    color: #002F46; /* rgb(0, 47, 70) */
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Euclid Circular B', sans-serif;
}

.diversity-content h3 {
    font-size: 32px;
    color: #002F46; /* rgb(0, 47, 70) */
    margin-top: 50px;
    margin-bottom: 20px;
    font-family: 'Euclid Circular B', sans-serif;
}

.diversity-content p {
    font-size: 18px;
    color: #002F46; /* rgb(0, 47, 70) */
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Euclid Circular B', sans-serif;
}

.diversity-content ul,
.diversity-content ol {
    margin-left: 30px;
    margin-bottom: 30px;
}

.diversity-content li {
    font-size: 18px;
    color: #002F46; /* rgb(0, 47, 70) */
    line-height: 1.8;
    margin-bottom: 15px;
    font-family: 'Euclid Circular B', sans-serif;
}

.diversity-content ol {
    list-style-type: decimal;
}

.diversity-content ol li {
    margin-left: 10px;
}

.diversity-content a {
    color: #002F46;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.diversity-content a:hover {
    color: var(--green-accent-dark);
}

/* Ensure button text remains visible on hover, even inside diversity-content */
.diversity-content .btn-jobs:hover,
.back-button-container .btn-jobs:hover {
    color: #002F46 !important; /* Ensure text color remains visible on hover */
    background-color: #4FD866; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.diversity-content strong {
    color: #002F46; /* rgb(0, 47, 70) */
    font-weight: 600;
}

.diversity-content em {
    font-style: italic;
    color: #002F46; /* rgb(0, 47, 70) */
}

.care-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    list-style: none;
    margin-left: 0;
}

.care-pillars li {
    background-color: #002F46; /* Company blue - rgb(0, 47, 70) */
    color: #FFFFFF; /* White text */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 0;
    cursor: default; /* Make it clear these are not clickable buttons */
}

.care-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #E0E0E0;
}

.care-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.care-section ul {
    margin-top: 20px;
}

.care-section li {
    margin-bottom: 20px;
}

.zero-tolerance-section {
    margin-top: 60px;
    padding: 40px;
    background-color: #F5F5F5;
    border-radius: 8px;
    border-left: 4px solid #05405C;
}

.zero-tolerance-section h3 {
    margin-top: 0;
    color: #002F46; /* rgb(0, 47, 70) */
}

.back-button-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px 80px;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-header {
        padding: 0 20px;
        top: 20px;
    }

    .hero-logo {
        height: auto;
        max-width: 350px;
        max-height: 180px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-graphic {
        display: none; /* Keep banner image hidden on mobile too */
    }

    .btn-hero {
        padding: 16px 28px;
        font-size: 16px;
    }

    .section-light h2, .section-dark h2, .section-white h2 {
        font-size: 36px;
    }

    .videos-carousel {
        padding: 20px 60px;
    }

    .carousel-slide {
        width: 60%;
    }

    .carousel-slide.active {
        width: 75%;
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        width: 65%;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }

    .carousel-indicators {
        margin-top: 15px;
    }

    .london-hub {
        grid-template-columns: 1fr;
    }

    .awards-container {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .diversity-content h2 {
        font-size: 36px;
    }

    .diversity-content h3 {
        font-size: 28px;
    }

    .care-pillars {
        grid-template-columns: 1fr;
    }

    .zero-tolerance-section {
        padding: 25px;
    }

}

@media (max-width: 480px) {
    .videos-carousel {
        padding: 20px 50px;
    }

    .carousel-slide {
        width: 70%;
    }

    .carousel-slide.active {
        width: 85%;
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        width: 75%;
        opacity: 0.3;
        transform: scale(0.85);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 30px 15px 60px;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-header {
        padding: 0 15px;
        top: 15px;
    }

    .hero-logo {
        height: auto;
        max-width: 300px;
        max-height: 150px;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-graphic {
        display: none; /* Keep banner image hidden on mobile too */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        padding: 16px 24px;
    }

    .section-light, .section-dark {
        padding: 60px 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .btn-accept, .btn-decline, .btn-manage {
        width: 100%;
    }
}
