/*
Theme Name: Dihaber Cosmobit Child
Theme URI: https://dihaber.net/
Description: Child theme for Dihaber Economic Journal based on Cosmobit.
Author: Dihaber Editorial
Template: cosmobit
Version: 1.0.0
Text Domain: dihaber-cosmobit-child
*/

:root { --dt-pri-color: #742D3D; }

/* The theme's decorative stripe is retained; only its colour changes. */
.dt__pagetitle .dt__pagetitle-content::before { background-color: #742D3D !important; }

/* Home site introduction and inner-page back link. */
.dihaber-page-banner .dihaber-banner-description {
    color: #f1e9eb;
    max-width: 800px;
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.65;
    margin: 12px 0 0;
}
.dihaber-page-banner .dihaber-banner-back {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.55);
    padding-bottom: 4px;
}
.dihaber-page-banner .dihaber-banner-back:hover,
.dihaber-page-banner .dihaber-banner-back:focus { color: #e9c4cf; border-bottom-color: currentColor; }

/* Place meta after the featured image rather than overlaying it. */
.dt__posts .dt__post-top-meta,
body.single-post .dt__post-top-meta {
    position: static !important;
    margin: 0 0 18px !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 14px 20px !important;
    background: #fff !important;
}
.dt__posts .dt__post-top-meta .top-meta-list { margin: 0 !important; }

/* Title is already present in the top banner on single posts. */
body.single-post .dt__post-entry .dt__post-title { display: none !important; }

.dihaber-read-more a { color: #742D3D; font-weight: 700; text-decoration: none; }
.dihaber-read-more a:hover { text-decoration: underline; }

/* Copyright bar and centered, wrapped footer links. */
.dt__footer-copyright,
.dt__footer-copyright > .dt-container,
.dt__footer-copyright .dt-row { background: #742D3D !important; }
.dt__footer-copyright .dt-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    row-gap: 12px !important;
}
.dt__footer-copyright .dt-row > .dt-col-md-4 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
}
.dt__footer-copyright .dt-row > .dt-col-md-4:empty { display: none !important; }
.dt__footer-copyright-text { text-align: center !important; }
.dt__footer-copyright ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 18px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.dt__footer-copyright ul li { margin: 0 !important; white-space: nowrap !important; }
