/* Single Case Styles - Independent */

/* Header styles */
header {
    background-color: #161615;
    padding-top: 15px;
    padding-bottom: 15px;
}

header.fixed {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Links styles */
.articleContent.simpleText a {
    text-decoration: underline;
    transition: text-decoration 0.3s ease;
    margin-bottom: 0px;
}

.articleContent.simpleText a:hover {
    text-decoration: none;
}

h2 {
  color: #161615;
}

p img {
    display: block;
    margin: 0 auto;
}

/* WordPress alignment classes - restore standard behavior */
.articleContent .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.articleContent .alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.articleContent .aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.simpleText * {
  color: #161615;
  line-height: 1.3;
  margin-bottom: 0px;
}

/* Article page section */
.article_page_section {
    background: #f5f5f5;
}

.case-article-section .case-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Article page section - override main.css */
.article_page_section .itemTitle {
    display: block;
    font-family: 'TT Commons', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 36px;
    color: #000 !important;
    margin-bottom: 25px;
    text-align: center;
}

@media(min-width:991px){
  .article_page_section .itemTitle{
    font-size: 48px;
    line-height: 50px;
  }
}

/* Override main.css - remove max-width from siteWidth */
@media(min-width:991px){
  .article_page_section .siteWidth{
    max-width: 1160px   ;
  }
}

.article_page_populars .innerWrapper .article_item {
    padding: 10px;
    background: #f5f5f5;
    box-shadow: none;
}

@media (min-width: 1140px) {
    .article_page_section .imgWrap {
        max-width: 720px;
        margin: 0 0 0 200px;
    }
}

/* Image wrapper */
.imgWrap {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.imgWrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Meta block - override main.css */
.article_page_section .metaBlock .metaItem {
    display: flex;
    margin-right: 25px;
    margin-bottom: 10px;
}

.article_page_section .metaBlock .metaItem .icon{
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-right: 10px;
}

.article_page_section .metaBlock .metaItem span {
    font-family: 'TT Commons', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #333 !important;
}

.article_page_section .metaBlock .metaItem:last-child{
    margin-right: 0;
}

.article_page_section .metaBlock {
    row-gap: 10px;
    width: 690px;
}

.categoryBlock {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.categoryLink {
    background: #e0e0e0;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categoryLink:hover {
    background: #d0d0d0;
    color: #000;
}

/* Article content */
.articleContent {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

.articleContent h2 {
    font-size: 32px;
    margin: 40px 0 20px 0;
    color: #000;
}

.articleContent h3 {
    font-size: 26px;
    margin: 30px 0 15px 0;
    color: #000;
}

.articleContent p {
    margin-bottom: 20px;
    color: #000;
}

.articleContent ul,
.articleContent ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.articleContent li {
    margin-bottom: 10px;
    color: #000;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.articleContent li::before {
    content: "•";
}

/* FAQ Section - override main.css */
.zoho_landing_section_faq {
    background: #f5f5f5;
    padding-top: 0;
}

.zoho_landing_section_faq h3.title {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'TT Commons', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: #000 !important;
}

.zoho_landing_section_faq .faq-accordion-section {
    max-width: 100%;
    margin: 0 auto;
}

.zoho_landing_section_faq .faq-item {
    border: 1px solid #3B3F49;
    border-radius: 15px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.zoho_landing_section_faq .faq-item[open] {
    border-color: #F16522;
    border-width: 3px;
}

.zoho_landing_section_faq .faq-question {
    display: block;
    padding: 20px 25px;
    font-family: 'TT Commons', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #000 !important;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.zoho_landing_section_faq .faq-question:hover {
    color: #F16522;
}

.zoho_landing_section_faq .answer-content {
    padding: 0 25px 20px 25px;
}

.zoho_landing_section_faq .answer-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000 !important;
}

/* Form Section */
.section11.article_page {
    background: #f5f5f5;
    padding: 10px 0;
}

.formBlock .wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.formBlock .title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.formBlock .text {
    color: #333;
    font-size: 22px;
    line-height: 1.1;
}

/* Popular Articles Section - override main.css */
.article_page_populars {
    background: #f5f5f5;
    padding: 60px 0;
}

.article_page_populars .title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    text-align: center;
}

.innerWrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article_item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    padding: 0;
}

.article_item:hover {
    transform: translateY(-5px);
}

.article_item .wrapper .imgWrap {
    height: 220px;
    position: relative;
    margin-bottom: 20px;
}

.article_item .wrapper .imgWrap img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article_item .wrapper .metaBlock {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.article_item .wrapper .metaBlock .metaItem {
    display: flex;
    margin-right: 25px;
}

.article_item .wrapper .metaBlock .metaItem:last-child {
    margin-right: 0;
}

.article_item .wrapper .metaBlock .metaItem .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-right: 10px;
}

.article_item .wrapper .metaBlock .metaItem span {
    font-family: 'TT Commons', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #333 !important;
}

.article_item .wrapper .itemTitle {
    display: block;
    font-family: 'TT Commons', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    color: #333 !important;
    margin-bottom: 25px;
    padding: 0 20px;
    text-decoration: none;
}

.article_item .wrapper .itemTitle:hover {
    color: #333;
}

.article_item .wrapper .categoriesBlock {
    padding: 0 20px 20px 20px;
}

.article_item .wrapper .categoryLink {
    display: inline-block;
    color: #505561;
    font-family: 'TT Commons', sans-serif;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
}

.article_item .wrapper .categoryLink:hover {
    color: #F16522;
}

/* Tags block */
.tagsBlock {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tagItem {
    background: #e8e8e8;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tagItem:hover {
    background: #d8d8d8;
    color: #000;
}

/* Socials block */
.case-socials {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.case-socials-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.case-socials-links {
    display: flex;
    gap: 15px;
}

.case-socials-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.case-socials-links a:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.case-socials-links svg {
    width: 18px;
    height: 18px;
    fill: #666;
}

.articleContent blockquote::before {
    filter: brightness(0) invert(0.8);
}

.articleContent blockquote::before,
.articleContent blockquote::after {
    color: #cccccc !important;
}

/* Footer CRM column split */
.footerTop .innerWrapper .column:nth-child(2) {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}

.footerTop .innerWrapper .column:nth-child(2) .menuTitle {
    text-align: center;
    margin-bottom: 20px;
}

.footerTop .innerWrapper .column:nth-child(2) ul {
    display: flex;
    flex-wrap: wrap;
}

.footerTop .innerWrapper .column:nth-child(2) ul li {
    flex: 0 0 calc(50% - 8px);
    margin-bottom: 8px;
}

@media (min-width: 576px) {
    .article_page_section {
        padding-top: 150px;
    }
}

@media (min-width: 765px) {
    footer .footerTop .innerWrapper .column ul {
        text-align: center; 
    }
}

@media (min-width: 1440px) {
    header {
        padding: 0px 45px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    
    /* Reset alignment classes on mobile - stack vertically */
    .articleContent .alignleft,
    .articleContent .alignright {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5em;
    }
    
    .itemTitle {
        font-size: 32px;
    }
    
    .metaBlock {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .formBlock .wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .innerWrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .zoho_landing_section_faq .title,
    .article_page_populars .title {
        font-size: 28px;
    }
    
    .section11 .formBlock {
        padding-top: 0;
        margin-left: 10px;
        margin-right: 10px;
    }

    .section11.article_page {
        padding-top: 40px;
        padding-bottom: 100px;
    }

    .article_page_section .metaBlock {
        display: flex !important;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        flex-direction: row !important;
        width: auto;
    }

    .article_page_section .metaBlock .metaItem {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        min-width: auto !important;
        width: auto !important;
        margin-right: 15px !important;
        margin-bottom: 5px !important;
    }

    .article_page_section .metaBlock .categoryBlock {
        display: flex !important;
        flex-wrap: wrap;
        gap: 5px;
        width: auto !important;
        margin: 0 !important;
        margin-bottom: 5px !important;
    }

    .categoryBlock {
        display: flex !important;
        flex-wrap: wrap;
        gap: 5px;
    }

    .article_page_section .articleContent {
        margin-top: 20px;
    }

    .article_item .wrapper .metaBlock {
        display: flex !important;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        flex-direction: row !important;
    }

    .article_item .wrapper .metaBlock .metaItem {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        min-width: auto !important;
        width: auto !important;
        margin-right: 15px !important;
        margin-bottom: 5px !important;
    }
    
    .article_item .wrapper .itemTitle {
        margin-top: 20px;
    }

    .zoho_landing_section_faq {
        padding-top: 0px;
        padding-bottom: 10px;
    }
    .article_page_populars {
        padding: 0;
    }
    .simpleText * {
        font-size: 22px;
    }
    
    .zoho_landing_section_faq .faq-question {
        padding: 20px 18px;
    }

    .zoho_landing_section_faq .faq-question::after {
        right: 20px;
    }
}
