@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter/InterVariable-Italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
    --bs-primary: #000000 !important;
    --bs-secondary: #ffffff !important;
}
.text-primary {color: var(--bs-primary) !important}.text-secondary {color:var(--bs-secondary) !important}
.bg-primary {background-color: var(--bs-primary) !important}.bg-secondary {background-color:var(--bs-secondary) !important}
.btn-primary {color: var(--bs-primary) !important}.btn-secondary {color:var(--bs-secondary) !important}
body {
  font-family: 'Inter', sans-serif;
  color:#000;
}
:root {
    --font-base: 16px;
    --leading: 1.6;
}

/* Headings */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 650; line-height: 1.25; }
h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 550; line-height: 1.35; }

body, p {
    font-size: var(--font-base);
    line-height: var(--leading);
    font-weight: 400;
}
a{
    text-decoration: none;
    color: var(--bs-primary);
}
footer a{
    color: var(--bs-secondary);
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}
.fw-medium {
    font-weight: 600;
}
.mt-6 {
    margin-top: 5rem;
}
.mb-6 {
    margin-bottom: 5rem;
}
.pt-6 {
    padding-top: 5rem;
}
.pb-6 {
    padding-bottom: 5rem;
}
/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
}
.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}
.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}
.science .btn.btn-link::before,
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}
.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}
/* namjoo */
span.date {
    background: #fbecd3;
    padding: 4px;
    border-radius: 0 7px 7px 0;
    font-size: 14px;
}
.category{
    background-color: rgb(107, 75, 0);
    color: rgb(245, 171, 0);
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 12px;
}
.fs-7 {
    font-size: 0.87rem;
}
.fs-8 {
    font-size: 0.7rem;
}
/* grid tools  */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
@media (min-width: 576px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch; /* پیشفرض است، اما برای اطمینان مشخص کنید */
    }
}
.tool-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 2px 2px 10px #efefef;
}
/* grid tools  */
code.language-python {
    background: #eee;
    display: block;
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem 0;
}

.text-footer{
    color:var(--bs-secondary);
}
a{
    text-decoration: none;
}
/* ----------- */
.bgb {
  background-color: #fafafa;
}
.bgb input::placeholder {
  color: #6c757d;
}
.bgb .btn-light:hover {
  background-color: #efefef;
}
.bgb .form-check-label {
  font-weight: 500;
  color: #555;
}
/* ✅ Dropdown با اسکرول و طراحی گرد */
.custom-dropdown {
  border-radius: 16px;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  padding: 10px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  min-width: 230px;
  max-height: 250px;
  overflow-y: auto;
}

/* آیتم‌های داخل منو */
.custom-dropdown .dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  color: #444;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-dropdown .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #222;
}
/* حذف آیکن‌های اضافی داخل لیست بازشو */
.custom-dropdown .dropdown-item i {
  display: none;
}
/* ✅ Responsive */
@media (max-width: 576px) {
  .bgb .form-check {
    width: 100%;
    text-align: center;
  }

  .bgb input {
    font-size: 1rem;
  }
}

 
    /*  */




.tool-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.tool-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.tool-image-wrapper {
    height: 180px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.tool-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tool-card-hover:hover .tool-image {
    transform: scale(1.05);
}


.badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
}


#social-link a{
    color:#c7c7c7;
}

header{
    box-shadow: 0 0rem 0.2rem rgba(0, 0, 0, .1) !important;
}
/* search */
/* category */
.category-mini-card {
    background-color: #fdfdfd;
    transition: all 0.2s ease-in-out;
    border: 1px solid #f1f1f1;
}
.category-mini-card:hover {
    transform: translateY(-3px);
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}
/* social */
.hover-highlight span,
.hover-highlight i {
    color: #495057; 
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
  }
.hover-highlight:hover span,
.hover-highlight:hover i {
    color:var(--bs-primary); 
    transform: scale(1.1);
}


/* tags ai news */
.tag-badge {
  transition: all 0.2s ease-in-out;
  border-radius: 0.4rem; /* کمتر از rounded-pill */
  font-size: 0.85rem;
}
.tag-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tag-badge .badge {
  font-size: 0.75rem;
  padding: 0.25em 0.45em;
}
/* navbarlog */
.navbar-brand-logo img{
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0s ease, transform 2s ease;
    pointer-events: none; /* جلوگیری از کلیک در حالت مخفی */
    display: none;
}
.shadow-sm .navbar-brand-logo img{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}
/* language and search */
.header-top {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.bgb .btn-light:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}
/* language and search */
.btn-light {
  color: #444;
  background-color: #f8f9fa;
  border: none;
  transition: background-color 0.2s ease;
}
.btn-light:hover {
  background-color: #e9ecef;
}
#main-link-home{
    border-top: 2px #eee ridge;
}
.small-placeholder::placeholder {
  font-size: 0.9rem;
  color: #6c757d;
}
.icon-circle {
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.2);
}
.more-button{
    color: #bbb;
    border: 1px solid #bbb;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease-in-out;
}
.more-button:hover{
  transform: translateY(-4px);
  color: #bbb;
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.15);
}
/*  ai tools start*/
.ai-tools-section {
  background: #f8f9fa;
}
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
}
.bookmark-btn {
  background: none;
  border: none;
  color: #555;
}
.bookmark-btn.active {
  color: var(--bs-secondary);
}
.grid-view .tool-card { display: block; }
.list-view .tool-card { width: 100%; }
.list-view .tool-box {
  flex-direction: row;
  align-items: center;
}
/* form ai news */
.custom-toggle-btn {
transition: all 0.3s ease-in-out;
}
.custom-toggle-btn:hover {
background-color: #ffffff !important;
color: #000000 !important;
border: 1px solid #000000;
}
.custom-toggle-btn {
transition: all 0.3s ease-in-out;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.custom-toggle-btn:hover {
background-color: #ffffff !important;
color: #000000 !important;
border: 1px solid #000000;
transform: scale(1.05);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
/* Categories */
.trending-categories {
    min-height: 300px;
    background: #fafafa; /* خاکستری خیلی روشن */
}
.category-label {
    background: #fff;
    border: 1px solid #e0e0e0; /* حاشیه خیلی ظریف */
    border-radius: 50px; /* برای حس برچسب */
    transition: all 0.3s ease;
}

.category-label:hover {
    background: #f0f0f0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); /* سایه ظریف */
    transform: translateY(-2px);
}
.category-label i {
    color: #444; /* خاکستری متوسط */
    transition: color 0.3s ease;
}
.category-label:hover i {
    color: #000; /* مشکی برای کنتراست */
}
.category-label span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    font-family: 'Inter', sans-serif;
}
.hover-label {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
@media (max-width: 768px) {
    .category-label span {
        font-size: 0.8rem;
    }

    .category-label i {
        font-size: 0.8rem;
    }

    .category-label {
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .category-label span {
        font-size: 0.75rem;
    }

    .category-label {
        padding: 0.4rem 1rem;
    }
}
/* 3rd party services */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  gap: 20px;
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.icon-box:hover {
  transform: scale(1.05);
}
/* Pagination */
/* استایل مدرن و شیک با تم روشن‌تر */
nav[aria-label="CU Pagination"] {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    /* padding: 12px 18px;
    background: #f5f5f5; /* خاکستری روشن */
    /* border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; */
}

.pagination:hover {
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); */
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: #e0e0e0; /* خاکستری روشن‌تر */
    color: #333333; /* خاکستری تیره */
    text-decoration: none;
    border-radius: 50% !important;
    font-size: 1.15em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.page-link:hover {
    background: #ffffff; /* سفید خالص */
    color: #1a1a1a; /* سیاه ملایم */
    transform: translateY(-2px) scale(1.1);
    border-color: #d0d0d0; /* حاشیه خاکستری روشن */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.page-item.active .page-link {
    background: #ffffff; /* سفید */
    color: #1a1a1a; /* سیاه */
    font-weight: 600;
    transform: translateY(-2px) scale(1.1);
    border-color: #b0b0b0; /* حاشیه خاکستری */
    cursor: default;
}
.page-item.disabled .page-link {
    background: #d9d9d9; /* خاکستری روشن‌تر */
    color: #757575; /* خاکستری متوسط */
    cursor: not-allowed;
    opacity: 0.8;
}
.page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 200, 200, 0.3);
}
@media (max-width: 600px) {
    .pagination {
        flex-wrap: wrap;
        padding: 8px 12px;
    }
    .page-link {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
}
/* suggest */
.typing-animation p {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(30, end), blink 0.8s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
#thankyou-box {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}
.thank-message {
    display: inline-block;
    white-space: pre-wrap;
    overflow: hidden;
    animation: blinkCursor 0.7s steps(2) infinite;
}
/* navbar */
/* لوگو وسط بالا */
.navbar img.logo {
  height: 50px;
  transition: transform 0.3s ease;
}
/* منو وسط چین و افقی */
.menu {
  display: flex;
  gap: 1.5rem;
  justify-content: start;
  max-width: 900px;
}
/* لینک ها */
.menu a {
  color: #000;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: #000;
  transition: width 0.3s ease;
}
.menu a:hover::after {
  width: 100%;
}
.menu a:hover {
  color: #333;
}
/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}
.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 1rem;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  box-shadow: 0 8px 16px rgba(255 255 255 / 0.1);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  /* نمایش با فراخوانی */
  display: grid;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
header .ddtools {
  min-width: 310px;
  grid-template-columns: repeat(2, 1fr);
}
.dropdown-menu.w0 {
  min-width:auto;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  padding: 0.3rem 0;
  display: block;
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
}

/* Overlay Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 1000;
}
.overlay.active {
  display: flex;
}
.overlay ul {
  list-style:none; 
  padding:0; 
  margin:0; 
  width:100%; 
  max-width: 320px;
}
.overlay li {
  margin-bottom: 16px;
}
/* لینک های اصلی overlay */
.overlay a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  position: relative;
  user-select: none;
  display: block;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.overlay a:hover {
  color: #ccc;
}
.overlay a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.overlay a:hover::after {
  width: 100%;
}

/* دکمه X */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ccc;
}

/* زیرمنوهای آکاردئونی در overlay */
.overlay .submenu {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  margin-top: 6px;
  gap: 8px;
  font-size: 1.2rem;
  color: #bbb;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

/* وقتی باز شد */
.overlay li.expanded > .submenu {
  max-height: 500px; /* کافی برای چند آیتم */
  opacity: 1;
  pointer-events: auto;
}

/* نشانگر آیکون برای زیرمنو */
.overlay .has-sub > a::after {
  content: "▼";
  font-size: 0.8rem;
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
  user-select: none;
}

.overlay li.expanded > a::after {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  /* لوگو وسط و کوچکتر */
  .navbar img.logo {
    height: 45px;
  }
}
.dropdown-menu {
  border-radius: 8px;
}
/* reset bootstrap navbar*/
.dropdown-toggle::after {
border: none;
}
/* end navbar */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3) !important;
}
.form-check-input:checked {
  background-color: #000 !important;
  border-color: #000 !important;
}
.form-check-input:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3) !important;
}
.form-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
}
/* menu */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* لوگو چپ، منو راست */
}

.navbar-logo img {
  max-height: 33px;
}
/* respinsivemenu */
.menu-trigger {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: #222;
  border-radius: 5px;
  flex-direction: column;
  gap: 5px;
}

/* سه خط مورب */
.menu-trigger .diagonal-line {
  height: 3px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
}
.menu-trigger .line1 { width: 15px; }
.menu-trigger .line2 { width: 25px; }
.menu-trigger .line3 { width: 18px; }

/* منو */
.menu.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  max-width: 300px;
  height: 100%;
  background: #f9f9f9;
  padding: 60px 20px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(.785,.135,.15,.86);
  overflow-y: auto;
  z-index: 15;
}

.menu.menu.menu-mobile.open { transform: translateX(0); }
.menu.menu.menu-mobile ul { list-style: none; padding: 0; margin: 0; }
.menu.menu.menu-mobile ul > li {
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #0c0c0c;
  text-shadow: 0 0 3px rgba(255,255,255,0.2);
}
.menu.menu.menu-mobile ul > li:hover {
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
  color: #000000;
}

.menu.menu.menu-mobile ul li p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  padding: 10px;
}

.menu.menu.menu-mobile ul li ul {
  list-style: none;
  padding-left: 15px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
}
.menu.menu.menu-mobile ul li ul li {
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
  font-size: 1.3rem;
  padding: 5px 0 5px 15px;
}
.menu.menu.menu-mobile ul li.open > ul { max-height: 500px; opacity: 1; }
.menu.menu.menu-mobile ul li.open > ul li { transform: translateX(0); opacity: 1; }
.menu.menu.menu-mobile ul li.open > ul li:nth-child(1) { transition-delay: 0.05s; }
.menu.menu.menu-mobile ul li.open > ul li:nth-child(2) { transition-delay: 0.1s; }
.menu.menu.menu-mobile ul li.open > ul li:nth-child(3) { transition-delay: 0.15s; }
.menu.menu.menu-mobile ul li.open > ul li:nth-child(4) { transition-delay: 0.2s; }

/* فلش کنار زیرمنو */
.menu.menu.menu-mobile ul li > p .arrow {
  font-size: 1.2rem;
  margin-left: 5px;
  transition: transform 0.35s ease;
}
.menu.menu.menu-mobile ul li.open > p .arrow { transform: rotate(90deg); }

/* خط عمودی زیرمنو */
.menu.menu.menu-mobile ul li ul::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #444;
}
/* حالت باز شدن منو (سه خط مورب تبدیل به ضربدر) */
.menu-trigger.open .line1 {
  transform: rotate(45deg) translate(5px, 5px);
  width: 25px;
}
.menu-trigger.open .line2 {
  opacity: 0;
}
.menu-trigger.open .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 25px;
}
div#menu-trigger {
    padding: 4px;
}
.navbar-logo-mobile{display: none;}
/* موبایل */
@media(max-width:480px){
  .menu.menu.menu-mobile { width: 80%; padding: 60px 15px 20px 15px; }
  .menu.menu.menu-mobile ul li p { font-size: 1.3rem; }
  .menu.menu.menu-mobile ul li ul li { font-size: 1.1rem; }
  .menu-trigger { width: 35px; height: 35px; }
  .menu-trigger .diagonal-line { height: 4px; margin: 4px auto;}
  .menu-trigger .line1 { width: 20px; }
  .menu-trigger .line2 { width: 27px; }
  .menu-trigger .line3 { width: 18px; }
  
  .navbar-logo-mobile {
    display: flex;
    flex-direction: column;   /* زیر هم */
    align-items: center;      /* افقی وسط */
    justify-content: center;  /* عمودی وسط (اگه ارتفاع داشته باشه) */
    text-align: center;       /* متن وسط */
  }
  .navbar-logo-mobile img {
    max-width: 120px; /* یا هر اندازه مناسب */
    height: auto;
  }
  .navbar-logo-mobile .logo-text {
    font-size: 11px;
  }
}
/* منوی دسکتاپ */
.menu-desktop {
  display: block; 
}
/* منوی موبایل */
.menu-trigger,
.menu-mobile {
  display: none;
}
/* وقتی عرض صفحه کوچک شد (مثلاً موبایل) */
@media (max-width: 480px) {
  .menu-desktop { display: none; }
  .menu-trigger,
  .menu-mobile { display: block; }
}
#suggestToolForm input::placeholder,
#suggestToolForm textarea::placeholder {
  color: #bbb;      /* رنگ روشن برای خواناتر شدن */
  opacity: 1;       /* جلوگیری از کم‌رنگ شدن در مرورگرها */
}

.user-dropdown .btn {
    border-radius: 8px;
    padding: 0.4rem 1rem;
    background: #f8f9fa;
    color: #333;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.2s ease;
}
.user-dropdown .btn:hover {
    background:#e9ecef;
}

/* Dropdown Items */
.dropdown-menu {
    min-width: 200px;
    background:#fff;
}
.dropdown-item {
    display:flex;
    align-items:center;
    padding:0.6rem 1rem;
    border-radius:6px;
    transition: all 0.2s ease;
}
.dropdown-item i { margin-right: 0.5rem; }
.dropdown-item:hover {
    background:#f0f0f5;
    color:#0d6efd;
    transform: translateY(-1px);
}
.dropdown-divider { margin:0.3rem 0; border-top:1px solid #ddd; }

/* Animation */
.animate-dropdown {
    transform: translateY(-5px);
    opacity:0;
    transition: all 0.2s ease;
}
.dropdown-menu.show.animate-dropdown {
    transform: translateY(0);
    opacity:1;
}
/* Responsive */
@media (max-width: 576px) {
    .user-dropdown { top:15px; right:15px; }
    .user-dropdown .btn { padding:0.35rem 0.8rem; font-size:0.9rem; }
    .dropdown-item { font-size:0.9rem; padding:0.5rem 0.8rem; }
}
/* footer */
.bghf{
  background-color: #f4f4f4;
}
  .footer,.footer a {
    color: #333;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
  }

  .footer-links a:hover {
    color: #0077b5;
  }
html {
  font-feature-settings: 'cv03', 'cv04', 'cv11';
  font-size: 100%; /* 16px پایه */
}
/* فاصله بین بخش‌ها (فقط وقتی بعد از h هست) */
h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + * {
  margin-top: 0 !important;
}
/* فاصله عمودی بین بلوک‌ها (اختیاری) */
.section {
  margin-bottom: 2rem;
}
.glass-section-minimal {
    background: rgba(255,255,255,0.25);  /* شفافیت سبک */
    backdrop-filter: blur(8px);          /* افکت گلس ملایم */
    border-radius: 12px;
    margin: 1rem auto;
    padding: 1.5rem 1rem;                /* ارتفاع کم و جمع‌وجور */
}
.section-title-minimal {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}
.section-counter-minimal {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.5rem;
}
.section-subtitle-minimal {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .glass-section-minimal {
        padding: 1rem 0.8rem;
    }
    .section-title-minimal {
        font-size: 1.3rem;
    }
    .section-counter-minimal {
        font-size: 0.95rem;
    }
    .section-subtitle-minimal {
        font-size: 0.8rem;
    }
}
.ads-photo {
    width: 30%;
}
@media (max-width: 768px) {
    .ads-photo {
        width: 70%;
    }
}
.ads-section{
border-radius: 20px;
background: #ffffff;
box-shadow:  0px 3px 14px 0px #adadad, -10px -10px 20px #ffffff;
}

/* home page */
.search-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 5% 56px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow:
      0 20px 20px rgba(82, 98, 248, 0.09),
    0 12px 20px rgba(94, 83, 253, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.6s ease;
}