/*
Theme Name:  Moris at Work
Theme URI:   https://www.jobs.mu/moris-at-work/
Description: Moris at Work — jobs.mu's career blog for employers and job seekers in Mauritius.
Version:     1.1
Author:      Jobs.mu
Text Domain: moris-at-work
*/

/* ── Blog post link — remove browser default underline/color on hover ──────── */
a.blog-post,
a.blog-post:hover,
a.blog-post:focus,
a.blog-post:active {
    text-decoration: none !important;
    color: inherit !important;
}
a.blog-post h3,
a.blog-post h3:hover {
    text-decoration: none;
}
a.blog-post p,
a.blog-post span {
    text-decoration: none;
}

/* ── WordPress category list — add chevron icon to match template ──────────── */
#sidebar .utf-sidebar-categorie ul li a::before,
.utf-sidebar-categorie ul li a::before {
    font-family: "material-icons";
    content: "\e904";
    margin-right: 5px;
}

/* ── Comments — only what live jobs.mu CSS doesn't have ──────────────────────*/
/* WordPress generates class="comment-reply-link" not class="reply" — bridge that gap */
.utf-comment-by a.comment-reply-link {
    display: inline !important;
    background-color: #ff8a00 !important;
    padding: 5px 16px !important;
    line-height: 22px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}
.utf-comment-by a.comment-reply-link:hover {
    background-color: #424242 !important;
    color: #fff !important;
}
/* Avatar circle — live jobs.mu CSS may be missing border-radius */
.comments .avatar img {
    max-width: 70px !important;
    max-height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* ── Related posts carousel — match template ─────────────────────────────────*/
.utf-blog-carousel-block-related {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
    margin-bottom: 30px;
}
.utf-blog-item-container-part {
    flex: 0 0 calc(33.333% - 14px);
    text-decoration: none !important;
    color: inherit !important;
}
.utf-blog-item-container-part:hover { text-decoration: none !important; }
@media (max-width: 900px) {
    .utf-blog-item-container-part { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
    .utf-blog-item-container-part { flex: 0 0 100%; }
}
.utf-blog-compact-item { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.utf-blog-compact-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.utf-blog-compact-item-content { padding: 14px; }
.utf-blog-compact-item-content h3 { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.4; }
.utf-blog-compact-item:hover h3 { color: #ff8a00; }
.utf-blog-post-tags { list-style: none; padding: 0; display: flex; gap: 12px; font-size: 12px; color: #aaa; margin-bottom: 8px; }
.utf-blog-compact-item-content p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }


/* ── Sign-in modal tabs — exact template CSS ─────────────────────────────────*/
/* Tab content: hide all, show only active */
.utf-popup-tab-content-item { display: none; }
.utf-popup-tab-content-item.active {
    display: inline-block;
    padding: 30px 25px;
    position: static;
    z-index: 10;
    width: 100%;
}

/* Tab nav container */
.utf-popup-tabs-nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    height: 62px;
    background: #ff8a00;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

/* Each tab takes 50% */
.utf-signin-form-part ul.utf-popup-tabs-nav-item li {
    width: 50%;
    text-align: center;
}
.utf-signin-form-part ul.utf-popup-tabs-nav-item li a {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}
.utf-popup-tabs-nav-item li {
    float: left;
    line-height: 62px;
    height: 62px;
    padding: 0;
    margin-right: 0;
    position: relative;
}
.utf-popup-tabs-nav-item li:first-child a {
    border-radius: 4px 0 0 0;
}

/* Tab link */
.utf-popup-tabs-nav-item li a {
    border: none;
    color: #ffffff;
    display: inline-block;
    outline: none;
    text-decoration: none;
    font-size: 16px;
    z-index: 10;
    position: relative;
    height: 100%;
    padding: 0 30px;
    transition: all 0.3s, font-weight 0s;
}
.utf-popup-tabs-nav-item li a:hover { color: #fff; }

/* Active tab: white bg, dark text, orange underline */
.utf-popup-tabs-nav-item li.active {
    background-color: #fff;
    border-bottom: 2px solid #ff8a00;
}
.utf-popup-tabs-nav-item li.active a {
    color: #66676b;
    font-weight: 600;
}
.utf-popup-tabs-nav-item li.active a:hover {
    background-color: #fff;
}
.utf-popup-tabs-nav-item li:first-child.active {
    border-left: none;
    border-radius: 4px 0 0 0;
}

/* ── All tag pills: grey default, orange on hover ────────────────────────────*/
a.blog-post-info:hover,
a.blog-post-date:hover,
a.blog-item-tag:hover {
    background-color: #ff8a00 !important;
    color: #fff !important;
}
