/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 960px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    background: #373743;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 70px;
    display: block;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar ul li {
    margin-left: 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border: 2px solid #dd7703;
    border-radius: 5px;
    display: inline-block;
    box-sizing: border-box;
}

.navbar ul li a:hover {
    outline: 1px solid #dd7703;
}

/* Footer */
.footer {
    background: #373743;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer ul li {
    margin-left: 15px;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border: 2px solid #dd7703;
    border-radius: 5px;
    display: inline-block;
    box-sizing: border-box;
}

/* Content Container */
.content {
    padding: 20px;
    min-height: 400px;
    flex: 1;
    padding-bottom: 100px;
}

/* Mission Statement */
.mission-statement {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff2e6;
    border-radius: 10px;
    margin-bottom: 40px;
}

.mission-statement h1 {
    font-size: 24px;
    font-weight: normal;
    color: #373743;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background image behind FAQs */
.faq-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-image: url('../Assets/Images/DogIMG1.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
    border-radius: 10px;
}

/* Wrapper to centre FAQ items */
.faq-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* FAQ Item */
.faq-item {
    /* border: 2px solid rgba(255, 242, 230); */
    border-radius: 10px;
    background-color: rgba(255, 242, 230, 0.7);
    cursor: pointer;
    transition: transform 0.2s ease, height 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 60px; /* changed from min-height to fixed height */
    position: relative;
    z-index: 2;
    width: 100%;
}

.faq-item.expanded {
    height: 100px;
}

.faq-item:hover {
    transform: scale(1.02);
}

.faq-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: height 0.3s ease;
}

/* Question Style */
.faq-question {
    font-size: 20px;
    font-weight: bold;
    color: #373743;
    width: 220px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
    padding: 0 10px;
    transform: translateX(100px); /* starts to the right */
}

.faq-item.expanded .faq-question {
    transform: translateX(0); /* slides into place */
}

/* Answer Style */
.faq-answer {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.5s ease, opacity 0.5s ease, padding 0.3s ease;
    font-size: 16px;
    color: #333;
    padding-left: 0;
    white-space: normal;
    flex-grow: 1;
}

.faq-item.expanded .faq-answer {
    max-width: 1000px;
    opacity: 1;
    padding-left: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

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

    .footer ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer ul li {
        margin: 10px 0;
    }

    .faq-section {
        height: auto;
        padding: 20px;
    }

    .faq-section::before {
        height: 100%;
    }

    .faq-question {
        width: 100%;
        text-align: center;
        transform: translateX(0);
    }

    .faq-item.expanded .faq-question {
        transform: translateX(0);
    }

    .faq-answer {
        max-width: 100%;
        opacity: 1;
        overflow: visible;
        white-space: normal;
        padding: 10px 0 0 10px;
    }
}