/* Base Styles */
:root {
    --primary-color: #5be6c7;
    --secondary-color: #152a49;
    --text-color: rgb(37, 37, 37);
    --background-color: rgb(255, 255, 255);
    --accent-color: #1E6193;
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: white;
}

/* Grid System */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    background: none;
}

.col {
    padding: 0 15px;
}

/* Header Styles */
header {
    width: 100%;
    position: relative;
    z-index: 10;
}

#r3894 {
    background-color: #152a49;
    padding: 8px 0;
}

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

.email-container a {
    color: #5be6c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

/* Main Navigation Bar */
#r5000 {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

/* Logo */
.logo-container {
    flex: 0 0 200px;
}

.logo-container img {
    max-width: 160px;
    height: auto;
    display: block;
}

#m4819 {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.navContainer {
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navContainer a {
    color: var(--text-color);
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    font-weight: 400;
    border-bottom: none;
}

.navContainer li.active > a::after {
    display: none;
}

/* Contact Button */
.contact-button {
    flex: 0 0 auto;
}

.button {
    background-color: #152a49;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Hide Skip Link */
.skip-link {
    display: none;
}

/* Typography */
.headline {
    color: var(--accent-color);
    font-size: 46px;
    line-height: 1.2em;
    margin-bottom: 20px;
}

.subtitle {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 32px;
    line-height: 1.2em;
    margin-bottom: 20px;
}

.bodytext {
    font-weight: 300;
    font-size: 18px;
    margin-bottom: 5px;
}

.bodytext a {
    font-weight: 400;
    color: var(--primary-color);
}

.smalltext {
    line-height: 1.6em;
    letter-spacing: 0em;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Navigation */
nav {
    text-align: right;
}

nav > ul li > a {
    font-size: 18px;
    transition: all 0.25s ease-in-out;
    text-transform: uppercase;
    background-color: transparent;
    border-bottom-width: 2px;
    border-color: transparent;
    margin-left: 30px;
    padding: 4px 0 5px;
    border-bottom: 2px solid transparent;
}

nav > ul li.active > a {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

nav > ul li a:hover {
    border-color: var(--primary-color);
}

/* Buttons */
.button {
    border-radius: 3px;
    background-color: var(--secondary-color);
    color: white;
    line-height: 1em;
    margin-bottom: 40px;
    padding: 14px 25px 16px;
}

.button:hover {
    background-color: var(--primary-color);
    color: white;
}

.button2 {
    border-radius: 100px;
    background-color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    line-height: 1em;
    margin-bottom: 40px;
    padding: 19px 30px 20px;
    text-transform: none;
    text-decoration: none;
    color: var(--secondary-color);  /* Ensure consistent text color */
    transition: all 0.3s ease;
    display: inline-block;
}

.button2:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* Grid System */
.row {
    padding: 60px 30px 20px;
    background-color: var(--background-color);
}

.col {
    margin-bottom: 0;
    padding: 0 15px;
}

/* Footer */
.brandfooter {
    color: var(--secondary-color);
    font-size: 14px;
    background-color: rgb(182, 182, 182);
    border-top: 1px solid rgb(87, 87, 87);
    padding: 30px 0;
}

/* Media Queries */
@media only screen and (max-width: 1199px) {
    nav:before {
        color: var(--secondary-color);
        font-size: 24px;
    }
    
    nav > ul li a {
        border-bottom-width: 0;
        margin: 10px 0;
    }
}

@media only screen and (max-width: 767px) {
    .headline {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .row {
        padding: 40px 0;
    }
    
    .col {
        padding-bottom: 20px;
    }
}

/* Add to combined-styles.css */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fixed {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.flexCol {
    display: flex;
    flex-direction: column;
}

.flexWrap {
    flex: 1 1 auto;
}

/* Add to combined-styles.css */
.module {
    position: relative;
}

.module.autospacer {
    flex: 0 0 auto;
    height: 20px;
}

.module.divider {
    width: 14%;
    border-top: 2px solid var(--primary-color);
    margin: 20px auto;
    display: block;
}

.module.text {
    margin-bottom: 30px;
}

.module.image {
    max-width: 100%;
    height: auto;
}

/* Hero Section */
#r4866 {
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    position: relative;
    min-height: 400px;
}

.bgfilter:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero Content */
#r4866 .container-fixed {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

#r4866 .lightheadline {
    color: white;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: none;
    white-space: nowrap;
    text-overflow: clip;
    overflow: visible;
}

/* Hero Button */
#r4866 .button2 {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#r4866 .button2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Top Bar */
#r3894 {
    background-color: #152a49;
    padding: 8px 0;
}

/* Logo */
#m4819 {
    max-width: 200px;
    height: auto;
}

/* Content Images */
.imageModuleWrap {
    display: block;
    overflow: hidden;
}

.imageModuleWrap img {
    width: 100%;
    transition: transform 0.3s ease;
}

/* Background Images */
[style*="background-image"] {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

/* Additional Typography Classes */
.lightheadline {
    color: white;
    font-weight: 700;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.darksmallspottext {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}

.spottext {
    font-weight: 500;
    color: white;
    font-size: 36px;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 5px;
}

/* Language Selector */
.locale {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.locale ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.locale ul li {
    text-align: left;
    background-color: var(--secondary-color);
    padding: 5px 20px 5px 5px;
    margin-bottom: 1px;
}

.locale ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.25s ease-in;
}

.locale ul li a:hover {
    color: var(--primary-color);
}

/* Language Icons */
.localeIcon {
    display: inline-block;
    width: 22px;
    height: 16px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 4px;
    vertical-align: middle;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* SVG specific styles */
.localeIcon svg {
    width: 22px;
    height: 16px;
    display: block;
    margin-top: 1px;
}

/* Flag variants */
.localeIcon.svg-es {
    background-image: url('../icons/es.svg');
}

.localeIcon.svg-gb {
    background-image: url('../icons/gb.svg');
}

.localeIcon.svg-cat {
    background-image: url('../icons/cat.svg');
}

.language-selector a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Header Layout */
#r3894 {
    background-color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#r5000 {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
}

/* Navigation refinements */
nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav > ul > li {
    position: relative;
}

nav > ul > li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

nav > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Contact button in header */
#r5000 .button {
    margin-bottom: 0;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

#r5000 .button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Main Navigation Bar */
#r5000 {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

/* Navigation Menu */
nav.module.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

nav > ul.navContainer {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav > ul li > a {
    color: var(--text-color);
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    margin: 0;
}

nav > ul li.active > a {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

nav > ul li > a:hover {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

/* What We Do Active State */
nav > ul li.active > a[href="index.html"] {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Contact Button */
.button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--primary-color);
}

/* Grid Layout Fixes */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Flexbox Utilities */
.flexCol {
    display: flex;
    flex-direction: column;
}

.flexWrap {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    padding: 10px 0;
    margin-top: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none !important;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* First item in dropdown */
.dropdown-menu li:first-child a {
    border-radius: 4px 4px 0 0;
}

/* Last item in dropdown */
.dropdown-menu li:last-child a {
    border-radius: 0 0 4px 4px;
}

/* Add dropdown indicator */
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid var(--text-color);
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.5;
}

.has-dropdown:hover > a::after {
    transform: none;
}

/* Remove all other navigation border styles */
nav > ul li > a,
nav > ul li.active > a,
.has-dropdown > a,
nav > ul li > a:hover {
    border-bottom: 2px solid transparent;
}

/* Remove any !important declarations */
.navContainer > li > a:hover,
.navContainer > li.active > a {
    border-bottom: 2px solid var(--primary-color);
}

/* Navigation styles cleanup */
.navContainer a {
    border-bottom: none;  /* Remove all borders by default */
}

/* Only show underline for main menu items */
.navContainer > li > a {
    border-bottom: 2px solid transparent;
}

.navContainer > li > a:hover,
.navContainer > li.active > a {
    border-bottom: 2px solid var(--primary-color);
}

/* Remove the ::after underline completely */
.navContainer li.active > a::after {
    display: none;  /* Remove the black underline */
}

/* Dropdown specific styles - no borders */
.dropdown-menu a,
.dropdown-menu a:hover {
    border: none !important;
    border-bottom: none !important;
}

/* Remove any other potential underlines */
.has-dropdown > a,
.has-dropdown > a:hover {
    border-bottom: 2px solid transparent;
}

.has-dropdown.active > a {
    border-bottom: 2px solid var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 60px 0 30px;
}

/* Footer Grid */
footer .container-fixed {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    margin-bottom: 40px;
}

/* Footer Columns */
footer .col {
    flex: 1;
}

/* Footer Headings */
footer .smalltext {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Footer Links */
footer .footertext {
    margin-bottom: 10px;
}

footer .footertext a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

footer .footertext a:hover {
    color: var(--primary-color);
}

/* Footer Logo */
footer .logo-container img {
    max-width: 160px;
    margin-bottom: 20px;
}

/* Digital Kit Logo Section */
#r2617 {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    width: 100%;
}

#r2617 .container-fixed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

#r2617 img {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ensure consistent container width throughout */
.container-fixed,
footer .container-fixed,
#r2617 .container-fixed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Footer icon styles */
footer .footertext {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .footertext i {
    color: var(--secondary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

footer .footertext:hover i {
    color: var(--primary-color);
}

/* Features Section with grey background */
#r4733 {
    background-color: #f8f9fa;
    padding: 40px 0;
}

#r4733 .container-fixed {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

#r4733 .darksmallspottext {
    color: var(--secondary-color);
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 10px;
}

/* Keep the last paragraph centered */
#r4733 p:last-child {
    text-align: center;
}

/* Remove extra spacing from empty paragraphs */
#r4733 .darksmallspottext:empty {
    margin-bottom: 0;
}

/* Adjust spacing for the last bold paragraph */
#r4733 .text-emphasis {
    font-weight: bold;
    font-size: 21px;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 20px;
}

/* Top Bar Styles */
#r3894 {
    background-color: #152a49;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.email-container a {
    color: #5be6c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.language-selector a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.2s ease;
}

.language-selector a:hover {
    color: #5be6c7;
}

.language-selector a.active {
    color: #5be6c7;
}

.language-selector .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Top Bar Content Alignment */
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Email container alignment - new approach */
.email-container {
    position: absolute;
    left: 10px;  /* Adjust this value to match logo position */
}

/* Language selector positioning */
.language-selector {
    margin-left: auto;  /* Push to the right */
}

/* Container width consistency */
.container-fluid,
.container-fixed,
.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Content Section Styles */
.content-section {
    padding: 60px 0;
}

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

.content-section .content-text {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section .description {
    text-align: justify;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
}

/* Center dividers and darksmallspottext */
.content-section .divider {
    margin-left: auto;
    margin-right: auto;
}

.content-section .darksmallspottext {
    text-align: center;
    margin: 20px 0;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .content-section .container-fixed {
        padding: 0 30px;
    }
}

@media screen and (max-width: 768px) {
    .content-section .description {
        text-align: left;
        font-size: 16px;
    }
    
    .content-section .container-fixed {
        padding: 0 20px;
    }
}

/* For mobile responsiveness */
@media screen and (max-width: 991px) {
    .content-section .content-text {
        padding: 20px 0;
    }
    
    .content-section .content-image {
        margin-top: 30px;
    }

    .content-section .content-image img {
        width: 30%;
    }
}

@media screen and (max-width: 767px) {
    .content-section .content-image img {
        width: 40%;
    }
}

/* Add specific spacing for first and last sections */
.content-section:first-of-type {
    padding-top: 60px;
}

.content-section:last-of-type {
    padding-bottom: 60px;
}

.content-section .container-fixed {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Text Content */
.content-text {
    flex: 0 0 60%;
}

.content-text .subtitle {
    color: var(--secondary-color);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.content-text .divider {
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 25px 0;
}

.content-text .description {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* List Styles */
.content-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.content-text ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Image Content */
.content-image {
    flex: 0 0 40%;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Content Section Styles - Automated Delivery specific */
.content-section.automated-delivery .content-image img {
    width: 60%;  /* Slightly smaller than default */
    margin: 0 auto;  /* Center horizontally */
    display: block;
}

/* Ensure the image container is properly aligned */
.content-section.automated-delivery .content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* News Section Styles */
.news-section {
    padding: 60px 0;
    text-align: center;
}

.news-section .section-title {
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
}

.news-section .section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: #e0e0e0;
}

.news-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    flex: 1;
    background-color: var(--secondary-color);
    border-radius: 8px;
    min-height: 250px;
    text-align: center;
    cursor: pointer;  /* Show pointer cursor */
    transition: transform 0.2s ease;  /* Add hover animation */
}

.news-item:hover {
    transform: translateY(-5px);  /* Slight lift effect on hover */
}

/* Make the entire box a link */
.news-item-link {
    text-decoration: none;
    color: var(--primary-color);
    padding: 30px 25px 0;  /* Removed bottom padding to let margin handle spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.news-item-text {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 30px;  /* Increased spacing above image */
    flex: 1;             /* Allow text to take available space */
    display: flex;
    align-items: center;
}

.news-item:hover .news-item-text {
    opacity: 0.8;
}

/* News Item Image Styles - Updated with larger margin */
.news-item .news-image {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: auto;
    margin-bottom: 40px;  /* Increased from 20px to 40px */
}

/* Streamline Orders Section */
.streamline-section {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
}

.streamline-section .container-fixed {
    max-width: 1200px;
    margin: 0 auto;
}

.streamline-section h2 {
    color: whitesmoke;
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* Specific padding for mobile app section */
.content-section.mobile-app {
    padding: 15px 0;  /* Reduced from 30px to 15px */
    margin-top: 50px;
}

/* Adjust internal spacing if needed */
.content-section.mobile-app .container-fixed {
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    /* Content Sections */
    .content-section .container-fixed {
        flex-direction: column;
        gap: 30px;
    }

    .content-text, .content-image {
        flex: 0 0 100%;
        width: 100%;
    }

    /* News Grid */
    .news-grid {
        flex-direction: column;
        gap: 20px;
    }

    .news-item {
        width: 100%;
    }

    /* Navigation */
    .nav {
        display: none; /* You'll need to implement a mobile menu */
    }

    .header-content {
        justify-content: space-between;
    }

    /* Hero Section */
    #r4866 .lightheadline {
        font-size: 32px;
        white-space: normal;
    }
}

@media screen and (max-width: 768px) {
    /* Header */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .email-container {
        position: static;
        margin-bottom: 5px;
    }

    /* Footer */
    footer .container-fixed {
        flex-direction: column;
        text-align: center;
    }

    footer .footertext {
        justify-content: center;
    }

    /* Spacing Adjustments */
    .content-section {
        padding: 30px 0;
    }

    .news-section {
        padding: 40px 0;
    }

    /* Typography */
    .content-text .subtitle {
        font-size: 24px;
        text-align: center;
    }

    .content-text .divider {
        margin: 20px auto;
    }

    .content-text .description {
        text-align: center;
    }

    /* List Items */
    .content-text ul {
        max-width: 300px;
        margin: 20px auto;
    }

    /* Images */
    .content-section.automated-delivery .content-image img {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    /* Further reduce sizes for very small screens */
    #r4866 .lightheadline {
        font-size: 28px;
    }

    .news-item-text {
        font-size: 16px;
    }

    .streamline-section h2 {
        font-size: 28px;
    }

    /* Adjust padding */
    .news-item-link {
        padding: 20px 15px 0;
    }

    .news-item .news-image {
        max-width: 240px;
        height: 150px;
    }
}

/* Page Hero Styles */
.page-hero {
    background-color: var(--secondary-color);
    padding: 15px 0;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.page .features-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* Mobile Application Page Specific Styles */
.page.mobile-application .content-section {
    padding: 40px 0 0;
}

.page.mobile-application .content-section .container-fixed {
    display: flex;
    align-items: center;
    gap: 60px;
}

.page.mobile-application .content-text {
    flex: 0 0 50%;
}

.page.mobile-application .content-image {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page.mobile-application .mobile-app-image {
    max-width: 55%;
    display: block;
    margin: 0 auto 0 40px;
}

.page.mobile-application .button2 {
    display: inline-block;
    border-radius: 100px;
    background-color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    line-height: 1em;
    margin: 30px 0;
    padding: 19px 30px 20px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.page.mobile-application .button2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Mobile Application Hero Section */
.page.mobile-application .page-hero {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
    color: white;
}

.page.mobile-application .page-hero h1 {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* Mobile Application CTA Section */
.page.mobile-application .streamline-section {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.page.mobile-application .streamline-section h2 {
    color: white;
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* Mobile Application Responsive Styles */
@media screen and (max-width: 991px) {
    .page.mobile-application .content-section .container-fixed {
        flex-direction: column;
        gap: 30px;
    }

    .page.mobile-application .content-text,
    .page.mobile-application .content-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .page.mobile-application .mobile-app-image {
        max-width: 60%;
        margin: 0 auto;
    }

    .page.mobile-application .content-text {
        text-align: center;
    }
}

@media screen and (max-width: 767px) {
    .page.mobile-application .mobile-app-image {
        max-width: 70%;
    }

    .page.mobile-application .page-hero h1,
    .page.mobile-application .streamline-section h2 {
        font-size: 28px;
    }

    .page.mobile-application .content-section {
        padding: 30px 0 0;
    }
}


@media screen and (max-width: 480px) {
    .page.mobile-application .content-section .container-fixed {
        gap: 10px;  /* Reduce gap between text and image */
    }

    .page.mobile-application .content-text {
        margin-bottom: -20px;  /* Pull the image up by creating negative space */
    }

    .page.mobile-application .mobile-app-image {
        max-width: 80%;
        margin-left: 0px;
    }

    .page.mobile-application .streamline-section {
        margin-top: 20px;  /* Reduce margin-top from 60px to 20px */
    }

    .page.mobile-application .button2 {
        display: inline-block;
    }
}

/* Component Loading States */
.component-loading {
    min-height: 100px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.component-loaded {
    opacity: 1;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    min-height: 100px;
}

/* Page Content Styles */
.page .content-section {
    padding: 60px 0;
}

/* Content Image Styles */
.content-section .content-image {
    width: 100%;
    margin: 0 auto;
}

.content-section .content-image img {
    width: 100%;
    height: auto;
}

/* Automated Delivery Page Specific Styles */
.page.automated-delivery .content-section .content-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -30px auto 0;
}

.page.automated-delivery .content-section .content-image img {
    width: 55%;
    height: auto;
    display: block;
    margin: 0 auto;  /* Ensure image is centered */
    max-width: 55%;  /* Add max-width to maintain consistency */
}

/* Responsive styles for automated-delivery page */
@media screen and (max-width: 991px) {
    .page.automated-delivery .content-section .content-image {
        width: 100%;
        padding: 0;
    }

    .page.automated-delivery .content-section .content-image img {
        width: 80%;
        max-width: 80%;  /* Add max-width for tablets */
        margin: 0 auto;  /* Ensure centering on tablets */
    }
}

@media screen and (max-width: 767px) {
    .page.automated-delivery .content-section .content-image img {
        width: 90%;
        max-width: 90%;  /* Add max-width for mobile */
        margin: 0 auto;  /* Ensure centering on mobile */
    }
}

/* Automated Delivery Page Specific Styles */
.page.automated-delivery .button2 {
    display: inline-block;
    border-radius: 100px;
    background-color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    line-height: 1em;
    margin: 30px 0;
    padding: 19px 30px 20px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.page.automated-delivery .button2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Business Management Page Specific Styles */
.page.business-management .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    padding: 0 20px;
}

.page.business-management .feature-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.page.business-management .feature-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.page.business-management .feature-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 20px;
}

.page.business-management .feature-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page.business-management .feature-content .subtitle {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
}

.page.business-management .feature-content .divider {
    width: 60px;
    margin: 0 auto 20px;
}

.page.business-management .feature-content p {
    margin-bottom: 20px;
    text-align: center;
}

.page.business-management .feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page.business-management .feature-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.page.business-management .feature-content ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 20px;
}

.page.business-management .button2 {
    align-self: center;
    margin-top: auto;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .page.business-management .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .page.business-management .features-grid {
        grid-template-columns: 1fr;
    }
    
    .page.business-management .feature-content {
        padding: 20px;
    }
    
    .page.business-management .feature-image {
        height: 260px;
    }
}

/* Add styles for the contact button container */
.page.business-management .contact-button-container {
    text-align: center;
    margin-top: 40px;
}

.page.business-management .contact-button-container .button2 {
    display: inline-block;
    margin: 0;
    color: var(--secondary-color);  /* Explicitly set color for button in container */
}

.page.business-management .contact-button-container .button2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Update contact button section styles */
.page.business-management .contact-section {
    text-align: center;
    padding: 0 0;
}

.page.business-management .contact-section .button2 {
    display: inline-block;
    text-decoration: none;
    border-radius: 100px;
    background-color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    line-height: 1em;
    padding: 19px 30px 20px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.page.business-management .contact-section .button2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Business page specific styles */
.page.business .business-types-image,
.page.business .about-image {
    width: 70%;
    height: auto;
    display: block;  /* Add this */
    margin: 0 auto;  /* Add this */
}

@media screen and (max-width: 991px) {
    .page.business .business-types-image,
    .page.business .about-image {
        width: 70%;
        margin: 0 auto;  /* Add this */
    }

    /* Add container centering */
    .page.business .content-image {
        display: flex;          /* Add this */
        justify-content: center; /* Add this */
        width: 100%;            /* Add this */
        padding: 0 20px;        /* Add this */
    }
}

@media screen and (max-width: 767px) {
    .page.business .business-types-image,
    .page.business .about-image {
        width: 100%;  /* Change to 100% for full width on mobile */
        padding: 0;   /* Remove padding */
        margin: 0 auto;
    }
}

/* Button Container */
.button-container {
    margin-top: 30px;
}

.button-container .button2 {
    margin-bottom: 0;
    color: var(--secondary-color);  /* Explicitly set color for button in container */
}

.button-container .button2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Grey Section Background */
.grey-section {
    background-color: #f5f5f5;  /* Even darker shade of grey */
    padding: 60px 0;
}

.grey-section .darksmallspottext {
    max-width: 900px;
    margin: 0 auto;
}

/* Links in darksmallspottext */
.darksmallspottext a {
    text-decoration: none;
    color: var(--primary-color);
}

.darksmallspottext a:hover {
    color: var(--primary-color);
}

/* Contact Form Styles */
.form-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form {
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-group.half {
    width: 50%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.form-group.checkbox label {
    font-size: 14px;
    line-height: 1.4;
}

.form-group.checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
}

.contact-info-section {
    padding: 60px 0;
}

.info-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.info-item {
    text-align: center;
    padding: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-item h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }

    .form-container {
        padding: 20px;
    }

    .info-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Hero Section with Background */
.page-hero.bgfilter {
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    position: relative;
    min-height: 400px;
}

.page-hero.bgfilter:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-hero.bgfilter .container-fixed {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.page-hero.bgfilter .lightheadline {
    color: white;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .page-hero.bgfilter {
        padding: 80px 0 40px;
        min-height: 300px;
    }

    .page-hero.bgfilter .lightheadline {
        font-size: 32px;
    }
}

/* Contact Column Styles */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item i {
    color: #1a1a1a;
    width: 24px;
    font-size: 1.25rem;
}

.contact-item:hover {
    color: #007bff;
}

.contact-item:hover i {
    color: #007bff;
}

/* Footer Column Styles */
footer .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer h3 {
    margin-bottom: 0.5rem;
}

/* Footer Text Styles */
footer h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

footer .footertext {
    margin-bottom: 0.5rem;
}

footer .footertext a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

footer .footertext a:hover {
    color: var(--primary-color);
}

footer .footertext i {
    width: 20px;
    color: inherit;
}

/* Remove previous contact styles */
.contact-links,
.contact-item {
    display: none;
}

/* Footer Logo Styles */
footer .col img.module.image {
    max-width: 80%;  /* Reduced from 100% to 80% */
    height: auto;
}

/* reCAPTCHA Styles */
#g-recaptcha-response {
    display: block !important;
    position: absolute;
    margin: -50px 0 0 0 !important;
    z-index: -999999;
    opacity: 0;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Add dropdown styles */
.nav-item {
    position: relative;
}

.nav-item > a {
    color: var(--text-color);
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    font-weight: 400;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--text-color);
    padding: 8px 16px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Logo */
#m4819 {
    max-width: 200px;
    height: auto;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.logo-container {
    transform: translateZ(0);
    will-change: transform;
}

/* Update container padding for mobile */
@media screen and (max-width: 991px) {
    .container-fixed,
    .container-fluid {
        padding-left: 25px;  /* Increased from 15px */
        padding-right: 25px; /* Increased from 15px */
    }

    /* Ensure header content maintains proper spacing */
    .header-content {
        padding-left: 25px;
        padding-right: 25px;
    }

    /* Content sections padding */
    .content-section .container-fixed {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Additional padding adjustments for smaller screens */
@media screen and (max-width: 767px) {
    .container-fixed,
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Adjust row padding */
    .row {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* News section adjustments */
    .news-section .container-fixed {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Features section adjustments */
    .features-section .container-fixed {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Ensure content doesn't touch screen edges on very small devices */
@media screen and (max-width: 480px) {
    .container-fixed,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust hero section content */
    #r4866 .container-fixed {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure form elements don't touch edges */
    .form-container {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Update top bar email container positioning */
@media screen and (max-width: 991px) {
    .email-container {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Ensure proper spacing for footer content */
@media screen and (max-width: 991px) {
    footer .container-fixed {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Update mobile padding for hero and features sections */
@media screen and (max-width: 991px) {
    /* Previous mobile padding rules remain... */

    /* Hero section padding */
    #r4866 .container-fixed {
        padding-left: 25px;
        padding-right: 25px;
    }

    /* Features section text padding */
    #r4733 .container-fixed {
        padding-left: 25px;
        padding-right: 25px;
    }

    /* Ensure hero content is properly aligned */
    .hero-content {
        padding-left: 25px;
        padding-right: 25px;
    }

    /* Adjust text content padding */
    .darksmallspottext {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media screen and (max-width: 767px) {
    /* Previous mobile padding rules remain... */

    /* Adjust padding for smaller screens */
    #r4866 .container-fixed,
    #r4733 .container-fixed,
    .hero-content,
    .darksmallspottext {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 480px) {
    /* Previous mobile padding rules remain... */

    /* Further reduce padding for very small screens */
    #r4866 .container-fixed,
    #r4733 .container-fixed,
    .hero-content,
    .darksmallspottext {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Remove padding for desktop version */
@media screen and (min-width: 992px) {
    #r4866 .container-fixed,
    #r4733 .container-fixed,
    .hero-content,
    .darksmallspottext {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix potential overflow issues in containers */
@media screen and (max-width: 991px) {
    /* Reset row padding that might cause overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Ensure containers don't overflow */
    .container-fixed,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Fix potential image overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure hero section doesn't overflow */
    #r4866 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix container width calculations */
    .container-fixed,
    .container-fluid,
    #r4733 .container-fixed,
    #r4866 .container-fixed {
        width: auto;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Reset any negative margins */
    .col {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Contact page text container fixes */
@media screen and (max-width: 991px) {
    /* Remove negative margin that causes scrolling */
    #c7199 {
        margin-bottom: 0 !important;  /* Override inline style */
    }

    /* Ensure text container is properly sized */
    #m3300.module.text {
        height: auto;
        overflow: visible;
        margin-bottom: 30px;
    }

    /* Adjust text spacing */
    .bodytext {
        margin-bottom: 15px;
        padding-left: 25px;
        padding-right: 25px;
    }

    /* Center align dividers */
    #m3300 .divider {
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensure container doesn't create scroll */
    #r4733 .container-fixed {
        overflow: visible;
        height: auto;
    }

    /* Remove any fixed heights */
    #r4733,
    #r4733c,
    #c7199,
    #m3300 {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* Additional adjustments for smaller screens */
@media screen and (max-width: 767px) {
    .bodytext {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .bodytext {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Adjust contact form spacing for mobile */
@media screen and (max-width: 991px) {
    /* Further reduce space between text and form */
    #m3300.module.text {
        margin-bottom: 0;  /* Reduced from 20px to 0 */
    }

    /* Adjust form container padding and margins */
    .form-container {
        padding: 30px 25px 35px;  /* Added more bottom padding */
        margin-bottom: 10px;      /* Add space below the form container */
    }

    /* Add space between form title and content */
    .form-container .subtitle {
        margin-bottom: 25px;
    }

    /* Adjust button container spacing */
    .button-container {
        margin-top: 30px;
        margin-bottom: 10px;  /* Small margin at bottom */
    }

    /* Adjust form section spacing */
    .form-section {
        padding-top: 10px;  /* Reduced from 20px to 10px */
    }
}

/* Further adjustments for smaller screens */
@media screen and (max-width: 767px) {
    .form-container {
        padding: 25px 20px 30px;  /* Maintain bottom padding */
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .form-container {
        padding: 20px 15px 25px;  /* Maintain bottom padding */
    }
}

/* Automated Delivery Page Specific Styles */
@media screen and (max-width: 767px) {
    .page.automated-delivery .content-text {
        text-align: center;  /* Center all text content */
    }
    
    .page.automated-delivery .button-container {
        width: 100%;        /* Full width container */
        text-align: center; /* Center the content */
    }

    .page.automated-delivery .button2 {
        display: inline-block;
        float: none;        /* Remove any floating */
        margin: 30px auto;  /* Center with auto margins */
    }

    .page.automated-delivery .content-section .content-image img {
        width: 70%;          /* Reduce image width to 80% */
        margin: 0 auto;      /* Center the image */
        display: block;      /* Ensure proper margin centering */
    }
}

/* Hero Section Mobile Styles */
@media screen and (max-width: 767px) {
    #r4866 .container-fixed {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 20px;  /* Add some padding on the sides */
    }

    #r4866 .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #r4866 .lightheadline {
        font-size: 32px;  /* Slightly smaller font for mobile */
        text-align: center;
        margin-bottom: 25px;
        max-width: 100%;  /* Allow text to take full width */
        white-space: normal;  /* Allow text to wrap */
    }

    #r4866 .button2 {
        display: inline-block;
        margin: 0 auto;  /* Center the button */
    }
}

/* Business page responsive styles */
@media screen and (max-width: 767px) {
    .page.business .content-section {
        padding: 20px 10px 20px 10px;
    }
    
    .page.business .business-types {
        padding: 20px 10px 0px 10px;
    }

    /* Add spacing controls for business types section */
    .page.business .business-types .content-text {
        margin-bottom: 0;  /* Remove bottom margin from text container */
    }

    .page.business .business-types .bodytext:last-child {
        margin-bottom: 0px;  /* Reduce margin after last paragraph */
    }

    .page.business .business-types .content-image {
        margin-top: -20px;  /* Pull image up closer to text */
    }

    /* Center the contact button */
    .page.business .button-container {
        text-align: center;
        width: 100%;
        margin-bottom: -20px;
    }

    .page.business .button-container .button2 {
        display: inline-block;
        float: none;
    }

    /* Add margin to last image */
    .page.business .about .content-image {
        margin-bottom: 40px;  /* Add space after the last image */
    }
}



/* Kit Digital styles - desktop and mobile */
.kit-digital-section {
    width: 100%;
    margin-top: 20px;  /* Maintain the original spacing */
    background-color: var(--background-color);
}

.kit-digital-wrapper {
    width: 100%;
}

.kit-digital-logo {
    width: 100%;
    height: auto;
}

/* Mobile-specific styles */
@media screen and (max-width: 767px) {
    .kit-digital-section {
        width: 100%;
        padding: 0;
        margin-top: 20px;
    }

    .kit-digital-section .container-fixed {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .kit-digital-wrapper {
        width: 100%;
        padding: 0;
    }

    /* Override imageModuleWrap styles for kit-digital section */
    .kit-digital-section .imageModuleWrap {
        display: block;
        overflow: visible;  /* Changed from hidden */
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .kit-digital-section .imageModuleWrap img {
        width: 100vw;  /* Use viewport width */
        max-width: none;  /* Remove max-width constraint */
    }
}