/* Custom styles for IIT Bombay Blog Post Template */

/* Code snippet styling */
.code-container {
    background-color: #282c34;
    border-radius: 8px;
    margin: 24px 0;
    padding: 16px;
    overflow-x: auto;
    border-left: 4px solid #bd6418;
}

.code-container code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #abb2bf;
}

.code-label {
    font-size: 12px;
    color: #bd6418;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image styling */
.blog-image {
    width: 40%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 24px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.blog-images-row {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    justify-content: center;
}

.blog-images-row .blog-image {
    flex: 0 1 auto;
    margin: 0;
}

/* Profile section with text and image side-by-side */
.profile-section {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 24px 0;
}

.profile-text {
    flex: 1;
}

.profile-image {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        gap: 16px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: -16px;
    margin-bottom: 24px;
    font-style: italic;
    font-family: var(--font2);
}

/* Image gallery for multiple photos */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Blockquote styling */
.blog-quote {
    border-left: 4px solid #bd6418;
    padding: 16px 24px;
    margin: 24px 0;
    background-color: rgba(189, 100, 24, 0.05);
    font-style: italic;
    font-family: var(--font1);
    font-size: 18px;
    color: #333;
    border-radius: 4px;
}

.blog-quote-author {
    margin-top: 12px;
    text-align: right;
    font-size: 14px;
    font-style: normal;
    color: #666;
}

/* Section headings */
.blog-section-title {
    font-family: var(--font1);
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #000;
    border-bottom: 2px solid #bd6418;
    padding-bottom: 8px;
}

/* Subsection headings */
.blog-subsection-title {
    font-family: var(--font1);
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #333;
}

/* List styling */
.blog-content ul,
.blog-content ol {
    margin: 16px 0 16px 32px;
    font-family: var(--font2);
    font-size: 16px;
    line-height: 1.8;
}

.blog-content li {
    margin-bottom: 12px;
    color: #333;
}

/* Paragraph styling */
.blog-content p {
    font-family: var(--font2);
    font-size: 16px;
    line-height: 1.8;
    margin: 16px 0;
    color: #333;
}

/* Emphasis and strong */
.blog-content strong {
    color: #bd6418;
    font-weight: 600;
}

.blog-content em {
    font-style: italic;
    color: #555;
}

/* Key takeaway box */
.key-takeaway {
    background: linear-gradient(135deg, rgba(189, 100, 24, 0.1) 0%, rgba(189, 100, 24, 0.05) 100%);
    border: 2px solid #bd6418;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.key-takeaway-title {
    color: #bd6418;
    font-family: var(--font1);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.key-takeaway-content {
    font-family: var(--font2);
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Inline code */
.inline-code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #bd6418;
}

/* Divider */
.content-divider {
    height: 2px;
    background-color: #e0e0e0;
    margin: 40px 0;
    border-radius: 1px;
}

/* Tags */
.blog-tags {
    margin: 32px 0;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.blog-tags-title {
    font-family: var(--font1);
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font2);
    color: #333;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #bd6418;
    color: white;
    border-color: #bd6418;
    cursor: pointer;
}

/* Related articles section */
.related-articles-section {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 3px solid #bd6418;
}

.related-articles-title {
    font-family: var(--font1);
    font-size: 26px;
    margin-bottom: 24px;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-section-title {
        font-size: 24px;
    }

    .blog-subsection-title {
        font-size: 18px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .code-container {
        font-size: 12px;
        padding: 12px;
    }

    .blog-content p,
    .blog-content ul,
    .blog-content ol {
        font-size: 15px;
    }
}
