@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');

:root{
    --primary-colour: #0091c9;
    --accent-colour-light: #a7e6ff;
    --background-colour-light: #f5f7fa;
    --icon-colour-light: #ebeff0;
    --icon-colour-dark: #94a4a5;
    --secondary-colour: #444444;
}

* {
      font-family: 'Open Sans', sans-serif;
}

/* Style for the main FAQ container */
.faq-container {
  min-width: 40vw;
  max-width: 85vw; /* Limit the width for better readability */
  margin: 0 auto; /* Center the container and add vertical spacing */
  padding-left: 2vw;
  padding-right: 2vw;
  color: var(--secondary-colour);
  font-size: 2vh;
}
@media all and (max-width: 600px) and (orientation:portrait)
{
    .faq-container{
        width: 95vw;
        max-width: fit-content;
        margin: 4vw auto; /* Center the container and add vertical spacing */
    }
}
@media screen and (max-width: 992px) and (orientation:landscape)
{
    .faq-container{
        width: 95vw;
        max-width: fit-content;
        margin: 4vw auto; /* Center the container and add vertical spacing */
    }
}
@media screen and (min-width: 600px) and (max-width: 992px) and (orientation:portrait)
{
    .faq-container{
        width: 95vw;
        max-width: fit-content;
        margin: 4vw auto; /* Center the container and add vertical spacing */
    }
}

/* Style for the main title */
.faq-container h1 {
  text-align: center;
}

/* Style for each FAQ item */
.faq-item {
    border: 0.1rem solid #d9d9d9;
    border-bottom: 0.2rem solid #d9d9d9;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2vh;
}

/* Style for the question buttons */
.faq-question {
    background-color: var(--background-colour-light);
    width: 100%;
    padding: 1.25rem;
    font-size: 1.25rem;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    color: black;
    transition: background-color 0.3s ease; /* Smooth background transition on hover */
    display: flex;
    flex-direction: row;
}

/* Hover effect for question buttons */
.faq-question:hover {
    background-color: #d0d7de; /* Slightly darker gray on hover */
}

.faq-question-text {
    justify-content: left;
    text-align: left;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 1vw;
    margin-right: auto;
    max-width: 80%;
}

/* Style for the arrow icon */
.faq-question .arrow {
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 1vw;
    margin-left: auto;
    transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the arrow when the question is active (expanded) */
.faq-question.active .arrow {
    transform: rotate(180deg); /* Rotate arrow 180 degrees */
    color: var(--primary-colour);
}

/* Style for the answer sections */
.faq-answer {
  max-height: 0; /* Initially hide the answer */
  overflow: hidden;
  transition: max-height 0.3s ease; /* Smooth transition for expanding */
  background-color: #fff; /* White background for answers */
}

/* Style for the answer text */
.faq-answer p {
  padding: 1vw;
  font-size: 1rem;
  line-height: 1.5; /* Increase line height for better readability */
  color: var(--secondary-colour);
}
@media all and (max-width: 600px) and (orientation:portrait)
{
    .faq-answer p{
      padding: 5vw;
    }
}
@media screen and (max-width: 992px) and (orientation:landscape)
{
    .faq-answer p{
      padding: 5vw;
    }
}
@media screen and (min-width: 600px) and (max-width: 992px) and (orientation:portrait)
{
    .faq-answer p{
      padding: 3vw;
    }
}