:root {
  --primary: #7540bf;
  --background: #f8f6fc;
  --card-bg: rgba(250, 249, 248, 0.84);
  --text: #333333;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --header-bg: rgba(242, 236, 250, 0.8);
  --footer-bg: rgba(255, 255, 255, 0.584);
  --shadow: rgba(0, 0, 0, 0.05);
  --menu-bg: rgba(255, 255, 255, 0.95);
  --nav-height: 70px;
  --bg-dark: #080814;
  --bg1: #fffcfc;
  --back: rgba(230, 220, 245);
}

[data-theme="dark"] {
  --background: #111121;
  --card-bg: rgba(0, 0, 0, 0.392);
  --text: #f1f1f1;
  --text-secondary: #cccccc;
  --border: #333333;
  --header-bg: rgba(0, 0, 0, 0.466);
  --footer-bg: rgba(0, 0, 0, 0.586);
  --shadow: rgba(0, 0, 0, 0.2);
  --menu-bg: rgba(0, 0, 0, 0.95);
  --bg1: #180d2c6c;
  --back: rgb(37, 31, 52);
}

h1 {
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.3rem, 1.8vw + 0.5rem, 1.75rem);
  line-height: 1.18;
}
h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.22;
}
h4 {
  font-size: clamp(1.1rem, 1.2vw + 0.5rem, 1.3rem);
  line-height: 1.25;
}
h5 {
  font-size: clamp(1rem, 1vw + 0.4rem, 1.15rem);
  line-height: 1.28;
}
h6 {
  font-size: clamp(0.9rem, 0.8vw + 0.4rem, 1rem);
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
  font-weight: 300;
  line-height: 1.4;
}

.more {
  margin-top: 3em;
  margin-bottom: 1em;
}
.more h2 {
  margin-bottom: 10px;
}

.box {
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  max-width: 600px;
  width: 100%;
  margin: 1em auto;
}

.box h1 {
  text-align: center;
  padding: 10px 1em;
}

.box form {
  margin: 1em;
}

.box .form_input {
  width: 100%;
  padding: 1em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg1);
  margin-bottom: 1em;
  font-size: 17px;
  color: var(--text);
}

.box .button {
  width: 100%;
  padding: 1em;
  border-radius: 10px;
  border: none;
  background-color: var(--primary);
  color: #fff;
  margin-top: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}

.box .button:hover {
  filter: brightness(110%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: var(--nav-height);
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  display: flex;
  gap: 2px;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.3s ease;
  font-size: 22px;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--text);
  font-size: 22px;
}

.view_content {
  display: flex;
  gap: 20px;
  margin-block: 1em;
}

.view_main {
  flex: 1;
  width: 70%;
}

.view_sidebar {
  width: 30%;
  position: sticky;
  top: 80px;
  height: fit-content;
  margin-top: 1em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card_grid_related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-grid a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.card-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow);
}

.card-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pagination-text {
  text-align: center;
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination {
  margin-top: 5px;
  margin-bottom: 1em;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  height: 40px;
  min-width: 40px;
  font-weight: 600;
}

.pagination a.active,
.pagination a.disabled {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  cursor: default;
  pointer-events: none;
}

.pagination a:hover {
  background: var(--card-bg);
  color: var(--text);
}

.itsflex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;
}

.hideonpc {
  display: none;
}

#goToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: 0;
  cursor: pointer;
  border: 0;
}

#goToTopBtn svg {
  fill: var(--primary);
  background-color: #fff;
  border-radius: 50%;
  padding: 1px;
}

#goToTopBtn svg:hover {
  fill: var(--bg-dark);
}

@media (max-width: 991px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--menu-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px var(--shadow);
    border-top: 1px solid var(--border);
    z-index: 999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .nav-link:hover {
    background-color: var(--primary);
    color: white;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

.result_box {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1em;
}

.result_box_top {
  padding: 2em;
  border-bottom: 2px solid var(--border);
}

.result_box_bottom {
  padding: 1em 2em;
}

.result_box_top span {
  font-size: 50px;
  animation: request_bounce 1s infinite;
  display: block;
}

/* Common button style */
.btn_primary,
.btn_secondary {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  text-decoration: none; /* for <a> */
  line-height: 1.2;
}

.btn_grid {
  display: flex;
  gap: 10px;
}

/* Desktop (side-by-side) */
.btn_grid > * {
  flex: 1; /* makes both equal width */
}

/* Primary Button */
.btn_primary {
  background: var(--primary);
  color: #fff;
}

/* Secondary Button */
.btn_secondary {
  background: var(--bg1);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn_secondary:hover,
.btn_primary:hover {
  filter: brightness(150%);
}
.loading_box {
  display: flex;
  padding: 3em 1em;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: auto;
}

.spin {
  width: 110px;
  height: 110px;
  overflow: hidden;
  margin: auto;
  animation: request_bounce 1s infinite;
  animation: spin 1s infinite;
}

.blink {
  animation: blinker 0.4s linear infinite;
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.big {
  font-size: 2em;
  font-weight: 600;
}

.mtop {
  margin-top: 1em;
}

/* Blurred background overlay */
.request_modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.604);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: request_fadeInBg 0.5s ease forwards;
}

.request_modal.show {
  display: flex;
}

/* Modal Box */
.request_box {
  background-color: var(--background);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

  max-width: 500px;
  width: 90%;
  text-align: center;
  color: var(--text);
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  animation: request_zoomIn 0.6s ease forwards;
}

/* Close button */
.request_close {
  position: absolute;
  top: -5px;
  right: -2px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s;
  background-color: #bb2c2c;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.request_close:hover {
  color: #ffdbe7;
  transform: rotate(90deg);
}

/* Animations */
@keyframes request_fadeInBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes request_zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes request_bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.final_container {
  max-width: 600px;
  width: 98%;
  margin: 1em auto;
}

.final-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
}

.share-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 500px;
  margin: 15px auto;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: #f2f2f2;
  color: #222;
  text-decoration: none;
  transition: 0.25s ease;
}

/* Hover effect */
.share-btn:hover {
  background: #e3e3e3;
  transform: translateY(-2px);
}

/* Copy button */
.share-btn.copy {
  background: #007bff;
  color: #fff;
}
.share-btn.copy:hover {
  background: #006ae6;
}

/* Instagram */
.share-btn.instagram {
  background: #d10869;
  color: #fff;
}
.share-btn.instagram:hover {
  background: #b00758;
}

/* Facebook */
.share-btn.facebook {
  background: #1877f2;
  color: white;
}
.share-btn.facebook:hover {
  background: #0f63cc;
}

/* WhatsApp */
.share-btn.whatsapp {
  background: #25d366;
  color: white;
}
.share-btn.whatsapp:hover {
  background: #1eb85a;
}

/* Pinterest */
.share-btn.pinterest {
  background: #e60023;
  color: white;
}
.share-btn.pinterest:hover {
  background: #c2001d;
}

/* Twitter / X */
.share-btn.twitter {
  background: #000;
  color: white;
}
.share-btn.twitter:hover {
  background: #222;
}

/* Telegram */
.share-btn.telegram {
  background: #0088cc;
  color: white;
}
.share-btn.telegram:hover {
  background: #0077b3;
}

footer {
  margin-top: 3em;
}

.footer_info {
  text-align: center;
  color: var(--text-secondary);
  display: none;
}

.footer_flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 1em;
  gap: 1em;
  width: 100%;
}

.footer_social,
.footer_pages {
  display: flex;
  align-items: center;
  gap: 1em;
  width: 100%;
}

.footer_pages {
  justify-content: flex-end;
}

.footer_social a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer_pages a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer_copyright {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1em;
  padding-bottom: 1em;
}

.heading {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding: 10px;
}

/* --- Base Container --- */
.content {
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word; /* Prevents long words from breaking mobile layout */
}

/* --- Headings --- */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

.content h1 {
  font-size: 2.5rem;
}
.content h2 {
  font-size: 2rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.3em;
}
.content h3 {
  font-size: 1.75rem;
}
.content h4 {
  font-size: 1.5rem;
}
.content h5 {
  font-size: 1.25rem;
}
.content h6 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #666;
}

/* Mobile Adjustments for Headings */
@media (max-width: 768px) {
  .content h1 {
    font-size: 2rem;
  }
  .content h2 {
    font-size: 1.75rem;
  }
  .content h3 {
    font-size: 1.5rem;
  }
}

/* --- Paragraphs & Text --- */
.content p {
  margin-bottom: 1.25em;
  font-size: 1rem; /* approx 16px */
}

.content strong {
  font-weight: 700;
}
.content em {
  font-style: italic;
}

/* --- Links --- */
.content a {
  color: #007bff; /* Change this to your brand color */
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.content a:hover {
  text-decoration: none;
  color: #0056b3;
}

/* --- Lists --- */
.content ul,
.content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em; /* Ensures bullets are visible on mobile */
}

.content li {
  margin-bottom: 0.5em;
}

/* Nested Lists */
.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* --- Images (Crucial for Mobile) --- */
.content img {
  max-width: 100%; /* Prevents image from overflowing screen */
  height: auto; /* Maintains aspect ratio */
  display: block; /* Removes bottom gap */
  margin: 1.5em 0;
  border-radius: 4px;
}

/* --- Blockquotes --- */
.content blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #ddd;
  background-color: var(--back);
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Code Blocks --- */
.content pre {
  background-color: var(--back);
  padding: 1em;
  overflow-x: auto; /* Allows horizontal scroll for code on mobile */
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.content code {
  background-color: var(--back);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.content pre code {
  padding: 0;
  background: none;
}

/* --- Tables (Mobile Friendly) --- */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  display: block; /* Makes table scrollable on strictly mobile views if needed */
  overflow-x: auto; /* Adds scrollbar if table is too wide */
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.content th,
.content td {
  padding: 0.75em;
  border: 1px solid var(--border);
  text-align: left;
}

.content th {
  background-color: var(--back);
  font-weight: 600;
}

.content tr:nth-child(even) {
  background-color: var(--bg1);
}

/* --- Horizontal Rule --- */
.content hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 2em 0;
}

.post_list {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 5px;
  background-color: var(--bg1);
}

.post_list:hover {
  border: 1px solid var(--primary);
}

.post_list img {
  display: block;
  width: 80px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
}

/* 1. Reset the link style so it doesn't look like a blue underlined text */
.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 20px; /* Space between items */
}

/* 2. Container: Acts like the ".row" */
.post-card {
  display: flex; /* Enables side-by-side layout */
  align-items: flex-start; /* Aligns content to the top */
  gap: 20px; /* Space between image and text */
  padding: 15px;
  border: 1px solid var(--border); /* Optional: adds a slight card border */
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--bg1);
}

/* Optional: Hover effect */
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 3. Image Container: Acts like ".col-sm-4" */
.post-media {
  flex: 0 0 33%; /* Fix width to 33% */
  max-width: 33%;
}

/* 4. The Image: Acts like ".rounded" + responsive fix */
.post-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px; /* Replaces bootstrap .rounded */
  object-fit: cover; /* Ensures image doesn't stretch weirdly */
  display: block;
}

.post-content {
  flex: 1; /* Takes up the remaining space */
}

/* 6. Title Styling */
.post-title {
  margin: 0 0 10px 0; /* Remove top margin, add bottom */
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

/* 7. Paragraph Styling: Acts like ".small" */
.post-excerpt {
  font-size: 0.9rem; /* Equivalent to 'small' */
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive Behavior --- */
/* This mimics the "sm" breakpoint in Bootstrap. 
   On screens smaller than 600px, it stacks. */
@media (max-width: 600px) {
  .view_content {
    flex-direction: column;
  }

  .view_main,
  .view_sidebar {
    flex: 1;
    width: 100%;
  }

  .post-card {
    flex-direction: column; /* Stack image on top of text */
  }

  .post-media {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
}

.sidebar_heading {
  margin-top: 1em;
  font-size: 20px;
  padding: 10px;
  border-bottom: 1px solid rgba(122, 122, 122, 0.352);
  margin-bottom: 10px;
  text-align: center;
}

.thumb169 {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.imflex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  background-image: linear-gradient(
      17deg,
      rgba(41, 41, 41, 0.02) 0%,
      rgba(41, 41, 41, 0.02) 48%,
      rgba(10, 10, 10, 0.02) 48%,
      rgba(10, 10, 10, 0.02) 59%,
      rgba(164, 164, 164, 0.02) 59%,
      rgba(164, 164, 164, 0.02) 73%,
      rgba(79, 79, 79, 0.02) 73%,
      rgba(79, 79, 79, 0.02) 93%,
      rgba(42, 42, 42, 0.02) 93%,
      rgba(42, 42, 42, 0.02) 100%
    ),
    linear-gradient(
      42deg,
      rgba(124, 124, 124, 0.02) 0%,
      rgba(124, 124, 124, 0.02) 15%,
      rgba(116, 116, 116, 0.02) 15%,
      rgba(116, 116, 116, 0.02) 23%,
      rgba(41, 41, 41, 0.02) 23%,
      rgba(41, 41, 41, 0.02) 44%,
      rgba(196, 196, 196, 0.02) 44%,
      rgba(196, 196, 196, 0.02) 54%,
      rgba(145, 145, 145, 0.02) 54%,
      rgba(145, 145, 145, 0.02) 100%
    ),
    linear-gradient(
      151deg,
      rgba(85, 85, 85, 0.02) 0%,
      rgba(85, 85, 85, 0.02) 12%,
      rgba(72, 72, 72, 0.02) 12%,
      rgba(72, 72, 72, 0.02) 28%,
      rgba(156, 156, 156, 0.02) 28%,
      rgba(156, 156, 156, 0.02) 33%,
      rgba(230, 230, 230, 0.02) 33%,
      rgba(230, 230, 230, 0.02) 50%,
      rgba(13, 13, 13, 0.02) 50%,
      rgba(13, 13, 13, 0.02) 100%
    ),
    linear-gradient(
      76deg,
      rgba(25, 25, 25, 0.02) 0%,
      rgba(25, 25, 25, 0.02) 9%,
      rgba(183, 183, 183, 0.02) 9%,
      rgba(183, 183, 183, 0.02) 32%,
      rgba(19, 19, 19, 0.02) 32%,
      rgba(19, 19, 19, 0.02) 86%,
      rgba(129, 129, 129, 0.02) 86%,
      rgba(129, 129, 129, 0.02) 88%,
      rgba(174, 174, 174, 0.02) 88%,
      rgba(174, 174, 174, 0.02) 100%
    ),
    linear-gradient(90deg, rgb(4, 11, 32), rgb(15, 0, 22));

  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  color: #fff;
  /* Animation properties */
  background-size: 400% 400%;
  animation: gradientPulse 35s ease infinite;
}

@keyframes gradientPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
ul {
  margin-left: 1em;
}

.hero h1 {
  margin-bottom: 1em;
}
.category_view {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.category_view a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}
.gc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5em;
}

.gc-main-card {
  background: var(--back);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 900px;
  width: 100%;
  margin-bottom: 30px;
}

.gc-title {
  font-size: 2rem;
  font-weight: 700;

  margin-bottom: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gc-search-icon {
  font-size: 2rem;
}

.gc-search-wrapper {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.gc-search-input-wrapper {
  flex: 1;
  position: relative;
  background: white;
}

.gc-search-input {
  width: 100%;
  padding: 18px 20px 18px 50px;
  border: none;
  font-size: 1rem;
  color: #2d2d3d;
  outline: none;
}

.gc-search-input::placeholder {
  color: #999;
}

.gc-search-icon-input {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
}

.gc-search-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gc-search-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-1px);
}

.gc-search-btn:active {
  transform: translateY(0);
}

.gc-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.gc-category-btn {
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gc-category-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.gc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  width: 100%;
  margin: auto;
}

.gc-stat-card {
  background: var(--back);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gc-stat-card:hover {
  transform: translateY(-5px);
}

.gc-stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #412683 0%, #c5367d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gc-stat-label {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gc-emoji {
  font-size: 1.3rem;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 300px;
  margin: auto;
  margin-top: -30px;
}

/* Mobile (stacked full width) */
@media (max-width: 768px) {
  .gc-category-btn {
    padding: 9px 10px;
    font-size: 1rem;

    gap: 3px;
  }

  .center {
    margin-top: -50px;
  }

  .hero {
    min-height: 300px;
    display: block;
    padding-top: 1em;
  }

  .gc-container {
    margin-inline: 10px;
  }

  .btn_grid {
    flex-direction: column;
  }
  .btn_grid > * {
    width: 100%;
  }

  .ch_table_responsive th,
  .ch_table_responsive td {
    padding: 8px;
    font-size: 14px;
  }

  .container {
    width: 100%;
    padding: 0 1em;
  }

  .hideonmobile {
    display: none;
  }

  .table-responsive .ch_table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .ch_table .table {
    min-width: 700px; /* Ensure table doesn't shrink too much */
  }

  .ch_table .table-bordered th,
  .ch_table .table-bordered td {
    padding: 10px 6px;
    min-width: 100px;
  }

  .ch_table .small-text {
    font-size: 10px;
    text-align: left;
    margin-top: 6px;
  }

  .ch_table thead th {
    font-size: 12px;
    padding: 12px 6px;
  }
  .footer_flex {
    flex-direction: column;
  }
  .footer_social {
    justify-content: space-around;
  }

  .footer_pages {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-grid,
  .card_grid_related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gc-title {
    font-size: 1.3rem;
  }

  .gc-category-grid {
    grid-template-columns: 1fr;
  }

  .gc-stat-number {
    font-size: 2rem;
  }

  .gc-stat-label {
    font-size: 1rem;
  }
}

/* Container */
.ch_sw_container {
  width: 100%;
  padding: 10px 0;
}

/* Each slide */
.ch_sw_slide {
  width: 200px !important; /* IMAGE WIDTH (adjust anytime) */
}

.ch_sw_slide a {
  display: block;
}

/* Square image */
.ch_sw_slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.home_cat_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  padding-bottom: 5px;
  margin-top: 1.5em;
}

.home_cat_head a {
  background-color: var(--back);
  padding: 2px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}

.home_cat_head a:hover {
  filter: contrast(110%);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.features_card,
.steps li {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
}

.features h3,
.steps h3 {
  font-size: 20px;
}

.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
  margin: 0px;
  padding: 0px;
}

.content ol.steps {
  margin-bottom: 0;
  padding-left: 0;
}

.steps li {
  counter-increment: step-counter;
  margin-bottom: 10px;
  position: relative;
}

.steps li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: #333;
  font-weight: bold;
}

@media (max-width: 768px) {
  .textlimit {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .content ul.ulflex {
    margin-bottom: -10px;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .gc-main-card {
    padding: 30px 10px;
  }

  .gc-title {
    font-size: 1.5rem;
  }

  .gc-title span {
    display: none;
  }

  .gc-search-wrapper {
    flex-direction: column;
    border-radius: 16px;
  }

  .gc-search-input {
    border-radius: 16px 16px 0 0;
  }

  .gc-search-btn {
    border-radius: 0 0 16px 16px;
    padding: 16px 30px;
  }

  .gc-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gc-stat-number {
    font-size: 2.5rem;
  }

  .gc-stats-grid {
    gap: 20px;
    padding: 1em;
  }
}

/* ---------- PREFIX: ch_off_ (safe from conflicts) ---------- */
.ch_off_canvas {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--back);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

/* Slide in from LEFT if data-side="left" */
.ch_off_canvas[data-side="left"] {
  left: 0;
  transform: translateX(-100%);
}

/* Slide in from RIGHT */
.ch_off_canvas[data-side="right"] {
  right: 0;
  transform: translateX(100%);
}

/* Active state */
.ch_off_canvas.ch_off_active[data-side="right"] {
  transform: translateX(0);
}
.ch_off_canvas.ch_off_active[data-side="left"] {
  transform: translateX(0);
}

/* Overlay */
.ch_off_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
}
.ch_off_overlay.ch_off_show {
  opacity: 1;
  visibility: visible;
}

/* Header */
.ch_off_header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

/* Body */
.ch_off_body {
  padding: 16px;
}

/* Close Button */
.ch_off_close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: red;
}

/* Example Button */
.ch_off_btn {
  background: none;
  border: none;
  padding: 0;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.ch_off_cat_menu a {
  display: flex;
  padding: 5px 5px 5px 10px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #bdbdbd;
  margin-bottom: 1em;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
}
.ch_off_cat_menu a:hover {
  background-color: var(--primary);
  color: #fff;
}

.view_box {
  display: flex;
  width: 100%;
}

/* Desktop widths */
.view_box .box1 {
  width: 20%;
}
.view_box .box2 {
  width: 60%;
}
.view_box .box3 {
  width: 20%;
}

.box1,
.box3 {
  margin-top: 1em;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.useful_links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.useful_links h2 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.22;
}

.useful_links a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
}

.useful_links a:hover {
  color: var(--primary);
}

.cta_btn {
  display: flex;
  gap: 10px;
  background-color: var(--back);
  padding: 10px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}

.cta_btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .view_box {
    flex-direction: column;
  }
  .view_box .box1,
  .view_box .box2,
  .view_box .box3 {
    width: 100%;
  }

  .box1,
  .box3 {
    position: static;
    top: auto;
    margin-top: 10px;
  }
}

.text3d {
  position: relative;

  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 10px;
  animation: wobble 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

.text3d span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  animation: glow 4s ease-in-out infinite;
}

/* True 3D layers – exactly like your original */
.text3d span:nth-child(1) {
  transform: translateZ(0px);
}

.text3d span:nth-child(2) {
  transform: translateZ(5px);
}

.text3d span:nth-child(3) {
  transform: translateZ(10px);
}

.text3d span:nth-child(4) {
  transform: translateZ(15px);
}

.text3d span:nth-child(5) {
  transform: translateZ(20px);
}

.text3d span:nth-child(6) {
  transform: translateZ(25px);
}

.text3d span:nth-child(7) {
  transform: translateZ(30px);
}

.text3d span:nth-child(8) {
  transform: translateZ(35px);
}

.text3d span:nth-child(9) {
  transform: translateZ(40px);
}

.text3d span:nth-child(10) {
  transform: translateZ(45px);
}

/* Small constant rock (runs all the time) */
.text3d span {
  animation: glow 4s ease-in-out infinite, rock 1.8s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate3d(1, 1, 0, 30deg);
  }

  25% {
    transform: rotate3d(-1, 1, 0, 30deg);
  }

  50% {
    transform: rotate3d(-1, -1, 0, 30deg);
  }

  75% {
    transform: rotate3d(1, -1, 0, 30deg);
  }
}

@keyframes rock {
  0%,
  100% {
    transform: translateZ(var(--z, 0px)) rotate(-1.5deg);
  }

  50% {
    transform: translateZ(var(--z, 0px)) rotate(2deg);
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 40px #ff0000, 0 0 80px #ff0000;
  }

  25% {
    text-shadow: 0 0 40px #ff8000, 0 0 80px #ff8000;
  }

  50% {
    text-shadow: 0 0 40px #00ff00, 0 0 80px #00ff00;
  }

  75% {
    text-shadow: 0 0 40px #00ffff, 0 0 80px #00ffff;
  }
}

/* Preserve each layer’s Z depth while rocking */
.text3d span:nth-child(1) {
  --z: 0px;
}

.text3d span:nth-child(2) {
  --z: 5px;
}

.text3d span:nth-child(3) {
  --z: 10px;
}

.text3d span:nth-child(4) {
  --z: 15px;
}

.text3d span:nth-child(5) {
  --z: 20px;
}

.text3d span:nth-child(6) {
  --z: 25px;
}

.text3d span:nth-child(7) {
  --z: 30px;
}

.text3d span:nth-child(8) {
  --z: 35px;
}

.text3d span:nth-child(9) {
  --z: 40px;
}

.text3d span:nth-child(10) {
  --z: 45px;
}

.main_container {
  background-color: var(--bg-dark);
  width: 100%;
  max-width: 600px;
  margin: 1em auto;
  padding: 3.5em 20px;
  box-sizing: border-box;
  text-align: center;
  height: auto;
  border-radius: 10px;
  color: #fff;
  position: relative; /* IMPORTANT */
  overflow: hidden;
  background: url("/assets/images/bg.gif") no-repeat center center;
  background-size: cover; /* FULL cover */
}

.image_container img {
  width: 100%;
  max-width: 300px;
  margin: auto;
}

.top_text {
  margin-bottom: 6em;
}

.bottom_text {
  margin-top: 20px;
}

.imgani {
  animation: infinite 1s rock2;
}
@keyframes rock2 {
  0% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-1deg);
  }
}

.left_decoration {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  overflow: hidden;
}

.right_decoration {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  overflow: hidden;
}

.left_decoration marquee,
.right_decoration marquee {
  height: 100%;
}
