/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-summary {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-summary:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color, #9100d4);
}

/* Thumbnail Container */
.article-thumbnail-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8fafc;
}

.article-thumbnail-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.article-thumbnail {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-summary:hover .article-featured-image {
    transform: scale(1.05);
}

/* Fallback Thumbnail */
.article-summary .fallback-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color, #9100d4) 0%, #6d00a5 100%);
    height: 100%;
}

.article-summary .fallback-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.article-summary .fallback-letter {
    font-size: 60px;
    font-weight: 900;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
}

.article-summary .fallback-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Content Area */
.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.article-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--accent-color, #9100d4);
}

.article-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Meta Information */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eef2f7;
    color: #718096;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.article-categories a {
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.article-categories a::before {
    content: "🏷️ ";
    margin-right: 4px;
}

.article-categories a:hover {
    color: var(--accent-color, #9100d4);
}

/* Action Buttons */
.article-actions {
    display: flex;
    margin-top: auto;
}

.article-actions .button {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--accent-color, #9100d4);
    color: white;
    border: 2px solid var(--accent-color, #9100d4);
}

.article-actions .button:hover {
    background: #6d00a5;
    border-color: #6d00a5;
    transform: translateY(-2px);
}

.read-more::before {
    content: "📖 ";
    font-size: 1.1em;
}

/* Pagination */
.articles-pagination {
    margin: 50px 0;
    text-align: center;
}

.articles-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
}

.articles-pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s ease;
}

.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
    background: var(--accent-color, #9100d4);
    color: white;
    border-color: var(--accent-color, #9100d4);
}

/* No Articles Message */
.no-articles {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 12px;
    margin: 40px 0;
    font-size: 1.2rem;
    color: #4a5568;
}

/* SINGLE ARTICLE STYLES */

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Category Tags */
.article-categories-single {
    margin-bottom: 20px;
}

.article-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 5px 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-category-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Single Title */
.article-single-title {
	font-weight: 600 !important;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #000000;
}

/* Meta Information */
.article-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-meta img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.article-author-name {
    font-weight: 500;
}

.article-post-date, .article-reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

/* Article Content */
.article-single-content {
    padding-top: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-single-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #1b1818 !important;
}

.article-single-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #1b1818 !important;
}

.article-single-content p {
    line-height: 1.8;
    margin-bottom: 25px;
}

.article-single-content blockquote {
    border-left: 4px solid var(--accent-color, #9100d4);
    margin: 30px 0;
    padding: 20px 30px;
    background: #e5e7eb;
    font-style: italic;
    color: #4a5568;
}

.article-single-content ul, 
.article-single-content ol {
    margin-left: 20px;
    margin-bottom: 25px;
}

.article-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Newsletter Subscription */
.article-subscription-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 12px;
    padding: 40px;
    margin: 60px 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.article-subscription-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-subscription-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.article-subscription-description {
    color: #718096;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.article-subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eef2f7;
}

.related-articles-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-thumbnail {
    height: 180px;
    overflow: hidden;
}

.related-article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article:hover .related-article-thumbnail img {
    transform: scale(1.05);
}

.related-article-title {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #2d3748;
    font-weight: 600;
}

/* Updated Single Article Header */
.article-single-header {
    position: relative;
    margin: 0 -15px 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 40px 20px 5px 20px;
    border-radius: 12px;
    overflow: hidden;
    color: #2d3748;
    text-align: center;
}

.article-featured-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-featured-image-main {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Updated Category Tags for light background */
.article-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-color, #9100d4);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 5px 10px;
    transition: all 0.3s ease;
}

.article-category-tag:hover {
    background: #6d00a5;
    transform: translateY(-2px);
}

/* Updated Meta Information for light background */
.article-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.article-author-name {
    font-weight: 500;
    color: #4a5568;
}

.article-reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
}

.article-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
}

.article-post-date::before {
    content: "📅";
}

.article-reading-time::before {
    content: "⏱️";
}

/* Remove old background styles */
.article-header-background,
.background-overlay {
    display: none !important;
}

/* Responsive adjustments for the new layout */
@media (max-width: 767px) {
    .article-single-header {
        padding: 30px 15px;
        margin: 0 0 30px;
    }
    
    .article-featured-image-container {
        margin-bottom: 20px;
    }
    
    .article-single-title {
        font-size: 1.8rem;
    }
    
    .article-featured-image-main {
        max-height: 300px;
    }
}











/* Social Sharing Section - Icon Only & Branded */
.article-sharing-section {
    margin: 60px 0 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sharing-header {
    margin-bottom: 25px;
}

.sharing-header h4 {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.sharing-header p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Icon-only sharing buttons */
.sharing-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
}

/* Hide the text labels */
.share-label {
    display: none;
}

/* Brand icons */
.share-icon {
    font-size: 1.4rem;
    display: inline-block;
    line-height: 1;
}

/* LinkedIn - Blue */
.share-linkedin {
    background-color: #0077B5;
    color: white;
}

.share-linkedin .share-icon::before {
    content: "in";
    font-weight: bold;
    font-size: 1.2rem;
}

.share-linkedin:hover {
    background-color: #006699;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 119, 181, 0.25);
}

/* Facebook - Blue */
.share-facebook {
    background-color: #4267B2;
    color: white;
}

.share-facebook .share-icon::before {
    content: "f";
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
}

.share-facebook:hover {
    background-color: #365899;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(66, 103, 178, 0.25);
}

/* Twitter/X - Black */
.share-twitter {
    background-color: #000000;
    color: white;
}

.share-twitter .share-icon::before {
    content: "𝕏";
    font-size: 1.2rem;
    font-weight: bold;
}

.share-twitter:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Email - Red */
.share-email {
    background-color: #EA4335;
    color: white;
}

.share-email .share-icon::before {
    content: "✉";
    font-size: 1.3rem;
}

.share-email:hover {
    background-color: #d33426;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(234, 67, 53, 0.25);
}

/* Responsive adjustments for icon-only buttons */
@media (max-width: 767px) {
    .article-sharing-section {
        padding: 20px 15px;
        margin: 40px 0;
    }
    
    .sharing-buttons {
        gap: 10px;
    }
    
    .share-button {
        width: 44px;
        height: 44px;
    }
    
    .share-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .sharing-buttons {
        justify-content: center;
    }
}














/* Responsive Design */
@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .article-thumbnail-container {
        height: 200px;
    }
    
    .article-single-header {
        padding: 50px 15px;
        margin: 0 -15px 30px;
    }
    
    .article-single-title {
        font-size: 1.8rem;
    }
    
    .article-single-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .article-subscription-section {
        padding: 25px 20px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Completely hide the meta list for articles */
.single.category-articles .nv-meta-list,
.archive.category-articles .nv-meta-list,
.page-template-page-articles .nv-meta-list,
.single-article .nv-meta-list,
.articles-archive .nv-meta-list {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Also hide any parent containers that might show empty space */
.single.category-article .nv-post-navigation,
.archive.category-article .nv-post-navigation {
    margin-top: 0 !important;
}

/* Remove any separators or spacing */
.nv-meta-list:empty {
    display: none !important;
}

#post-505 > div > header > h1 {
	display: none !important;
}

.wp-block-themeisle-blocks-accordion-item__title {
	color: var(--nv-text-color);
}

#wp-block-themeisle-blocks-advanced-heading-c0b67f5b {
	color: #1b1818;
}

/* ── Sort + Search controls bar ─────────────────────────────────────── */

.articles-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 0 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.articles-sorting-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.articles-sorting-form label {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    white-space: nowrap;
}

.articles-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: auto;
}

.articles-search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #a0aec0;
    pointer-events: none;
    flex-shrink: 0;
}

.articles-search-input {
    padding: 10px 36px 10px 34px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    color: #4a5568;
    width: 240px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.articles-search-input:focus {
    outline: none;
    border-color: #b62025;
    box-shadow: 0 0 0 3px rgba(182, 32, 37, 0.1);
}

.articles-search-input::placeholder {
    color: #a0aec0;
}

.articles-search-clear {
    position: absolute;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: color 0.15s ease;
}

.articles-search-clear.is-visible {
    display: flex;
}

.articles-search-clear:hover {
    color: #4a5568;
}

/* Loading state */
.articles-grid.articles-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

@media (max-width: 767px) {
    .articles-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .articles-search-wrap {
        margin-left: 0;
        width: 100%;
    }
    .articles-search-input {
        width: 100%;
    }
    .articles-sorting-form {
        width: 100%;
    }
    .articles-sorting-form .sorting-select {
        width: 100%;
        max-width: 300px;
    }
}

/* Content-freshness: visible updated timestamp below article title */
.article-updated-date {
    font-size: 0.82rem;
    color: #718096;
    margin: 6px 0 0;
    font-style: italic;
    letter-spacing: 0.01em;
}