/*
 Theme Name:   Studiare Plus Child - Hezarsarv
 Description:  Hezarsarv design and speed settings on top of Studiare Plus. Keep this theme active; update only the parent "studiare" theme.
 Author:       Hezarsarv
 Template:     studiare
 Version:      1.0.0
 Text Domain:  splus
*/

/*
 * IRANSansX (Persian digits), served as woff2 with font-display: swap.
 * Declared under both names the site already uses:
 *  - "IRANSansx": the parent theme and the Elementor pages
 *  - "IRANSans":  inline styles in ~300 older posts (font-family: iransans)
 */
@font-face { font-family: IRANSansx; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/IRANSansXFaNum-Light.woff2') format('woff2'); }
@font-face { font-family: IRANSansx; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/IRANSansXFaNum-Regular.woff2') format('woff2'); }
@font-face { font-family: IRANSansx; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/IRANSansXFaNum-Medium.woff2') format('woff2'); }
@font-face { font-family: IRANSansx; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/IRANSansXFaNum-DemiBold.woff2') format('woff2'); }
@font-face { font-family: IRANSansx; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/IRANSansXFaNum-Bold.woff2') format('woff2'); }
@font-face { font-family: IRANSansx; font-style: normal; font-weight: 800 900; font-display: swap; src: url('fonts/IRANSansXFaNum-ExtraBold.woff2') format('woff2'); }

@font-face { font-family: IRANSans; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/IRANSansXFaNum-Light.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/IRANSansXFaNum-Regular.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/IRANSansXFaNum-Medium.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/IRANSansXFaNum-DemiBold.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/IRANSansXFaNum-Bold.woff2') format('woff2'); }
@font-face { font-family: IRANSans; font-style: normal; font-weight: 800 900; font-display: swap; src: url('fonts/IRANSansXFaNum-ExtraBold.woff2') format('woff2'); }

/* Reading size from the old design: 17px text, 32px line height in posts and letters.
   --hz-fs scales both with the reader's choice in the "Aa" panel (inc/reading.php). */
.single-post .entry-content,
.single-post .wd-entry-content,
.single-post .post-content {
	font-size: calc(17px * var(--hz-fs, 1));
	line-height: calc(32px * var(--hz-fs, 1));
	color: #333;
}

/* -------------------------------------------------------------------------
 * My Account: dashboard and "دوره های خریداری شده"
 * ---------------------------------------------------------------------- */
.hz-dash__hello { font-size: 20px; font-weight: 600; margin: 0 0 24px; }
.hz-dash__section { margin-bottom: 32px; }
.hz-dash__title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.hz-dash__empty { background: #f6f7f9; border-radius: 12px; padding: 16px; line-height: 2; }
.hz-dash__small { font-size: 14px; color: #777; }
.hz-dash__small a { color: inherit; }

.hz-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.hz-course {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid #e8e8e8; border-radius: 14px; background: #fff;
	color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.hz-course:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.hz-course__img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; }
.hz-course__name { padding: 12px 14px 4px; font-weight: 600; line-height: 1.7; }
.hz-course__go { padding: 0 14px 14px; margin-top: auto; color: var(--wd-primary-color, #44BD32); font-weight: 600; font-size: 14px; }

.hz-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hz-link {
	display: flex; align-items: center; gap: 12px; padding: 20px;
	border-radius: 14px; background: #f6f7f9; color: inherit; text-decoration: none;
	font-size: 17px; font-weight: 600; transition: background .2s;
}
.hz-link:hover { background: #eef6ec; }
.hz-link__icon { font-size: 26px; }

@media (max-width: 600px) {
	.hz-courses { grid-template-columns: 1fr 1fr; gap: 12px; }
	.hz-links { grid-template-columns: 1fr; }
}

/* My Account menu: the parent theme squeezes it into a ~50px column; use the full sidebar. */
.wd-my-account-sidebar .woocommerce-MyAccount-navigation,
.wd-my-account-sidebar .woocommerce-MyAccount-navigation ul,
.wd-my-account-sidebar .user-info-MyAccount {
	width: 100% !important;
	float: none !important;
}

.wd-my-account-sidebar .woocommerce-MyAccount-navigation ul li a {
	white-space: nowrap;
}

/* Closed course (inc/courses.php). */
.hz-course-closed {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f5f5f5;
	color: #555;
	font-weight: 600;
	text-align: center;
}

/* Phone tab bar (inc/mobile.php) is shown only by assets/mobile.css. */
.hz-tabbar {
	display: none;
}
