body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* Set Montserrat as the default font */
    font-size: 18px; /* General font size */
    background-color: #f4f4f4;
}

/* Heading Styles */
h1 {
    font-size: 40px;
    font-weight: 500;
}

h2 {
    font-size: 35px;
    font-weight: 500;
}

h3 {
    font-size: 30px;
    font-weight: 500;
}

h4 {
    font-size: 28px;
    font-weight: 500;
}

h5 {
    font-size: 26px;
    font-weight: 500;
}

h6 {
    font-size: 22px;
    font-weight: 500;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px 0px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    height: 90px; /* Define a fixed height for the header */
    line-height: 90px; /* This will vertically center the logo and nav items */
}

header .container {
    display: flex; /* Added this line */
    justify-content: space-between; /* Ensures logo and nav are on opposite ends */
    align-items: center; /* Vertically centers the logo and nav */
    width: 100%; /* Ensures the container takes the full width of the header */
}

nav {
    display: flex; /* Ensures menu items are in one line */
}

#hamburger-menu, #close-menu {
    display: none;
}

header img {
    height: 90px;
    transition: width 0.3s ease; /* Smooth transition for resizing */
}

header.sticky img {
    height: 50px;
}

header.sticky {
    background-color: white;
    height: 60px;
    line-height: 50px;
    z-index: 1000000000000000000001;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #021b27;
    font-size: 18px;
    line-height: 90px; /* Match the header height */
    padding: 0 10px; /* Adjust padding to only be horizontal */
    border-radius: 0; /* Remove border-radius for full height effect */
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block; /* To allow for vertical alignment and padding */
    vertical-align: middle; /* Vertically center the text within the full height */
    color: #021b27;
}

header.sticky nav a {
    line-height: 60px; /* Match the header height */
    color: #021b27;
}

nav a:hover,
header.sticky nav a :hover {
    background-color: #021b27;
    color: #ffffff!important;
}

nav a.active {
    background-color: #6BA368;
    color: #ffffff;
}

/* Container Styles */
.container {
    max-width: 100%;
    margin: 0 auto; /* This centers the container */
/*    background-color: #ffffff; /* White background for content */
    padding: 20px; /* Gutters */
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for depth */
    /*width: 1440px;*/

}
/* Coloured backgrounds*/
.white-bg{ background: #fff}
.grey-bg{ background: #f4f4f4}

/* Spacer */
p.spacer{
    margin:20px 0
}
/*Home section*/
#home{
    background: #021b27;
    padding: 0px
}

/* Hero Section Styles */
.home-headline{
    font-size: 45px;
    color: #fff;
}

.home-subheadline{
    font-size: 22px;
    padding: 0 20px;
    color: #fff;
}

.home-button{
    font-size: 20px;
    border: 0px;
    color: #021b27;
    background-color: #fff;
    padding: 10px 20px;
    width: 60%;
    font-family: 'Montserrat';
}
.home-button:hover{
    font-size: 20px;
    border: 0px;
    background-color: #6BA368;
}
.home-button:hover a{
    color: #fff;
}

.home-button a{
    font-size: 20px;
    text-decoration: none;
    font-family: 'Montserrat';
    color: #021b27;
}

#home .container{ width: 100%; max-width: 100%; padding: 0px;}
.hero {
    display: flex;
    min-height: 100vh;
    align-items: center; /* Vertically center the content */
}

.hero img, .hero-text {
    flex: 1; /* Each takes up half the space */
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Section Styles */
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* This centers the content of each section vertically */
    height: 100%;
    padding: 20px 15px;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none; /* Initially hidden */
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px; /* Vertically center the caret */
    background-color: #021b27;
    color: #ffffff;
    border-radius: 4px; /* Optional: for slightly rounded corners */
    cursor: pointer;
    z-index: 1000; /* Ensure it's above other elements */
}

/* About Section */
#about {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
    background: #fff;
}

.top-row {
    flex: 0.4; /* 40% of the container's height */
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically and horizontally */
}

.bottom-row {
    flex: 0.6; /* 60% of the container's height */
    display: flex; /* To create columns */
}

.column {
    flex: 1; /* Distribute space equally between columns */
    padding: 50px 20px; /* Some spacing around content */
}

/*Contact CSS*/
#contact {
    display: flex;
    flex-direction: column;
}

#contact .top-row {
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 50vh;
}

/* Contact Section Headline Styles */
.top-row {
    display: flex; /* Use Flexbox for alignment */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.contact-headline {
    font-size: 36px; /* Adjust font size as needed */
    font-weight: bold; /* Bold font weight */
    color: #fff; /* White color for better contrast against the background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Optional: Adds a shadow for better readability */
}

#contact .bottom-row {
    flex: 0.5; /* 70% of the container's height */
    display: flex;
    width: 100%;
    min-height: 50vh;
}

#contact .left-column {
    flex: 0.3; /* 30% of the container's width */
    display: flex;
    /*align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    padding: 20px 50px;
}

#contact .right-column {
    flex: 0.7; /* 70% of the container's width */
    padding: 20px 50px;
}

#contact .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
}
#contact .row.submit-row {
    flex-direction: column;
    gap: 20px;
}

/* Left Column Styles */
.left-column {
    padding: 20px; /* Add some padding around the content */
    background-color: #f4f4f4; /* Light grey background for contrast */
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
    gap: 15px; /* Space between items */
}

.contact-info p {
    font-size: 20px; /* Larger font size */
    color: #333; /* Dark grey color for better readability */
    margin: 0; /* Remove default margins */
}
.contact-info a {
    font-size: 20px; /* Larger font size */
    color: #333; /* Dark grey color for better readability */
    margin: 0; /* Remove default margins */
}

.contact-info i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 24px; /* Larger icons */
    color: #021b27; /* Dark blue color for icons */
}
/*Contact Social Icons*/
/* Style the container div */
.social-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px; /* Adjust padding */
    background-color: #021b27; /* Background color */
    border-radius: 20px; /* Rounded shape */
}

/* Style the individual icon divs */
.social-icon {
    flex: 1; /* Divide the container into three equal columns */
    text-align: center;
    transition: background-color 0.3s; /* Smooth background color transition on hover */
    padding: 10px; /* Adjust padding */
}

/* Set the size of the icons */
.social-icon i {
    font-size: 30px; /* Icon size */
    color: #fff; /* White font color */
    margin-right: 0px;
    width: 30px;
    height: 30px;
}

/* Set the gap between icons */
.social-icon:not(:last-child) {
    margin-right: 15px; /* Gap between icons */
}

/* Hover effect */
.social-icon:hover {
    background-color: #6ba368; /* Background color on hover */
    cursor: pointer; /* Change cursor on hover */
    border-radius: 20px;
}
.social-icon img {
    max-width: 22px;
    max-height: 22px;
}

input, select, textarea, button {
    flex: 1;
    margin-right: 10px;
}

button {
    margin-right: 0; /* Reset margin for the button */
}

/* Form Styles */
form {
    font-size: 16px;
}

form .row {
    margin-bottom: 20px; /* Add some space between rows */
}
input.read-more-btn{
    font-size: 30px;
    font-weight: 700;
    font-family: 'Montserrat';
}
input, select, textarea, button {
    width: 100%; /* Take the full width of the container */
    padding: 10px 15px; /* Add some padding for better appearance */
    border: none; /* Remove default borders */
    border-bottom: 2px solid #ccc; /* Add bottom border */
    background-color: #f4f4f4; /* Grey background */
    transition: background-color 0.3s ease; /* Transition effect */
    outline: none; /* Remove default outline */
    font-size: 16px; /* Adjust font size */
}

input:focus, select:focus, textarea:focus {
    background-color: #fff; /* Change to white background on focus */
}

textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px; /* Set a minimum height for the textarea */
}

button {
    cursor: pointer; /* Add hand cursor on hover */
    border: none; /* Remove default borders */
    padding: 12px 20px; /* Adjust padding */
    font-size: 18px; /* Adjust font size */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition effect */
}

button:hover {
    background-color: #021b27; /* Darken the background color on hover */
    color: #fff;
}

div#message{
    padding: 20px;
    font-family: 'Montserrat';
    font-size: 120%;
    font-weight: 700;
    transition: all 0.5s linear;
}
div#message.error-message {
    background: #021b27;
    color: red;
    display: block!important;
    
}
div#message.form-submitted {
    background: #6BA368;
    color: #fff;
    display: block!important;
}

/* Services section*/
.service-header {
    padding: 20px;
    text-align: center;
    height: 30vh;
    width: 100%;
}

.service-tabs {
    display: flex;
    height: 70vh;
    width: 100%
}

.tab-selectors {
    flex: 0.3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px;
    font-size: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 400;
    font-family: 'Montserrat';
}

.tab-button.active {
    background-color: #6BA368;
    color: #fff;
}

.tab-content {
    flex: 0.7;
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.enquire-button {
    background-color: #6BA368;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.enquire-button:hover {
    background-color: #021b27;
    color: #fff;
}

ul.tick-mark {
  list-style-type: none;
  padding-left: 0;
}

ul.tick-mark li:before {
  content: "✓ ";
  color: green; /* or any color you prefer */
}

/* Blog section*/
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*Blog container*/
section#blog-section{
    align-items: flex-start
}
.blog-container {
    display: flex;
    justify-content: space-between;
}

.blog-left {
    flex: 0 0 30%; /* This ensures the div takes up exactly 30% of the parent's width */
    padding-right: 20px; /* Optional: Adds some space between the columns */
}
.blog-left h2{
    font-size: 250%;
    font-weight: 600
}

.blog-right {
    flex: 0 0 70%; /* This ensures the div takes up exactly 70% of the parent's width */
    display: flex;
    flex-direction: column; /* This stacks the children (blog-content and blog-load-more) vertically */
}

.blog-load-more {
    margin-top: 20px; /* Adds some space between the blog content and the Load More button */
}

/* Blog Cards */
/* Blog Section */

#posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Space between the columns */
}

.post-card {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-10px); /* Optional: Adds a subtle lift effect on hover */
}

.post-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.read-more-btn {
    display: inline-block;
    background-color: #021b27;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.read-more-btn:hover {
    background-color: #6BA368;
}
/*Blog Modal BUtton Container*/
.button-container{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 20px 0;
}
.button-container button {
    background: #021b27;
    color: #fff;
}

/* Post pagination*/
div#pagination-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas: "prev blank1 numbers blank2 next";
    margin: 20px 0
}
#pagination-container button:disabled{
    background: #efefef;
    color: black;
    cursor: not-allowed;
}
button#prevPageBtn {
    grid-area: prev;
}
button#nextPageBtn {
    grid-area: next;
}
ul.page-numbers {
    grid-area: numbers;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
a.pagination-link {
    color: inherit;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #000;
    transition: 0.3s all ease-in-out
}
a.pagination-link:hover {
    border: 1px solid #000;
    color: #fff;
    background: #021b27;
}
a.pagination-link.current-page {
    background-color: #6BA368;
    border: 1px solid #6BA368;
    color: white;
}