/* Base Styles */
:root {
    /* Typography */
    --font-heading: 'Source Serif Pro', serif;
    --font-body: 'Inter', sans-serif;

    /* Colors */
    --text-primary: #242424;
    --primary: #258412;
    --secondary: #1C2A3E;
    --white: #FFFFFF;
    --wd-primary-color: #258412;
    --text-secondary: #6b6b6b;
    --text-tertiary: #9a9a9a;
    --background: #ffffff;
    --background-secondary: #f9f9f9;
    --border-color: #e6e6e6;
    --accent-color: #1a8917;
    --accent-hover: #0f730c;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--wd-text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Updated to match other pages */
.ai-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-nav {
    width: 100%;
    padding: 20px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--wd-primary-color);
    transition: width 0.3s ease;
}

.nav-link {
    color: var(--wd-heading-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--wd-primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--wd-primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions .btn {
    font-size: 0.95rem;
    padding: 10px 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--wd-primary-color), #4ECDC4);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    border: 0px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Main Content Area */
.main-content-area {
    padding: 120px 16px 0px 16px;
}

.single-post-layout {
    max-width: 768px;
    margin: 0 auto;
}

/* Single Post Styles */
.single-post {
    margin-bottom: 1.5rem;
}

.publication-context {
    margin-bottom: 1.5rem;
}

.publication-link {
    color: var(--wd-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--wd-transition);
}

.publication-link:hover {
    color: var(--wd-primary-color);
}

.post-title {
    font-family: var(--wd-font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--wd-heading-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Author Meta */
.author-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    color: var(--wd-heading-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--wd-transition);
}

.author-name:hover {
    color: var(--wd-primary-color);
}

.follow-button {
    background: none;
    border: 1px solid var(--wd-border-color);
    border-radius: 99px;
    padding: 0.25rem 0.75rem;
    color: var(--wd-text-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--wd-transition);
    font-weight: 400;
}

.follow-button:hover {
    border-color: var(--wd-heading-color);
    color: var(--wd-heading-color);
    background-color: var(--wd-background-grey);
}

.post-details {
    color: var(--wd-light-text-color);
    font-size: 0.9rem;
}

/* Action Bar */
.action-bar {
    margin-bottom: 2rem;
}

.action-bar hr {
    border: none;
    border-top: 1px solid var(--wd-border-color);
    margin: 0.75rem 0;
}

.actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.actions-left,
.actions-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wd-light-text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    transition: var(--wd-transition);
}

.action-btn:hover {
    color: var(--wd-heading-color);
}

/* Featured Image */
.featured-image {
    margin-bottom: 2rem;
}

.featured-image-src {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

figcaption {
    margin-top: 0.75rem;
    color: var(--wd-light-text-color);
    font-size: 0.85rem;
    text-align: center;
}

/* Article Body Styles */
.article-body {
    margin-bottom: 3rem;
    font-family: var(--wd-font-heading);
    color: var(--wd-text-color);
}

/* Article Body Typography */
.article-body p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--wd-text-color);
}

.article-body h2 {
    font-family: var(--wd-font-heading);
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 3rem 0 1.5rem;
    color: var(--wd-heading-color);
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-family: var(--wd-font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 2.5rem 0 1.25rem;
    color: var(--wd-heading-color);
}

.article-body a {
    color: var(--wd-primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--wd-transition);
}

.article-body a:hover {
    text-decoration-thickness: 2px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 2rem 2rem;
    padding: 0;
}

.article-body li {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--wd-heading-color);
    font-style: italic;
    color: var(--wd-heading-color);
}

.article-body blockquote p {
    font-size: 1.35rem;
    line-height: 1.6;
}

.article-body pre {
    background-color: var(--wd-background-grey);
    border-radius: 4px;
    padding: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-body code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    background-color: var(--wd-background-grey);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.article-body figure {
    margin: 2.5rem 0;
}

.article-body figure img {
    width: 100%;
    border-radius: 4px;
}

.article-body figcaption {
    margin-top: 0.75rem;
    color: var(--wd-light-text-color);
    font-size: 0.85rem;
    text-align: center;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--wd-background-grey);
    border-radius: 99px;
    color: var(--wd-text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--wd-transition);
}

.tag-link:hover {
    background-color: #e9e9e9;
}

/* End Clap Section */
.end-clap-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clap-btn-large {
    background: none;
    border: 1px solid var(--wd-border-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--wd-transition);
}

.clap-btn-large:hover {
    background-color: var(--wd-background-grey);
}

.end-clap-count {
    color: var(--wd-light-text-color);
    font-size: 0.9rem;
}

.section-separator {
    border: none;
    border-top: 1px solid var(--wd-border-color);
    margin: 2rem 0;
}

/* Author Footer Box */
.author-footer-box {
    background-color: var(--wd-background-grey);
    border-radius: 4px;
    padding: 2rem;
}

.author-footer-content {
    display: flex;
    gap: 1.5rem;
}

.footer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.footer-name {
    font-family: var(--wd-font-heading);
    font-size: 20px;
    color: var(--wd-heading-color);
}

.footer-bio {
    color: var(--wd-text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-policy ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.follow-button-large {
    background: none;
    border: 1px solid var(--wd-border-color);
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    color: var(--wd-text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--wd-transition);
    align-self: flex-start;
    font-weight: 400;
}

.follow-button-large:hover {
    border-color: var(--wd-heading-color);
    color: var(--wd-heading-color);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responses Section */
.responses-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--wd-font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--wd-heading-color);
}

.response-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.response-input-wrapper {
    flex: 1;
}

article.post-preview img {
    width: 100%;
}

.response-input {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--wd-border-color);
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--wd-font-body);
    font-size: 1rem;
    color: var(--wd-text-color);
    resize: vertical;
}

.response-input:focus {
    outline: none;
    border-color: var(--wd-heading-color);
}

.comments-list {
    /* Placeholder for comment styles */
}

/* Related Posts Section */
.related-posts-section {
    margin-bottom: 4rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Footer */
.ai-footer {
    padding: 60px 0 20px;
    background: #F8F9FA;
    color: #000000;
    font-size: 14px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

/* Company Info Styles */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-logo .logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--white);
}

.footer-logo .logo-wd {
    color: var(--primary);
    margin-right: 4px;
}

.company-address p {
    line-height: 1.6;
    color: #000000;
    margin: 0;
}

.company-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.contact-item i {
    color: var(--primary);
    font-size: 16px;
}

.contact-item a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Menu Styles */
.footer-menu h4,
.footer-services h4,
.footer-downloads h4 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    margin-top: 0px;
}

.footer-nav ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li,
.footer-services ul li {
    margin-bottom: 15px;
}

.footer-nav ul li a,
.footer-services ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary);
}

/* Services Columns */
.services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}



/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.copyright p {
    margin: 0;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #26851533;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s;
}

.social-icon:hover {
    background-color: var(--wd-primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 81px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links.active {
        max-height: 800px;
        overflow-y: auto;
        visibility: visible;
        padding: 0 25px 25px;
        gap: 0;
    }

    .nav-links {
        padding: 0 25px 25px;
    }

    .nav-link {
        padding: 10px 0px;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: start;
    }

    .nav-links li {
        height: auto;
        width: 100%;
        margin: 0;
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .author-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .article-body p,
    .article-body li {
        font-size: 16px;
    }

    .footer-policy ul {
        display: flex;
        gap: 10px !important;
        list-style: none;
        justify-content: center !important;
    }

    .footer-policy li a {
        font-size: 13px;
        padding: 5px;
        font-weight: 500;
    }


    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }

    .author-footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .follow-button-large {
        align-self: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        display: block !important;
    }

    .footer-menu {
        margin-top: 40px;
    }

    .main-content-area {
        padding: 140px 16px 50px 16px;
    }

    .related-posts-section {
        margin-bottom: 0px;
    }

    .post-title {
        font-size: 1.5rem !important;
    }

    .footer-bottom {
        display: block;
        justify-content: center;
    }

    .copyright p {
        text-align: center;
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.75rem;
    }

    .actions-container {
        padding: 0.25rem 0;
    }

    .actions-left,
    .actions-right {
        gap: 0.5rem;
    }

    .author-footer-box {
        padding: 1.5rem;
    }

    .write-btn span {
        display: none;
    }
}