/*
Theme Name:     Foxiz child
Template:      	foxiz
Theme URI:      https://foxiz.themeruby.com
Author:         Theme-Ruby
Author URI:     https://themeforest.net/user/theme-ruby/portfolio/
Description:    Make your modifications to Foxiz in this child theme.
Version:        1.0
Tags:           custom-background, custom-menu, featured-images, theme-options, custom-colors, translation-ready, threaded-comments, translation-ready
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

/* Your CSS code goes here
-------------------------------------- */

/* =========================================================
   SMART 404 RELEVANT ARTICLES - FOXIZ STYLE
   ========================================================= */

.smart-404-related {
    width: 100%;
}

/* =========================================================
   GRID
   ========================================================= */

.smart-404-foxiz-grid .block-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Pastikan card tidak membawa margin bawaan Foxiz */
.smart-404-foxiz-grid .p-wrap {
    width: 100%;
    margin: 0 !important;
    min-width: 0;
}

/* =========================================================
   CARD
   ========================================================= */

.smart-404-foxiz-grid .grid-box {
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

/* =========================================================
   IMAGE
   ========================================================= */

.smart-404-foxiz-grid .feat-holder {
    width: 100%;
    margin: 0;
}

.smart-404-foxiz-grid .p-featured {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.smart-404-foxiz-grid .p-flink {
    display: block;
    width: 100%;
    height: 100%;
}

.smart-404-foxiz-grid .p-featured img,
.smart-404-foxiz-grid .featured-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

/* Hover image */
.smart-404-foxiz-grid .p-featured img {
    transition: transform 0.35s ease;
}

.smart-404-foxiz-grid .p-wrap:hover .p-featured img {
    transform: scale(1.035);
}

/* =========================================================
   TITLE
   ========================================================= */

.smart-404-foxiz-grid .entry-title {
    margin: 14px 16px 0 !important;
    padding: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.smart-404-foxiz-grid .entry-title a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.smart-404-foxiz-grid .entry-title a:hover {
    opacity: 0.75;
}

/* =========================================================
   META
   ========================================================= */

.smart-404-foxiz-grid .p-meta {
    margin: 14px 16px 18px !important;
    padding: 0;
}

.smart-404-foxiz-grid .meta-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.smart-404-foxiz-grid .meta-el {
    font-size: 13px;
    line-height: 1.4;
}

/* Separator */
.smart-404-foxiz-grid .meta-read::before {
    content: "·";
    display: inline-block;
    margin: 0 8px;
}

/* =========================================================
   SHADOW
   ========================================================= */

.smart-404-foxiz-grid .box-shadow {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.smart-404-foxiz-grid .box-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .smart-404-foxiz-grid .block-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .smart-404-foxiz-grid .entry-title {
        font-size: 17px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .smart-404-foxiz-grid .block-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .smart-404-foxiz-grid .grid-box {
        border-radius: 12px;
    }

    .smart-404-foxiz-grid .p-featured {
        border-radius: 12px 12px 0 0;
    }

    .smart-404-foxiz-grid .entry-title {
        margin: 12px 14px 0 !important;
        font-size: 16px;
        line-height: 1.4;
    }

    .smart-404-foxiz-grid .p-meta {
        margin: 12px 14px 16px !important;
    }

    .smart-404-foxiz-grid .meta-el {
        font-size: 12px;
    }
}