/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Titles */
h2.section-title {
    color: #00274d;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Lead Paragraph */
p.lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #333333;
    line-height: 1.6;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Section Styling */
.about, .team, .stories, .services .banner-container {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.about .section-title,
.team .section-title,
.stories .section-title,
.services .section-title,
.banner-container .section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #00274d;
}

.card {
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*margin-bottom: 20px;*/
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #00274d;
}

.card-body p {
    flex-grow: 1;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}


/* bruce banner */
.banner-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.banner-icons a {
    margin: 0 15px; /* Space between icons */
}

.banner-icons img {
    max-width: 100px; /* Ensure the icons are the same size */
    margin: 0 15px; /* Space between icons */
    height: auto;
}

/* Responsive Design for the banner icons */
/* cv lines */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.timeline-year {
    font-weight: bold;
    color: #00274d;
    display: inline-block;
    width: 100px;
}

.timeline span {
    color: #333333;
}

.timeline li::before {
    content: "\2022"; /* Bullet point */
    color: #00274d;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* header, footer and contact */
footer {
    background-color: #333333;
    color: white;
    padding: 10px 0;
    text-align: center;
    margin-top: 0;
}

footer p.lead {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 10px;
    /*margin-top: 20px;*/
}

header.custom-header {
    background-color: #333333; /* Dark-gray background */
    color: #ffffff; /* White text for contrast */
    padding: 10px 0; /* Vertical padding for desktop */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    max-height: 80px; /* Logo height */
}

.title-contact-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
    flex-grow: 1;
}

.title-contact-block h2 {
    margin: 0;
    font-size: 24px; /* Title font size */
    color: #ffffff;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

.contact-icon {
    width: 32px; /* Icon size */
    height: 32px;
    margin-right: 20px;
}

.navbar {
    background-color: transparent; /* Make navbar background match header */
    padding: 0;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 16px;
}

/* Mailto Link Styling */
a.mailto-link {
    color: #ffcc00; /* High contrast against #333333 background */
    text-decoration: none;
    font-weight: bold;
}

a.mailto-link:hover {
    text-decoration: underline; /* Adds attention-grabbing effect on hover */
    color: #ffd700; /* Optional: a brighter color on hover to make it stand out more */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none; /* Remove default icon background */
    font-size: 2rem;
    color: navy;
}

/* Custom chevrons */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    font-family: 'Flaticon', sans-serif; /* Replace with correct font-family */
    font-weight: 900; /* Ensures boldness */
    font-size: 32px;
    color: navy;
}

.carousel-control-prev-icon::before {
    content: '\f110'; /* Unicode for left chevron */
}

.carousel-control-next-icon::before {
    content: '\f10f'; /* Unicode for right chevron */
}

/* Set consistent card height specifically for carousel items */
.carousel-item .card {
    height: 120px; /* Default for desktop */
}

/* Default: Hide mobile section */
#services-mobile {
    display: none;
}

/* Show desktop section only on larger screens */
@media (min-width: 768px) {
    #services-mobile {
        display: none;
    }

    #services-desktop {
        display: block;
    }
}

/* Show mobile section and hide desktop section on smaller screens */
@media (max-width: 768px) {
    #services-desktop {
        display: none;
    }

    #services-mobile {
        display: block;
    }

    .banner-icons img {
        max-width: 60px; /* Adjust icon size for mobile */
        margin: 8px 8px;
    }

    .carousel .card {
        width: 100%; /* Full width on smaller devices */
        flex-shrink: 0;
        height: auto;
        white-space: normal;
        overflow-y: visible;
        min-height: 200px;
    }

    .carousel .card-body {
        overflow-wrap: break-word; /* Break long words if necessary */
        word-wrap: break-word; /* Support for older browsers */
        word-break: break-word; /* Break long words to prevent overflow */
        white-space: normal; /* Prevent text from overflowing horizontally */
        min-height: 200px;
    }

    .carousel-inner {
        justify-content: center;
        min-height: 200px;
    }

    .carousel-control-prev, .carousel-control-next {
        display: none;
    }

    header.custom-header {
        padding: 6px 0;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .title-contact-block {
        margin: 10px 0;
        align-items: center;
    }

    .navbar {
        padding-top: 10px;
    }

    .services h2, .stories h2 {
        margin-top: 50px;
    }

    .banner-container {
        display: none;
    }

    .container {
        padding: 0 10px;
    }
}


@media (max-width: 400px) {
    .carousel .card {
        width: 100%; /* Full width on smaller devices */
        flex: 1 0 auto;
        flex-shrink: 0;
        white-space: normal;
        overflow-y: visible;
        min-height: 200px;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .carousel .card-body {
        overflow-wrap: break-word; /* Break long words if necessary */
        word-wrap: break-word; /* Support for older browsers */
        word-break: break-word; /* Break long words to prevent overflow */
        white-space: normal; /* Prevent text from overflowing horizontally */
    }

    .carousel-inner {
        justify-content: center;
    }
}

@media screen and (-webkit-device-pixel-ratio: 2) {
    .carousel .card {
        min-height: 200px;
        padding: 10px;
    }
}