@import '/styles/global.css';
@import '/styles/HeaderManager.css';
@import '/styles/FooterManager.css';
@import '/styles/SignupElement.css';
@import '/styles/CookieConsent/CookieConsent.css';
@import '/styles/CookieConsent/CookiePreferences.css';

.blog-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 120px 0px;
}

#post-heading {
    text-align: center;
    padding-bottom: 30px;
}

/* post.css */
.post-leading-text {
    
    padding: 0 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.post-leading-text p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 24px;
}

.post-leading-text p:last-child {
    margin-bottom: 0;
}
/*---------------*/
/*---<  Image is between >----*/
/*---------------*/
.post-body-container {
    padding-top: 40px;
}

.post-footer {
    margin-top: 70px;
    border-top: 1px solid var(--color-black);
}
/* Post content formatting */
.post-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 0px;
    color: #000;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #000;
}

.post-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* Ordered lists - Fix number alignment */
/* Ordered lists - Fix number and title alignment */
.post-content ol {
    margin-bottom: 24px;
    padding-left: 0px;
    list-style-position: outside;
    list-style-type: decimal;
}

.post-content ol li {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    padding-left: 0px;
}

.post-content ol li strong {
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

/* Remove any paragraph margins inside list items */
.post-content ol li p {
    margin: 0;
    display: inline;
}

/* Unordered lists - Fix bullet points */
/* Unordered lists - Fix bullet points */
.post-content ul {
    margin-bottom: 24px;
    padding-left: 0;
    list-style: none;
}

.post-content ul li {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.post-content ul li::before {
    content: "•"; /* Custom bullet */
    position: absolute;
    left: 0;
    color: #333;
    font-size: 20px;
    line-height: 1.5;
}

.post-content li strong {
    font-weight: 700;
    color: #000;
}
/*----------------*/
.footer-container {
    display: flex;
    align-items: flex-start; /* Changed from center */
    justify-content: space-between; /* ADD THIS */
    padding-block: 40px;
}

.category-label {
    font-size: 0;
}

.author-section {
    display: flex;
    align-items: center;
    width: 50%;
}

/* Large avatar (for post page) */
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-grey-dividers);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
    margin-right: 20px;
    flex-shrink: 0; /* Prevent shrinking */
    margin-left: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 0;
}

.post-author {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.post-date {
    font-size: 14px;
    margin: 0;
    color: #666;
}

/*----------------*/
.social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns to right */
    width: 50%;
}

.social-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
    margin: 0;
    padding-bottom: 5px;
}

.blog-social-icons {
    display: flex;
    gap: 12px; /* Space between icons */
    margin-right: 0;
}

.social-icons a {
    display: block;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-icons img {
    width: 100%;
    height: 100%;
}
/*------------*/
/*  Newsletter Signup Section  */
/*------------*/
.newsletter-signup {
    width: 100%;
    background: var(--color-grey-background);
    padding-block: 80px;
    margin: 0 auto;
}
.signup-container {
    max-width: 800px;
    text-align: center;
    padding-inline: 20px;
    margin: 0 auto;
}
.signup-lead-text {
    padding-bottom: 30px;
    font-size: 1rem;
}

.closing-signup-text {
    padding-top: 25px;
    font-size: .85rem;
    line-height: 1.3;
}
.closing-signup-text a {
    font-size: .85rem;
    cursor: pointer;
}
.closing-signup-text a:hover {
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .blog-post {
        max-width: 1200px;
        margin: 0 auto;
        padding: 50px 50px 0px;
    }
    #post-heading {
        text-align: center;
    }

    
}
@media (max-width: 768px) {
    .blog-post {
        padding: 50px 20px 0px;
    }
    .post-leading-text {
        padding: 0 0 40px 0;
    }
    .post-leading-text p {
        text-align: justify;
    }
}

@media (max-width: 576px) {
    /* Small avatar (for listing page cards) */
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}