/*
Theme Name:  Moris at Work
Theme URI:   https://www.jobs.mu/advice/
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;
}

/* ── 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;
}

/* ── Single post: show full featured image without height clipping ────────────*/
.blog-post.single-post .utf-blog-post-thumbnail {
    height: auto !important;
}
.blog-post.single-post .utf-blog-post-thumbnail-inner {
    height: auto !important;
}
.blog-post.single-post .utf-blog-post-thumbnail-inner img {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    object-fit: unset !important;
}

/* ── Post content typography ─────────────────────────────────────────────────*/
.post-body h2 {
    font-size: 22px !important;
    font-weight: 700;
    color: #333;
    margin: 35px 0 12px 0;
    line-height: 1.3;
}
.post-body h3 {
    font-size: 18px !important;
    font-weight: 600;
    color: #444;
    margin: 25px 0 10px 0;
}
.post-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}
.post-body ul, .post-body ol {
    margin: 10px 0 18px 20px;
    padding-left: 10px;
}
.post-body ul li, .post-body ol li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 6px;
}
.post-body strong { color: #333; }
.post-body em { color: #666; }
.post-body hr { display: none; }

/* ── Related posts carousel — exact template CSS ─────────────────────────────*/
.utf-blog-carousel-block-related {
    width: calc(100% + 0px);
}
.utf-blog-carousel-block-related .utf-blog-item-container-part {
    margin: 15px;
    display: inline-block;
    width: 30%;
    text-decoration: none;
}
.utf-blog-carousel-block-related.slick-initialized .utf-blog-item-container-part {
    width: auto;
}
.utf-blog-compact-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 460px;
    display: block;
}
.utf-blog-compact-item img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.utf-blog-compact-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: #fff;
    text-align: center;
}
.utf-blog-compact-item-content h3 {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
}
.utf-blog-post-tags {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.utf-blog-post-tags li {
    background: #ff8a00;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.utf-blog-compact-item-content p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Slick arrow buttons — orange circles */
.utf-blog-carousel-block-related .slick-prev,
.utf-blog-carousel-block-related .slick-next {
    width: 48px;
    height: 48px;
    background: #ff8a00 !important;
    border-radius: 50%;
    z-index: 10;
    opacity: 1;
}
.utf-blog-carousel-block-related .slick-prev {
    left: -15px;
}
.utf-blog-carousel-block-related .slick-next {
    right: -15px;
}
.utf-blog-carousel-block-related .slick-prev:before,
.utf-blog-carousel-block-related .slick-next:before {
    color: #fff;
    font-size: 20px;
    opacity: 1;
}
.utf-blog-carousel-block-related .slick-prev:hover,
.utf-blog-carousel-block-related .slick-next:hover {
    background: #e07a00 !important;
}
