/*
Theme Name: Sarkari Result Dynamic
Theme URI: https://example.com/
Author: Custom
Description: Dynamic Sarkari Result-style WordPress theme.
Version: 61.0
Requires at least: 6.0
*/

*{box-sizing:border-box}
body{margin:0;background:#f2f2f2;color:#222;font-family:Arial,sans-serif}
a{color:#0033cc}
.site-header{background:#8b0000;color:#fff;padding:15px 25px;display:flex;align-items:center;gap:20px}
.site-logo{width:85px;height:85px;object-fit:contain;background:#fff;border-radius:50%;padding:5px}
.header-text{flex:1;text-align:center}
.header-text h1{margin:0 0 7px;font-size:36px}
.header-text p{margin:0}
.main-nav{background:#000;display:flex;justify-content:center;flex-wrap:wrap}
.main-nav a{color:#fff;text-decoration:none;padding:13px 18px;border-right:1px solid #444}
.main-nav a:hover{background:#8b0000}
.container{width:95%;max-width:1200px;margin:20px auto}
.ticker{background:#ffeb3b;padding:10px;margin-bottom:20px;font-weight:bold;overflow:hidden}
.ticker a{color:#000}
.home-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.section-box,.single-post,.category-page,.sidebar-box{background:#fff;border:1px solid #ddd;border-radius:5px;overflow:hidden}
.section-title,.post-title-bar{background:#8b0000;color:#fff;padding:12px 15px;text-align:center;margin:0}
.section-list{list-style:none;padding:10px 15px;margin:0}
.section-list li{border-bottom:1px solid #ddd;padding:9px 0}
.section-list li:last-child{border-bottom:0}
.section-list a{text-decoration:none;font-weight:bold}
.view-all{text-align:right;padding:10px 15px;background:#fafafa}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.breadcrumb{background:#fff;border:1px solid #ddd;padding:12px 15px;margin-bottom:15px;font-size:14px}
.single-post,.category-page{padding:20px}
.post-title-bar{margin:-20px -20px 15px;font-size:27px}
.post-meta{font-size:13px;color:#777;margin-bottom:20px}
.post-content{line-height:1.8;font-size:16px}
.post-content h2{background:#8b0000;color:#fff;padding:10px 15px;font-size:21px}
.post-content h3{color:#8b0000;border-bottom:2px solid #8b0000;padding-bottom:6px}
.post-content table{width:100%;border-collapse:collapse;margin:15px 0}
.post-content th,.post-content td{border:1px solid #ddd;padding:10px}
.post-content th{background:#f2f2f2}
.post-content img{max-width:100%;height:auto}
.category-title{margin:0 0 15px;color:#8b0000}
.archive-item{padding:15px 0;border-bottom:1px solid #ddd}
.archive-item:last-child{border-bottom:0}
.archive-item h2{margin:0 0 7px;font-size:20px}
.archive-item h2 a{text-decoration:none}
.archive-item .meta{font-size:13px;color:#777}
.pagination{text-align:center;margin-top:20px}
.pagination a,.pagination span{display:inline-block;padding:8px 12px;border:1px solid #ddd;margin:2px;text-decoration:none}
.pagination .current{background:#8b0000;color:#fff}
.sidebar-box{margin-bottom:20px}
.sidebar-box h3{background:#8b0000;color:#fff;margin:0;padding:11px;text-align:center;font-size:19px}
.sidebar-box ul{list-style:none;padding:10px 15px;margin:0}
.sidebar-box li{padding:8px 0;border-bottom:1px solid #ddd}
.site-footer{background:#000;color:#fff;text-align:center;padding:25px;margin-top:30px}
@media(max-width:768px){
 .site-header{flex-direction:column;text-align:center}
 .header-text h1{font-size:28px}
 .home-grid{grid-template-columns:1fr}
 .layout{grid-template-columns:1fr}
 .sidebar{order:2}
 .main-nav a{padding:10px 12px;font-size:14px}
 .post-title-bar{font-size:22px}
}

/* Category archive */
.category-page{padding:0}
.category-header{background:#8b0000;color:#fff;padding:18px 20px;text-align:center}
.category-header h1{margin:0;font-size:28px}
.category-description{margin-top:8px;font-size:14px;line-height:1.5}
.post-list{background:#fff}
.category-post{padding:17px 20px;border-bottom:1px solid #ddd}
.category-post:last-child{border-bottom:0}
.category-post-content{position:relative;min-height:80px}
.category-post h2{margin:0 0 7px;font-size:20px;line-height:1.35}
.category-post h2 a{color:#0033cc;text-decoration:none}
.category-post h2 a:hover{color:#8b0000;text-decoration:underline}
.category-post-meta{font-size:12px;color:#777;margin-bottom:8px}
.category-post p{margin:5px 0 10px;line-height:1.6;color:#444}
.category-thumb{float:right;margin:0 0 8px 15px}
.category-thumb img{width:110px;height:75px;object-fit:cover;border-radius:3px}
.read-more{font-size:14px;font-weight:bold;color:#8b0000;text-decoration:none}
.no-posts{padding:40px 20px;text-align:center}
.no-posts h2{color:#8b0000}
.sidebar-view-all{padding:10px 15px;background:#f7f7f7;text-align:right;border-top:1px solid #ddd}
.sidebar-view-all a{color:#8b0000;font-weight:bold;text-decoration:none}
.sidebar-box li a{line-height:1.45}
@media(max-width:768px){
 .category-header h1{font-size:23px}
 .category-post{padding:14px}
 .category-post h2{font-size:18px}
 .category-thumb{float:none;display:block;margin:10px 0}
 .category-thumb img{width:100%;height:auto;max-height:220px}
}


/* ===== Internal page scrolling fix ===== */
html {
    height: auto;
    min-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden;
}

body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    position: static !important;
}

.site-header,
.main-nav,
.container,
.layout,
.main-content,
.category-page,
.single-post {
    height: auto;
    max-height: none;
}

.main-content,
.category-page,
.single-post {
    overflow: visible !important;
}

/* Prevent WordPress/admin-bar or theme elements from locking the viewport */
body.admin-bar {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        min-height: calc(100vh - 46px);
    }
}


/* ===== Clean navigation design / hover fix ===== */
.main-nav {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 48px;
    padding: 0;
}

.main-nav ul {
    list-style: none !important;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav li {
    list-style: none !important;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border-left: 1px solid #444;
}

.main-nav li:last-child {
    border-right: 1px solid #444;
}

.main-nav li::before,
.main-nav li::after {
    display: none !important;
    content: none !important;
}

.main-nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-height: 48px;
    padding: 0 18px !important;
    margin: 0 !important;
    color: #fff !important;
    background: #000 !important;
    text-decoration: none !important;
    font-size: 18px;
    line-height: 48px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
    background: #8b0000 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.main-nav a:active {
    transform: none !important;
}

/* Fallback for the automatically generated category links */
.main-nav > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-height: 48px;
    padding: 0 18px !important;
    border-left: 1px solid #444 !important;
    border-right: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
    transform: none !important;
}

.main-nav > a:last-child {
    border-right: 1px solid #444 !important;
}

.main-nav > a:hover {
    background: #8b0000 !important;
    transform: none !important;
    box-shadow: none !important;
}

@media(max-width:768px) {
    .main-nav {
        min-height: 44px;
    }

    .main-nav ul {
        width: 100%;
    }

    .main-nav a,
    .main-nav > a {
        height: 44px;
        min-height: 44px;
        line-height: 44px;
        padding: 0 12px !important;
        font-size: 14px;
    }
}


/* ===== Category: title + URL only ===== */
.category-title-url-only {
    padding: 0;
}

.category-link-list {
    background: #fff;
}

.category-link-item {
    padding: 14px 18px;
    border-bottom: 1px solid #ddd;
}

.category-link-item:last-child {
    border-bottom: 0;
}

.category-link-item h2 {
    margin: 0 0 5px;
    font-size: 19px;
    line-height: 1.4;
}

.category-link-item h2 a {
    color: #0033cc;
    text-decoration: none;
}

.category-link-item h2 a:hover {
    color: #8b0000;
    text-decoration: underline;
}

.category-link-item .post-url {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
}

.category-link-item .post-url a {
    color: #666;
    text-decoration: none;
}

.category-link-item .post-url a:hover {
    color: #8b0000;
    text-decoration: underline;
}

@media(max-width:768px) {
    .category-link-item {
        padding: 12px 14px;
    }

    .category-link-item h2 {
        font-size: 17px;
    }

    .category-link-item .post-url {
        font-size: 12px;
    }
}

/* ===== Category: anchor text only ===== */
.category-title-url-only {
    padding: 0;
}

.category-link-list {
    background: #fff;
}

.category-link-item {
    margin: 0;
    padding: 13px 18px;
    border-bottom: 1px solid #ddd;
    line-height: 1.5;
}

.category-link-item:last-child {
    border-bottom: 0;
}

.category-anchor {
    display: block;
    color: #0033cc;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.category-anchor:hover {
    color: #8b0000;
    text-decoration: underline;
}

@media(max-width:768px) {
    .category-link-item {
        padding: 11px 14px;
    }

    .category-anchor {
        font-size: 16px;
    }
}

/* ===== Category anchor list with bullets ===== */
.category-bullet-list {
    margin: 0;
    padding: 5px 18px 5px 42px;
    background: #fff;
}

.category-bullet-list .category-link-item {
    margin: 0;
    padding: 11px 5px;
    border-bottom: 1px solid #ddd;
    line-height: 1.5;
}

.category-bullet-list .category-link-item:last-child {
    border-bottom: 0;
}

.category-bullet-list .category-anchor {
    display: inline;
    color: #0033cc;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.category-bullet-list .category-anchor:hover {
    color: #8b0000;
    text-decoration: underline;
}

.category-bullet-list .category-link-item::marker {
    color: #222;
    font-size: 16px;
}

@media(max-width:768px) {
    .category-bullet-list {
        padding-left: 32px;
    }

    .category-bullet-list .category-link-item {
        padding: 10px 3px;
    }

    .category-bullet-list .category-anchor {
        font-size: 16px;
    }
}

/* ===== Single post breadcrumb fix ===== */
.breadcrumb {
    display: block;
    width: 100%;
}

.breadcrumb a:first-child {
    color: #0033cc;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 4px;
}


/* Homepage: all category boxes */
.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.section-box {
    min-width: 0;
}

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

/* ===== Eye-catching View All button ===== */
.view-all {
    padding: 12px 15px !important;
    background: #f7f7f7 !important;
    text-align: center !important;
    border-top: 1px solid #ddd;
}

.view-all a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 130px;
    padding: 9px 18px;
    background: #8b0000;
    color: #fff !important;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,.18);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.view-all a::before {
    content: "👁";
    font-size: 14px;
}

.view-all a:hover {
    background: #b30000;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(0,0,0,.22);
}

.view-all a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,.18);
}

@media(max-width:768px) {
    .view-all a {
        width: 100%;
        max-width: 220px;
    }
}

/* ===== Clean boxed View All button - no icon ===== */
.view-all {
    padding: 14px 15px !important;
    background: #f5f5f5 !important;
    text-align: center !important;
    border-top: 1px solid #ddd;
}

.view-all a,
.view-all a:hover,
.view-all a:focus {
    display: inline-block;
    min-width: 150px;
    padding: 10px 22px;
    background: #8b0000 !important;
    color: #fff !important;
    border: 1px solid #700000;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .15s ease;
}

.view-all a::before {
    content: none !important;
    display: none !important;
}

.view-all a:hover {
    background: #000 !important;
}

@media(max-width:768px) {
    .view-all a {
        width: 100%;
        max-width: 220px;
    }
}

/* ===== View More pill button ===== */
.view-all {
    padding: 12px 0 16px !important;
    background: #fff !important;
    text-align: center !important;
    border-top: 1px solid #ddd;
}

.view-all a,
.view-all a:hover,
.view-all a:focus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 205px;
    height: 58px;
    padding: 0 28px !important;
    background: #287be0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 32px !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .15s ease;
}

.view-all a::before {
    content: none !important;
    display: none !important;
}

.view-all a:hover {
    background: #1769c8 !important;
}

@media(max-width:768px) {
    .view-all a {
        min-width: 170px;
        height: 50px;
        padding: 0 22px !important;
        font-size: 22px !important;
    }
}

/* ===== Compact right-aligned View More button ===== */
.view-all {
    padding: 10px 14px !important;
    background: #fff !important;
    text-align: right !important;
    border-top: 1px solid #ddd;
}

.view-all a,
.view-all a:hover,
.view-all a:focus {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    height: 38px;
    padding: 0 16px !important;
    background: #287be0 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.view-all a::before {
    content: none !important;
    display: none !important;
}

.view-all a:hover {
    background: #1769c8 !important;
}

@media(max-width:768px) {
    .view-all {
        padding: 9px 12px !important;
    }

    .view-all a {
        min-width: 95px;
        height: 36px;
        padding: 0 14px !important;
        font-size: 14px !important;
    }
}

/* Homepage: keep every category visible even when it has no posts */
.section-box .section-list:empty {
    min-height: 20px;
}

.section-box .section-list li {
    margin-bottom: 0;
}

/* ===== Home navigation stays black ===== */
.main-nav .menu-item-home > a,
.main-nav .menu-item-home > a:hover,
.main-nav .menu-item-home > a:focus,
.main-nav .menu-item-home.current-menu-item > a,
.main-nav .menu-item-home.current-menu-ancestor > a,

/* Home button: black normally, red on hover */
.main-nav .menu-item-home > a {
    background: #000 !important;
    color: #fff !important;
}

.main-nav .menu-item-home > a:hover,
.main-nav .menu-item-home > a:focus {
    background: #8b0000 !important;
    color: #fff !important;
}


/* ===== Dynamic Internal Page Structure ===== */
.single-post {
    background: #fff;
}

.post-title-bar {
    margin: 0 !important;
    padding: 16px 20px !important;
    background: #8b0000;
    color: #fff;
    font-size: 28px;
    line-height: 1.35;
}

.post-meta {
    padding: 9px 20px;
    background: #f4f4f4;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.internal-section {
    margin: 18px 0;
    border: 1px solid #ddd;
    background: #fff;
}

.internal-section h2 {
    margin: 0;
    padding: 11px 15px;
    background: #8b0000;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
}

.section-text {
    padding: 15px 17px;
    line-height: 1.7;
}

.short-info-box {
    border-left: 4px solid #8b0000;
}

.section-table {
    width: 100%;
}

.info-row {
    display: grid;
    grid-template-columns: 42% 58%;
    border-bottom: 1px solid #e5e5e5;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row strong,
.info-row span {
    padding: 10px 14px;
}

.info-row strong {
    background: #f7f7f7;
}

.internal-list {
    margin: 0;
    padding: 13px 35px 13px 38px;
    line-height: 1.7;
}

.internal-list li {
    margin-bottom: 5px;
}

.internal-steps {
    padding-left: 40px;
}

.important-links {
    padding: 8px 14px;
}

.important-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 4px;
    border-bottom: 1px solid #e5e5e5;
}

.important-link-row:last-child {
    border-bottom: 0;
}

.important-link-row span {
    font-weight: 600;
}

.important-link-row a {
    flex: 0 0 auto;
    padding: 7px 14px;
    background: #287be0;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.important-link-row a:hover {
    background: #1769c8;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    cursor: pointer;
    padding: 12px 15px;
    font-weight: 700;
    color: #0033cc;
}

.faq-item div {
    padding: 0 15px 14px;
    line-height: 1.7;
}

.post-content {
    padding: 0 18px;
}

@media(max-width:768px) {
    .post-title-bar {
        padding: 13px 14px !important;
        font-size: 22px;
    }

    .post-meta {
        padding: 8px 14px;
    }

    .internal-section {
        margin: 13px 0;
    }

    .internal-section h2 {
        font-size: 17px;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .info-row strong {
        padding-bottom: 5px;
    }

    .info-row span {
        padding-top: 5px;
    }

    .important-link-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .important-link-row a {
        width: auto;
    }

    .post-content {
        padding: 0 12px;
    }
}


/* =========================================================
   Manual Colored Post Boxes
   ========================================================= */
.sr-featured-boxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
}

.sr-featured-box {
    min-height: 112px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: filter .15s ease, transform .15s ease;
}

.sr-featured-box span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 700;
}

.sr-featured-box:hover {
    color: #fff !important;
    filter: brightness(.88);
    transform: translateY(-1px);
}

@media(max-width:900px) {
    .sr-featured-boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sr-featured-box {
        min-height: 105px;
    }

    .sr-featured-box span {
        font-size: 21px;
    }
}

@media(max-width:500px) {
    .sr-featured-boxes {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .sr-featured-box {
        min-height: 82px;
    }

    .sr-featured-box span {
        font-size: 20px;
    }
}

/* =========================================
   MOVING TEXT - CLEAN SINGLE-LINE TICKER
   ========================================= */
.sr-moving-text{
    width:100%;
    margin:10px 0 15px;
    padding:0;
    background:transparent;
    border:0;
    overflow:hidden;
}

.sr-moving-row{
    width:100%;
    overflow:hidden;
    white-space:nowrap;
    padding:2px 0;
    margin:0;
}

.sr-moving-track{
    display:inline-flex;
    align-items:center;
    width:max-content;
    min-width:max-content;
    animation:movingText 7s ease-in-out infinite alternate;
    will-change:transform;
}

.sr-moving-track a{
    color:#1746d1;
    font-family:Georgia, "Times New Roman", serif;
    font-size:18px;
    line-height:1.35;
    font-weight:700;
    text-decoration:none;
    padding:0 9px;
    white-space:nowrap;
    flex-shrink:0;
}

.sr-moving-track a:hover{
    color:#8b0000;
    text-decoration:underline;
}

.sr-moving-track span{
    color:#222;
    font-family:Georgia, "Times New Roman", serif;
    font-size:17px;
    line-height:1.35;
    font-weight:700;
    flex-shrink:0;
}

@keyframes movingText{
    0%{transform:translateX(0);}
    100%{transform:translateX(calc(-1 * var(--moving-distance, 0px)));}
}

.sr-moving-row:hover .sr-moving-track{
    animation-play-state:paused;
}

@media(max-width:768px){
    .sr-moving-track{
        animation-duration:6s;
    }
    .sr-moving-track a{
        font-size:15px;
        padding:0 6px;
    }
    .sr-moving-track span{
        font-size:14px;
    }
}

@media(prefers-reduced-motion:reduce){
    .sr-moving-track{
        animation:none;
        transform:translateX(0);
    }
}

/* =========================================
   COMPACT SIDEBAR BOXES
   ========================================= */
.post-sidebar{
    width:100%;
}

.post-sidebar .sidebar-box,
.sidebar .sidebar-box{
    margin-bottom:14px;
    border-radius:3px;
}

.post-sidebar .sidebar-box h3,
.sidebar .sidebar-box h3{
    padding:8px 10px;
    font-size:16px;
    line-height:1.25;
}

.post-sidebar .sidebar-box ul,
.sidebar .sidebar-box ul{
    padding:6px 10px;
}

.post-sidebar .sidebar-box li,
.sidebar .sidebar-box li{
    padding:5px 0;
    line-height:1.35;
}

.post-sidebar .sidebar-box li a,
.sidebar .sidebar-box li a{
    font-family:Arial, sans-serif;
    font-size:13px;
    line-height:1.35;
}

.post-sidebar .sidebar-view-all,
.sidebar .sidebar-view-all{
    padding:6px 10px;
    font-size:12px;
}

.post-sidebar .sidebar-view-all a,
.sidebar .sidebar-view-all a{
    font-size:12px;
}

/* Keep the overall right column compact */
.layout{
    grid-template-columns:minmax(0,1fr) 245px;
    gap:15px;
}

@media(max-width:768px){
    .layout{
        grid-template-columns:1fr;
        gap:12px;
    }
}


/* =========================================================
   Custom 404 Page
   ========================================================= */
.sr-404-page {
    background:#fff;
    border:1px solid #ddd;
    text-align:center;
    padding:35px 25px 40px;
    margin-bottom:20px;
}
.sr-404-icon {
    font-size:76px;
    line-height:1;
    font-weight:800;
    color:#8b0000;
    margin-bottom:10px;
}
.sr-404-page h1 {
    margin:0 0 12px;
    color:#8b0000;
    font-size:32px;
}
.sr-404-message {
    margin:0 auto 22px;
    color:#444;
    font-size:17px;
    line-height:1.6;
}
.sr-404-actions { margin-bottom:28px; }
.sr-404-home {
    display:inline-block;
    background:#8b0000;
    color:#fff !important;
    padding:10px 18px;
    border-radius:3px;
    text-decoration:none !important;
    font-weight:700;
}
.sr-404-home:hover {
    background:#000;
    color:#fff !important;
}
.sr-404-search {
    max-width:650px;
    margin:0 auto 28px;
    padding:18px;
    border:1px solid #ddd;
    background:#f8f8f8;
}
.sr-404-search h2,
.sr-404-links h2 {
    margin:0 0 12px;
    padding:9px 12px;
    background:#8b0000;
    color:#fff;
    font-size:20px;
}
.sr-404-search form {
    display:flex;
    gap:8px;
}
.sr-404-search input[type="search"] {
    flex:1;
    min-width:0;
    padding:10px;
    border:1px solid #ccc;
    font-size:15px;
}
.sr-404-search input[type="submit"] {
    padding:10px 16px;
    border:0;
    background:#8b0000;
    color:#fff;
    cursor:pointer;
    font-weight:700;
}
.sr-404-links {
    max-width:850px;
    margin:0 auto;
}
.sr-404-category-links {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}
.sr-404-category-links a {
    display:inline-block;
    padding:8px 13px;
    border:1px solid #ddd;
    background:#fff;
    color:#0033cc;
    text-decoration:none;
}
.sr-404-category-links a:hover {
    background:#8b0000;
    color:#fff;
}
@media (max-width:600px) {
    .sr-404-page { padding:25px 12px 30px; }
    .sr-404-icon { font-size:60px; }
    .sr-404-page h1 { font-size:25px; }
    .sr-404-search form { flex-direction:column; }
    .sr-404-search input[type="submit"] { width:100%; }
}

/* Dynamic Blog Section */
.sr-blog-section{width:100%;margin:25px 0;background:#fff;border:1px solid #ddd}
.sr-blog-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#8b0000}
.sr-blog-heading h2{margin:0;color:#fff;font-size:22px}
.sr-blog-heading>a{padding:6px 12px;background:#000;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;border-radius:3px}
.sr-blog-heading>a:hover{background:#fff;color:#8b0000!important}
.sr-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:15px}
.sr-blog-card{border:1px solid #ddd;background:#fff;overflow:hidden}
.sr-blog-image{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f3f3f3}
.sr-blog-image img{display:block;width:100%;height:100%;object-fit:cover}
.sr-blog-content{padding:12px}
.sr-blog-content h3{margin:0 0 7px;font-size:18px;line-height:1.4}
.sr-blog-content h3 a{color:#0033cc;text-decoration:none}
.sr-blog-content h3 a:hover{color:#8b0000;text-decoration:underline}
.sr-blog-date{color:#777;font-size:12px;margin-bottom:7px}
.sr-blog-content p{margin:0 0 10px;color:#444;font-size:14px;line-height:1.55}
.sr-blog-read-more{display:inline-block;padding:6px 10px;background:#8b0000;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;border-radius:3px}
.sr-blog-read-more:hover{background:#000}
@media(max-width:900px){.sr-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sr-blog-grid{grid-template-columns:1fr;padding:10px}.sr-blog-heading h2{font-size:19px}}

/* Blog category archive */
.sr-category-description{
    margin:6px 0 0;
    color:#666;
    font-size:15px;
    font-weight:400;
}

/* Featured image on internal post pages */
.single-featured-image{
    width:100%;
    margin:0 0 15px;
    text-align:center;
    overflow:hidden;
}
.single-featured-image img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    margin:0 auto;
    object-fit:cover;
}
@media (max-width:600px){
    .single-featured-image{
        margin-bottom:12px;
    }
}

/* Post page sidebar: only Latest Jobs + Latest Results */
.post-sidebar .sidebar-box {
    margin-bottom: 20px;
}

/* Smaller colored boxes, preserving the existing colors/layout */
.sr-featured-boxes{
    gap:6px;
}
.sr-featured-box{
    min-height:92px;
    padding:6px 9px;
}
.sr-featured-box span{
    font-size:19px;
    line-height:1.08;
}
@media(max-width:900px){
    .sr-featured-box{
        min-height:88px;
    }
    .sr-featured-box span{
        font-size:18px;
    }
}
@media(max-width:500px){
    .sr-featured-box{
        min-height:72px;
    }
    .sr-featured-box span{
        font-size:17px;
    }
}

/* =========================================
   V45 COMPACT HOMEPAGE
   ========================================= */
.home-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.section-title{
    padding:9px 10px;
    font-size:18px;
    line-height:1.25;
}

.section-list{
    padding:7px 10px;
}

.section-list li{
    padding:6px 0;
}

.section-list a{
    font-size:14px;
    line-height:1.35;
    font-weight:600;
}

.view-all{
    padding:7px 10px;
    font-size:12px;
}

.view-all a{
    font-size:12px;
}

@media(max-width:900px){
    .home-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
}

@media(max-width:600px){
    .home-grid{
        grid-template-columns:1fr;
        gap:10px;
    }
}

/* Smaller manual colored boxes */
.sr-featured-boxes{
    gap:5px;
    margin-bottom:14px;
}

.sr-featured-box{
    min-height:72px;
    padding:5px 7px;
}

.sr-featured-box span{
    font-size:16px;
    line-height:1.05;
}

@media(max-width:900px){
    .sr-featured-box{
        min-height:68px;
    }
    .sr-featured-box span{
        font-size:15px;
    }
}

@media(max-width:500px){
    .sr-featured-box{
        min-height:58px;
    }
    .sr-featured-box span{
        font-size:14px;
    }
}

/* Smaller category/archive post titles and text */
.category-post{
    padding:11px 14px;
}

.category-post h2{
    font-size:17px;
    line-height:1.3;
    margin-bottom:5px;
}

.category-post-meta{
    font-size:11px;
    margin-bottom:5px;
}

.category-post p{
    font-size:13px;
    line-height:1.45;
    margin:4px 0 7px;
}

.read-more{
    font-size:12px;
}

.category-thumb{
    margin-left:10px;
}

.category-thumb img{
    width:90px;
    height:62px;
}

/* Smaller homepage body text */
.home-grid .section-box{
    border-radius:3px;
}

@media(max-width:768px){
    .category-post{
        padding:10px 12px;
    }
    .category-post h2{
        font-size:16px;
    }
    .category-post p{
        font-size:12.5px;
    }
}

/* =========================================
   V46 - EXTRA COMPACT HOMEPAGE BOXES
   ========================================= */

/* Smaller category boxes */
.home-grid{
    gap:8px;
}

.home-grid .section-box{
    margin:0;
}

.home-grid .section-title{
    padding:6px 8px;
    font-size:15px;
    line-height:1.15;
}

.home-grid .section-list{
    padding:4px 8px;
}

.home-grid .section-list li{
    padding:4px 0;
}

.home-grid .section-list a{
    font-size:12.5px;
    line-height:1.3;
}

/* Very small View All / View More button */
.home-grid .view-all{
    padding:4px 7px;
    font-size:10px;
    line-height:1.2;
}

.home-grid .view-all a{
    font-size:10px;
    padding:3px 7px;
    border-radius:2px;
}

/* If the theme uses sr-blog View All on homepage, keep it compact too */
.sr-blog-heading{
    padding:6px 9px;
}

.sr-blog-heading h2{
    font-size:17px;
}

.sr-blog-view-all{
    padding:4px 8px;
    font-size:10px;
}

/* Smaller category title/header on homepage */
.home-grid .section-title h2,
.home-grid .section-title h3{
    font-size:15px;
    margin:0;
    line-height:1.15;
}

/* Extra compact spacing */
.home-grid .section-box{
    border-radius:2px;
}

@media(max-width:900px){
    .home-grid{
        gap:7px;
    }
    .home-grid .section-title{
        font-size:14px;
    }
}

@media(max-width:600px){
    .home-grid .section-title{
        font-size:14px;
    }
    .home-grid .section-list a{
        font-size:12px;
    }
}

/* =========================================
   V47 - BLOG + SIDEBAR CLEANUP
   ========================================= */

/* Smaller category page heading, including Blog */
.category-header{
    padding:10px 14px;
}

.category-header h1{
    font-size:22px;
    line-height:1.2;
}

.sr-category-description{
    margin:4px 0 0;
    font-size:12px;
    line-height:1.3;
}

/* Smaller Blog category post links */
.sr-category-archive .category-bullet-list{
    margin:0;
    padding-left:30px;
}

.sr-category-archive .category-link-item{
    padding:6px 4px;
}

.sr-category-archive .category-anchor{
    font-size:16px;
    line-height:1.3;
    font-weight:600;
}

/* Compact sidebar: only Latest Jobs, Latest Results and News */
.sidebar-box{
    margin-bottom:12px;
}

.sidebar-box h3{
    padding:7px 9px;
    font-size:16px;
}

.sidebar-box ul{
    padding:6px 10px;
}

.sidebar-box li{
    padding:5px 0;
}

.sidebar-box li a{
    font-size:13px;
    line-height:1.3;
}

.sidebar-view-all{
    padding:5px 8px;
}

.sidebar-view-all a{
    font-size:11px;
}

/* Hide any accidentally rendered legacy sidebar boxes */
.sidebar-box.sr-admit-card,
.sidebar-box.sr-answer-key{
    display:none !important;
}

@media(max-width:768px){
    .category-header h1{
        font-size:20px;
    }
    .sr-category-archive .category-anchor{
        font-size:15px;
    }
}

/* =========================================
   V48 - SMALLER BLOG TEXT + VIEW MORE
   ========================================= */

/* Blog category post links - smaller */
.sr-category-archive .category-link-item{
    padding:5px 4px;
}

.sr-category-archive .category-anchor{
    font-size:14px;
    line-height:1.25;
    font-weight:600;
}

/* Homepage View More - smaller and compact */
.home-grid .view-all{
    padding:3px 6px;
    line-height:1.1;
}

.home-grid .view-all a{
    display:inline-block;
    font-size:9px;
    line-height:1.1;
    padding:3px 6px;
    border-radius:2px;
}

/* Keep homepage category post text compact */
.home-grid .section-list{
    padding:3px 7px;
}

.home-grid .section-list li{
    padding:3px 0;
}

.home-grid .section-list a{
    font-size:12px;
    line-height:1.25;
}

@media(max-width:768px){
    .sr-category-archive .category-anchor{
        font-size:13px;
    }
    .home-grid .section-list a{
        font-size:11.5px;
    }
}

/* =========================================
   V49 - SMALLER VIEW MORE + HOME TITLES
   ========================================= */

/* Small View More button/box */
.home-grid .view-all{
    padding:2px 5px !important;
    line-height:1 !important;
    text-align:right;
}

.home-grid .view-all a{
    display:inline-block !important;
    width:auto !important;
    min-width:0 !important;
    padding:2px 6px !important;
    margin:0 !important;
    font-size:9px !important;
    line-height:1.1 !important;
    border-radius:2px !important;
    white-space:nowrap;
}

/* Slightly larger post titles on homepage */
.home-grid .section-list a{
    font-size:13.5px;
    line-height:1.3;
    font-weight:600;
}

.home-grid .section-list li{
    padding:4px 0;
}

@media(max-width:768px){
    .home-grid .section-list a{
        font-size:13px;
    }
    .home-grid .view-all a{
        font-size:8.5px !important;
        padding:2px 5px !important;
    }
}

/* =========================================
   V50 - SMALLER VIEW MORE BOX + LARGER HOME TITLES
   ========================================= */

/* Make only the button box smaller; keep the text readable */
.home-grid .view-all{
    padding:2px 4px !important;
    line-height:1 !important;
    min-height:0 !important;
    height:auto !important;
}

.home-grid .view-all a{
    display:inline-block !important;
    width:auto !important;
    min-width:0 !important;
    max-width:max-content !important;
    padding:2px 5px !important;
    margin:0 !important;
    font-size:11px !important;
    line-height:1.15 !important;
    border-radius:2px !important;
    white-space:nowrap;
}

/* Larger homepage category/post titles */
.home-grid .section-list a{
    font-size:15px !important;
    line-height:1.35 !important;
    font-weight:600;
}

.home-grid .section-list li{
    padding:5px 0;
}

/* Category heading/title on homepage */
.home-grid .section-title{
    padding:7px 9px;
    font-size:18px !important;
    line-height:1.2;
}

.home-grid .section-title h2,
.home-grid .section-title h3{
    font-size:18px !important;
    line-height:1.2;
    margin:0;
}

@media(max-width:768px){
    .home-grid .section-list a{
        font-size:14px !important;
    }
    .home-grid .section-title,
    .home-grid .section-title h2,
    .home-grid .section-title h3{
        font-size:17px !important;
    }
}

/* V51 - Oval View More button */
.home-grid .view-all a{
    border-radius:999px !important;
    padding:3px 10px !important;
    line-height:1.15 !important;
}

/* V52 - Slightly smaller homepage post titles */
.home-grid .section-list a{
    font-size:14px !important;
    line-height:1.3 !important;
}

/* V53 - View More button balanced to text size */
.home-grid .view-all{
    padding:4px 6px !important;
    line-height:1 !important;
}

.home-grid .view-all a{
    padding:6px 14px !important;
    font-size:12px !important;
    line-height:1.15 !important;
    min-width:0 !important;
    border-radius:999px !important;
    font-weight:600 !important;
}

/* V54 - Larger homepage post titles + centered View More */
.home-grid .section-list a{
    font-size:18px !important;
    line-height:1.35 !important;
}

.home-grid .view-all{
    text-align:center !important;
}

.home-grid .view-all a{
    font-size:14px !important;
    line-height:1.2 !important;
    padding:7px 16px !important;
    display:inline-block !important;
    border-radius:999px !important;
}

/* V55 - Homepage category title 18px, small post titles, View More right */
.home-grid .section-title,
.home-grid .section-title h2,
.home-grid .section-title h3{
    font-size:18px !important;
    line-height:1.2 !important;
}

.home-grid .section-list a{
    font-size:14px !important;
    line-height:1.3 !important;
}

.home-grid .view-all{
    text-align:right !important;
}

.home-grid .view-all a{
    font-size:14px !important;
    line-height:1.2 !important;
    padding:7px 16px !important;
    display:inline-block !important;
    border-radius:999px !important;
}

/* V56 - Improve colored box text visibility */
.sr-featured-box{
    padding:7px 10px !important;
}

.sr-featured-box span{
    font-size:18px !important;
    line-height:1.18 !important;
    font-weight:700 !important;
    letter-spacing:.1px;
    text-shadow:0 1px 1px rgba(0,0,0,.18);
}

@media(max-width:900px){
    .sr-featured-box span{
        font-size:17px !important;
    }
}

@media(max-width:500px){
    .sr-featured-box span{
        font-size:16px !important;
    }
}

/* =========================================
   V57 - GLOBAL TEXT VISIBILITY
   ========================================= */

/* Improve readability across the whole website */
body{
    color:#222 !important;
    font-weight:400;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

p,
.entry-content p,
.post-content p,
.page-content p,
.category-post p{
    color:#222 !important;
    font-size:15px !important;
    line-height:1.65 !important;
}

/* All normal post/category links */
a{
    text-rendering:optimizeLegibility;
}

.home-grid .section-list a{
    font-size:14px !important;
    line-height:1.4 !important;
    font-weight:600 !important;
}

.sr-category-archive .category-anchor{
    font-size:15px !important;
    line-height:1.4 !important;
    font-weight:600 !important;
}

/* Internal post content */
.single-post .entry-content,
.single-post .post-content{
    color:#222 !important;
    font-size:15px !important;
    line-height:1.7 !important;
}

.single-post .entry-content p,
.single-post .post-content p{
    font-size:15px !important;
    line-height:1.7 !important;
    margin-bottom:12px;
}

.single-post .entry-content li,
.single-post .post-content li{
    font-size:15px !important;
    line-height:1.6 !important;
}

/* Post title remains clear but not oversized */
.single-post .post-title,
.single-post h1{
    line-height:1.3;
}

/* Meta/date text */
.post-meta,
.category-post-meta,
.sr-blog-date{
    font-size:12px !important;
    line-height:1.4 !important;
}

/* Sidebar text */
.sidebar-box li a,
.post-sidebar .sidebar-box li a{
    font-size:14px !important;
    line-height:1.45 !important;
    font-weight:500 !important;
}

.sidebar-box li,
.post-sidebar .sidebar-box li{
    line-height:1.45 !important;
}

/* Breadcrumb */
.breadcrumb,
.breadcrumb a{
    font-size:14px !important;
    line-height:1.4 !important;
}

/* Buttons */
.view-all a,
.home-grid .view-all a,
.read-more,
.sidebar-view-all a{
    font-weight:600 !important;
    text-rendering:optimizeLegibility;
}

/* Colored boxes: clear, balanced text */
.sr-featured-box span{
    font-size:18px !important;
    line-height:1.2 !important;
    font-weight:700 !important;
    text-shadow:0 1px 1px rgba(0,0,0,.2);
}

/* Navigation readability */
nav a,
.main-navigation a{
    font-weight:500;
    text-rendering:optimizeLegibility;
}

@media(max-width:768px){
    p,
    .entry-content p,
    .post-content p,
    .page-content p{
        font-size:14px !important;
        line-height:1.6 !important;
    }

    .single-post .entry-content,
    .single-post .post-content,
    .single-post .entry-content p,
    .single-post .post-content p{
        font-size:14px !important;
        line-height:1.65 !important;
    }

    .home-grid .section-list a{
        font-size:13.5px !important;
    }

    .sr-category-archive .category-anchor{
        font-size:14px !important;
    }

    .sidebar-box li a,
    .post-sidebar .sidebar-box li a{
        font-size:13px !important;
    }
}

/* =========================================
   V58 - POST CMS ENTRY PANEL
   ========================================= */
.sr-cms-editor{
    max-width:100%;
    padding:4px 0;
}
.sr-cms-notice{
    margin:0 0 18px;
    padding:12px 14px;
    border-left:4px solid #8b0000;
    background:#f7f7f7;
}
.sr-cms-notice p{
    margin:5px 0 0;
    color:#555;
    font-size:13px;
}
.sr-cms-field{
    margin:0 0 14px;
    padding:12px 14px;
    border:1px solid #ddd;
    background:#fff;
}
.sr-cms-field label{
    display:block;
    margin-bottom:4px;
    color:#222;
    font-size:15px;
}
.sr-cms-help{
    display:block;
    margin-bottom:7px;
    color:#666;
    font-size:12px;
}
.sr-cms-field textarea{
    display:block;
    width:100%;
    min-height:82px;
    padding:9px 10px;
    border:1px solid #bbb;
    border-radius:3px;
    background:#fff;
    font-size:14px;
    line-height:1.5;
    resize:vertical;
}
.sr-cms-field textarea:focus{
    border-color:#8b0000;
    outline:1px solid #8b0000;
}
.sr-cms-example{
    padding:11px 14px;
    background:#fff8e5;
    border:1px solid #ead9a2;
    color:#444;
    font-size:12px;
    line-height:1.6;
}

/* Automatic internal-page tables */
.internal-section{
    margin:0 0 20px;
}
.internal-section h2{
    margin:0;
    padding:9px 12px;
    background:#8b0000;
    color:#fff;
    font-size:19px;
    line-height:1.3;
}
.section-table{
    border:1px solid #ddd;
    border-top:0;
}
.info-row{
    display:grid;
    grid-template-columns:42% 58%;
    border-bottom:1px solid #ddd;
}
.info-row:last-child{
    border-bottom:0;
}
.info-row strong,
.info-row span{
    padding:8px 10px;
    font-size:14px;
    line-height:1.45;
}
.info-row strong{
    background:#f5f5f5;
}
.internal-list{
    margin:0;
    padding:10px 10px 10px 28px;
    border:1px solid #ddd;
    border-top:0;
}
.internal-list li{
    padding:4px 0;
    font-size:14px;
    line-height:1.55;
}
.important-links{
    border:1px solid #ddd;
    border-top:0;
}
.important-link-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 10px;
    border-bottom:1px solid #ddd;
}
.important-link-row:last-child{
    border-bottom:0;
}
.important-link-row span{
    font-size:14px;
}
.important-link-row a{
    display:inline-block;
    padding:5px 10px;
    background:#8b0000;
    color:#fff !important;
    border-radius:3px;
    text-decoration:none !important;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}
.important-link-row a:hover{
    background:#000;
}
.short-info-box .section-text{
    padding:10px 12px;
    border:1px solid #ddd;
    border-top:0;
    font-size:15px;
    line-height:1.65;
}
.faq-item{
    border:1px solid #ddd;
    border-top:0;
    padding:9px 11px;
}
.faq-item summary{
    cursor:pointer;
    font-weight:700;
    color:#0033cc;
}
.faq-item div{
    padding-top:7px;
    line-height:1.6;
}
@media(max-width:600px){
    .info-row{
        grid-template-columns:1fr;
    }
    .info-row strong{
        border-bottom:1px solid #ddd;
    }
    .important-link-row{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* =========================================
   V59 - FOOTER CATEGORY LINKS + COPYRIGHT
   ========================================= */
.site-footer{
    background:#000;
    color:#fff;
    margin-top:30px;
    padding:22px 20px 18px;
    text-align:center;
}

.footer-inner{
    width:95%;
    max-width:1200px;
    margin:0 auto;
}

.footer-categories{
    padding-bottom:16px;
    border-bottom:1px solid #333;
}

.footer-categories h3{
    margin:0 0 12px;
    color:#fff;
    font-size:18px;
    font-weight:700;
}

.footer-category-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:0;
}

.footer-category-links a{
    display:inline-block;
    color:#fff !important;
    text-decoration:none !important;
    font-size:14px;
    line-height:1.4;
    padding:2px 12px;
    border-right:1px solid #555;
}

.footer-category-links a:last-child{
    border-right:0;
}

.footer-category-links a:hover{
    color:#ffb3b3 !important;
    text-decoration:underline !important;
}

.footer-copyright{
    padding-top:14px;
}

.footer-copyright p{
    margin:0;
    color:#ddd;
    font-size:13px;
    line-height:1.5;
}

@media(max-width:600px){
    .site-footer{
        padding:18px 12px 15px;
    }

    .footer-category-links a{
        font-size:13px;
        padding:3px 8px;
    }

    .footer-copyright p{
        font-size:12px;
    }
}

/* V60 - White header site text */
.header-text,
.header-text h1,
.header-text p,
.header-text a{
    color:#fff !important;
}

.header-text h1{
    text-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* V61 - FORCE FOOTER COPYRIGHT TEXT WHITE */
.site-footer .footer-copyright,
.site-footer .footer-copyright p,
.site-footer .footer-copyright-text{
    color:#fff !important;
    background:transparent !important;
    -webkit-text-fill-color:#fff !important;
    opacity:1 !important;
}

.site-footer .footer-copyright-text{
    display:block;
    margin:0;
    font-size:13px;
    line-height:1.5;
    font-weight:400;
}
