/* Center align logo, main text, and menu on larger screens */
.header {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Raleway', sans-serif;
    position: relative;
    z-index: 1000; /* Ensure header stays above other content */
    text-align: center;
    gap: 20px;
    min-height: 80px; /* Prevent collapse on iOS Chrome */
    flex-wrap: wrap; /* Ensures elements wrap properly */
}

.header img {
    height: 50px;
    width: auto;
    transform: scale(3.0);
    padding-top: 10px;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: 'Raleway', sans-serif;
    position: relative;
    z-index: 10;
}

.menu a {
    text-decoration: none;
    padding: 10px 15px;
    color: #18bcd4 !important;
    font-family: 'Raleway', sans-serif;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    transition: text-shadow 0.3s ease;
}

.menu a:hover {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Raleway', sans-serif;
    line-height: normal;
    white-space: normal;
    box-sizing: border-box;
    text-align: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

/* Form Message Styling */
.form-message {
    color: #18bcd4 !important;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #18bcd4;
    border-radius: 5px;
    background-color: rgba(24, 188, 212, 0.1); /* Light background */
    display: none; /* Hidden by default */
}

/* Contact Form Styling */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.form-group label {
    font-weight: bold;
    text-align: left;
    width: 150px;
    min-width: 150px;
    margin-right: 10px;
}

.form-group input,
.form-group textarea {
    flex: 1;
    width: calc(100% - 160px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form input[type="submit"] {
    background-color: #18bcd4;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background-color: #1399a8;
}

/* Page Block Styling (Restored Card Design) */
.page-block {
    background-color: #f8f8f8; /* Light grey background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    text-align: center; /* Ensure text aligns properly */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Hover effect for cards */
.page-block:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

/* Headings inside cards */
.page-block h2 {
    color: #18bcd4; /* Matches menu text colour */
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Ensure paragraphs inside blocks have good spacing */
.page-block p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Services Page: Two Columns on Desktop */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* About Page: Single Column Layout */
.about-container {
    display: flex;
    flex-direction: column; /* Stack blocks vertically */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
	text-align: center;
    padding: 20px;
}

/* Mobile Friendly: Stack All Cards */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr; /* Single-column on smaller screens */
    }
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-group label {
        width: 100%;
        min-width: unset;
        margin-bottom: 5px;
    }
    .form-group input,
    .form-group textarea {
        width: 100%;
    }
    .form-message {
        font-size: 14px;
        padding: 8px;
    }
}

@media only screen and (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header img {
        height: 30px;
        padding-top: 10px;
    }
    
    .menu {
        flex-direction: row;
        justify-content: center;
    }

    .menu a {
        padding: 5px 10px;
        font-size: 14px;
        text-align: center;
        color: #18bcd4 !important;
        transition: text-shadow 0.3s ease;
    }
    
    .menu a:hover {
        text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
    }
    
    .about-container {
        padding: 10px;
    }
    
    .contact-form {
        max-width: 90%;
    }
}