/* General Body Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Default font from contact.html */
    background-color: #f8f8f8; /* Light background for the whole page */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent; /* Standard property */
}

/* Fix for blue tap highlight on mobile/tablet */
a, button, .faq-question, .menu-toggle {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent; /* Standard property */
}

/* Back to Home Button */
#back-to-home-button {
    position: fixed;
    top: 20px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
    z-index: 1000; /* Ensure it stays on top */
}

#back-to-home-button a {
    display: flex;
    align-items: center;
    background-color: #DAB5DA; /* Hot pink */
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-family: 'Anybody', sans-serif; /* Font from contact.html */
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

#back-to-home-button a:hover {
    background-color: #551033;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#back-to-home-button a i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* icream Logo and Slogan Section */
.cont2 {
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-all;
    padding: 0px;
}

#icream {
    font-size: 4vh;
    font-family: 'Righteous', cursive;
}

#span1 {
    color: #DAB5DA;
    font-family: 'Righteous', cursive;
}

#span2 {
    font-size: 2vh;
    font-family: 'Righteous', cursive;
    font-weight: bold;
    word-spacing: 5px;
}

hr {
    width: auto;
}

/* FAQ Title Section */
.cont3 {
    font-family: 'Concert One', cursive;
    font-size: 3.5em;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.1;
    text-align: center;
    padding: 20px;
}

/* FAQ Accordion Styling */
.faq-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures the answer content is hidden when max-height is 0 */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #DAB5DA; /* Hot pink */
    color: #551033; /* Darker pink for text */
    font-family: 'Jost', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #c0a0c0; /* Slightly darker pink on hover */
}

.faq-question h3 {
    margin: 0;
    flex-grow: 1;
}

.faq-question i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Rotate icon when active */
}

.faq-answer {
    background-color: #fefefe;
    color: #555;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    padding: 0 20px;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth transition */
}

.faq-item.active .faq-answer {
    padding: 20px; /* Add padding when active */
}

.faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some space at the bottom of the paragraph */
}

.faq-answer a {
    color: #551033; /* Dark pink for links in answers */
    text-decoration: none;
    font-weight: bold;
}

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


/* Footer Section (from icream-contact.css) */
.cont4 {
    background-color: #333;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.git {
    font-family: 'Anybody', sans-serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    position: relative;
    color: #eee;
}

.git hr {
    border: none;
    border-top: 1px solid #777;
    width: 60%;
    margin: 10px auto;
}

.foo {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: space-around;
    gap: 20px; /* Space between footer items */
    margin-bottom: 30px;
}

.foo div {
    flex: 1; /* Allow items to grow and shrink */
    min-width: 250px; /* Minimum width before wrapping */
    padding: 15px;
    background-color: #444;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.foo h3 {
    font-family: 'Anybody', sans-serif;
    font-size: 1.2em;
    color: #ff69b4; /* Hot pink */
    margin-top: 0;
}

.foo p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.5;
}

.foo #s1 a {
    color: #add8e6; /* Light blue */
    text-decoration: none;
}

.foo #s1 a:hover {
    text-decoration: underline;
}

#footer {
    border-top: 1px solid #777;
    padding-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8em;
    color: #aaa;
}

/* Responsive Design */

/* Tablet View (e.g., 768px to 1024px) */
@media (max-width: 1024px) {
    .cont2 {
        padding: 15px;
    }

    #icream {
        font-size: 2.5em;
    }

    #span2 {
        font-size: 0.8em;
    }

    .cont3 {
        font-size: 3em;
        margin-bottom: 25px;
    }

    .faq-container {
        max-width: 700px;
    }

    .faq-question {
        padding: 18px;
        font-size: 1em;
    }

    .faq-answer {
        font-size: 0.9em;
    }

    .foo div {
        min-width: 200px;
    }
}

/* Mobile View (e.g., up to 767px) */
@media (max-width: 767px) {
    .cont2 {
        padding: 10px;
    }

    #icream {
        font-size: 2em;
    }

    #span2 {
        font-size: 0.7em;
    }

    .cont3 {
        font-size: 2.2em;
        margin-bottom: 20px;
        padding: 15px;
    }

    .faq-container {
        padding: 0 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.9em;
    }

    .faq-answer {
        font-size: 0.85em;
        padding: 0 15px; /* Adjust padding for mobile */
    }
    
    .faq-item.active .faq-answer {
        padding: 15px; /* Adjust padding when active for mobile */
    }

    .foo {
        flex-direction: column; /* Stack footer items vertically */
        align-items: center;
    }

    .foo div {
        width: 90%; /* Full width for stacked items */
        min-width: unset;
    }

    .cont4 {
        padding: 20px 10px;
    }

    .git {
        font-size: 1.2em;
    }

    .git hr {
        width: 80%;
    }
}

/* Extra Small Mobile (e.g., up to 480px) */
@media (max-width: 480px) {
    #icream {
        font-size: 1.8em;
    }

    .cont3 {
        font-size: 1.8em;
    }

    .faq-question {
        font-size: 0.85em;
        padding: 12px;
    }

    .faq-answer {
        font-size: 0.8em;
    }
    .faq-item.active .faq-answer {
        padding: 12px;
    }
}
