@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --rm-navy: #3d4767;
    --rm-navy-deep: #2c3352;
    --rm-navy-light: #4c5878;
    --rm-gold: #f2b632;
    --rm-hero-bg: #eef1fa;
    --rm-text-dark: #1c2340;
    --rm-text-gray: #6b7280;
    --rm-green: #4ecca3;
    --rm-blue: #6f9bff;
    --rm-white: #ffffff;
    --rm-light-gray: #f3f3f7;
    --rm-font: 'Vazirmatn', Tahoma, sans-serif;
    --rm-header-radius: 18px;
    --rm-transition: all .35s ease;
}

* {
    outline: none;
    box-sizing: border-box;
}

body {
    font-family: var(--rm-font);
    color: var(--rm-text-dark);
    direction: rtl;
    text-align: right;
    background: var(--rm-white);
    margin: 0;
}

ul {
    
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: var(--rm-transition);
}

button {
    font-family: var(--rm-font);
    cursor: pointer;
}
/* =====================================================
   HEADER
===================================================== */
.site-header {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 999;
    transition: var(--rm-transition);
}

.header-container {
    max-width: 1196px;
}
.header-inner {
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(180deg, var(--rm-navy) 0%, var(--rm-navy-deep) 100%);
    border-radius: var(--rm-header-radius);
    padding: 6px 15px;
    box-shadow: 0 12px 30px rgba(20, 25, 50, .18);
}


/* برند / لوگو - سمت راست هدر */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
}

.header-brand-logo {
    height: 70px;
    width: auto;
    display: block;
}

.site-header .header-brand-logo-desktop {
    max-width: 174px;
    object-fit: contain;
}

.site-header .header-brand-logo-compact {
    display: none;
}

.site-header.is-fixed .header-brand-logo-desktop {
    display: none;
}

.site-header.is-fixed .header-brand-logo-compact {
    display: block;
}

@media (max-width: 991px) {
    .site-header .header-brand-logo-desktop {
        display: none;
    }

    .site-header .header-brand-logo-compact {
        display: block;
    }
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.brand-royal,
.brand-mind {
    font-size: 21px;
    font-weight: 800;
}

.brand-royal {
    color: var(--rm-gold);
}

.brand-mind {
    color: var(--rm-white);
}

.header-brand-desc {
    font-size: 11px;
    color: #c7cbdc;
    font-weight: 400;
}

/* اکشن‌های هدر (آیکون‌ها + دکمه‌ها) - سمت چپ هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 4;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--rm-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--rm-transition);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, .18);
}
a.header-icon-btn:hover { color:var(--rm-white); }
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--rm-white);
    white-space: nowrap;
}
.site-header.is-fixed .btn-header {
	padding: 5px 15px;
}
.btn-header.btn-signup {
    background: rgba(255, 255, 255, .08);
}

.btn-header.btn-signup:hover {
    background: rgba(255, 255, 255, .16);
	color:var(--rm-gold);
}

.btn-header.btn-login {
    background: var(--rm-gold);
    border-color: var(--rm-gold);
    color: var(--rm-navy-deep);
    font-weight: 700;
}

.btn-header.btn-login:hover {
    background: #e2a41f;
}

.header-fixed-actions {
    display: flex;
    align-items: center;
    order: 1;
}

/* دکمه همبرگر موبایل / حالت فیکس */
.header-toggler {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--rm-white);
    font-size: 32px;
}

/* =====================================================
   SEARCH POPUP
===================================================== */
.search-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.search-popup.is-open {
    visibility: visible;
    opacity: 1;
}
/* Overlay
----------------------------------------------------- */
.search-popup-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
/* Popup Box
----------------------------------------------------- */
.search-popup-box {
    position: relative;
    width: 700px;
    max-width: calc(100% - 30px);
    margin: 100px auto 0;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}
.search-popup.is-open .search-popup-box {
    transform: translateY(0);
}
/* Close Button
----------------------------------------------------- */
.search-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}
.search-popup-close:hover {
    background: #e8e8e8;
    color: #111;
}
/* Title
----------------------------------------------------- */
.search-popup-title {
    margin: 0 0 20px;
    color: #222;
    font-size: 22px;
    font-weight: 700;
    text-align: right;
}
/* Form
----------------------------------------------------- */
.search-popup-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
/* Input Wrapper
----------------------------------------------------- */
.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
/* Search Icon
----------------------------------------------------- */
.search-input-wrap > i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
}
/* Input
----------------------------------------------------- */
.search-popup-input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 50px 0 18px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.search-popup-input:focus {
    border-color: #999;
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.05);
}
.search-popup-input::placeholder {
    color: #aaa;
}
/* Submit Button
----------------------------------------------------- */
.search-submit-btn {
    flex: 0 0 110px;
    height: 54px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: #222;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}
.search-submit-btn:hover {
    background: #000;
}
.search-submit-btn:active {
    transform: scale(0.98);
}
/* Mobile
----------------------------------------------------- */
@media (max-width: 600px) {
    .search-popup-box {
        width: calc(100% - 20px);
        max-width: none;
        margin-top: 70px;
        padding: 28px 18px 20px;
        border-radius: 14px;
    }
    .search-popup-title {
        font-size: 19px;
    }
    .search-popup-form {
        flex-direction: column;
    }
    .search-submit-btn {
        width: 100%;
        flex: none;
    }
}
/* -----------------------------------------------------
   منوی اصلی + دراپ‌داون هاوری (تا هر عمقی)
------------------------------------------------------ */
.Main-Nav {
    width: 92%;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--rm-navy) 0%, var(--rm-navy-deep) 100%);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 22px rgba(20, 25, 50, .15);
    border-top: 0;
    /* اگه خواستید باریک‌تر/عریض‌تر بشه، فقط عدد 92% رو عوض کنید */
	padding:0;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
    list-style: none;
    margin: 0 10px;
}

.main-menu li.menu-item {
    position: relative;
    /* برای موقعیت‌دهی ul.sub-menu، در هر عمقی */
}

.main-menu li.menu-item>a {
    color: #d7dbeb;
    font-size: 14.5px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.main-menu li.menu-item>a:hover,
.main-menu li.current-menu-item>a,
.main-menu li.menu-item>a[aria-current="page"] {
    color: var(--rm-white);
    background: rgba(255, 255, 255, .08);
}

.main-menu li.menu-item-has-children>a::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
    opacity: .7;
    transition: transform .2s ease;
}

.main-menu>li.menu-item-has-children>ul.sub-menu {
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0;
}

.main-menu ul.sub-menu ul.sub-menu {
    top: -9px;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-right: 0;
}

/* فلش آیتم‌های سطح ۳+ باید به چپ اشاره کنه، نه پایین */
.main-menu ul.sub-menu li.menu-item-has-children>a::after {
    transform: rotate(135deg);
    margin-right: auto;
}

/* استایل مشترک همه‌ی سطوح ul.sub-menu (چه سطح ۲ چه سطح ۳ به بعد) */
.main-menu ul.sub-menu {
    position: absolute;
    display: block;
    width: 290px;
    max-width: calc(100vw - 32px);
    background: var(--rm-navy-deep);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 8px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Keep the pointer path connected to the parent throughout opening. */
    transition: opacity .15s ease;
    z-index: 20;
}

/* باز شدن با هاور - در هر عمقی */
.main-menu li.menu-item-has-children:hover>ul.sub-menu,
.main-menu li.menu-item-has-children:focus-within>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.main-menu li.menu-item > a:focus-visible {
    outline: 2px solid var(--rm-gold, #f2b632);
    outline-offset: -2px;
}

.main-menu ul.sub-menu li.menu-item>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #d7dbeb;
    font-size: 14px;
    border-radius: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.main-menu ul.sub-menu li.menu-item>a:hover,
.main-menu ul.sub-menu li.current-menu-item>a {
    background: rgba(255, 255, 255, .08);
    color: var(--rm-white);
}

/* فاصله جبرانی زیر هدر شناور، ارتفاعش با JS تنظیم می‌شود */
.header-spacer {
    height: 150px;
	background:#eff1f9;
}
.homepage-header {
	background:rgba(90, 84, 222, 0.2);
}
/* -----------------------------------------------------
   حالت فیکس هدر (بعد از اسکرول)
------------------------------------------------------ */
.site-header.is-fixed {
    position: fixed;
    top: 0;
    animation: rmHeaderSlideDown .35s ease;
}

.site-header.is-fixed .header-container {
    max-width: 100%;
	padding-left:0;
	padding-right:0;
}
.site-header.is-fixed .header-inner {
    border-radius: 0;
    box-shadow: 0 4px 18px rgba(20, 25, 50, .16);
}
.site-header.is-fixed .header-top-row {
	border-radius:0;
	padding: 5px 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 56px;
}
.site-header.is-fixed .Main-Nav {
    display: none;
}
/* لوگو وسط‌چین می‌شه و کوچیک‌تر می‌شه، متن زیرش مخفی می‌شه */
.site-header.is-fixed .header-brand {
    justify-content: center;
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}
.site-header.is-fixed .header-brand-text {
    display: none;
}
.site-header.is-fixed .header-brand-logo {
    height: 45px;
    margin: 0;
}

.site-header.is-fixed .header-actions {
    order: 3;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.site-header.is-fixed .header-fixed-actions {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.site-header.is-fixed .header-actions .header-icon-btn {
    display: none;
}

/* همبرگر - سمت راست (چون سایت راست‌چینه) */
.site-header.is-fixed .header-toggler {
    display: inline-flex;
	padding-top:10px;
}

@keyframes rmHeaderSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* -----------------------------------------------------
   موبایل / تبلت - چیدمان فشرده همیشه فعاله (نه فقط بعد اسکرول)
------------------------------------------------------ */
@media (max-width: 1280px) {
	.header-container {
		max-width: 1100px;
	}
}
@media (max-width: 1050px) {
	.header-container {
		max-width: 1050px;
	}
}
@media (max-width: 991px) {
	.header-container {
	  max-width: 100%;
		padding-left:0;
		padding-right:0
	}
	.site-header.is-fixed .header-top-row {
		padding: 6px 15px;
	}
    .header-toggler {
        display: inline-flex;
    }

    .Main-Nav {
        display: none;
    }

    .site-header .header-top-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 56px;
        gap: 8px;
    }

    .site-header .header-brand {
        order: 2;
        justify-content: center;
        position: static;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .site-header .header-brand-text {
        display: none;
    }

    .site-header .header-fixed-actions {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .site-header .header-actions {
        order: 3;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
        flex-wrap: wrap;
        min-width: 0;
        max-width: 100%;
    }

    .header-actions .header-icon-btn {
        display: none;
    }
}

/* آفکانواس موبایل wp_nav_menu() */
.offcanvas-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas-menu li.menu-item>a {
    color: var(--rm-text-dark);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.offcanvas-menu .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.offcanvas-menu .submenu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.offcanvas-menu li.menu-item-has-children.arrup>a .submenu-toggle::after {
    transform: rotate(225deg);
}

.offcanvas-menu li.current-menu-item>a {
    color: var(--rm-navy, #3d4767);
}

.offcanvas-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding-right: 14px;
}

.offcanvas-menu .sub-menu li.menu-item>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    color: var(--rm-text-gray);
    font-size: 14px;
    border-bottom: 0;
}

.offcanvas-auth {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.offcanvas-auth .btn-header {
    color: var(--rm-navy-deep);
    border-color: #ddd;
}

.offcanvas-auth .btn-header.btn-login {
    color: var(--rm-navy-deep);
}
/* =====================================================
   HERO - بخش بعد از هدر
===================================================== */
.hero-section {
    background: linear-gradient(to bottom, rgba(90, 84, 222, 0.2) 1%, #ffffff 40%);
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero-row {
    row-gap: 60px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--rm-navy);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--rm-navy);
    line-height: 1.4;
    margin-bottom: 22px;
}

.hero-desc {
    font-size: 16px;
    color: var(--rm-text-gray);
    line-height: 2;
    max-width: 520px;
    margin-bottom: 34px;
}

.btn-hero-cta {
    display: inline-block;
    background: var(--rm-navy-deep);
    color: var(--rm-white);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 38px;
    border-radius: 40px;
    box-shadow: 0 14px 26px rgba(44, 51, 82, .25);
}

.btn-hero-cta:hover {
    background: var(--rm-navy);
    color: var(--rm-white);
    transform: translateY(-2px);
}

/* -----------------------------------------------------
   کارت سه‌بعدی رویال‌مایند + حلقه‌های دکوراتیو
------------------------------------------------------ */
.hero-visual {
    display: flex;
    justify-content: center;
}

.home-3d-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.home-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-ring-dashed {
    inset: 6%;
    border: 1.5px dashed #b9c0d6;
}

.home-ring-green {
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--rm-green);
    border-left-color: var(--rm-green);
    transform: rotate(-35deg);
}

.home-ring-blue {
    inset: 0;
    border: 3px solid transparent;
    border-bottom-color: var(--rm-blue);
    border-right-color: var(--rm-blue);
    transform: rotate(20deg);
}

.home-3d-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    transition: transform 0.08s linear;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(0px);
    will-change: transform;
}

.home-brand-title {
    font-size: 60px;
    font-weight: 900;
    color: var(--rm-navy);
    margin: 0 0 20px;
}

.home-brand-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--rm-text-gray);
}

/* افکت تایپ */
.home-type-effect {
    position: relative;
    padding-left: 4px;
    
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: rmBlinkCursor .8s step-end infinite;
}

@keyframes rmBlinkCursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--rm-navy);
    }
}
.hero-content {
	padding-right:100px;
}
@media (max-width: 1280px) {
	.hero-content {
		padding-right:25px;
	}
}
@media (max-width: 1050px) {
	.hero-content {
		padding-right:35px;
	}
}
@media (max-width: 991px) {
	.hero-content {
		padding-right:100px;
	}
}
@media (max-width: 767px) {
	.hero-content {
		padding-right:0;
	}
}
@media (max-width: 580px) {
	.hero-content {
		padding-right:0;
	}
}
/* =====================================================
   VIDEO SECTION
===================================================== */
.video-section {
    background: var(--rm-white);
    padding: 80px 0;
}

.video-cover-wrap {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 8;
    box-shadow: 0 7px 41px rgba(55, 78, 173, 1);
}
.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.video-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 35, 64, .15) 0%, rgba(28, 35, 64, .55) 100%);
    transition: var(--rm-transition);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--rm-navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
    animation: rmPlayPulse 2.4s ease-out infinite;
    transition: var(--rm-transition);
}

.video-play-btn i {
    margin-right: -4px;
    /* آیکون پلی کمی به سمت راست کج است، برای مرکز چین بصری اصلاح می‌شود */
}
.video-play-btn i::before {
	vertical-align: -0.3em !important;
}
.video-cover-caption {
    position: absolute;
    bottom: 26px;
    right: 0;
    left: 0;
    text-align: center;
    color: var(--rm-white);
    font-size: 18px;
    font-weight: 700;
}

@keyframes rmPlayPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
    }

    70% {
        box-shadow: 0 0 0 22px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.video-cover-wrap:hover .video-cover-img {
    transform: scale(1.06);
}

.video-cover-wrap:hover .video-cover-overlay {
    background: linear-gradient(180deg, rgba(28, 35, 64, .1) 0%, rgba(28, 35, 64, .68) 100%);
}

.video-cover-wrap:hover .video-play-btn {
    background: var(--rm-gold);
    color: var(--rm-navy-deep);
    transform: translate(50%, -50%) scale(1.1);
}

.video-modal .modal-content {
    background: #000;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -42px;
    left: 0;
    filter: invert(1);
    z-index: 5;
}
@media (max-width: 991px) {
	.video-cover-wrap {
		max-width:75% !important;
	}
}
/* =====================================================
   COUNTER SECTION
===================================================== */
.counter-section {
    background: var(--rm-navy-deep);
    padding: 70px 0;
}

.counter-wrap {
    row-gap: 30px;
	list-style: none;
}

.counter-item {
    text-align: center;
    color: var(--rm-white);
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.counter-item:last-child {
    border-left: 0;
}

.counter-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--rm-gold);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.counter-item h3 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--rm-white);
}

.counter-item p {
    font-size: 14px;
    color: #c7cbdc;
    margin: 0;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
	.site-header {
		top:0;
	}
	.header-inner, .header-top-row {
		border-radius:0;
	}
	.header-brand-logo {
		height: 45px;
		margin-top: 0;
	}
    .header-toggler {
        display: inline-flex;
		padding-top: 6px;
    }

    .Main-Nav {
        display: none;
    }

    .header-actions {
        /*display: none;*/
    }

    .hero-section {
        padding-top: 170px;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .home-3d-card {
        max-width: 340px;
    }

    .home-brand-title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .site-header {
        top: 0px;
    }
    .header-inner, .header-top-row {
        border-radius: 0px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .btn-header {
        padding: 8px 10px;
    }

    .header-brand-logo {
        height: 34px;
    }

    .brand-royal,
    .brand-mind {
        font-size: 16px;
    }

    .header-brand-desc {
        display: none;
    }
	.headerSpacer {
		display:block;
	}
.hero-section {
    padding-top: 45px;
	}
    .hero-title {
        font-size: 30px;
    }

    .btn-hero-cta {
        width: 100%;
        text-align: center;
    }

    .video-play-btn {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }

    .video-cover-caption {
        font-size: 15px;
        bottom: 16px;
    }

    .counter-item {
        border-left: 0;
        margin-bottom: 10px;
    }

    .counter-item h3 {
        font-size: 26px;
    }
}
@media (max-width: 580px) {
    .btn-header.btn-signup,
    .btn-header.btn-login {
        display: none;
    }
}
/*
courses.css
استایل بخش «دوره‌های آموزشی» (کارت‌های محصول ووکامرس)
مهم: این فایل به متغیرهای CSS تعریف‌شده در style.css نیاز داره
(--rm-navy, --rm-navy-deep, --rm-gold, --rm-text-gray, --rm-white, --rm-font ...)
پس حتماً بعد از style.css لود بشه، یا محتواش رو به آخر style.css اضافه کنید.
*/

.courses-section {
    background: var(--rm-light-gray, #f3f3f7);
    padding: 70px 0;
}

.section-header {
    max-width: 640px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px;
    color: var(--rm-text-gray, #6b7280);
    margin: 0;
}

/* -----------------------------------------------------
courses-section
------------------------------------------------------ */
.courses-section .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

.courses-section .products li.product {
    background: var(--rm-white, #fff);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(28, 35, 64, .08);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

.courses-section .products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(28, 35, 64, .14);
}

.courses-section .products li.product a.woocommerce-loop-product__link {
    color: inherit;
    display: block;
}

.courses-section .products li.product a.woocommerce-loop-product__link:hover {
    color: inherit;
}

/* تصویر + بج */
.course-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.course-thumb img.wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.courses-section .products li.product:hover .course-thumb img.wp-post-image {
    transform: scale(1.06);
}


.course-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--rm-navy-deep, #2c3352);
    color: var(--rm-white, #fff);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.course-badge-new {
    background: var(--rm-gold, #f2b632);
    color: var(--rm-navy-deep, #2c3352);
}

/* عنوان محصول */
h2.woocommerce-loop-product__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
    margin: 18px 18px 10px;
    line-height: 1.6;
}

/* ردیف متا: سطح / امتیاز / تعداد دانشجو */
.course-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 18px 10px;
    flex-wrap: wrap;
}

.course-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rm-text-gray, #6b7280);
}

.course-meta-item i {
    font-size: 13px;
    color: var(--rm-gold, #f2b632);
}

.course-meta-item.course-rating {
    color: #e0a419;
}

/* توضیح کوتاه */
.course-desc {
    font-size: 13.5px;
    color: var(--rm-text-gray, #6b7280);
    line-height: 1.9;
    margin: 0 18px 16px;
}

/* قیمت - span.price (del/ins استاندارد ووکامرس) */
.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 18px 16px;
    font-family: var(--rm-font, inherit);
}

.price del {
    order: 2;
    font-size: 13px;
    font-weight: 400;
    color: #a7abbd;
    text-decoration: line-through;
    opacity: .85;
}

.price ins {
    order: 1;
    font-size: 16px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    text-decoration: none;
}

.price .woocommerce-Price-currencySymbol {
    font-size: 12px;
    font-weight: 500;
}

a.button.add_to_cart_button,
a.button.product-details-button {
    display: block;
    margin: 0 18px 20px;
    text-align: center;
    padding: 12px 10px;
    border: 1.5px solid var(--rm-navy, #3d4767);
    border-radius: 10px;
    color: var(--rm-navy, #3d4767);
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    transition: var(--rm-transition, all .3s ease);
}

a.button.add_to_cart_button:hover,
a.button.product-details-button:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
}

/* دکمه‌ی پایین بخش - تگ a با ظاهر دکمه، متن آزادانه قابل تغییر */
.courses-cta {
    margin-top: 46px;
}

.btn-courses-cta {
    display: inline-block;
    background: var(--rm-navy-deep, #2c3352);
    color: var(--rm-white, #fff);
    font-size: 15px;
    font-weight: 700;
    padding: 15px 42px;
    border-radius: 40px;
    box-shadow: 0 14px 26px rgba(44, 51, 82, .22);
}
.educational-roadmap { margin-top: 0; margin-bottom: 15px; }
.btn-courses-cta:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
    transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .courses-section .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 575px) {

    /* موبایل: کارت‌ها زیر هم (تک‌ستونه) */
    .courses-section .products {
        grid-template-columns: 1fr;
    }

    .courses-section {
        padding: 60px 0;
    }
}
/*
webinars
*/

.webinars-section {
    background: var(--rm-hero-bg, #eef1fa);
    padding: 70px 0;
    overflow: hidden;
}

.webinar-slick {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.webinars-section .section-header {
    max-width: 640px;
    margin: 0 auto 50px;
}

.webinars-section .section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 12px;
}

.webinars-section .section-desc {
    font-size: 15px;
    color: var(--rm-text-gray, #6b7280);
    margin: 0;
}

.webinar-slick .product {
    background: var(--rm-white, #fff);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(28, 35, 64, .08);
    display: flex !important;
    flex-direction: column;
    height: auto;
}

.webinar-slick .product a.woocommerce-loop-product__link {
    color: inherit;
    display: block;
}

.webinar-slick .product a.woocommerce-loop-product__link:hover {
    color: inherit;
}

.course-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.course-thumb img.wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
    padding: 10px;
    border-radius: 19px;
}

.webinar-slick .product:hover .course-thumb img.wp-post-image {
    transform: scale(1.06);
}

.course-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--rm-navy-deep, #2c3352);
    color: var(--rm-white, #fff);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.course-badge-new {
    background: var(--rm-gold, #f2b632);
    color: var(--rm-navy-deep, #2c3352);
}

h2.woocommerce-loop-product__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
    margin: 5px 18px 10px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 18px 10px;
    flex-wrap: wrap;
}

.course-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rm-text-gray, #6b7280);
}

.course-meta-item i {
    font-size: 13px;
    color: var(--rm-gold, #f2b632);
}

.course-meta-item.course-rating {
    color: #e0a419;
}

.course-meta-item.course-date {
    color: var(--rm-navy, #3d4767);
}

.course-desc {
    font-size: 13.5px;
    color: var(--rm-text-gray, #6b7280);
    line-height: 1.9;
    margin: 0 18px 16px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 18px 16px;
    font-family: var(--rm-font, inherit);
}

.price del {
    order: 2;
    font-size: 13px;
    font-weight: 400;
    color: #a7abbd;
    text-decoration: line-through;
    opacity: .85;
}

.price ins {
    order: 1;
    font-size: 16px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    text-decoration: none;
}

.price .woocommerce-Price-currencySymbol {
    font-size: 12px;
    font-weight: 500;
}

a.button.add_to_cart_button,
a.button.product-details-button {
    display: block;
    margin: auto 18px 20px;
    text-align: center;
    padding: 12px 10px;
    border: 1.5px solid var(--rm-navy, #3d4767);
    border-radius: 10px;
    color: var(--rm-navy, #3d4767);
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    transition: var(--rm-transition, all .3s ease);
}

a.button.add_to_cart_button:hover,
a.button.product-details-button:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
}

.webinar-slick {
    padding: 0 4px 56px;
    /* فضای پایین برای دات‌ها */
}

.webinar-slick .slick-list {
    margin: 0 -13px;
    overflow: hidden;
}

.webinar-slick .slick-track {
    display: flex !important;
}

.webinar-slick .slick-slide {
    height: auto;
    margin: 0 13px;
    display: flex !important;
}

.webinar-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--rm-white, #fff);
    border: 1px solid #e5e7f0;
    color: var(--rm-navy, #3d4767);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(28, 35, 64, .12);
    transition: var(--rm-transition, all .3s ease);
}

.webinar-arrow:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
}

.webinar-arrow-prev {
    right: -8px;
}

.webinar-arrow-next {
    left: -8px;
}

/* دات‌ها - مارک‌آپ استاندارد اسلیک (ul.slick-dots) رو خودمون استایل می‌دیم */
.webinar-slick ~ .slick-dots,
.webinar-slick .slick-dots {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.webinar-slick .slick-dots li {
    display: flex;
}

.webinar-slick .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7dbeb;
    text-indent: -9999px;
    overflow: hidden;
    transition: var(--rm-transition, all .3s ease);
}

.webinar-slick .slick-dots li.slick-active button {
    background: var(--rm-navy, #3d4767);
    width: 22px;
    border-radius: 6px;
}

/* موقعیت‌دهی درست فلش‌ها نسبت به کانتینر */
.webinars-section .container {
    position: relative;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 767px) {
    .webinars-section .section-title {
        font-size: 26px;
    }

    .webinar-arrow {
        display: none;
        /* در موبایل با swipe انگشتی جابه‌جا می‌شه، فلش لازم نیست */
    }
}

/*--------faq--------*/

.faq-section {
    background: var(--rm-white, #fff);
    padding: 90px 0;
}

.faq-row {
    row-gap: 40px;
}

/* -----------------------------------------------------
   ستون عنوان + تصویر
------------------------------------------------------ */
.faq-intro-col {
    position: sticky;
    top: 110px;
}

.faq-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--rm-gold, #f2b632);
    background: rgba(242, 182, 50, .12);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.faq-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    line-height: 1.5;
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 15px;
    color: var(--rm-text-gray, #6b7280);
    margin-bottom: 30px;
}

.faq-illustration {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------------------------
   آکاردئون سوالات
------------------------------------------------------ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid #e5e7f0;
    border-radius: 14px;
    background: var(--rm-white, #fff);
    overflow: hidden;
    transition: var(--rm-transition, all .3s ease);
}

.faq-item.is-active {
    border-color: var(--rm-navy, #3d4767);
    box-shadow: 0 10px 26px rgba(28, 35, 64, .08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: 0;
    padding: 10px 22px;
    cursor: pointer;
    text-align: right;
    font-family: var(--rm-font, inherit);
}

.faq-q-text {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--rm-navy, #3d4767);
    line-height: 1.8;
}

.faq-q-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(61, 71, 103, .08);
    color: var(--rm-navy, #3d4767);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--rm-transition, all .3s ease);
}

.faq-item.is-active .faq-q-icon {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
    transform: rotate(135deg);
}

.faq-answer {
    display: none;
    padding: 0 22px 22px;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: var(--rm-text-gray, #6b7280);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .faq-intro-col {
        position: static;
        text-align: center;
    }

    .faq-illustration {
        margin: 0 auto;
    }

    .faq-title {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-q-text {
        font-size: 14px;
    }
}
/*
testimonials
*/

.testimonials-section {
    padding: 60px 0;
    background: linear-gradient(90deg, #E0E2FF 0%, #ECEEFF 100%);
}

.testimonials-panel {
    position: relative;
    border-radius: 32px;
    padding: 50px;
    overflow: hidden;
}

.testimonials-decor-icon {
    position: absolute;
    top: 0px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rm-white, #fff);
    color: var(--rm-navy, #3d4767);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(28, 35, 64, .1);
}

/* -----------------------------------------------------
   هدر: فلش‌ها + عنوان
------------------------------------------------------ */
.testimonials-head {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.testimonials-title-wrap {
    flex: 1;
}

.testimonials-title-wrap .section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 12px;
}

.testimonials-title-wrap .section-desc {
    font-size: 15px;
    color: var(--rm-text-gray, #6b7280);
    margin: 0;
    max-width: 620px;
}

.testimonials-nav {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    padding-top: 4px;
}

.testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rm-white, #fff);
    border: 0;
    color: var(--rm-navy, #3d4767);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(28, 35, 64, .1);
    transition: var(--rm-transition, all .3s ease);
}

.testimonial-arrow:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
}

/* -----------------------------------------------------
   اسلایدر نظرات
------------------------------------------------------ */
.testimonial-slick {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.testimonial-slick .slick-list {
    margin: 0 -14px;
}

.testimonial-slick .slick-track {
    display: flex !important;
}

.testimonial-slick .slick-slide {
    height: auto;
    margin: 0 14px;
    display: flex !important;
    flex-direction: column;
    /* نکته مهم: چون Slick کلاس slick-slide رو مستقیم روی همون
       li.testimonial-item می‌ذاره (نه یک div واسطه)، اگه اینجا فقط
       display:flex بدون flex-direction:column بذاریم، محتوای خودِ
       کارت (ستاره/متن/نویسنده) هم افقی می‌چینه که اشتباهه. */
}

.testimonial-item {
    height: 100%;
    background: var(--rm-white, #fff);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 24px rgba(28, 35, 64, .06);
}

.testimonial-rating {
    color: var(--rm-gold, #f2b632);
    font-size: 15px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.testimonial-text {
    font-size: 14.5px;
    line-height: 2;
    color: var(--rm-navy-deep, #2c3352);
    margin-bottom: 26px;
    min-height: 84px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.testimonial-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
}

.testimonial-course {
    display: block;
    font-size: 12.5px;
    color: var(--rm-text-gray, #6b7280);
    margin-top: 2px;
}

/* دات‌های اسلیک */
.testimonial-slick ~ .slick-dots,
.testimonials-panel .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
}

.testimonials-panel .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d3d6e6;
    text-indent: -9999px;
    overflow: hidden;
    transition: var(--rm-transition, all .3s ease);
}

.testimonials-panel .slick-dots li.slick-active button {
    background: var(--rm-navy, #3d4767);
    width: 24px;
    border-radius: 6px;
}

/* بج تزئینی گوشه */
.testimonials-badge {
    position: absolute;
    bottom: 26px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rm-gold, #f2b632);
    color: var(--rm-navy-deep, #2c3352);
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    transform: rotate(-3deg);
    box-shadow: 0 8px 16px rgba(242, 182, 50, .35);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 767px) {
    .testimonials-panel {
        padding: 34px 22px;
        border-radius: 24px;
    }

    .testimonials-head {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .testimonials-title-wrap .section-title {
        font-size: 24px;
    }

    .testimonials-decor-icon {
        display: none;
    }

    .testimonials-badge {
        right: 22px;
        bottom: 18px;
        font-size: 11px;
    }
}

/*
instructors
*/

.instructors-section {
    padding: 90px 0 70px;
}

.instructors-section .section-header {
    max-width: 680px;
    margin: 0 auto 46px;
    padding: 0 15px;
}

.instructors-section .section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    margin-bottom: 12px;
}

.instructors-section .section-desc {
    font-size: 15px;
    color: var(--rm-text-gray, #6b7280);
    margin: 0;
}

/* -----------------------------------------------------
   ظرف اسلایدر - با محو شدن لبه‌های راست/چپ (فید)
------------------------------------------------------ */
.instructor-slick-wrap {
    position: relative;
    padding: 0 15px;
}

.instructor-slick-wrap::before,
.instructor-slick-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 110px;
    z-index: 3;
    pointer-events: none;
}

.instructor-slick-wrap::before {
    right: 0;
    background: linear-gradient(to left, var(--rm-hero-bg, #eef1fa) 0%, rgba(238, 241, 250, 0) 100%);
}

.instructor-slick-wrap::after {
    left: 0;
    background: linear-gradient(to right, var(--rm-hero-bg, #eef1fa) 0%, rgba(238, 241, 250, 0) 100%);
}

.instructor-slick {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.instructor-slick .slick-list {
    margin: 0 -12px;
    overflow: hidden;
    /* بدون این خط، اسلایدر کل صفحه رو به‌صورت افقی اسکرول‌پذیر می‌کنه چون
       Slick همه‌ی کارت‌ها رو کنار هم تو یک ردیف عریض می‌چینه */
}

.instructor-slick .slick-track {
    display: flex !important;
}

.instructor-slick .slick-slide {
    height: auto;
    margin: 0 12px;
    display: flex !important;
}

/* -----------------------------------------------------
   کارت استاد
------------------------------------------------------ */
.instructor-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 12px 26px rgba(28, 35, 64, .1);
}

.instructor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instructor-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.instructor-overlay-gold {
    background: linear-gradient(0deg, rgba(242, 182, 50, .9) 0%, rgba(242, 182, 50, 0) 55%);
}

.instructor-overlay-blue {
    background: linear-gradient(0deg, rgba(111, 155, 255, .85) 0%, rgba(111, 155, 255, 0) 55%);
}

.instructor-info {
    position: absolute;
    right: 18px;
    left: 18px;
    bottom: 16px;
    z-index: 2;
}

.instructor-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--rm-navy-deep, #2c3352);
    margin: 0 0 6px;
}

.instructor-exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rm-navy-deep, #2c3352);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .instructors-section .section-title {
        font-size: 26px;
    }

    .instructor-slick-wrap::before,
    .instructor-slick-wrap::after {
        width: 50px;
    }
}

@media (max-width: 575px) {
    .instructors-section {
        padding: 60px 0 50px;
    }
}
/*
consultation-form
*/
/*
=====================================================
 Consultation Form
 Compatible with Gravity Forms - Orbital Theme
=====================================================
*/
.consultation-section {
    padding: 90px 0;
    background: var(--rm-white, #fff);
}
.consultation-card {
    display: flex;
    align-items: stretch;
    background: var(--rm-navy-deep, #1b2140);
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
    max-width: 980px;
    margin: 0 auto;
}
/* =====================================================
   IMAGE
===================================================== */
.consultation-image {
    position: relative;
    flex: 0 0 42%;
    max-width: 42%;
}
.consultation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.consultation-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(27, 33, 64, 0) 60%,
        rgba(27, 33, 64, .95) 100%
    );
}
/* =====================================================
   FORM COLUMN
===================================================== */
.consultation-form-col {
    flex: 1;
    padding: 26px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.consultation-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--rm-white, #fff);
    margin-bottom: 16px;
}
/* =====================================================
   GRAVITY FORMS WRAPPER
===================================================== */
.consultation-form-wrap,
.consultation-form-wrap .gform_wrapper {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
/*
   عنوانی که خود Gravity Forms داخل فرم تولید می‌کند
   چون عنوان اصلی را خودمان با consultation-title داریم،
   عنوان GF را مخفی می‌کنیم.
*/
.consultation-form-wrap .gform_heading {
    display: none !important;
}
.consultation-form-wrap .gform_title {
    display: none !important;
}
/* =====================================================
   FORM BODY
===================================================== */
.consultation-form-wrap .gform-body,
.consultation-form-wrap .gform_body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
.consultation-form-wrap .gform_fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}
/* =====================================================
   FIELD
===================================================== */
.consultation-form-wrap .gfield {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
/* =====================================================
   LABEL
===================================================== */
.consultation-form-wrap .gfield_label,
.consultation-form-wrap .gform-field-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.consultation-form-wrap .gfield_required {
    display: none !important;
}
/* =====================================================
   INPUT CONTAINER
===================================================== */
.consultation-form-wrap .ginput_container {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
/* =====================================================
   ALL INPUTS
===================================================== */
.consultation-form-wrap input[type="text"],
.consultation-form-wrap input[type="email"],
.consultation-form-wrap input[type="tel"],
.consultation-form-wrap input[type="number"],
.consultation-form-wrap input[type="url"],
.consultation-form-wrap input[type="password"],
.consultation-form-wrap select,
.consultation-form-wrap textarea {
    width: 100% !important;
    min-height: unset !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, .25) !important;
    border-radius: 14px !important;
    padding: 11px 18px !important;
    color: var(--rm-white, #fff) !important;
    font-family: var(--rm-font, inherit) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    transition: var(--rm-transition, all .3s ease) !important;
}
/* =====================================================
   PLACEHOLDER
===================================================== */
.consultation-form-wrap input::placeholder,
.consultation-form-wrap textarea::placeholder {
    color: rgba(255, 255, 255, .5) !important;
    opacity: 1 !important;
}
/* =====================================================
   FOCUS
===================================================== */
.consultation-form-wrap input:focus,
.consultation-form-wrap textarea:focus,
.consultation-form-wrap select:focus {
    outline: none !important;
    border-color: var(--rm-gold, #f2b632) !important;
    background: rgba(255, 255, 255, .04) !important;
    box-shadow: none !important;
}
/* =====================================================
   NAME FIELD
===================================================== */
.consultation-form-wrap .ginput_complex {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.consultation-form-wrap .ginput_complex .name_first {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.consultation-form-wrap .ginput_complex input {
    width: 100% !important;
}
/* =====================================================
   FOOTER / SUBMIT
===================================================== */
.consultation-form-wrap .gform-footer,
.consultation-form-wrap .gform_footer {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
/* =====================================================
   SUBMIT BUTTON
===================================================== */
.consultation-form-wrap .gform-footer input[type="submit"],
.consultation-form-wrap .gform_footer input[type="submit"],
.consultation-form-wrap .gform-footer button.gform_button,
.consultation-form-wrap .gform_footer button.gform_button {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    background: var(--rm-gold, #f2b632) !important;
    color: var(--rm-navy-deep, #2c3352) !important;
    border: 0 !important;
    border-radius: 30px !important;
    padding: 11px 30px !important;
    margin: 0 !important;
    font-family: var(--rm-font, inherit) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: var(--rm-transition, all .3s ease) !important;
}
.consultation-form-wrap .gform-footer input[type="submit"]:hover,
.consultation-form-wrap .gform_footer input[type="submit"]:hover,
.consultation-form-wrap .gform-footer button.gform_button:hover,
.consultation-form-wrap .gform_footer button.gform_button:hover {
    background: #e2a41f !important;
    color: var(--rm-navy-deep, #2c3352) !important;
    transform: translateY(-2px);
}
/* =====================================================
   REMOVE GRAVITY FORMS DEFAULT STYLING
===================================================== */
.consultation-form-wrap .gform_wrapper input,
.consultation-form-wrap .gform_wrapper textarea,
.consultation-form-wrap .gform_wrapper select {
    box-shadow: none !important;
}
.consultation-form-wrap .gform_wrapper .gfield:before,
.consultation-form-wrap .gform_wrapper .gfield:after {
    display: none !important;
}
/* =====================================================
   VALIDATION
===================================================== */
.consultation-form-wrap .validation_error,
.consultation-form-wrap .gform_validation_errors {
    color: #ffb4b4 !important;
    background: rgba(255, 90, 90, .12) !important;
    border: 1px solid rgba(255, 90, 90, .3) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
}
.consultation-form-wrap .gfield_error input,
.consultation-form-wrap .gfield_error textarea,
.consultation-form-wrap .gfield_error select {
    border-color: #ff8080 !important;
}
.consultation-form-wrap .gfield_description.validation_message,
.consultation-form-wrap .gfield_validation_message {
    color: #ffb4b4 !important;
    font-size: 12px !important;
    margin-top: 6px !important;
}
/* =====================================================
   CONFIRMATION
===================================================== */
.consultation-form-wrap .gform_confirmation_message,
.consultation-form-wrap .gform_confirmation_wrapper {
    color: var(--rm-white, #fff) !important;
    font-size: 15px !important;
    text-align: center;
    padding: 30px 0 !important;
}
/* =====================================================
   SPINNER
===================================================== */
.consultation-form-wrap .gform_ajax_spinner {

    margin-right: 10px;
}
/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {
    .consultation-form-col {
        padding: 30px 36px;
    }
    .consultation-title {
        font-size: 18px;
    }
}
@media (max-width: 767px) {
    .consultation-section {
        padding: 60px 0;
    }
    .consultation-card {
        flex-direction: column;
        border-radius: 24px;
        height: auto;
    }
    .consultation-image {
        max-width: 100%;
        flex: none;
        height: 350px;
    }
    .consultation-image::after {
        background: linear-gradient(
            to top,
            rgba(27, 33, 64, .95) 0%,
            rgba(27, 33, 64, 0) 45%
        );
    }
    .consultation-form-col {
        padding: 34px 24px;
    }
}
/* فاصله کمتر بین فیلدهای فرم */
.consultation-form-wrap .gform_fields {
    gap: 5px !important;
}

.consultation-form-wrap .gfield {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.consultation-form-wrap .ginput_container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ------------------footer -----------------*/

.site-footer {
    background: var(--rm-navy-deep, #1b2140);
    padding: 70px 0 0;
}

.footer-row {
    row-gap: 40px;
}

.footer-col-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--rm-white, #fff);
    margin-bottom: 24px;
}

/* -----------------------------------------------------
   ستون برند
------------------------------------------------------ */
.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo-img {
    height: 75px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 15px;
    font-weight: 700;
    color: var(--rm-gold, #f2b632);
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 2;
    color: #b7bcd4;
    max-width: 380px;
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--rm-gold, #f2b632);
    color: var(--rm-navy-deep, #1b2140);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--rm-transition, all .3s ease);
}

.footer-social-link:hover {
    background: var(--rm-white, #fff);
    color: var(--rm-navy-deep, #1b2140);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-badge-img {
    height: 70px;
    width: auto;
    border-radius: 6px;
}

/* -----------------------------------------------------
   ستون‌های لینک
------------------------------------------------------ */
.footer-links, #menu-footer-links1, menu-footer-links2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a, #menu-footer-links1 a, menu-footer-links2 a {
    font-size: 14px;
    color: #b7bcd4;
    transition: var(--rm-transition, all .3s ease);
}

.footer-links a:hover, #menu-footer-links1 a:hover, menu-footer-links2 a:hover {
    color: var(--rm-gold, #f2b632);
}

/* -----------------------------------------------------
   نوار کپی‌رایت
------------------------------------------------------ */
.footer-bottom {
    margin-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright,
.footer-credit {
    margin: 0;
    font-size: 12.5px;
    color: #8a8fb0;
}

.footer-credit a {
    color: #b7bcd4;
    font-weight: 600;
}

.footer-credit a:hover {
    color: var(--rm-gold, #f2b632);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 50px;
        text-align: center;
    }

    .footer-social,
    .footer-badges {
        justify-content: center;
    }

    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
.alignright {
	display:inline;
	float:right;
	text-align:right;
    margin-left: 10px;
}
.alignleft {
	display:inline;
	float:left;
	text-align:left;
    margin-right: 10px;
}
.aligncenter {
	display:block;
	margin:10px auto;
	text-align:center;
}
.alignleft,.alignright,.aligncenter {
    padding: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
/*
archive-products.css
فقط چیزهای جدیدی که تو courses.css/style.css نبودن:
صفحه‌بندی (pagination) صفحه‌ی آرشیو محصولات.
گرید کارت‌ها، کارت دوره، قیمت، دکمه و بج همه از courses.css میان -
عمداً اینجا تکرار نشدن.
*/

.woocommerce-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.woocommerce-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-pagination .page-numbers li {
    display: flex;
}

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--rm-white, #fff);
    color: var(--rm-navy, #3d4767);
    font-size: 14px;
    font-weight: 600;
    transition: var(--rm-transition, all .3s ease);
}

.woocommerce-pagination a.page-numbers:hover {
    background: var(--rm-navy, #3d4767);
    color: var(--rm-white, #fff);
}

.woocommerce-pagination span.page-numbers.current {
    background: var(--rm-hero-bg, #eef1fa);
    color: var(--rm-white, #fff);
}
/*
archive
*/
.blog-archive-section {
    padding: 50px 0 80px;
    background: var(--rm-hero-bg, #eef1fa);
}

.blog-archive-header {
    margin-bottom: 34px;
}

.blog-archive-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.blog-archive-header .archive-label {
    color: #1c2340;
}

.blog-archive-header .archive-name {
    color: var(--rm-navy, #3d4767);
}

.blog-post-row {
    row-gap: 34px;
}

/* -----------------------------------------------------
   کارت مقاله
------------------------------------------------------ */
.blog-post-card {
    display: block;
    height: 100%;
    color: inherit;
	padding: 12px 0;
}
.blog-post-row {
	display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-post-row .blog-post {
	background:#fff;
	border-radius:18px;
}
.blog-post-card:hover {
    color: inherit;
}
@media (min-width: 992px) {
    .blog-post-row {
        gap: 10px;
    }

    .blog-post-row .blog-post {
        flex: 0 0 calc(33.333333% - 6.666666px);
        max-width: calc(33.333333% - 6.666666px);
    }
}
/* تصویر با افکت قاب دوتایی (یه حاشیه‌ی نازک روشن روی خودِ عکس) */
.blog-post-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
}

.blog-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.blog-post-card:hover .blog-post-thumb img {
    transform: scale(1.06);
}

.blog-post-thumb::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 10px;
    pointer-events: none;
}

.blog-post-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--rm-navy, #3d4767);
    line-height: 1.7;
    margin-bottom: 12px;
    transition: var(--rm-transition, all .3s ease);
}

.blog-post-card:hover .blog-post-title {
    color: var(--rm-gold, #f2b632);
}

.blog-post-excerpt {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--rm-text-gray, #6b7280);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-more {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rm-navy, #3d4767);
}

.blog-post-card:hover .blog-post-more {
    color: var(--rm-gold, #f2b632);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 767px) {
    .blog-archive-section {
        padding: 34px 0 60px;
    }

    .blog-archive-header h1 {
        font-size: 21px;
    }
}
/*
mobile-bottom-nav.css
نوار پایین ثابت مخصوص موبایل/تبلت (زیر lg مخفی می‌شه چون خودِ HTML
کلاس d-lg-none داره - این فایل فقط ظاهرش رو می‌سازه)
نیاز به متغیرهای CSS از style.css داره (--rm-navy-deep, --rm-gold, ...)
باید بعد از style.css لود بشه.
*/

.mobile-bottom-nav {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--rm-gold);
    padding: 10px 6px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    color: var(--rm-navy-deep, #1b2140);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    transition: var(--rm-transition, all .3s ease);
}

.mobile-nav-item i {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item.is-active {
    color: var(--rm-navy-deep, #1b2140);
}

.mobile-nav-item.is-active i {
    color: var(--rm-navy-deep, #1b2140);
}

/* فاصله‌ی جبرانی ته صفحه، تا این نوار ثابت روی فوتر/محتوا رو
   نپوشونه - فقط تو همون بازه‌ای که نوار نمایش داده می‌شه */
@media (max-width: 991px) {
    body {
        padding-bottom: 64px;
    }
}
/* =========================================================
   HERO BOOK
   Completely isolated from Bootstrap / WooCommerce
   ========================================================= */


/* ---------------------------------------------------------
   SCENE
   --------------------------------------------------------- */

.hero-visual .custom-book-scene {
    position: relative;

    width: 100%;
    max-width: 520px;

    height: 520px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}


/* ---------------------------------------------------------
   BOOK TRIGGER
   --------------------------------------------------------- */

.hero-visual .custom-book-trigger {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 300px;
    height: 418px;

    transform: translate(-50%, -50%);

    z-index: 20;
}


/* حذف کامل استایل‌های Bootstrap / Theme از UL و LI */

.hero-visual .custom-book-trigger > ul,
.hero-visual .custom-book-trigger > ul > li {

    width: 300px;
    height: 418px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* ---------------------------------------------------------
   BOOK
   --------------------------------------------------------- */

.hero-visual .custom-book {
    position: relative;

    width: 300px;
    height: 418px;

    perspective: 1800px;

    transform-style: preserve-3d;
}


/* ---------------------------------------------------------
   FRONT + BACK
   --------------------------------------------------------- */

.hero-visual .custom-book-front,
.hero-visual .custom-book-back,
.hero-visual .custom-book-front > li,
.hero-visual .custom-book-back > li {

    position: absolute;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    list-style: none;

    transform-style: preserve-3d;
}


.hero-visual .custom-book-front,
.hero-visual .custom-book-back {

    transform-origin: 100% 100%;
}


/* ---------------------------------------------------------
   FRONT COVER
   --------------------------------------------------------- */

.hero-visual .custom-book-front {

    z-index: 20;

    transform:
        rotateY(34deg)
        translateZ(18px);

    transition:
        transform .92s
        cubic-bezier(.20,.72,.20,1)
        .08s;
}


.hero-visual .custom-book-front > li {

    border-radius:
        5px 2px 2px 5px;

    overflow: hidden;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* جلد */

.hero-visual .custom-book-frontcover {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: inherit;

    background: #4b3d85;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        0 7px 18px rgba(0,0,0,.22);
}


.hero-visual .custom-book-frontcover img {

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;

    object-position: center;
}


/* پشت جلد جلو */

.hero-visual .custom-book-front > li:last-child {

    background: #453978;

    transform:
        rotateY(180deg)
        translateZ(2px);
}


/* ---------------------------------------------------------
   BACK COVER
   --------------------------------------------------------- */

.hero-visual .custom-book-back {

    z-index: 0;

    width: 98%;

    right: 0;

    transform:
        rotateY(34deg)
        translateZ(-14px);
}


.hero-visual .custom-book-back > li {

    background: #40346f;

    border-radius:
        5px 2px 2px 5px;

    box-shadow:
        inset 4px 0 10px rgba(255,255,255,.05),
        -8px 10px 20px rgba(0,0,0,.20);
}


.hero-visual .custom-book-back > li:last-child {

    transform:
        rotateY(180deg)
        translateZ(2px);
}


/* ---------------------------------------------------------
   PAGES
   --------------------------------------------------------- */

.hero-visual .custom-book-pages {

    position: absolute;

    z-index: 10;

    width: 94%;
    height: 96%;

    top: 2%;
    right: 3%;

    margin: 0;
    padding: 0;

    list-style: none;

    transform-style: preserve-3d;
}


.hero-visual .custom-book-pages > li {

    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    right: 0;

    margin: 0;
    padding: 0;

    list-style: none;

    transform-origin: 100% 100%;

    background: #fff;

    overflow: hidden;

    border-radius:
        6px 1px 1px 6px;

    box-shadow:
        inset 1px -1px 2px rgba(50,50,50,.12),
        inset 1px 0 1px rgba(150,150,150,.20),
        -2px 3px 8px rgba(0,0,0,.12);

    transition:
        transform .66s
        cubic-bezier(.22,.72,.24,1);

    transform-style: preserve-3d;

    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}


.hero-visual .custom-book-pages > li img {

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;

    pointer-events: none;
}


/* ---------------------------------------------------------
   INITIAL PAGE POSITIONS
   --------------------------------------------------------- */

.hero-visual .custom-book-pages > li:nth-child(1) {

    transform:
        rotateY(34deg)
        translateZ(-2px);

    z-index: 6;
}


.hero-visual .custom-book-pages > li:nth-child(2) {

    transform:
        rotateY(34deg)
        translateZ(-4px);

    z-index: 5;
}


.hero-visual .custom-book-pages > li:nth-child(3) {

    transform:
        rotateY(34deg)
        translateZ(-6px);

    z-index: 4;
}


.hero-visual .custom-book-pages > li:nth-child(4) {

    transform:
        rotateY(34deg)
        translateZ(-8px);

    z-index: 3;
}


.hero-visual .custom-book-pages > li:nth-child(5) {

    transform:
        rotateY(34deg)
        translateZ(-10px);

    z-index: 2;
}


.hero-visual .custom-book-pages > li:nth-child(6) {

    transform:
        rotateY(34deg)
        translateZ(-12px);

    z-index: 1;
}


/* ---------------------------------------------------------
   OPEN BOOK
   --------------------------------------------------------- */

.hero-visual .custom-book-trigger:hover
.custom-book .custom-book-front {

    transform:
        rotateY(145deg)
        translateZ(0);

    transition-duration: .9s;

    transition-delay: 0s;
}


/* ---------------------------------------------------------
   PAGE 1
   --------------------------------------------------------- */

.hero-visual .custom-book-trigger:hover
.custom-book > .custom-book-pages > li:nth-child(1) {

    transform: rotateY(35deg);

    transition-duration: 1.5s;
}


/* PAGE 2 */

.hero-visual .custom-book-trigger:hover
.custom-book > .custom-book-pages > li:nth-child(2) {

    transform: rotateY(48deg);

    transition-duration: 1.7s;
}


/* PAGE 3 */

.hero-visual .custom-book-trigger:hover
.custom-book > .custom-book-pages > li:nth-child(3) {

    transform: rotateY(118deg);

    transition-duration: 1.6s;
}


/* PAGE 4 */

.hero-visual .custom-book-trigger:hover
.custom-book > .custom-book-pages > li:nth-child(4) {

    transform: rotateY(128deg);

    transition-duration: 1.5s;
}


/* PAGE 5 */

.hero-visual .custom-book-trigger:hover
.custom-book > .custom-book-pages > li:nth-child(5) {

    transform: rotateY(138deg);

    transition-duration: 1.35s;
}


/* PAGE 6 */

.hero-visual .custom-book-trigger:hover
.custom-book > .custom-book-pages > li:nth-child(6) {

    transform: rotateY(144deg);

    transition-duration: 1.2s;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.hero-visual .custom-book-products {

    position: absolute;

    inset: 0;

    z-index: 40;

    pointer-events: none;
}


/* ---------------------------------------------------------
   ORBIT
   --------------------------------------------------------- */

.hero-visual .custom-product-orbit {

    --radius: 220px;
    --size: 60px;
    --duration: 13s;
    --phase: -2s;
    --delay: .2s;

    position: absolute;

    left: 50%;
    top: 50%;

    width: 0;
    height: 0;

    opacity: 0;

    transform-origin: 0 0;

    animation:
        customBookOrbit
        var(--duration)
        linear
        infinite;

    animation-delay: var(--phase);

    animation-play-state: paused;

    transition:
        opacity .22s ease;

    will-change:
        transform,
        opacity;
}


/* ---------------------------------------------------------
   PRODUCT SHELL
   --------------------------------------------------------- */

.hero-visual .custom-product-shell {

    position: absolute;

    left: 0;
    top: 0;

    width: var(--size);

    transform:
        translate(-50%, -50%)
        translateX(0)
        scale(.08);

    transform-origin: center;

    transition:
        transform .76s
        cubic-bezier(.18,.74,.22,1);

    will-change: transform;
}


.hero-visual .custom-product-shell img {

    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    filter:
        drop-shadow(
            0 7px 8px rgba(0,0,0,.24)
        );

    animation:
        customBookCounterSpin
        var(--duration)
        linear
        infinite;

    animation-delay: var(--phase);

    animation-play-state: paused;
}


/* ---------------------------------------------------------
   PRODUCT LAUNCH
   --------------------------------------------------------- */

.hero-visual
.custom-book-trigger:hover
+ .custom-book-products
.custom-product-orbit {

    opacity: 1;

    animation-play-state: running;

    transition-delay: var(--delay);
}


.hero-visual
.custom-book-trigger:hover
+ .custom-book-products
.custom-product-shell {

    transform:
        translate(-50%, -50%)
        translateX(var(--radius))
        scale(1);

    transition-delay: var(--delay);
}


.hero-visual
.custom-book-trigger:hover
+ .custom-book-products
.custom-product-shell img {

    animation-play-state: running;
}


/* ---------------------------------------------------------
   ANIMATIONS
   --------------------------------------------------------- */

@keyframes customBookOrbit {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes customBookCounterSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}


/* =========================================================
   PRODUCT INDIVIDUAL SETTINGS
   ========================================================= */

.hero-visual .custom-p1 {
    --radius: 220px;
    --size: 42px;
    --duration: 12.5s;
    --phase: -1s;
    --delay: .16s;
}

.hero-visual .custom-p2 {
    --radius: 245px;
    --size: 60px;
    --duration: 15s;
    --phase: -5.5s;
    --delay: .22s;
}

.hero-visual .custom-p3 {
    --radius: 228px;
    --size: 46px;
    --duration: 13.8s;
    --phase: -9s;
    --delay: .28s;
}

.hero-visual .custom-p4 {
    --radius: 252px;
    --size: 55px;
    --duration: 16.5s;
    --phase: -3.8s;
    --delay: .34s;
}

.hero-visual .custom-p5 {
    --radius: 238px;
    --size: 62px;
    --duration: 14.6s;
    --phase: -11.2s;
    --delay: .40s;
}

.hero-visual .custom-p6 {
    --radius: 218px;
    --size: 64px;
    --duration: 12.8s;
    --phase: -7.3s;
    --delay: .46s;
}

.hero-visual .custom-p7 {
    --radius: 250px;
    --size: 66px;
    --duration: 17.2s;
    --phase: -13.6s;
    --delay: .52s;
}

.hero-visual .custom-p8 {
    --radius: 226px;
    --size: 56px;
    --duration: 14.1s;
    --phase: -2.7s;
    --delay: .58s;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .hero-visual .custom-book-scene {

        width: 100%;

        max-width: 520px;

        height: 520px;

        margin: 0 auto;
    }
}


@media (max-width: 600px) {

    .hero-visual .custom-book-scene {

        height: 440px;

        transform: scale(.82);

        transform-origin: center;
    }

    .hero-visual .custom-book-trigger,
    .hero-visual .custom-book-trigger > ul,
    .hero-visual .custom-book-trigger > ul > li {

        width: 300px;
        height: 418px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-visual
    .custom-product-orbit,

    .hero-visual
    .custom-product-shell img {

        animation: none !important;
    }

    .hero-visual
    .custom-product-shell,

    .hero-visual
    .custom-product-orbit,

    .hero-visual
    .custom-book-front,

    .hero-visual
    .custom-book-pages > li {

        transition-duration: .01ms !important;
    }
}
/* =========================================================
   TABLET + MOBILE
   Desktop CSS remains completely untouched
   ========================================================= */
/* =========================================================
   TABLET
   601px — 991px
   ========================================================= */
@media (min-width: 601px) and (max-width: 991px) {
    /* -----------------------------------------------------
       Scene
       ----------------------------------------------------- */
    .hero-visual .custom-book-scene {
        position: relative;
        width: 100%;
        max-width: 520px;
        height: 500px;
        margin: 0 auto;
        overflow: visible;
    }
    /* -----------------------------------------------------
       Book
       ----------------------------------------------------- */
    .hero-visual .custom-book-trigger {
        cursor: pointer;
        z-index: 20;
    }
    /*
       وقتی کاربر روی کتاب Tap می‌کند،
       این کلاس با JS اضافه می‌شود.
    */
    .hero-visual .custom-book-trigger.is-open
    .custom-book .custom-book-front {
        transform:
            rotateY(145deg)
            translateZ(0);
        transition-duration: .9s;
        transition-delay: 0s;
    }
    /* -----------------------------------------------------
       Tablet pages
       ----------------------------------------------------- */
    .hero-visual .custom-book-trigger.is-open
    .custom-book > .custom-book-pages > li:nth-child(1) {
        transform: rotateY(35deg);
        transition-duration: 1.5s;
    }
    .hero-visual .custom-book-trigger.is-open
    .custom-book > .custom-book-pages > li:nth-child(2) {
        transform: rotateY(48deg);
        transition-duration: 1.7s;
    }
    .hero-visual .custom-book-trigger.is-open
    .custom-book > .custom-book-pages > li:nth-child(3) {
        transform: rotateY(118deg);
        transition-duration: 1.6s;
    }
    .hero-visual .custom-book-trigger.is-open
    .custom-book > .custom-book-pages > li:nth-child(4) {
        transform: rotateY(128deg);
        transition-duration: 1.5s;
    }
    .hero-visual .custom-book-trigger.is-open
    .custom-book > .custom-book-pages > li:nth-child(5) {
        transform: rotateY(138deg);
        transition-duration: 1.35s;
    }
    .hero-visual .custom-book-trigger.is-open
    .custom-book > .custom-book-pages > li:nth-child(6) {
        transform: rotateY(144deg);
        transition-duration: 1.2s;
    }
    /* -----------------------------------------------------
       Hide products 5-8 on tablet
       ----------------------------------------------------- */
    .hero-visual .custom-p5,
    .hero-visual .custom-p6,
    .hero-visual .custom-p7,
    .hero-visual .custom-p8 {
        display: none;
    }
    /* -----------------------------------------------------
       Tablet products
       ----------------------------------------------------- */
    .hero-visual .custom-product-orbit {
        animation: none !important;
        opacity: 0;
        transition:
            opacity .45s ease,
            transform .7s cubic-bezier(.18,.74,.22,1);
    }
    /*
       محصولات بعد از باز شدن کتاب
       از مرکز به موقعیت نهایی می‌روند.
    */
    .hero-visual .custom-book-trigger.is-open
    + .custom-book-products
    .custom-product-orbit {
        opacity: 1;
        animation: none !important;
    }
    .hero-visual .custom-product-shell {
        transition:
            transform .75s
            cubic-bezier(.18,.74,.22,1);
    }
    .hero-visual .custom-book-trigger.is-open
    + .custom-book-products
    .custom-product-shell {
        transform:
            translate(-50%, -50%)
            translateX(var(--radius))
            scale(1);
    }
    .hero-visual .custom-product-shell img {
        animation: none !important;
    }
    /* -----------------------------------------------------
       Tablet product positions
       ----------------------------------------------------- */
    .hero-visual .custom-p1 {
        --radius: 180px;
        --size: 42px;
        left: 50%;
        top: 50%;
    }
    .hero-visual .custom-p2 {
        --radius: 205px;
        --size: 58px;
        left: 50%;
        top: 50%;
    }
    .hero-visual .custom-p3 {
        --radius: 190px;
        --size: 45px;
        left: 50%;
        top: 50%;
    }
    .hero-visual .custom-p4 {
        --radius: 215px;
        --size: 55px;
        left: 50%;
        top: 50%;
    }
    /*
       برای اینکه ۴ محصول در اطراف کتاب
       پخش شوند، زاویه‌ی هر کدام را با
       transform اولیه کنترل می‌کنیم.
    */
    .hero-visual .custom-p1 .custom-product-shell {
        transform:
            translate(-50%, -50%)
            translateX(180px)
            scale(1);
    }
    .hero-visual .custom-p2 .custom-product-shell {
        transform:
            translate(-50%, -50%)
            translateX(205px)
            scale(1);
    }
    .hero-visual .custom-p3 .custom-product-shell {
        transform:
            translate(-50%, -50%)
            translateX(190px)
            scale(1);
    }
    .hero-visual .custom-p4 .custom-product-shell {
        transform:
            translate(-50%, -50%)
            translateX(215px)
            scale(1);
    }
    /* -----------------------------------------------------
       Tablet product entrance
       ----------------------------------------------------- */
    .hero-visual .custom-p1 {
        transform: rotate(25deg);
    }
    .hero-visual .custom-p2 {
        transform: rotate(145deg);
    }
    .hero-visual .custom-p3 {
        transform: rotate(215deg);
    }
    .hero-visual .custom-p4 {
        transform: rotate(325deg);
    }
    .hero-visual .custom-book-trigger.is-open
    + .custom-book-products
    .custom-p1 {
        transition-delay: .05s;
    }
    .hero-visual .custom-book-trigger.is-open
    + .custom-book-products
    .custom-p2 {
        transition-delay: .12s;
    }
    .hero-visual .custom-book-trigger.is-open
    + .custom-book-products
    .custom-p3 {
        transition-delay: .19s;
    }
    .hero-visual .custom-book-trigger.is-open
    + .custom-book-products
    .custom-p4 {
        transition-delay: .26s;
    }
}
/* =========================================================
   MOBILE
   0 — 600px
   ========================================================= */
@media (max-width: 600px) {
    /* -----------------------------------------------------
       HERO VISUAL
       ----------------------------------------------------- */
    .hero-visual {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }
    /* -----------------------------------------------------
       SCENE
       ----------------------------------------------------- */
    .hero-visual .custom-book-scene {
        position: relative;
        width: 100%;
        height: 360px;
        margin: 0 auto;
        overflow: visible;
        transform: none;
    }
    /* -----------------------------------------------------
       BOOK TRIGGER
       ----------------------------------------------------- */
    .hero-visual .custom-book-trigger {
        position: absolute;
        /*
           مرکز واقعی ستون
        */
        left: 50%;
        top: 50%;
        width: 300px;
        height: 418px;
        /*
           کتاب را کوچک می‌کنیم
           و مرکز بصری آن را کمی به چپ می‌بریم
        */
        transform:
            translate(-62%, -50%)
            scale(.58);
        transform-origin: center center;
        z-index: 20;
        cursor: default;
    }
    /* -----------------------------------------------------
       RESET UL / LI
       ----------------------------------------------------- */
    .hero-visual .custom-book-trigger > ul,
    .hero-visual .custom-book-trigger > ul > li {
        width: 300px;
        height: 418px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    /* -----------------------------------------------------
       BOOK
       ----------------------------------------------------- */
    .hero-visual .custom-book {
        width: 300px;
        height: 418px;
        margin: 0;
    }
    /* -----------------------------------------------------
       PERMANENTLY OPEN
       ----------------------------------------------------- */
    .hero-visual .custom-book-front {
        transform:
            rotateY(145deg)
            translateZ(0) !important;
        transition: none !important;
    }
    /* -----------------------------------------------------
       PAGES
       ----------------------------------------------------- */
    .hero-visual .custom-book-pages > li {
        transition: none !important;
    }
    .hero-visual .custom-book-pages > li:nth-child(1) {
        transform:
            rotateY(35deg) !important;
    }
    .hero-visual .custom-book-pages > li:nth-child(2) {
        transform:
            rotateY(48deg) !important;
    }
    .hero-visual .custom-book-pages > li:nth-child(3) {
        transform:
            rotateY(118deg) !important;
    }
    .hero-visual .custom-book-pages > li:nth-child(4) {
        transform:
            rotateY(128deg) !important;
    }
    .hero-visual .custom-book-pages > li:nth-child(5) {
        transform:
            rotateY(138deg) !important;
    }
    .hero-visual .custom-book-pages > li:nth-child(6) {
        transform:
            rotateY(144deg) !important;
    }
    /* -----------------------------------------------------
       REMOVE PRODUCTS COMPLETELY
       ----------------------------------------------------- */
    .hero-visual .custom-book-products {
        display: none !important;
    }
    /* -----------------------------------------------------
       DISABLE HOVER EFFECT
       ----------------------------------------------------- */
    .hero-visual .custom-book-trigger:hover
    .custom-book .custom-book-front {
        transform:
            rotateY(145deg)
            translateZ(0) !important;
    }
}
@media (max-width: 600px) {

    .hero-visual .custom-book-scene {
        position: relative;

        width: 100%;
        height: 360px;

        margin: 0;

        overflow: visible;

        /*
         * جابه‌جایی کل صحنه به سمت چپ
         */
        transform: translateX(-28px);
    }

}
/* به صورت پیش‌فرض: دسکتاپ */
.hero-mobile-image {
    display: none !important;
}

.custom-book-scene {
    display: block !important;
}


/* موبایل */
@media (max-width: 767.98px) {

    .hero-mobile-image {
        display: block !important;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .hero-mobile-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 360px;
        object-fit: contain;
        object-position: center;
    }

    .custom-book-scene {
        display: none !important;
    }

    .hero-section .hero-visual {
        min-width: 0;
        height: auto;
        min-height: 0;
        margin: 0;
        padding-inline: 12px;
    }

    .hero-section .hero-row {
        row-gap: 24px;
    }

}

/* Book category cards share the course cards' colors, radius and grid. */
.book-category-grid .book-category-card .course-thumb {
    aspect-ratio: 1 / 1;
    padding: 20px;
    background: var(--rm-white, #fff);
}

.book-category-grid .book-category-card .course-thumb img {
    object-fit: contain;
}

.book-category-card .woocommerce-loop-product__title {
    line-height: 1.9;
    margin-bottom: 20px;
}

.book-category-card a:focus-visible {
    outline: 3px solid var(--rm-gold, #f2b632);
    outline-offset: -3px;
    border-radius: 18px;
}
