/*
Theme Name: PM College of Excellence
Theme URI: 
Author: Itxperts | Vikram Singh Rawat
Description: Simple professional blog theme for Pradhan Mantri College of Excellence | Government Shrimant Madhavrao Scindia
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pmcoe
*/

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    background: #f7f7f7;
    line-height: 1.6;
}

a {
    color: #1a4d8f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #1a4d8f;
    padding: 15px 0;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-title-wrap a {
    color: #1a4d8f;
    text-decoration: none;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.site-description {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
}

/* Content */
.site-content {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Featured Post Banner */
.featured-post {
    margin-bottom: 25px;
}

.featured-thumb {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.featured-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0) 100%);
    padding: 40px 24px 20px;
}

.featured-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

/* Post list */
.post-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e6e6e6;
}

.post-list-item:last-of-type {
    border-bottom: none;
}

.post-list-body {
    flex: 1;
    min-width: 0;
}

.post-list-item h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.post-list-item h2 a {
    color: #1c2b3a;
}

.post-list-item h2 a:hover {
    color: #1a4d8f;
    text-decoration: none;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-list-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
}

.post-meta {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.read-more {
    font-weight: 600;
    font-size: 13px;
    color: #1a4d8f;
}

.post-thumb {
    flex: 0 0 110px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
}

.post-thumb img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-list-item:hover .post-thumb img {
    transform: scale(1.06);
}

/* Single Post */
.single-post {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 18px 20px;
}

.single-post .post-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a4d8f;
}

.single-post .post-meta {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.single-post .post-content img {
    border-radius: 4px;
    margin: 15px 0;
}

.single-post .post-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.single-post .post-content h2,
.single-post .post-content h3 {
    margin: 20px 0 10px;
    color: #1a4d8f;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1a4d8f;
    font-size: 14px;
}

.pagination .page-numbers.current {
    background: #1a4d8f;
    color: #fff;
    border-color: #1a4d8f;
}

.pagination .page-numbers:hover {
    background: #1a4d8f;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #1a4d8f;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: row;
        text-align: left;
        padding: 0 10px;
        gap: 10px;
    }
    .site-logo img {
        max-height: 42px;
    }
    .site-title {
        font-size: 16px;
    }
    .site-description {
        font-size: 11px;
    }

    .site-content {
        margin: 0;
        padding: 0 12px;
    }

    .featured-post {
        margin: 0 -12px 10px;
    }

    .featured-thumb {
        border-radius: 0;
    }

    .featured-thumb img {
        aspect-ratio: 16 / 10;
    }

    .featured-overlay {
        padding: 25px 14px 14px;
    }

    .featured-title {
        font-size: 18px;
    }

    .post-list-item {
        padding: 14px 0;
        gap: 10px;
    }

    .post-list-item h2 {
        font-size: 15.5px;
    }

    .post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .post-thumb,
    .post-thumb img {
        flex: 0 0 90px;
        width: 90px;
        height: 75px;
    }

    .post-list-footer {
        font-size: 11.5px;
        gap: 10px;
    }

    .single-post {
        border-radius: 0;
        border: none;
        padding: 14px 12px;
    }

    .single-post .post-title {
        font-size: 20px;
    }

    .pagination {
        margin: 15px 0;
    }

    .site-footer {
        padding: 15px 10px;
    }
}

