/**
 * Theme Name: Agrile Child
 * Description: This is a child theme of Agrile, generated by Merlin WP.
 * Author: Themelexus
 * Template: agrile
 * Version: 1.0.5
 */

/* ==========================================================================
   Blog Index & Archive Page Premium Responsive Styling
   ========================================================================== */

.blog #content {
    padding: 60px 0 !important;
    background-color: #f7f9f6;
}

.blog .col-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout Fix */
.blog .elementor-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Clear default item widths */
.blog .elementor-grid article.article-default {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Post Cards Premium Layout */
.blog article.article-default {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef1ed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.blog article.article-default:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(18, 53, 36, 0.08);
    border-color: #D6AD60;
}

.blog .post-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Thumbnail Styling */
.blog .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin: 0;
    padding: 0;
    background-color: #123524;
}

.blog .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog article.article-default:hover .post-thumbnail img {
    transform: scale(1.04);
}

/* Posted On Date Tag inside Thumbnail */
.blog .post-thumbnail .posted-on {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #123524;
    color: #ffffff;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 1px solid rgba(214, 173, 96, 0.4);
}

.blog .post-thumbnail .posted-on a {
    color: #ffffff !important;
}

/* Fallback Header Bar for posts without thumbnail */
.blog article.article-default:not(.has-post-thumbnail) .post-content {
    border-top: 5px solid #123524;
    padding-top: 30px !important;
}

/* Post Content Container */
.blog .post-content {
    padding: 25px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Entry Meta - Hidden as requested */
.blog .entry-meta-top {
    display: none !important;
}

/* Entry Title */
.blog h3.entry-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.15rem !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.blog h3.entry-title a {
    color: #123524 !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

.blog h3.entry-title a:hover {
    color: #D6AD60 !important;
}

/* Excerpt Text - Hidden as requested */
.blog .entry-excerpt {
    display: none !important;
}

/* More Link */
.blog .more-link-wrap {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f2f5f1;
}

.blog a.more-link {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #123524 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.blog a.more-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.blog a.more-link:hover {
    color: #D6AD60 !important;
    gap: 10px;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */

@media (max-width: 991px) {
    .blog .elementor-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 767px) {
    .blog #content {
        padding: 35px 0 !important;
    }

    .blog .col-fluid {
        padding: 0 15px;
    }

    .blog .elementor-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .blog h3.entry-title {
        height: auto;
        -webkit-line-clamp: unset;
    }

    .blog .entry-excerpt p {
        height: auto;
        -webkit-line-clamp: unset;
    }
}

/* Hide default featured image on single post pages completely */
body.single-post .post-thumbnail,
body.single .post-thumbnail,
.single-post .post-thumbnail,
.single-post article .post-thumbnail {
    display: none !important;
}

/* Hide author details and comment counts from meta on single posts */
.single-post .post-author,
.single-post .meta-reply,
.single-post .entry-meta-top .post-author,
.single-post .entry-meta-top .meta-reply {
    display: none !important;
}

/* Hide comment form and comments list area on single posts */
.single-post #comments,
.single-post .comments-area,
.single-post #respond {
    display: none !important;
}

/* ==========================================================================
   Russian Language Locale Cyrillic Font Override (Premium Montserrat & Inter)
   ========================================================================== */
html[lang="ru-RU"] body,
html[lang="ru-RU"] h1,
html[lang="ru-RU"] h2,
html[lang="ru-RU"] h3,
html[lang="ru-RU"] h4,
html[lang="ru-RU"] h5,
html[lang="ru-RU"] h6,
html[lang="ru-RU"] p,
html[lang="ru-RU"] span,
html[lang="ru-RU"] a,
html[lang="ru-RU"] button,
html[lang="ru-RU"] input,
html[lang="ru-RU"] textarea,
html[lang="ru-RU"] select,
html[lang="ru-RU"] div,
html[lang="ru-RU"] li {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}