/* Single Article Template Styles */

/* Main Container Layout */
.single-article-main-content {
    background-color: #ffffff;
    width: 100%;
    min-height: 80vh;
    box-sizing: border-box;
}

/* Header / Hero Section */
.single-article-header {
    background: linear-gradient(180deg, #f4fbfb 0%, #ffffff 100%);
    padding: 230px 0 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.single-article-header-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Breadcrumbs Styling */
.article-breadcrumbs {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8c8c8c;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.article-breadcrumbs a {
    color: #59bcb1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
    color: #094f50;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #d1d1d1;
    user-select: none;
}

.breadcrumb-current {
    color: #1a1a1a;
    font-weight: 600;
}

/* Article Meta */
.article-meta {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6c6c6c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-meta-separator {
    color: #59bcb1;
    user-select: none;
}

.article-category {
    color: #15b4b6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-category:hover {
    color: #094f50;
}

/* Article Title */
.single-article-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #15b4b6 0%, #094f50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    max-width: 1000px;
}

@media (max-width: 1024px) {
    .single-article-header {
        padding: 200px 0 20px;
    }
}

@media (max-width: 768px) {
    .single-article-header {
        padding: 165px 0 15px;
    }
    .single-article-title {
        font-size: 34px;
        letter-spacing: -1px;
    }
}

@media (max-width: 480px) {
    .single-article-header {
        padding: 155px 0 15px;
    }
    .single-article-title {
        font-size: clamp(24px, 7vw, 30px);
    }
}

/* Featured Image Styling */
.single-article-featured-image-wrapper {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto 20px;
}

.single-article-featured-image-container {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    background-color: #f7fcfc;
}

.single-article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: imageZoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes imageZoomIn {
    from {
        transform: scale(1.05);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .single-article-featured-image-wrapper {
        margin-bottom: 15px;
    }
    .single-article-featured-image-container {
        border-radius: 10px;
        max-height: 300px;
    }
}

/* Post Content Body */
.single-article-content-section {
    padding-bottom: 100px;
    width: 100%;
    box-sizing: border-box;
}

.single-article-content-section.no-featured-image {
    padding-top: 35px;
}

.single-article-content-section.has-featured-image {
    padding-top: 0;
}

/* Remove any extra top margin on the first element in the post content */
.article-entry-content > *:first-child {
    margin-top: 0 !important;
}

/* Hide all Gutenberg spacer blocks inside the article content */
.article-entry-content .wp-block-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-article-content-container {
    max-width: 1400px; /* Increased to 1400px with smaller side margins */
    width: 95%; /* Increased width percentage from 90% to 95% to reduce side margins */
    margin: 0 auto;
    box-sizing: border-box;
}

.article-entry-content {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e3c;
    margin-bottom: 60px;
}

/* Constrain text elements for high readability, while letting figures be wider */
.article-entry-content > p,
.article-entry-content > h2,
.article-entry-content > h3,
.article-entry-content > h4,
.article-entry-content > ul,
.article-entry-content > ol,
.article-entry-content > blockquote,
.article-entry-content > hr {
    max-width: 960px; /* Set to 960px for elegant readable text column */
    margin-left: auto;
    margin-right: auto;
}

/* Gutenberg Editor Blocks overrides for style alignment */
.article-entry-content p {
    margin-top: 0;
    margin-bottom: 26px;
}

.article-entry-content h2 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #094f50;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.article-entry-content h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #094f50;
    margin-top: 35px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.article-entry-content blockquote {
    border-left: 4px solid #15b4b6;
    margin: 40px 0;
    padding: 10px 0 10px 30px;
    font-style: italic;
    color: #4a5c5a;
    background-color: #f7fcfc;
    border-radius: 0 8px 8px 0;
}

.article-entry-content blockquote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
}

.article-entry-content ul, 
.article-entry-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
}

.article-entry-content li {
    margin-bottom: 12px;
}

.article-entry-content figure {
    margin: 40px 0;
}

.article-entry-content figure img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.article-entry-content figcaption {
    font-size: 14px;
    color: #6c6c6c;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .article-entry-content {
        font-size: 16px;
        line-height: 1.7;
    }
    .article-entry-content h2 {
        font-size: 24px;
        margin-top: 35px;
    }
    .article-entry-content h3 {
        font-size: 20px;
        margin-top: 25px;
    }
}

/* Sharing Section Styles */
.article-share-container {
    margin: 60px 0 40px;
    padding: 40px 0 0;
    border-top: 1px dashed rgba(89, 188, 177, 0.25);
    text-align: center;
}

.share-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #094f50;
    margin: 0 0 25px 0;
    letter-spacing: -0.5px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.share-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Brands Styling */
.share-linkedin {
    background-color: #0077b5;
    color: #ffffff;
}

.share-linkedin:hover {
    background-color: #005f91;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

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

.share-facebook:hover {
    background-color: #0d62d3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.share-instagram:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.3);
}

.share-copy {
    background-color: #f0faf9;
    color: #15b4b6;
    border: 1.5px solid rgba(21, 180, 182, 0.2);
    box-shadow: none;
}

.share-copy:hover {
    background-color: #15b4b6;
    color: #ffffff;
    border-color: #15b4b6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(21, 180, 182, 0.25);
}

.share-copy.copied {
    background-color: #299e91 !important;
    color: #ffffff !important;
    border-color: #299e91 !important;
    box-shadow: 0 8px 20px rgba(41, 158, 145, 0.25) !important;
}

/* Toast Notification */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #094f50;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(9, 79, 80, 0.25);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    text-align: center;
    max-width: 90%;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Separator Line */
.article-separator {
    border: none;
    height: 1px;
    background-color: rgba(89, 188, 177, 0.15);
    margin: 50px 0;
}

/* Next / Prev Navigation Styling */
.article-navigation {
    width: 100%;
}

.nav-links-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.nav-link-box {
    background: linear-gradient(135deg, #ffffff 0%, #fafdff 100%);
    border: 1px solid rgba(89, 188, 177, 0.15);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link-box:not(.nav-empty):hover {
    transform: translateY(-6px);
    border-color: #15b4b6;
    box-shadow: 0 15px 30px rgba(89, 188, 177, 0.12);
}

.nav-link-box a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* Direction indicators */
.nav-direction {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #59bcb1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.nav-link-box:hover .nav-direction {
    color: #094f50;
}

.nav-direction svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Direction icons hover adjustments */
.prev-link-box:hover .nav-direction svg {
    transform: translateX(-4px);
}

.next-link-box:hover .nav-direction svg {
    transform: translateX(4px);
}

.next-link-box .nav-direction {
    justify-content: flex-end;
}

.next-link-box {
    text-align: right;
}

/* Title text inside box */
.nav-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #094f50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav-link-box:hover .nav-title {
    color: #15b4b6;
}

/* Empty/Placeholder States */
.nav-empty {
    background-color: #fafafa;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.nav-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60px;
}

.nav-direction-disabled {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #bfbfbf;
}

/* Responsive navigation */
@media (max-width: 650px) {
    .nav-links-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-link-box {
        padding: 20px;
    }
    
    .nav-title {
        font-size: 16px;
    }
}
