/* Articles Page Styles */

/* Top Navigation */
.top-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #2688eb;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #1a6ec0;
}

.nav-right {
    display: flex;
    gap: 24px;
}

.login-link,
.register-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login-link:hover,
.register-link:hover {
    color: #1a6ec0;
}

/* Main Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2688eb;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.logo i {
    font-size: 24px;
}

.logo img {
    height: 67px;
}

/* Search Form Styles */
.search-container {
    display: flex;
    flex: 1;
    max-width: 800px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.search-input-group {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0 15px;
}

.search-icon {
    color: #777;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #777;
}

.location-selector {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
}

.location-selector:hover {
    background-color: #f9f9f9;
}

.location-icon {
    color: #777;
    margin-right: 8px;
}

.location-text {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.location-selector:hover .location-dropdown {
    display: block;
}

.location-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.location-dropdown a:hover {
    background-color: #f5f5f5;
    color: #2688eb;
}

.search-button {
    background-color: #2688eb;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #1a6ec0;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-links {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb-links a {
    text-decoration: none;
    color: #2688eb;
}

.breadcrumb-links a:hover {
    text-decoration: underline;
}

.breadcrumb-links span {
    color: #777;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0 40px;
}

/* Content Card */
.content-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Heading Styles */
.content-card h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
    line-height: 1.2;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.content-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #333;
    line-height: 1.3;
}

.content-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #333;
    line-height: 1.4;
}

.content-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
    line-height: 1.4;
}

/* Text Content */
.content-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.content-text p {
    margin-bottom: 16px;
}

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

.content-text a {
    color: #2688eb;
    text-decoration: none;
}

.content-text a:hover {
    text-decoration: underline;
}

/* Lists */
.content-text ul,
.content-text ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-text li {
    margin-bottom: 8px;
}

/* Definition Block */
.definition-block {
    background-color: #f9f9f9;
    border-left: 4px solid #2688eb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.definition-term {
    font-weight: 600;
    color: #2688eb;
    margin-bottom: 8px;
    font-size: 17px;
}

.definition-text {
    color: #555;
    line-height: 1.6;
}

/* Images */
.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* Floated images */
.content-text .article-image {
    margin: 16px 0;
}

.content-text .article-image.float-left {
    float: left;
    margin: 10px 20px 10px 0;
}

.content-text .article-image.float-right {
    float: right;
    margin: 10px 0 10px 20px;
}

.content-text .article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Clear floats */
.content-text::after {
    content: "";
    display: table;
    clear: both;
}

/* Article Publish Date */
.article-publish-date {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

/* Clear floats for article-image containers */
.content-text .article-image::after {
    content: "";
    display: table;
    clear: both;
}

/* Column layouts */
.content-text .article-columns {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.content-text .article-columns .column {
    flex: 1;
    min-width: 0;
}

.content-text .article-columns.columns-2 .column {
    flex: 1 1 45%;
}

.content-text .article-columns.columns-3 .column {
    flex: 1 1 30%;
}

@media (max-width: 768px) {
    .content-text .article-columns {
        flex-direction: column;
    }

    .content-text .article-columns.columns-2 .column,
    .content-text .article-columns.columns-3 .column {
        flex: 1 1 100%;
    }

    .content-text .article-image.float-left,
    .content-text .article-image.float-right {
        float: none;
        margin: 16px 0;
    }
}

/* Blockquote */
.content-text blockquote {
    border-left: 4px solid #e0e0e0;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Code */
.content-text code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

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

.content-text pre code {
    background: none;
    padding: 0;
}

/* Tables */
.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.content-text th,
.content-text td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.content-text th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.content-text tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .content-card {
        padding: 25px;
    }

    .content-card h1 {
        font-size: 28px;
    }

    .content-card h2 {
        font-size: 24px;
    }

    .content-card h3 {
        font-size: 20px;
    }

    .content-text {
        font-size: 15px;
    }

    .definition-block {
        padding: 16px;
    }

    .definition-term {
        font-size: 16px;
    }
    
   .top-nav .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-nav .nav-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 20px;
    }

    .content-card h1 {
        font-size: 24px;
    }

    .content-card h2 {
        font-size: 20px;
    }
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

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

.related-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.related-card:hover .related-card-title {
    color: #2688eb;
}

.related-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #333;
    transition: color 0.2s;
}

.related-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.author-description {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #777;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2688eb;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Vacancy Inline Block (inside SEO article content) */
.vacancy-inline-block {
    background-color: #f0f4f8;
    border-radius: 12px;
    padding: 28px;
    margin: 32px 0;
}

.content-card .vacancy-inline-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.vacancy-inline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.vacancy-inline-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e8ecf0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vacancy-inline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.vacancy-inline-card:hover .vacancy-inline-card-title {
    color: #2688eb;
}

.vacancy-inline-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vacancy-inline-card-salary {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 10px;
}

.vacancy-inline-card-meta {
    font-size: 13px;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vacancy-inline-card-cta {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    border-color: #c0cdd8;
    background: #f8fafc;
}

.vacancy-inline-card-cta:hover {
    border-color: #2688eb;
    background: #f0f7ff;
}

.vacancy-inline-card-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #2688eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.vacancy-inline-card-cta-title {
    font-size: 14px;
    font-weight: 600;
    color: #2688eb;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .vacancy-inline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vacancy-inline-grid {
        grid-template-columns: 1fr;
    }

    .vacancy-inline-block {
        padding: 20px;
    }
}