/* File: assets/css/faq-styles.css — AMRIC (mobile-first) */
/*--------------------------------------------------------------
Page Header (Reused style)
--------------------------------------------------------------*/
.page-header {
background-color: var(--primary-color);
color: white;
padding: 2.5rem 0;
text-align: center;
margin-bottom: 2rem;
position: relative;
overflow: hidden;
}
.page-header:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../images/leaf-pattern-dark.png');
background-size: 200px;
background-repeat: repeat;
opacity: 0.1;
z-index: 0;
}
.page-header h1 {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 0.75rem;
position: relative;
z-index: 1;
}
.page-header p {
font-size: 1rem;
max-width: 600px;
margin: 0 auto;
opacity: 0.9;
position: relative;
z-index: 1;
}
/*--------------------------------------------------------------
FAQ Container Layout
--------------------------------------------------------------*/
.faq-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-bottom: 2.5rem;
}
/*--------------------------------------------------------------
FAQ Categories Navigation
--------------------------------------------------------------*/
.faq-categories {
position: static;
align-self: start;
margin-bottom: 1.5rem;
}
.faq-categories h2 {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 1.25rem;
color: var(--text-dark);
position: relative;
padding-bottom: 0.75rem;
}
.faq-categories h2:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background-color: var(--primary-color);
}
.category-nav {
list-style: none;
padding: 0;
margin: 0 0 1.5rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.category-nav li {
margin-bottom: 0;
}
.category-link {
display: block;
padding: 0.5rem 1rem;
border-radius: 8px;
color: var(--text-color);
text-decoration: none;
transition: all 0.3s ease;
font-weight: 500;
font-size: 0.9rem;
}
.category-link:hover,
.category-link.active {
background-color: var(--primary-color);
color: white;
transform: translateX(5px);
}
.faq-contact {
background-color: var(--bg-color);
border-radius: 15px;
padding: 1.25rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.05);
margin-top: 1rem;
}
.faq-contact h3 {
font-size: 1.1rem;
margin-bottom: 0.85rem;
color: var(--text-dark);
}
.faq-contact p {
color: var(--text-light);
margin-bottom: 1.25rem;
}
.faq-contact .btn {
width: 100%;
}
/*--------------------------------------------------------------
FAQ Content
--------------------------------------------------------------*/
.faq-content {
min-width: 0; /* Prevent overflow in grid */
}
.faq-section {
margin-bottom: 2rem;
scroll-margin-top: 100px;
}
.category-title {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 1.25rem;
color: var(--text-dark);
position: relative;
padding-bottom: 0.75rem;
}
.category-title:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background-color: var(--primary-color);
}
/* Accordion Styles */
.accordion {
border-radius: 15px;
overflow: hidden;
margin-bottom: 1.5rem;
}
.accordion-item {
background-color: var(--bg-color);
border: 1px solid var(--border-light);
margin-bottom: 0.85rem;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.accordion-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
width: 100%;
text-align: left;
background-color: var(--bg-color);
border: none;
outline: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
.accordion-header:hover,
.accordion-header.active {
background-color: rgba(46, 125, 50, 0.05);
}
.accordion-header .question {
font-weight: 600;
color: var(--text-dark);
flex-grow: 1;
padding-right: 1rem;
font-size: 0.95rem;
}
.accordion-header .icon {
color: var(--text-light);
transition: transform 0.3s ease;
}
.accordion-header.active .icon {
color: var(--primary-color);
}
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.answer {
padding: 0 1rem 1rem;
color: var(--text-color);
line-height: 1.6;
font-size: 0.92rem;
}
/* Search Styles */
.search-faqs {
margin-top: 2.5rem;
background-color: var(--bg-color);
border-radius: 15px;
padding: 1.5rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.05);
}
.search-faqs h2 {
font-size: 1.4rem;
margin-bottom: 1.25rem;
color: var(--text-dark);
}
.search-box {
display: flex;
flex-direction: column;
margin-bottom: 1.25rem;
}
.search-box input {
flex-grow: 1;
padding: 0.75rem 1.1rem;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 1rem;
width: 100%;
margin-bottom: 0.5rem;
}
.search-box input:focus {
outline: none;
border-color: var(--primary-color);
}
.search-box button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.75rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s ease;
width: 100%;
}
.search-box button:hover {
background-color: var(--primary-dark);
}
#search-results {
margin-top: 1.5rem;
}
#search-results h3 {
margin-bottom: 1.25rem;
color: var(--text-dark);
}
.search-result {
position: relative;
padding-top: 1.1rem;
}
.result-category {
position: absolute;
top: 0;
right: 0;
background-color: var(--primary-color);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
margin: 0.5rem;
}
.no-results {
padding: 1.5rem;
text-align: center;
background-color: var(--bg-alt);
border-radius: 8px;
color: var(--text-light);
}
.no-results p {
margin-bottom: 1rem;
}
.no-results a {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
}
.no-results a:hover {
text-decoration: underline;
}
/*--------------------------------------------------------------
FAQ Newsletter
--------------------------------------------------------------*/
.faq-newsletter {
background-color: var(--primary-color);
color: white;
border-radius: 15px;
padding: 2rem;
margin-bottom: 2.5rem;
text-align: center;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
}
.faq-newsletter:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../images/leaf-pattern-dark.png');
background-size: 200px;
background-repeat: repeat;
opacity: 0.1;
z-index: 0;
}
.newsletter-content {
position: relative;
z-index: 1;
max-width: 600px;
margin: 0 auto;
}
.faq-newsletter h2 {
font-size: 1.6rem;
margin-bottom: 1rem;
color: white;
}
.faq-newsletter p {
margin-bottom: 1.5rem;
opacity: 0.9;
font-size: 1rem;
}
.newsletter-form .form-group {
display: flex;
flex-direction: column;
max-width: 500px;
margin: 0 auto;
}
.newsletter-form input[type="email"] {
flex: 1;
padding: 14px 18px;
border: none;
border-radius: var(--border-radius-pill);
font-size: 1rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
width: 100%;
margin-bottom: 0.5rem;
}
.newsletter-form input[type="email"]:focus {
outline: none;
}
.newsletter-form button {
padding: 14px 25px;
background-color: var(--accent-color);
color: white;
border: none;
border-radius: var(--border-radius-pill);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
width: 100%;
}
.newsletter-form button:hover {
background-color: #e65100;
transform: translateY(-3px);
}
.newsletter-form button i {
margin-left: 0.5rem;
}
/*--------------------------------------------------------------
Responsive Styles — scale up from mobile base
--------------------------------------------------------------*/
@media (min-width: 576px) {
.search-box {
flex-direction: row;
}
.search-box input {
border-radius: 8px 0 0 8px;
margin-bottom: 0;
}
.search-box button {
width: auto;
border-radius: 0 8px 8px 0;
padding: 0 1.5rem;
}
.newsletter-form .form-group {
flex-direction: row;
}
.newsletter-form input[type="email"] {
border-radius: var(--border-radius-pill) 0 0 var(--border-radius-pill);
margin-bottom: 0;
}
.newsletter-form button {
width: auto;
border-radius: 0 var(--border-radius-pill) var(--border-radius-pill) 0;
}
}

@media (min-width: 768px) {
.page-header {
padding: 4rem 0;
margin-bottom: 3rem;
}
.page-header h1 {
font-size: 2.5rem;
}
.page-header p {
font-size: 1.2rem;
}
.category-title {
font-size: 1.8rem;
}
.search-faqs h2 {
font-size: 1.8rem;
}
.accordion-header {
padding: 1.25rem 1.5rem;
}
.accordion-header .question {
font-size: 1rem;
}
.answer {
padding: 0 1.5rem 1.5rem;
font-size: 1rem;
}
.faq-newsletter {
padding: 3rem;
margin-bottom: 4rem;
}
.faq-newsletter h2 {
font-size: 2rem;
}
.search-faqs {
padding: 2rem;
margin-top: 4rem;
}
.faq-categories h2,
.category-title {
font-size: 1.8rem;
}
}

@media (min-width: 992px) {
.faq-container {
grid-template-columns: 250px 1fr;
gap: 2rem;
margin-bottom: 4rem;
}
.faq-categories {
position: sticky;
top: 100px;
margin-bottom: 0;
}
.category-nav {
display: block;
}
.category-nav li {
margin-bottom: 0.5rem;
}
.category-link {
padding: 0.75rem 1rem;
font-size: 1rem;
}
.faq-contact {
margin-top: 2rem;
}
}

@media (min-width: 1200px) {
.faq-container {
grid-template-columns: 300px 1fr;
gap: 3rem;
}
}

/* Dark Mode Styles */
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .faq-contact,
[data-theme="dark"] .search-faqs {
border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .accordion-header:hover,
[data-theme="dark"] .accordion-header.active {
background-color: rgba(46, 125, 50, 0.1);
}