/*
 Theme Name:   Astra Child
 Theme URI:    https://techodemia.ir/
 Description:  Child Theme for Astra
 Author:       Saeed Mohammadzadeh
 Author URI:   https://techodemia.ir/
 Template:     astra
 Version:      1.0.0
*/

/* تغییرات شخصی از اینجا شروع میشه */

@font-face {
  font-family: 'Dana';
  src: url('./fonts/dana/DanaFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('./fonts/dana/DanaFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('./fonts/dana/DanaFaNum-Heavy.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
body * {
  font-family: 'Dana', sans-serif;
  direction:rtl;
}

body, html, button, input, select, textarea {
  font-family: 'Dana', sans-serif !important;
}





/* دسکتاپ: فلش پیش‌فرض Astra بیاد سمت چپ متن و فاصله درست بگیره */
@media (min-width: 921px) {
  .main-header-menu .menu-item-has-children > a {
    display: flex;
    flex-direction: row-reverse;   /* متن اول، فلش چپ متن */
    align-items: center;
    gap: 10px;                     /* فاصله تمیز بین متن و فلش */
  }

  .main-header-menu .menu-item-has-children > a:after {
    position: static !important;   /* بی‌اثر کردن پوزیشن پیش‌فرض Astra */
    display: inline-block !important;
    transform: none !important;
    margin: 0 !important;          /* فاصله رو با gap می‌دیم */
    vertical-align: middle;
  }


/* راست‌چین کردن زیرمنوها */
.main-header-menu .sub-menu {
    text-align: right;
    direction: rtl;
}

 
}


/* ۱. فقط منوی نارنجی (پایین) هاورش بشه سرمه‌ای */
.ast-below-header-bar .main-header-menu > li > a:hover,
.ast-below-header-bar .main-header-menu > li.current-menu-item > a {
  color: #242c5d !important;
}

/* هاور آیتم‌های زیرمنوی منوی اصلی (نارنجی) → رنگ نارنجی */
.ast-below-header-bar .main-header-menu .sub-menu li a:hover {
  color: #edb101 !important;
}

/* خط زیر آیتم فعال در منوی نارنجی (main menu) */
.ast-below-header-bar .main-header-menu > .current-menu-item > a {
  border-bottom: 1px solid #0D3B66;
  padding-bottom: 4px;
}

/* خط نارنجی زیر آیتم فعال منوی ثانویه */
.ast-primary-header-bar .main-header-menu > .current-menu-item > a {
  border-bottom: 3px solid #FF9F1C;
  padding-bottom: 4px;
}

/* ✅ استایل برای منوی پایین (نارنجی) */
.ast-below-header {
  position: relative;
  z-index: 10;
  background-color: transparent !important; /* شفاف می‌کنیم که نوار نارنجی رویی دیده بشه */
  padding-top: -20px; /* جا برای منوی نارنجی */
}

/* ✅ طراحی نوار نارنجی که وسط‌چین و معلق باشه */
.ast-below-header .main-header-bar-navigation {
  background-color: #FF9F1C;
  max-width: 800px;
  margin: 0 auto 0 auto;  /* بالا بیاد تا نصفش روی نوار بالا بیفته */
  border-radius: 10px;
  padding: 0px 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 20;
}
/* ساختار کلی */
.ast-header-html {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 0;
  color: white;
}




/* خط جداکننده بین دو باکس */
.ast-header-html-1 {
  border-right: 1px solid white;
  margin-right: 20px;
  padding-right: 20px;
}




/* موقعیت منو نارنجی */
.ast-below-header-bar {
  position: relative;
  z-index: 20;
}



/* وسط‌چین کردن آیتم‌های منو */
.ast-hf-menu-1 {
  justify-content: center;
}


.main-header-menu > .menu-item > .menu-link, #astra-footer-menu > .menu-item > .menu-link
{
     font-size:14px;
}
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link
{
    font-size:12px;
}



.main-header-menu li {
	position: relative;
}
.main-header-menu .sub-menu {
	position: absolute;
	margin-top:5px!important;
	left: auto !important;
	transform: none !important;
	right: 0 !important;
	min-width: 310px;
	max-width: 310px;
	padding: 12px 16px;
	background: white;
	z-index: 999;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	text-align: right;
	white-space: normal;
	display: none;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease-in-out;
}

.main-header-menu li:hover > .sub-menu {
	display: block;
	opacity: 1;
	visibility: visible;
}

.sub-menu-description {
  display: block;
  font-size: 10px;
  color: #777;
  margin-top: 4px;
  line-height: 1.4;
  max-width: 100%;
  text-align: right;
}

/*-------------------------------*/
/* روی عکس‌های داخل اسلاید فعال */
.n2-ss-slide-active .n2-ss-item-image-content img {
  opacity: 0;
  transform: scale(0.96);
  animation: fadeAndPop 1s ease-out forwards;
}

/* Fade in با یه پاپ نرم سر جای خودش */
@keyframes fadeAndPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0px);
  }
}


/* نرم‌کردن تغییر روی هاور بعد از پایان fadeAndPop */
.n2-ss-slide-active .n2-ss-item-image-content img {
  transition: transform .25s ease;
  will-change: transform;
}

/* تکون ریز هنگام هاور (بدون پرش) */
.n2-ss-slide-active .n2-ss-item-image-content img:hover {
  transform: scale(1.04) translateY(-2px);
}

/* اختیاری: اگر تداخل داشت */
@media (prefers-reduced-motion: reduce) {
  .n2-ss-slide-active .n2-ss-item-image-content img:hover {
    transform: scale(1.02);
  }
}

.n2-ss-slide-active .n2-ss-item-image-content { transition: transform .25s ease; }
.n2-ss-slide-active .n2-ss-item-image-content:hover { transform: scale(1.04) translateY(-2px); }


/* ----------------------------------------------*/

/* متن های اسلایدر*/
/* پایه: تنظیمات، ماسک اولیه و چشمک/تایپ «بدون» اجرا */
.ss-typing{
  display:inline-block;
  direction:rtl;
  text-align:right;
  white-space:nowrap;
  will-change: clip-path, opacity, transform;
  --chars: 28;
  --type-dur: 2.2s;
  --blink-dur: .8s;
  clip-path: inset(0 0 0 100%);
  opacity: 1;
  overflow: visible !important;
  transform-origin: right center;
}

.ss-typing.typing-run{
  animation:
    typeLTR var(--type-dur) steps(var(--chars)) forwards,
    blinkBinary var(--blink-dur) steps(1, end) var(--type-dur) infinite;
}

.ss-typing:hover{
  animation: none !important;
  clip-path: inset(0) !important;
  opacity: 1 !important;
  transform: scale(1.001);
  transition: transform .25s ease;
  z-index: 5;
}

/* تایپ چپ→راست */
@keyframes typeLTR{
  from{ clip-path: inset(0 0 0 100%); }
  to  { clip-path: inset(0 0 0 0); }
}

/* چشمک باینری */
@keyframes blinkBinary{
  0%{ opacity:1; }
  50%{ opacity:0; }
  100%{ opacity:1; }
}

@media (prefers-reduced-motion: reduce){
  .ss-typing{ clip-path: inset(0); }
  .ss-typing.typing-run{ animation:none; }
  .ss-typing:hover{ transform:none; }
}

/*-----------------*/


/* پایه کارت‌ها – همون قبلی + بهینه‌سازی رندر */
.fx-card{
  opacity:0;
  transform:translateY(24px) scale(.98);
  filter:blur(6px);
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s cubic-bezier(.2,.8,.2,1),
    opacity .45s ease;
  will-change: transform, box-shadow, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* نمایش کارت‌ها با استگر (همون قبلی) */
.fx-card.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
  animation: fx-pop .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes fx-pop{
  0%{opacity:0; transform:translateY(24px) scale(.98)}
  60%{opacity:1; transform:translateY(-2px) scale(1.01)}
  100%{opacity:1; transform:translateY(0) scale(1)}
}


/* آیکن: جلوگیری از محوشدن/پرش و تداخل transform */
.n2-ss-item-image-content img{
  display:block;
  transform: translateZ(0) translateY(0) rotate(0);
  transition: transform .35s ease;
  will-change: transform;
  backface-visibility: hidden;
}

/* هاور آیکن: حرکت نرم (بدون keyframes بی‌نهایت) */
.fx-card.fx-ready:hover .n2-ss-item-image-content img{
  transform: translateY(-6px) rotate(-1.5deg);
}

/* اگر اصرار داری موج‌دار بشه: یک‌بار اجرا، نه بی‌نهایت */
/*
.fx-card.fx-ready:hover .n2-ss-item-image-content img{
  animation: fx-bob-once 900ms ease-in-out 1 both;
}
@keyframes fx-bob-once{
  0%{ transform: translateY(0) rotate(0) }
  50%{ transform: translateY(-6px) rotate(-1.5deg) }
  100%{ transform: translateY(0) rotate(0) }
}
*/

/* احترام به Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .fx-card,
  .fx-card.is-visible,
  .fx-card.fx-ready:hover,
  .fx-card .n2-ss-item-image-content img{
    animation:none !important;
    transition:none !important;
    transform:none !important;
    filter:none !important;
  }
}


.n2-ss-item-content.n2-ss-text {
  transition: transform 0.3s ease;
  display: inline-block;
}

.n2-ss-item-content.n2-ss-text:hover {
  transform: scale(1.08);
}


.n2-ss-item-zoom {
  transition: transform 0.3s ease;
}

.n2-ss-item-zoom:hover {
  transform: scale(1.05);
}

/* *********** */


.n2-ss-control-bullet {
  position: relative;
  top: 20px; /* فاصله از بالا */
  z-index: 10;
}


/* ------- */




.value-bar{background:#0f1b3d;color:#fff;padding:18px 0;border-radius:16px;margin:24px auto;max-width:1200px}
.value-bar .vb-wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:stretch;padding:0 16px}
.value-bar .vb-item{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);padding:12px 14px;border-radius:12px;backdrop-filter:saturate(120%) blur(2px);transition:transform .15s ease,background .15s}
.value-bar .vb-item:hover{transform:translateY(-2px);background:rgba(255,255,255,.1)}
.value-bar .vb-ico{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;flex:0 0 36px}
.value-bar .vb-ico svg{width:22px;height:22px;fill:#0f1b3d}
.value-bar .vb-title{font-weight:700;font-size:15px}
.value-bar .vb-sub{font-size:13px;opacity:.9}
@media (max-width:992px){.value-bar .vb-wrap{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.value-bar{border-radius:0;margin:0;width:100%}.value-bar .vb-wrap{grid-template-columns:1fr}}

.value-bar a.vb-item{color:inherit;text-decoration:none;cursor:pointer}
.value-bar a.vb-item:visited{color:inherit;text-decoration:none}
.value-bar a.vb-item:hover,
.value-bar a.vb-item:focus{text-decoration:none}
.value-bar a.vb-item *{text-decoration:none}
.value-bar a.vb-item:focus-visible{outline:2px solid rgba(255,255,255,.35);outline-offset:2px}
/*-------------------*/
/* گرید 3ستونه */
#cat-results .cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1100px){#cat-results .cards-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){#cat-results .cards-grid{grid-template-columns:1fr}}

/* کارت پایه */
#cat-results .card-wrap{background:#0e1a33;border:1px solid rgba(255,255,255,.06);border-radius:14px;overflow:hidden}


/* عنوان fallback اگر تزریق شد */
#cat-results .card-fallback-title{margin:12px 16px 0;font-size:1.05rem;line-height:1.5}
#cat-results .card-fallback-title a{color:#fff;text-decoration:none}

/* فقط داخل کارت‌ها: آیکن‌ها و لیست آیکن جمع‌وجور */
#cat-results .card-wrap .elementor-icon,
#cat-results .card-wrap .elementor-icon-list-icon{font-size:16px !important;line-height:1 !important}
#cat-results .card-wrap .elementor-icon i,
#cat-results .card-wrap .elementor-icon svg,
#cat-results .card-wrap .elementor-icon-list-icon i,
#cat-results .card-wrap .elementor-icon-list-icon svg{width:16px !important;height:16px !important}
#cat-results .card-wrap .elementor-icon-list-items,
#cat-results .card-wrap .elementor-icon-list-item{align-items:center;gap:6px}
#cat-results .card-wrap .elementor-icon-list-text{font-size:14px}



/* فشرده کردن نویسنده + تاریخ */
#cat-results .elementor-post-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  margin-top: 8px;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
}

#cat-results .elementor-post-info li {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

#cat-results .elementor-post-info li svg {
  width: 14px;
  height: 14px;
  fill: #ccc;
}

/* کاهش فضای بالای عنوان */
#cat-results .my-title {
  margin: 10px 16px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* کاهش فضای کل کارت */
#cat-results .card-wrap {
  padding-bottom: 1px;
}


#cat-results .elementor-element-5285a34 {
  box-shadow: none !important;
  border: 1px solid #e0e0e0;
}





.cat-toolbar {display:flex;justify-content:flex-start;margin:0 0 16px;gap:12px}

#cat-search { width:50%; margin:0 auto }
#cat-search #cat-search-input {
  display:block; width:100%; max-width:100%;
  padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px
}

.cat-tabs {display:flex;gap:10px;list-style:none;padding:0;margin:0 0 16px}
.cat-tabs [data-cat] {display:inline-block;padding:8px 12px;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none}
.cat-tabs [data-cat].is-active {background:#111;color:#fff;border-color:#111}

.cat-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.cat-card {border:1px solid #eee;border-radius:14px;overflow:hidden;background:#fff}
.cat-card img {width:100%;height:160px;object-fit:cover;display:block}
.cat-card__title {font-size:1.05rem;line-height:1.4;margin:12px 12px 6px}
.cat-card__excerpt {font-size:.9rem;color:#556;line-height:1.6;margin:0 12px 14px}

.cat-pagination {display:flex;gap:8px;justify-content:center;margin:18px 0 0}
.cat-page {display:inline-block;padding:8px 12px;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none}
.cat-page[aria-current="true"] {background:#111;color:#fff;border-color:#111}
.cat-loading {text-align:center;padding:24px}
.cat-empty {text-align:center;color:#666;margin:16px 0}






/*//////////////////////////////*/
.wp-block-categories-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wp-block-categories-list .cat-item {
  background: #242c5d;
  border-radius: 14px;
  padding: 10px;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(255,255,255,0.05);
}

.wp-block-categories-list .cat-item:hover {
  background: #fea01b;
  transform: translateY(-2px);
}

.wp-block-categories-list .cat-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: #d6e1e7;
}

.wp-block-categories-list .cat-item a::after {
  content: '»';
  font-size: 12px;
  opacity: 0.6;
}

.wp-block-categories-list .cat-item a:hover {
  color: #ffffff;
}

.wp-block-categories-list .cat-item a span {
  background: #2a5bd7;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-left: 8px;
}

ul.wp-block-categories-list.wp-block-categories{
    padding:0;
    margin:0;
}




/* ==== Techodemia – Elementor Services (FINAL) ==== */
:root{
  --tch-bg:#0f1530; --tch-text:#e6ecff; --tch-sub:#a9b2d8;
  --tch-accent:#ff9d1b; --tch-accent2:#6df3ff; --tch-ring:0 0 0 2px inset var(--tch-accent);
}

/* Section */
.tch-services{
  direction:rtl;

  color:var(--tch-text);
  padding:72px 4vw;
  position:relative;
  overflow:hidden;
}#0E1B3D
.tch-services .tch-title{font-size:clamp(24px,3vw,36px);font-weight:800;margin-bottom:22px}
.tch-services .tch-sub{color:var(--tch-sub);margin-bottom:36px}

/* GRID FIX for Elementor: use flex, not CSS grid */
.tch-grid{display:flex;flex-wrap:wrap;gap:18px;isolation:isolate}
.tch-grid>.tch-item{width:100%}
@media (min-width:768px){.tch-grid>.tch-item{width:48%}}
@media (min-width:1024px){.tch-grid>.tch-item{width:32%}}

/* Card */
.tch-item{
  position:relative; z-index:0;
  background:linear-gradient(180deg,#1a214780,#0f163880);
  border:1px solid #2a3563; border-radius:20px; padding:22px;
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tch-item:hover{transform:translateY(-6px); box-shadow:0 18px 60px -20px #000a}

/* Animated background (z-index fixed) */
.tch-item::before{
  content:""; position:absolute; inset:-2px; border-radius:22px; z-index:0;
  background:conic-gradient(from 0deg,
    transparent 0 10%, var(--tch-accent) 20% 30%,
    transparent 40% 60%, var(--tch-accent2) 70% 80%,
    transparent 90% 100%);
  filter:blur(18px); opacity:.35;
  animation:tch-spin 28s linear infinite;
}
.tch-item:hover::before{opacity:.6; animation-duration:22s}
@keyframes tch-spin{to{transform:rotate(360deg)}}

/* Keep content above the effect */
.tch-item > .elementor-widget,
.tch-item .elementor-widget-container,
.tch-item .elementor-icon-box-wrapper{position:relative; z-index:1}

/* Icon tidy (no yellow box) */
.tch-item .elementor-icon{background:none!important;border:none!important;box-shadow:none!important;width:auto;height:auto;padding:0}
.tch-item .elementor-icon i, .tch-item .elementor-icon svg{color:var(--tch-accent);font-size:22px}

/* Titles & text */
.tch-item .elementor-icon-box-title{color:#eaf0ff;font-weight:800}
.tch-item .elementor-icon-box-description{color:var(--tch-sub);font-size:15px;line-height:1.9}



/* A11y */
.tch-item:focus-within{outline:none; box-shadow:var(--tch-ring)}
@media (prefers-reduced-motion:reduce){.tch-item,.tch-item::before{transition:none;animation:none}}

/*///////////////////////////*/

/* ===== Techodemia – Stage Cards Timeline ===== */
:root {
  --stage-bg: #0f1530;
  --stage-text: #e6ecff;
  --stage-sub: #a9b2d8;
  --stage-accent: #ff9d1b;
  --stage-accent2: #6df3ff;
  --stage-glass: rgba(255, 255, 255, 0.04);
}

.tch-stage {
  direction: rtl;
  background: linear-gradient(180deg, #0b1130, #0f1530 60%, #0b1130);
  color: var(--stage-text);
  padding: 72px 4vw;
}

.tch-stage .section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

.tch-step-card {
  position: relative;
  background: var(--stage-glass);
  border: 1px solid #2a3563;
  border-radius: 16px;
  padding: 40px 40x 40px 40px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tch-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  
}

.tch-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--stage-accent), var(--stage-accent2));
  border-radius: 0 4px 4px 0;
}

.tch-step-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--stage-accent);
  background: linear-gradient(135deg, var(--stage-accent), var(--stage-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.tch-step-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tch-step-desc {
  font-size: 15px;
  color: var(--stage-sub);
  line-height: 2;
}

/* Responsive 2 columns on desktop */
@media (min-width: 992px) {
  .tch-steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  .tch-step-card {
    flex: 1 1 calc(50% - 12px);
  }
}
/***********************/

:root {
  --tch-accent: #ff9d1b;
  --tch-glow: #38e1ff;
  --tch-bg: #0E1B3D;
  --tch-text: #e6ecff;
  --tch-sub: #a9b2d8;
}

/* بخش کلی */
.tch-trust-section {
  background: var(--tch-bg);
  padding: 64px 24px;
  text-align: center;
  color: var(--tch-text);
}
/* کلاس را به ویجت Heading بده: tch-blue-underline */




/* روی Heading کلاس زیر را بده: tch-blue-underline */
.tch-blue-underline{
  position:relative;
  display:inline-block;
  padding-bottom:30px;
  padding-top:30px;
}

/* خط هسته + هاله نئونی روشن و کشیده */
.tch-blue-underline::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  width:320px;           /* طول خط (بزرگ‌تر/کوچک‌ترش کن) */
  height:2px;            /* باریکی خط */
  background:linear-gradient(90deg,
    transparent 8%,
    #00d8ff 35%,
    #7cf7ff 50%,
    #00d8ff 65%,
    transparent 92%
  );
  border-radius:20px;
  filter:blur(.3px);
  box-shadow:
    0 0 8px  #38e1ff,
    0 0 16px #38e1ff,
    0 0 28px rgba(56,225,255,.6);
  opacity:1;
}

/* فلر مرکزی خیلی روشن زیر خط */
.tch-blue-underline::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:220px;          /* پهنای فلر مرکزی */
  height:10px;
  background:radial-gradient(ellipse at center,
    rgba(124,247,255,.95) 0%,
    rgba(124,247,255,.55) 35%,
    rgba(124,247,255,.15) 70%,
    transparent 85%
  );
  filter:blur(8px);
  opacity:1;
}

/* ریسپانسیو */
@media (max-width:768px){
  .tch-blue-underline::after{width:220px}
  .tch-blue-underline::before{width:160px}
}
/* ===== Neon ring + inner smoke (hover) ===== */
:root{
  --neon-core:#00c8ff;
  --neon-halo:#7ff9ff;
  --arc-deg:90deg;           /* طول تکه نور دور کادر */
  --ring-width:2px;          /* ضخامت نوار نور */
}

.tch-glow-line{
  font-size:18px;
  margin:20px auto;
  padding:14px 28px;
  border-radius:999px;
  position:relative;
  display:inline-block;
  color:var(--tch-sub);
  background:#161d3a;
  overflow:hidden;
  z-index:0;
}

/* تکه نور آبی که دورتادور کادر می‌چرخه (با ماسکِ قاب) */
.tch-glow-line::before{
  content:"";
  position:absolute; inset:0;
  padding:var(--ring-width);
  border-radius:999px;
  opacity:0; transition:opacity .25s ease;
  background:
    conic-gradient(from 0deg,
      transparent 0,
      transparent calc(360deg - var(--arc-deg)),
      var(--neon-core) calc(360deg - var(--arc-deg)),
      var(--neon-halo) 50%,
      var(--neon-core) 100%
    );
  filter:blur(6px);
  pointer-events:none;
  z-index:1;

  /* فقط قاب دور متن دیده شود (وسط خالی) */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.tch-glow-line:hover::before{
  opacity:1;
  animation:ring-spin 3.2s linear infinite;
}
@keyframes ring-spin{ to{ transform:rotate(360deg) } }

/* دود نرم داخل باکس */
.tch-glow-line::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:calc(999px - 3px);
  background:
    radial-gradient(60% 40% at 30% 120%, rgba(127,249,255,.10), transparent 60%),
    radial-gradient(45% 60% at 70% -20%,  rgba(127,249,255,.08), transparent 60%),
    radial-gradient(35% 35% at 50% 50%,   rgba(255,255,255,.06),  transparent 60%);
  filter:blur(14px);
  opacity:0; transition:opacity .25s ease;
  z-index:0;
}
.tch-glow-line:hover::after{
  opacity:.8;
  animation:smoke-drift 7s ease-in-out infinite alternate;
}
@keyframes smoke-drift{
  0%   { background-position: 0% 0%,   100% 100%, 50% 50%;   transform:translateY(0) }
  50%  { background-position: 18% -8%, 82% 108%, 55% 44%;   transform:translateY(-3px) }
  100% { background-position: -10% 8%, 110% 78%, 45% 62%;   transform:translateY(0) }
}

/* افکت ظریف اضافه (اختیاری) */
.tch-glow-line:hover{
  box-shadow: inset 0 0 18px rgba(56,225,255,.18);
}


/*/////////////////*/


.tekodemia-feature {
  background: #17244;
  border: 2px solid #4e54c8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tekodemia-feature:hover {

  transform: translateY(-5px);
}

.tekodemia-feature i {
  font-size: 32px;
  margin-bottom: 12px;
  color: #4e54c8;
}

.tekodemia-feature:hover i {
  color: white;
}

.particle-card {
  position: relative;
  overflow: hidden;
}

.particle-card::before,
.particle-card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-60%, -60%);
  pointer-events: none;
  z-index: 0;
}

.particle-card:hover::before {
  animation: particle-float-1 2s infinite ease-in-out;
  opacity: 1;
}

.particle-card:hover::after {
  animation: particle-float-2 3s infinite ease-in-out;
  opacity: 1;
}

@keyframes particle-float-1 {
  0% { transform: translate(20px, -20px); opacity: 0.2; }
  50% { transform: translate(-20px, 20px); opacity: 1; }
  100% { transform: translate(20px, -20px); opacity: 0.2; }
}

@keyframes particle-float-2 {
  0% { transform: translate(-30px, -10px); opacity: 0.3; }
  50% { transform: translate(10px, 30px); opacity: 0.9; }
  100% { transform: translate(-30px, -10px); opacity: 0.3; }
}



