/*
Theme Name: MD Child Theme
Theme URI: https://md.axiomthemes.com/
Description: MD is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AxiomThemes
Author URI: https://axiomthemes.com/
Version: 1.5.0
Tested up to: 6.9
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: md
Template: md
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* Custom layout adjustments for /haberler/ blog page - Premium 3-column cards with images */
body.blog [class*="content_wrap"] > .sidebar,
body.archive [class*="content_wrap"] > .sidebar {
    display: none !important;
}

body.blog [class*="content_wrap"] > .content,
body.archive [class*="content_wrap"] > .content {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Redesign container with Grid */
body.blog .posts_container,
body.archive .posts_container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

/* Disable old layout columns */
body.blog .posts_container .column-1_3,
body.archive .posts_container .column-1_3 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* Make each card look premium and consistent */
body.blog article.post_item,
body.archive article.post_item {
    background-color: #ffffff !important;
    border: 1px solid rgba(8, 54, 59, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(8, 54, 59, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-sizing: border-box !important;
}

body.blog article.post_item:hover,
body.archive article.post_item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 45px rgba(8, 54, 59, 0.09) !important;
    border-color: rgba(8, 54, 59, 0.15) !important;
}

/* Card image */
body.blog article.post_item .post_featured,
body.archive article.post_item .post_featured {
    margin-bottom: 0 !important;
    height: 220px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 16px 16px 0 0 !important;
    display: block !important;
}

body.blog article.post_item .post_featured img,
body.archive article.post_item .post_featured img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body.blog article.post_item:hover .post_featured img,
body.archive article.post_item:hover .post_featured img {
    transform: scale(1.08) !important;
}

/* Card details container */
body.blog article.post_item .post_header,
body.archive article.post_item .post_header {
    padding: 24px 24px 12px 24px !important;
}

body.blog article.post_item .post_category,
body.archive article.post_item .post_category {
    margin-bottom: 8px !important;
}

body.blog article.post_item .post_category a,
body.archive article.post_item .post_category a {
    display: inline-block !important;
    background-color: rgba(0, 168, 188, 0.08) !important;
    color: #00a8bc !important;
    padding: 4px 12px !important;
    border-radius: 100px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: background-color 0.2s ease !important;
}

body.blog article.post_item .post_category a:hover,
body.archive article.post_item .post_category a:hover {
    background-color: rgba(0, 168, 188, 0.15) !important;
}

body.blog article.post_item .post_title,
body.archive article.post_item .post_title {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #08363b !important;
}

body.blog article.post_item .post_title a,
body.archive article.post_item .post_title a {
    color: #08363b !important;
    transition: color 0.2s ease !important;
}

body.blog article.post_item .post_title a:hover,
body.archive article.post_item .post_title a:hover {
    color: #00a8bc !important;
}

/* Meta information (date, comments) */
body.blog article.post_item .post_meta,
body.archive article.post_item .post_meta {
    padding: 0 24px 12px 24px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(8, 54, 59, 0.04) !important;
    font-size: 13px !important;
    color: #849a9c !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

body.blog article.post_item .post_meta a,
body.archive article.post_item .post_meta a {
    color: #849a9c !important;
}

body.blog article.post_item .post_meta a:hover,
body.archive article.post_item .post_meta a:hover {
    color: #00a8bc !important;
}

/* Excerpt/Content */
body.blog article.post_item .post_content,
body.archive article.post_item .post_content {
    padding: 16px 24px 24px 24px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #67787a !important;
    flex-grow: 1 !important;
}

body.blog article.post_item .post_content_inner,
body.archive article.post_item .post_content_inner {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Responsiveness overrides */
@media (max-width: 1024px) {
    body.blog .posts_container,
    body.archive .posts_container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 767px) {
    body.blog .posts_container,
    body.archive .posts_container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}