/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your module's name
* to avoid any conflicts with other modules.
*/

/* General Styles */

:root {
    --title-font: 'Roboto', sans-serif;
    --text-font: 'Poppins', sans-serif;
    --text-black: '#232323', sans-serif;
    --border-radius: 3px;
}

.tvfaqs-homepage-block {
    font-family: var(--text-font);
}

.tvfaqs-page-container {
    margin-bottom: 15px;
}

.tvfaqs-js-preload {
    opacity: 0;
}

.tvfaqs-page-container h1 {
    margin-bottom: 25px;
    font-size: 28px;
    color: #ffffff;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    font-weight: 600;
}

/* Layout 1: Two-column layout */

.tvfaqs-topics-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #34495e;
    font-weight: 600;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
}

.tvfaqs-topics-list.nav-pills {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
}

.tvfaqs-topics-list.nav-pills .nav-item {
    margin: 0;
}

.tvfaqs-topics-list.nav-pills .nav-link {
    color: #292929;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    text-align: start;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 15px;
    transition: all 0.3s ease;
}

.tvfaqs-topics-list.nav-pills .nav-link.active,
.tvfaqs-topics-list.nav-pills .nav-link:hover {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

/* FAQ Item Styles */
.tvfaqs-list {
    overflow: hidden;
}

.tvfaqs-faq-item {
    background-color: #fff;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    color: #292929;
}

.tvfaqs-question:hover {
    background-color: #f9f9f9;
}

.faq-title-icon-wrapper .open-close-toggle-btn {
    display: flex;
    align-items: center;
}

.faq-title-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
}

.open-close-toggle-btn i {
    color: #232323;
    font-size: 20px;
    opacity: 1;
}

.open-close-toggle-btn i:hover {
    color: #000 !important;
    opacity: 1;
}

.open-close-toggle-btn .close {
    display: none;
}

.tvfaqs-faq-item.active .open-close-toggle-btn .close {
    display: inline-block;
}

.tvfaqs-faq-item.active .open-close-toggle-btn .open {
    display: none;
}

/* Adjustments for rating and comments section based on image */
.tvfaqs-rating-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.tvfaqs-current-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    line-height: 1;
}

.tvfaqs-already-rated {
    margin-top: 10px;
    color: #27ae60;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .4px;
}

.tvfaqs-like-dislike-section {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

.tvfaqs-like-button,
.tvfaqs-dislike-button {
    font-size: 20px;
    margin-left: 5px;
}

.tvfaqs-comments-section h4 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tvfaqs-comment-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #fefefe;
    border: 1px solid #eee;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}

.tvfaqs-comment-header strong {
    font-size: 1rem;
    color: #333;
}

.tvfaqs-comment-header span {
    font-size: 0.85em;
    color: #888;
}

.tvfaqs-comment-body {
    margin-top: 10px;
    color: #444;
}

/* Search Block Styles */
.tvfaqs-search-block {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

#tvfaqs-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

#tvfaqs-live-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#tvfaqs-live-search-results li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

#tvfaqs-live-search-results li a:hover {
    background-color: #f5f5f5;
}

/* Active Search Tag Styles */
.tvfaqs-active-search-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e9f5ff;
    border: 1px solid #cce5ff;
    border-radius: 20px;
    padding: 5px 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #4a90e2;
}

.tvfaqs-active-search-tag span {
    margin-right: 5px;
    font-weight: 500;
}

.tvfaqs-clear-search-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tvfaqs-clear-search-tag:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.tvfaqs-clear-search-tag .material-icons {
    font-size: 14px;
    line-height: 1;
}

/* Rating and Feedback Styles */
.tvfaqs-rating-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

.tvfaqs-stars-display,
.tvfaqs-stars-input {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
}

.tvfaqs-star-display,
.tvfaqs-star-input {
    color: #ccc;
    cursor: default;
}

.tvfaqs-star-display.filled {
    color: #f39c12;
}

.tvfaqs-stars-input .tvfaqs-star-input {
    cursor: pointer;
    transition: color 0.2s;
}

.tvfaqs-stars-input .tvfaqs-star-input.hover,
.tvfaqs-stars-input .tvfaqs-star-input.selected {
    color: #f39c12;
}

.tvfaqs-like-dislike-section {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.tvfaqs-like-button,
.tvfaqs-dislike-button {
    cursor: pointer;
    color: #777;
    user-select: none;
}

.tvfaqs-like-button.active {
    color: #27ae60;
}

.tvfaqs-dislike-button.active {
    color: #c0392b;
}

/* Styles for voted state */
.tvfaqs-like-dislike-section.voted .tvfaqs-like-button,
.tvfaqs-like-dislike-section.voted .tvfaqs-dislike-button {
    cursor: default;
    opacity: 0.6;
}

.tvfaqs-like-dislike-section.voted .tvfaqs-like-button:hover,
.tvfaqs-like-dislike-section.voted .tvfaqs-dislike-button:hover {
    color: #777;
}

.tvfaqs-like-dislike-section.voted .tvfaqs-like-button.active,
.tvfaqs-like-dislike-section.voted .tvfaqs-dislike-button.active {
    opacity: 1;
    /* Keep active button fully visible */
}

/* Comments Section Styles */
.tvfaqs-comments-section {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.tvfaqs-comments-section h4 {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.08em;
}

.tvfaqs-comment-list {
    list-style: none;
    padding-left: 0;
}

.tvfaqs-comment-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.tvfaqs-comment-item.is-reply {
    margin-left: 40px;
    border-left: 3px solid #cbd0d3;
    margin-top: 10px;
}

.tvfaqs-comment-header {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.tvfaqs-comment-header strong {
    color: #2c3e50;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: calc(100% - 80px);
    vertical-align: middle;
}

.tvfaqs-comment-header span,
.tvfaqs-comment-header .tvfaqs-comment-datetime {
    vertical-align: middle;
    font-size: 12px;
}

.tvfaqs-comment-text-wrapper {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.tvfaqs-comment-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    font-size: 14px
}

.tvfaqs-comment-body p {
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
    display: block;
}

.tvfaqs-reply-form-toggle,
.tvfaqs-comment-form-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border-radius: 3px;
    padding: 3px 6px;
    white-space: normal;
    transition: all .4s ease;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -o-transition: all .4s ease;
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    text-decoration: none !important;
}

.tvfaqs-reply-form-toggle:hover,
.tvfaqs-comment-form-toggle:hover,
.tvfaqs-reply-form-toggle:focus,
.tvfaqs-comment-form-toggle:focus {
    color: #fff !important;
    outline: none !important;
    opacity: .8;
}

.tvfaqs-comment-form-toggle {
    padding: 6px 12px;
}

.tvfaqs-reply-form-toggle i {
    font-size: 16px;
}

.tvfaqs-comment-form-toggle i {
    font-size: 22px;
}

.tvfaqs-reply-form-container,
.tvfaqs-comment-form-container {
    margin-top: 10px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

/* Comment Visibility Toggle */
.tvfaqs-comment-item.hidden-comment {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    overflow: hidden;
}

.tvfaqs-comment-item.visible-comment {
    display: block;
    /* Ensure it's block for slideDown to work */
    opacity: 1;
}

.tvfaqs-toggle-comments {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #3498db;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.tvfaqs-toggle-comments:hover {
    text-decoration: underline;
}

/* View All Button Styles */

.tvfaqs-homepage-block .tvfaqs-view-all {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 25px auto 0;
    padding: 7px 11px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #3498db;
    border: 2px solid #3498db;
    border-radius: 3px;
    transition: all .3s ease;
    text-decoration: none;
    letter-spacing: .5px;
}

.tvfaqs-homepage-block .tvfaqs-view-all:hover {
    background: #fff;
    color: #3498db;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(52, 152, 219, .2);
}

/* Layout 1: Modern Card-Based UI */
.tv-faq-ask-question-container-layout-1 {
    background-color: #f7f7f7;
    padding: 40px 0;
    margin-bottom: 50px;
}

.tv-faq-ask-question-container-layout-1 .card {
    max-width: 600px;
    margin: 0 auto;
    border: none;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tv-faq-ask-question-container-layout-1 .card-body {
    padding: 40px;
}

.tv-faq-ask-question-container .tv-faq-ask-question-header {
    text-align: left;
    /* Align header content to the left */
    margin-bottom: 30px;
}

.tv-faq-ask-question-container .tv-faq-ask-question-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-faq-ask-question-container .tv-faq-ask-question-title i {
    font-size: 32px;
    color: #4a90e2;
}

.tv-faq-ask-question-container-layout-1 .tv-faq-ask-question-header p {
    color: #777;
    margin-bottom: 30px;
}

.tv-faq-ask-question-container .form-group {
    margin-bottom: 25px;
}

.tv-faq-ask-question-container .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    height: auto;
    transition: all 0.3s ease;
    background-color: #fff;
    font-size: 16px;
}

.tv-faq-ask-question-container .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}

.tv-faq-ask-question-container .form-group .form-control.is-invalid,
.tv-faq-ask-question-container .form-group .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
}

.tv-faq-ask-question-container .form-group .form-control:not(.is-invalid) {
    border-color: #ddd;
}

/* Override default browser validation styles for select elements */
.tv-faq-ask-question-container .form-group select.form-control:invalid {
    border-color: #ddd;
    box-shadow: none;
}

.tv-faq-ask-question-container-layout-1 .form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
    text-align: start;
}

.tv-faq-ask-question-container button {
    background-color: #4a90e2;
    border-color: #4a90e2;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.tv-faq-ask-question-container button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

/* Layout 2: Split Column Layout */
.tv-faq-ask-question-container-layout-2 {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
}

.tv-faq-ask-question-container-layout-2 .split-layout {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tv-faq-ask-question-container-layout-2 .split-layout-left {
    flex: 1;
    background-color: #eaf7ff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #005f99;
}

.tv-faq-ask-question-container-layout-2 .split-layout-left .illustration {
    font-size: 80px;
    margin-bottom: 20px;
}

.tv-faq-ask-question-container-layout-2 .split-layout-left h2 {
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 15px;
}

.tv-faq-ask-question-container-layout-2 .split-layout-right {
    flex: 1.5;
    padding: 60px 40px;
    background-color: #fff;
}

.tv-faq-ask-question-container-layout-2 .form-group {
    margin-bottom: 20px;
}

.tv-faq-ask-question-container-layout-2 .input-wrapper {
    position: relative;
}

.tv-faq-ask-question-container-layout-2 .input-wrapper .material-icons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.tv-faq-ask-question-container-layout-2 .form-control,
.select2-container .select2-selection--single {
    border: 1px solid #ccc;
    background: #f6f6f6;
    border-radius: var(--border-radius);
    height: auto;
}

.select2-container {
    width: 100% !important;
}

.tv-faq-ask-question-container-layout-2 .form-control {
    padding: 12px 12px 12px 45px;
    width: 100%;
    transition: border-color 0.3s;
}

.tv-faq-ask-question-container-layout-2 .form-control:focus {
    border-color: #4a90e2;
    outline: none;
}

.select2-container .select2-selection--single {
    padding: 4px 8px;
}

.tv-faq-ask-question-container-layout-2 textarea.form-control {
    padding: 12px 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    bottom: 0;
    margin: auto;
}

.tv-faq-ask-question-container-layout-2 .btn-pill {
    border-radius: 3px;
    padding: 12px 30px;
    font-weight: 600;
}

.tvfaqs-comment-form .btn {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    border-radius: var(--border-radius);
}

/* Layout 3: Minimal Card-Based UI */
.tv-faq-ask-question-container-layout-3 {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.tv-faq-ask-question-container-layout-3 .card {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tv-faq-ask-question-container-layout-3 .card-body {
    padding: 40px;
}

.tv-faq-ask-question-container-layout-3 .tv-faq-ask-question-header {
    text-align: center;
    margin-bottom: 30px;
}

.tv-faq-ask-question-container-layout-3 .tv-faq-ask-question-title {
    font-weight: 700;
    font-size: 2rem;
}

.tv-faq-ask-question-container-layout-3 .form-control {
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tv-faq-ask-question-container-layout-3 .form-control:focus {
    border-color: #00c0ef;
    box-shadow: 0 0 0 0.2rem rgba(0, 192, 239, .25);
}

.tv-faq-ask-question-container-layout-3 button {
    background-color: #00c0ef;
    border-color: #00c0ef;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    width: 100%;
}

/* Layout 4: Split Section with Accent Background */
.tv-faq-ask-question-container-layout-4 {
    padding: 60px 0;
}

.tv-faq-ask-question-container-layout-4 .form-control {
    border-radius: 50px;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tv-faq-ask-question-container-layout-4 .form-control:focus {
    border-color: #00c0ef;
    box-shadow: 0 0 0 0.2rem rgba(0, 192, 239, .25);
}

.tv-faq-ask-question-container-layout-4 textarea.form-control {
    border-radius: 20px;
}

.tv-faq-ask-question-container-layout-4 button {
    background-color: #00c0ef;
    border-color: #00c0ef;
    border-radius: 50px;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(0, 192, 239, 0.4);
    transition: all 0.3s ease;
}

.tv-faq-ask-question-container-layout-4 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 192, 239, 0.5);
}

/* Search Block Styles */
.tvfaqs-search-block-layout-1 .form-control:focus {
    border-color: #00c0ef;
    box-shadow: 0 0 0 0.2rem rgba(0, 192, 239, .25);
}

.tvfaqs-search-block-layout-1 .list-inline-item a:hover {
    text-decoration: underline;
}

.tvfaqs-search-block-layout-2 .form-control:focus {
    border-color: #00c0ef;
    box-shadow: 0 0 0 0.2rem rgba(0, 192, 239, .25);
    z-index: 2;
}

.tvfaqs-search-block-layout-2 button:hover {
    background-color: #00a7d1;
    border-color: #00a7d1;
}



/* Search Layout 1: Compact Card UI */
.tvfaqs-search-layout-1.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Spacing between search and topics sections */
}

.tvfaqs-search-layout-1 .tvfaqs-search-section {
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    /* Clean divider */
}

.tvfaqs-search-layout-1 .tvfaqs-search-form .input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.tvfaqs-search-layout-1 .tvfaqs-search-form .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    z-index: 5;
}

.tvfaqs-search-layout-2 .tvfaqs-search-form .search-icon {
    display: none;
}

.tvfaqs-search-layout-1 .tvfaqs-search-form .tvfaqs-search-input {
    flex-grow: 1;
    border-radius: var(--border-radius) !important;
    padding: 12px 18px 12px 50px;
    /* Adjust padding for icon */
    border: 1px solid #e0e0e0;
    height: 48px;
    /* Match height with button */
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.tvfaqs-search-layout-2 .tvfaqs-search-form .form-control::placeholder,
.tvfaqs-search-layout-1 .tvfaqs-search-form .form-control::placeholder {
    color: #aaa;
}

.tvfaqs-search-layout-1 .tvfaqs-search-form .form-control:focus {
    border-color: #4a90e2;
    outline: none;
}

.tvfaqs-search-layout-1 .tvfaqs-search-form .input-group-append {
    margin-left: -1px;
}

.tvfaqs-search-layout-2 .tvfaqs-search-form button,
.tvfaqs-search-layout-1 .tvfaqs-search-form button {
    border-radius: var(--border-radius);
    background-color: #4a90e2;
    border-color: #4a90e2;
    padding: 12px 25px;
    /*height: 48px;*/
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.tvfaqs-search-layout-1 .tvfaqs-search-form button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.tvfaqs-search-layout-1 .tvfaqs-popular-topics-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tvfaqs-search-layout-1 .tvfaqs-popular-topics-section strong {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.tvfaqs-search-layout-1 .tvfaqs-popular-topics-section .list-inline {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tvfaqs-search-layout-1 .tvfaqs-popular-topics-section .list-inline-item {
    margin-right: 0;
}

.tvfaqs-search-layout-2 .tvfaqs-popular-topics .badge,
.tvfaqs-search-layout-1 .tvfaqs-popular-topics-section .list-inline-item a {
    display: inline-block;
    color: #4a90e2;
    text-decoration: none;
    background-color: #e9f5ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #cce5ff;
}

.tvfaqs-search-layout-2 .tvfaqs-popular-topics .badge:hover,
.tvfaqs-search-layout-1 .tvfaqs-popular-topics-section .list-inline-item a:hover {
    background-color: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
    text-decoration: none;
}

/* Responsive adjustments for Layout 1 */
.tv-faq-ask-question-form .form-control {
    border-radius: var(--border-radius);
    outline: none !important;
    border-color: #ccc;
    font-size: 14px
}

.select2-container--default .select2-selection--single .select2-selection__placeholder,
.tv-faq-ask-question-form .form-control::placeholder {
    opacity: .5;
}

.tv-faq-ask-question-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
}

.tv-faq-reply-submit.btn,
.tv-faq-ask-question-submit.btn {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    border-radius: var(--border-radius);
    letter-spacing: .5px;
}

/* Search Layout 2: Banner Style */
.tvfaqs-search-layout-2 {
    background: linear-gradient(135deg, #dce3ea 0%, #e0e3e5 100%);
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.tvfaqs-search-layout-2 .tvfaqs-search-form .input-group {
    max-width: 600px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tvfaqs-search-layout-2 .tvfaqs-search-form .form-control {
    border-radius: var(--border-radius) !important;
    padding-block: 12px 11px;
    padding-left: 20px;
    border: none;
}

.tvfaqs-search-layout-2 .tvfaqs-search-form .btn i.search {
    margin: 0;
}

.tvfaqs-search-layout-2 .tvfaqs-popular-topics .badge {
    transition: all 0.2s;
}

.tvfaqs-search-layout-2 .tvfaqs-popular-topics .list-inline {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.tvfaqs-search-layout-2 .tvfaqs-popular-topics .list-inline-item {
    margin: 0;
}

.tvfaqs-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.tvfaqs-grid-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tvfaqs-question-layout2 {
    font-weight: bold;
    color: #333;
}

.tvfaqs-view-all-container {
    text-align: center;
    margin-top: 20px;
}

.tvfaqs-view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Grid Layout */


.tvfaqs-grid-layout-2 {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: start;
}

.tvfaqs-faq-card.tvfaqs-faq-item {
    width: calc(50% - 20px);
}

/* Ensure 2 columns on larger screens */
.tvfaqs-grid-layout-2 .tvfaqs-grid-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.tvfaqs-grid-layout-2 .tvfaqs-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tvfaqs-grid-layout-2 .tvfaqs-question-layout2 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tvfaqs-grid-layout-2 .tvfaqs-answer-layout2 {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.tvfaqs-grid-layout-2 .tvfaqs-faq-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.tvfaqs-grid-layout-2 .tvfaqs-posted-date,
.tvfaqs-grid-layout-2 .tvfaqs-author {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    color: #777;
    font-size: 0.9rem;
}

.tvfaqs-grid-layout-2 .tvfaqs-rating-section .tvfaqs-like-dislike-section {
    display: flex;
    gap: 15px;
}

.tvfaqs-grid-layout-2 .tvfaqs-like-button,
.tvfaqs-grid-layout-2 .tvfaqs-dislike-button {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.tvfaqs-grid-layout-2 .tvfaqs-comments-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comments-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #232323;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comment-content .tvfaqs-comment-list {
    margin-top: 10px;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comment-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comment-header span {
    font-size: 0.8rem;
    color: #999;
    margin-left: 10px;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comment-body p {
    margin: 5px 0 0;
    line-height: 1.5;
    color: #555;
}

.tvfaqs-comments-section-layout2 .no-comments {
    color: #888;
    font-style: italic;
}

.tvfaqs-comments-section-layout2 .tvfaqs-comment-form-container h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Styles for comment form */
.tvfaqs-comment-form-container .form-group {
    margin-bottom: 15px;
}

.tvfaqs-comment-form-container label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
    text-align: start;
}

.tvfaqs-comment-form-container .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.tvfaqs-comment-form-container .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}

.tvfaqs-comment-form-container textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.tvfaqs-comment-form-container button {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: normal;
}

.tvfaqs-comment-form-container button:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive adjustments for comments section */
/* New Card Styles for Layout 2 */
/* These styles were integrated into the existing sections above */
.tvfaqs-faq-card {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    margin-bottom: 0;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Subtle initial shadow */
}

.tvfaqs-card-header {
    background-color: #fefefe;
}

.tvfaqs-question-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.tvfaqs-card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #555;
}

.tvfaqs-card-actions:has(+ .tvfaqs-card-footer) {
    margin-bottom: 15px;
}

.tvfaqs-card-body {
    padding: 20px 25px;
    line-height: 1.6;
    color: #444;
}

.tvfaqs-faq-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tvfaqs-author,
.tvfaqs-posted-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tvfaqs-card-footer {
    padding: 10px 10px;
    border-top: 1px solid #eee;
    background-color: #fcfcfc;
}

.tvfaqs-comment-item {
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 10px;
}

.tvfaqs-comment-avatar .tvfaqs-comment-icon-avatar {
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #777;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.tvfaqs-comment-content {
    flex-grow: 1;
}

/* Homepage FAQ Block start */
.tvfaqs-homepage-block {
    margin: 32px auto;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 28px 24px 32px 24px;
}

.tvfaqs-homepage-block .tvfaqs-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #292929;
    font-family: var(--title-font);
}

.tvfaqs-homepage-block .tvfaqs-description p {
    color: #5a5757;
    font-size: .9em;
    margin-bottom: 24px;
    line-height: 1.5;
    letter-spacing: .2px;
    font-weight: 400;
    font-family: var(--text-font);

}

.tvfaqs-homepage-block .tvfaqs-list {
    overflow: visible;
}

.tvfaqs-homepage-block .tvfaqs-faq-item:last-child {
    margin-bottom: 0;
}

.tvfaqs-question {
    font-weight: 600;
    color: #292929;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 0;
    font-family: var(--title-font);
    line-break: anywhere;
}

.tvfaqs-answer-layout2 p,
.faqs-answer p {
    color: #5a5757;
    word-wrap: break-word;
    margin-bottom: 0;
    font-size: .9em;
    line-height: 1.5;
    font-family: var(--text-font);
    letter-spacing: .2px;
}

.tvfaqs-question:hover {
    background-color: #f8f9fa;
}

.tvfaqs-faq-item .tvfaqs-answer,
.tvfaqs-answer {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

.tvfaqs-rate-this>span,
.tvfaqs-current-rating>span {
    font-size: 16px;
    color: #232323;
    font-weight: 500;
    font-family: var(--text-font);
}

.tvfaqs-rate-this,
.tvfaqs-current-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    font-size: 16px;
    flex-wrap: wrap;
}

.tvfaqs-current-rating {
    margin-bottom: 10px;
}

.tvfaqs-already-rated {
    margin-top: 10px;
    color: #27ae60;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .4px;
}

.tvfaqs-like-dislike-section .tvfaqs-like-text {
    font-size: 14px;
    color: var(--text-black);
    font-weight: 500;
}

.tvfaqs-like-dislike-section .tvfaqs-dislike-text {
    font-size: 14px;
    color: var(--text-black);
    font-weight: 500;
}

.tvfaqs-dislike-wrapper,
.tvfaqs-like-wrapper {
    display: flex;
    align-items: center;
}

.tvfaqs-choice-btn i {
    font-size: 22px;
}

#growls .growl {
    margin-left: auto;
}

.comment-count,
.comment-title {
    font-size: 16px;
    color: #232323;
}

.no-comments-desc {
    font-family: var(--text-font);
    color: #5a5757;
    font-size: 16;
}

.tvfaqs-layout-layout1 .tvfaqs-comments-section {
    padding-top: 10px;
}

.tvfaqs-reply-form-toggle .reply-title {
    font-size: 14px;
}

/* Homepage FAQ Block end */


/*homepafe layout 2 start*/
.tvfaqs-layout-layout2 .tvfaqs-list {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: start;
}

.tvfaqs-layout-layout2 .tvfaqs-faq-item {
    width: calc(50% - 8px);
    margin-bottom: 0;
}

.tvfaqs-layout-layout2 .tvfaqs-like-dislike-section {
    margin-top: 0;
}

.tvfaqs-layout-layout2 .tvfaqs-card-actions {
    margin-top: 25px;
    justify-content: space-between;
}

.tvfaqs-layout-layout2 .tvfaqs-comments-count i {
    font-size: 22px;
}

.tvfaqs-layout-layout2 .comment-count {
    color: var(--text-black);
}

.tvfaqs-layout-layout2 .avtar-name-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tvfaqs-layout-layout2 .tvfaqs-comment-header {
    margin-bottom: 0;
}

.tvfaqs-layout-layout2 .tvfaqs-comment-header {
    display: block;
}

.tvfaqs-layout-layout2 .tvfaqs-comment-header strong {
    max-width: 100%;
}

.tvfaqs-layout-layout2 .tvfaqs-comment-datetime {
    color: #888;
    font-size: 12px;
}

.tvfaqs-layout-layout2 .avtar-date-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.tvfaqs-featured-badge {
    background: #28a745;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 3px;
    letter-spacing: 0.4px;
    display: inline-block;
}

/*homepafe layout 2 end*/

/*media start*/

@media (max-width: 768px) {
    .tvfaqs-grid-layout-2 {
        grid-template-columns: 1fr;
    }
}


@media (min-width: 992px) {
    .tvfaqs-grid-layout-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 1200px) {
    .tvfaqs-grid-layout-2 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .tvfaqs-search-block-layout-1 .row>div {
        text-align: center;
    }

    .tvfaqs-search-layout-1 .row>div {
        text-align: center;
    }

    .tvfaqs-search-layout-1 .tvfaqs-popular-topics {
        margin-top: 15px;
    }

    .tvfaqs-topics-list.nav-pills .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .tv-faq-ask-question-container-layout-4 .row>div {
        text-align: center !important;
    }

    .tv-faq-ask-question-container-layout-4 .text-right {
        text-align: center !important;
    }

    .tv-faq-ask-question-container .tv-faq-ask-question-header {
        text-align: center;
        /* Center align on small screens */
    }

    .tv-faq-ask-question-container-layout-1 {
        padding: 0;
        margin-bottom: 25px;
    }

    .tvfaqs-layout-layout2 .tvfaqs-faq-item {
        width: 100%;
    }

    .tv-faq-reply-submit.btn,
    .tv-faq-ask-question-submit.btn,
    .tvfaqs-search-layout-2 .tvfaqs-search-form button,
    .tvfaqs-search-layout-1 .tvfaqs-search-form button {
        padding: 8px 23px;
        font-size: 14px;
    }

    .tvfaqs-comment-header strong {
        font-size: 0.9rem;
    }

    .tvfaqs-comment-item {
        padding: 10px;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-form .tvfaqs-search-input {
        padding: 8px 18px 8px 50px;
        height: 40px;
    }

    .tv-faq-ask-question-container-layout-2 .btn-pill {
        padding: 7px 16px;
    }

    .tvfaqs-homepage-block .tvfaqs-view-all {
        padding: 4px 10px;
        font-size: 14px;
    }

    .tvfaqs-homepage-block {
        border-radius: 4px;
        padding: 12px;
    }

    .tvfaqs-homepage-block .tvfaqs-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .tvfaqs-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .tvfaqs-search-layout-1.card {
        padding: 20px;
        gap: 20px;
    }

    .tvfaqs-page-container h1 {
        font-size: 18px;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-section {
        padding-bottom: 20px;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-form .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-form .form-control {
        border-radius: 30px;
        margin-bottom: 15px;
        padding-right: 18px;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-form .input-group-append {
        margin-left: 0;
        width: 100%;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-form button {
        width: 100%;
    }

    .tvfaqs-search-layout-1 .tvfaqs-search-form .search-icon {
        left: 18px;
        top: 11px;
        transform: none;
    }

    .tvfaqs-search-layout-1 .tvfaqs-popular-topics-section .list-inline,
    .tvfaqs-search-layout-1 .tvfaqs-popular-topics-section {
        justify-content: center;
        text-align: center;
    }

    .tvfaqs-search-layout-1 .tvfaqs-popular-topics-section strong {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .tv-faq-ask-question-container-layout-2 .split-layout {
        flex-direction: column;
    }

    .tv-faq-ask-question-container-layout-2 .split-layout-right,
    .tv-faq-ask-question-container-layout-2 .split-layout-left {
        padding: 40px 25px;
    }

    .tvfaqs-comments-section-layout2 .tvfaqs-comment-item {
        flex-direction: column;
        gap: 10px;
    }

    .tvfaqs-comment-avatar {
        align-self: flex-start;
    }

    .tvfaqs-grid-layout-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tvfaqs-faq-card {
        margin-bottom: 15px;
    }

    .tvfaqs-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tvfaqs-card-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tvfaqs-grid-layout-2 .tvfaqs-faq-meta,
    .tvfaqs-faq-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tvfaqs-comments-section-layout2 .tvfaqs-comment-item {
        padding: 10px;
    }

    .tvfaqs-comments-section-layout2 .tvfaqs-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tvfaqs-comments-section-layout2 .tvfaqs-comment-header span {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .tvfaqs-grid-layout {
        grid-template-columns: 1fr;
    }

    .tvfaqs-page-container h1 {
        margin-bottom: 20px;
    }

    .tvfaqs-faq-card {
        padding: 15px;
    }

    .tvfaqs-grid-layout-2 .tvfaqs-faq-card {
        padding: 0;
    }

    .tvfaqs-card-header {
        padding: 10px 15px;
    }

    .tvfaqs-grid-layout-2 .tvfaqs-card-header {
        padding: 0;
    }


    .tvfaqs-question-title {
        font-size: 1rem;
    }

    .tvfaqs-card-body {
        padding: 15px;
    }

    .tvfaqs-card-footer {
        padding: 15px;
    }

    .tvfaqs-comments-section-layout2 .tvfaqs-comments-title {
        font-size: 1.1rem;
    }

    .tvfaqs-comments-section-layout2 .tvfaqs-comment-form-container {
        padding: 15px;
    }

    .tvfaqs-faq-item .tvfaqs-answer,
    .tvfaqs-answer {
        padding: 15px;
    }

    .tvfaqs-reply-form-container,
    .tvfaqs-comment-form-container {
        padding: 15px;
    }

    .tvfaqs-reply-form-toggle,
    .tvfaqs-comment-form-toggle {
        font-size: 14px;
    }

    .tvfaqs-comment-form-toggle i {
        font-size: 19px;
    }

    .tvfaqs-comment-form-container button {
        font-size: 14px;
        padding: 9px 15px;
    }

    .tvfaqs-topics-list.nav-pills .nav-link {
        font-size: 14px;
    }

    .tv-faq-ask-question-container-layout-1 .card-body {
        padding: 20px;
    }

    .tvfaqs-topics-title,
    .tvfaqs-topics-list.nav-pills {
        margin-bottom: 15px;
    }

    .tvfaqs-question {
        font-size: 15px;
    }

    .tvfaqs-answer .tvfaqs-answer-text p {
        font-size: 13px;
    }

    .tvfaqs-rate-this>span,
    .tvfaqs-current-rating>span,
    .tvfaqs-rate-this,
    .tvfaqs-current-rating {
        font-size: 14px;
    }

    .tvfaqs-stars-display,
    .tvfaqs-stars-input {
        font-size: 18px;
    }

    .tvfaqs-choice-btn i,
    .tvfaqs-layout-layout2 .tvfaqs-comments-count i {
        font-size: 20px;
    }

    .tvfaqs-grid-layout-2 .tvfaqs-posted-date i,
    .tvfaqs-grid-layout-2 .tvfaqs-author i {
        font-size: 21px;
    }
}

/*media end*/