File size: 921 Bytes
1a11305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.container {
    margin: 2%;
}


.faq {
    margin-bottom: 20px;
    position: relative;
    /* Required for arrow positioning */
}

.faq-question {
    cursor: pointer;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    position: relative;
    /* Required for arrow positioning */
}

.faq-answer {
    padding: 10px 15px;
    display: none;
}

.faq-answer.show {
    display: block;
}

.faq-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #ddd;
    position: absolute;
    /* Position the arrow */
    right: 10px;
    /* Place it on the right edge */
    top: 50%;
    transform: translateY(-50%);
    /* Vertical centering */
    transition: transform 0.3s ease-in-out;
}

.faq-answer.show .faq-arrow {
    transform: translateY(-50%) rotate(180deg);
    /* Rotate on expand */
}