/*
Theme Name: TG search
Author: TG search
Description: Directory-focused theme for Telegram channels, groups, and bots.
Version: 1.1.0
License: All Rights Reserved
Text Domain: tgsearch
*/

:root {
  --tt-blue: #1e90ff;
  --tt-red: #ff0000;
  --tt-purple: #6f42c1;
  --tt-bg: #f6f8fb;
  --tt-text: #1f2937;
  --tt-header-height: 80px;
}

body {
  background: var(--tt-bg);
  color: var(--tt-text);
  font-family: var(--bs-body-font-family, sans-serif), "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a,
a:hover,
a:focus-visible,
a:visited,
a:active {
  text-decoration: none;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  margin-top: 0;
  margin-bottom: .65rem;
}

h1, .h1 { font-size: 1.65rem; line-height: 1.25; }
h2, .h2 { font-size: 1.4rem; line-height: 1.3; }
h3, .h3 { font-size: 1.2rem; line-height: 1.35; }
h4, .h4 { font-size: 1.08rem; line-height: 1.4; }
h5, .h5 { font-size: .95rem; line-height: 1.45; }
h6, .h6 { font-size: .88rem; line-height: 1.45; }

@media (min-width: 768px) {
  h1, .h1 { font-size: 1.82rem; line-height: 1.22; }
  h2, .h2 { font-size: 1.56rem; line-height: 1.28; }
  h3, .h3 { font-size: 1.32rem; line-height: 1.35; }
  h4, .h4 { font-size: 1.15rem; line-height: 1.38; }
  h5, .h5 { font-size: 1rem;   line-height: 1.42; }
  h6, .h6 { font-size: .94rem;  line-height: 1.45; }
}

@media (min-width: 1200px) {
  h1, .h1 { font-size: 1.98rem; line-height: 1.2; }
  h2, .h2 { font-size: 1.68rem; line-height: 1.25; }
  h3, .h3 { font-size: 1.38rem; line-height: 1.32; }
  h4, .h4 { font-size: 1.18rem; line-height: 1.36; }
  h5, .h5 { font-size: 1.05rem; line-height: 1.4; }
  h6, .h6 { font-size: .93rem;  line-height: 1.42; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e6ecf5;
  box-shadow: 0 10px 30px -24px rgba(2, 8, 23, .45);
}

.tt-header-shell {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
}

.tt-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #111827 !important;
  text-decoration: none;
}

.tt-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}

.tt-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.tt-brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #111827;
}

.tt-brand-tag {
  font-size: .77rem;
  color: #64748b;
  margin-top: .08rem;
}

.tt-main-nav {
  flex-grow: 1;
  width: auto;
}

.tt-main-nav .navbar-nav {
  align-items: center;
  justify-content: flex-end;
  display: flex;
  flex-direction: row;
}

.tt-main-nav .nav-link,
.tt-main-nav .menu-item > a {
  position: relative;
  color: #334155 !important;
  padding: .6rem 1rem !important;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
  display: inline-flex;
  align-items: center;
}

.tt-main-nav .menu-item-has-children {
  position: relative;
}

.tt-main-nav .menu-item-has-children > .sub-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: .45rem;
  list-style: none;
  display: none;
  border: 1px solid #dbeafe;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(2, 8, 23, 0.16);
  z-index: 10;
}

/* Transparent bridge: prevents the dropdown from closing while the pointer
   crosses the visual gap between the parent item and submenu. */
.tt-main-nav .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.tt-main-nav .menu-item-has-children:hover > .sub-menu,
.tt-main-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.tt-main-nav .menu-item-has-children > a::after {
  content: "▾";
  margin-left: .4rem;
  font-size: .82rem;
  transition: transform .18s ease;
  opacity: .7;
}

.tt-main-nav .menu-item-has-children:hover > a::after,
.tt-main-nav .menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg);
}

.tt-main-nav .sub-menu .nav-link,
.tt-main-nav .sub-menu .menu-item > a {
  border-radius: 10px;
  padding: .55rem .7rem !important;
}

.tt-main-nav .sub-menu .menu-item-has-children > a::after {
  opacity: .45;
}

.tt-main-nav .sub-menu .sub-menu {
  top: -0.2rem;
  left: calc(100% - .45rem);
}

.tt-main-nav .nav-link:hover,
.tt-main-nav .nav-link:focus-visible,
.tt-main-nav .menu-item > a:hover,
.tt-main-nav .menu-item > a:focus-visible {
  color: #0f172a !important;
  background: #eff6ff;
  transform: translateY(-1px);
}

.tt-main-nav .navbar-nav .current-menu-item .nav-link {
  color: #0b4ee4 !important;
  background: #eff6ff;
}

.tt-main-nav .navbar-nav .current-menu-item > a {
  color: #0b4ee4 !important;
  background: #eff6ff;
}

.tt-header-search {
  flex: 0 1 300px;
  max-width: 300px;
  margin-left: auto;
  margin-right: .65rem;
  display: flex;
  align-items: center;
}

.tt-header-search-input {
  min-width: 170px;
  width: 100%;
  border: 1px solid #dce5f2;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #fff;
  padding: .55rem 1rem;
  outline: none;
  height: 40px;
}

.tt-header-search-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12);
}

.tt-header-search button {
  border: 1px solid #dce5f2;
  border-left: 0;
  width: 44px;
  height: 40px;
  border-radius: 0 999px 999px 0;
  background: var(--tt-blue);
  color: #fff;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-mobile-search,
.tt-mobile-menu-trigger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d4dcf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 28px;
}

.tt-mobile-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.tt-mobile-menu-icon {
  font-size: 1.45rem;
  line-height: 1;
  color: #0f172a;
}

.tt-mobile-search:focus-visible,
.tt-mobile-search:hover,
.tt-mobile-menu-trigger:focus-visible,
.tt-mobile-menu-trigger:hover {
  background: #f8fbff;
}

.tt-mobile-nav-panel {
  width: min(320px, 78vw);
  background: #0f172a;
  color: #fff;
}

.tt-mobile-nav-panel .offcanvas-header {
  position: relative;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.tt-mobile-nav-panel .offcanvas-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  margin: 0;
}

.tt-mobile-nav-panel .tt-offcanvas-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: .65rem;
  padding: .25rem 0 0.15rem;
}

.tt-mobile-nav-panel .tt-offcanvas-brand img,
.tt-mobile-nav-panel .tt-offcanvas-brand .tt-offcanvas-brand-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  object-position: center;
}

.tt-mobile-nav-panel .tt-offcanvas-brand .custom-logo {
  width: 150px;
  height: 150px;
}

.tt-mobile-nav-panel .tt-offcanvas-brand .custom-logo-link,
.tt-mobile-nav-panel .tt-offcanvas-brand .tt-offcanvas-brand-link,
.tt-mobile-nav-panel .tt-offcanvas-brand .tt-offcanvas-brand-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-mobile-nav-panel .tt-offcanvas-brand-fallback {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
}

.tt-mobile-nav-panel .tt-offcanvas-brand-name {
  margin: 0.3rem 0 0;
  font-weight: 700;
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

.tt-mobile-nav-panel .tt-offcanvas-brand .custom-logo-link {
  line-height: 0;
}

.tt-mobile-nav-panel .offcanvas-body {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.tt-mobile-nav-list {
  gap: .7rem;
}

.tt-mobile-nav-list .nav-link,
.tt-mobile-nav-list .menu-item > a {
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 10px;
  padding: .9rem 1rem !important;
  color: #fff !important;
  min-height: 46px;
  display: flex !important;
  align-items: center;
  transition: background-color .18s ease, transform .18s ease, border-color .18s ease;
}

.tt-mobile-nav-list > .menu-item > a {
  background: rgba(255, 255, 255, 0.07);
  font-weight: 700;
  font-size: 1rem;
}

.tt-mobile-nav-list .sub-menu .menu-item > a {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
  border-color: rgba(148, 163, 184, 0.22);
}

.tt-mobile-nav-list .nav-link:hover,
.tt-mobile-nav-list .nav-link:focus-visible,
.tt-mobile-nav-list .menu-item > a:hover,
.tt-mobile-nav-list .menu-item > a:focus-visible {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(147, 197, 253, 0.75);
  transform: translateX(2px);
}

.tt-mobile-nav-list .menu-item-has-children {
  position: relative;
}

.tt-mobile-nav-list .menu-item-has-children > .nav-link,
.tt-mobile-nav-list .menu-item-has-children > a {
  width: 100%;
  padding-inline-end: 3.2rem !important;
}

.tt-mobile-nav-list .tt-mobile-submenu {
  margin-top: .4rem;
  padding-left: .45rem;
  list-style: none;
  border-left: 1px solid rgba(148, 163, 184, 0.32);
  display: none;
  margin-left: 0;
}

.tt-mobile-nav-list .tt-mobile-submenu.is-open {
  display: block;
}

.tt-mobile-submenu-toggle {
  position: absolute;
  inset-inline-end: .72rem;
  top: .7rem;
  transform: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #fff;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 8px;
  font-size: .92rem;
  line-height: 1;
}

.tt-mobile-submenu-toggle.is-open {
  transform: rotate(180deg);
}

.tt-mobile-submenu-toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-color: #93c5fd;
  background: rgba(59, 130, 246, 0.22);
}

.tt-mobile-nav-list .menu-item-has-children > .tt-mobile-submenu-toggle {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 992px) {
  .tt-mobile-search,
  .tt-mobile-menu-trigger {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .tt-header-search {
    display: none;
  }

  .tt-main-nav {
    display: none;
  }

  .tt-header-shell {
    min-height: 50px;
    padding: .45rem 0 .55rem;
    align-items: center;
    gap: .55rem;
  }

  .tt-brand-copy {
    max-width: 150px;
  }


  .tt-brand-tag {
    font-size: .72rem;
  }

  .tt-mobile-nav-list .menu-item-has-children > a::after {
    display: none;
  }

  .tt-mobile-nav-list .tt-mobile-submenu .nav-link {
    border-radius: 8px;
  }

  .tt-mobile-nav-list .sub-menu .nav-link {
    padding-left: 1.1rem !important;
  }

  .tt-mobile-nav-list .sub-menu .menu-item > a {
    padding-left: 1.25rem !important;
    font-size: .96rem;
  }

  .tt-mobile-nav-list .sub-menu .tt-mobile-submenu {
    margin-top: .55rem;
    padding-left: .95rem;
  }
}

.site-main {
  min-height: 70vh;
}

.tg-card {
  border: 1px solid #e6eef8;
  border-radius: 14px;
  overflow: hidden;
}

.tg-meta {
  color: #64748b;
  font-size: 0.875rem;
}

.tg-meta strong {
  color: #0f172a;
}

.tg-thumbnail {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.searchform {
  margin: 20px 0;
}

.tt-google-search-wait {
  margin: 10px 0;
  color: #ff0000;
  font-size: 1.05rem;
  text-align: center;
}

.tt-google-results-grid {
  display: block;
  gap: .85rem;
  max-width: 700px;
  margin: 0 auto;
  background-color: #f6f8fb;
}

.gsc-control-cse {
    border-color: #f6f8fb !important;
    background-color: #f6f8fb !important;
}

@media (min-width: 768px) {
  .tt-google-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
  }
}

.tt-google-result-card-wrap {
  width: 100%;
  min-width: 0;
}

.tt-google-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.tt-google-results-list .tt-google-result-card-wrap {
  grid-column: span 1;
}

.tt-google-results-list .gsc-webResult-divider {
  display: none;
}

.tt-google-custom-search-wrap .gsc-webResult .gsc-result {
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;  border-radius: .35rem;
  background: #fff !important;
  padding: .85rem .95rem !important;
  box-shadow: 0 8px 24px -20px rgba(2, 8, 23, .18);
  margin:20px 0;
}

.tt-google-custom-search-wrap .gsc-webResult .gsc-result:hover {
    border-color: var(--bs-info) !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tg-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tt-blue);
  color: #fff;
}

.tg-search-btn:hover {
  opacity: 0.9;
}

.tg-search-input {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.65rem 1rem;
}

.floating-buttons-wrapper {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
}

.floating-buttons {
  display: flex;
  gap: 0.8rem;
}

.floating-buttons a,
.floating-buttons .tt-pwa-install-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--tt-blue);
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
button#tt-pwa-install-btn {
  width: 100px;  
  border-radius: 50px;  
}
.floating-buttons a:hover,
.floating-buttons .tt-pwa-install-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 0, 0, 0.24);
}

.floating-buttons a:active,
.floating-buttons .tt-pwa-install-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.floating-buttons a:focus-visible,
.floating-buttons .tt-pwa-install-btn:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.22);
  outline-offset: 2px;
}

.floating-buttons .tt-pwa-install-btn {
  border: 0;
  margin: 0;
  padding: 0 0.25rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.05;
  white-space: normal;
  font-size: 12px;
  font-weight: 700;
  background: #0d6efd;
  box-shadow: none;
}

.floating-buttons .tt-pwa-install-btn:hover {
  background: #0b5ed7;
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.34);
}

.tg-cta {
  --pulse: 255, 0, 0;
  display: inline-flex;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: visible;
}

.tg-cta::before,
.tg-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--pulse), .55);
  animation: tg-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.tg-cta::after {
  animation-delay: .6s;
}

.tg-cta img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@keyframes tg-pulse {
  0% {
    transform: scale(1);
    opacity: .55;
  }
  70%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.telegram-link-btn {
  border-radius: 999px;
  color: #fff;
  padding: 0.42rem 1rem;
  min-height: 44px;
  line-height: 1.1;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.01em;
  gap: .45rem;
}

.telegram-link-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(30, 144, 255, 0.22);
}

.telegram-link-btn:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.25);
  outline-offset: 2px;
}

.telegram-link-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.telegram-link-btn:disabled,
.telegram-link-btn.disabled {
  opacity: 0.65;
  pointer-events: none;
  box-shadow: none;
}

.telegram-link-btn.red {
  background: var(--tt-red);
}

.telegram-link-btn.blue {
  background: var(--tt-blue);
}

.telegram-full-link--compact {
  gap: 0.25rem;
  padding-inline: 0.92rem;
}

.telegram-full-link--compact .tt-shortcode-button-content {
  gap: 0.2rem;
}

.telegram-full-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border: 0;
}

.telegram-full-link:hover,
.telegram-full-link:focus {
  opacity: 0.92;
  color: #fff !important;
}

.telegram-full-link:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.3);
  outline-offset: 2px;
}

.tt-shortcode-button-wrap {
  display: block;
}

.tt-shortcode-button-wrapper {
  display: inline-flex;
  gap: 0;
}

.tt-shortcode-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.tt-shortcode-button-wrap.text-center {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.tt-shortcode-button-text {
  color: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.tt-shortcode-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-telegram-icon,
.tt-inline-icon,
.ct-icon,
.user-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.tt-telegram-icon,
.tt-inline-icon {
  width: 16px;
  height: 16px;
}

.recent-posts {
  max-height: 800px;
  overflow: hidden;
  margin-bottom: 10px;
  margin-top: 20px;
  position: relative;
}

.recent-posts.expanded::after {
  display: none;
}

.recent-posts::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

.recent-posts-heading {
  font-size: 18px;
  margin: 5px auto 0;
  text-align: center;
}

.see-more-btn {
  display: inline-block;
  border-radius: 999px;
  background: var(--tt-blue);
  color: #fff !important;
  text-decoration: none;
  padding: 5px 18px;
  margin: 8px auto 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.see-more-btn:hover,
.see-more-btn:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(30, 144, 255, 0.2);
}

.see-more-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.see-more-btn:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.28);
  outline-offset: 2px;
}

.see-more-btn[aria-disabled='true'],
.see-more-btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 37px;
  padding-inline: 1rem;
  border-radius: 999px;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.1px;
  text-transform: none;
  border: 1px solid transparent;
  background: var(--tt-blue);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.language-button:hover,
.language-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 144, 255, 0.2);
}

.language-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.language-button:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.28);
  outline-offset: 2px;
}

.language-button:disabled,
.language-button.disabled {
  opacity: 0.65;
  pointer-events: none;
  box-shadow: none;
}

.channel-filter-bar {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.telegram-count {
  font-weight: 600;
}

.tele-miniapp-btn svg {
  width: 20px;
  height: 20px;
}

.tt-channel-page {
  position: relative;
}

.tt-channel-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e8eef7;
}

.tt-channel-avatar-wrap {
  display: flex;
}

.tt-channel-avatar {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.tt-channel-avatar-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.tt-channel-avatar.tt-featured-post-image {
    outline: 3px solid red;
    outline-offset: 3px;
}

.tt-channel-title-wrap .tt-channel-title {
  font-size: clamp(1.4rem, 2.1vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.tt-channel-subtitle {
  font-size: 0.98rem;
}

.tt-channel-badges .badge {
  padding: 0.42rem 0.8rem;
}

.tt-channel-metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tt-channel-stat-card {
  border: 1px solid #e5edfa;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.85rem;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tt-channel-stat-label {
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.tt-channel-stat-card strong {
  font-size: 1.02rem;
  color: #0f172a;
}

.tt-channel-refresh-btn {
  width: 1.65rem;
  height: 1.65rem;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-refresh-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.tt-refresh-icon path {
  fill-rule: evenodd;
}

.tt-refresh-icon .vi-primary,
.tt-refresh-icon .vi-accent {
  fill-rule: evenodd;
}

.tt-refresh-icon .vi-primary {
  fill: #FF6E6E;
}

.tt-refresh-icon .vi-accent {
  fill: #0C0058;
}

.tt-channel-actions .btn {
  min-height: 42px;
}

.tt-channel-section,
.tt-channel-sidebar {
  border: 1px solid #e8eef7 !important;
  background: #fff;
}

@media (min-width: 992px) {
  .tt-sticky-sidebar {
    position: sticky;
    top: calc(var(--tt-header-height) + 12px);
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    z-index: 1;
  }
}

@media (max-width: 991.98px) {
  .tt-channel-updated-stat .tt-channel-stat-label {
    justify-content: center;
  }

  .tt-channel-updated-stat {
    text-align: center;
  }

  .tt-channel-updated-stat .tt-refresh-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.tt-channel-description {
  line-height: 1.65;
}

.tt-channel-posts-feed-section {
  padding-top: 0.5rem;
}

.tt-channel-posts-feed-wrapper {
  position: relative;
}

.tt-channel-posts-feed {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.tt-channel-posts-feed.tt-channel-posts-collapsed {
  position: relative;
  max-height: 820px;
  overflow: hidden;
}

.tt-channel-posts-feed.tt-channel-posts-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 65%);
}

.tt-channel-post-card {
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 0.78rem 0.92rem;
  background: #fff;
}

.tt-channel-post-card--is-hidden {
  display: none;
}

.tt-channel-post-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .4rem;
}

.tt-channel-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.tt-channel-post-card__date,
.tt-channel-post-card__views {
  font-size: 0.78rem;
  line-height: 1.2;
}

.tt-channel-post-card__date {
  color: #334155;
  font-weight: 600;
}

.tt-channel-post-card__views {
  color: #64748b;
}

.tt-channel-post-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tt-blue);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.17rem 0.62rem;
  border: 1px solid rgba(30, 144, 255, 0.22);
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tt-channel-post-card__link:hover,
.tt-channel-post-card__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(30, 144, 255, 0.17);
  opacity: 0.93;
}

.tt-channel-post-card__link:active {
  transform: translateY(0);
  box-shadow: none;
}

.tt-channel-post-card__text {
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tt-channel-post-card__text p {
  margin-bottom: .35rem;
}

.tt-channel-post-card__text p:last-child {
  margin-bottom: 0;
}

.tt-channel-post-card__media {
  margin-top: .5rem;
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.tt-channel-post-card__media img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}

.tt-channel-posts-more {
  margin-top: .65rem;
  min-height: 34px;
  padding-inline: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tt-channel-posts-more:hover,
.tt-channel-posts-more:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(30, 144, 255, 0.2);
}

.tt-channel-posts-more:active {
  transform: translateY(0);
  box-shadow: none;
}

.tt-channel-posts-more[aria-expanded="true"] {
  color: #fff;
}

.tt-channel-posts {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e8eef7;
}

.tt-channel-posts img {
  max-width: 100%;
  height: auto;
}

.tt-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tt-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tt-sidebar-item span {
  color: #64748b;
  font-size: 0.86rem;
}

.tt-sidebar-item strong,
.tt-sidebar-item a {
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .tt-channel-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-channel-avatar {
    max-width: 180px;
  }

  .tt-channel-avatar-placeholder {
    max-width: 180px;
    font-size: 2.5rem;
  }
}

@media (max-width: 575px) {
  .tt-channel-metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .floating-buttons a,
  .floating-buttons .tt-pwa-install-btn {
    width: 52px;
    height: 52px;
    font-size: 11px;
  }
}

.tg-channel-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    border-radius: .35rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tg-channel-card:hover {
    border-color: var(--bs-info) !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.tg-channel-card > a {
    height: auto !important;
}

.tg-channel-card .row {
    height: auto !important;
    align-items: flex-start;
}

.tg-channel-card .min-w-0 {
    min-width: 0;
}

.tg-channel-title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 500;
}

.tg-channel-desc {
    font-size: .875rem;
    line-height: 1.5;
    min-height: 0 !important;
}

.tg-channel-meta {
    font-size: .85rem;
    line-height: 1.4;
}

.tg-post-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    padding: 2px;
}

.tt-featured-post-image {
    border-color: red !important;
    border-width: medium;    
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    -webkit-line-clamp: 2;
    line-clamp: 2;
}


@media (max-width: 575.98px) {
    .tg-post-thumb {
        width: 90px;
        height: 90px;
    }

    .tg-channel-desc {
        min-height: 0 !important;
    }
}





.tt-post-card {
    border-radius: 10px;
    background: #fff;
}

.tt-post-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
}

.tt-post-header__avatar img,
.tt-post-header__avatar-fallback {
    width: 32px;
    height: 32px;
    display: block;
}

.tt-post-header__avatar-fallback {
    background: #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
}

.tt-post-header__body {
    min-width: 0;
}

.tt-post-header__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.tt-post-header__date small {
    font-size: 12px;
}

.tt-post-menu-toggle {
    border: 0;
    background: transparent;
    color: #6b7280;
    padding: 2px 6px;
    line-height: 1;
    box-shadow: none;
}

.tt-post-menu-toggle:focus,
.tt-post-menu-toggle:hover {
    background: #f3f4f6;
    color: #111827;
}

.tt-post-media {
    width: 100%;
    background: #f3f4f6;
}

.tt-post-media img,
.tt-post-media-placeholder {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.tt-post-main {
    padding: 14px 16px;
}

.tt-post-text {
    color: #1f2937;
    line-height: 1.8;
    word-break: break-word;
}

.tt-post-text p:last-child {
    margin-bottom: 0;
}

.tt-post-footer {
    padding: 0 16px 12px;
}

.tt-post-meta-bottom {
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
}

.tt-post-link {
    text-decoration: none;
}

.tt-post-link:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
  .tt-channel-avatar-wrap {
    display: flex;
    justify-content: center;
  }
  .row.g-4.align-items-center {
    text-align: center;
    justify-content: center;
  }
  .tt-channel-avatar-wrap {
    display: flex;
    justify-content: center;
  }
  .tt-channel-badges,
  .tt-channel-actions,
  .tt-channel-metric-grid {
    justify-content: center;
  }
}

.tt-footer-widgets ul,
.tt-footer-widgets ol {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.tt-footer-widgets li {
    list-style: none;
}

.tt-footer-widget-area-1,
.tt-footer-widget-area-2,
.tt-footer-widget-area-3,
.tt-footer-widget-area-4 {
    background: #f3f9ff;
}

.tt-footer-widget-area-5 {
    background: #3a4f66;
    color: #ffffff;
}

.tt-footer-widget-area-5,
.tt-footer-widget-area-5 * {
    color: #ffffff;
}

.tt-footer-section-14,
.tt-footer-section-5 {
    padding: 1rem;
}

.tt-footer-section-14 {
    background: #f3f9ff;
}

.tt-footer-section-5 {
    background: #3a4f66;
}

footer.site-footer {
    background-color: #f6f8fb;
}

.tt-footer-widget-area.tt-footer-widget-area-5 {
    text-align: center;
}
article.card.card-body.tg-channel-card.peer-item-box {
    min-height: 120px !important;
}
.g-2, .gx-2 {
    --bs-gutter-x: 1.5rem;
}
.search-wrapper {
    max-width: 600px;
}

.gsc-wrapper {
    max-width: unset !important;
}


.gsc-expansionArea {
    background-color: #f6f8fb;
}

.gsc-results.gsc-webResult.tt-google-result-card {
    background-color: #f6f8fb !important;
}
li.menu-item {
    line-height: 16px;
}
.offcanvas {
    z-index: 99999;
}
.legal-notice {
    text-align: center;
    color:white;
}

/* -----------------------------
   RTL language support
   ----------------------------- */
html[dir="rtl"] body,
body.tgsearch-rtl {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .container,
html[dir="rtl"] .site-main,
html[dir="rtl"] .site-footer {
  direction: rtl;
}

html[dir="rtl"] .tt-header-shell,
html[dir="rtl"] .tt-brand,
html[dir="rtl"] .tt-main-nav,
html[dir="rtl"] .tt-mobile-actions {
  direction: rtl;
}

html[dir="rtl"] .tt-main-nav .menu-item-has-children > .sub-menu {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .tt-main-nav .menu-item-has-children > a::after {
  margin-left: 0;
  margin-right: .4rem;
}

html[dir="rtl"] .tt-main-nav .sub-menu .sub-menu {
  left: auto;
  right: calc(100% - .45rem);
}

html[dir="rtl"] .tt-header-search {
  margin-left: .65rem;
  margin-right: auto;
  direction: rtl;
}

html[dir="rtl"] .tt-header-search-input {
  border-right: 1px solid #dce5f2;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .tt-header-search button {
  border-left: 1px solid #dce5f2;
  border-right: 0;
  border-radius: 999px 0 0 999px;
}

html[dir="rtl"] .tt-mobile-actions {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .tt-mobile-nav-panel .offcanvas-header .btn-close {
  left: 1rem;
  right: auto;
}

html[dir="rtl"] .tt-mobile-nav-list .tt-mobile-submenu {
  padding-left: 0;
  padding-right: .45rem;
  border-left: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.32);
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .tt-mobile-nav-list .nav-link:hover,
html[dir="rtl"] .tt-mobile-nav-list .nav-link:focus-visible,
html[dir="rtl"] .tt-mobile-nav-list .menu-item > a:hover,
html[dir="rtl"] .tt-mobile-nav-list .menu-item > a:focus-visible {
  transform: translateX(-2px);
}

html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

/* Keep addresses, email addresses, phone numbers and numeric fields readable. */
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #telegram_id,
html[dir="rtl"] input[name*="telegram_id"],
html[dir="rtl"] input[type="text"][name*="url"],
html[dir="rtl"] input[type="text"][id*="url"],
html[dir="rtl"] input[type="text"][name*="link"],
html[dir="rtl"] input[type="text"][id*="link"] {
  direction: ltr;
  text-align: left;
}

@media (max-width: 991.98px) {
  html[dir="rtl"] .tt-mobile-nav-list .sub-menu .nav-link {
    padding-left: 0 !important;
    padding-right: 1.1rem !important;
  }

  html[dir="rtl"] .tt-mobile-nav-list .sub-menu .menu-item > a {
    padding-left: 0 !important;
    padding-right: 1.25rem !important;
  }

  html[dir="rtl"] .tt-mobile-nav-list .sub-menu .tt-mobile-submenu {
    padding-left: 0;
    padding-right: .95rem;
  }
}

