/*
Theme Name: WebTrain Free Market (Child)
Theme URI:  https://webtrain.nz/
Author:     WebTrain
Author URI: https://webtrain.nz/
Description: WebTrain Free Market (Child) is a fast, modern, and highly customizable WordPress child theme of the powerful WebTrain Free Market parent theme—perfect for news, magazine, and blog websites. Built with performance and user experience in mind, it features responsive design, SEO optimization, and fast loading speeds. With over 30 custom widgets, dynamic block patterns, and flexible layout options, WebTrain Free Market (Child) offers an easy-to-use platform for content creators. Fully compatible with both Gutenberg and Elementor, it allows for seamless drag-and-drop editing and code-free design. The theme includes light/dark mode, multilingual and RTL support, and demo content in popular languages like English, Chinese, Spanish, French, Japanese, and Arabic. It also integrates smoothly with WooCommerce, making it easy to launch an online store. Whether you're running a news portal, editorial site, or a personal blog, WebTrain Free Market (Child) delivers a professional and engaging online presence. Discover the possibilities with WebTrain Free Market (Child) at https://webtrain.nz/.
Template: morenews
Version: 10.0.1
Requires at least: 4.0
Requires PHP: 5.3
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webtrain-free-market-child
Tags: news, blog, entertainment, one-column, two-columns, three-columns, four-columns, grid-layout, block-patterns, block-styles, left-sidebar, right-sidebar, custom-header, flexible-header, custom-background, custom-logo, custom-menu, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, footer-widgets, translation-ready, theme-options, threaded-comments, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

WebTrain Free Market (Child) WordPress Theme, Copyright 2025 WebTrain
WebTrain Free Market (Child) is distributed under the terms of the GNU GPL v2 or later.
*/

div#main-navigation-bar {
    background: #002868;
}

.exclusive-posts .exclusive-now {
    background-color: #BF0A30;
}

.main-navigation .menu-description {
    background-color: #BF0A30;
}

.main-navigation .menu-description:after {
    border-top: 5px solid #BF0A30;
}

div.custom-menu-link>a {
    background: #BF0A30;
}

.af-cat-widget-carousel a.morenews-categories.category-color-1 {
    background-color: #BF0A30;

}

a.morenews-categories.category-color-1 {
    color: #BF0A30;
}

.af-cat-widget-carousel a.morenews-categories.category-color-2 {
    background-color: #002868;

}

a.morenews-categories.category-color-2 {
    color: #002868;
}

p {
    margin-bottom: 30px;
}



.entry-content,
.entry-header .post-excerpt {
    font-size: 18px;
}

body.single-post .entry-title,
h1.page-title {
    font-size: 34px;
}

ul.wp-block-list,
ol.wp-block-list {
    margin-bottom: 20px;
}

body,
button,
input,
select,
optgroup,
textarea {
    line-height: 1.7;
}

input {
    vertical-align: middle;
}

textarea {
    width: 100%;
}

body .reply a,
div#respond input[type="submit"],
.btn-style1 a:visited,
.btn-style1 a,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 5px 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.cat-links li a {
    font-size: 12px;
    letter-spacing: normal;
    line-height: 1;
}

.af-cat-widget-carousel a.morenews-categories {
    padding: 5px 10px;

}

blockquote {
    font-size: 1.4rem;
}

ul.trail-items li a {
    font-size: 16px;
    opacity: 1;
}

.entry-header .entry-meta {
    font-size: 16px;
}

.entry-header .post-excerpt {
    font-size: 1.4rem;
}

a.comment-reply-link {
    font-size: 12px;
    padding: 5px 10px;
    transition: all 300ms ease-out;
    text-transform: uppercase;
    font-weight: 700;
}

a.comment-reply-link,
a.comment-reply-link:visited,
a.comment-reply-link:hover,
a.comment-reply-link:focus {
    color: #ffffff;
}

.wp-calendar-table tbody,
#wp-calendar tbody {
    color: #404040;
}

.aft-dark-mode .wp-block-table :where(figcaption),
.aft-dark-mode .wp-block-calendar table:where(:not(.has-text-color)),
.aft-dark-mode .wp-calendar-table tbody,
.aft-dark-mode #wp-calendar tbody {
    color: #ffffff;
}

.gallery-caption {
    position: static;
}

figcaption a {
    text-decoration: underline;
}

.morenews-pagination .nav-links .page-numbers.dots {
    border-width: 0;
}

body.page div.comments-area {
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.entry-content>[class^="wp-block-"] {
    margin-bottom: 30px;
}


.wp-block-code code,
.wp-block-code .editor-plain-text,
body.aft-dark-mode #sidr,
body.aft-dark-mode code,
body.aft-dark-mode {
    background-color: #1a1a1a;
}

.morenews-widget .wp-block-group .wp-block-heading {
    font-size: 16px;
}

ul.wp-block-categories-list.wp-block-categories li a,
ul.wp-block-archives-list.wp-block-archives li a {
    font-weight: 700;
    transition: all 0.075s linear;
    border-width: 0;
}

.mailchimp-block .block-title,
.morenews_posts_slider_widget .read-single .read-details .read-title h3,
article.latest-posts-full .read-title h3,
.af-banner-carousel .read-title h3 {
    font-size: 34px;
}

.wp-post-author .wp-post-author-meta-bio {
    opacity: 1;
}

.wp-post-author .awpa-display-name {
    font-weight: 700;
}

.awpa-review-field .right-star .awpa-rating-button {
    border-radius: 50px;
    text-transform: none;
    font-weight: 400;
    line-height: normal;
}

a.awpa-more-posts:hover {
    border-bottom: 1px solid !important;
}

.single h3.awpa-title,
.single .awpa-review-field h3 {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

body .entry-content>ul a.wp-block-pages-list__item__link {
    border: none;
}

article .promotionspace .morenews-customizer {
    margin-bottom: 0;
}

article .mailchimp-block {
    margin-top: 20px;
}

.site-info {
    text-align: center;
    padding: 10px;
}


body .post-navigation .em-post-navigation {
    opacity: 1;
    font-weight: normal;
}

.entry-content.read-details .entry-meta {
    font-size: 16px;
}

/* header promotion background remove*/
body.aft-dark-mode .header-promotion .morenews-widget,
body.aft-default-mode .header-promotion .morenews-widget {
    background: transparent;
}

div[id*="splw-location-weather"].splw-main-wrapper {
    max-width: unset !important;
}

.home-featured-widgets .morenews-widget:last-child {    
    margin-bottom: 20px;
}

.secondary-footer .af-container-row,
.site-info .af-container-row {
    margin: 0;
}

body.single-post .aft-image-caption {    
    background: rgb(0 0 0 / 75%);   
}

.aft-image-caption p {    
    opacity: 1; 
    font-size: 14px;
}

@media only screen and (max-width: 375px) {
    body .site-branding .site-title {
        font-size: 2.75rem;
    }
}

@media only screen and (max-width: 640px) {
    

    .container-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    
    body.single-post .entry-title,
    body h1.page-title {
        font-size: 1.75rem;
    }

    body.single .entry-header .aft-post-excerpt-and-meta .post-excerpt {
        font-size: 1.2rem;
    }

    .reply,
    .comment div#respond,
    .comment-content,
    .comment .children {
        margin-left: 50px;
    }

    .comment-author img {
        width: 30px;
    }

    .comment .children .children .reply,
    .comment .children .children .comment-content,
    .comment .children .children .children .children {
        margin-left: 0;
    }

}



@media (min-width: 1200px) {
    body.single-content-mode-boxed article.af-single-article .post-thumbnail.full-width-image {
        padding-top: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .exclusive-posts .exclusive-now {
        float: left;
    }

    .main-navigation .menu .menu-mobile {
        width: 50%;
    }

    .header-layout-3 .site-header .site-branding .site-title,
    body .site-branding .site-title {
        font-size: 2.75rem
    }
}

@media (max-width: 768px) {
    article.hp-listing {
        display: grid !important;
        grid-template-columns:  1fr 2fr;
        gap: 5px;
    }
}

@media screen and (max-width: 480px) {

    .header-layout-3 .site-header .site-branding .site-title,
    body .site-branding .site-title {
        font-size: 3.75rem
    }

    body .mailchimp-block .block-title,
    body .morenews_posts_slider_widget .read-single .read-details .read-title h3,
    body article.latest-posts-full .read-title h3,
    body .af-banner-carousel .read-title h3,
    body.single-post .entry-title,
    body h1.page-title {
        font-size: 1.75rem;
    }
    .af-reated-posts .read-title h3,
    .af-main-banner-thumb-posts .af-sec-post .read-title h3,
    .af-main-banner-latest-posts .read-title h3,
    .af-main-banner-featured-posts .read-title h3 {
        font-size: 20px;
    }
}

@media only screen and (max-width: 479px) {
    .exclusive-posts .exclusive-now {
        float: none;
    }

    .main-navigation .menu .menu-mobile {
        width: 100%;
    }
}
/* New Product Card Design for HivePress */
article.hp-listing--view-block {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

article.hp-listing--view-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.hp-listing__image {
    position: relative;
    overflow: hidden;
}

.hp-listing__image img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers the area */
    transition: transform 0.3s ease;
}

article.hp-listing--view-block:hover .hp-listing__image img {
    transform: scale(1.05);
}

.hp-listing__content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hp-listing__categories a {
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
}

.hp-listing__categories a {
    /* Existing Styles (Kept/Slightly Adjusted) */
    color: #0a0a0a; /* Changed text color to white for contrast */
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    display: inline-block; /* Crucial for padding/margins to work */

    /* Button-like Styles */
    background-color: #d4d5d6; /* Primary blue button color */
    padding: 5px; /* Adds space around the text */
    border-radius: 4px; /* Rounds the corners */
    border: 1px solid #88898a; /* Solid border matching the background */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition for hover */
}

/* Hover Effect for Interactivity */
.hp-listing__categories a:hover {
    color: #f8f6f6; /* Changed text color to white for contrast */
    background-color: #0056b3; /* Slightly darker blue on hover */
    border-color: #0056b3;
    cursor: pointer; /* Changes mouse cursor to indicate clickability */
}

.hp-listing__title {
    color: #000;
    font-size: 18px ;
    font-weight: 700;
    margin: 5px 0 10px;
    line-height: 1.4;
}

.hp-listing__title a {
    color: #000 !important;
    text-decoration: none;
}

.hp-listing__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.hp-listing__footer {
    display: flex; /* Align items horizontally */
    justify-content: space-between; /* Space out the category button and actions */
    align-items: center; /* Align items vertically */
    padding: 0 20px 10px;
    margin-top: auto;
    border-top: 1px solid #4d4c4c;
    padding-top: 15px;
}

.hp-listing__categories {
    margin-right: auto; /* Push the category button to the left */
}

.hp-listing__actions {
    display: flex; /* Align icons horizontally */
    gap: 10px; /* Add spacing between icons */
    align-items: center;
}

.hp-listing__action {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 14px;
}

.hp-listing__action--view {
    background: #002868;
    color: #fff;
}

.hp-listing__action--view:hover {
    background: #002868;
    box-shadow: 0 5px 15px rgba(0, 40, 104, 0.3);
}

.hp-listing__action--favorite {
    border-radius: 1%;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hp-listing__action--favorite:hover {
    color: #f70505;
}

.hp-listing__action--message {
    border-radius: 1%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
    color: #ff4d4d;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hp-listing__action--message:hover {
    color: #f80404;
}

.hp-listing--view-block .hp-listing__content:not(:last-child),
.hp-listing--view-block .hp-listing__footer:not(:last-child),
.hp-listing--view-block .hp-listing__header:not(:last-child) {
	margin-bottom: 0;
}

.hp-listing--view-block{
	padding: 0rem;
}
