/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #c9572c;
    color: #fff;
    text-decoration: none;
}

[type=button], [type=submit], button {
    background-color: transparent;
    border: 1px solid #c9572c;
    border-radius: 3px;
    color: #c9572c;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem 1rem;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}



/* ─── TOKENS ─── */
:root {
  --ink:        #0d0d0d;
  --surface:    #141414;
  --card:       #181818;
  --card-hover: #1e1e1e;
  --rule:       #2a2a2a;
  --muted:      #6b6b6b;
  --ghost:      #9a9a9a;
  --accent:     #c8a96e;
  --accent-dim: #8a7248;
  --text:       #e8e4dc;
  --text-soft:  #b8b4aa;
  --white:      #f5f2ec;
  --radius:     4px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.page-id-1164, body.category, body.search{
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/*--- PAGE HEADER ─── */
.cm-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 60px 0 48px;
  position: relative; overflow: hidden;
}
.cm-page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim) 40%, transparent);
}
.cm-page-header-inner {
  max-width: 1250px; margin: 0 auto; padding: 10px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.cm-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.cm-page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400; line-height: 1.15; color: var(--white);
}
.cm-page-header h1 em { font-style: italic; color: var(--accent); }
.cm-page-header .cm-subtitle {
  font-size: 15px; color: var(--text-soft);
  max-width: 480px; line-height: 1.7; margin-top: 10px;
}
.cm-header-search { display: flex; }
.cm-header-search input {
  width: 280px;
  background: var(--card); border: 1px solid var(--rule); border-right: none;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px;
  padding: 10px 16px; border-radius: var(--radius) 0 0 var(--radius);
  outline: none; transition: border-color .2s;
}
.cm-header-search input::placeholder { color: var(--muted); }
.cm-header-search input:focus { border-color: var(--accent-dim); }
.cm-header-search button {
  background: var(--accent); color: var(--ink);
  border: none; padding: 10px 18px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0; transition: background .2s;
}
.cm-header-search button:hover { background: #d9bc84; }

/* ─── FILTER BAR ─── */
.cm-filter-bar {
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}
.cm-filter-bar-inner {
  max-width: 1250px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; overflow-x: auto;
}
.cm-filter-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.cm-filter-tab:hover { color: var(--text); border-bottom-color: var(--rule); }
.cm-filter-tab.cm-active,
.cm-filter-tab.current-cat { color: var(--accent); border-bottom-color: var(--accent); }
.cm-filter-tab .cm-count {
  font-size: 10px; font-weight: 700;
  background: var(--card); border: 1px solid var(--rule);
  padding: 1px 6px; border-radius: 10px; color: var(--ghost);
}
.cm-filter-tab.cm-active .cm-count,
.cm-filter-tab.current-cat .cm-count {
  background: rgba(200,169,110,.12); border-color: var(--accent-dim); color: var(--accent);
}

/* ─── MAIN WRAP ─── */
.cm-main-wrap {
  max-width: 1250px; margin: 0 auto;
  padding: 48px 28px 72px;
}

/* ─── BLOG GRID ─── */
.cm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}

/* ─── BLOG CARD ─── */
.cm-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cm-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

/* image */
.cm-card-image {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; position: relative;
  background: var(--surface);
}
.cm-card-image a img{ display: block; width: 100%; height: 100%; }
.cm-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.cm-card:hover .cm-card-image img { transform: scale(1.04); }
.cm-card-image .cm-no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  font-size: 32px; color: var(--muted);
}
.cm-card-cat {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--accent);
  padding: 3px 10px; border-radius: 2px;
  z-index: 2;
}

/* body */
.cm-card-body {
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.cm-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--muted); margin-bottom: 11px; flex-wrap: wrap;
}
.cm-card-meta .cm-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0;
}
.cm-card-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 18px; font-weight: 400; line-height: 1.3;
  color: var(--white); margin-bottom: 10px;
  transition: color .2s;
}
.cm-card-heading a { color: inherit; }
.cm-card:hover .cm-card-heading,
.cm-card:hover .cm-card-heading a { color: var(--accent); }
.cm-card-excerpt {
  font-size: 13px; color: var(--text-soft);
  line-height: 1.65; margin-bottom: 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cm-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--rule);
}
.cm-read-time { font-size: 11px; color: var(--muted); }
.cm-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: rgba(200,169,110,.08);
  border: 1px solid var(--accent-dim);
  padding: 7px 14px; border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.cm-card-btn:hover { background: var(--accent); color: var(--ink); }
.cm-card-btn svg { transition: transform .2s; flex-shrink: 0; }
.cm-card-btn:hover svg { transform: translateX(3px); }

/* ─── FEATURED CARD ─── */
.cm-card.cm-featured {
  grid-column: span 2;
  flex-direction: row;
}
.cm-card.cm-featured .cm-card-image {
  width: 48%; aspect-ratio: auto; flex-shrink: 0; min-height: 280px;
}
.cm-card.cm-featured .cm-card-image a img{ height: 100%; }
.cm-card.cm-featured .cm-card-image img { height: 100%; }
.cm-card.cm-featured .cm-card-body { padding: 28px; }
.cm-card.cm-featured .cm-card-heading { font-size: 22px; }
.cm-card.cm-featured .cm-card-excerpt { -webkit-line-clamp: 5; }
.cm-featured-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.cm-featured-label::before { content: ''; width: 16px; height: 1px; background: var(--accent); }

/* ─── NO POSTS ─── */
.cm-no-posts {
  grid-column: 1 / -1;
  text-align: center; padding: 72px 28px;
  color: var(--muted); font-size: 15px;
}
.cm-no-posts strong { display: block; font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--text); margin-bottom: 8px; }

/* ─── PAGINATION ─── */
.cm-pagination-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cm-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.cm-pagination a,
.cm-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 6px;
  background: var(--card); border: 1px solid var(--rule);
  color: var(--text-soft); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; border-radius: var(--radius);
  transition: background .15s, border-color .15s, color .15s;
}
.cm-pagination a:hover {
  background: var(--card-hover); border-color: #444; color: var(--white);
}
.cm-pagination .current {
  background: var(--accent); border-color: var(--accent);
  color: var(--ink); font-weight: 700;
}
.cm-pagination .dots { background: transparent; border-color: transparent; color: var(--muted); }
.cm-pagination .prev,
.cm-pagination .next {
  padding: 0 14px; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  min-width: unset;
}
.cm-pagination .prev svg,
.cm-pagination .next svg { flex-shrink: 0; }
.cm-pagination .prev:hover,
.cm-pagination .next:hover { border-color: var(--accent-dim); color: var(--white); }
.cm-pagination-info { font-size: 12px; color: var(--muted); }

.cm-footer-bottom p { font-size: 12px; color: var(--muted); }
.cm-footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-footer-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ghost); background: var(--card); border: 1px solid var(--rule);
  padding: 4px 10px; border-radius: 2px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .cm-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cm-card.cm-featured { grid-column: span 2; flex-direction: column; }
  .cm-card.cm-featured .cm-card-image { width: 100%; aspect-ratio: 16/9; min-height: unset; }
}
@media (max-width: 640px) {
  .cm-blog-grid { grid-template-columns: 1fr; }
  .cm-card.cm-featured { grid-column: span 1; }
  .cm-page-header { padding: 40px 0 32px; }
}