/**
 * Content Styles for Blog, Archive, Single, Pages
 */

/* ===========================
   Common Layout
   =========================== */
.site-main {
    padding: 70px 0;
    min-height: 60vh;
}

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

/* ===========================
   Page Header / Archive Header
   =========================== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-family: "Lato", Sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px;
}

.archive-description {
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   Posts Grid (Archive/Blog)
   =========================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f0f0f0;
}

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

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

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

.post-meta {
    margin-bottom: 15px;
}

.post-category {
    display: inline-block;
    padding: 5px 15px;
    background: #21BEE8;
    color: #FFFFFF;
    font-family: "Lato", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.post-title {
    margin: 0 0 15px;
    line-height: 100%;
}

.post-title a {
    font-family: "Lato", Sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #21BEE8;
}

.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-family: "Lato", Sans-serif;
    font-size: 14px;
    color: #999999;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-info a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s;
}

.post-info a:hover {
    color: #21BEE8;
}

.post-excerpt {
    font-family: "Lato", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 24px;
    color: #666666;
    margin-bottom: 20px;
}

.read-more-btn {
    text-align: center;
    display: inline-block;
    padding: 10px 25px;
    background: #21BEE8;
    color: #FFFFFF;
    font-family: "Lato", Sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #1a9bc4;
    transform: translateX(5px);
}

/* ===========================
   Pagination
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #FFFFFF;
    color: #333333;
    font-family: "Lato", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: #21BEE8;
    color: #FFFFFF;
    border-color: #21BEE8;
}

/* ===========================
   Single Post
   =========================== */
.single-post {
    max-width: 900px;
    margin: 0 auto;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.entry-category {
    display: inline-block;
    padding: 5px 15px;
    background: #21BEE8;
    color: #FFFFFF;
    font-family: "Lato", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.entry-title {
    font-family: "Lato", Sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 52px;
    color: #333333;
    margin: 0 0 20px;
}

.entry-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: "Lato", Sans-serif;
    font-size: 15px;
    color: #999999;
}

.entry-info a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-info a:hover {
    color: #21BEE8;
}

.entry-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-family: "Lato", Sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 30px;
    color: #333333;
    margin-bottom: 40px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: "Lato", Sans-serif;
    font-weight: 700;
    color: #333333;
    margin: 30px 0 20px;
}

.entry-content h2 {
    font-size: 32px;
    line-height: 40px;
}

.entry-content h3 {
    font-size: 26px;
    line-height: 34px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: #21BEE8;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #1a9bc4;
}

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

.entry-content ul,
.entry-content ol {
    margin: 20px 0 20px 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-tags {
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin: 30px 0;
    font-family: "Lato", Sans-serif;
    font-size: 15px;
}

.tags-label {
    font-weight: 700;
    color: #333333;
    margin-right: 10px;
}

.entry-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #666666;
    text-decoration: none;
    border-radius: 3px;
    margin: 5px 5px 5px 0;
    transition: all 0.3s;
}

.entry-tags a:hover {
    background: #21BEE8;
    color: #FFFFFF;
}

/* Post Navigation */
.post-navigation {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation a {
    flex: 1;
    text-decoration: none;
    color: #333333;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: #21BEE8;
}

.post-navigation .nav-subtitle {
    display: block;
    font-family: "Lato", Sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    display: block;
    font-family: "Lato", Sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ===========================
   Regular Page
   =========================== */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-entry-content {
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    color: #333333;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
    font-family: "Lato", Sans-serif;
    font-weight: 700;
    color: #333333;
    margin: 30px 0 20px;
}

.page-entry-content h2 {
    font-size: 36px;
    line-height: 44px;
}

.page-entry-content h3 {
    font-size: 28px;
    line-height: 36px;
}

.page-entry-content p {
    margin-bottom: 20px;
}

.page-entry-content a {
    color: #21BEE8;
    text-decoration: underline;
}

.page-entry-content a:hover {
    color: #1a9bc4;
}

.page-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   No Posts / 404
   =========================== */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-family: "Lato", Sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.no-posts p {
    font-family: "Lato", Sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #666666;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .entry-title {
        font-size: 36px;
        line-height: 44px;
    }
}

@media (max-width: 767px) {
    .site-main {
        padding: 40px 0;
    }

    .page-header {
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 32px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .entry-title {
        font-size: 28px;
        line-height: 36px;
    }

    .entry-content,
    .page-entry-content {
        font-size: 16px;
        line-height: 26px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }
}
