Login
Dashboard
Saved Stitches
Stitch Catalog
Demo
All
E-Commerce
All
(4)
Collections
(3)
Featured Products
(0)
Hero
(0)
Pop Up Modals
(0)
Promotional CTA
(1)
Store Products
(0)
Buttons
All
(1)
Non Standard
(0)
Squared
(1)
Navigation
All
(2)
+ Dropdown
(1)
+ Top Bar
(0)
Standard
(1)
Top Bar + Dropdown
(0)
Hero Section
All
(6)
Centered
(2)
Grid
(0)
Landing + Services
(3)
Left Aligned
(0)
Right Aligned
(1)
Services
All
(16)
3 Card
(4)
4 Card
(4)
5 Card
(1)
6 Card
(2)
8 Card
(1)
Combo
(2)
Side By Side
(2)
Content Flair
All
(3)
Button Boxes
(1)
Content Groups
(1)
Lists
(1)
Quotes
(0)
Stats
(0)
Toppers
(0)
Side By Side
All
(29)
Non Standard
(1)
Reverse
(8)
Reverse Pair
(5)
Reverse Triplet
(3)
Standard
(12)
Gallery
All
(7)
4 Images
(1)
5 Images
(1)
6 Images
(1)
8 Images
(2)
Full Width
(0)
Mosaic
(0)
Multi Gallery
(1)
Simple
(1)
Meet Our Team
All
(5)
2 Card
(0)
3 Card
(1)
4 Card
(2)
5 Card
(1)
6 Card
(0)
7 Card
(0)
8 Card
(1)
Combo
(0)
Steps
All
(4)
3 Steps
(2)
4 Steps
(2)
5 Steps
(0)
Stats
All
(5)
3 Stats
(0)
4 Stats
(3)
Combos
(1)
Timeline
(1)
Pricing
All
(7)
2 Card
(0)
3 Card
(3)
Menu's
(2)
Price List
(0)
w/ Toggles
(2)
FAQ
All
(4)
Multi FAQ's
(0)
Side By Side
(2)
Standard
(2)
Why Choose Us
All
(11)
3 Card
(1)
4 Card
(1)
6 Card
(0)
Side By Side
(9)
Quotes
All
(0)
Single Quotes
(0)
MISC
All
(4)
Careers
(0)
Content
(0)
Locations
(1)
Logos
(1)
Maps
(0)
Popups
(0)
Tables
(1)
Video
(1)
Reviews
All
(14)
2 Card
(4)
3 Card
(3)
4 Card
(0)
8 Card
(0)
Full Width
(0)
Single Review
(7)
Forms & Contact
All
(7)
Contact Forms
(7)
Contact Info
(0)
Subscribe
(0)
Events
All
(3)
3 Card
(1)
4 Card
(0)
Side By Side
(2)
Blog
All
(3)
Recent Posts
(3)
Call To Action
All
(4)
Combos
(1)
Contained
(0)
Full Width
(2)
Subscribe Forms
(1)
Footer
All
(6)
2 Column
(0)
3 Column
(1)
4 Column
(2)
5 Column
(1)
Combo
(0)
Simple
(2)
Dark Mode
All
(1)
Standard
(1)
Interior Pages
All
(3)
About Page
(0)
Contact Page
(0)
Content Page
(1)
FAQ Page
(1)
Menus
(0)
Page Banners
(1)
FAQ Page
HTML
JS
CSS
Core Styles
Choose your preferred CSS
CSS
LESS
SCSS
CSS Dark
LESS Dark
SCSS Dark
Choose your preferred Core Styles CSS
CSS
LESS
SCSS
-
Dark Mode
+
Dark Mode
Copy
to Clipboard
<!-- ============================================ --> <!-- FAQ --> <!-- ============================================ --> <section id="faq-1720"> <div class="cs-container"> <div class="cs-content"> <span class="cs-topper">Faq</span> <h2 class="cs-title">Frequently Asked Questions</h2> </div> <div class="cs-flex-group"> <div class="cs-button-group"> <!--If you need to add another button, make sure to copy and paste from one of the buttons here and increment the data-filter value, so the next one would be data-filter="four", and so on--> <div class="cs-flex"> <button class="cs-option" data-filter="one"> <img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Graphics/plus.svg" alt="plus graphic" width="12" height="12" decoding="async" aria-hidden="true"> All available starter feature </button> <button class="cs-option" data-filter="two"> <img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Graphics/plus.svg" alt="plus graphic" width="12" height="12" decoding="async" aria-hidden="true"> Home service 24/7 </button> <button class="cs-option" data-filter="three"> <img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Graphics/plus.svg" alt="plus graphic" width="12" height="12" decoding="async" aria-hidden="true"> Customer agent service </button> <button class="cs-option" data-filter="four"> <img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Graphics/plus.svg" alt="plus graphic" width="12" height="12" decoding="async" aria-hidden="true"> Professional Service </button> <button class="cs-option" data-filter="five"> <img class="cs-icon" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Graphics/plus.svg" alt="plus graphic" width="12" height="12" decoding="async" aria-hidden="true"> 2 dedicated consultant </button> </div> <picture class="cs-picture"> <!--Mobile Image--> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/people2.jpg"> <!--Tablet and above Image--> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/people2.jpg"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/people2.jpg" alt="people" width="353" height="493"> </picture> </div> <!--We need this wrapper so the absolutely positioned FAQ lists can be positioned to the top of it to so the animations don't amke it overlap the buttons group above it. We needed a wrapper div around it for the faq lists to be relatively positioned to in order to get the effect we wanted--> <div class="cs-wrapper"> <!--If you add more FAQ's, copy and paste of of the .cs-faq-grop lists and increment the data-category to the next number. We have three right now, if you added a fourth you'd change it to data-category="four" to correspond to the new button you created in the .cs-button-group. The filter and category data attributes need to match so they can work together--> <ul class="cs-faq-group" data-category="one"> <!-- Active class added as default --> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the best way to start investing? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What are the tax implications of investing in the stock market? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the difference between a traditional IRA and a Roth IRA? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> </ul> <ul class="cs-faq-group cs-hidden" data-category="two"> <!-- Active class added as default --> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the best way to start investing? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What are the tax implications of investing in the stock market? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the difference between a traditional IRA and a Roth IRA? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> </ul> <ul class="cs-faq-group cs-hidden" data-category="three"> <!-- Active class added as default --> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the best way to start investing? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What are the tax implications of investing in the stock market? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the difference between a traditional IRA and a Roth IRA? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> </ul> <ul class="cs-faq-group cs-hidden" data-category="four"> <!-- Active class added as default --> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the best way to start investing? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What are the tax implications of investing in the stock market? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the difference between a traditional IRA and a Roth IRA? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> </ul> <ul class="cs-faq-group cs-hidden" data-category="five"> <!-- Active class added as default --> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the best way to start investing? </span> </button> <p class="cs-item-p"> In the U.S., the terms lawyer and attorney are often used interchangeably. A lawyer provides legal services such as giving legal advice, writing legal documents and providing policy counsel to governments. An attorney, on top of these things also holds a state or regional license to represent clients in a law court. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What are the tax implications of investing in the stock market? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I improve my credit score? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is the difference between a traditional IRA and a Roth IRA? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I reduce my tax liability as a self-employed individual? </span> </button> <p class="cs-item-p"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> </ul> </div> </div> </div> </section>
const faqItems = Array.from(document.querySelectorAll('.cs-faq-item')); for (const item of faqItems) { const onClick = () => { item.classList.toggle('active') } item.addEventListener('click', onClick) } class FAQFilter { filtersSelector = '.cs-option' FAQselector = '.cs-faq-group' activeClass = 'cs-active' hiddenClass = 'cs-hidden' constructor() { const $filters = document.querySelectorAll(this.filtersSelector) this.$activeFilter = $filters[0] this.$images = document.querySelectorAll(this.FAQselector) this.$activeFilter.classList.add(this.activeClass) for (const $filter of $filters) { $filter.addEventListener('click', () => this.onClick($filter)) } } onClick($filter) { this.filter($filter.dataset.filter) const { activeClass } = this this.$activeFilter.classList.remove(activeClass) $filter.classList.add(activeClass) this.$activeFilter = $filter } filter(filter) { const showAll = filter == 'all' const { hiddenClass } = this for (const $image of this.$images) { const show = showAll || $image.dataset.category == filter $image.classList.toggle(hiddenClass, !show) } } } new FAQFilter()
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1720 { padding: var(--sectionPadding); position: relative; } #faq-1720 .cs-container { width: 100%; max-width: 80rem; margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); position: relative; z-index: 1; } #faq-1720 .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } #faq-1720 .cs-title { margin: 0; } #faq-1720 .cs-flex-group { width: 100%; overflow: hidden; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.3vw, 1.25rem); position: relative; } #faq-1720 .cs-wrapper { width: 100%; position: relative; } #faq-1720 .cs-button-group { width: 100%; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.5vw, 1.25rem); /* prevents flexbox from squishing it */ flex: none; } #faq-1720 .cs-flex { width: 100%; /* 24px - 32px */ padding: clamp(1.5rem, 3vw, 2rem); background-color: #F7F7F7; display: flex; flex-direction: column; order: 3; gap: 1.25rem; } #faq-1720 .cs-option { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; font-weight: 700; padding: 0; color: var(--bodyTextColor); background-color: transparent; border: none; display: flex; justify-content: flex-start; align-items: center; gap: 0.5rem; position: relative; z-index: 1; transition: color .3s; } #faq-1720 .cs-option:hover { color: var(--primary); cursor: pointer; } #faq-1720 .cs-option.cs-active { color: var(--primary); } #faq-1720 .cs-picture { width: 100%; /* 328px - 450px */ height: clamp(20.5rem, 30vw, 28.125rem); /* 16px - 20px */ margin: 0 0 clamp(1rem, 2.4vw, 1.25rem); order: 2; position: relative; z-index: 1; } #faq-1720 .cs-picture img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; } #faq-1720 .cs-faq-group { width: 100%; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; order: 3; gap: 0.5rem; transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s; /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */ transform-origin: top; transform-style: preserve-3d; perspective: 900px; } #faq-1720 .cs-faq-group.cs-hidden { /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */ visibility: hidden; /* prevents the mouse from interacting with it */ pointer-events: none; /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */ opacity: 0; /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */ top: 0; left: 0; position: absolute; /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */ transform: scaleY(0); } #faq-1720 .cs-faq-group.cs-hidden .cs-faq-item { transform: rotateX(270deg); opacity: 0; } #faq-1720 .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; opacity: 1; top: 0; transform: rotateX(0deg); transition: transform 0.6s, opacity 0.3s; } #faq-1720 .cs-faq-item:nth-of-type(2) { transition-delay: 0.1s; } #faq-1720 .cs-faq-item:nth-of-type(3) { transition-delay: 0.2s; } #faq-1720 .cs-faq-item:nth-of-type(4) { transition-delay: 0.3s; } #faq-1720 .cs-faq-item:nth-of-type(5) { transition-delay: 0.4s; } #faq-1720 .cs-faq-item:nth-of-type(6) { transition-delay: 0.5s; } #faq-1720 .cs-faq-item:nth-of-type(7) { transition-delay: 0.6s; } #faq-1720 .cs-faq-item:nth-of-type(8) { transition-delay: 0.7s; } #faq-1720 .cs-faq-item:nth-of-type(9) { transition-delay: 0.8s; } #faq-1720 .cs-faq-item:nth-of-type(10) { transition-delay: 0.9s; } #faq-1720 .cs-faq-item.active .cs-button { color: var(--primary); } #faq-1720 .cs-faq-item.active .cs-button:before { background-color: var(--primary); transform: rotate(315deg); } #faq-1720 .cs-faq-item.active .cs-button:after { background-color: var(--primary); transform: rotate(-315deg); } #faq-1720 .cs-faq-item.active .cs-item-p { height: auto; /* 20px - 24px bottom */ /* 16px - 24px left & right */ padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem); opacity: 1; } #faq-1720 .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; text-align: left; font-weight: bold; /* 16px - 24px top & bottom */ /* 16px - 20px left & right */ padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); background-color: #f7f7f7; border: none; color: var(--headerColor); display: block; width: 100%; position: relative; transition: background-color 0.3s, color 0.3s; } #faq-1720 .cs-button:hover { cursor: pointer; } #faq-1720 .cs-button:before { /* left line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: 1.5rem; transform: rotate(45deg); /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; transition: transform 0.5s; } #faq-1720 .cs-button:after { /* right line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: 1.3125rem; transform: rotate(-45deg); /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; transition: transform 0.5s; } #faq-1720 .cs-button-text { width: 80%; display: block; } #faq-1720 .cs-item-p { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; width: 100%; height: 0; margin: 0; /* 16px - 24px */ padding: 0 clamp(1rem, 2vw, 1.5rem); opacity: 0; background-color: #f7f7f7; color: var(--bodyTextColor); /* clips the text so it doesn't show up */ overflow: hidden; transition: opacity 0.3s, padding-bottom 0.3s; } } /* Inbetween - 600px */ @media only screen and (min-width: 37.5rem) { #faq-1720 .cs-button-group { width: 80%; max-width: 22.0625rem; flex-direction: row; align-items: stretch; flex: none; } #faq-1720 .cs-content { width: 100%; } #faq-1720 .cs-picture { /* 300px - 493px */ min-height: clamp(18.75rem, 30vw, 30.8125rem); margin: 0; height: 100%; flex: none; order: 3; } } /* Desktop - 1024px */ @media only screen and (min-width: 48rem) { #faq-1720 .cs-flex-group { display: flex; flex-direction: row; flex-wrap: nowrap; /* 20px - 80px */ column-gap: clamp(1.25rem, 3vw, 5rem); } #faq-1720 .cs-button-group { flex-direction: column; flex: auto; } #faq-1720 .cs-picture { max-height: 31.25rem; } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1720 { padding: var(--sectionPadding); position: relative; } #faq-1720 .cs-container { width: 100%; max-width: 80rem; margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); position: relative; z-index: 1; } #faq-1720 .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } #faq-1720 .cs-title { margin: 0; } #faq-1720 .cs-flex-group { width: 100%; overflow: hidden; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.3vw, 1.25rem); position: relative; } #faq-1720 .cs-wrapper { width: 100%; position: relative; } #faq-1720 .cs-button-group { width: 100%; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.5vw, 1.25rem); /* prevents flexbox from squishing it */ flex: none; } #faq-1720 .cs-flex { width: 100%; /* 24px - 32px */ padding: clamp(1.5rem, 3vw, 2rem); background-color: #F7F7F7; display: flex; flex-direction: column; order: 3; gap: 1.25rem; } #faq-1720 .cs-option { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; font-weight: 700; padding: 0; color: var(--bodyTextColor); background-color: transparent; border: none; display: flex; justify-content: flex-start; align-items: center; gap: 0.5rem; position: relative; z-index: 1; transition: color .3s; } #faq-1720 .cs-option:hover { color: var(--primary); cursor: pointer; } #faq-1720 .cs-option.cs-active { color: var(--primary); } #faq-1720 .cs-picture { width: 100%; /* 328px - 450px */ height: clamp(20.5rem, 30vw, 28.125rem); /* 16px - 20px */ margin: 0 0 clamp(1rem, 2.4vw, 1.25rem); order: 2; position: relative; z-index: 1; } #faq-1720 .cs-picture img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; } #faq-1720 .cs-faq-group { width: 100%; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; order: 3; gap: 0.5rem; transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s; /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */ transform-origin: top; transform-style: preserve-3d; perspective: 900px; } #faq-1720 .cs-faq-group.cs-hidden { /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */ visibility: hidden; /* prevents the mouse from interacting with it */ pointer-events: none; /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */ opacity: 0; /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */ top: 0; left: 0; position: absolute; /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */ transform: scaleY(0); } #faq-1720 .cs-faq-group.cs-hidden .cs-faq-item { transform: rotateX(270deg); opacity: 0; } #faq-1720 .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; opacity: 1; top: 0; transform: rotateX(0deg); transition: transform 0.6s, opacity 0.3s; } #faq-1720 .cs-faq-item:nth-of-type(2) { transition-delay: 0.1s; } #faq-1720 .cs-faq-item:nth-of-type(3) { transition-delay: 0.2s; } #faq-1720 .cs-faq-item:nth-of-type(4) { transition-delay: 0.3s; } #faq-1720 .cs-faq-item:nth-of-type(5) { transition-delay: 0.4s; } #faq-1720 .cs-faq-item:nth-of-type(6) { transition-delay: 0.5s; } #faq-1720 .cs-faq-item:nth-of-type(7) { transition-delay: 0.6s; } #faq-1720 .cs-faq-item:nth-of-type(8) { transition-delay: 0.7s; } #faq-1720 .cs-faq-item:nth-of-type(9) { transition-delay: 0.8s; } #faq-1720 .cs-faq-item:nth-of-type(10) { transition-delay: 0.9s; } #faq-1720 .cs-faq-item.active .cs-button { color: var(--primary); } #faq-1720 .cs-faq-item.active .cs-button:before { background-color: var(--primary); transform: rotate(315deg); } #faq-1720 .cs-faq-item.active .cs-button:after { background-color: var(--primary); transform: rotate(-315deg); } #faq-1720 .cs-faq-item.active .cs-item-p { height: auto; /* 20px - 24px bottom */ /* 16px - 24px left & right */ padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem); opacity: 1; } #faq-1720 .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; text-align: left; font-weight: bold; /* 16px - 24px top & bottom */ /* 16px - 20px left & right */ padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); background-color: #f7f7f7; border: none; color: var(--headerColor); display: block; width: 100%; position: relative; transition: background-color 0.3s, color 0.3s; } #faq-1720 .cs-button:hover { cursor: pointer; } #faq-1720 .cs-button:before { /* left line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: 1.5rem; transform: rotate(45deg); /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; transition: transform 0.5s; } #faq-1720 .cs-button:after { /* right line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: 1.3125rem; transform: rotate(-45deg); /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; transition: transform 0.5s; } #faq-1720 .cs-button-text { width: 80%; display: block; } #faq-1720 .cs-item-p { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; width: 100%; height: 0; margin: 0; /* 16px - 24px */ padding: 0 clamp(1rem, 2vw, 1.5rem); opacity: 0; background-color: #f7f7f7; color: var(--bodyTextColor); /* clips the text so it doesn't show up */ overflow: hidden; transition: opacity 0.3s, padding-bottom 0.3s; } } /* Inbetween - 600px */ @media only screen and (min-width: 37.5rem) { #faq-1720 .cs-button-group { width: 80%; max-width: 22.0625rem; flex-direction: row; align-items: stretch; flex: none; } #faq-1720 .cs-content { width: 100%; } #faq-1720 .cs-picture { /* 300px - 493px */ min-height: clamp(18.75rem, 30vw, 30.8125rem); margin: 0; height: 100%; flex: none; order: 3; } } /* Desktop - 1024px */ @media only screen and (min-width: 48rem) { #faq-1720 .cs-flex-group { display: flex; flex-direction: row; flex-wrap: nowrap; /* 20px - 80px */ column-gap: clamp(1.25rem, 3vw, 5rem); } #faq-1720 .cs-button-group { flex-direction: column; flex: auto; } #faq-1720 .cs-picture { max-height: 31.25rem; } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode #faq-1720 .cs-title, body.dark-mode #faq-1720 .cs-item-p { color: var(--bodyTextColorWhite); } body.dark-mode #faq-1720 .cs-flex { background-color: rgba(0, 0, 0, 0.2); } body.dark-mode #faq-1720 .cs-option { color: var(--bodyTextColorWhite); } body.dark-mode #faq-1720 .cs-option.cs-active { color: var(--primary); } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(2) { transition-delay: 0.1s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(3) { transition-delay: 0.2s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(4) { transition-delay: 0.3s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(5) { transition-delay: 0.4s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(6) { transition-delay: 0.5s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(7) { transition-delay: 0.6s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(8) { transition-delay: 0.7s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(9) { transition-delay: 0.8s; } body.dark-mode #faq-1720 .cs-faq-item:nth-of-type(10) { transition-delay: 0.9s; } body.dark-mode #faq-1720 .cs-faq-item:hover { border-color: var(--secondary); transition: border-color 0.3s; } body.dark-mode #faq-1720 .cs-button { background-color: rgba(0, 0, 0, 0.2); color: var(--bodyTextColorWhite); } body.dark-mode #faq-1720 .cs-button:before, body.dark-mode #faq-1720 .cs-button:after { background-color: var(--bodyTextColorWhite); } body.dark-mode #faq-1720 .cs-item-p { background-color: rgba(0, 0, 0, 0.2); color: var(--bodyTextColorWhite); opacity: .8; } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1720 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; max-width: (1280/16rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); position: relative; z-index: 1; } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-title { margin: 0; } .cs-flex-group { width: 100%; overflow: hidden; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.3vw, 1.25rem); position: relative; } .cs-wrapper { width: 100%; position: relative; } .cs-button-group { width: 100%; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.5vw, 1.25rem); /* prevents flexbox from squishing it */ flex: none; } .cs-flex { width: 100%; /* 24px - 32px */ padding: clamp(1.5rem, 3vw, 2rem); background-color: #F7F7F7; display: flex; flex-direction: column; order: 3; gap: (20/16rem); } .cs-option { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; font-weight: 700; padding: 0; color: var(--bodyTextColor); background-color: transparent; border: none; display: flex; justify-content: flex-start; align-items: center; gap: (8/16rem); position: relative; z-index: 1; transition: color .3s; &:hover { color: var(--primary); cursor: pointer; } &.cs-active { color: var(--primary); } } .cs-picture { width: 100%; /* 328px - 450px */ height: clamp(20.5rem, 30vw, 28.125rem); /* 16px - 20px */ margin: 0 0 clamp(1rem, 2.4vw, 1.25rem); order: 2; position: relative; z-index: 1; img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; } } .cs-faq-group { width: 100%; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; order: 3; gap: (8/16rem); transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s; /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */ transform-origin: top; transform-style: preserve-3d; perspective: 900px; &.cs-hidden { position: absolute; /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */ visibility: hidden; /* prevents the mouse from interacting with it */ pointer-events: none; /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */ opacity: 0; /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */ top: 0; left: 0; position: absolute; /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */ transform: scaleY(0); .cs-faq-item { transform: rotateX(270deg); opacity: 0; } } } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; opacity: 1; top: 0; transform: rotateX(0deg); transition: transform 0.6s, opacity 0.3s; &:nth-of-type(2) { transition-delay: 0.1s; } &:nth-of-type(3) { transition-delay: 0.2s; } &:nth-of-type(4) { transition-delay: 0.3s; } &:nth-of-type(5) { transition-delay: 0.4s; } &:nth-of-type(6) { transition-delay: 0.5s; } &:nth-of-type(7) { transition-delay: 0.6s; } &:nth-of-type(8) { transition-delay: 0.7s; } &:nth-of-type(9) { transition-delay: 0.8s; } &:nth-of-type(10) { transition-delay: 0.9s; } &.active { .cs-button { color: var(--primary); &:before { background-color: var(--primary); transform: rotate(315deg); } &:after { background-color: var(--primary); transform: rotate(-315deg); } } .cs-item-p { height: auto; /* 20px - 24px bottom */ /* 16px - 24px left & right */ padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem); opacity: 1; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; text-align: left; font-weight: bold; /* 16px - 24px top & bottom */ /* 16px - 20px left & right */ padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); background-color: #f7f7f7; border: none; color: var(--headerColor); display: block; width: 100%; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: (24/16rem); transform: rotate(45deg); /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; transition: transform 0.5s; } &:after { /* right line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: (21/16rem); transform: rotate(-45deg); /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; transition: transform 0.5s; } } .cs-button-text { width: 80%; display: block; } .cs-item-p { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; width: 100%; height: 0; margin: 0; /* 16px - 24px */ padding: 0 clamp(1rem, 2vw, 1.5rem); opacity: 0; background-color: #f7f7f7; color: var(--bodyTextColor); /* clips the text so it doesn't show up */ overflow: hidden; transition: opacity 0.3s, padding-bottom 0.3s; } } } /* Inbetween - 600px */ @media only screen and (min-width: 37.5rem) { #faq-1720 { .cs-button-group { width: 80%; max-width: (353/16rem); flex-direction: row; align-items: stretch; flex: none; } .cs-content { width: 100%; } .cs-picture { height: 100%; /* 300px - 493px */ min-height: clamp(18.75rem, 30vw, 30.8125rem); margin: 0; height: 100%; flex: none; order: 3; } } } /* Desktop - 1024px */ @media only screen and (min-width: 48rem) { #faq-1720 { .cs-flex-group { display: flex; flex-direction: row; flex-wrap: nowrap; /* 20px - 80px */ column-gap: clamp(1.25rem, 3vw, 5rem); } .cs-button-group { flex-direction: column; flex: auto; } .cs-picture { max-height: (500/16rem); } } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1720 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; max-width: (1280/16rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); position: relative; z-index: 1; } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-title { margin: 0; } .cs-flex-group { width: 100%; overflow: hidden; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.3vw, 1.25rem); position: relative; } .cs-wrapper { width: 100%; position: relative; } .cs-button-group { width: 100%; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.5vw, 1.25rem); /* prevents flexbox from squishing it */ flex: none; } .cs-flex { width: 100%; /* 24px - 32px */ padding: clamp(1.5rem, 3vw, 2rem); background-color: #F7F7F7; display: flex; flex-direction: column; order: 3; gap: (20/16rem); } .cs-option { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; font-weight: 700; padding: 0; color: var(--bodyTextColor); background-color: transparent; border: none; display: flex; justify-content: flex-start; align-items: center; gap: (8/16rem); position: relative; z-index: 1; transition: color .3s; &:hover { color: var(--primary); cursor: pointer; } &.cs-active { color: var(--primary); } } .cs-picture { width: 100%; /* 328px - 450px */ height: clamp(20.5rem, 30vw, 28.125rem); /* 16px - 20px */ margin: 0 0 clamp(1rem, 2.4vw, 1.25rem); order: 2; position: relative; z-index: 1; img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; } } .cs-faq-group { width: 100%; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; order: 3; gap: (8/16rem); transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s; /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */ transform-origin: top; transform-style: preserve-3d; perspective: 900px; &.cs-hidden { position: absolute; /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */ visibility: hidden; /* prevents the mouse from interacting with it */ pointer-events: none; /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */ opacity: 0; /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */ top: 0; left: 0; position: absolute; /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */ transform: scaleY(0); .cs-faq-item { transform: rotateX(270deg); opacity: 0; } } } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; opacity: 1; top: 0; transform: rotateX(0deg); transition: transform 0.6s, opacity 0.3s; &:nth-of-type(2) { transition-delay: 0.1s; } &:nth-of-type(3) { transition-delay: 0.2s; } &:nth-of-type(4) { transition-delay: 0.3s; } &:nth-of-type(5) { transition-delay: 0.4s; } &:nth-of-type(6) { transition-delay: 0.5s; } &:nth-of-type(7) { transition-delay: 0.6s; } &:nth-of-type(8) { transition-delay: 0.7s; } &:nth-of-type(9) { transition-delay: 0.8s; } &:nth-of-type(10) { transition-delay: 0.9s; } &.active { .cs-button { color: var(--primary); &:before { background-color: var(--primary); transform: rotate(315deg); } &:after { background-color: var(--primary); transform: rotate(-315deg); } } .cs-item-p { height: auto; /* 20px - 24px bottom */ /* 16px - 24px left & right */ padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem); opacity: 1; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; text-align: left; font-weight: bold; /* 16px - 24px top & bottom */ /* 16px - 20px left & right */ padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); background-color: #f7f7f7; border: none; color: var(--headerColor); display: block; width: 100%; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: (24/16rem); transform: rotate(45deg); /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; transition: transform 0.5s; } &:after { /* right line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: (21/16rem); transform: rotate(-45deg); /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; transition: transform 0.5s; } } .cs-button-text { width: 80%; display: block; } .cs-item-p { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; width: 100%; height: 0; margin: 0; /* 16px - 24px */ padding: 0 clamp(1rem, 2vw, 1.5rem); opacity: 0; background-color: #f7f7f7; color: var(--bodyTextColor); /* clips the text so it doesn't show up */ overflow: hidden; transition: opacity 0.3s, padding-bottom 0.3s; } } } /* Inbetween - 600px */ @media only screen and (min-width: 37.5rem) { #faq-1720 { .cs-button-group { width: 80%; max-width: (353/16rem); flex-direction: row; align-items: stretch; flex: none; } .cs-content { width: 100%; } .cs-picture { height: 100%; /* 300px - 493px */ min-height: clamp(18.75rem, 30vw, 30.8125rem); margin: 0; height: 100%; flex: none; order: 3; } } } /* Desktop - 1024px */ @media only screen and (min-width: 48rem) { #faq-1720 { .cs-flex-group { display: flex; flex-direction: row; flex-wrap: nowrap; /* 20px - 80px */ column-gap: clamp(1.25rem, 3vw, 5rem); } .cs-button-group { flex-direction: column; flex: auto; } .cs-picture { max-height: (500/16rem); } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #faq-1720 { .cs-title, .cs-item-p { color: var(--bodyTextColorWhite); } .cs-flex { background-color: rgba(0, 0, 0, .2); } .cs-option { color: var(--bodyTextColorWhite); &.cs-active { color: var(--primary); } } .cs-faq-item { &:nth-of-type(2) { transition-delay: 0.1s; } &:nth-of-type(3) { transition-delay: 0.2s; } &:nth-of-type(4) { transition-delay: 0.3s; } &:nth-of-type(5) { transition-delay: 0.4s; } &:nth-of-type(6) { transition-delay: 0.5s; } &:nth-of-type(7) { transition-delay: 0.6s; } &:nth-of-type(8) { transition-delay: 0.7s; } &:nth-of-type(9) { transition-delay: 0.8s; } &:nth-of-type(10) { transition-delay: 0.9s; } &:hover { border-color: var(--secondary); transition: border-color 0.3s; } } .cs-button { background-color: rgba(0, 0, 0, .2); color: var(--bodyTextColorWhite); &:before, &:after { background-color: var(--bodyTextColorWhite); } } .cs-item-p { background-color: rgba(0, 0, 0, .2); color: var(--bodyTextColorWhite); opacity: .8; } } } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1720 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; max-width: calc(1280 / 16 * 1rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); position: relative; z-index: 1; } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-title { margin: 0; } .cs-flex-group { width: 100%; overflow: hidden; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.3vw, 1.25rem); position: relative; } .cs-wrapper { width: 100%; position: relative; } .cs-button-group { width: 100%; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.5vw, 1.25rem); /* prevents flexbox from squishing it */ flex: none; } .cs-flex { width: 100%; /* 24px - 32px */ padding: clamp(1.5rem, 3vw, 2rem); background-color: #F7F7F7; display: flex; flex-direction: column; order: 3; gap: calc(20 / 16 * 1rem); } .cs-option { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; font-weight: 700; padding: 0; color: var(--bodyTextColor); background-color: transparent; border: none; display: flex; justify-content: flex-start; align-items: center; gap: calc(8 / 16 * 1rem); position: relative; z-index: 1; transition: color .3s; &:hover { color: var(--primary); cursor: pointer; } &.cs-active { color: var(--primary); } } .cs-picture { width: 100%; /* 328px - 450px */ height: clamp(20.5rem, 30vw, 28.125rem); /* 16px - 20px */ margin: 0 0 clamp(1rem, 2.4vw, 1.25rem); order: 2; position: relative; z-index: 1; img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; } } .cs-faq-group { width: 100%; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; order: 3; gap: calc(8 / 16 * 1rem); transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s; /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */ transform-origin: top; transform-style: preserve-3d; perspective: 900px; &.cs-hidden { position: absolute; /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */ visibility: hidden; /* prevents the mouse from interacting with it */ pointer-events: none; /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */ opacity: 0; /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */ top: 0; left: 0; position: absolute; /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */ transform: scaleY(0); .cs-faq-item { transform: rotateX(270deg); opacity: 0; } } } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; opacity: 1; top: 0; transform: rotateX(0deg); transition: transform 0.6s, opacity 0.3s; &:nth-of-type(2) { transition-delay: 0.1s; } &:nth-of-type(3) { transition-delay: 0.2s; } &:nth-of-type(4) { transition-delay: 0.3s; } &:nth-of-type(5) { transition-delay: 0.4s; } &:nth-of-type(6) { transition-delay: 0.5s; } &:nth-of-type(7) { transition-delay: 0.6s; } &:nth-of-type(8) { transition-delay: 0.7s; } &:nth-of-type(9) { transition-delay: 0.8s; } &:nth-of-type(10) { transition-delay: 0.9s; } &.active { .cs-button { color: var(--primary); &:before { background-color: var(--primary); transform: rotate(315deg); } &:after { background-color: var(--primary); transform: rotate(-315deg); } } .cs-item-p { height: auto; /* 20px - 24px bottom */ /* 16px - 24px left & right */ padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem); opacity: 1; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; text-align: left; font-weight: bold; /* 16px - 24px top & bottom */ /* 16px - 20px left & right */ padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); background-color: #f7f7f7; border: none; color: var(--headerColor); display: block; width: 100%; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: calc(8 / 16 * 1rem); height: calc(2 / 16 * 1rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: calc(24 / 16 * 1rem); transform: rotate(45deg); /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; transition: transform 0.5s; } &:after { /* right line */ content: ""; width: calc(8 / 16 * 1rem); height: calc(2 / 16 * 1rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: calc(21 / 16 * 1rem); transform: rotate(-45deg); /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; transition: transform 0.5s; } } .cs-button-text { width: 80%; display: block; } .cs-item-p { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; width: 100%; height: 0; margin: 0; /* 16px - 24px */ padding: 0 clamp(1rem, 2vw, 1.5rem); opacity: 0; background-color: #f7f7f7; color: var(--bodyTextColor); /* clips the text so it doesn't show up */ overflow: hidden; transition: opacity 0.3s, padding-bottom 0.3s; } } } /* Inbetween - 600px */ @media only screen and (min-width: 37.5rem) { #faq-1720 { .cs-button-group { width: 80%; max-width: calc(353 / 16 * 1rem); flex-direction: row; align-items: stretch; flex: none; } .cs-content { width: 100%; } .cs-picture { height: 100%; /* 300px - 493px */ min-height: clamp(18.75rem, 30vw, 30.8125rem); margin: 0; height: 100%; flex: none; order: 3; } } } /* Desktop - 1024px */ @media only screen and (min-width: 48rem) { #faq-1720 { .cs-flex-group { display: flex; flex-direction: row; flex-wrap: nowrap; /* 20px - 80px */ column-gap: clamp(1.25rem, 3vw, 5rem); } .cs-button-group { flex-direction: column; flex: auto; } .cs-picture { max-height: calc(500 / 16 * 1rem); } } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1720 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; max-width: calc(1280 / 16 * 1rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); position: relative; z-index: 1; } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-title { margin: 0; } .cs-flex-group { width: 100%; overflow: hidden; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.3vw, 1.25rem); position: relative; } .cs-wrapper { width: 100%; position: relative; } .cs-button-group { width: 100%; display: flex; flex-direction: column; /* 16px - 20px */ gap: clamp(1rem, 2.5vw, 1.25rem); /* prevents flexbox from squishing it */ flex: none; } .cs-flex { width: 100%; /* 24px - 32px */ padding: clamp(1.5rem, 3vw, 2rem); background-color: #F7F7F7; display: flex; flex-direction: column; order: 3; gap: calc(20 / 16 * 1rem); } .cs-option { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; font-weight: 700; padding: 0; color: var(--bodyTextColor); background-color: transparent; border: none; display: flex; justify-content: flex-start; align-items: center; gap: calc(8 / 16 * 1rem); position: relative; z-index: 1; transition: color .3s; &:hover { color: var(--primary); cursor: pointer; } &.cs-active { color: var(--primary); } } .cs-picture { width: 100%; /* 328px - 450px */ height: clamp(20.5rem, 30vw, 28.125rem); /* 16px - 20px */ margin: 0 0 clamp(1rem, 2.4vw, 1.25rem); order: 2; position: relative; z-index: 1; img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; } } .cs-faq-group { width: 100%; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; order: 3; gap: calc(8 / 16 * 1rem); transition: transform 0.7s, opacity 0.3s, visibility 0.5s, top 0.3s, left 0.3s; /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */ transform-origin: top; transform-style: preserve-3d; perspective: 900px; &.cs-hidden { position: absolute; /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */ visibility: hidden; /* prevents the mouse from interacting with it */ pointer-events: none; /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */ opacity: 0; /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .cs-flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */ top: 0; left: 0; position: absolute; /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */ transform: scaleY(0); .cs-faq-item { transform: rotateX(270deg); opacity: 0; } } } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; opacity: 1; top: 0; transform: rotateX(0deg); transition: transform 0.6s, opacity 0.3s; &:nth-of-type(2) { transition-delay: 0.1s; } &:nth-of-type(3) { transition-delay: 0.2s; } &:nth-of-type(4) { transition-delay: 0.3s; } &:nth-of-type(5) { transition-delay: 0.4s; } &:nth-of-type(6) { transition-delay: 0.5s; } &:nth-of-type(7) { transition-delay: 0.6s; } &:nth-of-type(8) { transition-delay: 0.7s; } &:nth-of-type(9) { transition-delay: 0.8s; } &:nth-of-type(10) { transition-delay: 0.9s; } &.active { .cs-button { color: var(--primary); &:before { background-color: var(--primary); transform: rotate(315deg); } &:after { background-color: var(--primary); transform: rotate(-315deg); } } .cs-item-p { height: auto; /* 20px - 24px bottom */ /* 16px - 24px left & right */ padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem); opacity: 1; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2em; text-align: left; font-weight: bold; /* 16px - 24px top & bottom */ /* 16px - 20px left & right */ padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem); background-color: #f7f7f7; border: none; color: var(--headerColor); display: block; width: 100%; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: calc(8 / 16 * 1rem); height: calc(2 / 16 * 1rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: calc(24 / 16 * 1rem); transform: rotate(45deg); /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; transition: transform 0.5s; } &:after { /* right line */ content: ""; width: calc(8 / 16 * 1rem); height: calc(2 / 16 * 1rem); background-color: var(--headerColor); opacity: 1; border-radius: 50%; position: absolute; display: block; top: 50%; right: calc(21 / 16 * 1rem); transform: rotate(-45deg); /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; transition: transform 0.5s; } } .cs-button-text { width: 80%; display: block; } .cs-item-p { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; width: 100%; height: 0; margin: 0; /* 16px - 24px */ padding: 0 clamp(1rem, 2vw, 1.5rem); opacity: 0; background-color: #f7f7f7; color: var(--bodyTextColor); /* clips the text so it doesn't show up */ overflow: hidden; transition: opacity 0.3s, padding-bottom 0.3s; } } } /* Inbetween - 600px */ @media only screen and (min-width: 37.5rem) { #faq-1720 { .cs-button-group { width: 80%; max-width: calc(353 / 16 * 1rem); flex-direction: row; align-items: stretch; flex: none; } .cs-content { width: 100%; } .cs-picture { height: 100%; /* 300px - 493px */ min-height: clamp(18.75rem, 30vw, 30.8125rem); margin: 0; height: 100%; flex: none; order: 3; } } } /* Desktop - 1024px */ @media only screen and (min-width: 48rem) { #faq-1720 { .cs-flex-group { display: flex; flex-direction: row; flex-wrap: nowrap; /* 20px - 80px */ column-gap: clamp(1.25rem, 3vw, 5rem); } .cs-button-group { flex-direction: column; flex: auto; } .cs-picture { max-height: calc(500 / 16 * 1rem); } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #faq-1720 { .cs-title, .cs-item-p { color: var(--bodyTextColorWhite); } .cs-flex { background-color: rgba(0, 0, 0, .2); } .cs-option { color: var(--bodyTextColorWhite); &.cs-active { color: var(--primary); } } .cs-faq-item { &:nth-of-type(2) { transition-delay: 0.1s; } &:nth-of-type(3) { transition-delay: 0.2s; } &:nth-of-type(4) { transition-delay: 0.3s; } &:nth-of-type(5) { transition-delay: 0.4s; } &:nth-of-type(6) { transition-delay: 0.5s; } &:nth-of-type(7) { transition-delay: 0.6s; } &:nth-of-type(8) { transition-delay: 0.7s; } &:nth-of-type(9) { transition-delay: 0.8s; } &:nth-of-type(10) { transition-delay: 0.9s; } &:hover { border-color: var(--secondary); transition: border-color 0.3s; } } .cs-button { background-color: rgba(0, 0, 0, .2); color: var(--bodyTextColorWhite); &:before, &:after { background-color: var(--bodyTextColorWhite); } } .cs-item-p { background-color: rgba(0, 0, 0, .2); color: var(--bodyTextColorWhite); opacity: .8; } } } }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: 43.75rem; margin: 0 0 1rem 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: 40.625rem; margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: (4/16rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: (700/16rem); margin: 0 0 (16/16rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: (650/16rem); margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: calc(4 / 16 * 1rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: calc(700 / 16 * 1rem); margin: 0 0 calc(16 / 16 * 1rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: calc(650 / 16 * 1rem); margin: 0; color: var(--bodyTextColor); }
Lorem Ipsum
Undo