/* 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;
}


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);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.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: 1.5rem;
    margin: 0;
    height: 100%;
    align-items: center;
}



.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 (Two Columns) */
.main-content-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 16px 70px 16px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* Left Column (Main Feed) */
.main-feed-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Post Preview Styles */
.post-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.author-link {
    display: inline-flex;
}

.post-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-publication-context a,
.post-author-name a {
    color: var(--wd-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--wd-transition);
}

.post-publication-context a:hover,
.post-author-name a:hover {
    color: var(--wd-primary-color);
}

.post-content-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.post-text-content {
    flex: 1;
}

.post-title {
    font-family: var(--wd-font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--wd-heading-color);
    text-decoration: none;
    transition: var(--wd-transition);
}

.post-title a:hover {
    color: var(--wd-text-color);
    text-decoration: underline;
}

.post-excerpt {
    color: var(--wd-text-color);
    font-size: 1rem;
    line-height: 1.4;
}

.post-image-container {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.post-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date-read-time {
    color: var(--wd-light-text-color);
    font-size: 0.85rem;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--wd-light-text-color);
    font-size: 0.85rem;
}

.post-meta-claps,
.post-meta-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wd-light-text-color);
    font-size: 1rem;
    transition: var(--wd-transition);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-action-btn:hover {
    color: var(--wd-text-color);
}

/* Load More Button */
.load-more-container {
    margin-top: 2rem;
    text-align: center;
}

.load-more-button {
    background: none;
    border: 1px solid var(--wd-border-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--wd-text-color);
    cursor: pointer;
    transition: var(--wd-transition);
    border-radius: 99px;
}

.load-more-button:hover {
    background-color: var(--wd-background-grey);
}

/* Right Column (Sidebar) */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sticky-sidebar {
    position: sticky;
    top: 5rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--wd-heading-color);
}

.widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.widget-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.widget-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-item-source {
    font-size: 0.8rem;
    color: var(--wd-light-text-color);
}

.widget-item-source a {
    color: var(--wd-light-text-color);
    text-decoration: none;
    transition: var(--wd-transition);
}

.widget-item-source a:hover {
    color: var(--wd-text-color);
}

.widget-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wd-heading-color);
    text-decoration: none;
    transition: var(--wd-transition);
    line-height: 1.3;
}

.widget-item-title:hover {
    color: var(--wd-text-color);
    text-decoration: underline;
}

.widget-item-date {
    font-size: 0.8rem;
    color: var(--wd-light-text-color);
    margin-top: 0.25rem;
}

.see-full-list {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--wd-light-text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--wd-transition);
}

.see-full-list:hover {
    color: var(--wd-text-color);
    text-decoration: underline;
}

.topic-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #26851533;
    border-radius: 99px;
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--wd-transition);
}

.topic-pill:hover {
    background-color: var(--primary);
    color: var(--white);
}


/* 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;
}

.footer-policy ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

/* 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: 20px;
}

.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: #2c3e50;
    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;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}

.copyright p {
    margin: 0;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #26851533;
    color: #258412;
    text-decoration: none;
    transition: all 0.2s;
}

.social-icon:hover {
    background-color: var(--wd-primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-menu h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.company-contact h4 {
    font-size: 18px;
    margin-bottom: 0px;
}

/* Responsive Design for Header */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }



    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        display: block;
        padding: 1rem 0;
    }

    .nav-actions {
        margin-top: 1.5rem;
        width: 100%;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .nav-actions {
        display: none;
    }

    .nav-links.active {
        max-height: 800px;
        overflow-y: auto;
        visibility: visible;
        padding: 0px 25px 25px 25px;
        gap: 0;
    }

    .nav-links li {
        height: auto;
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 69px;
        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-link {
        padding: 6px 0px;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        display: block !important;
    }

    .footer-menu {
        margin-top: 40px;
    }

    .main-content-area {
        padding: 140px 16px 50px 16px;
    }

    .footer-policy ul {
        display: flex;
        gap: 10px !important;
        list-style: none;
    }

    .footer-policy li a {
        font-size: 13px;
        padding: 5px;
        font-weight: 500;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Responsive Design - Adjust existing media queries */
@media (max-width: 1100px) {
    .two-column-layout {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        display: none;
    }

    .post-content-row {
        gap: 1rem;
    }

    .post-image-container {
        width: 100px;
        height: 100px;
    }

    .post-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .ai-nav {
        padding: 15px 0;
    }

    .main-content-area {
        padding-top: 110px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .post-content-row {
        flex-direction: column;
        gap: 1rem;
    }

    .post-image-container {
        width: 100%;
        height: 180px;
        order: -1;
    }

    .post-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .post-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medium-style-post {
    animation: fadeIn 0.3s ease-out;
}