/*--------------------------------------------------------------
  Normalize.css پایه + تنظیمات RTL
--------------------------------------------------------------*/

/* Document */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  direction: rtl; /* جهت راست به چپ */
  text-align: right;
  font-family: 'Vazirmatn', sans-serif; /* فونت فارسی */
}

body {
  margin: 0;
  background: #fff;
  color: #404040;
  font-size: 1rem;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
  background: #eee;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

a {
  background-color: transparent;
  color: #4169e1;
  text-decoration: none;
}

a:visited {
  color: #800080;
}

a:hover,
a:focus,
a:active {
  color: #191970;
  outline: 0;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
  width: 100%;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  right: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments */
.alignleft {
  float: right; /* برعکس برای RTL */
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: left; /* برعکس برای RTL */
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
  Layout & Components
--------------------------------------------------------------*/

/* Site Header */
.site-header {
  background: #111;
  color: white !important;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-bottom: 3px solid #ffcc00;
  flex-wrap: wrap;
  direction: rtl;
}

.site-header .site-branding {
  flex: 1 1 auto;
  text-align: right;
  margin-bottom: 10px;
}

.site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white !important;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 1px;
  text-shadow: none;
}

/* Responsive */
@media (min-width: 768px) {
  .site-header {
    flex-wrap: nowrap;
  }
  .site-header .site-branding {
    flex: 0 0 auto;
    text-align: right;
    margin-bottom: 0;
  }
}

/* Navigation */
.main-navigation {
  display: block;
  width: 100%;
  direction: rtl;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-right: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left; /* برعکس برای منوی آبشاری */
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
  color: white;
  padding: 10px 20px;
}

.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

/* Custom Navbar (4 items) */
.custom-navbar {
  position: absolute;
  top: 20px;
  left: 20px; /* منوبار سمت چپ */
  right: auto;
  z-index: 999;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  direction: rtl; /* زبان فارسی */
}

.custom-navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.custom-navbar li {
  display: inline-block;
}

.custom-navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s;
}

.custom-navbar a:hover {
  color: #e91e63;
  transform: scale(1.05);
}

/* Posts and pages */
.sticky {
  display: block;
}

.post,
.page {
  margin: 0 0 1.5em;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin: 0;
  padding: 0;
}

/* Captions */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
  text-align: center;
}

/* Galleries */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

/* Jetpack infinite scroll */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

.infinity-end.neverending .site-footer {
  display: block;
}



p.site-title a {
    color: white !important;
}

p.site-title {
    color: white;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header#masthead {
    display: flex;
    flex-direction: column;
	    background-color: coral;
	/* 
 * استایل‌های راست‌چین برای سایت‌های فارسی
 * قالب: design - کافه توسن
 */

body {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

h1, h2, h3, h4, h5, h6, p, ul, li {
  text-align: right;
}

.hero {
  direction: rtl;
  text-align: center;
}

.menu-items {
  padding-right: 0;
  padding-left: 0;
}

.menu-items li {
  list-style: none;
  margin: 10px 0;
}

.section {
  direction: rtl;
}

.gallery img {
  margin-right: 10px;
  margin-left: 10px;
}

.contact, .social {
  direction: rtl;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

}