/* faq.css */
@import url('/tailwind.css');
@import url('/app/global.css');

.custom-link {
    background-color: #000;
    color: #fff !important;
    padding: 4px 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    
    /* Remove all browser default outlines and borders */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.custom-link:hover {
    background-color: #333 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.faq-container {
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    margin: 0 auto;
    padding: 5rem 37.5rem 5rem 37.5rem;
    font-family: var(--font-inter);
    background-color: #fffd5c;
}

.faq-container::-webkit-scrollbar {
  display: none;
}

.faq-title {
    font-size: 5rem;
    font-weight: 900; /* BLACK weight */
    text-align: center;
    /* margin-bottom: 3.75rem; */
    color: #000;
    letter-spacing: -0.02em;
}

.faq-list {
    max-height: none;
    overflow-y: visible;
    margin-bottom: 3rem;
}

.faq-list::-webkit-scrollbar {
    display: none;
}

.faq-item {
    border-radius: 0;
    overflow: hidden;
    background-color: #000;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-item.active {
    background-color: #000;
}

.faq-question {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    user-select: none;
}

.faq-question:hover {
    background-color: #333;
}

.question-text {
    font-size: 1.125rem;
    font-weight: 700; /* Bold */
    line-height: 1.4;
    flex: 1;
    margin-right: 1.25rem;
    text-align: center;
    margin: 0; /* Reset h3 default margins */
}

.faq-arrow {
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    min-width: 1.5rem;
    text-align: center;
    transform: rotate(-90deg);
    display: inline-block; /* Ensures transform works properly */
}

.faq-arrow.rotated {
    transform: rotate(-180deg);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-answer {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                padding 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    /* border-left: 0.25rem solid black; */
    text-align: center;
}

.faq-answer.active {
    max-height: 31.25rem;
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                padding 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.answer-content {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: black;
    margin: 0;
    text-align: center;
    padding: 1.5rem 2rem;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
}

.faq-answer.active .answer-content {
    opacity: 1;
    /* Removed transition-delay: 0.1s; to make opening as fast as closing */
}







/* Responsive Design */
/* Mac 1515px */
/* @media (max-width: 1515px) {
    .faq-container {
        padding: 1rem 25rem 1rem 25rem;
    }
    .faq-container::-webkit-scrollbar {
        display: none;
    }
    
    .faq-title {
        font-size: 5rem;
        margin-bottom: 2.5rem;
    }
    
    .faq-question {
        padding: .625rem .625rem;
    }
    
    .question-text {
        font-size: 1rem;
        margin-right: 0.9375rem;
    }
    
    .faq-list {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 1.875rem 0.9375rem 1.875rem 0.9375rem;
    }
    .faq-container::-webkit-scrollbar {
        display: none;
    }
    
    .faq-title {
        font-size: 3rem;
        margin-bottom: 2.5rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .question-text {
        font-size: 1rem;
        margin-right: 0.9375rem;
    }
    
    .faq-list {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 2.25rem;
    }

    .faq-container::-webkit-scrollbar {
        display: none;
    }
    
    .faq-question {
        padding: 1.125rem 1.25rem;
    }
    
    .question-text {
        font-size: 0.9375rem;
    }
    
    .answer-content {
        font-size: 0.875rem;
    }
} */














/* Making faq.php responsive on all devices */

/* Desktop | 1281px - 1440px  */
@media (max-width: 1280px) {
  /* None, coded on macbook m1 pro */
}

/* Medium Laptop/Desktop | 1515px - 1920px */
@media (max-width: 1515px) {
    .faq-container {
        padding: 1rem 25rem;
    }

    .faq-title {
        font-size: 5rem;
        margin-bottom: 2.5rem;
    }

    .faq-question {
        padding: .625rem;
    }

    .question-text {
        font-size: 1rem;
        margin-right: 0.9375rem;
    }
}

/* Small Laptop/Desktop | 1024px - 1280px */
@media (max-width: 1024px) {
  /* None, coded on macbook m1 pro */
}

/* Mobile Small Portrait (Normal) () | up to 480px */
/* S20+, iPhone 12, iPhone 13 */
@media (max-width: 480px) and (orientation: portrait) {
  .faq-container {
    padding: .1rem 3rem;
    min-height: 70vh;
  }
  
  .faq-title {
    font-size: 5rem;
    /* margin-bottom: 2rem; */
  }
  
  .faq-question {
    padding: 1rem 1.25rem;
  }
  
  .question-text {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .faq-arrow {
    font-size: 1rem;
    min-width: 1.25rem;
  }
  
  .answer-content {
    font-size: 0.85rem;
    padding: 1.25rem 1.5rem;
    line-height: 1.5;
  }
}

/* Mobile Small Landscape (Seitlich gehlaten) | up to 950px */
/* S20+, iPhone 14, iPhone 15 Pro in Landscape (Seitlich gehlaten) */
@media (max-width: 950px) and (orientation: landscape) {
  .faq-container {
    padding: .1rem 8rem;
    min-height: 70vh;
  }
  
  .faq-title {
    font-size: 5rem;
    /* margin-bottom: 1rem; */
  }
  
  .faq-question {
    padding: 0.75rem 1rem;
  }
  
  .question-text {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .faq-arrow {
    font-size: 0.95rem;
    min-width: 1rem;
  }
  
  .answer-content {
    font-size: 0.8rem;
    padding: 1rem 1.25rem;
    line-height: 1.4;
  }
}

/* Mobile Large Portrait (Normal) | 481px - 600px */
/* iPhone 14 Pro Max, Pixel 7 Pro, larger phones */
@media (min-width: 481px) and (max-width: 600px) and (orientation: portrait) {
  .faq-container {
    padding: 2.5rem 1.5rem;
    min-height: 100vh;
  }
  
  .faq-title {
    font-size: 3rem;
    margin-bottom: 2.5rem;
  }
  
  .faq-question {
    padding: 1.125rem 1.5rem;
  }
  
  .question-text {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .faq-arrow {
    font-size: 1.1rem;
    min-width: 1.25rem;
  }
  
  .answer-content {
    font-size: 0.9rem;
    padding: 1.5rem 1.75rem;
    line-height: 1.6;
  }
}

/* Tablet Portrait (Normal) | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .faq-container {
    padding: .5rem 6rem;
    min-height: 50vh;
  }
  
  .faq-title {
    font-size: 5rem;
    margin-bottom: 2rem;
  }
  
  .faq-question {
    padding: 1rem 1.5rem;
  }
  
  .question-text {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .faq-arrow {
    font-size: 1.2rem;
    min-width: 1.5rem;
  }
  
  .answer-content {
    font-size: 1rem;
    padding: 1.75rem 2rem;
    line-height: 1.6;
  }
}

/* Tablet Landscape (Seitlich gehlaten) | 951px - 1366px */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  .faq-container {
    padding: .5rem 15rem;
    min-height: 75vh;
  }
  
  .faq-title {
    font-size: 5rem;
    /* margin-bottom: 2.5rem; */
  }
  
  .faq-question {
    padding: 0.875rem 1.25rem;
  }
  
  .question-text {
    font-size: 1.05rem;
    line-height: 1.4;
  }
  
  .faq-arrow {
    font-size: 1.15rem;
    min-width: 1.4rem;
  }
  
  .answer-content {
    font-size: 0.95rem;
    padding: 1.5rem 2rem;
    line-height: 1.6;
  }
}