/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* ===============================
   TOP BAR
================================ */
.top-bar {
    background: #0b3c5d;
    color: #fff;
    font-size: 13px;
}
.top-bar-inner {
    max-width: 1200px;
    margin: auto;
    padding: 6px 15px;
    text-align: center;
}

/* ===============================
   HEADER (FIXED)
================================ */
.site-header {
    background: linear-gradient(135deg, #b31217, #e52d27);
    position: relative;   /* ðŸ”¥ not sticky anymore */
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}


.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.logo p,
.logo span {
    margin: 0;
    font-size: 13px;
    color: #ffecec;
}
.logo a {
    color: #fff;
    text-decoration: none;
}

/* ===============================
   MENU (GENERATEPRESS RESET)
================================ */
.main-nav {
    position: relative;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

.main-nav ul li {
    margin-left: 20px;
    float: none !important;
}

.main-nav ul li a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background: rgba(255,255,255,0.25);
}

/* MOBILE TOGGLE */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* ===============================
   MOBILE MENU
================================ */
/* ===============================
   MOBILE MENU â€“ FIXED & CLEAN
================================ */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* NAV CONTAINER */
    .main-nav {
        width: 100%;
    }

    /* MENU */
    .main-nav ul {
        display: none !important;
        flex-direction: column;
        position: relative;     /* ðŸ”¥ NOT absolute */
        width: 100%;
        background: #b31217;
        margin-top: 10px;
        border-radius: 6px;
        overflow: hidden;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
    }

    .main-nav ul li a {
        width: 100%;
        padding: 14px 16px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    /* SHOW MENU */
    .site-header.active .main-nav ul {
        display: flex !important;
    }

    /* HEADER STACK */
    .header-inner {
        flex-wrap: wrap;
    }
}


/* ===============================
   HOME CONTAINER
================================ */
.home-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ===============================
   QUICK LINKS
================================ */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.q {
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}
.red{background:#c62828;}
.blue{background:#1565c0;}
.green{background:#2e7d32;}
.purple{background:#6a1b9a;}

/* ===============================
   BOXES
================================ */
.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 15px;
}
.job-box {
    border: 1px solid #ccc;
}
.job-box h2 {
    background: #c00;
    color: #fff;
    padding: 8px;
    text-align: center;
    margin: 0;
}
.job-box ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}
.job-box li {
    border-bottom: 1px dotted #999;
    padding: 6px 0;
}
.job-box a {
    text-decoration: none;
    color: #000;
}
.job-box a:hover {
    color: #c00;
}

/* ===============================
   FOOTER (UNCHANGED)
================================ */
footer.site-footer {
    display: block !important;
}

.site-footer {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
}

.site-footer h4::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #ffcc00;
    display: block;
    margin-top: 6px;
    border-radius: 2px;
}

.site-footer p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 8px;
}

.site-footer ul li a {
    color: #e0e0e0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer ul li a:hover {
    color: #ffcc00;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #ccc;
}

@media(max-width: 768px) {
    .site-footer {
        text-align: center;
    }
    .site-footer h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===============================
   POST & PAGE TITLE DESIGN
================================ */

/* Main Title */
.entry-title,
.page-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    position: relative;
}

/* Red Accent Line */
.entry-title::after,
.page-title::after {
    content: "";
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #b31217, #e52d27);
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}

/* Title Container Spacing */
.entry-header {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-left: 6px solid #b31217;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Breadcrumb / Meta (optional) */
.entry-meta {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {

    .entry-title,
    .page-title {
        font-size: 26px;
    }

    .entry-header {
        padding: 15px;
    }
}
/* ===============================
   LAST UPDATED â€“ BEAUTIFUL STYLE
================================ */
.govt-last-updated {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    display: inline-block;
    background: #f9f9f9;
    padding: 6px 12px;
    border-left: 4px solid #b31217;
    border-radius: 3px;
}

.govt-last-updated span {
    color: #b31217;
}

/* Mobile */
@media (max-width: 768px) {
    .govt-last-updated {
        font-size: 13px;
        padding: 5px 10px;
    }
}
/* ===============================
   HIDE AUTHOR & POSTED DATE
================================ */
.entry-meta .byline,
.entry-meta .author,
.entry-meta .posted-on {
    display: none !important;
}

/* Job Row Layout */
.job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
}

.job-row:last-child {
    border-bottom: none;
}

/* Common Badge Style */
.job-row span {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Days Left – Green Gradient */
.sr-days-left {
    background: linear-gradient(135deg, #00c853, #64dd17);
    color: #fff;
}

/* Last Day – Pulsing Orange */
.sr-today {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    animation: pulse 1.5s infinite;
}

/* Expired – Greyed */
.sr-expired {
    background: linear-gradient(135deg, #9e9e9e, #616161);
    color: #fff;
    opacity: 0.8;
}

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,152,0,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255,152,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,152,0,0); }
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .job-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-row span {
        margin-top: 4px;
    }
}
/* ======================================
   MAIN NAV FLEX FIX
====================================== */
.main-nav {
    display: flex;
    align-items: center;
}

/* ======================================
   TOOLS BUTTON (HIGHLIGHTED)
====================================== */
.tools-menu {
    position: relative;
    margin-left: 16px;
}

.tools-btn {
    background: linear-gradient(135deg, #ffcc00, #ffb300);
    border: none;
    color: #3b2f00;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.tools-btn:hover {
    background: linear-gradient(135deg, #ffd633, #ffb300);
}

/* ======================================
   DROPDOWN
====================================== */
.tools-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #ffffff;
    min-width: 260px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
}

.tools-dropdown a {
    display: block;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.tools-dropdown a:hover {
    background: #f7f7f7;
    color: #b31217;
}

/* ======================================
   DESKTOP HOVER
====================================== */
@media (min-width: 769px) {
    .tools-menu:hover .tools-dropdown {
        display: block;
    }
}

/* ======================================
   MOBILE – CLEAN & FULL WIDTH
====================================== */
@media (max-width: 768px) {

    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tools-menu {
        width: 100%;
        margin: 10px 0 0;
    }

    .tools-btn {
        width: 100%;
        justify-content: center;
    }

    .tools-dropdown {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        box-shadow: none;
        border-radius: 0;
    }
}


