/*
Theme Name: اوائل العالمية
Theme URI: https://awal-alamia.com
Author: mostafa-seo
*/

/* -------------------------------------------------------------
   Blog & Sidebar Styles
------------------------------------------------------------- */

/* -------------------------------------------------------------
   Single Post Redesign (Premium)
------------------------------------------------------------- */

/* Wrapper & Layout */
.single-post-wrapper {
    background-color: #f4f7f6;
    /* Very light gray background for the whole page */
    padding-bottom: 80px;
}

.main-content-area {
    margin-top: -60px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.row-layout {
    display: flex;
    gap: 30px;
}

.content-col {
    flex: 0 0 70%;
    max-width: 70%;
}

.sidebar-col {
    flex: 0 0 30%;
    max-width: 30%;
}

@media (max-width: 991px) {
    .row-layout {
        flex-direction: column;
    }

    .content-col,
    .sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .main-content-area {
        margin-top: 20px;
    }
}

/* Single Hero */
.single-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 0;
}

.single-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: blur(2px);
    transform: scale(1.1);
}

.single-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 68, 148, 0.7) 100%);
    z-index: 2;
}

.single-hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.single-hero__meta {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.category-badge,
.date-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.single-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.post-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-card__body {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-card__body h2 {
    font-size: 1.8rem;
    color: #0a0a1a;
    margin: 40px 0 20px;
    position: relative;
    padding-right: 15px;
}

.post-card__body h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: #0066cc;
    border-radius: 2px;
}

.post-card__body p {
    margin-bottom: 20px;
}

.post-card__body ul {
    background: #f9fbfd;
    padding: 30px;
    border-radius: 12px;
    list-style: none;
    margin-bottom: 30px;
}

.post-card__body ul li {
    margin-bottom: 15px;
    position: relative;
    padding-right: 25px;
}

.post-card__body ul li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: #25D366;
    font-weight: bold;
}

/* Post CTA Box (Desktop) */
.post-cta-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e1e8ed;
}

.cta-box__text h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    color: #0066cc;
}

.cta-box__text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.cta-box__buttons {
    display: flex;
    gap: 15px;
}

.btn--call {
    background: #0066cc;
    color: #fff;
}

.btn--whatsapp {
    background: #25D366;
    color: #fff;
}

/* Sticky Mobile CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.mobile-sticky-cta .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-weight: 700;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 40px;
}

.reviews-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-section .subtitle {
    color: #0066cc;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-section h2 {
    font-size: 2rem;
    margin-top: 10px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 15px;
}

.reviewer-meta h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-date {
    margin-right: auto;
    font-size: 0.8rem;
    color: #999;
}

.review-card__body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.verified-badge {
    font-size: 0.8rem;
    color: #25D366;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ebfcf0;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Sidebar Widgets Redesign */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #0a0a1a;
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-img img {
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #e0f2fe;
}

.author-widget h3 {
    font-size: 1.2rem;
    margin: 0 0 5px;
}

.author-widget span {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 15px;
}

/* Services Menu */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 10px;
}

.services-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.services-list a:hover {
    background: #0066cc;
    color: #fff;
    transform: translateX(-5px);
}

/* Call Widget */
.call-widget {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
}

.call-widget .icon-bg {
    font-size: 8rem;
    position: absolute;
    top: -20px;
    left: -20px;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
}

.call-widget__content {
    position: relative;
    z-index: 2;
}

.call-widget h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.call-widget p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.btn--white {
    background: #fff;
    color: #0066cc;
    font-weight: 800;
    width: 100%;
    padding: 12px;
    display: block;
    text-decoration: none;
    border-radius: 6px;
}

.btn--white:hover {
    background: #f0f0f0;
}

/* Animations */
.pulse-anim {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}


/* -------------------------------------------------------------
   Comments Section Styling (Premium)
------------------------------------------------------------- */
.comments-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #0066cc;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    border-bottom: 1px solid #f0f0f0;
    padding: 25px 0;
    margin-bottom: 0;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-body {
    position: relative;
    padding-right: 70px;
    /* Space for avatar */
}

.comment-list .children {
    list-style: none;
    padding-right: 40px;
    /* Indent replies */
    margin-top: 20px;
    border-top: 1px solid #f9f9f9;
}

/* Avatar */
.comment-author .avatar {
    position: absolute;
    right: 0;
    top: 5px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #e0f2fe;
}

/* Author & Meta */
.comment-meta {
    margin-bottom: 10px;
}

.comment-author cite {
    font-style: normal;
    font-weight: 800;
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #999;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

/* Comment Content */
.comment-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* Reply Link */
.comment-reply-link {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f9ff;
    color: #0066cc;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.comment-reply-link:hover {
    background: #0066cc;
    color: #fff;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.comment-reply-title small a {
    float: left;
    font-size: 0.9rem;
    color: #ff4d4d;
    text-decoration: none;
}

.comment-form {
    display: grid;
    grid-gap: 15px;
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: none;
    /* Hide labels for cleaner look */
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 10px;
}

.submit {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    /* Full width on mobile */
}

@media (min-width: 768px) {
    .submit {
        width: auto;
    }
}

.submit:hover {
    background: #004a99;
    transform: translateY(-2px);
}

/* Responsive Article Images */
.post-card__body img,
.wp-block-image img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Smooth corners */
    display: block;
    margin: 20px auto;
    /* Center images */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
}

.post-card__body iframe,
.post-card__body video {
    max-width: 100%;
    border-radius: 12px;
}

------------------------------------------------------------- */

/* FAQ Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

.faq-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background: #f9fafb;
}

.faq-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #0a0a1a;
    font-weight: 700;
}

.faq-icon {
    color: #0066cc;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-header {
    background: #e0f2fe;
}

.faq-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item.active .faq-body {
    padding: 20px 25px;
    max-height: 500px;
}

/* Testimonials Page Styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card-page {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #0066cc;
}

.testimonial-card-page:hover {
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #f39c12;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0066cc;
    margin-left: 15px;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #0a0a1a;
}

.author-info span {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* About Values Grid Fix */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.value-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card__title {
    margin-bottom: 15px;
    color: #0a0a1a;
}

.value-card__text {
    color: #6b7280;
}

/* Error 404 Styles */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    background: #f9f9f9;
}

.error-content h1 {
    font-size: 8rem;
    color: #0066cc;
    /* primary */
    margin: 0;
    line-height: 1;
}

.error-content h2 {
    font-size: 2rem;
    margin: 20px 0;
    color: #0a0a1a;
}

.error-content p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Privacy Page Styles */
.privacy-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.privacy-content h2 {
    color: #0066cc;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-content p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 15px;
}

.privacy-content ul {
    list-style: disc;
    padding-right: 20px;
    margin-bottom: 20px;
    color: #6b7280;
}

.privacy-content li {
    margin-bottom: 10px;
}

/* Accessibility Fixes - High Contrast & Underline */
.article-content .article-link,
a.article-link {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    color: #004a99 !important;
    /* WCAG AAA Compliant on white */
    font-weight: 700 !important;
}

.article-content .article-link:hover,
a.article-link:hover {
    color: #003366 !important;
    text-decoration: none !important;
}

/* -------------------------------------------------------------
   Blog Archive / Category Styles (Added for UI/UX Fixes)
------------------------------------------------------------- */

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card Styling */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.blog-card__image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    /* Placeholder color */
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

/* Card Content */
.blog-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    font-size: 0.85rem;
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: block;
}

.blog-card__category a {
    color: inherit;
    text-decoration: none;
}

.blog-card__category a:hover {
    text-decoration: underline;
}

.blog-card__title {
    font-size: 1.3rem;
    margin: 0 0 15px;
    line-height: 1.4;
    font-weight: 800;
}

.blog-card__title a {
    color: #0a0a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: #0066cc;
}

.blog-card__excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card__excerpt p {
    margin: 0;
}

.blog-card__meta {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e1e8ed;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    margin: 0;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Page Hero (Archive/Category/Search) */
.page-hero {
    background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.page-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px;
    color: #fff;
}

.page-hero__text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Breadcrumbs Styling */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 40px;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #ccc;
}

/* -------------------------------------------------------------
   Responsive Article Images & Alignment Fixes
------------------------------------------------------------- */
.post-card__body img,
.entry-content img,
.wp-block-image img {
    height: auto !important;
    /* Force auto height to maintain aspect ratio */
    max-width: 100%;
}

.post-card__body .alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
    max-width: 50%;
}

.post-card__body .alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    max-width: 50%;
}

.post-card__body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .post-card__body .alignleft,
    .post-card__body .alignright {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
        width: 100%;
        height: auto !important;
    }

    .single-hero__title {
        font-size: 1.8rem;
    }
}

/* -------------------------------------------------------------
   Mobile Stability Fixes
------------------------------------------------------------- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.post-card__body,
.entry-content,
.comment-content,
.faq-body {
    overflow-wrap: anywhere;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .single-hero {
        height: auto;
        min-height: 300px;
        padding: 120px 0 50px;
    }

    .single-hero__meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .post-card__body,
    .comments-wrapper,
    .comment-respond,
    .sidebar-widget,
    .privacy-content {
        padding: 20px;
    }

    .post-cta-box {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }

    .cta-box__buttons {
        width: 100%;
        flex-direction: column;
    }

    .mobile-sticky-cta {
        padding: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* -------------------------------------------------------------
   Header & Menu Mobile Polish
------------------------------------------------------------- */
@media (max-width: 768px) {
    .header .container {
        width: 94%;
    }

    .header-inner {
        gap: 10px;
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .header .btn {
        min-width: 0;
        padding: 10px 12px;
    }

    .header .btn span {
        display: none;
    }

    .mobile-menu {
        width: 100vw;
        max-width: 100vw;
    }

    .mobile-menu-content {
        padding: 88px 18px 28px;
    }

    .mobile-nav a {
        font-size: 1.05rem;
        line-height: 1.5;
        padding: 12px 0;
        overflow-wrap: anywhere;
    }

    .floating-buttons,
    .floating-btns {
        left: 14px;
        bottom: 14px;
    }

    .float-btn,
    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .header .btn {
        padding: 9px 10px;
    }
}

/* -------------------------------------------------------------
   Front Hero + Header Fix (Mobile)
------------------------------------------------------------- */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .logo {
        gap: 8px;
        max-width: 52%;
    }

    .logo-text {
        font-size: 1rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header .btn {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 70px;
        align-items: flex-start;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero-badge {
        width: 100%;
        max-width: 100%;
        padding: 10px 14px;
        border-radius: 14px;
        justify-content: center;
        margin-bottom: 18px;
    }

    .hero-badge .pulse-dot {
        flex-shrink: 0;
    }

    .hero-badge span:last-child {
        font-size: 0.92rem;
        line-height: 1.5;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .logo-text {
        display: none;
    }
}

/* -------------------------------------------------------------
   Page Templates Responsive + Dynamic Content
------------------------------------------------------------- */
.template-editor-content {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.template-editor-content > *:last-child {
    margin-bottom: 0;
}

.template-editor-content img,
.template-editor-content iframe,
.template-editor-content video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .project-hero-meta {
        gap: 12px;
    }

    .project-hero-meta span {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 2.3rem;
    }

    .cta-desc {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .service-hero,
    .project-hero-section,
    .page-hero-section {
        padding-top: 130px;
    }

    .service-hero__title,
    .project-hero-title,
    .page-hero-title,
    .cta-title {
        font-size: 1.8rem;
        line-height: 1.35;
    }

    .service-hero__text,
    .page-hero-desc,
    .cta-desc {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero__buttons,
    .cta-btns,
    .cta__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero__buttons .btn,
    .cta-btns .btn,
    .cta__buttons .btn {
        width: 100%;
    }

    .project-content,
    .sidebar-card,
    .template-editor-content {
        padding: 20px;
    }

    .project-list li,
    .project-info-list li {
        gap: 10px;
        align-items: flex-start;
    }

    .breadcrumb {
        gap: 8px;
        font-size: 0.85rem;
    }
}

/* -------------------------------------------------------------
   Article Images Responsive Fix
------------------------------------------------------------- */
.post-card__body figure,
.post-card__body .wp-block-image,
.post-card__body .wp-caption,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption {
    max-width: 100% !important;
}

.post-card__body img,
.entry-content img,
.post-card__body .wp-block-image img,
.entry-content .wp-block-image img {
    width: auto;
    max-width: 100% !important;
    height: auto !important;
}

.post-card__body .wp-caption,
.entry-content .wp-caption {
    width: 100% !important;
}

.post-card__body .wp-caption-text,
.entry-content .wp-caption-text,
.post-card__body figcaption,
.entry-content figcaption {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .post-card__body .alignwide,
    .post-card__body .alignfull,
    .entry-content .alignwide,
    .entry-content .alignfull {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
