/*
Theme Name: PHQ9
Theme URI: https://www.phq9.app
Author: Afshin Farahani
Author URI: https://www.artadesign.ir/
Description: PHQ9 is a professional customized WordPress theme designed for online PHQ-9 test. Built with modern web standards, this theme offers a clean, responsive design that adapts seamlessly across all devices. Features include optimized performance, SEO-friendly structure, custom post templates, and flexible customization options. Perfect for creating engaging content with an intuitive user experience.
Tags: blog, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, responsive-design, reviews
Version: 1.0
Requires at least: 5.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phq
*/


/* general style */

@font-face {
    font-family: "Font Awesome 7 Free";
    font-style: normal;
    src: url('./assets/fonts/fa-solid-900.woff2') format('woff2'),
    url('./assets/fonts/fa-brands-400.woff2') format('woff2'),
    url('./assets/fonts/fa-regular-400.woff2') format('woff2');
}


:root{
    --main-bg: #F9F9FB;
    --white-bg: #ffffff;
    --primary-green: #5903FD;
    --primary-text: #9E22FBFF;
    --primary-gold: #FFA101;
    --secondary-gold: #FFC106;
    --secondary-bg: #D9A6FE;
    --contet-text: #595959;
}

a {
    text-decoration: none;
}

a:hover {
    color: #000000;
}

ul {
    padding: 0;
    margin: 0;
}

ul li {
    list-style: none;
}

p {
    margin: 0;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--main-bg);

}

:focus-visible {
    outline: none !important;
}


/*Header Section*/
.header-section{
    background: var(--white-bg);
    box-shadow: 0 20px 40px 0 rgb(23 39 70 / 5%);
    z-index: 9;
    padding: 25px 10px;
    overflow: hidden;
}

.header-section::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(158, 34, 251, 1) 0%, rgba(217, 166, 255, 1) 100%);
}

.site-title{
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 25px;
}

/* main-menu */

.nav {
    text-align: center;
}

.menu-main-menu-container {
    width: 100%;
}

.menu-main-menu-container ul {
    margin: 0;
    padding: 0;
    text-align: center;
}

.menu-main-menu-container > ul > li {
    display: inline-block;
    margin: 0 15px;

}

.menu-main-menu-container ul li:first-of-type {
    margin-left: 0;
}

.menu-main-menu-container ul li a {
    font-family: iransansx, sans-serif;
    font-weight: 500;
    color: #232323;
    font-size: 19px;
    font-variation-settings: "wght" 500, "DOTS" 8;
}

#menu-main-menu ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: 250px;
}

#menu-main-menu ul.sub-menu li {
    display: block;
    transition: ease-in-out 500ms;
    line-height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

#menu-main-menu ul.sub-menu li:last-of-type {
    border: none;
}

#menu-main-menu .menu-item-has-children:hover > ul.sub-menu {
    position: absolute;
    top: 100px;
    background: #9f22fb;
    box-shadow: 0 10px 40px rgb(0 0 0 / 8%);
    width: 250px;
    right: 0;
    padding: 10px;
    border-radius: 5px;
    visibility: visible;
    opacity: 1;
    transition: opacity ease-in-out 500ms;
    z-index: 10;
}

li.menu-item-has-children {
    position: relative;
}


li.menu-item-has-children > a::before {
    position: absolute;
    content: "\f0dd";
    font-family: "Font Awesome 7 Free", sans-serif;
    left: -12px;
    top: 0;
    font-size: 12px;
}

li.menu-item-has-children ul.sub-menu li a {
    font-weight: 500;
    font-variation-settings: "wght" 500, "DOTS" 8;
    font-size: 16px;
    transition: ease-in-out 300ms;
    margin-right: 15px;
    color: #fff;
}

li.menu-item-has-children ul.sub-menu li:hover a {
    margin-right: 20px;
    transition: ease-in-out 300ms;
}

li.menu-item-has-children ul.sub-menu li {
    position: relative;
    text-align: right;
}

li.menu-item-has-children ul.sub-menu li::before {
    position: absolute;
    content: "\f0d9";
    font-family: "Font Awesome 7 Free", sans-serif;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #e0e0e0;
}

#menu-mobile-menu li.menu-item-has-children ul.sub-menu li::before {
    top: 15px;
}

#menu-mobile-menu li:last-of-type {
    border: none;
    padding-bottom: 0;
}

#menu-main-menu > li:hover > a {
    color: var(--secondary-gold);
}

.menu-main-menu-container > ul > li.current_page_item a {
    color: var(--secondary-gold);
}

.menu-button a {
    display: flex;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid #939394;
    justify-content: space-evenly;
}

.menu-button-bg {
    position: relative;
    background: #FFA101;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 50%;
}

.modal-body {
    padding: 50px;
}

.modal {
    z-index: 9999;
}


/* Side Panel Style */

#offcanvasmenu {
    z-index: 9999;
}

.offcanvas-header {
    justify-content: space-between;
}

.offcanvas-header-title {
    border-bottom: 1px solid #e5e5e5;
}

.offcanvas-header-title h2 {
    font-size: 20px;
    font-weight: 500;
    font-variation-settings: "wght" 500, "DOTS" 8;
}

#menu-mobile-menu {
    padding: 20px 0 0 0;
}

#menu-mobile-menu li {
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

#menu-mobile-menu li:hover a{
    margin-left: 10px;
    transition: ease-in-out 300ms;
    color: #000;
}

#menu-mobile-menu li a {
    color: #232323;
    font-size: 16px;
    transition: ease-in-out 300ms;
}

#menu-mobile-menu .current-menu-item a,
.header-section .current-menu-item a{
    color: var(--primary-text) !important;
}

#menu-mobile-menu li ul.sub-menu {
    display: none;
}

.canvas-main-title{
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
}

.show-mobile-submenu > ul.sub-menu {
    display: block !important;
    padding: 10px 15px 10px 0;
}

#menu-mobile-menu li.menu-item-has-children > a::before {
    position: absolute;
    font-family: "Font Awesome 7 Free", sans-serif;
    content: "\f0d7";
    left: 0;
    font-size: 22px;
    color: rgb(229 229 229);
    padding: 8px;
}

.mobile-disclaimer{
    color: #808080;
    font-size: 14px;
    margin-top: 30px;
    text-align: justify;
}


/*Main Section*/

.main-section{
    margin-top: 100px;
    padding: 80px 0;
}

.main-title{
    font-weight: 600;
    color: #000;
    font-size: 28px;
    margin-bottom: 40px;
}

.main-title span{
    font-weight: 700;
    color: var(--primary-text);
    font-size: 32px;
}

#phq9-question-container{
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

#phq9-progress-bar{
    background-color: var(--secondary-bg) !important;
}

/*FAQ section*/
.faq-wrapper {
}

.faq-accordion .accordion-item {
    overflow: hidden;
    border-radius: 20px;
    border: none;
    margin-bottom: 25px;
}

.faq-accordion .accordion-button {
    background: transparent;
    box-shadow: none !important;
    border: none;
    font-weight: 600;
    padding: 18px 20px;
    border-radius: 20px;
    font-family: 'Bricolage', sans-serif;
    color: #000;
    font-size: 18px;
}

.faq-accordion .accordion-collapse {
    background: #FFD429 !important;
    transition: height .35s ease;
}

.faq-accordion .accordion-body {
    background: #FFD429 !important;
    text-align: justify;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transform: rotate(-180deg);
}

.faq-accordion .accordion-button.collapsed::after {
    transform: rotate(0deg);
}

.faq-accordion .accordion-item.show,
.faq-accordion .accordion-item .accordion-collapse.show {
    background: #FFD429 !important;
}

.faq-accordion .accordion-item .accordion-collapse.show .accordion-body {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #FFD429;
    border-radius: 20px 20px 0 0;
}

.faq-img {
    object-fit: cover;
    border-radius: 20px;
}


.faq-img-wrapper {
    position: relative;
    transform: translate(0px, 0px);
    opacity: 1;
    visibility: inherit;
    overflow: hidden;
}

.faq-img-wrapper::after {
    content: "";
    position: absolute;
    width: 250%;
    height: 0;
    left: 50%;
    top: 50%;
    background-color: rgba(255, 255, 255, .3);
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
}

.faq-img-wrapper:hover::after {
    height: 250%;
    transition: all 400ms linear;
    background-color: transparent;
}

.third-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.2em;
    margin-left: 10px;
}


/*Blog section*/

.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}


.latest-blog .blog-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.latest-blog .blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-blog .card {
    border-radius: 20px;
}

.latest-blog .card-body {
    padding: 1.25rem 1.5rem;
}


.card-title {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 10px 0 20px 0;
}

.card-title a {
    color: #000;
    transition: all ease-in-out 300ms;
    font-size: 1.15rem;
}

.card-title:hover a {
    color: var(--primary-green);
    transition: all ease-in-out 300ms;
}



.read-more-button a {
    text-decoration: none;
    background: var(--primary-gold);
    padding: 5px 10px;
    border-radius: 15px;
    color: #fff;
    transition: all ease-in-out 300ms;
}

.read-more-button:hover a {
    color: #000;
    transition: all ease-in-out 300ms;
}

/*About Section*/

#about-wrapper p{
    color: var(--contet-text);
    text-align: justify;
    line-height: 32px;
}

#about-wrapper h3{
    font-size: 22px;
    font-weight: 600;
    padding: 20px 0 10px 0;
}

#about-wrapper ol li{
    color: var(--contet-text);
}

/* footer Section Style */

.footer-section {
    background: #1C242F;
    position: relative;
    padding: 40px 30px;

}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(158, 34, 251, 1) 0%, rgba(217, 166, 255, 1) 100%);
}

.contact-item {
    color: #bababa;
    margin: 10px 0;
    font-size: 15px;
}

.footer-social-icons {
    border-top: 2px dashed #334d60;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-social-icons a i {
    font-size: 34px;
    margin: 0 7px;
    background: #334d60;
    padding: 10px;
    border-radius: 10px;
}

.copyright-section {
    background: #111822;
    padding-top: 10px;
    padding-bottom: 10px;
}

.copyright-section p {
    color: #bababa;
    font-size: 14px;
}

.copyright-section a {
    color: #ffa101;
}

.footer-content p {
    color: #bababa;
    font-size: 14px;
}

.footer-social i {
    font-size: 34px;
    margin: 20px 3px 0 3px;
    background: #334d60;
    padding: 5px;
    border-radius: 5px;
}

.fa-instagram {
    color: #C536A4;
}

.fa-whatsapp {
    color: #1AD741;
}

.fa-telegram {
    color: #3EB4E0;
}

.footer-content {
    text-align: justify;
    line-height: 32px;
    margin-top: 20px;
}

.footer-content-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

#menu-footer li {
    margin: 7px 0;
    position: relative;
}

#menu-footer li a {
    color: #bababa;
    font-size: 15px;
    transition: ease-in-out 400ms;
    margin-left: 20px;
}

#menu-footer li::before {
    position: absolute;
    content: "\f192";
    font-family: "Font Awesome 7 Free", sans-serif;
    left: 0;
    top: 3px;
    font-size: 15px;
    font-weight: 400;
    color: var(--contet-text);
}

#menu-footer li:hover a {
    margin-left: 25px;
    transition: ease-in-out 400ms;
}

#menu-footer .current-menu-item a{
    color: var(--secondary-gold) !important;
}

.footer-call-section {
    background: #f5f2ec;
}

.section-title{
    color: var(--primary-text);
}


.toggle-collapse{
    text-decoration: none;
    background: var(--primary-gold);
    padding: 5px 15px;
    border-radius: 15px;
    color: #fff;
    transition: all ease-in-out 300ms;
    margin-top: 20px;
}

.toggle-collapse:hover{
    background: var(--primary-gold);
    color: #000;
    transition: all ease-in-out 300ms;
}

/*Page-style*/

.page-content {
    min-height: 800px;
}

.page-title-wrapper {
    background: linear-gradient(135deg, #6C3BFF 0%, #9D4EFF 100%);
    padding: 10rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}


.page-title {
    font-family: sans-serif;
    font-size: 1.8rem;
    color: #fff;
}

.page-content {
    padding: 30px 10px;
    line-height: 30px;
    font-size: 1.1rem;
}

.page-header-section{
    padding: 25px 10px;
    transition: background-color ease-in-out 300ms;
}

.page-header-section .site-title{
    color: #fff;
}


.page-header-section .menu-main-menu-container ul li a{
    color: #fff;
}

.page-header-section .menu-main-menu-container > ul > li.current_page_item a{
    color: var(--secondary-gold);
}


.page-header-section #menu-main-menu > li:hover > a {
    color: var(--secondary-gold);
}


.page-header-section .current-menu-item a {
    color: var(--secondary-gold) !important;
}

.scrolled {
    top: 0;
    transform: translateY(0);
    background-color: rgb(0 0 0 / 40%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color ease-in-out 300ms;
}

.page-header-section .menu-button a{
    border-color: #eaeaea;
}

/*Single Page Style*/

.single-content-img img{
    border-radius: 20px;
}

.page-content-section,
.single-page-content{
    line-height: 35px;
    font-size: 1.12rem;
    color: var(--contet-text);
    text-align: justify;
}

.page-content-section h2,
.single-page-content h2{
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    padding: 20px 0 5px 0;
}

.page-content-section h3,
.single-page-content h3{
    font-size: 1.45rem;
    font-weight: 600;
    color: #000;
    padding: 20px 0 5px 0;
}

.page-content-section h4,
.single-page-content h4{
    font-size: 1.30rem;
    font-weight: 600;
    color: #000;
    padding: 20px 0 5px 0;
}


.page-content-section a,
.single-page-content a{
    color: var(--primary-green);
}

ul.wp-block-list{
    margin: 15px 0;
}

ul.wp-block-list li{
    position: relative;
    padding-left: 25px;
    margin-left: 20px;
}

ul.wp-block-list li::before{
    font-family: "Font Awesome 7 Free", sans-serif;
    content: '\f058';
    position: absolute;
    left: 0;
    color: var(--secondary-gold);
}


.page-content-section table thead tr,
.single-page-content table thead tr{
    background: #2980b9;
    color: #fff;
}


.wp-block-table td, .wp-block-table th{
    border: none !important;
}

.wp-block-table table {
    border-collapse: separate !important;
    font-size: 1rem;
}

/*Category Style*/

.category-wrapper-inner{
    background: #ffffff;
    box-shadow: 0 20px 40px 0 rgb(23 39 70 / 5%);
    margin-top: 20px;
    padding: 20px;
    line-height: 35px;
    margin-bottom: 30px;
    color: var(--contet-text);
    text-align: justify;
}

.category-post-title a{
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.category-post-content{
    line-height: 28px;
}

.category-post-footer {
    background: var(--primary-text);
    padding: 5px 10px;
    color: #fff;
}

.category-post-footer a {
    color: #fff;
}

.col-12:not(:first-child) .category-wrapper-inner {
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
    padding-top: 30px;
}