/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: GeneratePress child theme for naukri.silentnews.org (job portal). Holds custom CSS for category CTA boxes and data tables.
Author: naukri.silentnews.org
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* ---------------------------------------------------------------
   TYPOGRAPHY — exact match to reference (edutueii.in) GP settings
   Body + headings use the system-ui stack; headings are capitalized,
   18px base with .02em letter-spacing, 10px bottom margin; site title
   24px; responsive sizes at 1024px / 768px.
   --------------------------------------------------------------- */
body,
button,
input,
select,
textarea {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: bold;
    text-transform: capitalize;
    font-style: normal;
    font-size: 18px;
    letter-spacing: .02em;
    margin-bottom: 10px;
}
.main-title {
    font-size: 24px;
}
@media (max-width: 1024px) {
    h1, h2, h3, h4, h5, h6 { font-size: 32px; }
}
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6 { font-size: 20px; }
    h1 { font-size: 22px; }
    .main-title { font-size: 24px; }
}

/* ---------------------------------------------------------------
   Category-wise Jobs highlight box (injected via GP Hook Element)
   --------------------------------------------------------------- */
.job-highlight-box {
    max-width: 750px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 16px;
    background: #fff8e1;
    border: 2px solid #ffc107;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.box-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #d35400;
    text-align: center;
    position: relative;
}
.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.category-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid #2b6cb0;
    background: #f5f5f5;
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}
.category-card:hover {
    background: #eaf2fb;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.category-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-left .icon {
    font-size: 26px;
    line-height: 1;
}
.category-info {
    display: flex;
    flex-direction: column;
}
.category-name {
    font-size: 18px;
    font-weight: 600;
}
.job-count {
    font-size: 13px;
    color: #666;
}
.view-btn {
    background: #2b6cb0;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .category-card { padding: 12px 14px; }
    .category-name { font-size: 16px; }
    .view-btn { padding: 8px 12px; font-size: 13px; }
}

/* ---------------------------------------------------------------
   Data tables inside job posts (core table blocks)
   --------------------------------------------------------------- */
.entry-content .wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
    border: 1px solid #d0d7de;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.entry-content .wp-block-table thead th {
    background: #2b6cb0;
    color: #fff;
}
.entry-content .wp-block-table tbody tr:nth-child(even) {
    background: #f5f8fc;
}

/* ---------------------------------------------------------------
   "Latest Jobs 2026" box (GP Hook Element on home/archive/search)
   --------------------------------------------------------------- */
.jobs-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}
.jobs-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #222;
}
.jobs-title span { color: #ff0057; }
.job-btn-latest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #003366, #00509e);
    color: #fff;
    padding: 14px 16px;
    margin: 10px 0;
    border-radius: 40px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.job-btn-latest:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.job-left { display: flex; align-items: center; gap: 10px; }
.badge {
    background: #fff;
    color: #ff0057;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}
.arrow { font-size: 18px; font-weight: bold; }

/* ---------------------------------------------------------------
   "Today's Popular Jobs" box (GP Hook Element on single posts)
   --------------------------------------------------------------- */
.job-special-box {
    border: 3px solid #e53935;
    background: #fff5f5;
    padding: 20px;
    border-radius: 14px;
    margin: 25px 0;
}
.job-special-title {
    font-size: 24px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 15px;
}
.job-btn {
    display: block;
    background: #ffffff;
    color: #000080;
    padding: 14px 16px;
    margin: 10px 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.job-btn:hover { background: #ffb300; }
.new-badge {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 6px;
    animation: blinkNew 1s infinite;
}
@keyframes blinkNew { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Title underline + arrow variants used by the highlight box */
.box-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ffc107;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ---------------------------------------------------------------
   HOVER-STATE FIX
   The reference site has a contrast bug: GeneratePress's global
   `a:hover{color:var(--contrast)}` (#222) overrides the white/navy
   link text inside the dark job boxes, producing dark-text-on-dark-bg
   on hover. We restore readable text colours on hover/focus/active.
   --------------------------------------------------------------- */
.job-btn-latest,
.job-btn-latest:hover,
.job-btn-latest:focus,
.job-btn-latest:active {
    color: #ffffff !important;
    text-decoration: none !important;
}
.job-btn-latest .badge,
.job-btn-latest:hover .badge {
    color: #ff0057 !important;
}

.job-btn,
.job-btn:hover,
.job-btn:focus,
.job-btn:active {
    color: #000080 !important;        /* navy text stays readable on white / amber hover */
    text-decoration: none !important;
}

.category-card,
.category-card:hover,
.category-card:focus,
.category-card:active {
    color: #222222 !important;        /* light hover bg -> dark text stays readable */
    text-decoration: none !important;
}
.category-card .view-btn,
.category-card:hover .view-btn {
    color: #ffffff !important;        /* blue button keeps white label on hover */
}
.category-card .category-name,
.category-card:hover .category-name {
    color: inherit;                   /* preserve each box's intended name colour */
}
/* State-wise box uses dark-red names; keep them on hover */
.job-highlight-box .category-card .category-name {
    color: #8b0000;
}
.job-highlight-box .category-card:not([href*="category/"]) .category-name { color: #8b0000; }

/* ---------------------------------------------------------------
   Footer disclaimer (injected via GP Hook Element)
   --------------------------------------------------------------- */
.site-disclaimer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}
