/*!
Theme Name: farasun
Theme URI: https://underscores.me/
Author: Automattic
Author URI: https://automattic.com/
Description: Hi. I'm a starter theme called <code>farasun</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: farasun
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

farasun is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

/* ============================================================
   FARASUN THEME RTL FIXES
   ============================================================ */

/* Counter Items RTL Fix
   Ensure numbers display correctly in RTL direction and
   align properly without number reversal (25 showing as 52) */

.number-counter-rtl-fix {
    direction: ltr;
    unicode-bidi: embed;
}

/* For number-counter with flex layout */
.number-counter.flex {
    flex-direction: row-reverse;
}

/* Odometer number display - ensure LTR digit ordering */
.odometer {
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* Counter label text should be RTL */
.counter-item p {
    direction: rtl;
    text-align: right;
}

/* Ensure counter boxes are properly displayed in RTL */
.counter-item {
    text-align: center;
}

/* Stats counter with plus sign */
.number-counter.flex.align-items-start.number-counter-rtl-fix {
    flex-direction: row;
    direction: ltr;
}

.number-counter.flex.align-items-start.number-counter-rtl-fix span.number {
    direction: ltr;
    unicode-bidi: bidi-override;
}

.number-counter.flex.align-items-start.number-counter-rtl-fix h2 {
    margin-right: 10px;
    margin-left: 0;
}

/* About page counter layout */
.wg-counter {
    flex-direction: row-reverse;
}

/* Service/Project counter label spacing */
.counter-item .text {
    direction: rtl;
    text-align: center;
}

/* History section year counter */
.wg-year .counter-item {
    text-align: center;
}

.wg-year .number-counter {
    direction: ltr;
    unicode-bidi: embed;
}

/* Ensure numbers in Persian locale display with proper digit order */
html[lang="fa"] .odometer,
html[lang="fa"] .number {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* Fix for flex alignment in counters */
html[lang="fa"] .number-counter.flex {
    flex-direction: row;
}

html[lang="fa"] .number-counter.flex.align-items-start {
    align-items: flex-start;
}

