/* Consultation Booking Boxes Styles - Optimized for SEO */
/* Moved from inline styles to improve Content-to-HTML ratio */

/* Global Page Overflow Prevention — keep overflow-x on body only; html overflow-x breaks sticky header */
body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

html {
    max-width: 100%;
}

/* Global Image Responsive Fix - Applies to all images in content */
.primary-block img,
article img,
.single-post-content img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    display: block;
}

/* Post Featured Image - Desktop Size Optimization */
.post-featured-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .post-featured-image {
        max-width: 80%;
        max-height: 450px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media (min-width: 1024px) {
    .post-featured-image {
        max-width: 75%;
        max-height: 500px;
    }
}

/* Single Post Layout with Sidebar */
.single-post-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.single-post-content {
    flex: 1;
    min-width: 0;
}

.single-post-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.6;
}

.sidebar-widget ul li a:hover {
    color: #ff434c;
}

.sidebar-widget .recent-posts-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sidebar-widget .recent-posts-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-widget .recent-posts-item-content {
    flex: 1;
}

.sidebar-widget .recent-posts-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-widget .recent-posts-item-date {
    font-size: 12px;
    color: #999;
}

.sidebar-widget .categories-list li {
    padding: 10px 0;
}

.sidebar-widget .categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-widget .categories-list li span {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* Responsive Sidebar */
@media (max-width: 991px) {
    .single-post-layout {
        flex-direction: column;
    }
    
    .single-post-sidebar {
        width: 100%;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
}

.consultation-booking-box {
    margin-top: 0;
    margin-bottom: 30px;
}
.consultation-booking-box .primary-block {
    background: linear-gradient(135deg, #ff434c 0%, #e63946 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 67, 76, 0.3);
}
.consultation-booking-box .booking-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    color: #fff;
}
.consultation-booking-box .booking-description {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #fff;
}
.consultation-booking-box .booking-description strong {
    color: #fff;
    font-weight: 700;
}
.consultation-booking-box .booking-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    color: #fff;
}
.consultation-booking-box .booking-whatsapp-btn {
    background: #25D366;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.consultation-booking-box .booking-whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.consultation-booking-box .booking-whatsapp-btn .ti-whatsapp {
    font-size: 24px;
}

/* Simple Consultation Box at End */
.simple-consultation-box {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    background: #f8f9fa;
    margin-top: 40px;
}
.simple-booking-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.simple-booking-text {
    font-size: 18px;
    color: #333;
    margin: 0;
    line-height: 1.6;
}
.simple-booking-text strong {
    color: #ff434c;
    font-weight: 600;
}
.simple-whatsapp-btn {
    background: #25D366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}
.simple-whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-1px);
}
.simple-whatsapp-btn .ti-whatsapp {
    font-size: 20px;
}

/* Article Content Lists with Icons */
.rich-content ul,
.post-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.rich-content ul li,
.post-content ul li {
    position: relative;
    padding: 12px 0 12px 40px;
    line-height: 1.8;
    color: #555;
}

.rich-content ul li:before,
.post-content ul li:before {
    content: "";
    font-family: inherit !important;
    position: absolute;
    left: 0;
    top: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #25aae1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.2' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    color: transparent;
    font-size: 0;
    font-weight: normal;
    line-height: 1;
    display: block;
    box-shadow: 0 4px 10px rgba(37, 170, 225, 0.28);
}

/* RTL Support */
[dir="rtl"] .rich-content ul li,
[dir="rtl"] .post-content ul li {
    padding-right: 40px;
    padding-left: 0;
}

[dir="rtl"] .rich-content ul li:before,
[dir="rtl"] .post-content ul li:before {
    left: auto;
    right: 0;
}

/* Nested Lists */
.rich-content ul ul,
.post-content ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
}

[dir="rtl"] .rich-content ul ul,
[dir="rtl"] .post-content ul ul {
    padding-left: 0;
    padding-right: 20px;
}

.rich-content ul ul li:before,
.post-content ul ul li:before {
    content: "";
    width: 18px;
    height: 18px;
    top: 16px;
    background-color: #283891;
    background-size: 9px;
}

[dir="rtl"] .rich-content ul ul li:before,
[dir="rtl"] .post-content ul ul li:before {
    content: "";
}

/* Ordered Lists Styling */
.rich-content ol,
.post-content ol {
    padding-left: 0;
    margin: 20px 0;
    counter-reset: list-item;
    list-style: none;
}

[dir="rtl"] .rich-content ol,
[dir="rtl"] .post-content ol {
    padding-left: 0;
    padding-right: 0;
}

.rich-content ol li,
.post-content ol li {
    padding: 10px 0 10px 42px;
    line-height: 1.8;
    color: #555;
    position: relative;
    counter-increment: list-item;
}

[dir="rtl"] .rich-content ol li,
[dir="rtl"] .post-content ol li {
    padding: 10px 42px 10px 0;
}

/* Ordered List Numbers Styling */
.rich-content ol li:before,
.post-content ol li:before {
    content: counter(list-item);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #283891, #25aae1);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(40, 56, 145, 0.22);
}

[dir="rtl"] .rich-content ol li:before,
[dir="rtl"] .post-content ol li:before {
    left: auto;
    right: 0;
}

/* Single Post Page - Info Head Responsive */
.info-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.info-head .info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.info-head .info span,
.info-head .info time {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-head .social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.info-head .social span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-right: 0;
    white-space: nowrap;
}

.info-head .social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-head .social a,
.info-head .social a::before,
.info-head .social a::after {
    color: #ffffff !important;
}

/* Ripple effect on hover - using ::after */
.info-head .social a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.info-head .social a:hover::after {
    width: 120%;
    height: 120%;
}

.info-head .social a i {
    position: relative;
    z-index: 1;
    color: #ffffff !important;
}

/* Ensure icons are white - Force white color for all icon elements */
.info-head .social a.ti-facebook,
.info-head .social a.ti-twitter,
.info-head .social a.ti-linkedin,
.info-head .social a.ti-whatsapp {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
}

/* Force white for pseudo-elements that might contain icons */
.info-head .social a.ti-facebook::before,
.info-head .social a.ti-twitter::before,
.info-head .social a.ti-linkedin::before,
.info-head .social a.ti-whatsapp::before,
.info-head .social a.ti-facebook::after,
.info-head .social a.ti-twitter::after,
.info-head .social a.ti-linkedin::after,
.info-head .social a.ti-whatsapp::after {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* For SVG icons if any */
.info-head .social a svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* For font icons - ensure they inherit white color */
.info-head .social a[class*="ti-"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Ensure ::before pseudo-element displays the icon - centered */
.info-head .social a.ti-facebook::before,
.info-head .social a.ti-twitter::before,
.info-head .social a.ti-linkedin::before,
.info-head .social a.ti-whatsapp::before {
    display: block !important;
    font-family: "tornado-icons" !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    font-size: 18px !important;
}

.info-head .social a.ti-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fcc 100%);
}

.info-head .social a.ti-facebook::before {
    content: "\f22b" !important;
}

.info-head .social a.ti-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.info-head .social a.ti-twitter::before {
    content: "\f27a" !important;
}

.info-head .social a.ti-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.info-head .social a.ti-linkedin::before {
    content: "\f250" !important;
}

.info-head .social a.ti-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.info-head .social a.ti-whatsapp::before {
    content: "\f285" !important;
}

.info-head .social a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.info-head .social a:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

/* Post Content Images Responsive - Comprehensive Control */
/* Base responsive rules for all images in article content */
.rich-content img,
.post-content img,
.rich-content img[width],
.post-content img[width],
.rich-content img[height],
.post-content img[height] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-sizing: border-box;
    object-fit: contain;
}

/* Images inside paragraphs, divs, and other containers */
.rich-content p img,
.post-content p img,
.rich-content div img,
.post-content div img,
.rich-content figure img,
.post-content figure img,
.rich-content article img,
.post-content article img,
.rich-content section img,
.post-content section img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Figure elements containing images */
.rich-content figure,
.post-content figure {
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

.rich-content figure img,
.post-content figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.rich-content figcaption,
.post-content figcaption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.5;
}

/* Picture elements for responsive images */
.rich-content picture,
.post-content picture {
    display: block;
    max-width: 100%;
    margin: 20px auto;
}

.rich-content picture img,
.post-content picture img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Images with inline styles - override them */
.rich-content img[style*="width"],
.post-content img[style*="width"],
.rich-content img[style*="height"],
.post-content img[style*="height"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Images inside links */
.rich-content a img,
.post-content a img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

/* Images inside tables - make them responsive */
.rich-content table img,
.post-content table img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 5px auto;
}

/* WordPress block images */
.rich-content .wp-block-image,
.post-content .wp-block-image {
    margin: 20px 0;
    max-width: 100%;
}

.rich-content .wp-block-image img,
.post-content .wp-block-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Aligned images (left, right, center) - Prevent Overflow */
.rich-content img.alignleft,
.post-content img.alignleft,
.rich-content .alignleft img,
.post-content .alignleft img {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 50% !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box;
}

.rich-content img.alignright,
.post-content img.alignright,
.rich-content .alignright img,
.post-content .alignright img {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 50% !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box;
}

.rich-content img.aligncenter,
.post-content img.aligncenter,
.rich-content .aligncenter img,
.post-content .aligncenter img {
    display: block;
    margin: 20px auto;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    float: none;
    box-sizing: border-box;
}

/* Prevent aligned images from causing overflow on smaller screens */
@media (max-width: 767px) {
    .rich-content img.alignleft,
    .post-content img.alignleft,
    .rich-content .alignleft img,
    .post-content .alignleft img,
    .rich-content img.alignright,
    .post-content img.alignright,
    .rich-content .alignright img,
    .post-content .alignright img {
        float: none !important;
        display: block !important;
        margin: 15px auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* RTL support for aligned images */
[dir="rtl"] .rich-content img.alignleft,
[dir="rtl"] .post-content img.alignleft,
[dir="rtl"] .rich-content .alignleft img,
[dir="rtl"] .post-content .alignleft img {
    float: right;
    margin: 10px 0 10px 20px;
}

[dir="rtl"] .rich-content img.alignright,
[dir="rtl"] .post-content img.alignright,
[dir="rtl"] .rich-content .alignright img,
[dir="rtl"] .post-content .alignright img {
    float: left;
    margin: 10px 20px 10px 0;
}

/* Clear floats after images */
.rich-content::after,
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

.rich-content iframe,
.post-content iframe,
.rich-content video,
.post-content video {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    box-sizing: border-box;
}

/* Post Content Typography */
.rich-content h1,
.post-content h1 {
    font-size: 32px;
    margin: 30px 0 20px;
    line-height: 1.3;
}

.rich-content h2,
.post-content h2 {
    font-size: 28px;
    margin: 25px 0 18px;
    line-height: 1.3;
}

.rich-content h3,
.post-content h3 {
    font-size: 24px;
    margin: 20px 0 15px;
    line-height: 1.4;
}

.rich-content h4,
.post-content h4 {
    font-size: 20px;
    margin: 18px 0 12px;
    line-height: 1.4;
}

.rich-content p,
.post-content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 15px 0;
    color: #333;
}

.rich-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.rich-content table th,
.post-content table th,
.rich-content table td,
.post-content table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: right;
}

[dir="ltr"] .rich-content table th,
[dir="ltr"] .post-content table th,
[dir="ltr"] .rich-content table td,
[dir="ltr"] .post-content table td {
    text-align: left;
}

/* Page Head Responsive */
.page-head {
    padding: 40px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.page-head h1 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-head .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.page-head .breadcrumb a,
.page-head .breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-head .breadcrumb a:hover {
    color: #fff;
}

.page-head .breadcrumb span {
    opacity: 0.7;
}

/* Container Responsive - Prevent Overflow (scoped — do not affect site header) */
.primary-block .container,
.single-post-content .container,
article .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Section Small - Prevent Overflow */
.section-small {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Single Post Layout - Prevent Overflow */
.single-post-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Single Post Content - Prevent Overflow and Fix Alignment */
.single-post-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Primary Block - Prevent Overflow */
.primary-block {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Rich Content and Post Content - Prevent Overflow */
.rich-content,
.post-content {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

/* Ensure all direct children don't overflow */
.rich-content > *,
.post-content > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix for images causing right shift */
.rich-content img,
.post-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none !important;
}

/* Clear any floats that might cause issues */
.rich-content::before,
.rich-content::after,
.post-content::before,
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Prevent tables from causing overflow */
.rich-content table,
.post-content table {
    max-width: 100% !important;
    width: 100% !important;
    table-layout: auto;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Prevent iframes and videos from causing overflow */
.rich-content iframe,
.post-content iframe,
.rich-content video,
.post-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Responsive Styles - Tablet */
@media (max-width: 991px) {
    .primary-block .container,
    .single-post-content .container,
    article .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .section-small {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .single-post-layout {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .single-post-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .primary-block {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .rich-content,
    .post-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .single-post-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .page-head {
        padding: 30px 0;
        min-height: 180px;
    }
    
    .page-head h1 {
        font-size: 28px;
    }
    
    .info-head {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-head .social {
        width: 100%;
        justify-content: flex-start;
    }
    
    .rich-content h1,
    .post-content h1 {
        font-size: 28px;
    }
    
    .rich-content h2,
    .post-content h2 {
        font-size: 24px;
    }
    
    .rich-content h3,
    .post-content h3 {
        font-size: 20px;
    }
    
    /* Tablet Images - Optimal sizing */
    .rich-content img,
    .post-content img,
    .rich-content figure img,
    .post-content figure img,
    .rich-content picture img,
    .post-content picture img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        margin: 18px auto;
    }
    
    /* Aligned images on tablet - reduce max-width */
    .rich-content img.alignleft,
    .post-content img.alignleft,
    .rich-content .alignleft img,
    .post-content .alignleft img,
    .rich-content img.alignright,
    .post-content img.alignright,
    .rich-content .alignright img,
    .post-content .alignright img {
        max-width: 45% !important;
    }
    
    /* Featured image on tablet */
    .post-featured-image {
        max-width: 90% !important;
        margin: 20px auto;
    }
}

/* Responsive Styles - Mobile */
@media (max-width: 767px) {
    .primary-block .container,
    .single-post-content .container,
    article .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section-small {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
    
    .single-post-layout {
        max-width: 100%;
        overflow-x: hidden;
        gap: 15px;
    }
    
    .single-post-content {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
    }
    
    .primary-block {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .rich-content,
    .post-content {
        max-width: 100% !important;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    /* Force all images to be centered and not cause overflow */
    .rich-content img,
    .post-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 15px auto !important;
        float: none !important;
        clear: both !important;
    }
    
    /* Remove any float that might cause issues */
    .rich-content .alignleft,
    .post-content .alignleft,
    .rich-content .alignright,
    .post-content .alignright {
        float: none !important;
        margin: 15px auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .page-head {
        padding: 25px 0;
        min-height: 150px;
    }
    
    .page-head h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .page-head .breadcrumb {
        font-size: 12px;
        gap: 8px;
    }
    
    .info-head {
        padding: 15px 0;
        gap: 12px;
    }
    
    .info-head .info {
        gap: 10px;
    }
    
    .info-head .info span,
    .info-head .info time {
        font-size: 12px;
    }
    
    .info-head .social {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .info-head .social span {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .info-head .social a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .consultation-booking-box .primary-block {
        padding: 25px 15px;
    }
    
    .consultation-booking-box .booking-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .consultation-booking-box .booking-description {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .consultation-booking-box .booking-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .consultation-booking-box .booking-whatsapp-btn {
        font-size: 15px;
        padding: 12px 20px;
        width: 100%;
    }
    
    .simple-consultation-box {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .simple-booking-text {
        font-size: 15px;
    }
    
    .simple-whatsapp-btn {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
    }
    
    /* Mobile Typography */
    .rich-content h1,
    .post-content h1 {
        font-size: 24px;
        margin: 25px 0 15px;
    }
    
    .rich-content h2,
    .post-content h2 {
        font-size: 22px;
        margin: 20px 0 12px;
    }
    
    .rich-content h3,
    .post-content h3 {
        font-size: 20px;
        margin: 18px 0 10px;
    }
    
    .rich-content h4,
    .post-content h4 {
        font-size: 18px;
        margin: 15px 0 8px;
    }
    
    .rich-content p,
    .post-content p {
        font-size: 15px;
        line-height: 1.7;
        margin: 12px 0;
    }
    
    /* Mobile List Icons */
    .rich-content ul li,
    .post-content ul li {
        padding-left: 30px;
        padding-right: 0;
        font-size: 14px;
    }
    
    [dir="rtl"] .rich-content ul li,
    [dir="rtl"] .post-content ul li {
        padding-right: 30px;
        padding-left: 0;
    }
    
    .rich-content ul li:before,
    .post-content ul li:before {
        font-size: 14px;
        top: 12px;
    }
    
    .rich-content ol li,
    .post-content ol li {
        font-size: 14px;
        padding: 8px 0;
    }
    
    /* Mobile Images - Force responsive and optimal sizing */
    .post-featured-image {
        margin: 15px 0;
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* All images in content - mobile optimization */
    .rich-content img,
    .post-content img,
    .rich-content img[width],
    .post-content img[width],
    .rich-content img[height],
    .post-content img[height],
    .rich-content p img,
    .post-content p img,
    .rich-content div img,
    .post-content div img,
    .rich-content figure img,
    .post-content figure img,
    .rich-content picture img,
    .post-content picture img,
    .rich-content a img,
    .post-content a img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 15px 0;
        border-radius: 6px;
        display: block;
        box-sizing: border-box;
        object-fit: contain;
    }
    
    /* Figure elements on mobile */
    .rich-content figure,
    .post-content figure {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .rich-content figure img,
    .post-content figure img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .rich-content figcaption,
    .post-content figcaption {
        font-size: 13px;
        margin-top: 8px;
        padding: 0 10px;
    }
    
    /* Picture elements on mobile */
    .rich-content picture,
    .post-content picture {
        margin: 15px 0;
        max-width: 100%;
    }
    
    /* Fix for images with inline width/height styles on mobile */
    .rich-content img[style*="width"],
    .post-content img[style*="width"],
    .rich-content img[style*="height"],
    .post-content img[style*="height"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Aligned images on mobile - remove float, make full width */
    .rich-content img.alignleft,
    .post-content img.alignleft,
    .rich-content img.alignright,
    .post-content img.alignright,
    .rich-content .alignleft img,
    .post-content .alignleft img,
    .rich-content .alignright img,
    .post-content .alignright img {
        float: none !important;
        display: block;
        margin: 15px auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* WordPress block images on mobile */
    .rich-content .wp-block-image,
    .post-content .wp-block-image {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .rich-content .wp-block-image img,
    .post-content .wp-block-image img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Images in tables on mobile */
    .rich-content table img,
    .post-content table img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        margin: 5px auto;
    }
    
    /* Ensure containers don't overflow */
    .rich-content,
    .post-content {
        overflow-x: hidden;
        word-wrap: break-word;
    }
    
    /* Fix for iframes and videos on mobile */
    .rich-content iframe,
    .post-content iframe,
    .rich-content video,
    .post-content video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Mobile Sidebar */
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .sidebar-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .sidebar-widget .recent-posts-item {
        gap: 12px;
    }
    
    .sidebar-widget .recent-posts-item img {
        width: 70px;
        height: 70px;
    }
    
    .sidebar-widget .recent-posts-item-title {
        font-size: 13px;
    }
    
    .sidebar-widget .recent-posts-item-date {
        font-size: 11px;
    }
    
    /* Mobile Tables */
    .rich-content table,
    .post-content table {
        font-size: 14px;
    }
    
    .rich-content table th,
    .post-content table th,
    .rich-content table td,
    .post-content table td {
        padding: 8px;
    }
}

/* Responsive Styles - Small Mobile */
@media (max-width: 480px) {
    .primary-block .container,
    .single-post-content .container,
    article .container {
        padding: 0 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section-small {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .single-post-content {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
    }
    
    .primary-block {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }
    
    .rich-content,
    .post-content {
        max-width: 100% !important;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .rich-content img,
    .post-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 12px auto !important;
        float: none !important;
    }
    
    .page-head {
        padding: 20px 0;
        min-height: 120px;
    }
    
    .page-head h1 {
        font-size: 20px;
    }
    
    .page-head .breadcrumb {
        font-size: 11px;
    }
    
    .info-head .social {
        gap: 8px;
    }
    
    .info-head .social span {
        font-size: 12px;
    }
    
    .info-head .social a {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 6px;
    }
    
    .info-head .social a.ti-facebook::before,
    .info-head .social a.ti-twitter::before,
    .info-head .social a.ti-linkedin::before,
    .info-head .social a.ti-whatsapp::before {
        font-size: 16px !important;
    }
    
    .info-head .social a:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .consultation-booking-box .booking-title {
        font-size: 20px;
    }
    
    .consultation-booking-box .booking-description {
        font-size: 14px;
    }
    
    .consultation-booking-box .booking-whatsapp-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .rich-content h1,
    .post-content h1 {
        font-size: 22px;
    }
    
    .rich-content h2,
    .post-content h2 {
        font-size: 20px;
    }
    
    .rich-content h3,
    .post-content h3 {
        font-size: 18px;
    }
    
    .rich-content p,
    .post-content p {
        font-size: 14px;
    }
    
    .sidebar-widget {
        padding: 15px 12px;
    }
    
    .sidebar-widget .recent-posts-item img {
        width: 60px;
        height: 60px;
    }
    
    /* Small Mobile Images - Maximum optimization */
    .rich-content img,
    .post-content img,
    .rich-content figure img,
    .post-content figure img,
    .rich-content picture img,
    .post-content picture img,
    .rich-content a img,
    .post-content a img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 12px 0;
        border-radius: 5px;
    }
    
    .rich-content figure,
    .post-content figure {
        margin: 12px 0;
    }
    
    .rich-content figcaption,
    .post-content figcaption {
        font-size: 12px;
        margin-top: 6px;
        padding: 0 8px;
    }
    
    .post-featured-image {
        margin: 12px 0;
        border-radius: 6px;
    }
}

/* ============================================
   FAQ Section (sc_fs_faq) - Responsive Styles
   ============================================ */

/* Base FAQ Section Styles */
.sc_fs_faq,
.sc_card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

/* FAQ Content Container */
.sc_fs_faq > div,
.sc_card > div {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* FAQ Content */
.sc_fs_faq__content {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* FAQ Images - Fully Responsive */
.sc_fs_faq__figure,
.sc_fs_faq__figure a,
.sc_fs_faq__image,
.sc_card img,
.sc_fs_faq img,
.sc_fs_faq__content img,
.sc_fs_faq__content p img,
.sc_fs_faq__content div img,
.sc_fs_faq__content figure img,
.sc_fs_faq__content picture img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px 0;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 8px;
}

/* FAQ Figure Container */
.sc_fs_faq__figure {
    margin: 15px 0;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
    float: none;
    display: block;
}

.sc_fs_faq__figure a {
    display: block;
    max-width: 100%;
    overflow: hidden;
}

/* FAQ Content Paragraphs and Text */
.sc_fs_faq__content p,
.sc_fs_faq__content div,
.sc_fs_faq__content ul,
.sc_fs_faq__content ol,
.sc_fs_faq__content li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* FAQ Headings */
.sc_fs_faq h2,
.sc_fs_faq h3,
.sc_fs_faq h4,
.sc_card h2,
.sc_card h3,
.sc_card h4 {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.2em;
    line-height: 1.4;
    margin: 0 0 1em;
}

/* Ensure all content inside FAQ is responsive */
.sc_fs_faq *,
.sc_card * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Tables inside FAQ */
.sc_fs_faq__content table,
.sc_fs_faq table,
.sc_card table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
}

.sc_fs_faq__content table img,
.sc_fs_faq table img,
.sc_card table img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Iframes and Videos inside FAQ */
.sc_fs_faq__content iframe,
.sc_fs_faq__content video,
.sc_fs_faq iframe,
.sc_fs_faq video,
.sc_card iframe,
.sc_card video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px 0;
}

/* Responsive Styles - Tablet */
@media (max-width: 991px) {
    .sc_fs_faq,
    .sc_card {
        padding: 15px;
        margin: 1.5em auto;
    }
    
    .sc_fs_faq__figure {
        float: none;
        margin: 15px 0;
        max-width: 100%;
    }
    
    .sc_fs_faq__image,
    .sc_fs_faq__figure img,
    .sc_card img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0;
    }
    
    .sc_fs_faq h2,
    .sc_fs_faq h3,
    .sc_card h2,
    .sc_card h3 {
        font-size: 1.1em;
    }
}

/* Responsive Styles - Mobile */
@media (max-width: 767px) {
    .sc_fs_faq,
    .sc_card {
        padding: 12px;
        margin: 1em auto;
        border-radius: 6px;
    }
    
    .sc_fs_faq__figure {
        float: none !important;
        margin: 12px 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .sc_fs_faq__figure a {
        width: 100%;
        max-width: 100%;
    }
    
    .sc_fs_faq__image,
    .sc_fs_faq__figure img,
    .sc_fs_faq img,
    .sc_card img,
    .sc_fs_faq__content img,
    .sc_fs_faq__content p img,
    .sc_fs_faq__content div img,
    .sc_fs_faq__content figure img,
    .sc_fs_faq__content picture img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 12px 0 !important;
        border-radius: 6px;
        display: block;
    }
    
    .sc_fs_faq__content {
        padding: 0;
        overflow: hidden;
    }
    
    .sc_fs_faq__content p,
    .sc_fs_faq__content div {
        font-size: 15px;
        line-height: 1.6;
        margin: 12px 0;
        padding: 0;
    }
    
    .sc_fs_faq h2,
    .sc_fs_faq h3,
    .sc_card h2,
    .sc_card h3 {
        font-size: 1em;
        line-height: 1.3;
        margin: 0 0 0.8em;
    }
    
    /* Tables on mobile */
    .sc_fs_faq__content table,
    .sc_fs_faq table,
    .sc_card table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sc_fs_faq__content table th,
    .sc_fs_faq__content table td,
    .sc_fs_faq table th,
    .sc_fs_faq table td,
    .sc_card table th,
    .sc_card table td {
        padding: 8px;
        font-size: 13px;
    }
    
    /* Iframes and videos on mobile */
    .sc_fs_faq__content iframe,
    .sc_fs_faq__content video,
    .sc_fs_faq iframe,
    .sc_fs_faq video,
    .sc_card iframe,
    .sc_card video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }
}

/* Responsive Styles - Small Mobile */
@media (max-width: 480px) {
    .sc_fs_faq,
    .sc_card {
        padding: 10px;
        margin: 0.8em auto;
        border-radius: 4px;
    }
    
    .sc_fs_faq__figure {
        margin: 10px 0 !important;
    }
    
    .sc_fs_faq__image,
    .sc_fs_faq__figure img,
    .sc_fs_faq img,
    .sc_card img,
    .sc_fs_faq__content img {
        margin: 10px 0 !important;
        border-radius: 4px;
    }
    
    .sc_fs_faq__content p,
    .sc_fs_faq__content div {
        font-size: 14px;
        line-height: 1.5;
        margin: 10px 0;
    }
    
    .sc_fs_faq h2,
    .sc_fs_faq h3,
    .sc_card h2,
    .sc_card h3 {
        font-size: 0.95em;
        margin: 0 0 0.6em;
    }
    
    .sc_fs_faq__content table,
    .sc_fs_faq table,
    .sc_card table {
        font-size: 12px;
    }
    
    .sc_fs_faq__content table th,
    .sc_fs_faq__content table td,
    .sc_fs_faq table th,
    .sc_fs_faq table td,
    .sc_card table th,
    .sc_card table td {
        padding: 6px;
        font-size: 12px;
    }
}

/* RTL Support for FAQ */
[dir="rtl"] .sc_fs_faq__figure {
    float: none;
    margin: 15px 0;
}

@media (min-width: 469px) {
    [dir="rtl"] .sc_fs_faq__figure {
        float: left;
        margin-right: 1em;
        margin-left: 0;
    }
}

/* Ensure no horizontal overflow */
.sc_fs_faq,
.sc_card,
.sc_fs_faq > div,
.sc_card > div,
.sc_fs_faq__content {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Global Overflow Prevention - All Content Elements */
.rich-content *,
.post-content *,
.primary-block *,
.single-post-content * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Specific elements that commonly cause overflow */
.rich-content p,
.post-content p,
.rich-content div,
.post-content div,
.rich-content ul,
.post-content ul,
.rich-content ol,
.post-content ol,
.rich-content li,
.post-content li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Prevent wide elements from breaking layout */
.rich-content blockquote,
.post-content blockquote,
.rich-content pre,
.post-content pre,
.rich-content code,
.post-content code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* Ensure wrapper elements don't overflow */
.info-head,
.consultation-booking-box,
.simple-consultation-box {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

