.post-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;  /* Ensure padding is included in width */
}

.blog-post-full {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;  /* Prevent text overflow */
    word-wrap: break-word;
}

.post-header {
    text-align: center;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(91, 159, 255, 0.03) 100%);
    border-radius: 24px 24px 0 0;
    position: relative;
}

.post-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.post-meta {
    font-size: 1.1rem;
    color: #666;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    position: relative;
}

.post-meta span {
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
}

.post-content h2 {
    font-size: 2.2rem;
    margin: 2.5rem 0 1.5rem;
    color: #1d1d1f;
    position: relative;
    padding-bottom: 1rem;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066CC 0%, #5B9FFF 100%);
    border-radius: 4px;
}

.post-content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #1d1d1f;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ol,
.post-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content strong {
    color: #333;
    font-weight: 600;
}

.cta-section {
    text-align: center;
    margin: 5rem 0 2rem;
    padding: 3rem 2rem;
    background: none;
    position: relative;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #0066CC 0%, #5B9FFF 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.3);
}

blockquote {
    border-left: 4px solid #007AFF;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    font-style: italic;
}

code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box {
    background: linear-gradient(145deg, rgba(0, 102, 204, 0.03) 0%, rgba(91, 159, 255, 0.03) 100%);
    border: 1px solid rgba(0, 102, 204, 0.1);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.info-box h4 {
    color: #0066CC;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #0066CC, #5B9FFF);
    border-radius: 2px;
    margin-right: 10px;
}

.info-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.info-box li {
    margin-bottom: 0.8rem;
    position: relative;
}

.info-box li strong {
    color: #1d1d1f;
}

h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.post-images {
    display: block;
    margin: 2rem auto;
}

.post-images.multiple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-images img:hover {
    transform: translateY(-5px);
}

/* Improve mobile responsiveness */
@media (max-width: 768px) {
    .post-container {
        padding: 0 1rem;
        margin: 1rem auto;
        width: 100%;
    }

    .blog-post-full {
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
    }

    .post-header {
        margin: -1rem -1rem 1.5rem -1rem;  /* Adjust margins to match new padding */
        padding: 1.5rem 1rem;
    }

    .post-header h1 {
        font-size: 1.8rem;  /* Smaller title on mobile */
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .post-meta {
        font-size: 0.9rem;
        gap: 1rem;  /* Reduce gap between meta items */
    }

    .post-meta span {
        padding: 0.3rem 0.8rem;  /* Smaller padding for meta tags */
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
    }

    .post-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem;
    }

    .post-content p,
    .post-content ul,
    .post-content ol {
        margin-bottom: 1.2rem;
    }

    .info-box {
        padding: 1rem;
        margin: 1.5rem 0;
        width: 100%;
        box-sizing: border-box;
    }

    .info-box h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .post-single-image {
        margin: 1.5rem auto;  /* Reduce margin */
        border-radius: 8px;  /* Smaller border radius */
    }

    .article-image {
        margin: 1.5rem auto;
    }

    .article-image figcaption {
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;  /* Stack columns on mobile */
        gap: 1rem;
    }

    .cta-section {
        margin: 3rem 0 1.5rem;
        padding: 2rem 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;  /* Full width on mobile */
    }

    /* Ensure tables and pre elements don't overflow */
    .post-content table,
    .post-content pre {
        max-width: 100%;
        overflow-x: auto;
    }

    /* Adjust list padding to prevent overflow */
    .post-content ul,
    .post-content ol {
        padding-left: 1.5rem;
        margin-right: 0;
    }
}

/* Additional optimization for very small screens */
@media (max-width: 375px) {
    .post-header h1 {
        font-size: 1.6rem;
    }

    .post-content {
        font-size: 0.95rem;
    }

    .post-meta {
        flex-direction: column;  /* Stack meta items on very small screens */
        gap: 0.5rem;
        align-items: center;
    }

    .post-container {
        padding: 0 0.8rem;
    }

    .blog-post-full {
        padding: 0.8rem;
    }
}

.post-single-image {
    margin: 2rem auto 3rem;
    width: 100%;
    max-width: 800px;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.post-single-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.post-single-image:hover img {
    transform: scale(1.03);
}

/* Update the article image styles */
.article-image {
    margin: 2rem auto;
    width: 100%;
    position: relative;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image:hover img {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.article-image figcaption {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: 1.5rem;
    font-style: italic;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Add styles for the partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.partners-column {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.partners-column h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.partners-column ul {
    margin: 0;
    padding-left: 1.5rem;
}

.partners-column li {
    margin-bottom: 0.5rem;
}

/* Make it responsive */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
} 