@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--secondary-color);
}
/* Container */
.container {
  max-width: 100%;
  padding: 0 70px 20px 70px;
  text-align: center;
  box-sizing: border-box;
}

/* General Typography */
body, .topic-content {
  color: var(--secondary-color);
  line-height: 1.8; /* Increased line height for better readability */
  font-size: 18px;  /* Slightly larger base font size */
  word-wrap: break-word;
}

/* Headings */
.topic-content h1,
.topic-content h2,
.topic-content h3,
.topic-content h4,
.topic-content h5,
.topic-content h6 {
  font-weight: 600;
  margin: 25px 0 15px;
  line-height: 1.4;
  color: var(--primary-color);
}

.topic-content h1 { 
  font-size: 32px; 
}

.topic-content h2 { 
  font-size: 28px; 
}

.topic-content h3 { 
  font-size: 24px; 
  color: var(--primary-color); 
}

.topic-content h4 { 
  font-size: 22px; 
}

.topic-content h5 { 
  font-size: 20px; 
}

.topic-content h6 { 
  font-size: 18px; 
  color: var(--secondary-color); 
}

/* Paragraphs */
.topic-content p {
  margin: 20px 0;
  text-align: justify;
  color: black;
}

/* Links */
.topic-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px dashed transparent;
}

.topic-content a:hover {
  color: var(--primary-color-hover);
  border-bottom-color: var(--primary-color-hover);
  text-decoration: none;
}

/* Lists */
.topic-content ul,
.topic-content ol {
  margin: 15px 0 25px 40px;
  padding-left: 20px;
}

.topic-content ul li,
.topic-content ol li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: black;
}

/* Blockquote */
.topic-content blockquote {
  border-left: 5px solid var(--primary-color);
  background-color: var(--primary-color-back);
  margin: 25px 0;
  padding: 18px 25px;
  font-style: italic;
  color: var(--secondary-color);
  position: relative;
  border-radius: 6px;
}

.topic-content blockquote::before {
  content: "“";
  font-size: 50px;
  color: var(--primary-color);
  position: absolute;
  top: -5px;
  left: 10px;
  opacity: 0.3;
}

/* Images */
/* General Image Styling */
.topic-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 20px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

/* Lightbox Overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* Active State */
.image-overlay.active {
  display: flex;
  opacity: 1;
}

/* Image Container for better handling of transformations */
.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 90%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Zoomed Image Styling */
.zoomed-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Zoom Animation */
.image-overlay.active .zoomed-image {
  transform: scale(1);
}

/* Zoom Controls */
.zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10001;
}

.zoom-button {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 18px;
  margin: 0 5px;
  transition: all 0.2s ease;
}

.zoom-button:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--primary-color-hover);
}

.zoom-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.zoom-level-indicator {
  margin: 0 10px;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

/* Zoomable Image Indicator */
.zoomable-image {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.zoomable-image:hover {
  transform: scale(1.02);
}

.zoom-indicator {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.zoom-indicator:hover {
  opacity: 1;
}

/* Image Counter */
.image-counter {
  position: absolute;
  top: 20px;
  left: 30px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

/* Navigation Buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  border-radius: 4px;
  transition: background 0.3s;
  z-index: 10000;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 1);
}

.nav-button.prev {
  left: 20px;
}

.nav-button.next {
  right: 20px;
}

/* Close Button */
.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease;
}

.close-button:hover {
  transform: scale(1.2);
}

/* Code and Preformatted Text */
.topic-content code {
  background: #f4f4f4;
  color: #d6336c;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  white-space: nowrap;
}

.topic-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 8px;
  overflow: auto;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  margin: 25px 0;
  line-height: 1.7;
}

/* Tables */
.topic-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.topic-content th,
.topic-content td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.topic-content th {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
}

.topic-content tr:nth-child(even) {
  background-color: var(--primary-color-back);
}

/* Iframes (Responsive Videos) */
.topic-content .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 25px 0;
  border-radius: 10px;
  background: #000;
}

.topic-content .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Horizontal Rule */
.topic-content hr {
  border: 0;
  height: 2px;
  background: #ccc;
  margin: 25px 0;
  opacity: 0.8;
}

/* Buttons (Optional) */
.topic-content .btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-weight: bold;
}

.topic-content .btn:hover {
  background: var(--primary-color-hover);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .topic-content {
      font-size: 16px;
      padding: 15px;
  }
  
  .topic-content h1 { font-size: 28px; }
  .topic-content h2 { font-size: 24px; }
  .topic-content h3 { font-size: 20px; }
  
  .topic-content pre, 
  .topic-content code {
      font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Hero Section */
.hero {
  background: var(--primary-color); /* Material Indigo 500 */
  color: white;
  padding: 60px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease-in-out;
}

/* Responsive Video Wrapper */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #000; /* Optional fallback */
}

/* Make iframe Fill the Container */
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* For all iframes inside content */
.topic-content iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Ensures proper scaling */
  border: none;
}

/* Hero Title */
.hero h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 40px;
  line-height: 1.4;
}

/* Search Box */
.search-box {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 10px;
  padding: 5px;
  transition: box-shadow 0.3s ease;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Focus Effect */
.search-box:focus-within {
  box-shadow: 0 6px 20px var(--primary-color-back);
}

/* Search Input */
.search-box input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  border-radius: 8px;
  background: transparent;
  color: var(--secondary-color);
}

/* Placeholder Style */
.search-box input::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Search Button */
.search-box button {
  background: #ff4081; /* Material Pink A200 */
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

/* Hover & Focus Effects */
.search-box button:hover {
  background: #f50057; /* Material Pink A400 */
}

.search-box button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.4);
}

/* Responsive Design */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .search-box {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .search-box input[type="text"],
  .search-box button {
    width: 100%;
  }
}
.search-box input {
  width: 60%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}


/* No Results Section */
.no-results {
  text-align: center;
  padding: 40px 20px;
  background: var(--primary-color-back);
  border-radius: 12px;
  margin: 20px auto;
  transition: all 0.3s ease-in-out;
}

/* Icon Styling */
.no-results-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #666;
  transition: transform 0.3s ease;
}

/* Hover Effect on Icon */
.no-results:hover .no-results-icon {
  transform: scale(1.1);
  color: #0073aa;
}

/* Heading and Paragraph */
.no-results h3 {
  font-size: 22px;
  margin: 10px 0;
  color: var(--secondary-color);
}

.no-results p {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}


/* Responsive Design */
@media (max-width: 480px) {
  .no-results {
      padding: 20px 15px;
  }

  .no-results h3 {
      font-size: 18px;
  }

}

.secondary-button-help {
  background: var(--secondary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.secondary-button-help:hover {
  background: var(--secondary-color-hover);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card, .topic-card, .livechat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before, .topic-card::before, .livechat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.1), rgba(63, 81, 181, 0.2));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.category-card:hover::before, .topic-card:hover::before, .livechat-card:hover::before {
  opacity: 1;
}

.category-card:hover, .topic-card:hover, .livechat-card:hover {
  transform: translateY(-5px);
  border-color: #6C5DD3;
}

.category-card h2, .topic-card h2, .livechat-card h2 {
  color: var(--primary-color); /* Material Indigo 500 */
  font-size: 20px;
  font-weight: 600;
  z-index: 1;
  position: relative;
  margin-bottom: 25px;
}

.category-card p, .topic-card p, .livechat-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  z-index: 1;
  position: relative;
}

.category-card .icon, .topic-card .icon, .livechat-card .icon {
  font-size: 40px;
  color: var(--primary-color); /* Material Indigo 500 */
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.category-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  border: solid 1px lightgray;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}

.topic-count {
  color: #666;
  font-size: 14px;
  display: inline-block;
  padding: 4px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  font-weight: 500;
}



.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  text-decoration: none;
  color: var(--primary-color); /* Material Indigo 500 */
  font-weight: 600;
  transition: background-color 0.3s, padding 0.3s, transform 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
}

.back-link:hover {
  background: rgba(63, 81, 181, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.back-link svg {
  margin-right: 8px;
  transition: transform 0.3s;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.topic-content {
  background: white;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  border-radius: 10px;
  border: solid 1px rgba(226, 232, 240, 0.8);
}

/* Live Chat Button */
.live-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color); /* Material Indigo 500 */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s;
}

.live-chat-button:hover {
  background-color: #303f9f; /* Material Indigo 700 */
  transform: scale(1.1);
}

/* Live Chat Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  position: relative;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Close Modal Button */
.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


.primary-button-help {
  display: inline-block;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1e90ff, #0073e6);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-button-help:hover,
.primary-button-help:focus {
  background: linear-gradient(135deg, #0073e6, #005bb5);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.live-chat-container {
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
}

.live-chat-container h1 {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.live-chat-iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 8px;
}

.topics-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.topic-item {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.topic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color-back);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.topic-item:hover::before {
  opacity: 1;
}

.topic-item:hover {
  transform: translateY(-5px);

}


.topic-item h2 {
  margin: 0 0 15px;
  font-size: 22px;
  color: var(--primary-color); 
  font-weight: 600;
  z-index: 1;
  position: relative;
}

.topic-item p {
  margin: 0;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  z-index: 1;
  position: relative;
}

@media (max-width: 768px) {
  .topic-item {
    padding: 20px;
  }

  .topic-item h2 {
    font-size: 20px;
  }

  .topic-item p {
    font-size: 14px;
  }
}

.view-controls {
  text-align: right;
  margin-bottom: 20px;
}
.view-switch {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.view-switch:hover {
  background: #f5f5f5;
}
.view-switch.active {
  color: var(--purple);
  background: #f0f0f0;
}

.view-controls {
  display: flex;
  gap: 10px;
  margin:  30px 0 40px 0;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.view-switch {
  background: #fff;
  border: 1px solid #e3e3e3;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  color: #292d32;
  transition: all 0.3s ease;
}

.view-switch:hover {
  background: #f8f8f8;
  border-color: #d1d1d1;
}

.view-switch.active {
  color: #fff;
}

.control-panel {
  text-decoration: none !important;
  margin-left: 5px !important;
}

.control-panel i {
  transition: color 0.2s ease;
  transform: none !important;
  animation: none !important;
}

.control-panel:hover i {
  transform: none !important;
  animation: none !important;
}

.control-panel:hover {
  color: #fff;
  background: #4050b5;
}

.category-card {
display: block;
padding: 30px;
gap: 15px;
}
.category-card i {
font-size: 44px;
color: #4050b5;
margin-top: 12px;
margin-bottom: 24px;
}
.category-card .content {
flex: 1;
}
.category-card h2 {
margin: 0 0 10px 0;
}

.help-desk-footer {
  background: #fff;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #eee;
  width: 100%;
  position: relative;
  bottom: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.footer-left p {
  color: #666;
  margin: 0;
  font-size: 14px;
}

.footer-center p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.footer-center a {
  color: #292d32;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-center a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  color: #292d32;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #4050b5;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;

}

.social-link i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 20px;
      padding: 20px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
      width: 100%;
  }

  .social-links {
      justify-content: center;
      margin-top: 15px;
  }

  .help-desk-footer {
      padding: 30px 0;
  }
}




/* "Still need help?" Section */
.help-section {
    padding: 40px;
    text-align: center;
    overflow: hidden;
}
.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4050b5, #38a169);
}
.help-section strong {
    display: block;
    margin-bottom: 20px;
    font-size: 24px;
    color: #2d3748;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}
.help-section strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #4050b5;
}
.help-section p {
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.help-section .support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  background: white;
  color: #4a5568;
  padding: 10px 28px;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  min-width: 140px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.help-section .support-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.help-section .support-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-section .support-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.help-section .support-btn i {
  font-size: 18px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.help-section .support-btn:hover i {
  transform: scale(1.1);
}

.help-section .btn-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.help-section .support-btn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(99, 179, 237, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.help-section .support-btn:hover:before {
  width: 300px;
  height: 300px;
}

@media (max-width: 768px) {
  .help-section .support-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .help-section .support-btn i {
    font-size: 16px;
  }
}

.help-section .btn i {
    font-size: 18px;
}
.help-section .btn-primary {
    background: linear-gradient(135deg, #4050b5, #2b3a9f);
    border: none;
    color: white;
}
.help-section .btn:hover {
    transform: translateY(-2px);
}
.help-section .btn:active {
    transform: translateY(0);
}
.help-section .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.help-section .btn:hover::before {
    width: 300px;
    height: 300px;
}
.still-need-help {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #f9f9ff;
  border-radius: 8px;
}
.still-need-help p {
  margin: 0;
  font-size: 15px;
  color: var(--secondary-color);
}
.still-need-help a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
}
.still-need-help a:hover {
  text-decoration: underline;
}

.other-categories-section {
margin: 60px 0 40px;
padding: 30px 0;
border-top: 1px solid #eee;
}

.other-categories-section h3 {
font-size: 24px;
color: var(--primary-color);
margin-bottom: 30px;
text-align: center;
}

.random-categories-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
max-width: 1200px;
margin: 0 auto;
}

/* Topic Meta Section */
.topic-title {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.topic-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  width: 40px;
  margin: 0 auto;
  animation: expandWidth 0.8s ease-out forwards;

}

.topic-meta {
  display: flex;
  cursor: default;
  justify-content: center;
  gap: 20px;
  margin: 30px 0; 
  padding: 12px;
  border-radius: 16px;
  flex-wrap: wrap;
}

.topic-meta-item {
  background: var(--primary-color-back);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.topic-meta-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(64, 80, 181, 0.1);
  border-color: var(--primary-color);
}

.topic-meta-item i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.topic-meta-item:hover i {
  transform: scale(1.2);
}

.topic-meta-item span {
  white-space: nowrap;
}

.topic-share-button {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.topic-share-button:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Mobile responsiveness for topic meta section */
@media (max-width: 768px) {
  .topic-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .topic-meta-item {
    width: calc(50% - 20px);
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .topic-meta {
    flex-direction: column;
    align-items: center;
  }
  
  .topic-meta-item {
    width: 100%;
    max-width: 200px;
  }
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.08);
}

.meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(63, 81, 181, 0.1);
  border-radius: 10px;
}

.meta-icon i {
  font-size: 16px;
  color: var(--primary-color);
}

.meta-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.2;
}

.meta-label {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* No Topics Message */
.no-topics-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  margin: 20px 0;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(64, 80, 181, 0.2);
  text-align: center;
}

.no-topics-message i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.no-topics-message p {
  font-size: 18px;
  color: #555;
  margin: 0;
  font-weight: 500;
}
