/* سیرنگا — گالری مقصد | layout:gallery */
html { direction: rtl; }
:root {
  --cm-accent: #00838f;
  --cm-bg: #f2fafb;
  --cm-surface: #ffffff;
  --cm-text: #0f2c30;
  --cm-muted: #5a7a7f;
  --cm-radius: 16px;
  --cm-gap: 1.2rem;
  --cm-font: Samim, Tahoma, "Segoe UI", sans-serif;
  --cm-shadow: 0 10px 30px rgba(0,131,143,0.08);
  --cm-header-dark: #0f2c30;
  --wp--preset--font-family--open-sans: Samim, Tahoma, sans-serif;
}

html, body, .site, .cm-content, #page,
body, button, input, select, textarea,
.widget, .cm-entry-title, .entry-title,
.main-navigation, .main-navigation a,
h1, h2, h3, h4, h5, h6,
#cm-primary-nav, #cm-primary-nav a,
.cm-header, .cm-header a,
.cm-footer, .cm-footer a,
.cm-entry-meta, .entry-meta,
.entry-content, .search-form input {
  font-family: var(--cm-font) !important;
}

body {
  background: var(--cm-bg);
  color: var(--cm-text);
  font-weight: 400;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cm-accent); }
a:hover { filter: brightness(0.9); }

.cm-entry-title a, .entry-title a {
  color: var(--cm-text) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cm-entry-meta, .entry-meta, .cm-entry-meta a {
  color: var(--cm-muted) !important;
  font-size: 0.78rem;
}

img { max-width: 100%; height: auto; }

.cm-header, .cm-main-header, .cm-header-1 {
  background: var(--cm-header-dark) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cm-accent) !important;
}
.cm-header .cm-site-title a,
#cm-site-info .cm-site-title a,
.cm-primary-nav a, #cm-primary-nav a {
  color: #fff !important;
}
.custom-logo-link img, .custom-logo {
  max-height: 52px;
  width: auto;
}

.cm-featured-posts, .widget, .cm-posts {
  background: var(--cm-surface);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}

.widget-title, .cm-widget-title, .cm-posts .cm-widget-title span {
  border-right: 4px solid var(--cm-accent);
  padding-right: 0.6rem;
  font-weight: 700;
}

/* Single post reading */
.single .entry-content, .single .cm-entry-summary {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.85;
}
.single .wp-post-image, .single .cm-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: var(--cm-radius);
}
.cm-breadcrumb, .breadcrumb {
  font-size: 0.8rem;
  color: var(--cm-muted);
  margin-bottom: 0.75rem;
}

.rooyesh-home-h1.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .cm-header .cm-site-title { font-size: 1.05rem !important; }
  .custom-logo-link img { max-height: 40px; }
}
@media (max-width: 360px) {
  body { font-size: 14px; }
  .cm-primary-nav a { padding: 0.4rem 0.55rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* gallery: destination grid */
.cm-posts .cm-post, .cm-featured-posts .cm-post {
  border-radius: var(--cm-radius); overflow: hidden;
  transition: transform .2s ease;
}
.cm-posts .cm-post:hover { transform: translateY(-3px); }
.cm-featured-category-slider img,
.cm-highlighted-posts img {
  aspect-ratio: 3/2; object-fit: cover; width: 100%;
}
.cm-header { background: linear-gradient(90deg, var(--cm-header-dark), color-mix(in srgb, var(--cm-accent) 35%, var(--cm-header-dark))) !important; }
