.service-icon {
    width: 50px; /* Adjust the width as needed */
    height: auto;
}

/* Sticky footer layout using flexbox */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #2a2d43;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0078D4;
    color: #ffffff;
}

.logo {
    width: auto;
    max-height: 85px;
}

.m365-icon {
    width: 70px; /* Adjust the width as needed */
    height: auto;
}
.blog-image {
    max-width: 160px;
    width: 100%;
    height: auto;
    display: block;
    margin-right: 24px;
    border-radius: 8px;
}

.blog-entry {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.blog-content {
    flex: 1;
    max-width: 700px;
}

.latest-posts {
    background: #f5f7fa;
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.latest-posts h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #0078D4;
    letter-spacing: 0.5px;
}

.latest-posts ul {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
    display: block;
}

.latest-posts ul li {
    margin-bottom: 8px;
}

.latest-posts a {
    color: #2a2d43;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.latest-posts a:hover {
    color: #0078D4;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, background 0.2s;
}
nav a:hover,
nav a:focus {
    color: #005a9e;
    text-decoration: underline;
    background: #e1e4e8;
    border-radius: 4px;
}
nav a[aria-current="page"] {
    color: #ffffff;
    background: #005a9e;
    border-radius: 4px;
    text-decoration: underline;
    font-weight: bolder;
    padding: 2px 8px;
    box-shadow: 0 2px 0 0 #0078D4;
}

main {
    padding: 10px;
    flex: 1;
    /* Add semi-transparent background for readability on About page */
    background-color: rgba(255, 255, 255, 0.8); /* 80% opaque white */
}

/* Unified section base class for consistent spacing */
.page-section {
    margin-top: 20px;
    margin-bottom: 20px;
}


.contact-form,
.bookings-iframe {
    flex: 1; /* Allow sections to grow and shrink */
    min-width: 300px; /* Minimum width before wrapping */
}

.hero {
    text-align: center;
    padding: 50px 20px;
    color: black; /* Ensure text is readable */
    position: relative; /* For pseudo-element positioning */
    overflow: hidden; /* Clip the pseudo-element */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('heroimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5; /* Opacity for the image */
    z-index: -1; /* Place behind the text */
}

.service-highlights {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

/* Consolidated rule */
.service-highlights .service img {
    max-width: 144px;
    max-height: 48px;
    width: 100%;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
    background: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    box-sizing: border-box;
    display: block;
    margin: 0 8px;
}

.service-highlights .service img:hover {
    opacity: 1;
}

.service {
    text-align: center;
    max-width: 200px;
}

.cta-button {
    background-color: #0078D4;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #005a9e;
}

.trust-bar {
    display: flex;
    justify-content: space-around;
    background-color: #e1e4e8;
    padding: 10px 0;
    margin-top: 20px;
}

.testimonials {
    margin-top: 40px;
    text-align: center;
}
/* Style for site title in header */
.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    margin-right: 20px;
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
}
    /* Trust & Recognition section styles */
.trust-recognition {
    background: #f5f7fa;
    padding: 24px 0 16px 0;
    margin: 32px 0 0 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trust-recognition-text {
    font-size: 1.1rem;
    color: #2a2d43;
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-logo {
    max-width: 144px; /* 120px + 20% */
    max-height: 48px; /* 40px + 20% */
    width: 100%;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
    background: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    box-sizing: border-box;
    display: block;
    margin: 0 8px;
}
.trust-logo:hover {
    opacity: 1;
}


footer {
    text-align: center;
    padding: 10px 0;
    background-color: #0078D4;
    color: #ffffff;
    position: static;
    width: 100%;
}

.contact-form, .live-chat {
    margin-top: 40px;
}

.company-info {
    margin-top: 40px;
    width: max-content;
    margin-left: 0; /* Align to the left */
    background-color: transparent; /* Set background to transparent */
}

/* Contact page specific styles */
.contact-page {
    background-image: url('ContactHero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Needed for pseudo-element positioning */
}

.contact-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: -1; /* Place behind the content */
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #0078D4;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #005a9e;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .contact-sections-container {
        flex-direction: column;
        gap: 20px; /* Add some space between stacked sections */
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 10px;
    }
    nav ul {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        width: 100%;
        padding-left: 0;
    }
    .logo {
        width: 80px;
        margin-bottom: 10px;
    }
    .service-highlights {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .service {
        max-width: 100%;
        width: 90vw;
    }
    .service-icon,
    .service-icon.m365-icon,
    .small-icon {
        width: 60px !important;
        max-width: 18vw;
        min-width: 40px;
    }
    .blog-entry {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .blog-image {
        margin-right: 0;
        margin-bottom: 16px;
        max-width: 100%;
        width: 100%;
    }
    .latest-posts {
        padding: 16px 8px;
    }
    .trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    .cta-button,
    .secondary-cta {
        width: 90vw;
        max-width: 350px;
        margin: 10px auto 0 auto;
        display: block;
        font-size: 1em;
    }
    main {
        padding: 10px;
    }
    .our-story {
        flex-direction: column; /* Stack image and text on small screens */
    }
    .aj-image-container {
        float: none; /* Remove float on small screens */
        margin: 0 auto 15px auto; /* Center the image box */
    }
}

.service-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.small-icon {
    width: 100px;
    height: auto;
    vertical-align: middle;
}

/* Consistent image size for service icons */
.service-icon {
    width: 50px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* Contact Page Side-by-Side Layout */
.contact-sections-container {
    display: flex;
    gap: 10px; /* Reduced space between the two sections */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 20px; /* Add some top margin */
    /* Removed container border/padding as sections will have their own */
    margin-left: 0; /* Ensure left alignment */
    align-items: flex-start; /* Align items to the top */
}

.contact-form,
.bookings-iframe {
    flex: 0 1 48%; /* Allow sections to shrink, prefer slightly less than 50% width to account for gap */
    min-width: 300px; /* Minimum width before wrapping */
    border: 1px solid #ddd; /* Add a border to make it a distinct box */
    margin: 0;
    padding: 0;
    padding: 10px; /* Reduced padding inside the box */
    border-radius: 8px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background color */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Style for iframes in Contact Us and Book a Consultation sections */

.contact-form h2,
.bookings-iframe h2 {
    color: #007bff; /* Set heading color to blue */
    margin-top: 0; /* Ensure headings don't push content down */
    margin-bottom: 0;
}
.contact-form iframe,
.bookings-iframe iframe {
    width: 100%; /* Make iframe fill its container */
    height: 600px; /* Set a specific height */
    display: block; /* Ensure it behaves as a block element */
    margin: 0; /* Align the iframe to the left */
}

/* About Page Styles */
.our-story {
    overflow: auto; /* Clear the float */
}

.aj-image-container {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
    width: 200px; /* Set a width for the container */
    float: left; /* Float the container */
    margin: 0 20px 10px 0; /* Adjusted margin */
}

.aj-image {
    border-radius: 5px;
    width: 100%; /* Use 100% of container */
}

.aj-caption {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* About Main Section Styles */
.about-main {
    margin-top: 20px;
}

.about-main h2 {
    color: #0078D4;
    margin-bottom: 15px;
}

.about-main h3 {
    color: #2a2d43;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.about-main ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.about-main ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.about-main p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Blog List Styles */
.blog-list {
    margin-top: 20px;
}

.blog-entry {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.blog-entry img {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
}

.blog-content {
    flex: 1;
}

.blog-content h2 {
    color: #0078D4;
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-summary {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.blog-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-content h4 {
    color: #2a2d43;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.blog-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.blog-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.share-this-post {
    margin-top: 20px;
    font-weight: bold;
    color: #2a2d43;
}

.share-this-post a {
    margin-left: 10px;
    font-size: 1.5em;
    color: #0078D4;
    text-decoration: none;
}

.share-this-post a:hover {
    color: #005a9e;
}

hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 40px 0;
}

/* Sticky CTA Button */
.sticky-cta-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0078D4;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000; /* Ensure it's above other content */
}

.sticky-cta-button:hover {
    background-color: #005a9e;
    transform: translateY(-2px); /* Slight lift effect */
}

/* Responsive adjustments for sticky button */
@media (max-width: 768px) {
    .sticky-cta-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* Service Section Styles */
.service-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-section img {
    margin-bottom: 15px;
}

.service-section h2 {
    color: #0078D4;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-section h3 {
    color: #2a2d43;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: normal;
}

.service-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.context-line {
    font-style: italic;
    color: #555;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Wrapper for service sections to control layout */
.service-wrapper {
    margin-bottom: 20px; /* Space between service boxes */
}

/* Social Icons in Footer */
.social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
}

.social-icons a {
    padding: 10px; /* Increase tap target size */
    display: inline-block; /* Ensure padding is applied */
}

.social-icons a img {
    width: 30px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.social-icons a img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Sticky CTA Button */

/* Sticky CTA Button */
.sticky-cta-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0078D4;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px; /* Pill shape */
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000; /* Ensure it's above other content */
}

.sticky-cta-button:hover {
    background-color: #005a9e; /* Darker blue on hover */
}

/* Responsive adjustments for the sticky button */
@media (max-width: 768px) {
    .sticky-cta-button {
        bottom: 10px; /* Adjust for smaller screens */
        right: 10px; /* Adjust for smaller screens */
        padding: 12px 25px; /* Slightly smaller padding */
        font-size: 1em;
    }
}

.aj-caption {
    font-size: 0.9em;
    font-style: italic;
    text-align: center; /* Center the caption */
}

/* Blog Page Styles */
.share-this-post {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.share-this-post i {
    font-size: 1.5em; /* Increase icon size */
    margin-left: 8px; /* Space between icons */
    color: #0078D4; /* Use theme color */
    transition: color 0.2s;
}
.share-this-post a:hover i {
    color: #005a9e; /* Darker on hover */
}

/* Light blue background for service sections */
.service-section {
    background-color: #e1f1ff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px; /* Rounded edges */
}

/* Icon and title on the same line */
.service-section h2 {
    display: inline-block;
    margin-bottom: 0;
}

/* Byline on the second line */
.service-section h3 {
    margin-top: 5px;
    font-size: 1.1em;
}

/* Context line on the third line */
.context-line {
    font-style: italic;
    margin-top: 10px;
    display: block;
}

/* Social media icons in footer */
.social-icon {
    width: 30px;
    height: auto;
}
/* About Page Specific Background */
.about-page-body {
    position: relative; /* Needed for pseudo-element positioning */
    z-index: 1; /* Ensure content is above the pseudo-element */
}

.about-page-body::before {
    content: "";
    position: fixed; /* Use fixed to cover viewport and stay during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('AboutHero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.95; /* 95% opacity */
    z-index: -1; /* Place behind the content */
}

/* Company Information Section Styles */
.company-info {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.company-info h2 {
    margin-top: 0;
    color: #0078D4;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.company-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.company-info a {
    color: #0078D4;
    text-decoration: none;
}

.company-info a:hover {
    text-decoration: underline;
}
/* Social Icons in Footer */
.social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
}

.social-icons a {
    padding: 10px; /* Increase tap target size */
    display: inline-block; /* Ensure padding is applied */
}

.social-icons a img {
    width: 30px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.social-icons a img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}