/**
Theme Name: قالب چایلد آسترا
Author: Brainstorm Force/ ایران آسترا
Author URI: http://iranastra.ir/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weblime
Template: astra
*/

/* ─── متغیرها ─── */
:root {
  --tsc-font-heading: 'Doran', sans-serif;
  --tsc-font-body: 'Lahzeh', sans-serif;

  --tsc-color-primary: #341F97;
  --tsc-color-subheading: #4834D4;
  --tsc-color-text: #B4A3D8;
  --tsc-color-bg: #FBF8FF;
}
/* ================================
   TSC HEADER - BASE STYLES
   ================================ */

.tsc-header-wrapper {
  width: 100%;
  background-color: var(--tsc-color-bg);
  position: relative;
  z-index: 9999;
  transition: box-shadow 0.3s ease;
}

.tsc-header-wrapper.tsc-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 20px rgba(52, 31, 151, 0.08);
}

.tsc-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

/* ================================
   TSC LOGO
   ================================ */

.tsc-header-logo {
  flex-shrink: 0;
}

.tsc-header-logo a {
  display: block;
  line-height: 0;
}

.tsc-header-logo img {
  width: 200px;
  height: auto;
  display: block;
}

/* ================================
   TSC CTA BUTTON
   ================================ */

.tsc-header-cta {
  flex-shrink: 0;
	padding-top: 10px;
}

.tsc-btn-consult {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background-color: var(--tsc-color-primary);
  color: var(--tsc-color-bg);
  font-family: var(--tsc-font-body);
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.tsc-btn-consult .tsc-btn-text {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.tsc-btn-consult .tsc-btn-overlay {
  position: absolute;
  top: 0;
  right: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--tsc-color-bg);
  border-radius: 999px;
  transition: right 0.4s ease;
  z-index: 1;
}

.tsc-btn-consult:hover .tsc-btn-overlay {
  right: 0;
}

.tsc-btn-consult:hover .tsc-btn-text {
  color: var(--tsc-color-primary);
}

/* ================================
   TSC DESKTOP NAV
   ================================ */

.tsc-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: static;
	padding-top: 15px;
}

.tsc-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  direction: rtl;
}

.tsc-menu-item {
  position: static;
  list-style: none;
}

.tsc-menu-link {
  font-family: var(--tsc-font-body) !important;
  font-weight: normal;
  font-size: 0.9rem !important;
  color: var(--tsc-color-subheading) !important;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.tsc-menu-link:hover {
  color: var(--tsc-color-text) !important;
}

/* ================================
   TSC MEGA MENU
   ================================ */

.tsc-has-mega {
  position: static !important;
}

.tsc-mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  background-color: var(--tsc-color-bg);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 30px rgba(52, 31, 151, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
  padding: 28px 0 24px;
}

.tsc-has-mega:hover .tsc-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Mega Menu Inner: اسکرول افقی ── */
.tsc-mega-menu-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  direction: rtl;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--tsc-color-text) transparent;
}

.tsc-mega-menu-inner::-webkit-scrollbar {
  height: 4px;
}

.tsc-mega-menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.tsc-mega-menu-inner::-webkit-scrollbar-thumb {
  background: var(--tsc-color-text);
  border-radius: 4px;
}

/* ── Groups List: ستون‌بندی ── */
.tsc-mega-groups {
  display: grid;
  grid-template-rows: repeat(1, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 200px);
  gap: 16px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  min-width: 100%;
}

/* ── هر گروه والد ── */
.tsc-mega-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

/* ── لینک والد ── */
.tsc-mega-parent-link {
  font-family: var(--tsc-font-body) !important;
  font-weight: bold;
  font-size: 0.9rem !important;
  color: var(--tsc-color-primary) !important;
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(52, 31, 151, 0.12);
  transition: color 0.3s ease;
}

.tsc-mega-parent-link:hover {
  color: var(--tsc-color-subheading) !important;
}

/* ── لیست فرزندان ── */
.tsc-mega-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── آیتم فرزند ── */
.tsc-mega-child {
  list-style: none;
}

/* ── لینک فرزند ── */
.tsc-mega-child-link {
  font-family: var(--tsc-font-body) !important;
  font-weight: normal;
  font-size: 0.8rem !important;
  color: var(--tsc-color-subheading) !important;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color 0.3s ease;
}

.tsc-mega-child-link:hover {
  color: var(--tsc-color-text) !important;
}


/* ================================
   TSC MOBILE HEADER - پنهان در دسکتاپ
   ================================ */

.tsc-mobile-toggle,
.tsc-header-cta-mobile {
  display: none;
}

/* ================================
   TSC MOBILE MENU OVERLAY
   ================================ */

.tsc-mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--tsc-color-bg);
  z-index: 9999999999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  direction: rtl;
}

.tsc-mobile-menu-overlay.tsc-open {
  right: 0;
}

.tsc-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* بالا: دکمه بستن */
.tsc-mobile-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.tsc-mobile-close {
  background: none !important;
  border: none;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}

.tsc-mobile-close img {
  width: 30px;
  height: auto;
  display: block;
}

/* سوشیال */
.tsc-mobile-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.tsc-mobile-social a {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.tsc-mobile-social a:hover {
  opacity: 0.75;
}

.tsc-mobile-social img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

/* منو اسکرول */
.tsc-mobile-nav-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 20px;
}

.tsc-mobile-nav-wrap::-webkit-scrollbar {
  display: none;
}

/* ================================
   TSC MOBILE MENU ITEMS
   ================================ */

.tsc-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsc-mobile-item {
  list-style: none;
  border-bottom: 1px solid rgba(72, 52, 212, 0.10);
}

.tsc-mobile-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tsc-mobile-link {
  font-family: var(--tsc-font-body) !important;
  font-weight: normal;
  font-size: 1rem !important;
  color: var(--tsc-color-subheading) !important;
  text-decoration: none;
  display: block;
  padding: 14px 0;
  flex: 1;
  transition: color 0.2s ease;
}

.tsc-mobile-link:hover {
  color: var(--tsc-color-primary);
}

.tsc-accordion-toggle,
.tsc-accordion-sub-toggle {
  background: none !important;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--tsc-color-subheading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.tsc-accordion-toggle.tsc-active,
.tsc-accordion-sub-toggle.tsc-active {
  transform: rotate(180deg);
  color: var(--tsc-color-primary);
}

/* آکاردئون بدنه */
.tsc-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.tsc-accordion-body.tsc-expanded {
  max-height: 2000px;
}

.tsc-accordion-list {
  list-style: none;
  margin: 0;
  padding: 0 5px 12px;
}

.tsc-accordion-item {
  list-style: none;
  border-bottom: 1px solid rgba(72, 52, 212, 0.07);
}

.tsc-accordion-item:last-child {
  border-bottom: none;
}

.tsc-accordion-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tsc-accordion-link {
  font-family: var(--tsc-font-body) !important;
  font-weight: 400;
  font-size: 0.9rem !important;
  color: var(--tsc-color-primary) !important;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  flex: 1;
  transition: color 0.2s ease;
}

.tsc-accordion-link:hover {
  color: var(--tsc-color-subheading);
}

/* زیرآکاردئون */
.tsc-accordion-sub-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.tsc-accordion-sub-body.tsc-expanded {
  max-height: 1000px;
}

.tsc-accordion-sub-list {
  list-style: none;
  margin: 0;
  padding: 0 5px 8px;
}

.tsc-accordion-sub-item {
  list-style: none;
}

.tsc-accordion-sub-link {
  font-family: var(--tsc-font-body) !important;
  font-weight: normal;
  font-size: 0.9rem !important;
  color: var(--tsc-color-subheading) !important;
  text-decoration: none;
  display: block;
  padding: 7px 0;
  transition: color 0.2s ease;
}

.tsc-accordion-sub-link:hover {
  color: var(--tsc-color-text);
}

/* ================================
   TSC PHONE BUTTON
   ================================ */

.tsc-mobile-phone {
  flex-shrink: 0;
  padding-top: 12px;
}

.tsc-btn-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  background-color: var(--tsc-color-text);
  color: var(--tsc-color-primary);
  font-family: var(--tsc-font-heading);
  font-size: 18px;
  font-weight: normal;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  transition: color 0.4s ease;
}

.tsc-btn-phone .tsc-btn-text {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
  letter-spacing: 1px;
  direction: ltr;
}

.tsc-btn-phone .tsc-btn-overlay {
  position: absolute;
  top: 0;
  right: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--tsc-color-primary);
  border-radius: 999px;
  transition: right 0.4s ease;
  z-index: 1;
}

.tsc-btn-phone:hover .tsc-btn-overlay,
.tsc-btn-phone:active .tsc-btn-overlay {
  right: 0;
}

.tsc-btn-phone:hover .tsc-btn-text,
.tsc-btn-phone:active .tsc-btn-text {
  color: var(--tsc-color-text);
}

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

/* تبلت */
@media (max-width: 1024px) {

  .tsc-header-logo img {
    width: 160px;
  }

  .tsc-menu {
    gap: 18px;
  }

  .tsc-menu-link {
    font-size: 14px;
  }
}

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

  /* پنهان کردن عناصر دسکتاپ */
  .tsc-nav,
  .tsc-header-logo,
  .tsc-header-cta {
    display: none !important;
  }

  /* نمایش عناصر موبایل */
  .tsc-mobile-toggle,
  .tsc-header-cta-mobile {
    display: flex;
    align-items: center;
  }

  .tsc-mobile-toggle {
    background: none !important;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
  }

  .tsc-mobile-toggle img {
    display: block;
  }

  .tsc-header-inner {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .tsc-header-cta-mobile .tsc-btn-consult {
    font-size: 13px;
    padding: 9px 18px;
  }
}



/* ─── دکمه ─── */
.tsc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 32px 10px 10px;
  background-color: var(--tsc-color-primary);
  border-radius: 100px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  direction: rtl;

  /* وسط صفحه */
  display: flex;
  margin: 0 auto;
  width: fit-content;
}

/* ─── متن دکمه ─── */
.tsc-btn-text {
  font-family: var(--tsc-font-body);
	font-weight: 500;
  font-size: 0.9rem;
  color: var(--tsc-color-bg);
  position: relative;
  z-index: 3;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.tsc-cta-btn:hover .tsc-btn-text {
  color: var(--tsc-color-primary);
}

/* ─── دایره آیکون (همین دایره بزرگ میشه و کل دکمه رو میپوشونه) ─── */
.tsc-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--tsc-color-bg);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
	pointer-events: none;

  /* مبدأ scale از مرکز خود دایره */
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* دایره آنقدر بزرگ میشه که کل دکمه رو بپوشونه */
.tsc-cta-btn:hover .tsc-btn-icon {
  transform: scale(14);
}

/* ─── آیکون فلش ─── */
.tsc-btn-arrow {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 3;
	transform: rotate(180deg);
  /* چون دایره بزرگ میشه، فلش هم scale میخوره — این打counter میکنه */
  transition: filter 0.3s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsc-cta-btn:hover .tsc-btn-arrow {
  /* counter-scale تا فلش کوچیک نشه */
  transform: scale(calc(1 / 14));
}

/* Hero Slider */
.scene, .a3d {
  display: grid;
}

.scene {
  overflow: hidden;
  /* هرچه کوچکتر، اثر سه‌بعدی شدیدتر */
  perspective: 35em;
  mask: linear-gradient(90deg, #0000, red 15% 85%, #0000);
  -webkit-mask: linear-gradient(90deg, #0000, red 15% 85%, #0000);
  width: 100%;
  padding: 3em 0;
}

.a3d {
  place-self: center;
  transform-style: preserve-3d;
  animation: ry 60s linear infinite;
}
.a3d .card{
	border-radius: 20px;
}

@keyframes ry {
  to {
    rotate: y 1turn;
  }
}

.card {
  --n: 12;
  --w: 17.5em;
  --ba: 1turn / var(--n);
  grid-area: 1/1;
  width: var(--w);
  aspect-ratio: 7/10;
  object-fit: cover;
  border-radius: 1.5em;
  backface-visibility: hidden;
  transform: rotatey(calc(var(--i) * var(--ba)))
             translatez(calc(-1 * (.5 * var(--w) + .5em) / tan(.5 * var(--ba))));
}

@media (prefers-reduced-motion: reduce) {
  .a3d {
    animation-duration: 144s;
  }
}

/* Services Home */
.tsc-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  direction: rtl;
  width: 100%;
  box-sizing: border-box;
}

.tsc-service-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none !important;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* نوار بالایی */
.tsc-card-top-bar {
  position: absolute;
  top: 0;
  right: 20px;
  width: 54px;
  height: 5px;
  background: var(--tsc-color-subheading);
  border-radius: 0 0 4px 4px;
  z-index: 2;
  transition: background 0.3s ease;
}

/* هاله نور */
.tsc-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 120px;
  background: radial-gradient(ellipse 80px 60px at calc(100% - 47px) 0px, rgba(72, 52, 212, 0.20), transparent 90%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s ease;
}

/* باکس آیکون */
.tsc-icon-wrap {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--tsc-color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
  margin-top: 8px;
}

.tsc-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(13%) sepia(72%) saturate(2800%) hue-rotate(243deg) brightness(70%) contrast(120%);
  transition: filter 0.3s ease;
}

/* عنوان */
.tsc-service-title {
  position: relative;
  z-index: 2;
  font-family: var(--tsc-font-body) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  line-height: 1.5;
}

/* توضیحات */
.tsc-service-desc {
  position: relative;
  z-index: 2;
  font-family: var(--tsc-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-bottom: 10px;
  text-align: justify;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* لینک اطلاعات بیشتر */
.tsc-read-more {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: row-reverse;
  margin-top: auto;
  font-family: var(--tsc-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #333 !important;
  transition: color 0.3s ease;
}

.tsc-arrow-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: rotate(90deg) scaleX(-1);
  filter: brightness(0) saturate(100%) invert(13%) sepia(72%) saturate(2800%) hue-rotate(243deg) brightness(70%) contrast(120%);
  transition: filter 0.3s ease;
}

/* ===== هاور استیت ===== */
.tsc-service-card:hover {
  background: #4834D4 !important;
  box-shadow: 0 12px 40px rgba(72, 52, 212, 0.35);
}

.tsc-service-card:hover .tsc-card-top-bar {
  background: rgba(255, 255, 255, 0.4);
}

.tsc-service-card:hover .tsc-card-glow {
  background: radial-gradient(ellipse 80px 60px at 47px 0px, rgba(255,255,255,0.08), transparent 70%);
}

.tsc-service-card:hover .tsc-icon-wrap {
  background: #6c56e8;
}

.tsc-service-card:hover .tsc-icon {
  filter: brightness(0) invert(1);
}

.tsc-service-card:hover .tsc-service-title {
  color: var(--tsc-color-bg) !important;
}

.tsc-service-card:hover .tsc-service-desc {
  color: var(--tsc-color-text) !important;
}

.tsc-service-card:hover .tsc-arrow-icon {
  filter: brightness(0) invert(1);
}

.tsc-service-card:hover .tsc-read-more {
  color: var(--tsc-color-bg) !important;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
  .tsc-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tsc-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Home CTA */
.tsc-home-reserve .tsc-home-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-family: var(--tsc-font-body) !important;
  font-size: 0.9rem !important;
  color: var(--tsc-color-primary) !important;
  background-color: var(--tsc-color-bg) !important;
  border-radius: 100px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 0;
}

.tsc-home-reserve .tsc-home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--tsc-color-subheading) !important;
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.tsc-home-reserve .tsc-home-cta:hover {
  color: var(--tsc-color-bg) !important;
}

.tsc-home-reserve .tsc-home-cta:hover::before {
  transform: scaleX(1);
}

/* Blog */

@property --tsc-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.tsc-blog-section {
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
}

.tsc-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}

.tsc-card {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  animation: tsc-fadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
  isolation: isolate;
}

.tsc-card[data-index="1"] { animation-delay: 0.08s; }
.tsc-card[data-index="2"] { animation-delay: 0.18s; }
.tsc-card[data-index="3"] { animation-delay: 0.28s; }
.tsc-card[data-index="4"] { animation-delay: 0.38s; }

.tsc-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(72, 52, 212, 0.3),
    0 8px 24px rgba(123, 47, 255, 0.2);
}

.tsc-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  z-index: 0;
  background: conic-gradient(
    from var(--tsc-angle, 0deg),
    transparent 0deg,
    transparent 60deg,
    var(--tsc-c1) 100deg,
    var(--tsc-c2) 140deg,
    var(--tsc-c3) 180deg,
    var(--tsc-c2) 220deg,
    var(--tsc-c1) 260deg,
    transparent 300deg,
    transparent 360deg
  );
  animation: tsc-border-spin 3.5s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}

@keyframes tsc-border-spin {
  from { --tsc-angle: 0deg; }
  to   { --tsc-angle: 360deg; }
}

.tsc-card-inner {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.4s ease;
}

.tsc-card:hover .tsc-card-inner {
  background: rgba(255, 255, 255, 0.13);
}

.tsc-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
  transition: border-radius 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.tsc-card:hover .tsc-card-image-wrap {
  border-radius: 20px 20px 0 0;
}

.tsc-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.tsc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.tsc-card:hover .tsc-card-img {
  transform: scale(1.08);
}

.tsc-card-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tsc-c1) 0%, var(--tsc-c2) 100%);
}

.tsc-card-content {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tsc-card-title-link {
  text-decoration: none;
}

.tsc-card-title {
  font-family: var(--tsc-font-heading) !important;
  font-size: 1rem !important;
  color: var(--tsc-color-primary) !important;
  margin: 0;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.tsc-card-title-link:hover .tsc-card-title {
  color: var(--tsc-color-subheading);
}

.tsc-card-excerpt {
  font-family: var(--tsc-font-body);
  font-size: 0.8rem;
  color: var(--tsc-color-text);
  line-height: 1.9;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tsc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(52, 31, 151, 0.1);
  flex-wrap: wrap;
  gap: 8px;
}

.tsc-card-cat,
.tsc-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--tsc-font-body) !important;
  font-size: 12px !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.tsc-card-cat {
  color: var(--tsc-color-subheading) !important;
}

.tsc-card-cat:hover {
  opacity: 0.75 !important;
}

.tsc-card-date {
  color: var(--tsc-color-text) !important;
}

.tsc-meta-icon {
  width: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes tsc-fadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .tsc-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tsc-blog-grid {
    grid-template-columns: 1fr;
  }
  .tsc-blog-section {
    padding: 40px 16px;
  }
}

/* Footer */
.tsc-footer-form form textarea{
	resize: none;
	border-radius: 20px !important;
}
.tsc-footer-logo img, .tsc-footer-social img{
	filter: brightness(0) invert(1);
}
.tsc-footer-links a{
	font-family: var(--tsc-font-body);
	color: var(--tsc-color-bg);
	font-size: 0.9rem;
}
.tsc-footer-creaotr a{
	font-family: var(--tsc-font-body);
}