/* ===== توضیح فایل: رنگ‌بندی چندرنگ سایت (آبی، فیروزه‌ای، کهربایی، بنفش کنار رنگ قرمز برند) =====
   فقط تزئینی است و روی چیدمان اثر نمی‌گذارد؛ برای حذف، لینک این فایل را بردارید. */
:root {
  --c-red: #ff4d6a;
  --c-blue: #4f9cf0;
  --c-teal: #2fbfb0;
  --c-amber: #f0b33c;
  --c-violet: #9b87f5;
  --c-green: #4cc38a;
}

::selection {
  background: rgba(155, 135, 245, 0.45);
  color: #fff;
}

/* ---- پس‌زمینه: درخشش رنگی ملایم ---- */
.background-effects_index .orb-one {
  background: radial-gradient(circle, rgba(255, 77, 106, 0.55), transparent 68%);
}

.background-effects_index .orb-two {
  background: radial-gradient(circle, rgba(79, 156, 240, 0.5), transparent 68%);
}

.background-effects_index .orb-three {
  background: radial-gradient(circle, rgba(47, 191, 176, 0.45), transparent 68%);
}

/* ---- عنوان بخش‌ها ---- */
.section-title h2,
.section-title h1 {
  background: linear-gradient(90deg, #fff 30%, #ffb4c0 70%, #c9bdff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- مرور کلی صفحه اصلی: آمار و کارت‌ها ---- */
.home-overview .ov-stat {
  border-top: 2px solid var(--ov, var(--c-red));
  transition:
    transform 0.18s ease-out,
    border-color 0.18s;
}

.home-overview .ov-stat strong {
  color: var(--ov, #fff);
}

.home-overview .ov-stats .ov-stat:nth-child(1) {
  --ov: #ff7a8b;
}

.home-overview .ov-stats .ov-stat:nth-child(2) {
  --ov: var(--c-blue);
}

.home-overview .ov-stats .ov-stat:nth-child(3) {
  --ov: var(--c-amber);
}

.home-overview .ov-stats .ov-stat:nth-child(4) {
  --ov: var(--c-teal);
}

.home-overview .ov-cards .ov-card:nth-child(1) {
  --oc: 255, 77, 106;
}

.home-overview .ov-cards .ov-card:nth-child(2) {
  --oc: 79, 156, 240;
}

.home-overview .ov-cards .ov-card:nth-child(3) {
  --oc: 240, 179, 60;
}

.home-overview .ov-cards .ov-card:nth-child(4) {
  --oc: 47, 191, 176;
}

.home-overview .ov-card {
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(var(--oc, 255, 77, 106), 0.7);
}

.home-overview .ov-card:hover {
  border-color: rgba(var(--oc, 255, 77, 106), 0.6);
}

.home-overview .ov-card > i {
  color: rgb(var(--oc, 255, 122, 139));
  background: rgba(var(--oc, 213, 28, 57), 0.14);
  border-color: rgba(var(--oc, 213, 28, 57), 0.4);
}

/* ---- صفحه‌های داخلی ---- */
.ip-glass {
  border-top: 2px solid rgba(155, 135, 245, 0.55);
}

.ip-head .ip-icon {
  color: #fff;
  background: linear-gradient(135deg, #ff4d6a, #9b87f5);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(155, 135, 245, 0.35);
}

body .ip-wrap .ip-badge {
  color: #cfc6ff;
  background: rgba(155, 135, 245, 0.14);
  border-color: rgba(155, 135, 245, 0.45);
}

body .ip-wrap .ip-btn.primary {
  background: linear-gradient(135deg, #ff4d6a, #c2185b 60%, #7e3fd1);
}

body .ip-wrap .ip-tabs a.active {
  border-color: var(--c-violet);
  background: rgba(155, 135, 245, 0.16);
}

.ip-card .ip-ico {
  color: var(--c-blue);
}

/* ---- اخبار ---- */
body .news-card .nc-cat,
body .na-hero .nc-cat {
  color: #fff;
  background: linear-gradient(135deg, #ff4d6a, #9b87f5);
}

body .news-grid .news-card:nth-child(3n + 2) .nc-cat {
  background: linear-gradient(135deg, #4f9cf0, #2fbfb0);
}

body .news-grid .news-card:nth-child(3n + 3) .nc-cat {
  background: linear-gradient(135deg, #f0b33c, #ff4d6a);
}

.news-card:hover {
  border-color: rgba(155, 135, 245, 0.55);
}

body .nf-bar .nf-chip.active {
  background: linear-gradient(135deg, #ff4d6a, #9b87f5);
  border-color: transparent;
  color: #fff;
}

/* ---- کارخانه‌ها و همکاران ---- */
.services2 .item:nth-child(6n + 1) .curv-butn.icon-bg {
  border-color: rgba(255, 77, 106, 0.6);
}

.services2 .item:nth-child(6n + 2) .curv-butn.icon-bg {
  border-color: rgba(79, 156, 240, 0.6);
}

.services2 .item:nth-child(6n + 3) .curv-butn.icon-bg {
  border-color: rgba(47, 191, 176, 0.6);
}

.services2 .item:nth-child(6n + 4) .curv-butn.icon-bg {
  border-color: rgba(240, 179, 60, 0.6);
}

.services2 .item:nth-child(6n + 5) .curv-butn.icon-bg {
  border-color: rgba(155, 135, 245, 0.6);
}

.services2 .item:nth-child(6n + 6) .curv-butn.icon-bg {
  border-color: rgba(76, 195, 138, 0.6);
}

/* ---- منو و فوتر ---- */
/* هاور آیتم‌های منو: ساده و بدون گرادیانت (همان استایل پایه‌ی منو) */

.footer {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff4d6a, #9b87f5, #4f9cf0, #2fbfb0) 1;
}

.footer a:hover {
  color: #c9bdff;
}

.progress-wrap::after {
  color: var(--c-violet);
}

.progress-wrap svg.progress-circle path {
  stroke: var(--c-violet);
}

/* ===== سایر صفحه‌ها: چرخه‌ی رنگ برای آیکون‌ها و کارت‌ها (ملایم) ===== */
.activity-card:nth-child(5n + 1),
.explore-card:nth-child(5n + 1),
.intro-stat:nth-child(5n + 1),
.goals-column:nth-child(5n + 1),
.shareholder-card:nth-child(5n + 1),
.contact .animate-box:nth-child(5n + 1) {
  --k: 255, 77, 106;
}

.activity-card:nth-child(5n + 2),
.explore-card:nth-child(5n + 2),
.intro-stat:nth-child(5n + 2),
.goals-column:nth-child(5n + 2),
.shareholder-card:nth-child(5n + 2),
.contact .animate-box:nth-child(5n + 2) {
  --k: 79, 156, 240;
}

.activity-card:nth-child(5n + 3),
.explore-card:nth-child(5n + 3),
.intro-stat:nth-child(5n + 3),
.goals-column:nth-child(5n + 3),
.shareholder-card:nth-child(5n + 3),
.contact .animate-box:nth-child(5n + 3) {
  --k: 240, 179, 60;
}

.activity-card:nth-child(5n + 4),
.explore-card:nth-child(5n + 4),
.intro-stat:nth-child(5n + 4),
.goals-column:nth-child(5n + 4),
.shareholder-card:nth-child(5n + 4),
.contact .animate-box:nth-child(5n + 4) {
  --k: 47, 191, 176;
}

.activity-card:nth-child(5n + 5),
.explore-card:nth-child(5n + 5),
.intro-stat:nth-child(5n + 5),
.goals-column:nth-child(5n + 5),
.shareholder-card:nth-child(5n + 5),
.contact .animate-box:nth-child(5n + 5) {
  --k: 155, 135, 245;
}

.activity-card .activity-icon,
.explore-card .explore-icon,
.intro-stat .intro-stat-icon,
.goals-column .goals-column-icon {
  color: rgb(var(--k, 255, 122, 139));
  background: rgba(var(--k, 213, 28, 57), 0.14);
  border-color: rgba(var(--k, 213, 28, 57), 0.4);
}

.activity-card:hover,
.explore-card:hover,
.shareholder-card:hover,
.goals-column:hover {
  border-color: rgba(var(--k, 255, 77, 106), 0.55);
}

.goals-list li::marker {
  color: rgb(var(--k, 255, 77, 106));
}

.contact .animate-box .icon,
.contact .animate-box .icon i {
  color: rgb(var(--k, 255, 122, 139));
}

.contact .animate-box .icon {
  background: rgba(var(--k, 213, 28, 57), 0.14);
  border-color: rgba(var(--k, 213, 28, 57), 0.4);
}

/* ---- گواهینامه‌ها و همکاران: فقط هاور رنگی ---- */
.cert-card:nth-child(4n + 1):hover,
.partner-logo-card:nth-child(4n + 1):hover {
  border-color: rgba(255, 77, 106, 0.55);
}

.cert-card:nth-child(4n + 2):hover,
.partner-logo-card:nth-child(4n + 2):hover {
  border-color: rgba(79, 156, 240, 0.55);
}

.cert-card:nth-child(4n + 3):hover,
.partner-logo-card:nth-child(4n + 3):hover {
  border-color: rgba(47, 191, 176, 0.55);
}

.cert-card:nth-child(4n + 4):hover,
.partner-logo-card:nth-child(4n + 4):hover {
  border-color: rgba(240, 179, 60, 0.55);
}

/* ===== نسخه‌ی تکمیلی: همه‌ی صفحه‌های داخلی (با !important چون هر صفحه استایل مخصوص خودش را دارد) ===== */
.factory-stat:nth-child(5n + 1),
.value-card:nth-child(5n + 1),
.improve-group:nth-child(5n + 1),
.vision-card:nth-child(5n + 1) {
  --k: 255, 77, 106;
}

.factory-stat:nth-child(5n + 2),
.value-card:nth-child(5n + 2),
.improve-group:nth-child(5n + 2),
.vision-card:nth-child(5n + 2) {
  --k: 79, 156, 240;
}

.factory-stat:nth-child(5n + 3),
.value-card:nth-child(5n + 3),
.improve-group:nth-child(5n + 3),
.vision-card:nth-child(5n + 3) {
  --k: 240, 179, 60;
}

.value-card:nth-child(5n + 4),
.improve-group:nth-child(5n + 4) {
  --k: 47, 191, 176;
}

.activity-card,
.explore-card,
.goals-column,
.shareholder-card,
.factory-stat,
.value-card,
.improve-group,
.vision-card,
.contact .animate-box .item,
.animate-box .item {
  border-top-color: rgba(var(--k, 255, 77, 106), 0.7) !important;
}

.goals-column .goals-column-icon,
.value-card .value-icon,
.improve-group .improve-group-icon,
.vision-card .vision-card-icon {
  color: rgb(var(--k, 255, 122, 139)) !important;
  background: rgba(var(--k, 213, 28, 57), 0.14) !important;
  border-color: rgba(var(--k, 213, 28, 57), 0.4) !important;
}

.factory-stat strong,
.factory-stat b,
.factory-stat span:first-child {
  color: rgb(var(--k, 255, 122, 139)) !important;
}

.value-card:hover,
.improve-group:hover,
.vision-card:hover,
.factory-stat:hover {
  border-color: rgba(var(--k, 255, 77, 106), 0.55) !important;
}

/* ---- تماس با ما: چهار باکس ---- */
.animate-box:nth-child(4n + 2) {
  --k: 79, 156, 240;
}

.animate-box:nth-child(4n + 3) {
  --k: 240, 179, 60;
}

.animate-box:nth-child(4n + 4) {
  --k: 47, 191, 176;
}

.animate-box .item .icon,
.animate-box .item .icon i,
.animate-box .item .icon::before {
  color: rgb(var(--k, 255, 122, 139)) !important;
}

/* ---- عنوان و برچسب همه‌ی صفحه‌ها ---- */
body .badge-label {
  color: #cfc6ff !important;
  background: rgba(155, 135, 245, 0.14) !important;
  border-color: rgba(155, 135, 245, 0.45) !important;
}

.inner-page-header h1 {
  background: linear-gradient(90deg, #fff 35%, #ffb4c0 75%, #c9bdff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote-mark,
.statement-label {
  color: #b3a4ff !important;
}

.vision-statement,
.philosophy-statement,
.policy-frame,
.improve-note {
  border-top: 2px solid rgba(155, 135, 245, 0.55) !important;
}
