/* Global Styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f3f3f3;
}

/* Header Styling */
header {
    background-color: hsl(0, 0%, 100%);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    /* Ensure the header stays pinned to the top */
    z-index: 1000;
    /* Keeps the header on top of other content */
}

header .container {
    display: flex;
    align-items: center;
    /* Vertically align items */
    justify-content: space-between;
    /* Space out logo and menu */
    padding: 0 0px;
    /* Adjust padding as needed */
}

/* Style the logo */
header .logo {
    max-height: 48px;
    padding-left: 20px;
    /* Adjust logo size as needed */
}

nav ul.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px;
    /* Space between menu items */
    justify-content: center;
    /* Center align menu items */
    flex-grow: 1;
    /* Allow menu to take up available space */
}

nav {
    flex-grow: 1;
    /* Ensure nav takes up available space */
    padding-right: 100px;
}

nav ul.nav-links li {
    margin: 0 10px;
    position: relative;
    /* Support for dropdown positioning */
}

nav ul.nav-links li a {
    color: #101157;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    /* Aligns text and icon */
}

nav ul.nav-links li a:hover {
    text-decoration: underline;
}

/* Basic styles for the dropdown */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    text-decoration: none;
    color: #1A2E6C;
    /* Adjust color to fit your theme */
    padding: 10px 15px;
    display: inline-block;
}

.dropdown-content {
    display: none;
    /* Hide dropdown by default */
    position: absolute;
    background-color: white;
    min-width: 160px;
    /* Minimum width for dropdown */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    z-index: 1;
    border-radius: 5px;
    /* Rounded corners for a neat look */
    padding: 5px 0;
    /* Padding around dropdown items */
}

.dropdown-content li {
    list-style: none;
    /* Remove bullet points */
}

.dropdown-content li a {
    color: #1A2E6C;
    /* Text color */
    padding: 10px 15px;
    /* Spacing around text */
    text-decoration: none;
    /* Remove underline */
    display: block;
    /* Block display for full-width clickable area */
    font-size: 14px;
    /* Adjust font size */
    transition: background-color 0.3s ease;
    /* Smooth hover transition */
    border-bottom: 1px solid #e0e0e0;
    /* Separator line */
}

/* Remove border from last item */
.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content li a:hover {
    background-color: #f0f0f0;
    /* Light background on hover */
    color: #1A2E6C;
    /* Text color on hover */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile view styles for dropdown */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        /* Stack links vertically on mobile */
    }

    .dropdown-content {
        position: static;
        /* Static positioning for mobile */
        box-shadow: none;
        /* Remove shadow on mobile */
        border-radius: 0;
        /* No rounded corners */
        min-width: 100%;
        /* Full width on mobile */
        padding: 0;
        /* Remove padding for mobile */
    }

    .dropdown-content li a {
        padding: 15px;
        /* Increased padding for easier tapping on mobile */
        border-bottom: 1px solid #e0e0e0;
        /* Keep separator on mobile */
    }
}


/* Dropdown menu styling */
.nav-links .dropdown-content {
    display: none;
    /* Hide dropdown by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    list-style: none;
    margin: 0;
    border-radius: 5px;
}

.nav-links .dropdown-content li {
    padding: 10px;
}

.nav-links .dropdown-content li a {
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: normal;
    padding: 10px 15px;
}

.nav-links .dropdown-content li a:hover {
    background-color: #f1f1f1;
}

/* Show dropdown content when dropdown is active */
.nav-links .dropdown.show .dropdown-content {
    display: block;
}

/* Main Content Section */
main {
    margin-top: -5px;
    padding: 0;
}

/* General Styles */
.services-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px;
    max-width: 800px;
    margin: -50px auto 0;
    /* Negative margin-top to move section up */
}


.service-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 20px;
    flex-wrap: wrap;
    /* Allow items to wrap on smaller screens */
}

.service-content {
    max-width: 60%;
    flex: 1;
}

.service-content h2 {
    color: #1A2E6C;
    font-size: 28px;
    margin-bottom: 10px;
}

.service-content p {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.start-button,
.chat-button,
.chat-button1,
.chat-button2,
.chat-button3 {
    background-color: #006400;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 40%;
    /* Ensure buttons are full-width on mobile */
    margin-bottom: 10px;
    /* Add spacing between buttons on mobile */
}

/* Custom background colors for each button */
.chat-button {
    background-color: #1eba57;
}

.services-whatsapp-icon {
    width: 40px;
    vertical-align: middle;
    margin-left: 5px;
    /* Space between icon and heading */
}


.chat-button1 {
    background-color: #fcaf08;
}

.chat-button2 {
    background-color: #ff1515;
}

.chat-button3 {
    background-color: #1A2E6C;
}

.service-image {
    width: 200px;
    /* Adjust the width as necessary */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */

/* For tablets and smaller screens */
@media (max-width: 768px) {
    .services-section {
        padding: 20px;
        /* Reduce padding */
    }

    .service-box {
        flex-direction: column;
        /* Stack content vertically */
        align-items: center;
        /* Center content */
        text-align: center;
        /* Center text */
    }

    .service-content {
        max-width: 100%;
        /* Allow full width */
        margin-bottom: 20px;
        /* Add spacing below the text */
    }

    .service-content h2 {
        font-size: 24px;
        /* Adjust font size for smaller screens */
    }

    .service-content p {
        font-size: 16px;
        /* Adjust font size for smaller screens */
    }

    .service-image {
        width: 100%;
        /* Allow image to take full width */
        max-width: 200px;
        /* Ensure image doesn’t get too large */
        margin-bottom: 20px;
        /* Add spacing below the image */
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .service-content h2 {
        font-size: 22px;
        /* Further adjust font size */
    }

    .service-content p {
        font-size: 14px;
        /* Further adjust font size */
    }

    .service-box {
        padding: 20px;
        /* Reduce padding */
        gap: 10px;
        /* Reduce gap */
    }

    .service-image {
        max-width: 150px;
        /* Smaller image on very small screens */
    }

    .start-button,
    .chat-button,
    .chat-button1,
    .chat-button2,
    .chat-button3 {
        font-size: 14px;
        /* Adjust font size for buttons */
        padding: 10px 15px;
        /* Adjust padding for buttons */
    }
}



/* FAQ Section Styling */
.faq-section {
    padding: 40px;
    max-width: 1200px;
    margin: -40px auto;
    margin-bottom: -20px;
}

.faq-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    /* Indicate that the box is clickable */
    position: relative;
    font-weight: normal;
    /* Ensure text is not bold */
    display: block;
}

.faq-box h2 {
    color: #1A2E6C;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: normal;
    /* Ensure text is not bold */
}

.faq-box p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    display: none;
    /* Hide answers by default */
    font-weight: normal;
    /* Ensure text is not bold */
}

.faq-box .arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    font-weight: normal;
    /* Ensure text is not bold */
}

.faq-box.open p {
    display: block;
    /* Show the answer when the box is open */
}

.faq-box.open .arrow {
    transform: rotate(180deg);
    /* Rotate the arrow when open */
}


#faq-policy-documents .faq-content {
    /*Scoped to interafct only with the dropdown on the funeral cover page*/
    display: none;
}

#faq-policy-documents.open .faq-content {
    display: block;
    border-radius: 10px;
}


.faq-box.open .faq-content {
    display: block;
    /* Show content when .faq-box is open */
    border-radius: 10px;
}

/* Branch Locator Styling */
/* Branch Locator Styling */
.branch-locator {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.branch-locator h1 {
    padding-top: 45px;
    color: #1A2E6C;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.search-bar {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 300px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #006400;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

.search-bar button:hover {
    background-color: #004d00;
}

.branch-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.branch {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    /* Ensures elements are spaced out, pushing map to the right */
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* Allows items to wrap to the next line on smaller screens */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: row;
    /* Ensure elements are in a row by default */
}

.branch-info {
    flex: 1;
    margin-right: 20px;
    order: 1;
    /* Ensures branch info is first on desktop */
}

.branch-map {
    flex: 0 1 300px;
    width: auto;
    order: 2;
}

.branch-map img {
    max-width: 100%;
    border-radius: 8px;
}


@media (max-width: 768px) {
    .branch {
        flex-direction: column;
        align-items: flex-start;
    }

    .branch-info {
        margin-right: 0;
        margin-bottom: 10px;
        order: 1;
    }

    .branch-map {
        width: 100%;
        margin-top: 0;
        /* Removes the top margin on mobile */
        order: 2;
        /* Keeps the map below branch info */
    }
}


/* Style for centering the image and button */
.image-section {
    text-align: center;
    margin: 20px;
}

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

/* Locate a Branch Section Styling */
.locate-branch-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items horizontally */
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.locate-photo {
    width: 150%;
    max-width: 800px;
    /* Adjust width as needed */
    height: auto;
    margin-top: 60px;
    margin-bottom: 20px;
    /* Space between photo and button */

}

.locate-button {
    background-color: #062d57;
    /* Adjust color as needed */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

.locate-button:hover {
    background-color: #0056b3;
    /* Adjust hover color as needed */
}



video {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Styling */
.footer {
    background-color: #fff;
    padding: 40px 20px;
    margin-top: -10px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-box {
    width: 100%;
    max-width: 300px;
    flex-grow: 1;
    padding: 20px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.footer-box h3 {
    color: #1A2E6C;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.footer-box p,
.footer-box a {
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    line-height: 1.5;
}

.footer-box form {
    display: flex;
    flex-direction: column;
}

.footer-box a {
    color: rgb(15, 46, 224);
}

.footer-box form input,
.footer-box form textarea {
    width: 90%;
    padding: 10px;
    margin: 0 auto 10px;
    border-radius: 4px;
    border: 1px solid #003366;
    display: block;
}

.footer-box form button {
    padding: 10px;
    background-color: #1A2E6C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 98%;
    margin: 0 auto 10px;

}

.footer-box form button:hover {
    background-color: #002
}



main {
    position: relative;
    margin-top: -5px;
    padding: 0;
}



.additional-info {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.additional-info p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.additional-info p:last-child {
    margin-bottom: 0;
}

h1 {
    font-size: 24px;
    color: #1A2E6C;
}


.title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f4f4f4;
}

.title-section h1 {
    font-size: 2em;
    margin-top: 20px;
    padding-top: 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #0a2e50;
    margin-bottom: 20px;
    margin-top: 70px;
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: rgb(9, 9, 90);
    margin-bottom: 20px;
}

.text-content {
    flex: 1;
    padding: 10px;
    text-align: justify;
}

.image-left {
    float: left;
    margin-right: 20px;
}


.image-right {
    order: 2;
    padding-left: 1%;
}


@media (max-width: 768px) {
    .esg-main-image img {
        width: 100%;
    }

    .image-text-container {
        width: 90%;
    }

    .image-text-box {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .image-text-box img {
        width: 80%;
        margin: 0 0 15px 0;
    }

    .text-content {
        text-align: center;
        padding: 0;
    }

    .image-right {
        padding-left: 0;
    }
}

.contact-info-container {
    width: 70%;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: left;
    overflow: hidden;
}

.contact-info-container h1 {
    text-align: center;
}

.enquiries-pragraph {
    text-align: center;
    margin-top: -15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between groups */
}

.contact-group {
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.contact-info h2 {
    margin-top: 15px;
    color: #14406e;
    font-size: 1.1em;
}

.contact-info p {
    margin: 8px 0;
    line-height: 1.4;
    font-size: 0.9em;
}

.contact-info a {
    color: blue;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-info-container {
        text-align: center;
    }
}


.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-icon img {
    width: 50px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.whatsapp-icon img:hover {
    opacity: 0.8;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


main.content {
    padding: 80px 20px 20px;
}

.about-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #131d72;
    font-weight: bold;
    line-height: 1.2;
}

.about-container {
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-content {
    padding: 20px;
    text-align: justify;
}

.text-content h2 {
    margin-top: 0;
    text-align: center;
}


@media (max-width: 768px) {
    .image-text-box {
        flex-direction: column;
        align-items: center;
    }

    .image-text-box img {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.esg-container {
    width: 95%;
    margin: 150px auto;
    padding: 20px;
    box-sizing: border-box;
}

.esg-heading {
    text-align: center;
    margin: 80px;
    color: #131d72;
    padding-top: 30px;
    font-size: 2em;
    color: #131d72;
    font-weight: bold;
}

.esg-main-image {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.esg-main-image img {
    width: 100%;
    height: auto;
}

.text-content {
    flex: 1;
    padding: 10px;
}

.image-left {
    order: 0;
}

.image-right {
    order: 2;
    padding-left: 1%;
}

.image-Top {
    position: absolute;
    top: 200px;
    right: 300px;

}

.image-text-box p {
    flex: 1;
    margin: 0;
}

.image-text-box .text-content {
    flex: 1;
}

.image-text-box h2 {
    color: #1A2E6C;
    margin-top: 0;
}

.image-text-box p {
    margin: 0;
}



.slideshow-container {
    position: relative;
    overflow: hidden;
    width: 80%;
    height: 300px;
    max-width: 800px;
}


.slideshow-container li {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1.0s ease-in-out;
}

.slideshow-container li:not(.active) {
    opacity: 0;
}


@media (max-width: 768px) {
    .slideshow-container {
        width: 80%;
        height: 300px;
        margin-bottom: -100px;

    }

    .slideshow-container li {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 150px;
        margin-bottom: -50px;
    }

    .slideshow-container li {
        height: 150px;
    }
}



.esg-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.image-text-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.image-text-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

.image-text-box img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-right: 20px;
    margin: 10px;

}

.text-content {
    flex: 1;
    padding: 10px;
}


.regulatory-compliance {
    text-align: center;
    color: #1A2E6C;
    padding-bottom: 20px;
}

.regulatory-compliance img {
    width: 60%;
    max-width: 600px;
    margin-bottom: 2rem;
    padding-top: 5px;
    border-radius: 15px;
    image-rendering: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.regulatory-compliance h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}


.compliance-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 20px;
}

.top-groups-wrapper {
    display: flex;
    gap: 20px;
    /* Space between the columns */
    justify-content: center;
    /* Center the columns horizontally */
    align-items: start;
    /* Align items to the top */
    width: 100%;
    /* Ensure the wrapper takes full width */
    max-width: 1000px;
    /* Set max-width to control overall layout */
    margin: 0 auto;
    /* Center the top-groups-wrapper */
}

.compliance-links.group-1,
.compliance-links.group-2 {
    width: 100%;
    /* Ensure each list takes up its grid column's width */
}

.compliance-links.group-3 {
    align-self: center;
    margin: 0 auto;
    width: auto;
    max-width: 350px;
    /*Use this to adjust the width*/
}

.compliance-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    max-width: 300px;
}

.compliance-links li {
    width: 100%;
}

.compliance-links a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: background-color 0.3s;
    text-align: center;
    box-sizing: border-box;
}

.link-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-text {
    font-weight: bold;
    margin-bottom: 5px;
}

.description {
    font-size: 14px;
}

.compliance-links a:hover {
    color: white;
    background-color: #1A2E6C;
}

#regulatory-compliance-section .faq-box {
    max-width: 70%;
    /* Set a maximum width for the dropdown boxes */
    margin: 10px auto;
    /* Center the boxes horizontally with auto margins */
    padding: 10px 20px;
    /* Adjust padding for consistent spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Optional: Add a subtle shadow */
    border-radius: 8px;
    /* Optional: Rounded corners */
    background-color: #fff;
    /* Ensure a consistent background color */
}

@media (max-width: 768px) {
    .compliance-links-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .top-groups-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 30px;
        /*space between group 1 and group 2 */
    }

    .compliance-links {
        max-width: 100%;
    }

    .compliance-links.group-3 {
        max-width: 100%;
        align-self: center;
        margin: 0 auto;
        /* Center within the container */
        padding-top: 15px;
        /*Gap between group 2 and 3*/
    }

    #regulatory-compliance-section .faq-box {
        max-width: 90%;
        /* Allow the box to take up 90% of the screen width */
    }
}


.mobile-nav {
    display: none;
}

.menu-toggle {
    display: none;
}

.toggle {
    display: none;
}


@media (max-width: 870px) {
    .main-nav {
        display: none;
    }

    .toggle {
        display: block;
        cursor: pointer;
        position: relative;
        width: 30px;
        height: 25px;
        margin-right: -10px;
    }

    .bars {
        background-color: #1A2E6C;
        height: 3px;
        width: 30px;
        display: block;
        margin: 6px 0;
        transition: 0.4s;
    }

    .menu-toggle:checked+.toggle #bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle:checked+.toggle #bar2 {
        opacity: 0;
    }

    .menu-toggle:checked+.toggle #bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #fff;
        width: 250px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 1000;
    }

    .mobile-nav.show {
        display: block;
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav .nav-links li {
        margin: 10px 0;
    }

    .mobile-nav .nav-links a {
        color: #1A2E6C;
        text-decoration: none;
        font-size: 18px;
        display: block;
    }
}

.tagline-image {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
    margin-bottom: 35px;
}

.tagline-image {
    width: 80px;
    height: auto;
}

.image-left,
.image-right {
    border-radius: 15px;
    overflow: hidden;
}

.image-left,
.image-right,
.slideshow-container img {
    border-radius: 15px;
    overflow: hidden;
}

.policy-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
}

.policy-section .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.policy-section h2,
.policy-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.policy-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.policy-section ul {
    margin-bottom: 20px;
}

.policy-section ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}


.title-section {
    text-align: center;
    padding: 20px;
    position: relative;
}


.title-section .title-image {
    max-width: 30%;
    margin: 0 auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}


.zoom-container {
    position: relative;
    overflow: hidden;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.funeral-bottom {
    display: block;
    max-width: 80%;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.zoom-container:hover .funeral-bottom {
    transform: scale(2);
    transition: transform 0.2s ease;/
}

.zoom-container {
    cursor: crosshair;
}

.styled-title {
    color: #1A2E6C;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.faq1-section {
    padding: 40px;
    max-width: 1200px;
    margin: 0px auto;
}

.faq1-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    font-weight: normal;
}

.faq1-box h2 {
    color: #1A2E6C;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: normal;
}

.faq1-box p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    display: none;
    font-weight: normal;
}

.faq1-box .arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    font-weight: normal;
}

.faq1-box.open p {
    display: block;
}

.faq1-box.open .arrow {
    transform: rotate(180deg);
}

.footer-info {
    text-align: center;
    font-size: 12px;
    padding: 15px;
    background-color: #ffffff;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-info {
        font-size: 12px;
        padding: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-info {
        font-size: 10px;
        padding: 8px;
        text-align: center;
    }
}

.fraud-alert-container {
    background-color: white;
    color: #1A2E6C;
    width: 70%;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: -20px;
}

.fraud-header {
    display: flex;
    align-items: center;
}

.fraud-megaphone {
    width: 100px;
    margin-right: 10px;
}

.fraud-header h1 {
    margin: 0;
}

.socials-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-top: -10px;
    margin-bottom: -30px;
}

.socials-logos img {
    width: 40px;
    height: auto;
    transition: transform 0.3s;
}

.socials-logos img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .phone-number {
        color: blue;
    }
}

.loan-page-h2 {
    margin-top: -15px;
    margin-bottom: 10px;
    color: #1A2E6C;
}

#message {
    width: 90%;
    padding: 10px;
    margin: 0 auto 10px;
    border-radius: 4px;
    border: 1px solid #003366;
    display: block;
    resize: none;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.enquiries-paragraph {
    text-align: center;
}

.hidden {
    display: none;
}

.success-message {
    color: #1A2E6C;
    align-content: center;
    text-align: center;
}

.faq-content {
    font-family: 'Arial', sans-serif;
    display: none;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.funeral-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    /* Centers the container horizontally */
}

/* Logo styles */
.funeral-logos img {
    max-height: 30px;
    /* Adjust as needed */
    height: 100%;
    width: auto;
    margin-top: 10px;
    margin-bottom: -20px;
    margin-right: 5px;
}

/* Mobile layout */
@media (max-width: 768px) {
    .funeral-logos {
        flex-direction: column;
        /* Stacks logos vertically on mobile */
        margin-bottom: -25px;
    }

    .funeral-logos img {
        max-width: 80%;
        /* Adjust logo width for mobile */
        margin-bottom: 1px;
        /* Adds space between logos */
    }
}

/* Base styles */
/* Base styles */
.header-alert-container {
    display: flex;
    gap: 10px;
    color: black;
    position: absolute;
    /* Keep this for absolute positioning within the nav */
    right: 20px;
    /* Position it on the right */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Center adjustment */
}

.fraud-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align text to the right */
    font-size: 0.8em;
    /* Base text size */
}

.fraud-text p {
    margin: 0;
    /* Removes default paragraph margin */
    text-align: right;
    /* Align text to the right */
}

.fraud-text p:nth-child(1) {
    margin-bottom: 5px;
    /* Adds space between 'Report Fraud' and phone number */
}

.fraud-text p:nth-child(2) {
    margin-bottom: 5px;
    /* Adds space between phone number and email */
}

.fraud-header-title {
    font-weight: bold;
}

#fraud-report-email {
    text-decoration: none;
    /* Removes underline from the email link */
    color: inherit;
    /* Ensures the link color matches the surrounding text */
    font-size: 1.1em;
    /* Base size for email */
}

/* Styles for mobile devices */
@media only screen and (max-width: 870px) {
    .header-alert-container {
        right: 40px;
        /* Adjust positioning for smaller screens */
        font-size: 0.85em;
        /* Slightly larger font size for mobile */
    }

    .fraud-text {
        font-size: 0.85em;
        /* Slightly larger text on mobile */
        margin-right: 10px;
        /* Add margin to the right */
    }

    #fraud-report-email {
        font-size: 1.15em;
        /* Slightly larger email size on mobile */
    }
}

.apply-online-overlay {
    color: white;
    font-size: fmp(13px, 2vw, 20px);
    /* Adjusted to minimum size of 20px, scales with 3vw, maximum size of 40px */
    margin: 0 auto;
    /* Centers the text */
    text-align: center;
    /* Centers text horizontally */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    /* Adds space above and below */
    margin-top: -50px;
    margin-bottom: 7.5%;
    position: relative;
}


.apply-online-overlay-heading {
    color: white;
    font-size: clamp(40px, 5vw, 50px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
    margin-top: -10px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.quick-loans-button {
    background-color: #051f3b;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 140px;
    margin-top: 40px;
}

.quick-loans-button:hover {
    background-color: #0056b3;
}

@media (max-width: 680px) {
    .apply-online-overlay {
        margin-top: 0px;
        font-size: small;
        margin-bottom: -30px;
    }

    .apply-online-overlay-heading {
        font-size: x-large;
        margin-top: 100px;
        margin-bottom: -10px;
    }

    .quick-loans-button {
        margin-bottom: 170px;
    }

    .video-overlay {
        width: 80%;
    }
}


.not-found-body * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.not-found-body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.not-found-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
}

.not-found-error-image {
    width: 50%;
    margin-bottom: 20px;
}

.not-found-h1 {
    font-size: 5rem;
    color: #333;
}

.not-found-p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.not-found-home-button {
    padding: 10px 20px;
    background-color: #1A2E6C;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.not-found-home-button:hover {
    background-color: #0056b3;
}



.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid */
    gap: 20px;
    /* Space between cards */
    padding: 20px;
    justify-items: start;
    /* Align items to the left (start) */
}

.document-card {
    display: flex;
    align-items: flex-start;
    /* Align icon and text at the top */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 350px;
    /* Ensure consistent width across all cards */
    width: 100%;
    /* Allow cards to fill their grid column */
    box-sizing: border-box;
    /* Ensure padding doesn't affect total size */
    min-height: 120px;
    /* Set consistent minimum height for all cards */
}

.document-card:hover {
    transform: translateY(-5px);
    /* Hover lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.document-card a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 350px;
    /* Ensure consistent width across all cards */
    width: 100%;
    /* Allow cards to fill their grid column */
    box-sizing: border-box;
    /* Ensure padding doesn't affect total size */
    min-height: 200px;
}

.document-icon {
    font-size: 40px;
    /* Icon size */
    margin-right: 15px;
    /* Add space between the icon and text */
    color: #1A2E6C;
    /* Icon color */
}

.document-details {
    flex: 1;
    /* Make the text container take up remaining space */
    display: flex;
    flex-direction: column;
    /* Stack title and description vertically */
    justify-content: flex-start;
    /* Align text to the top */
}

.document-details h3 {
    font-size: 18px;
    margin: 0;
    color: #1A2E6C;
    line-height: 1.2;
}

.document-details p {
    font-size: 14px;
    margin: 5px 0 0;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .document-grid {
        grid-template-columns: 1fr;
        /* Single column layout on mobile */
        justify-items: center;
        /* Properly center items within the grid */
    }

    .document-card {
        max-width: 90%;
        /* Ensure cards don't exceed container width on small screens */
    }
}

.document-card-container {
    text-decoration: none;
    /* Removes underline */
    color: inherit;
    /* Ensures text color matches its container */
}

/* Remove underline from all text inside the document card link */
.document-card-link {
    text-decoration: none;
    /* Remove underline for the entire link */
    display: inline-block;
    /* Ensure the entire link acts as a block element */
    width: 100%;
    /* Make the link container fill the card size */
    height: 100%;
    /* Ensure consistent height */
}

.document-card-link h3,
.document-card-link p {
    text-decoration: none;
    /* Explicitly ensure that headings and paragraphs have no underline */
}

/*Styling for Containers with multiple images*/
.image-container {
    Display: flex;
    flex-direction: Column;
    gap: 15px;
    align-items: center;
}

.column {
    /* flex: 1;*/
    padding: 20px;
    border: 1px solid #ffffff;
}

.column:first-child {
    background-color: #ffffff;
}

.column:last-child {
    background-color: #ffffff;
}

.container {
    width: 100%;
}

.heading {
    text-align: Top;
}


.custom-container {
    width: 100%;
}

.custom-row1 {
    width: 100%;
    text-align: justify;
}

.custom-row2 {
    display: flex;
    width: 100%;
}

.custom-row3 {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.custom-half1,
.custom-half2 {
    width: 50%;
    text-align: justify;

}

.closeWhitesp {
    white-space: pre;
}

.h3 {
    text-align: center;
}

#Sustainability-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.half2-images {
    margin-top: 15px;
    margin-left: 5px;
    margin-bottom: 20px;
}

label {
    font-weight: normal;
    margin: 5px 0;
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-row {
    display: flex;
    gap: 10px;
}

#name,
#surname,
#number,
#description,
#uploadBox {
    flex: 1;
    width: 97%;
}

.submit-button {
    display: block;
    background-color: #00733e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;

}

.submit-button:hover {
    background-color: #005a2c;
}