/*
Theme Name: Mojomarketoz Astra Child
Theme URI: https://mojomarketoz.com.au
Description: Child theme for Mojomarketoz based on Astra
Author: Michael
Author URI: https://mojomarketoz.com.au
Template: astra
Version: 1.0.0
Text Domain: mojomarketoz-astra-child
*/

/* Add custom CSS below this line */

/*BLOGS SHORTCODE STYLE*/

/* Blog Grid - Flexbox Grid Fix */
.mojomarketoz-blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Each card takes full width on mobile by default */
.mojomarketoz-blog-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

/* Hover effect */
.mojomarketoz-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Thumbnail styling */
.mojomarketoz-post-thumb {
    width: 100%;
    display: block;
    border-radius: 8px;
    margin-bottom: 12px;
    height: 220px;
    object-fit: cover;
}

/* Blog content */
.mojomarketoz-blog-content {
    padding: 15px;
}

.mojomarketoz-blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.mojomarketoz-blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Button */
.mojomarketoz-blog-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073e6;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mojomarketoz-blog-btn:hover {
    background-color: #005bb5;
    color: #ffffff;
}

/* Responsive fixes */

/* Tablets: 2 cards per row */
@media screen and (max-width: 991px) {
    .mojomarketoz-blog-card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Mobile: 1 card per row */
@media screen and (max-width: 600px) {
    .mojomarketoz-blog-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Best Picks Wrap */
.mojomarketoz-best-picks-wrap {
    padding: 60px 20px;
    text-align: center;
}

.mojomarketoz-best-picks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.mojomarketoz-product-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(25% - 30px);
    max-width: 300px;
    min-height: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mojomarketoz-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.mojomarketoz-product-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.mojomarketoz-product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mojomarketoz-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.mojomarketoz-product-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    min-height: 4.2em;
}

.mojomarketoz-product-btn-wrap {
    margin-top: auto;
}

.mojomarketoz-product-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mojomarketoz-product-btn:hover {
    background-color: #005bb5;
    color: #ffffff;
}

@media screen and (max-width: 991px) {
    .mojomarketoz-product-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media screen and (max-width: 600px) {
    .mojomarketoz-product-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .mojomarketoz-product-thumb {
        height: 200px;
    }
}

/* Affiliate Disclosure Box Styling */
.mojomarketoz-affiliate-disclosure {
    background-color: #f9f9f9;   /* subtle light background */
    border-left: 4px solid #0073e6; /* accent line to highlight */
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    border-radius: 5px;
}

.mojomarketoz-affiliate-disclosure strong {
    font-weight: 600;
    color: #222;
}