/* Single Post Content Widget Styles */
.single-post-content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0F172A;
    max-width: 100%;
    margin: 0 auto;
}

.single-post-content .featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-content .featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0F172A;
    line-height: 1.2;
}

.single-post-content .post-meta {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.single-post-content .post-meta span {
    margin-right: 1rem;
}

.single-post-content .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.single-post-content .related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

.single-post-content .related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #0F172A;
}

.single-post-content .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.single-post-content .related-post-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.single-post-content .related-post-item:hover {
    transform: translateY(-5px);
}

.single-post-content .related-post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.single-post-content .related-post-item h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
}

.single-post-content .related-post-item a {
    color: #0F172A;
    text-decoration: none;
}

.single-post-content .related-post-item a:hover {
    color: #0067FF;
}

/* Archive Posts Widget Styles */
.posts-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.posts-grid .post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.posts-grid .post-item:hover {
    transform: translateY(-5px);
}

.posts-grid .post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.posts-grid .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts-grid .post-content {
    padding: 1.5rem;
}

.posts-grid .post-title {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.posts-grid .post-title a {
    color: #0F172A;
    text-decoration: none;
}

.posts-grid .post-title a:hover {
    color: #0067FF;
}

.posts-grid .post-meta {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 1rem;
}

.posts-grid .post-meta span {
    margin-right: 1rem;
}

.posts-grid .post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.5rem;
}

.posts-grid .read-more {
    display: inline-block;
    color: #0067FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.posts-grid .read-more:hover {
    text-decoration: underline;
}

/* Archive Posts Grid Pagination */
.abt-pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.abt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    margin: 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #4B5563;
    background-color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.abt-pagination .page-numbers.current {
    color: #fff;
    background-color: #0067FF;
    border-color: #0067FF;
}

.abt-pagination .page-numbers:hover:not(.current) {
    color: #1F2937;
    background-color: #F3F4F6;
    border-color: #D1D5DB;
}

.abt-pagination .prev,
.abt-pagination .next {
    padding-left: 1rem;
    padding-right: 1rem;
}

.abt-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.abt-pagination li {
    margin: 0;
    padding: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .single-post-content .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .single-post-content .post-title {
        font-size: 2rem;
    }

    .single-post-content .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .abt-pagination .page-numbers {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
        padding: 0.25rem;
    }

    .abt-pagination .prev,
    .abt-pagination .next {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Social Sharing Styles */
.abt-social-sharing {
    margin: 20px 0;
    padding: 10px 0;
}

.abt-share-description {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.abt-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.abt-share-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.abt-share-button .dashicons {
    margin-right: 8px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.abt-share-facebook {
    background-color: #1877f2;
}

.abt-share-facebook:hover {
    background-color: #0d65d9;
    color: #fff !important;
}

.abt-share-twitter {
    background-color: #1da1f2;
}

.abt-share-twitter:hover {
    background-color: #0c85d0;
    color: #fff !important;
}

.abt-share-linkedin {
    background-color: #0a66c2;
}

.abt-share-linkedin:hover {
    background-color: #084e96;
    color: #fff !important;
}

.abt-share-pinterest {
    background-color: #e60023;
}

.abt-share-pinterest:hover {
    background-color: #c2001d;
    color: #fff !important;
}

.abt-share-whatsapp {
    background-color: #25d366;
}

.abt-share-whatsapp:hover {
    background-color: #1da851;
    color: #fff !important;
}

.abt-share-telegram {
    background-color: #0088cc;
}

.abt-share-telegram:hover {
    background-color: #006ba3;
    color: #fff !important;
}

.abt-share-reddit {
    background-color: #ff4500;
}

.abt-share-reddit:hover {
    background-color: #cc3700;
    color: #fff !important;
}

.abt-share-email {
    background-color: #666666;
}

.abt-share-email:hover {
    background-color: #4d4d4d;
    color: #fff !important;
}

@media (max-width: 767px) {
    .abt-share-buttons {
        justify-content: center;
    }
    
    .abt-share-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Single Post Template Typography */
body .abt-single-post-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

/* Individual heading styles with higher specificity */
body .abt-single-post-content h1 {
    font-size: 1.75em;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: #1a1a1a;
    margin-top: 0.67em;
}

body .abt-single-post-content h2 {
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: #1a1a1a;
}

body .abt-single-post-content h3 {
    font-size: 1.35em;
    font-weight: 400;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: #1a1a1a;
}

body .abt-single-post-content h4 {
    font-size: 1.25em;
    font-weight: 400;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: #1a1a1a;
}

body .abt-single-post-content h5 {
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: #1a1a1a;
}

body .abt-single-post-content h6 {
    font-size: 1em;
    font-weight: 400;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    color: #1a1a1a;
}

/* Strong tag styling */
body .abt-single-post-content strong {
    font-weight: 500;
    color: #1a1a1a;
}

/* Rest of the styles with higher specificity */
body .abt-single-post-content p {
    margin: 0 0 1.5em;
    font-size: 1.1em;
    line-height: 1.8;
}

body .abt-single-post-content ul,
body .abt-single-post-content ol {
    margin: 0 0 1.5em 2em;
    padding: 0;
}

body .abt-single-post-content ul li,
body .abt-single-post-content ol li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

body .abt-single-post-content ul {
    list-style-type: disc;
}

body .abt-single-post-content ol {
    list-style-type: decimal;
}

body .abt-single-post-content blockquote {
    margin: 2em 0;
    padding: 1em 2em;
    border-left: 4px solid #4a90e2;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

body .abt-single-post-content blockquote p {
    margin: 0;
}

body .abt-single-post-content pre {
    background: #f5f5f5;
    padding: 1.5em;
    border-radius: 4px;
    overflow-x: auto;
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 1.5em 0;
}

body .abt-single-post-content code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.9em;
}

body .abt-single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

body .abt-single-post-content th,
body .abt-single-post-content td {
    padding: 0.75em;
    border: 1px solid #ddd;
    text-align: left;
}

body .abt-single-post-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

body .abt-single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 4px;
}

body .abt-single-post-content figure {
    margin: 1.5em 0;
}

body .abt-single-post-content figcaption {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
}

body .abt-single-post-content hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 2em 0;
}

body .abt-single-post-content a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

body .abt-single-post-content a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Responsive Typography with higher specificity */
@media screen and (max-width: 768px) {
    body .abt-single-post-content h1 {
        font-size: 1.5em;
    }

    body .abt-single-post-content h2 {
        font-size: 1.35em;
    }

    body .abt-single-post-content h3 {
        font-size: 1.25em;
    }

    body .abt-single-post-content h4 {
        font-size: 1.15em;
    }

    body .abt-single-post-content h5 {
        font-size: 1.05em;
    }

    body .abt-single-post-content h6 {
        font-size: 1em;
    }

    body .abt-single-post-content p {
        font-size: 1em;
    }

    body .abt-single-post-content blockquote {
        padding: 1em;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body .abt-single-post-content blockquote {
        background-color: #2d2d2d;
        border-left-color: #4a90e2;
    }

    body .abt-single-post-content pre,
    body .abt-single-post-content code {
        background: #2d2d2d;
    }

    body .abt-single-post-content th {
        background-color: #2d2d2d;
    }

    body .abt-single-post-content th,
    body .abt-single-post-content td {
        border-color: #444;
    }

    body .abt-single-post-content hr {
        background-color: #444;
    }
}

/* Ensure archive posts grid is always visible */
.posts-grid[data-public-access="true"],
.elementor-widget-archive_posts {
    display: grid;
    visibility: visible;
    opacity: 1;
}

/* Enforce visibility of archive post items */
.post-item {
    display: block;
    visibility: visible;
} 