
/* ==========================================
   THE ENGINEERS GROUP - BLOG DESIGN
   Premium Navy Blue + Gold
   ========================================== */

/* Blog and archive page headings */
.teg-page-header,
.teg-archive-header,
.teg-search-header {
    margin-bottom: 32px;
    padding: 38px 32px;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: linear-gradient(125deg, #f5f8fc, #ffffff);
}

.teg-page-header h1,
.teg-archive-header h1,
.teg-search-header h1 {
    margin: 0 0 12px;
    color: #0b1f3a;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.25;
}

.teg-page-header p,
.teg-archive-header p,
.teg-search-header p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

/* Article card grids */
.teg-article-grid,
.teg-post-grid,
.teg-archive-grid,
.teg-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.teg-article-card,
.teg-post-card,
.teg-archive-card,
.teg-search-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 22px rgba(11, 31, 58, 0.045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.teg-article-card:hover,
.teg-post-card:hover,
.teg-archive-card:hover,
.teg-search-card:hover {
    transform: translateY(-4px);
    border-color: #e7c35a;
    box-shadow: 0 14px 30px rgba(11, 31, 58, 0.09);
}

/* Article images */
.teg-article-image,
.teg-post-image,
.teg-archive-image,
.teg-search-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    overflow: hidden;
    background: #edf2f8;
}

.teg-article-image img,
.teg-post-image img,
.teg-archive-image img,
.teg-search-image img {
    display: block;
    width: 100%;
    height: 220px;
    margin: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.teg-article-card:hover .teg-article-image img,
.teg-post-card:hover .teg-post-image img,
.teg-archive-card:hover .teg-archive-image img,
.teg-search-card:hover .teg-search-image img {
    transform: scale(1.035);
}

.teg-article-placeholder,
.teg-post-placeholder,
.teg-archive-placeholder,
.teg-search-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
    padding: 24px;
    background: linear-gradient(135deg, #0b1f3a, #164b78);
    color: #ffd34f;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
}

/* Article content */
.teg-article-content,
.teg-post-content,
.teg-archive-content,
.teg-search-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.teg-article-meta,
.teg-post-meta,
.teg-archive-meta,
.teg-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.teg-article-meta a,
.teg-post-meta a,
.teg-archive-meta a,
.teg-search-meta a {
    color: #a77900;
    font-weight: 700;
}

.teg-article-content h3,
.teg-post-content h2,
.teg-archive-content h2,
.teg-search-content h2 {
    margin: 0 0 12px;
    color: #0b1f3a;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
}

.teg-article-content h3 a,
.teg-post-content h2 a,
.teg-archive-content h2 a,
.teg-search-content h2 a {
    color: #0b1f3a;
    text-decoration: none;
}

.teg-article-content h3 a:hover,
.teg-post-content h2 a:hover,
.teg-archive-content h2 a:hover,
.teg-search-content h2 a:hover {
    color: #a77900;
}

.teg-article-content p,
.teg-post-content p,
.teg-archive-content p,
.teg-search-content p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.85;
}

.teg-article-content .teg-text-link,
.teg-post-content .teg-text-link,
.teg-archive-content .teg-text-link,
.teg-search-content .teg-text-link {
    margin-top: auto;
    color: #164b78;
    font-size: 13px;
    font-weight: 800;
}

.teg-article-content .teg-text-link:hover,
.teg-post-content .teg-text-link:hover,
.teg-archive-content .teg-text-link:hover,
.teg-search-content .teg-text-link:hover {
    color: #a77900;
}

/* Single article */
.teg-single-article {
    max-width: 900px;
    margin: 0 auto;
}

.teg-single-header {
    margin-bottom: 30px;
}

.teg-single-header h1 {
    margin: 12px 0 18px;
    color: #0b1f3a;
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.25;
}

.teg-single-featured-image {
    margin: 25px 0 32px;
}

.teg-single-featured-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 14px;
    object-fit: cover;
}

.teg-single-content {
    color: #34445a;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.teg-single-content h2 {
    margin: 34px 0 14px;
    color: #0b1f3a;
    font-size: 27px;
    line-height: 1.35;
}

.teg-single-content h3 {
    margin: 27px 0 12px;
    color: #0b1f3a;
    font-size: 21px;
}

.teg-single-content p {
    margin: 0 0 20px;
}

.teg-single-content ul,
.teg-single-content ol {
    margin: 0 0 22px;
    padding-left: 26px;
}

.teg-single-content li {
    margin-bottom: 8px;
}

.teg-single-content blockquote {
    margin: 25px 0;
    padding: 18px 22px;
    border-left: 4px solid #f2b51e;
    border-radius: 0 8px 8px 0;
    background: #f5f8fc;
    color: #34445a;
}

.teg-single-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.teg-single-content th,
.teg-single-content td {
    padding: 11px 13px;
    border: 1px solid #e0e7f0;
    text-align: left;
}

.teg-single-content th {
    background: #f5f8fc;
    color: #0b1f3a;
}

/* Category and tag labels */
.teg-single-categories,
.teg-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: #64748b;
    font-size: 12px;
}

.teg-single-categories a,
.teg-single-tags a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #e0e7f0;
    border-radius: 6px;
    background: #f5f8fc;
    color: #164b78;
    font-weight: 600;
}

/* Blog pagination */
.teg-pagination,
.navigation.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 35px 0;
}

.teg-pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e7f0;
    border-radius: 7px;
    background: #fff;
    color: #0b1f3a;
    font-size: 13px;
    text-decoration: none;
}

.teg-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    border-color: #0b1f3a;
    background: #0b1f3a;
    color: #ffd34f;
}

/* Sidebar widgets */
.teg-sidebar,
#secondary {
    min-width: 0;
}

.teg-sidebar .widget,
#secondary .widget {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    background: #fff;
}

.teg-sidebar .widget-title,
#secondary .widget-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e7f0;
    color: #0b1f3a;
    font-size: 18px;
    font-weight: 800;
}

.teg-sidebar ul,
#secondary ul {
    margin: 0;
    padding-left: 18px;
}

.teg-sidebar li,
#secondary li {
    margin-bottom: 9px;
    color: #64748b;
    font-size: 13px;
}

.teg-sidebar a,
#secondary a {
    color: #164b78;
}

.teg-sidebar a:hover,
#secondary a:hover {
    color: #a77900;
}

/* Search form */
.teg-search-form,
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.teg-search-form input[type="search"],
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 45px;
    padding: 10px 13px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    color: #25364b;
}

.teg-search-form button,
.search-form input[type="submit"] {
    min-height: 45px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #0b1f3a;
    color: #ffd34f;
    font-size: 13px;
    font-weight: 800;
}

/* Tablet */
@media (max-width: 950px) {
    .teg-article-grid,
    .teg-post-grid,
    .teg-archive-grid,
    .teg-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .teg-page-header,
    .teg-archive-header,
    .teg-search-header {
        padding: 30px 24px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .teg-article-grid,
    .teg-post-grid,
    .teg-archive-grid,
    .teg-search-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .teg-page-header,
    .teg-archive-header,
    .teg-search-header {
        margin-bottom: 24px;
        padding: 25px 20px;
    }

    .teg-page-header h1,
    .teg-archive-header h1,
    .teg-search-header h1 {
        font-size: 28px;
    }

    .teg-article-image,
    .teg-post-image,
    .teg-archive-image,
    .teg-search-image {
        min-height: 190px;
    }

    .teg-article-image img,
    .teg-post-image img,
    .teg-archive-image img,
    .teg-search-image img {
        height: 210px;
    }

    .teg-article-content,
    .teg-post-content,
    .teg-archive-content,
    .teg-search-content {
        padding: 20px;
    }

    .teg-single-header h1 {
        font-size: 30px;
    }

    .teg-single-content {
        font-size: 15px;
    }

    .teg-single-content h2 {
        font-size: 24px;
    }

    .teg-single-content h3 {
        font-size: 19px;
    }
}
