/* Medium-inspired Blog Styles with Navy Blue Gradient */

/* Main Blog Layout */
.blog-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-header {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
    color: #fff;
    border-radius: 0 0 10px 10px;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.blog-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.blog-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    grid-gap: 50px;
}

/* Archive/Category Page */
.blog-grid {
    display: grid;
    grid-gap: 40px;
}

/* Medium-style Featured Article */
.featured-post {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(230, 230, 230, 0.7);
}

.featured-post .blog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    align-items: center;
}

.featured-post .post-thumbnail {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post .post-content {
    padding: 0;
}

.featured-post .entry-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.featured-post .entry-title a {
    color: #242424;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-post .entry-title a:hover {
    color: var(--primary-color, #4668e0);
}

.featured-post .entry-summary {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail {
    height: 220px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
}

.entry-title a {
    color: #242424;
    text-decoration: none;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: var(--primary-color, #4668e0);
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #757575;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.post-meta > span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
}

.post-categories a {
    color: #757575;
    text-decoration: none;
    transition: color 0.2s;
}

.post-categories a:hover {
    color: var(--primary-color, #4668e0);
}

.entry-summary {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color, #4668e0);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.read-more:hover {
    color: var(--footer-gradient-start, #1a2a4a);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Author Box (Medium-style) */
.post-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.author-name:hover {
    text-decoration: underline;
}

.post-date {
    margin-left: 5px;
    color: #757575;
    display: flex;
    align-items: center;
}

.post-date::before {
    content: "•";
    margin: 0 5px;
}

.read-time {
    margin-left: 5px;
    color: #757575;
}

/* Medium-style Sidebar */
.blog-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(230, 230, 230, 0.7);
    color: #242424;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.popular-post {
    display: flex;
    align-items: flex-start;
}

.popular-post-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e6e6e6;
    margin-right: 15px;
    line-height: 1;
}

.popular-post-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.popular-post-content h3 a {
    color: #242424;
    text-decoration: none;
    transition: color 0.2s;
}

.popular-post-content h3 a:hover {
    color: var(--primary-color, #4668e0);
}

.popular-post-meta {
    font-size: 0.85rem;
    color: #757575;
    display: flex;
    align-items: center;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #242424;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #f8f8f8;
    transition: all 0.2s;
}

.category-list a:hover {
    background-color: #f0f0f0;
    color: var(--primary-color, #4668e0);
}

.category-list .count {
    background: var(--footer-gradient-start, #1a2a4a);
    color: white;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    color: #757575;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 3px;
    background-color: #f8f8f8;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
    color: white;
}

/* Medium-style Subscription Form */
.subscription-form {
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
    padding: 25px;
    border-radius: 8px;
    color: white;
}

.subscription-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.subscription-form p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.subscription-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.subscription-form button {
    width: 100%;
    padding: 12px 15px;
    background-color: white;
    color: var(--footer-gradient-end, #2c4278);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subscription-form button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Pagination (Medium-style) */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
}

.pagination .page-numbers {
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #f8f8f8;
    color: #242424;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
    color: white;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}

/* Single Post Page (Medium-style) */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 0;
}

.single-post-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #757575;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    grid-gap: 50px;
}

.single-post-content {
    font-size: 20px;
    line-height: 1.8;
    color: #242424;
}

.single-post-content p {
    margin-bottom: 30px;
}

.single-post-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.single-post-content h3 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color, #4668e0);
    padding-left: 20px;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #555;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.single-post-content code {
    background-color: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.single-post-content pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.single-post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Author Bio (Medium-style) */
.author-bio {
    display: flex;
    align-items: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-bio-content p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.95rem;
}

/* Comments Section (Medium-style) */
.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(230, 230, 230, 0.7);
}

/* Fix the dark background behind commenter name */
.comment-body {
    background-color: transparent;
}

/* Reset background for all comment elements */
.comment-list li,
.comment-list article,
.comment-list .comment-body,
.comment-list .comment-author,
.comment-list .comment-meta,
.comment-list .comment-metadata,
ol.comment-list li {
    background-color: transparent !important;
}

/* Reset specific WordPress comment items with dark background */
.comment-author .fn,
.comment-author .says,
.comment-metadata,
.comment-metadata a,
.comment-content,
time.comment-date {
    color: #242424;
    background-color: transparent;
}

.comment-metadata {
    margin-left: 78px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #757575;
    display: flex;
    align-items: center;
    background-color: transparent;
}

.comments-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #242424;
    position: relative;
    padding-bottom: 12px;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(230, 230, 230, 0.7);
    transition: transform 0.2s ease;
}

.comment:hover {
    transform: translateX(5px);
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: transparent;
}

.comment-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.comment-author .fn {
    font-weight: 700;
    color: #242424;
    font-size: 22px;
}

/* Style for commenter's name and says text */
.comment-author .fn, 
.comment-says {
    color: #242424;
    background-color: transparent;
}

.comment-metadata {
    margin-left: 78px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #757575;
    display: flex;
    align-items: center;
}

.comment-metadata a {
    color: #757575;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--primary-color, #4668e0);
}

.comment-metadata .edit-link {
    margin-left: 10px;
    position: relative;
}

.comment-metadata .edit-link::before {
    content: '•';
    margin-right: 10px;
    color: #ccc;
}

.comment-content {
    margin-left: 78px;
    line-height: 1.7;
    color: #444;
    background-color: #f9f9f9;
    padding: 20px 25px;
    border-radius: 8px;
    border-top-left-radius: 0;
    position: relative;
    font-size: 18px;
}

.comment-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid #f9f9f9;
    border-left: 10px solid transparent;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    margin-left: 78px;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: var(--primary-color, #4668e0);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.comment-reply-link::before {
    content: '↵';
    margin-right: 5px;
    font-size: 1.1em;
}

.comment-reply-link:hover {
    color: var(--footer-gradient-start, #1a2a4a);
    transform: translateX(3px);
}

/* Comment Form (Medium-style) */
.comment-respond {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--footer-gradient-start, #1a2a4a);
}

.comment-reply-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    color: #242424;
    display: flex;
    align-items: center;
}

.comment-reply-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--footer-gradient-start, #1a2a4a);
    margin-right: 10px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.comment-notes {
    margin-bottom: 25px;
    color: #666;
    font-style: italic;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: white;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color, #4668e0);
    box-shadow: 0 0 0 2px rgba(70, 104, 224, 0.2);
    outline: none;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--footer-gradient-start, #1a2a4a), var(--footer-gradient-end, #2c4278));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.comment-form input[type="submit"]:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.comment-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Comment default WordPress styling fixes */
.bypostauthor .comment-author .fn::after {
    content: ' (Author)';
    font-size: 0.8em;
    color: #888;
    font-weight: normal;
    font-style: italic;
}

.comment-awaiting-moderation {
    color: #d85030;
    font-style: italic;
    margin-left: 78px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    background-color: rgba(216, 80, 48, 0.1);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Fix the WordPress default comment text */
.comments-title .comments-count {
    font-weight: normal;
    font-size: 0.9em;
    color: #888;
}

/* Clean up the "One response to" text */
.comments-title {
    font-weight: 700;
    clear: both;
}

.comment-list .children {
    margin-left: 55px;
    list-style: none;
    margin-top: 30px;
    padding-left: 25px;
    border-left: 2px solid rgba(230, 230, 230, 0.7);
}

/* Related Posts (Medium-style) */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(230, 230, 230, 0.7);
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.related-post {
    display: flex;
    flex-direction: column;
}

.related-post-thumbnail {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: #242424;
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-title a:hover {
    color: var(--primary-color, #4668e0);
}

.related-post-meta {
    font-size: 0.85rem;
    color: #757575;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-layout,
    .single-post-layout {
        grid-template-columns: 1fr;
        grid-gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .featured-post .blog-card {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-thumbnail {
        height: 250px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .featured-post .entry-title,
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-meta > span {
        margin-bottom: 5px;
    }
    
    .blog-card {
        margin-bottom: 30px;
    }
    
    .entry-title {
        font-size: 1.3rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .post-thumbnail {
        height: 180px;
    }
    
    .featured-post .post-thumbnail {
        height: 200px;
    }
} 