/* AEM Labs - Blog Post CSS */
/* ======================== */


.blog-post-main {
    margin-top: 40px;
}

/* --- Hero Section Start --- */
.blog-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.blog-hero-container {
    max-width: min(75%, var(--max-container-width));
    margin: 0 auto;
    padding: 0 30px;
}

.blog-hero-content {
    text-align: center;
    margin-bottom: 20px;
}

.blog-title {
    font-size: clamp(30px, 5vw, 32px);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.blog-subtitle {
    font-size: clamp(16px, 2.5vw, 16px);
    color: #666;
    line-height: 1.4;
    max-width: 70%;
    margin: 0 auto;
    font-weight: 400;
}

.blog-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.blog-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.author-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-dates,
.read-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.blog-dates i,
.read-time i {
    font-size: 0.85rem;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.view-count i {
    font-size: 0.85rem;
}

.like-section {
    display: flex;
    align-items: center;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.like-btn.liked {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ff6b7a;
}

.like-btn.liked:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.like-btn i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.like-btn.liked i {
    color: #dc3545;
    animation: heartBeat 0.6s ease-in-out;
}

.like-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 1400px) {
    .blog-hero-container {
        max-width: min(80%, var(--max-container-width));
    }

    .blog-title {
        max-width: 100%;
        font-size: 32px;
    }

    .blog-subtitle {
        max-width: 85%;
        font-size: 16px;
    }

    .hero-image {
        height: 325px;
    }

    .blog-meta {
        padding: 30px 20px 20px;
        gap: 15px;
    }

    .blog-meta .author-info,
    .blog-meta .author-name,
    .blog-meta .blog-dates,
    .blog-meta .read-time {
        font-size: 14px;
    }

    .blog-meta .author-avatar-small {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 992px) {
    .blog-post-main {
        margin-top: 80px;
    }

    .blog-hero-container {
        padding: 0;
    }

    .blog-title {
        font-size: 28px;
    }

    .blog-subtitle {
        max-width: 100%;
    }

    .hero-image {
        height: 250px;
    }

    .blog-meta {
        padding: 20px 15px 15px;
        gap: 8px;
    }

    .blog-meta .author-info {
        gap: 4px;
    }

    .blog-meta .author-info,
    .blog-meta .author-name,
    .blog-meta .blog-dates,
    .blog-meta .read-time,
    .view-count span {
        font-size: 12px;
    }

    .blog-meta .author-avatar-small {
        width: 30px;
        height: 30px;
    }

    .post-stats {
        gap: 10px;
    }

    .blog-meta .like-btn {
        padding: 6px 10px;
    }

    .blog-meta .like-count {
        font-size: 12px;
    }

    .blog-meta .like-btn i {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .blog-hero-container {
        max-width: min(90%, var(--max-container-width));
    }

    .blog-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .blog-post-main {
        margin-top: 40px;
    }

    .blog-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .blog-subtitle {
        font-size: 12px;
    }

    .hero-image {
        height: 200px;
    }

    .blog-meta {
        padding: 15px 10px 10px;
        gap: 8px;
    }

    .blog-meta i {
        font-size: 12px;
    }

    .blog-meta .author-info,
    .blog-meta .author-name,
    .blog-meta .blog-dates,
    .blog-meta .read-time,
    .view-count span {
        font-size: 10px;
    }

    .blog-meta .author-avatar-small {
        width: 28px;
        height: 28px;
        border: 1px solid #fff;
    }

    .post-stats {
        gap: 8px;
    }

    .blog-meta .like-btn {
        padding: 4px 8px;
        gap: 4px;
    }

    .blog-meta .like-count {
        font-size: 10px;
    }

    .blog-meta .like-btn i {
        font-size: 11px;
    }
}

/* --- Hero Section End --- */


/* --- Sticky Social Sharing Bar Start --- */
.social-sharing-bar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.social-share-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.social-share-btn:hover::before {
    opacity: 1;
}

.social-share-btn i {
    font-size: 1.1rem;
    z-index: 1;
    position: relative;
}

.social-share-btn.twitter {
    background-color: #f8f9fa;
    color: #1da1f2;
}

.social-share-btn.twitter::before {
    background-color: #1da1f2;
}

.social-share-btn.twitter:hover {
    color: white;
    transform: translateY(-2px);
}

.social-share-btn.reddit {
    background-color: #f8f9fa;
    color: #ff4500;
}

.social-share-btn.reddit::before {
    background-color: #ff4500;
}

.social-share-btn.reddit:hover {
    color: white;
    transform: translateY(-2px);
}

.social-share-btn.linkedin {
    background-color: #f8f9fa;
    color: #0077b5;
}

.social-share-btn.linkedin::before {
    background-color: #0077b5;
}

.social-share-btn.linkedin:hover {
    color: white;
    transform: translateY(-2px);
}

.social-share-btn.copy-link {
    background-color: #f8f9fa;
    color: #666;
}

.social-share-btn.copy-link::before {
    background-color: #28a745;
}

.social-share-btn.copy-link:hover {
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .social-sharing-bar {
        left: 10px;
        padding: 10px;
    }

    .social-share-title {
        font-size: 10px;
    }

    .social-share-btn {
        width: 36px;
        height: 36px;
    }

    .social-share-btn i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .social-sharing-bar {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .social-sharing-bar {
        margin: 20px;
        padding: 16px;
        border-radius: 16px;
    }

    .social-share-title {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .social-share-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .social-share-btn {
        width: 42px;
        height: 42px;
    }

    .social-share-btn i {
        font-size: 16px;
    }
}

/* --- Sticky Social Sharing Bar End --- */


/* --- Main Content Start --- */
.blog-content {
    padding: 40px 0;
    background: white;
}

.blog-content-container {
    max-width: min(55%, var(--max-container-width));
    margin: 0 auto;
}

.blog-content-body {
    line-height: 1.8;
    color: #333;
}

.blog-content-body p {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
}

.blog-content-body a {
    color: var(--accent-color);
    text-decoration: underline;
}

.blog-content-body h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 14px;
    line-height: 1.3;
}

.blog-content-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 40px 0 20px;
    line-height: 1.4;
}

@media (max-width: 1400px) {
    .blog-content-container {
        max-width: min(65%, var(--max-container-width));
    }
}

@media (max-width: 992px) {
    .blog-content-container {
        max-width: min(80%, var(--max-container-width));
    }

    .blog-content-body h2 {
        font-size: 28px;
    }

    .blog-content-body h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .blog-content-container {
        max-width: min(78%, var(--max-container-width));
    }

    .blog-content-body h2 {
        font-size: 24px;
    }

    .blog-content-body p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-content-container {
        max-width: min(85%, var(--max-container-width));
    }

    .blog-content-body h2 {
        font-size: 20px;
    }

    .blog-content-body h3 {
        font-size: 18px;
    }

    .blog-content-body p {
        font-size: 13px;
    }
}

/* --- Main Content End --- */


/* ========================================
   MODULAR CONTENT SECTIONS
   ======================================== */

/* --- 1. Lead Paragraph Module --- */
.lead-paragraph {
    font-size: 20px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* --- 2. Single Landscape Image Block Module --- */
.content-image-block {
    margin: 0 0 20px;
    text-align: center;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 6px;
}

/* --- 3. Image Caption Module --- */
.content-image-block .image-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
}

/* --- 4. Six Image Grid Block Module --- */
.content-image-grid-block {
    margin: 40px 0 20px;
    text-align: center;
}

.content-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
}

.content-image-grid .grid-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-image-grid .grid-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.content-image-grid.featured {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.content-image-grid.featured .grid-image:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
}

.content-image-grid-block .image-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
}

/* --- 5. Two Images Side by Side Module --- */
.content-image-dual-block {
    margin: 0 0 20px;
    text-align: center;
}

.content-image-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
}

.content-image-dual .dual-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-image-dual .dual-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.content-image-dual-block .image-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
}

/* --- 6. Blog Quote Card Module --- */
.blog-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--accent-color, #a71c1c);
    margin: 0 0 40px;
    padding: 20px 50px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.blog-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color, #a71c1c);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.blog-quote:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #d64545;
}

.blog-quote p {
    font-size: 18px;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.blog-quote cite {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    font-style: normal;
}

/* --- 7. Styled Lists Module --- */
.blog-content-body ul,
.blog-content-body ol {
    margin: 8px 0 24px;
    padding-left: 0;
    list-style: none;
}

.blog-content-body ul li,
.blog-content-body ol li {
    position: relative;
    margin-bottom: 15px;
    padding: 15px 20px 15px 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color, #a71c1c);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #2c3e50;
}

.blog-content-body ul li:hover,
.blog-content-body ol li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #d64545;
}

.blog-content-body ul li::before {
    content: '▶';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color, #a71c1c);
    font-size: 0.9rem;
    font-weight: bold;
}

.blog-content-body ol {
    counter-reset: custom-counter;
}

.blog-content-body ol li {
    counter-increment: custom-counter;
}

.blog-content-body ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color, #a71c1c);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Nested lists styling */
.blog-content-body ul ul,
.blog-content-body ol ol,
.blog-content-body ul ol,
.blog-content-body ol ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.blog-content-body ul ul li,
.blog-content-body ol ol li,
.blog-content-body ul ol li,
.blog-content-body ol ul li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left-color: #ccc;
    margin-bottom: 10px;
    padding: 12px 15px 12px 40px;
    font-size: 0.95rem;
}

.blog-content-body ul ul li::before {
    content: '◦';
    color: #666;
    font-size: 1.2rem;
    left: 15px;
}

.blog-content-body ol ol li::before {
    background: #666;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    left: 15px;
}

/* --- Module Responsiveness Start --- */
@media (max-width: 768px) {
    .blog-quote {
        margin: 30px 0;
        padding: 25px 25px;
    }

    .blog-quote::before {
        font-size: 42px;
        top: -5px;
        left: 15px;
    }

    .blog-quote p {
        font-size: 16px;
    }

    /* Dual Images */
    .content-image-dual .dual-image {
        height: auto;
    }

    /* Lists */
    .blog-content-body ul li,
    .blog-content-body ol li {
        padding: 12px 15px 12px 45px;
        margin-bottom: 12px;
    }

    .blog-content-body ul li::before {
        left: 18px;
        font-size: 0.8rem;
    }

    .blog-content-body ol li::before {
        left: 18px;
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .content-image-block {
        margin: 30px 0;
    }

    .image-caption {
        padding: 0 10px;
        font-size: 12px;
    }

    .blog-quote {
        padding: 20px;
    }

    .blog-quote p {
        font-size: 13px;
        margin-bottom: 0;
    }

    .blog-quote cite {
        font-size: 12px;
    }

    /* Image Grid */
    .content-image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
    }

    .content-image-block .image-caption,
    .content-image-dual-block .image-caption,
    .content-image-grid-block .image-caption {
        padding: 0;
        font-size: 11px;
    }    

    /* Lists */
    .blog-content-body ul li,
    .blog-content-body ol li {
        padding: 10px 12px 10px 35px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .blog-content-body ul li::before {
        left: 15px;
        font-size: 10px;
    }

    .blog-content-body ol li::before {
        left: 15px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .blog-content-body ul ul li,
    .blog-content-body ol ol li,
    .blog-content-body ul ol li,
    .blog-content-body ol ul li {
        padding: 8px 10px 8px 35px;
        font-size: 13px;
    }
}

/* --- Module Responsiveness End --- */


/* --- Author Box Start --- */
.author-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.author-box-container {
    max-width: min(40%, var(--max-container-width));
    margin: 0 auto;
}

.author-profile {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    flex-shrink: 0;
}

.author-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.author-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color, #a71c1c);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.author-posts-link:hover {
    color: #d64545;
    transform: translateX(5px);
}

@media (max-width: 1400px) {
    .author-box-container {
        max-width: min(55%, var(--max-container-width));
    }
}

@media (max-width: 992px) {
    .author-box-container {
        max-width: min(70%, var(--max-container-width));
    }
    .author-profile {
        padding: 24px 18px;
        gap: 18px;
    }

    .author-box {
        padding: 30px 0;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
    }

    .author-bio {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .author-box-container {
        max-width: min(90%, var(--max-container-width));
    }

    .author-profile {
        padding: 20px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-details h3 {
        font-size: 14px;
    }

    .author-bio {
        font-size: 11px;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .author-posts-link {
        font-size: 11px;
    }
}

/* --- Author Box End --- */


/* --- Related Posts Start --- */
.related-posts {
    background: white;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.related-posts-container {
    max-width: min(60%, var(--max-container-width));
    margin: 0 auto;
}

.related-posts .section-header {
    margin-bottom: 30px;
}

.related-posts .section-header h2 {
    font-size: 32px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-posts .section-header h2::after {
    width: 15%;
    height: 8px;
}

.related-posts .section-header i {
    color: var(--accent-color, #a71c1c);
    font-size: 28px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color, #a71c1c);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.post-card:hover .read-more-btn {
    transform: scale(1);
}

.read-more-btn:hover {
    background: #d64545;
    transform: scale(1.1);
}

.post-card-content {
    padding: 16px 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.post-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category.general {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.post-category.dev-logs {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.post-category.updates {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.post-category.tutorials {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.post-category.community {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.post-category.tech-insights {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.post-date {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.post-title {
    margin-bottom: 6px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--accent-color, #a71c1c);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.post-author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-mini span {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.post-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.post-read-time i {
    font-size: 12px;
}

@media (max-width: 1400px) {
    .related-posts-container {
        max-width: min(80%, var(--max-container-width));
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .post-card-image {
        height: 160px;
    }

    .post-card-content {
        padding: 12px 18px;
    }

    .post-meta {
        margin-bottom: 4px;
    }

    .post-card .post-title a {
        font-size: 16px;
    }

    .post-card .post-excerpt {
        font-size: 13px;
    }

    .post-card .post-meta {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .post-card-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .related-posts .section-header {
        margin-bottom: 20px;
    }

    .related-posts .section-header h2 {
        font-size: 24px;
    }

    .related-posts .section-header i {
        font-size: 22px;
    }

    .post-category, .post-date {
        font-size: 8px;
    }

    .related-posts .post-card .post-excerpt {
        font-size: 11px;
    }

    .related-posts .post-card .post-title a {
        font-size: 13px;
    }

    .related-posts .post-card .post-footer {
        padding-top: 10px;
    }

    .related-posts .post-card .post-meta {
        gap: 8px;
    }

    .related-posts .post-card .post-author-mini img {
        width: 28px;
        height: 28px;
    }

    .related-posts .post-card .post-author-mini span {
        font-size: 12px;
    }

    .related-posts .post-card .post-read-time,
    .related-posts .post-card .post-read-time i {
        font-size: 10px;
    }


}

/* --- Related Posts End --- */


/* --- No Related Posts Fallback Start --- */
.no-related-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-related-posts p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #a71c1c, #d64545);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 28, 28, 0.3);
    color: white;
    text-decoration: none;
}

/* --- No Related Posts Fallback End --- */