/*
Theme Name: Sarkari Modern
Author: Pravin
Description: A complete, modernized data-heavy job portal theme based on classic layouts.
Version: 1.1
*/

/* CSS RESET & MODERN TYPOGRAPHY */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f6f9; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* HEADER */
.site-header { background: #fff; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
.top-nav { background: #0d6efd; color: #fff; }
.top-nav ul { list-style: none; display: flex; justify-content: center; padding: 10px 0; gap: 20px; flex-wrap: wrap; }
.top-nav a { color: #fff; font-weight: 500; font-size: 14px; }
.top-nav a:hover { text-decoration: underline; }
.logo-area { text-align: center; padding: 20px 0; }
.logo-area h1 { font-size: 32px; font-weight: bold; color: #222; }
.logo-area p { font-size: 14px; color: #666; margin-top: 5px; }

/* SEARCH */
.search-bar-container { display: flex; justify-content: center; margin-top: 15px; }
.search-bar-container form { display: flex; width: 100%; max-width: 600px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-radius: 25px; overflow: hidden; }
.search-bar-container input[type="text"] { flex: 1; padding: 12px 20px; border: 1px solid #ccc; border-right: none; outline: none; font-size: 16px; border-radius: 25px 0 0 25px;}
.search-bar-container button { background: #333; color: white; border: none; padding: 12px 25px; cursor: pointer; border-radius: 0 25px 25px 0; }

/* MARQUEE */
.marquee-container { background: #fff; padding: 10px; margin: 20px auto; max-width: 1200px; border: 1px solid #e0e0e0; border-radius: 5px; display: flex; align-items: center; }
.live-badge { background: red; color: white; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 14px; margin-right: 15px; white-space: nowrap; }

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

/* FEATURED GRID */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin-bottom: 30px; }
.grid-box { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px 15px; color: white; font-weight: bold; font-size: 16px; border-radius: 5px; transition: transform 0.2s, box-shadow 0.2s; }
.grid-box:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.box-red { background: #e63946; }
.box-green { background: #2a9d8f; }
.box-orange { background: #f4a261; }
.box-pink { background: #d90429; }
.box-blue { background: #3a0ca3; }
.box-yellow { background: #e9c46a; color: #333; }
.box-teal { background: #264653; }
.box-darkred { background: #9e2a2b; }

/* 3 COLUMN LAYOUT */
.three-column-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.column { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden; }
.column h2 { background: #0d6efd; color: white; text-align: center; padding: 15px; margin: 0; font-size: 18px; font-weight: 600; }
.column ul { list-style: none; padding: 15px; margin: 0; }
.column li { margin-bottom: 12px; border-bottom: 1px solid #f1f1f1; padding-bottom: 8px; font-size: 15px; display: flex; align-items: flex-start; }
.column li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.column li:before { content: "🔴"; font-size: 10px; margin-right: 10px; margin-top: 5px; color: #e63946; }
.column a { color: #0056b3; transition: color 0.2s; }
.column a:hover { color: #003d82; text-decoration: underline; }

/* SINGLE POST & PAGE STYLES */
.content-area { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin: 30px auto; max-width: 900px; }
.content-area h1 { margin-bottom: 20px; font-size: 20px; color: #111; border-bottom: 2px solid #0d6efd; padding-bottom: 10px; display: inline-block; }
.content-area p { margin-bottom: 20px; font-size: 16px; }
.content-area ul, .content-area ol { margin-left: 20px; margin-bottom: 20px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .three-column-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .three-column-layout { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ENHANCED HEADER MENU STYLES */
.top-nav { background: #0d6efd; color: #fff; position: relative; z-index: 100; }
.nav-container { display: flex; justify-content: center; align-items: center; min-height: 50px; }
.nav-menu { list-style: none; display: flex; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; width: 100%; }
.nav-menu li { margin: 0; }
.nav-menu a { display: block; padding: 12px 20px; color: #fff; font-weight: 500; font-size: 15px; transition: background 0.3s, border-radius 0.3s; }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; border-radius: 5px; }

/* Mobile Menu Button - Hidden on Desktop */
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white; padding: 8px 15px; font-size: 16px; cursor: pointer; border-radius: 5px; margin: 10px 0; font-weight: 600; }
.menu-toggle:hover { background: rgba(255, 255, 255, 0.1); }

/* MOBILE RESPONSIVE MENU */
@media (max-width: 768px) {
    .nav-container { justify-content: flex-start; padding: 0 15px; flex-wrap: wrap; }
    .menu-toggle { display: block; } /* Show button on mobile */
    
    /* Target the new wrapper instead of the ul directly */
    .nav-menu-wrapper { 
        display: none; /* Hide wrapper by default on mobile */
        width: 100%; 
        background: #0b5ed7; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
    }
    
    /* Javascript will add this class to the wrapper to show it */
    .nav-menu-wrapper.active { display: block; }
    
    .nav-menu { flex-direction: column; width: 100%; }
    .nav-menu li { width: 100%; }
    .nav-menu a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
    .nav-menu a:hover { background: rgba(0,0,0,0.1); border-radius: 0; }
}

/* --- THIN BORDERS FOR CARDS --- */

/* 1. Thin border for the Colored Featured Grid Boxes */
.grid-box {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* 2. Slightly darker thin border for the 3-Column Data Cards */
.column {
    border: 1px solid #cccccc !important;
}

/* 3. Thin border for the Archive/Category Post Cards */
.archive-post {
    border: 1px solid #cccccc !important;
}

/* --- RESPONSIVE LOGO SIZING --- */

/* Desktop Size */
.site-logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 60px; /* Adjust this for desktop height */
    transition: all 0.3s ease; /* Adds a smooth resize effect */
}

/* Mobile Size (Activates on screens smaller than 768px) */
@media (max-width: 768px) {
    .site-logo img {
        max-height: 65px; /* Adjust this for mobile phone height */
    }
}


/* --- MINIMAL "VIEW MORE" BUTTONS --- */
.view-more-container {
    padding: 15px;
    background: #fafafa;
    border-top: 1px solid #eeeeee;
    text-align: right;
    border-radius: 0 0 8px 8px; /* Matches the card's bottom corners */
}

.btn-view-more {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111; 
    background: transparent;
    border: 1px solid #111;
    border-radius: 3px; /* Sharp, minimal corners */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth, dramatic hover effect */
    text-decoration: none;
}

.btn-view-more:hover {
    background: #111;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}
/* --- TRENDING UPDATES SECTION --- */
.trending-updates-section {
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden; /* Keeps the top header perfectly rounded */
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.trending-header {
    background: #f4f7fb; /* Light blue/grey from screenshot */
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e5e9f0;
}

.trending-header h2 {
    color: #1a498b;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: inline-block;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: #ffc107;
    margin: 6px auto 0;
    border-radius: 2px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
}

.trending-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 2px solid;
    background: #fff;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.trend-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 9px 9px 0 0; /* Keeps inner color inside border */
}

.trend-cat {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.trend-badge {
    background: #ffdb3a; /* The exact yellow pill */
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.trend-card-body {
    padding: 18px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1; /* Pushes content down evenly */
}

.trend-card-body h3 {
    font-size: 15px;
    color: #111;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 15px;
}

.trend-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* --- THE 7 COLOR VARIATIONS --- */
/* 1. Teal */
.trend-teal { border-color: #05a793; }
.trend-teal .trend-card-header { background: #05a793; }
.trend-teal .trend-arrow { background: #e6f6f4; color: #05a793; }

/* 2. Brown */
.trend-brown { border-color: #b36e13; }
.trend-brown .trend-card-header { background: #b36e13; }
.trend-brown .trend-arrow { background: #f7f0e7; color: #b36e13; }

/* 3. Light Blue */
.trend-blue { border-color: #0b95f1; }
.trend-blue .trend-card-header { background: #0b95f1; }
.trend-blue .trend-arrow { background: #e6f4fe; color: #0b95f1; }

/* 4. Dark Blue */
.trend-darkblue { border-color: #1e3ff2; }
.trend-darkblue .trend-card-header { background: #1e3ff2; }
.trend-darkblue .trend-arrow { background: #e8ecfe; color: #1e3ff2; }

/* 5. Olive Green */
.trend-olive { border-color: #8c9006; }
.trend-olive .trend-card-header { background: #8c9006; }
.trend-olive .trend-arrow { background: #f3f4e6; color: #8c9006; }

/* 6. Red/Pink */
.trend-pink { border-color: #e20b4a; }
.trend-pink .trend-card-header { background: #e20b4a; }
.trend-pink .trend-arrow { background: #fce6eb; color: #e20b4a; }

/* 7. Orange */
.trend-orange { border-color: #f76e03; }
.trend-orange .trend-card-header { background: #f76e03; }
.trend-orange .trend-arrow { background: #fef0e5; color: #f76e03; }

/* --- RESPONSIVE FIXES --- */
@media (max-width: 992px) {
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .trending-grid { grid-template-columns: 1fr; padding: 15px; }
    .trending-header h2 { font-size: 22px; }
}

/* Icon Background Colors */
.bg-soft-blue { background: #e0f2fe; }
.bg-soft-indigo { background: #e0e7ff; }
.bg-soft-purple { background: #f3e8ff; }
.bg-soft-red { background: #fee2e2; }
.bg-soft-pink { background: #ffe4e6; }

.tool-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

/* Responsive Grid for Toolkit */
@media (max-width: 992px) {
    .toolkit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .toolkit-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; }
    .toolkit-header { padding: 15px; }
    .toolkit-title-wrap h2 { font-size: 18px; }
}

/* --- STYLISH GRADIENT FOOTER (4-COLUMN UPDATE) --- */
.site-footer {
    background: linear-gradient(135deg, #06183c 0%, #0d6efd 100%);
    color: #e2e8f0;
    padding-top: 60px;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(13, 110, 253, 0.15);
}

/* Updated to 4 columns to accommodate categories */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 0;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #ffc107; 
    border-radius: 3px;
}

.footer-site-name {
    color: #ffffff;
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-site-name:hover {
    color: #ffc107;
    text-decoration: none;
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 15px;
    color: #bfdbfe;
}

.styled-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-link-list li {
    margin-bottom: 14px;
}

.styled-link-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.styled-link-list a svg {
    color: #93c5fd;
    transition: all 0.3s ease;
}

.styled-link-list a:hover {
    color: #ffffff;
    transform: translateX(6px);
    text-decoration: none;
}

.styled-link-list a:hover svg {
    color: #ffc107;
    transform: scale(1.15);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
}

.social-icons a.social-fb:hover { background: #1877F2; border-color: #1877F2; transform: translateY(-5px); box-shadow: 0 8px 15px rgba(24,119,242,0.4); }
.social-icons a.social-ig:hover { background: #E4405F; border-color: #E4405F; transform: translateY(-5px); box-shadow: 0 8px 15px rgba(228,64,95,0.4); }
.social-icons a.social-wa:hover { background: #25D366; border-color: #25D366; transform: translateY(-5px); box-shadow: 0 8px 15px rgba(37,211,102,0.4); }

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 22px 0;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments for 4 Columns */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-icons { justify-content: center; }
    .styled-link-list a { justify-content: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
}
/* --- STYLISH AUTHOR BOX --- */
.stylish-author-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); /* Very soft shadow */
}

/* The Artistic SVG Blob in the background */
.author-art-bg {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 280px;
    height: 280px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none; /* Stops it from blocking clicks */
}

.author-avatar, .author-info {
    position: relative;
    z-index: 1; /* Keeps content above the art blob */
}

.author-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15); /* Gives the avatar a glowing drop shadow */
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    border-bottom: none; /* overrides default h1/h2 borders if any */
}

.author-bio {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-link:hover {
    color: #0a58ca;
    transform: translateX(6px); /* Arrow slide effect */
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .stylish-author-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }
    .author-art-bg {
        top: auto;
        bottom: -60px;
        right: 50%;
        transform: translateX(50%);
    }
}
/* --- STYLISH POST NAVIGATION --- */
.stylish-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.nav-prev, .nav-next {
    flex: 1;
    display: flex;
}

.nav-next {
    text-align: right;
    justify-content: flex-end;
}

.stylish-post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
}

.stylish-post-navigation a:hover {
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.1);
    transform: translateY(-3px);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Hover color changes */
.stylish-post-navigation a:hover .nav-label {
    color: #0d6efd;
}

.stylish-post-navigation a:hover .nav-title {
    color: #0d6efd;
}

/* Mobile Responsiveness */
@media (max-width: 650px) {
    .stylish-post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    .nav-next {
        text-align: left;
        justify-content: flex-start;
    }
    .nav-next .nav-label {
        justify-content: flex-start;
    }
}
/* --- STYLISH TABLE OF CONTENTS --- */

/* Enable smooth scrolling for the entire site so anchor links glide nicely */
html {
    scroll-behavior: smooth;
}

.stylish-toc {
    background: #f8fafc; /* Very light slate-blue */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.toc-header svg {
    color: #0d6efd; /* Theme blue */
}

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

.toc-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 22px;
}

/* Custom arrow bullet point */
.toc-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.toc-list a {
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

/* Hover effects */
.toc-list a:hover {
    color: #0d6efd;
    transform: translateX(4px); /* Text slides slightly right */
}

.toc-list li:hover::before {
    color: #0d6efd;
    transform: translateX(2px); /* Arrow slides slightly right */
}

/* Adds a small buffer to the top of H2s so they aren't glued to the top of the browser when jumped to */
.content-area h2 {
    scroll-margin-top: 30px;
}

/* --- STYLISH RELATED POSTS SECTION --- */
.stylish-related-section {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.related-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.related-section-title svg {
    color: #0d6efd;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.1);
    border-color: #cbd5e1;
}

.related-thumb {
    overflow: hidden;
    background: #f1f5f9;
}

.related-thumb img {
    transition: transform 0.4s ease;
}

.related-post-card:hover .related-thumb img {
    transform: scale(1.06); /* Zoom effect on hover */
}

.related-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.related-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
}

.related-post-card:hover .related-title {
    color: #0d6efd; /* Turns theme blue on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr; /* Stacks nicely on phones */
    }
}

/* --- CUSTOM 404 PAGE STYLING --- */
.not-found-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 60px 20px;
    margin: 40px auto;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.error-code {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    color: #0d6efd;
    margin-bottom: 10px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.not-found-container h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.not-found-container p {
    font-size: 16px;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.not-found-search {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.not-found-search p {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.not-found-search form {
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.not-found-search input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-right: none;
    outline: none;
    font-size: 15px;
    border-radius: 8px 0 0 8px;
}

.not-found-search button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    transition: background 0.2s;
}

.not-found-search button:hover {
    background: #0b5ed7;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: #0d6efd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.2);
    text-decoration: none;
}
/* --- MOBILE APP-STYLE BOTTOM NAVIGATION --- */
.mobile-bottom-nav {
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        justify-content: space-around;
        padding: 8px 0;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
        gap: 4px;
        flex: 1;
        transition: color 0.2s ease;
    }

    .mobile-bottom-nav .nav-item svg {
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item:active {
        color: #0d6efd;
        text-decoration: none;
    }

    .mobile-bottom-nav .nav-item:hover svg {
        transform: translateY(-2px);
    }

    /* Distinct WhatsApp Styling for the Contact Button */
    .mobile-bottom-nav .whatsapp-nav-item {
        color: #16a34a; /* WhatsApp Green */
    }

    /* Adds padding to the bottom of the page content so the fixed menu doesn't cover footer text */
    body {
        padding-bottom: 60px;
    }
}

/* --- RECENT POSTS SECTION STYLING --- */
.recent-posts-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.recent-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-main-icon {
    background: #0d6efd; /* Theme blue */
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recent-title-wrap h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.recent-view-all {
    background: #e0e7ff;
    color: #3730a3;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #c7d2fe;
    transition: background 0.2s;
}

.recent-view-all:hover {
    background: #c7d2fe;
    text-decoration: none;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    gap: 20px;
    padding: 25px;
}

.recent-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.1);
    border-color: #cbd5e1;
}

.recent-card-thumb {
    overflow: hidden;
    background: #f1f5f9;
}

.recent-card-thumb img {
    transition: transform 0.4s ease;
}

.recent-post-card:hover .recent-card-thumb img {
    transform: scale(1.06);
}

.recent-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recent-card-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.recent-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 15px 0;
    transition: color 0.2s ease;
    flex: 1;
}

.recent-post-card:hover .recent-card-title {
    color: #0d6efd;
}

.recent-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: auto;
}

.recent-card-author svg {
    color: #0d6efd;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .recent-posts-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
        padding: 15px;
    }
    .recent-header {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .recent-title-wrap h2 {
        font-size: 18px;
    }
}

/* --- MAKE POST LIST & CARD TITLES BOLD --- */
.recent-card-title,
.related-title,
.nav-title {
    font-weight: 700 !important; /* Forces a bold, prominent weight */
}
/* --- RESPONSIVE H2 HEADINGS IN POST CONTENT --- */
.content-area h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.4;
    scroll-margin-top: 30px; /* Keeps jump links nicely spaced from the top */
}

/* Mobile Screen Adjustments */
@media (max-width: 768px) {
    .content-area h2 {
        font-size: 16px; /* Scales down gracefully on mobile screens */
        margin-top: 25px;
        margin-bottom: 12px;
    }
}
/* --- FRESH UNIQUE TOOLKIT STYLING --- */
.sarkari-tool-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.sarkari-tool-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 22px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.sarkari-tool-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.sarkari-tool-main-icon {
    background: #0d6efd !important;
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.sarkari-tool-title-wrap h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.sarkari-tool-view-all {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #c7d2fe !important;
}

.sarkari-tool-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.sarkari-tool-box-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px 15px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    transition: all 0.3s ease !important;
}

.sarkari-tool-box-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.sarkari-tool-icon-wrap {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sarkari-blue   { background: #e0f2fe !important; color: #0284c7 !important; }
.sarkari-green  { background: #dcfce7 !important; color: #16a34a !important; }
.sarkari-orange { background: #ffedd5 !important; color: #ea580c !important; }
.sarkari-purple { background: #f3e8ff !important; color: #9333ea !important; }

.sarkari-tool-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

}
/* --- RESPONSIVE TOOLKIT 2x2 GRID FOR MOBILE --- */
@media (max-width: 768px) {
    .toolkit-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .toolkit-card {
        padding: 18px 10px !important;
        gap: 10px !important;
    }

    .toolkit-icon-box {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
    }

    .toolkit-card-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}