/**
 * Combined Stylesheet
 * - Blog main + about-like sections + post detail
 * - Deduplicated and ordered to avoid conflicts
 */

/* ========== Reset ========== */
* {
    margin     : 0;
    padding    : 0;
    box-sizing : border-box;
}

/* ========== Base ========== */
body {
    font-family      : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    line-height      : 1.7;
    color            : #333;
    background-color : #fff;
}

.container {
    max-width : 1200px;
    margin    : 0 auto;
    padding   : 0 20px;
}

/* ========== Layout Wrappers ========== */
.wrap {
    position   : relative;
    background : #fff;
}

/* ========== Header / Navigation (Unified) ========== */
header {
    background-color : #fff;
    border-bottom    : 1px solid #e0e0e0;
    padding          : 1rem 0;
    position         : sticky;
    top              : 0;
    z-index          : 1000;
    box-shadow       : 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size       : 1.5rem;
    font-weight     : 700;
    color           : #333;
    text-decoration : none;
    letter-spacing  : -0.5px;
}

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

nav a {
    color           : #666;
    text-decoration : none;
    font-weight     : 500;
    transition      : color 0.3s;
}

nav a:hover {
    color : #333;
}

/* ========== Hero (Main) ========== */
.hero {
    padding    : 4rem 0;
    text-align : center;
    /*background : linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color      : #fff;
}

.hero h1 {
    font-size     : 3rem;
    margin-bottom : 1rem;
    font-weight   : 700;
}

.hero p {
    font-size : 1.25rem;
    opacity   : 0.9;
}

.hero .subtitle {
    font-size     : 1.25rem;
    opacity       : 0.95;
    margin-bottom : 0.5rem;
}

.hero .tagline {
    font-size   : 1.1rem;
    opacity     : 0.85;
    font-style  : italic;
}

/* ========== Main (List / General) ========== */
main {
    padding : 3rem 0;
}

.section {
    margin-bottom : 4rem;
}

.section-title {
    font-size      : 2rem;
    font-weight    : 600;
    margin-bottom  : 2rem;
    padding-bottom : 1rem;
    border-bottom  : 2px solid #e0e0e0;
    color          : #333;
}

.section-subtitle {
    font-size   : 1.5rem;
    font-weight : 600;
    margin      : 2rem 0 1.5rem;
    color       : #555;
}

.section p {
    font-size     : 1.05rem;
    line-height   : 1.8;
    margin-bottom : 1.5rem;
    color         : #444;
}

/* ========== Post Grid (Main) ========== */
.post-grid {
    display               : grid;
    grid-template-columns : repeat(auto-fill, minmax(300px, 1fr));
    gap                   : 2rem;
    margin-bottom         : 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column; /* 세로 배치 */
}

.post-card:hover {
    transform  : translateY(-4px);
    box-shadow : 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 100%;
    height: 200px; /* 또는 원하는 높이 */
    object-fit: cover;
    flex-shrink: 0; /* 이미지 크기 고정 */
}

.post-content {
    padding : 1.5rem;
}

.post-title {
    font-size     : 1.25rem;
    font-weight   : 700;
    margin-bottom : 0.5rem;
    color         : #333;
}

.post-excerpt {
    margin-bottom: 1rem;
    flex: 1; /* excerpt가 남은 공간 차지 */
}
.post-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #999;
    font-size: 0.95rem;
    align-items: center;
    margin-top: auto; /* 자동으로 최하단 배치 */
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0; /* 선택사항: 구분선 */
}

/* ========== Empty State ========== */
.empty-state {
    text-align : center;
    padding    : 3rem;
    color      : #999;
}

.empty-state p {
    font-size     : 1.1rem;
    margin-bottom : 1rem;
}

/* ========== Philosophy Box ========== */
.philosophy-box {
    background    : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color         : #fff;
    padding       : 3rem;
    border-radius : 12px;
    margin        : 2.5rem 0;
    box-shadow    : 0 10px 30px rgba(0, 0, 0, 0.15);
}

.philosophy-box h3 {
    font-size     : 1.5rem;
    margin-bottom : 1.5rem;
    font-weight   : 600;
}

.philosophy-box blockquote {
    font-size    : 1.2rem;
    line-height  : 1.8;
    font-style   : italic;
    border-left  : 4px solid rgba(255, 255, 255, 0.5);
    padding-left : 1.5rem;
    margin       : 1.5rem 0;
}

.philosophy-box p {
    font-size   : 1.05rem;
    line-height : 1.8;
    opacity     : 0.95;
    color       : #fff;
}

/* ========== Pipeline ========== */
.pipeline {
    background    : #fff;
    border        : 1px solid #e0e0e0;
    border-radius : 12px;
    padding       : 2.5rem;
    margin        : 2rem 0;
}

.pipeline-step {
    display        : flex;
    align-items    : flex-start;
    margin-bottom  : 2rem;
    padding-bottom : 2rem;
    border-bottom  : 1px dashed #e0e0e0;
}

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

.step-number {
    flex-shrink     : 0;
    width           : 50px;
    height          : 50px;
    background      : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color           : #fff;
    border-radius   : 50%;
    display         : flex;
    align-items     : center;
    justify-content : center;
    font-size       : 1.3rem;
    font-weight     : 700;
    margin-right    : 1.5rem;
}

.step-content h4 {
    font-size     : 1.15rem;
    font-weight   : 600;
    color         : #333;
    margin-bottom : 0.5rem;
}

.step-content p {
    font-size   : 0.95rem;
    color       : #666;
    margin      : 0;
    line-height : 1.6;
}

/* ========== Tech Grid ========== */
.tech-grid {
    display               : grid;
    grid-template-columns : repeat(auto-fill, minmax(280px, 1fr));
    gap                   : 1.5rem;
    margin                : 2rem 0;
}

.tech-card {
    background    : #fff;
    padding       : 1.5rem;
    border        : 1px solid #e0e0e0;
    border-radius : 8px;
    transition    : all 0.3s ease;
}

.tech-card:hover {
    transform    : translateY(-4px);
    box-shadow   : 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color : #667eea;
}

.tech-card h4 {
    font-size     : 1.1rem;
    color         : #333;
    margin-bottom : 0.75rem;
    font-weight   : 600;
}

.tech-card p {
    font-size   : 0.9rem;
    color       : #666;
    margin      : 0;
    line-height : 1.5;
}

.tech-badge {
    display       : inline-block;
    background    : #f0f0f0;
    color         : #555;
    padding       : 0.35rem 0.75rem;
    border-radius : 4px;
    font-size     : 0.85rem;
    margin        : 0.25rem 0.25rem 0.25rem 0;
    font-weight   : 500;
}

/* ========== Topics ========== */
.topics {
    display   : flex;
    flex-wrap : wrap;
    gap       : 0.75rem;
    margin    : 1.5rem 0;
}

.topic-tag {
    background    : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color         : #fff;
    padding       : 0.5rem 1rem;
    border-radius : 20px;
    font-size     : 0.9rem;
    font-weight   : 500;
    transition    : all 0.3s ease;
}

.topic-tag:hover {
    transform  : scale(1.05);
    box-shadow : 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========== Stats (Base) ========== */
.stats {
    display               : grid;
    grid-template-columns : repeat(auto-fit, minmax(200px, 1fr));
    gap                   : 1.5rem;
    margin                : 2.5rem 0;
}

.stat-card {
    background    : #fff;
    padding       : 2rem;
    border        : 1px solid #e0e0e0;
    border-radius : 8px;
    text-align    : center;
    transition    : all 0.3s ease;
}

.stat-card:hover {
    transform  : translateY(-4px);
    box-shadow : 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size              : 2.5rem;
    font-weight            : 700;
    background             : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip        : text;
    margin-bottom          : 0.5rem;
}

.stat-label {
    font-size   : 0.95rem;
    color       : #666;
    font-weight : 500;
}

/* ========== Architecture ========== */
.architecture {
    background    : #f8f9fa;
    border        : 1px solid #e0e0e0;
    border-radius : 12px;
    padding       : 2.5rem;
    margin        : 2rem 0;
}

.arch-layer {
    background    : #fff;
    border        : 1px solid #e0e0e0;
    border-radius : 8px;
    padding       : 1.5rem;
    margin-bottom : 1.5rem;
}

.arch-layer:last-child {
    margin-bottom : 0;
}

.arch-layer h4 {
    font-size      : 1.1rem;
    font-weight    : 600;
    color          : #333;
    margin-bottom  : 1rem;
    padding-bottom : 0.75rem;
    border-bottom  : 2px solid #667eea;
}

.arch-components {
    display   : flex;
    flex-wrap : wrap;
    gap       : 0.5rem;
}

/* ========== Footer (Unified) ========== */
footer {
    background-color : #333;
    color            : #fff;
    padding          : 2rem 0;
    text-align       : center;
}

footer p {
    margin-bottom : 0.5rem;
}

footer a {
    color           : #fff;
    text-decoration : none;
    margin          : 0 1rem;
}

footer a:hover {
    text-decoration : underline;
}

/* ===================================================================== */
/* ========== Post Detail Page Styles (Scoped by main width) ==========   */
/* ===================================================================== */
main {
    /* list page uses padding only; detail page also wants max-width center.
       if you use both pages, prefer to set detail page main with a wrapper class
       in HTML. If not available, keep the values below for compatibility. */
    max-width : 1200px;
    margin    : 0 auto;
    padding   : 3rem 20px;
}

/* Post Header */
.post-header {
    margin-bottom : 3rem;
    padding       : 0 10px 2rem 10px;
    border-bottom : 2px solid #e0e0e0;
}

.post-title {
    font-size      : 2rem;
    font-weight    : 700;
    line-height    : 1.3;
    color          : #1a1a1a;
    margin-bottom  : 1.5rem;
    padding        : 0 10px;
    word-break     : keep-all;
}

.post-excerpt {
    font-size      : 1.2rem;
    color          : #666;
    line-height    : 1.6;
    margin-bottom  : 1.5rem;
    padding-left   : 1rem;
    border-left    : 4px solid #667eea;
}

.post-meta {
    display        : flex;
    flex-direction : row-reverse;
    flex-wrap      : wrap;
    gap            : 1.5rem;
    color          : #999;
    font-size      : 0.95rem;
    align-items    : center;
}

.post-meta-item {
    display     : flex;
    align-items : center;
    gap         : 0.5rem;
}

.post-meta-item i {
    color : #667eea;
}

.badge-ai {
    background    : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color         : #fff;
    padding       : 0.4rem 1rem;
    border-radius : 20px;
    font-size     : 0.85rem;
    font-weight   : 600;
}

/* Categories & Tags */
.post-categories-tags {
    display   : flex;
    flex-wrap : wrap;
    gap       : 1rem;
    margin-top: 1.5rem;
}

.category-badge {
    display         : inline-flex;
    align-items     : center;
    gap             : 0.5rem;
    background-color: #667eea;
    color           : #fff;
    padding         : 0.5rem 1rem;
    border-radius   : 6px;
    font-size       : 0.9rem;
    font-weight     : 600;
    text-decoration : none;
    transition      : transform 0.3s;
}

.category-badge:hover {
    transform  : translateY(-2px);
    box-shadow : 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tag-badge {
    display         : inline-flex;
    align-items     : center;
    gap             : 0.5rem;
    background-color: #f0f0f0;
    color           : #555;
    padding         : 0.4rem 0.8rem;
    border-radius   : 6px;
    font-size       : 0.85rem;
    font-weight     : 500;
    text-decoration : none;
    transition      : all 0.3s;
}

.tag-badge:hover {
    background-color : #e0e0e0;
    transform        : translateY(-2px);
}

/* Post Content (Markdown-like) */
.post-content {
    line-height: 1.8;
    word-break: keep-all;
    display: flex;
    flex-direction: column;
    flex: 1; /* 남은 공간 모두 차지 */
    padding: 1.5rem; /* 내부 여백 */
}

.post-content h1 {
    font-size     : 2.2rem;
    margin-top    : 3rem;
    margin-bottom : 1.5rem;
    font-weight   : 700;
    line-height   : 1.3;
    color         : #1a1a1a;
}

.post-content h2 {
    font-size      : 1.8rem;
    margin-top     : 3rem;
    margin-bottom  : 1.5rem;
    padding-bottom : 0.8rem;
    font-weight    : 700;
    line-height    : 1.3;
    color          : #1a1a1a;
    border-bottom  : 2px solid #e0e0e0;
}

.post-content h3 {
    font-size     : 1.5rem;
    margin-top    : 2.5rem;
    margin-bottom : 1.2rem;
    font-weight   : 700;
    line-height   : 1.3;
    color         : #1a1a1a;
}

.post-content h4 {
    font-size     : 1.3rem;
    margin-top    : 2rem;
    margin-bottom : 1rem;
    font-weight   : 700;
    line-height   : 1.3;
    color         : #1a1a1a;
}

.post-content h5 {
    font-size     : 1.15rem;
    margin-top    : 1.5rem;
    margin-bottom : 0.8rem;
    font-weight   : 700;
    color         : #333;
}

.post-content h6 {
    font-size     : 1rem;
    margin-top    : 1.5rem;
    margin-bottom : 0.8rem;
    font-weight   : 700;
    color         : #555;
}

.post-content p {
    margin-bottom : 1.5rem;
    text-align    : justify;
}

.post-content ul,
.post-content ol {
    margin-bottom : 1.5rem;
    padding-left  : 2rem;
}

.post-content li {
    margin-bottom : 0.8rem;
}

.post-content blockquote {
    border-left    : 4px solid #667eea;
    padding        : 1rem 1.5rem;
    margin         : 2rem 0;
    background-color: #f8f9fa;
    font-style     : italic;
    color          : #555;
    border-radius  : 4px;
}

.post-content code {
    background-color : #f5f5f5;
    padding          : 0.2rem 0.5rem;
    border-radius    : 4px;
    font-family      : "Courier New", Consolas, Monaco, monospace;
    font-size        : 0.95em;
    color            : #e83e8c;
}


.post-content pre {
    background   : #2d2d2d !important;
    color        : #f8f8f2 !important;
    padding      : 1.5rem;
    border-radius: 8px;
    overflow-x   : auto;
    margin       : 2rem 0;
    box-shadow   : 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-content pre code {
    background-color : transparent !important;
    color            : #f8f8f2 !important;
    padding          : 0 !important;
}

.post-content img {
    max-width   : 70%;
    height      : auto;
    border-radius: 12px;
    margin      : 3rem auto;
    display     : block;
    box-shadow  : 0 8px 24px rgba(0, 0, 0, 0.12);
    transition  : transform 0.3s ease;
    cursor      : pointer;
}

.post-content img:hover {
    transform : scale(1.02);
}

.post-content figure {
    margin     : 3rem 0;
    text-align : center;
}

.post-content figcaption {
    margin-top : 1rem;
    font-size  : 0.9rem;
    color      : #999;
    font-style : italic;
}

.post-content a {
    color           : #667eea;
    text-decoration : underline;
    transition      : color 0.3s;
}

.post-content a:hover {
    color : #764ba2;
}

.post-content hr {
    border-top : 2px solid #e0e0e0;
    margin     : 3rem 0;
    border     : none;
}

.post-content table {
    width          : 100%;
    border-collapse: collapse;
    margin         : 2rem 0;
    box-shadow     : 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.post-content table th {
    background-color : #f8f9fa;
    font-weight      : 600;
}

.post-content table tr:hover {
    background-color : #f8f9fa;
}

.post-content strong {
    font-weight : 700;
    color       : #1a1a1a;
}

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

/* Back Button */
.back-button {
    display         : inline-flex;
    align-items     : center;
    gap             : 0.5rem;
    color           : #667eea;
    text-decoration : none;
    font-weight     : 600;
    margin-bottom   : 2rem;
    padding         : 0.5rem 1rem;
    border-radius   : 6px;
    transition      : all 0.3s;
}

.back-button:hover {
    background-color : #f0f0f0;
    transform        : translateX(-5px);
}

/* Post Footer */
.post-footer {
    padding : 2rem 10px 2rem 10px;
    margin-top  : 4rem;
    border-top  : 2px solid #e0e0e0;
}

.post-stats {
    display         : flex;
    justify-content : center;
    gap             : 3rem;
    padding         : 1rem 0;
    background-color: #f8f9fa;
    border-radius   : 12px;
}

.stat-item {
    display        : flex;
    flex-direction : column;
    align-items    : center;
    gap            : 0.5rem;
}

.post-footer .stat-item {  /* ← 명시적으로 범위 지정 */
    display        : flex;
    flex-direction : column;
    align-items    : center;
    gap            : 0.5rem;
}

.stat-value {
    font-size   : 2rem;
    font-weight : 700;
    color       : #667eea;
}

.post-footer .stat-value {  /* ← 명시적으로 범위 지정 */
    font-size   : 2rem;
    font-weight : 700;
    color       : #667eea;  /* ← 보라색 유지 */
}

.post-footer .stat-label {  /* ← 명시적으로 범위 지정 */
    font-size : 0.9rem;
    color     : #999;  /* ← 회색 유지 */
}

/* Like Button */
.like-item {
    cursor : pointer;
    transition : transform 0.2s;
}

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

.like-item .stat-value {
    display            : flex;
    align-items        : center;
    justify-content    : center;
    min-width          : 50px;
    min-height         : 50px;
    transition         : all 0.1s ease;
}

.like-item.disabled {
    cursor : default;
    pointer-events : none;
}

.like-item.disabled:hover {
    transform : none;
}

/* Share Buttons */
.share-buttons {
    display         : flex;
    justify-content : center;
    gap             : 1rem;
    margin-top      : 2rem;
}

.share-button {
    display         : inline-flex;
    align-items     : center;
    justify-content : center;
    width           : 50px;
    height          : 50px;
    border-radius   : 50%;
    background-color: #f0f0f0;
    color           : #555;
    text-decoration : none;
    transition      : all 0.3s;
}

.share-button:hover {
    transform  : translateY(-3px);
    box-shadow : 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button.twitter:hover  { background-color : #1DA1F2; color : #fff; }
.share-button.facebook:hover { background-color : #1877F2; color : #fff; }
.share-button.link:hover     { background-color : #667eea; color : #fff; }

/* TOC */
.toc-container {
    background-color : #f8f9fa;
    border-radius    : 12px;
    padding          : 2rem;
    margin-bottom    : 3rem;
    border-left      : 4px solid #667eea;
}

.toc-title {
    font-size     : 1.2rem;
    font-weight   : 700;
    margin-bottom : 1rem;
    color         : #333;
}

.toc-list {
    list-style  : none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom : 0.5rem;
}

.toc-list a {
    color           : #555;
    text-decoration : none;
    transition      : color 0.3s;
}

.toc-list a:hover {
    color : #667eea;
}

/* Related Posts */
.related-posts {
    margin-top       : 4rem;
    padding          : 3rem 0;
    background-color : #f8f9fa;
    border-radius    : 12px;
}

.related-posts-title {
    font-size     : 1.8rem;
    font-weight   : 700;
    text-align    : center;
    margin-bottom : 2rem;
    color         : #333;
}

.related-posts-grid {
    display               : grid;
    grid-template-columns : repeat(auto-fit, minmax(280px, 1fr));
    gap                   : 2rem;
    padding               : 0 2rem;
}

.related-post-card {
    background      : #fff;
    border-radius   : 12px;
    overflow        : hidden;
    box-shadow      : 0 2px 8px rgba(0, 0, 0, 0.08);
    transition      : all 0.3s;
    text-decoration : none;
    display         : block;
}

.related-post-card:hover {
    transform  : translateY(-5px);
    box-shadow : 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    width      : 100%;
    height     : 180px;
    object-fit : cover;
}

.related-post-body {
    padding : 1.5rem;
}

.related-post-title {
    font-size     : 1.1rem;
    font-weight   : 600;
    color         : #333;
    margin-bottom : 0.5rem;
    line-height   : 1.4;
}

.related-post-excerpt {
    font-size   : 0.9rem;
    color       : #666;
    line-height : 1.5;
}

/* ========== Print ========== */
@media print {
    header,
    .back-button,
    .share-buttons,
    .related-posts {
        display : none;
    }

    body {
        background-color : #fff;
    }
}

/* ===================================================================== */
/* ========== Additional Custom Blocks (Your Last Styles) ==========      */
/* ===================================================================== */
.history-item {
    border-left   : 4px solid #667eea;
    padding       : 15px;
    margin-bottom : 10px;
    background    : #f8f9fa;
    border-radius : 0 10px 10px 0;
}

.strategy-badge {
    display       : inline-block;
    padding       : 4px 12px;
    border-radius : 20px;
    font-size     : 0.85rem;
    font-weight   : 500;
}

.strategy-history  { background : #e3f2fd; color : #1976d2; }
.strategy-it       { background : #e8f5e8; color : #388e3c; }
.strategy-trend    { background : #fff3e0; color : #f57c00; }
.strategy-free     { background : #fce4ec; color : #c2185b; }
.strategy-series   { background : #f3e5f5; color : #7b1fa2; }
.strategy-related  { background : #e0f2f1; color : #00695c; }

/* ===================================================================== */
/* ========== Final Override: Gradient Stat Card (Ensure it wins) ======= */
/* ===================================================================== */
.stats .stat-card {
    background    : linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color         : #fff;
    border-radius : 15px;
    padding       : 20px;
    margin-bottom : 20px;
    box-shadow    : 0 4px 15px rgba(0, 0, 0, 0.1);
    border        : none;
    text-align    : left;
}

.stats .stat-card .stat-number {
    font-size     : 2.5rem;
    font-weight   : 700;
    margin-bottom : 10px;
    color         : #fff;
}

.stats .stat-card .stat-label {
    font-size : 1.1rem;
    opacity   : 0.9;
    color     : #fff;
}

/* ========== Responsive (Unified) ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size : 2rem;
    }

    .hero p {
        font-size : 1rem;
    }

    .hero .subtitle {
        font-size : 1rem;
    }

    .post-grid {
        grid-template-columns : 1fr;
    }

    nav ul {
        gap       : 1rem;
        font-size : 0.9rem;
    }

    .section-title {
        font-size : 1.5rem;
    }

    .philosophy-box {
        padding : 1.5rem;
    }

    .philosophy-box blockquote {
        font-size : 1rem;
    }

    .pipeline {
        padding : 1.5rem;
    }

    .step-number {
        width     : 40px;
        height    : 40px;
        font-size : 1.1rem;
    }

    .tech-grid {
        grid-template-columns : 1fr;
    }

    .post-stats {
        flex-direction : column;
        gap            : 1.5rem;
    }
}

/* ========== Pagination ========== */
.pagination {
    display         : flex;
    justify-content : center;
    align-items     : center;
    gap             : 0.5rem;
    margin-top      : 3rem;
    padding         : 2rem 0;
}

.pagination-btn {
    padding          : 0.75rem 1.5rem;
    background-color : #fff;
    border           : 1px solid #e0e0e0;
    border-radius    : 8px;
    color            : #666;
    text-decoration  : none;
    font-weight      : 500;
    transition       : all 0.3s;
    cursor           : pointer;
}

.pagination-btn:hover:not(.disabled) {
    background-color : #f5f5f5;
    color            : #333;
    border-color     : #ccc;
}

.pagination-btn.disabled {
    opacity        : 0.4;
    cursor         : not-allowed;
    pointer-events : none;
}

.pagination-numbers {
    display     : flex;
    gap         : 0.25rem;
    align-items : center;
}

.pagination-number {
    display          : flex;
    align-items      : center;
    justify-content  : center;
    width            : 40px;
    height           : 40px;
    background-color : #fff;
    border           : 1px solid #e0e0e0;
    border-radius    : 8px;
    color            : #666;
    text-decoration  : none;
    font-weight      : 500;
    transition       : all 0.3s;
}

.pagination-number:hover:not(.active) {
    background-color : #f5f5f5;
    color            : #333;
    border-color     : #ccc;
}

.pagination-number.active {
    background-color : #667eea;
    color            : #fff;
    border-color     : #667eea;
    font-weight      : 700;
}

.pagination-ellipsis {
    display         : flex;
    align-items     : center;
    justify-content : center;
    width           : 40px;
    height          : 40px;
    color           : #999;
}

@media (max-width: 768px) {
    .pagination {
        gap : 0.25rem;
    }

    .pagination-btn {
        padding   : 0.5rem 1rem;
        font-size : 0.9rem;
    }

    .pagination-number {
        width  : 35px;
        height : 35px;
    }

    .pagination-ellipsis {
        width  : 30px;
        height : 35px;
    }
}

/* Hero Video Background */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff; /* Ensure text is visible */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
    opacity: 0.9; /* Add some transparency */
}

.hero .container {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent overlay */
    padding: 2rem;
    border-radius: 8px;
}

