/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #0077b6; /* Default color for other headings */
}

/* Header */
header {
    background-image: url('https://ksgm.co.uk/steph/img/dp_banner.jpg'); /* Banner background image */
    background-size: auto 100%; /* Height covers the banner, width adjusts proportionally */
    background-position: center; /* Center the background image */
    background-repeat: repeat; /* Repeat the background image */
    color: #fff;
    height: 300px; /* Adjusted height to show more of the resized banner image */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center;
    position: relative;
}

/* Overlay to ensure text and image are visible */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px; /* Adjusted to match the width of the content */
    width: 100%;
    position: relative; /* Ensure content is above the overlay */
    z-index: 1;
    padding: 20px; /* Add padding to create space around the content */
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent light grey background */
    border-radius: 10px; /* Optional: Rounded corners for the background */
}

.header-text {
    text-align: left;
}

header h1 {
    margin: 0;
    font-size: 2.6rem;
    color: #eeee00; /* Changed H1 text color to white */
}

header p {
    font-size: 1.7rem;
    margin: 10px 0 0;
    color: #333399;
}

.header-image img {
    width: 100px; /* Adjust the size as needed */
    height: auto;
    border-radius: 50%; /* Optional: Makes the image circular */
}

/* Navigation */
.navigation {
    background-color: #0077b6;
    padding: 10px 0;
    text-align: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Reviews Section */
/* Reviews Bar */
#reviews-bar {
    background-color: #caf0f8;
    padding: 20px 0;
    text-align: center;
}

.reviews-link {
    max-width: 600px;
    margin: 0 auto;
}

.reviews-link p {
    font-size: 1.1rem;
    color: #0077b6;
    margin-bottom: 10px;
}

.reviews-link .nav-link {
    background-color: #0077b6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.reviews-link .nav-link:hover {
    background-color: #005f8b;
}

#reviews {
    background-color: #e6f7ff;
    padding: 40px 0;
}

.review-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: calc(50% - 20px); /* Two reviews per row on desktop */
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-photo {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.review-text {
    flex: 1;
}

.review-text p {
    margin: 0;
}

.review-text strong {
    color: #0077b6;
}

/* Footer */
footer {
    background-color: #0077b6;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review {
        width: 100%; /* One review per row on tablets and mobiles */
    }
}


/* Services Section */
#services {
    background-color: #e6f7ff;
    padding: 40px 0;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table td {
    padding: 10px;
    vertical-align: top;
}

.service-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.service-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.service-item h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
    color: #0077b6;
}

.service-item p {
    margin: 0 15px 15px;
    font-size: 0.9rem;
    color: #555;
}

/* Responsive Table Layout */
@media (max-width: 768px) {
    .service-table tr {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .service-table td {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .service-table td {
        flex: 1 1 100%;
    }
}

/* FAQ Section */
#faq {
    background-color: #e6f7ff;
    padding: 40px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.faq-item h3 {
    color: #0077b6;
    margin-top: 0;
}

.faq-item p {
    margin: 10px 0 0;
    color: #555;
}

.faq-item a {
    color: #0077b6;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Contact Section */
#contact {
    background-color: #caf0f8;
    padding: 40px 0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form button {
    background-color: #0077b6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#contact-form button:hover {
    background-color: #005f8b;
}

/* Footer */
footer {
    background-color: #0077b6;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}