/* =========================================================
   Study Ghar Mock Test Manager 1.0.5
   Lightweight, clean and responsive mock-test hub
========================================================= */

.sgmt-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px;
    color: #182230;
    box-sizing: border-box;
}

.sgmt-wrap *,
.sgmt-wrap *::before,
.sgmt-wrap *::after {
    box-sizing: border-box;
}

/* =========================
   LIGHTWEIGHT HERO
========================= */
.sgmt-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 0;
    padding: 25px 28px;
    margin-bottom: 22px;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    background: #f7fbff;
    color: #182230;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

.sgmt-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2f75d6;
}

.sgmt-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -85px;
    top: -105px;
    border-radius: 50%;
    background: rgba(47, 117, 214, .055);
    pointer-events: none;
}

.sgmt-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.sgmt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #4f6f97;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .1em;
    font-weight: 800;
}

.sgmt-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f8bd8;
}

.sgmt-hero h2 {
    margin: 0 0 7px;
    color: #172033;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.02em;
}

.sgmt-hero p {
    max-width: 760px;
    margin: 0;
    color: #66758a;
    font-size: 14px;
    line-height: 1.55;
}

.sgmt-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.sgmt-stat {
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #e0eaf5;
    border-radius: 8px;
    background: #fff;
}

.sgmt-stat strong,
.sgmt-stat span {
    display: inline;
}

.sgmt-stat strong {
    color: #245eaa;
    font-size: 13px;
    line-height: 1.2;
}

.sgmt-stat span {
    margin-left: 4px;
    color: #7a8798;
    font-size: 11px;
}

/* Deliberately hidden: the old large SG mark made the header feel heavy. */
.sgmt-hero-mark {
    display: none !important;
}

/* =========================
   TOOLBAR / SEARCH
========================= */
.sgmt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
}

.sgmt-toolbar-title {
    min-width: 0;
}

.sgmt-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: #3d73b7;
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 800;
}

.sgmt-toolbar-title strong {
    display: block;
    color: #172033;
    font-size: 17px;
    font-weight: 700;
}

.sgmt-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(430px, 100%);
    margin: 0;
}

.sgmt-search-box {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Clean, theme-proof search icon. The input has deliberate left space
   so the icon can never sit on top of the placeholder/text. */
.sgmt-search-box .sgmt-search-icon {
    position: absolute !important;
    top: 50% !important;
    left: 15px !important;
    z-index: 5 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
    color: #7b8796 !important;
    pointer-events: none !important;
    line-height: 1 !important;
}

.sgmt-search-box .sgmt-search-icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.sgmt-search-box input.sgmt-search-input,
.sgmt-search-box input[type="search"] {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 10px !important;
    padding: 0 40px 0 48px !important;
    background: #fff !important;
    color: #172033 !important;
    font-size: 13px !important;
    line-height: 42px !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.sgmt-search input:focus {
    border-color: #75a5dc;
    box-shadow: 0 0 0 3px rgba(66, 125, 195, .08);
}

.sgmt-search input::placeholder {
    color: #9aa7b7;
}

.sgmt-search button {
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #2f75d6;
    background: #2f75d6;
    color: #fff;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.sgmt-search button:hover {
    background: #2767bd;
    border-color: #2767bd;
    transform: none;
}

.sgmt-clear {
    position: absolute;
    right: 11px;
    color: #7b8797;
    font-size: 19px;
    line-height: 1;
    text-decoration: none !important;
}

/* =========================
   CARDS
========================= */
.sgmt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.sgmt-card {
    position: relative;
    overflow: hidden;
    min-height: 204px;
    display: flex;
    flex-direction: column;
    padding: 19px;
    border: 1px solid #e3e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15,23,42,.028);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sgmt-card:hover {
    transform: translateY(-2px);
    border-color: #cbdcf1;
    box-shadow: 0 9px 22px rgba(15,23,42,.065);
}

.sgmt-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.sgmt-number {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e7f8;
    border-radius: 10px;
    background: #f3f8fe;
    color: #2a65a8;
    font-size: 13px;
    font-weight: 800;
}

.sgmt-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid #dcefe6;
    border-radius: 999px;
    background: #f5fbf8;
    color: #267458;
    font-size: 10px;
    font-weight: 700;
}

.sgmt-card h3 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.sgmt-card h3 a {
    color: #182230;
    text-decoration: none;
}

.sgmt-card h3 a:hover {
    color: #2f75d6;
}

.sgmt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    color: #718095;
    font-size: 12px;
}

.sgmt-meta span {
    white-space: nowrap;
}

.sgmt-button {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #2f75d6;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease;
}

.sgmt-button span {
    font-size: 16px;
    line-height: 1;
}

.sgmt-button:hover {
    background: #2767bd;
    transform: none;
}

/* =========================
   PAGINATION / EMPTY
========================= */
.sgmt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 12px;
}

.sgmt-pagination a,
.sgmt-pagination span {
    min-width: 37px;
    height: 37px;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #445268;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.sgmt-pagination .current {
    background: #2f75d6;
    border-color: #2f75d6;
    color: #fff;
}

.sgmt-pagination a:hover {
    border-color: #a8c6e8;
    color: #2f75d6;
}

.sgmt-empty {
    padding: 42px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafcff;
    text-align: center;
    color: #68778b;
}

.sgmt-empty-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f6fd;
    color: #2f75d6;
    font-size: 23px;
}

.sgmt-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #182230;
    font-size: 16px;
}

.sgmt-empty p {
    margin: 0 0 10px;
    font-size: 13px;
}

.sgmt-empty a {
    color: #2f75d6;
    font-weight: 700;
    text-decoration: none;
}

.sgmt-footer-note {
    margin-top: 17px;
    padding: 10px 13px;
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    background: #fafbfd;
    color: #718095;
    text-align: center;
    font-size: 12px;
}

.sgmt-footer-note span {
    margin-right: 4px;
    color: #3a8a69;
    font-weight: 800;
}

/* =========================
   BREADCRUMB + POST NAV
========================= */
.sgmt-breadcrumb {
    max-width: 1180px;
    margin: 15px auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
}

.sgmt-breadcrumb a {
    color: #2f75d6;
    text-decoration: none;
}

.sgmt-breadcrumb a:hover {
    text-decoration: underline;
}

.sgmt-breadcrumb strong {
    color: #334155;
}

.sgmt-post-nav {
    max-width: 1180px;
    margin: 35px auto 10px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.sgmt-nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sgmt-nav-item:hover {
    border-color: #b7d0ec;
    box-shadow: 0 6px 16px rgba(15,23,42,.045);
}

.sgmt-nav-item span {
    color: #2f75d6;
    font-size: 12px;
    font-weight: 800;
}

.sgmt-nav-item strong {
    color: #182230;
    font-size: 14px;
}

.sgmt-next {
    text-align: right;
}

/* =========================
   SINGLE MOCK TEST META
========================= */
.single-post.category-bihar-police-constable .entry-meta,
.single-post.category-bihar-police-constable .post-meta,
.single-post.category-bihar-police-constable .byline,
.single-post.category-bihar-police-constable .posted-on,
.single-post.category-bihar-police-constable .posted-by,
.single-post.category-bihar-police-constable .author-meta,
.single-post.category-bihar-police-constable .post-author,
.single-post.category-bihar-police-constable .post-date,
body.single-post.category-bihar-police-constable .entry-header .entry-meta,
body.single-post.category-bihar-police-constable .entry-header .post-meta,
body.single-post.category-bihar-police-constable .entry-header .byline,
body.single-post.category-bihar-police-constable .entry-header .posted-on,
body.single-post.category-bihar-police-constable .entry-header .posted-by,
body.single-post.category-bihar-police-constable .entry-header .author-meta,
body.single-post.category-bihar-police-constable .entry-header .post-author,
body.single-post.category-bihar-police-constable .entry-header .post-date,
body.single-post.category-bihar-police-constable .entry-header .meta,
body.single-post.category-bihar-police-constable .entry-header .metadata,
body.single-post.category-bihar-police-constable .entry-header .author,
body.single-post.category-bihar-police-constable .entry-header time,
body.single-post.category-bihar-police-constable .entry-header [class*="author"],
body.single-post.category-bihar-police-constable .entry-header [class*="date"],
body.single-post.category-bihar-police-constable .entry-header [class*="meta"] {
    display: none !important;
}

/* If the theme exposes the category archive before redirect/cache refresh,
   keep its large excerpts and post meta hidden as a safety net. */
body.category-bihar-police-constable .entry-summary,
body.category-bihar-police-constable .post-excerpt,
body.category-bihar-police-constable .excerpt,
body.category-bihar-police-constable .entry-meta,
body.category-bihar-police-constable .post-meta,
body.category-bihar-police-constable .byline,
body.category-bihar-police-constable .posted-on,
body.category-bihar-police-constable .posted-by,
body.category-bihar-police-constable [class*="excerpt"],
body.category-bihar-police-constable [class*="entry-summary"] {
    display: none !important;
}

/* Final search-field guard: prevents theme/plugin CSS from collapsing the
   icon/text spacing. */
.sgmt-search .sgmt-search-box input.sgmt-search-input {
    padding-left: 48px !important;
    padding-right: 40px !important;
}

.sgmt-search .sgmt-search-box .sgmt-search-icon {
    left: 15px !important;
    width: 18px !important;
    height: 18px !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
    .sgmt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .sgmt-wrap {
        margin-top: 18px;
        padding: 0 12px;
    }

    .sgmt-hero {
        padding: 21px 19px;
        border-radius: 14px;
    }

    .sgmt-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .sgmt-search {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .sgmt-grid {
        grid-template-columns: 1fr;
    }

    .sgmt-hero h2 {
        font-size: 25px;
    }

    .sgmt-hero p {
        font-size: 13px;
    }

    .sgmt-hero-stats {
        gap: 6px;
    }

    .sgmt-stat {
        flex: 0 1 auto;
        padding: 6px 8px;
    }

    .sgmt-search button {
        padding: 0 14px;
    }

    .sgmt-post-nav {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .sgmt-next {
        text-align: left;
    }
}
