 /*
Theme Name: Custom Job Portal Theme
Theme URI: https://fastbharti.com
Author: Custom Design
Version: 1.0.0
Description: Responsive WordPress Theme for Job Portal, Govt Schemes & Admit Cards
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body {
    background-color: #f4f6f9;
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 1. TOP BRANDING BANNER */
.site-banner {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 15px;
    text-align: center;
}

.site-banner img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* 2. CATEGORIES NAVIGATION HEADER (Mobile & Desktop Responsive) */
.main-header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 12px 15px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background-color: var(--primary-dark);
}

/* MAIN LAYOUT WRAPPER */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 3. TAJA KHABRE & CARDS GRID */
.section-title {
    background-color: var(--white);
    padding: 12px 15px;
    border-left: 5px solid var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border-radius: 0 6px 6px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

/* FULL THUMBNAIL WITHOUT CROPPING (HOME CARD) */
 /* --- FIXED THUMBNAIL DISPLAY WITHOUT CROPPING --- */
.card-thumb {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow: hidden;
    position: relative;
}

.card-thumb a {
    display: block;
    width: 100%;
}

.card-thumb img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important; /* Crop hone se poori tarah rolega */
    display: block;
}

.card-content {
    padding: 15px;
}

.card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    gap: 8px;
    flex-wrap: wrap;
}

.card-category {
    background-color: var(--secondary-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.post-date-time {
    color: #6c757d;
    font-weight: 500;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* SINGLE ARTICLE POST PAGE */
.single-post-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-top: 20px;
}

.post-header-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #555;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

/* FULL THUMBNAIL WITHOUT CROPPING (SINGLE POST) */
.single-post-thumb {
    width: 100%;
    max-height: none !important;
    height: auto !important;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.single-post-thumb img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
}

.post-body {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

/* 4. ABOUT THE AUTHOR BOX */
.author-box {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
    gap: 15px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.author-details h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.author-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 5. DISCLAIMER BOX */
.post-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.85rem;
}

/* 6 & 7. FOOTER SECTION */
.site-footer {
    background-color: var(--dark-color);
    color: #ccc;
    margin-top: 40px;
    padding: 40px 15px 20px 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid #343a40;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .nav-container {
        padding: 0;
    }
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .nav-menu li a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .single-post-card {
        padding: 15px;
    }
    .post-header-title {
        font-size: 1.4rem;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 600px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}