/* Override main styles for articles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.article-main {
    margin-top: 120px;
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.article-content {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.article-title {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    word-wrap: break-word;
}

.article-image {
    text-align: center;
    margin: 2rem 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    color: #2c5aa0;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.highlight {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    font-weight: bold;
    margin: 2rem 0;
}

.points-list {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 2rem 0;
}

.points-list p {
    margin: 0.5rem 0;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.article-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.back-to-blog {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-to-blog:hover {
    background: #1e3d6f;
}

/* Articles index page styles */
.articles-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.articles-title {
    color: #2c5aa0;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.articles-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-date {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.article-card-title {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-card-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    nav {
        padding: 1rem 15px;
    }
    
    .article-content {
        margin: 0 20px;
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
    }
    
    .articles-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Question blocks for interview questions */
.question-block {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #2c5aa0;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.question-block p {
    margin: 0.5rem 0;
    color: #2c5aa0;
}

/* Merit/Demerit sections */
.merit-demerit-section {
    margin: 2rem 0;
}

.merit-title {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #28a745;
}

.demerit-title {
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dc3545;
}

@media (max-width: 480px) {
    .article-content {
        margin: 0 15px;
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .highlight, .points-list, .question-block {
        padding: 1rem;
    }
}