/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Theme Variables */
:root {
    --primary-khaki: #e1cdb4;
    --secondary-red: #A61C2E;
    --accent-sand: #F2E8D5;
    --accent-black: #000000;
    --background-taupe: #F2ECE5;
    --text-color: #333333;
    --footer-brown: #A68A64;
    --star-yellow: #FFC107;
    --heading-dark: #6B4E31;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-taupe);
}

.language-notice {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: black;
    margin: 5px 0 0 0;
    font-weight: 700;
    text-align: center; /* Center for header and contact section */
}

/* Top Image Section */
.top-image {
    text-align: center;
    padding: 1rem 1rem;
    background-color: var(--accent-sand);
}

.top-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Bottom Image Section */
.bottom-image {
    text-align: center;
    padding: 1rem 1rem;
    background-color: var(--accent-sand);
}

.bottom-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Base Header Styling */
.header {
    background: url('Images/header-background.jpg') no-repeat center center/cover;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo img {
    height: 80px;
    width: 160px;
    object-fit: contain;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Navigation */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 0.5rem;
}

.nav-links a {
    color: var(--accent-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-red);
}

.nav-links a.active {
    color: var(--secondary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Phone number */
.phone-number a {
    color: var(--accent-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.phone-number a:hover {
    color: var(--secondary-red);
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-areas:
            "logo phone"
            "nav nav";
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.75rem;
        padding: .25rem;
    }

    .logo {
        grid-area: logo;
        justify-self: start;
    }

    .logo img {
        max-height: 40px;
    }

    .phone-number {
        grid-area: phone;
        justify-self: end;
    }

    .main-nav {
        grid-area: nav;
        width: 100%;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-links li {
        flex: 0 1 auto;
        min-width: 0;
        padding: 0rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        white-space: nowrap;
        padding: 0.25rem 0.25rem;
    }

    .phone-number a {
        font-size: .9rem;
    }

    @media (max-width: 340px) {
        .nav-links a {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
        .nav-links {
            gap: 0.2rem;
        }
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 120px auto 20px;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background-image: url("Images/hero-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: 5rem 1rem;
    color: #F2ECE5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: brightness(70%);
    z-index: 1;
}

.hero h1, .hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Roboto', 'Georgia', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.intro {
    padding: 3rem 1rem;
    text-align: center;
}

.intro h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
	text-align: left;
}

.intro-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.intro-features li {
    background-color: var(--accent-sand);
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Services Section */
.services {
    padding: 3rem 1rem;
    text-align: center;
}

.services h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
	text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--accent-sand);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-item p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
	text-align: left;
}

.services video {
    max-width: 100%;
    width: 700;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 2rem auto;
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .cta {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services video {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .service-item {
        padding: 1rem;
    }

    .service-item h3 {
        font-size: 1.2rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }
}

/* Client Highlight Section */
.client-highlight {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--background-taupe);
}

.client-highlight h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.client-highlight blockquote {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background-color: var(--accent-sand);
    border-left: 4px solid var(--secondary-red);
    border-radius: 4px;
}

.client-highlight blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
	text-align: left;
}

.client-highlight blockquote footer {
    font-size: 1rem;
    color: var(--heading-dark);
}

.cta-text {
    text-align: center;
    font-size: 1.2rem;
    margin: 2rem auto;
}

/* About Section */
#about {
    padding: 3rem 1rem;
    text-align: center;
}

#about h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#about h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.about-section {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: left;
}

.about-section p {
    margin-bottom: 1rem;
	text-align: left;
}

.feature-list {
    list-style: none;
    max-width: 800px;
    margin: 1rem auto;
    padding: 0;
}

.feature-list li {
    background-color: var(--accent-sand);
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-image {
    text-align: center;
    margin: 2rem auto;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.about-image .caption {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-color);
    margin-top: 0.5rem;
}

blockquote {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1.0rem;
    background-color: var(--accent-sand);
    border-left: 4px solid var(--secondary-red);
    border-radius: 4px;
}

blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
	text-align: left;
}

blockquote footer {
    font-size: 1rem;
    color: var(--heading-dark);
}

/* Video Section */
.video-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--accent-sand);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.video-section h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-section {
        max-width: 100%;
        padding: 0.5rem;
    }

    .video-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 0.5rem;
    }

    .video-section h2 {
        font-size: 1.5rem;
    }
}

/* Contact Section */
#contact {
    padding: 3rem 1rem;
}

#contact h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#contact p:not(:last-of-type) {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    text-align: left;
}

#contact p:last-of-type {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

address {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-style: normal;
    text-align: left;
}

address p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
	text-align: left;
}

address p strong {
    min-width: 125px;
    font-weight: 600;
    margin-right: 10px;
}

/* Map Section */
main > div {
    text-align: center;
    padding: 2rem 1rem;
}

main > div h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Headstones Section */
#headstones {
    padding: 3rem 1rem;
    text-align: center;
}

#headstones h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#headstones h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.5rem;
    margin: 1rem 0 1rem;
}

#headstones p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
	text-align: left;
}

#headstones strong {
    color: var(--text-color);
}

#headstones ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

#headstones ul li {
    background-color: var(--accent-sand);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#headstones a:not(.cta) {
    color: var(--secondary-red);
    text-decoration: none;
    font-weight: 500;
}

#headstones a:not(.cta):hover {
    text-decoration: underline;
}



/* Feature Boxes */
.feature-boxes {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem; /* Reduced from 1.5rem to 1rem for tighter spacing between boxes */
}

.feature-boxes li {
    background-color: var(--accent-sand);
    padding: 0.5rem; /* Reduced from 0.75rem to 0.5rem (8px) */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-boxes li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-content h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.4rem; /* Reduced from 1.6rem to 1.4rem */
    /* margin-bottom: 0.5rem; /* Reduced from 0.5rem to 0.3rem (4.8px) */ */
    /* line-height: 1.0; /* Added to reduce vertical space */ */
}

.feature-content p {
    font-size: 0.90rem; /* Reduced from 1.1rem to 0.95rem */
    color: var(--text-color);
    margin-bottom: 0.5rem; /* Reduced from 0.75rem to 0.5rem (8px) */
    text-align: center;
    line-height: 1.2; /* Added to reduce vertical space */
}

.feature-cta {
    display: inline-block;
    padding: 6px 12px; /* Reduced from 8px 16px to 6px 12px */
    background-color: var(--secondary-red);
    color: var(--background-taupe);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem; /* Reduced from 1rem to 0.9rem */
    transition: background-color 0.3s ease;
}

.feature-cta:hover {
    background-color: #C8102E;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .feature-boxes {
        grid-template-columns: 1fr;
        gap: 0.75rem; /* Reduced from 1rem to 0.75rem */
    }

    .feature-boxes li {
        padding: 0.4rem; /* Reduced from 0.5rem to 0.4rem (6.4px) */
    }

    .feature-content h3 {
        font-size: 1.2rem; /* Reduced from 1.4rem to 1.2rem */
        margin-bottom: 0.2rem; /* Reduced from 0.4rem to 0.2rem (3.2px) */
        line-height: 1.2; /* Tighter line height */
    }

    .feature-content p {
        font-size: 0.85rem; /* Reduced from 1rem to 0.85rem */
        margin-bottom: 0.4rem; /* Reduced from 0.6rem to 0.4rem (6.4px) */
        line-height: 1.3; /* Tighter line height */
    }

    .feature-cta {
        font-size: 0.8rem; /* Reduced from 0.9rem to 0.8rem */
        padding: 5px 10px; /* Reduced from 8px 14px to 5px 10px */
    }
}

@media (max-width: 480px) {
    .feature-boxes li {
        padding: 0.3rem; /* Reduced from 0.4rem to 0.3rem (4.8px) */
    }

    .feature-content h3 {
        font-size: 1rem; /* Reduced from 1.2rem to 1rem */
        margin-bottom: 0.15rem; /* Reduced from 0.3rem to 0.15rem (2.4px) */
        line-height: 1.2; /* Tighter line height */
    }

    .feature-content p {
        font-size: 0.8rem; /* Reduced from 0.9rem to 0.8rem */
        margin-bottom: 0.3rem; /* Reduced from 0.5rem to 0.3rem (4.8px) */
        line-height: 1.2; /* Tighter line height */
    }

    .feature-cta {
        font-size: 0.7rem; /* Reduced from 0.8rem to 0.7rem */
        padding: 4px 8px; /* Reduced from 6px 12px to 4px 8px */
    }
}

#headstones p {
    text-align: left; /* Center-align all text */
    max-width: 800px; /* Matches your other sections for consistency */
    margin: 0 auto 1.5rem; /* Center the paragraph block */
    font-size: 1rem; /* Matches your #signage ul li font-size */
    color: var(--text-color);
    line-height: 1.4; /* Tighter line height for compactness */
}

#headstones p strong {
    font-family: 'Roboto', 'Georgia', serif; /* Matches your h3 styling */
    color: var(--heading-dark);
    font-size: 1.2rem; /* Slightly larger for emphasis */
    display: block; /* Ensures strong text is on its own line */
    margin-bottom: 0.3rem; /* Space below heading */
}

#headstones p br {
    display: none; /* Remove extra <br> tags for cleaner spacing */
}


/* Signage Section */
#signage {
    padding: 3rem 1rem;
    text-align: center;
}

#signage h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#signage h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

#signage p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
	text-align: left;
}

#signage strong {
    color: var(--text-color);
}

#signage ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

#signage ul li {
    background-color: var(--accent-sand);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#signage a:not(.cta) {
    color: var(--secondary-red);
    text-decoration: none;
    font-weight: 500;
}

#signage a:not(.cta):hover {
    text-decoration: underline;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 2rem auto;
}

.image-grid img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.image-grid img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Modal for expanded image */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #bbb;
}

/* Testimonials Section */
#testimonials {
    padding: 3rem 1rem;
    text-align: center;
}

#testimonials h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial {
    background: var(--accent-sand);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-content h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.testimonial-content .star-rating {
    color: var(--star-yellow);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.testimonial-content p {
    /* font-style: italic; */
    margin: 0;
    color: var(--text-color);
	text-align: left;
}

/* CTA and Links */
#testimonials p {
    max-width: 800px;
    margin: 0 auto 2rem;
	text-align: left;
}

#testimonials a:not(.cta) {
    color: var(--secondary-red);
    text-decoration: none;
    font-weight: 500;
}

#testimonials a:not(.cta):hover {
    text-decoration: underline;
}









/* Blogs Section */
#blogs {
    padding: 3rem 1rem;
    text-align: center;
}

#blogs h2 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.blog {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.blog {
    background: var(--accent-sand);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.blog-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-style: normal;
}
.read-more {
    color: var(--secondary-red);
    text-decoration: none;
    font-weight: 500;
}
.read-more:hover {
    text-decoration: underline;
}
	

.blog img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-content h3 {
    font-family: 'Roboto', 'Georgia', serif;
    color: var(--heading-dark);
    font-size: 1.5rem;
    margin: 0 0 8px;
}
.blog-content img {
    max-width: 100%; /* Scales image to fit container width */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Prevents unwanted spacing below image */
    margin: 1rem auto; /* Centers image and adds vertical spacing */
    border-radius: 6px; /* Matches other images (e.g., .image-grid img) */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Matches other images */
}


/* CTA and Links */
#blogs p {
    max-width: 800px;
    margin: 0 auto 2rem;
	text-align: left;
}

#blogs a:not(.cta) {
    color: var(--secondary-red);
    text-decoration: none;
    font-weight: 500;
}

#blogs a:not(.cta):hover {
    text-decoration: underline;
}






















/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .cta {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services video {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .service-item {
        padding: 1.2rem;
    }

    .service-item h3 {
        font-size: 1.4rem;
    }

    .service-item p {
        font-size: 1rem;
		text-align: left;
    }

    .testimonials {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 15px;
    }

    .testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .testimonial img {
        width: 80px;
        height: 80px;
    }

    .testimonial-content h3 {
        font-size: 1.3rem;
    }

    .testimonial-content .star-rating {
        font-size: 1rem;
    }

    .testimonial-content p {
        font-size: 1rem;
		text-align: left;
    }
}

.cta {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-red);
    color: var(--background-taupe);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: #C8102E;
}

/* Form Styles (for contact.html) */
form {
    max-width: 500px;
    margin: 20px auto;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid var(--accent-sand);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    height: 100px;
    resize: vertical;
}

button[type="submit"] {
    margin-top: 15px;
    background-color: var(--secondary-red);
    color: var(--background-taupe);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #C8102E;
}

/* Footer */
.footer-logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Center the main logo */
}

.org-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* Space between logos */
    margin-top: 1rem;
}

.org-logo {
    max-height: 40px; /* Slightly smaller than main logo for balance */
    width: auto;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3)); /* Subtle shadow for contrast */
}

@media (max-width: 768px) {
    .footer-logo {
        max-height: 40px;
    }
    .org-logo {
        max-height: 35px; /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .footer-logo {
        max-height: 30px;
    }
    .org-logo {
        max-height: 30px; /* Ensure logos remain legible */
    }
    .org-logos {
        gap: 0.5rem; /* Reduce gap for smaller screens */
    }
}

footer {
    background: var(--footer-brown) url('Images/header-background.jpg') no-repeat center center/cover;
    color: var(--accent-black);
    text-align: center;
    padding: 1rem 1rem;
    margin-top: 10px;
    border-top: 2px solid var(--accent-sand);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--accent-black);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--secondary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        max-height: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .intro h2,
    .services h2,
    .client-highlight h2,
    #about h2 {
        font-size: 1.8rem;
    }

    .intro p,
    .services p,
    .client-highlight p {
        font-size: 1.2rem;
    }

    .intro-features li,
    .service-item p {
        font-size: 1rem;
    }

    .service-item h3,
    #about h3 {
        font-size: 1.4rem;
    }

    main {
        margin: 80px auto 20px;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    footer p {
        font-size: 1.1rem;
    }

    .testimonial img {
        width: 80px;
        height: 80px;
    }

    .testimonial-content .star-rating {
        font-size: 1rem;
    }

    .top-image img {
        max-height: 300px;
    }

    .bottom-image img {
        max-height: 300px;
    }

    .about-image img {
        max-height: 200px;
    }

    address p strong {
        min-width: 100px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-height: 30px;
    }

    .cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .testimonial img {
        width: 60px;
        height: 60px;
    }

    footer p {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .intro h2,
    .services h2,
    .client-highlight h2,
    #about h2 {
        font-size: 1.5rem;
    }

    .service-item h3,
    #about h3 {
        font-size: 1.2rem;
    }

    .testimonial-content h3 {
        font-size: 1.2rem;
    }

    .testimonial-content .star-rating {
        font-size: 0.9rem;
    }

    .top-image img {
        max-height: 200px;
    }

    .bottom-image img {
        max-height: 250px;
    }

    .about-image img {
        max-height: 150px;
    }

    address p strong {
        min-width: 85px;
        margin-right: 10px;
    }
}




/* Default to grid layout for desktop */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 2rem auto;
}

.image-grid img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.image-grid img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Disable Swiper styles on desktop */
.image-grid.swiper,
.image-grid .swiper-wrapper,
.image-grid .swiper-slide {
    display: contents !important; /* High specificity to override Swiper */
}

.swiper-pagination,
.swiper-button-prev,
.swiper-button-next {
    display: none !important; /* Hide Swiper controls on desktop */
}

/* Fallback for non-Swiper images on mobile */
@media (max-width: 768px) {
    .image-grid:not(.swiper) {
        display: block;
    }

    .image-grid:not(.swiper) img {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile layout (Swiper enabled) */
@media (max-width: 768px) {
    .image-grid.swiper {
        display: block !important;
        width: 100%;
        max-width: 500px; /* Adjust carousel width */
        margin: 0 auto;
    }

    .image-grid .swiper-wrapper {
        display: flex !important; /* Enable Swiper's flexbox */
    }

    .image-grid .swiper-slide {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .image-grid .swiper-slide img {
        width: 100%;
        height: auto;
        max-height: 300px; /* Prevent images from being too tall */
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .swiper-pagination {
        display: block !important;
        position: relative;
        margin-top: 10px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: block !important;
        color: var(--secondary-red);
    }

    .image-grid .swiper-slide img:hover {
        transform: none; /* Disable hover effect on mobile */
    }

    .swiper-lazy-preloader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }
}