/* General Body Styling */
body {
  font-family: Segoe UI, Segoe UI Midlevel, Segoe WP, Arial, Sans-Serif;
  font-size: 11px;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  background: #2b2a2a;
  color: #e0e0e0;
  /* Improved contrast */
  margin-top: 5rem;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  /* Lighter color for better readability */
  font-weight: 700;
  margin-left: 15px;
}

/* General Text */
p,
a,
li {
  font-weight: 400;
}

/* Backgrounds */
.bg-steel {
  background-color: #191c1d;
}

.bg-primary {
  background-color: #445b75 !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.hrcolor {
  background-color: #053771 !important;
  border: none;
  width: 100%;
  height: 1px;
  margin: 16px 0;
} 

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
  border-bottom: 2px solid #dfddd7;
  /* Highlight active link */
}

.navbar-collapse {
  font-size: 14px;
}

/* Layout Adjustments */
.container-fluid {
  padding: 5px;
}

.row,
.row.no-gutters {
  margin: 0;
  background:#455c75
}

.col-md-4 {
  padding: 5px;
}

.nav-container {
  display: block;
  /* Ensures the container behaves as a block-level element */
  overflow-x: auto;
  /* Allows horizontal scrolling */
  white-space: nowrap;
  /* Prevents wrapping of items inside the container */
  -webkit-overflow-scrolling: touch;
  /* Enables smooth scrolling on iOS devices */
}

/* Optional: Add gradient to indicate horizontal scrollability */
.nav-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 20px;
  pointer-events: none;
  background: linear-gradient(to left, #191c1d, rgba(25, 28, 29, 0));
  /* Subtle fade */
}

.disabled-tab .nav-link {
  color: gray;
  /* Change text color to grey */
  cursor: not-allowed;
  /* Change cursor to 'not-allowed' */
  pointer-events: none;
  /* Prevent clicking */
  opacity: 0.6;
  /* Make it appear faded */
}

.nav-tabs {
  display: flex;
  /* Flexbox for alignment */
  flex-wrap: nowrap;
  /* Prevents wrapping to the next line */
}

.nav-item {
  flex: 0 0 auto;
  /* Ensures each nav item maintains its size */
}

#myTab {
  /*background-color: #191c1d;*/
  color: #d8c2c2;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  margin: 3px;
  transition: background-color 0.3s ease;
}

.nav-tabs .nav-link {
  background-color: #2d2d43;
  color: #d8c2c2;
  /* Ensures text color consistency */
  border-radius: 20px;
  padding: 5px 15px;
  margin: 3px;
  transition: background-color 0.3s ease;
}

.nav-tabs .nav-link.active {
  color: white;
  background-color: #33383a;
}

.nav-item .nav-link:hover {
  background-color: #2a2e2f;
  color: #f8f9fa;
}

/* Remove default list styles for <ul> */
#pills-tab {
  list-style: none;
  /* Removes bullets */
  margin: 0;
  /* Ensures proper alignment */
  padding: 0;
  /* Removes unnecessary space around items */
  display: flex;
  /* Aligns items in a row */
}

/* Tab Styles */
.nav-pills .nav-link {
  /*background-color: #191c1d;*/
  color: #fff;
  border-radius: 20px;
  padding: 5px 15px;
  /* Adjust if necessary for better fit */
  margin: 2px;
  /* Slightly reduced to fit better in scrollable container */
  transition: background-color 0.3s ease;
  white-space: nowrap;
  /* Prevents text wrapping */
}

.nav-pills .nav-link.active {
  background-color: #33383a;
}

.nav-pills .nav-link:hover {
  background-color: #2a2e2f;
  color: #f8f9fa;
}

/* Content Section */
.content-section {
  margin: auto;
  padding: 20px;
  border: 1px solid #292424;
  border-radius: 8px;
  background-color: #150404;
}

/* Input Fields */
.form-control {
  padding: 8px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.form-control-lg {
  font-size: 1.1rem;
}

/* Button and Link Styles */
.btn-outline-info {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
}

.btn-outline-info:hover {
  background-color: #17a2b8;
  color: #fff;
}

.read-more {
  display: inline-block;
  background: #0056b3;
  /* Brighter color for emphasis */
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.read-more:hover {
  background: #003e7e;
  /* Darker hover effect */
}

/* Style for the transparent button with + symbol */
.add-post-button {
  position: relative;
  /* Position relative to place it inside the container 
  top: -20px;
  /* Adjust the vertical position as needed */
  left: calc(35%);
  /* Center horizontally */
  font-size: 1rem;
  /* Larger font for + symbol */
  color: #e6e8e2;
  /* Matching color with post footer */
  background: none;
  /* Transparent background 
  border: none;
  /* Remove border */
  cursor: pointer;
  /* Show pointer on hover */
  transition: transform 0.2s;
  /* Smooth animation on hover */
  background: content-box;
}

.add-post-button:hover {
  transform: scale(1.2);
  /* Slightly enlarge on hover */
}

.tooltip-text {
  visibility: hidden;
  width: 90px;
  background-color: #333;
  color: hwb(0 94% 4%);
  text-align: center;
  padding: 5px 10px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: -20%;
  /* Position the tooltip above the button */
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 15px
}

.add-post-button:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.modal-dialog {
  pointer-events: auto !important;
}

.color-picker {
  display: flex;
  gap: 8px;
}

.color-option {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}

.post-preview {
  padding: 20px;
  font-size: 1.5em;
  text-align: center;
  color: white;
  border: 1px solid #ddd;
  transition: background-color 0.3s;
}

/*
.trending-news {
  flex: 1;
  /* Ensures both columns take equal height 
  max-height: 1066px;
  /* Optional: Constrain max height 
  overflow-y: auto;
  /* Allow scrolling for content overflow 
  border: 1px solid #555353;
  /* Add border for visibility 
  padding: 0px, 1px, 1px, 1px;
  /* Optional: Add padding 
  scrollbar-width: thin;
  /* Customize scrollbar (for modern browsers) 
}*/

.featured-products {
  background-color: #2d2d43;
  /* Darker container background to match theme */
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #555353;
  /* Smooth rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Add subtle shadow for depth */
}

.section-title {
  color: #A596CF;
  /* Purple accent color */
  font-size: 1.25rem;
  /* Match the Ask ChatGPT size */
  font-weight: 400;
  font-family: "Google Sans", sans-serif;
  line-height: 1.3;
  padding: 8px 16px;
  /* Thin border like Ask ChatGPT */
  /* Rounded corners */
  background-color: transparent;
  /* Keep the background clean */
  display: inline-block;
  /* Ensure the border wraps tightly around the text */
  margin-bottom: 16px;
  /* Add spacing between title and content */
  align-items: left;
}

.product-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.product-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.product-scroll-container::-webkit-scrollbar-thumb {
  background: #A596CF;
  border-radius: 8px;
}

.product-card {
  flex: 0 0 auto;
  width: 200px;
  border: 1px solid #2a2a3d;
  /* Dark border to match theme */
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a3d;
  /* Dark background for cards */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #3a3a4d;
  /* Subtle separation */
}

.product-info {
  padding: 10px;
}

.product-title {
  font-size: 1rem;
  font-weight: thin;
  color: #ffffff;
  /* White text for titles */
  margin: 5px 0;
}

.product-description {
  font-size: 0.875rem;
  color: #b0b0c3;
  /* Light gray text for descriptions */
}

/* Thumbnail Styling */
.featured-post-video-thumbnail,
.featured-post-image-thumbnail {
  max-height: 150px;
  /* Control the height of the thumbnail */
  overflow: hidden;
  /* Prevent oversized content */
  margin-bottom: 8px;
  /* Space between thumbnail and content */
  border-radius: 8px;
  /* Add rounded corners */
}

.featured-post-video-thumbnail video,
.featured-post-image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures proper aspect ratio */
  border-radius: 8px;
  /* Consistent rounded edges */
}

.featured-header {
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  /* Subtle border */
  padding-bottom: 3px;
  margin-bottom: 5px;

  font-size: 1.25rem;
  font-family: "Google Sans", sans-serif;
  line-height: 1.3;
  font-weight: 400;
  /*display: flex;*/
  flex-direction: row;
  align-items: center;
}

/*.section-title {
  font-size: 1.25rem;
  /*font-size: 1.25rem;
  font-weight: bold;
  color: #8BB8F8;
  /* White text (adjust if needed)
}*/

/*.view-all-link {
  text-decoration: none;
  font-size: 1.25rem;
  /* Bigger arrow 
  color: #8BB8F8;
  /* Subtle gray 
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #fff;
  /* Turns white on hover 
}*/

.all-products-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 20px;
}

/* Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Responsive Grid */
  gap: 20px;
  padding: 20px;
}

/* Product Card Styling 
.product-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #716767;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Product Image 
.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

/* Pagination */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Center buttons */
}

.button-group a {
  flex: 1 1 calc(50% - 10px); /* Each button takes 50% width minus gap */
  text-align: center;
  padding: 10px;
}

/* On small screens, make each button full width */
@media (max-width: 768px) {
  .button-group a {
      flex: 1 1 100%;
  }
}

.chatgpt-query-section,
.trending-news {
  flex: 1;
  /* Ensures both columns take equal height */
  max-height: 1095px;
  /* Optional: Constrain max height */
  overflow-y: auto;
  /* Allow scrolling for content overflow */
  border: 1px solid #555353;
  /* Add border for visibility */
  padding: 2px, 1px, 1px, 2px;
  /* Optional: Add padding */
  scrollbar-width: thin;
  /* Customize scrollbar (for modern browsers) */
}

.chatgpt-query-section h3,
.trending-news h3 {
  /*margin-bottom: 8px;
  /* Add space below headings */
  text-align: center;
  /* Center-align the section headings */
  padding: 10px;
  color: #A596CF;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 400;
  border-bottom: 1px solid #474040;
}

.chatgpt-query-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Styling for the response container */
#chatgpt-response {
  padding: 15px;
  /* Padding around the response */
  border-radius: 8px;
  /* Rounded corners */
  background-color: #f9f9f9;
  /* Light background color */
  border: 1px solid #e0e0e0;
  /* Subtle border to separate it */
  max-width: 100%;
  /* Ensure it doesn't overflow */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Soft shadow for better contrast */
  margin-top: 20px;
  /* Space between the response and other elements */
  color: #333;
  /* Dark text for readability */
  font-size: 1rem;
  /* Set font size to be readable */
  line-height: 1.5;
  /* Line height for better text spacing */
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* Animation for smooth appearance */
  display: none;
  /* Initially hidden, shown after response */
}

/* Styling for the actual response text */
#response-text {
  margin: 0;
  /* Remove default margin */
  padding: 10px 0;
  /* Padding around the text */
  color: #444;
  /* A slightly lighter color for the text */
  word-wrap: break-word;
  /* Ensure long words break onto the next line */
}

#blog-content {
  margin: 0;
  /* Remove default margin */
  padding: 10px 0;
  /* Padding around the text */
  color: #444;
  /* A slightly lighter color for the text */
  word-wrap: break-word;
  /* Ensure long words break onto the next line */

}

/* Add a subtle animation when response appears */
#chatgpt-response.show {
  opacity: 1;
  transform: translateY(0);
  /* Smooth transition from below */
}

#chatgpt-response {
  opacity: 0;
  /* Start invisible */
  transform: translateY(20px);
  /* Start below the screen */
}

/* Adjust the loading indicator appearance for smoother interaction */
#loading-indicator {
  font-size: 1rem;
  color: #888;
  display: none;
  /* Hidden by default */
  text-align: center;
  /* Center the loading text */
  margin-bottom: 10px;
  /* Give some space at the bottom */
}

#loading-indicator p {
  margin: 0;
  padding: 0;
}

/* Ensure the submit button stays aligned with the form */
button#submit-button {
  margin-top: 15px;
  /* Ensure there's space above the submit button */
  width: 100%;
  /* Button should take full width */
  padding: 12px;
  /* Make the button a bit more spacious */
  font-size: 1.2rem;
  /* Larger font size for button text */
}


.trending-news {
  overflow-y: auto;
  /* Allow scrolling for long content */
  scrollbar-width: thin;
  /* For modern browsers */
  scrollbar-color: #a596cf #eaeaea;
  /* Customize scrollbar */
}

.trending-news::-webkit-scrollbar {
  width: 6px;
  /* Width of the scrollbar */
}

.trending-news::-webkit-scrollbar-thumb {
  background-color: #a596cf;
  /* Thumb color */
  border-radius: 8px;
  /* Rounded scrollbar thumb */
}

.trending-news::-webkit-scrollbar-track {
  background-color: #eaeaea;
  /* Track color */
}

/* Button Styling */
.chatgpt-query-section button {
  background-color: #a191cf;
  /* Match the theme color */
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  padding: 10px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chatgpt-query-section button:hover {
  background-color: #8d7cbc;
  /* Slightly darker on hover */
}


.for-you-section {
  flex: 1;
  /* Ensures both columns take equal height */
  max-height: 1095px;
  /* Optional: Constrain max height */
  overflow-y: auto;
  /* Allow scrolling for content overflow */
  border: 1px solid #555353;
  /* Add border for visibility */
  padding: 2px, 1px, 1px, 2px;
  /* Optional: Add padding */
  scrollbar-width: thin;
  /* Customize scrollbar (for modern browsers) */
}

.post-container {
  flex: 1;
  /* Ensures both columns take equal height */
  max-height: 690px;
  /* Optional: Constrain max height */
  overflow-y: auto;
  /* Allow scrolling for content overflow */
  border: 1px solid #555353;
  /* Add border for visibility */
  padding: 5px;
  /* Optional: Add padding */
  scrollbar-width: thin;
  /* Customize scrollbar (for modern browsers) */
  /*display: flex;
  flex-direction: column;
  gap: 15px;*/
  /* Add space between posts */

}

.post-card {
  background: #2d2d43;
  /* Dark background to match the post's theme */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  /* Subtle shadow for depth */
  padding: 15px;
  color: #ffffff;
  /* Text color for contrast on dark background */
  transition: all 0.3s ease-in-out;
  max-width: 600px;
  /* Restrict the card's width */
  margin: auto;
  /* Center align */
  font-family: Arial, sans-serif;
  border-bottom: 1px solid #cfab42;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
  /* Highlight on hover */
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #aaa;
  /* Subdued color for header details */
  font-size: 0.9em;
}

.post-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-content {
  font-size: 1em;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-image-thumbnail img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #6b5050;
  /* Separator line */
  padding-top: 10px;
  margin-top: 15px;
}

.likes,
.comments {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #888;
}

.likes:hover,
.comments:hover {
  color: #fff;
  /* Highlight on hover */
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.like-btn {
  background: #202020;
  /* Matches the background of the post-card */
  /*border: 1px solid #ccc;
  /* Subtle border for definition */
  border-radius: 1px;
  /* Rounded corners for a modern look */
  color: #7770c7;
  /* Text color that contrasts well with the background */
  padding: 5px 10px;
  /* Comfortable padding for the button */
  font-size: 12px;
  /* Adjust font size to match the card text */
  cursor: pointer;
  /* Pointer cursor to indicate it's clickable */
  transition: background-color 0.3s, color 0.3s;
  /* Smooth hover effect */
}

.like-btn:hover {
  background-color: #007bff;
  /* Highlight color on hover */
  color: #fff;
  /* White text on hover */
  border-color: #0056b3;
  /* Slightly darker border on hover */
}

.like-btn:active {
  background-color: #0056b3;
  /* Darker shade for active click */
  border-color: #003f7f;
  /* Even darker border for active click */
  color: #e6e6e6;
  /* Slightly off-white for active text */
}

/* Style for the like count */
.like-count {
  font-size: 12px;
  color: #666;
  /* Subtle text color for like count */
  margin-left: 8px;
  /* Space between the button and the count */
}

.read-more {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.read-more:hover {
  background: #0056b3;
}

.share-container {
  position: relative;
  display: inline-block;
}


.share-btn {
 background: #6171cc;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease-in-out;
  /*font-size: 0.9em;
  padding: 5px 10px;*/
}

.share-btn:hover {
  background: #f5f5f5;
}

.share-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #6171cc;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  min-width: 180px;
  z-index: 100;
  /*font-size: 0.9em;
  min-width: 120px;*/
}

.share-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease-in-out;
}

.share-menu a i {
  font-size: 16px;
}

.share-menu a:hover {
  background: #f5f5f5;
}

.share-container:hover .share-menu {
  display: block;
}

/* Hide text and show only icons on small screens */
/* Adjustments for small screens */
@media (max-width: 600px) {
  .post-card {
    max-width: 100%;
    padding: 10px;
  }

  .likes span, .comments span {
    display: inline;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

  .share-btn {
    font-size: 0.8em;
    padding: 4px 8px;
  }

  .share-menu {
    font-size: 0.8em;
    min-width: 100px;
  }
}

/* Video Card Styling 
.videocard {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(145deg, #e6e6e6, #f4d4d4);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px rgba(40, 36, 36, 0.9);
  padding: 20px;
  width: 100%;
  transition: all 0.3s;
}

.videocard:hover {
  transform: scale(1.05);
   Subtle zoom effect on hover 
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.3), -5px -5px 20px rgba(255, 255, 255, 0.8);
}

.videocard .card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding: 0 10px;
  color: #191c1d
}*/

.videocard {
 /* display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  /* No background for a clean card look 
  box-shadow: none;
  /* No shadow for simplicity 
  margin: 10px 0;
  /*width: 100%;
  width: 250px;
  height: 180px;
  border-radius: 8px;*/

  background: #2d2d43;
  /* Dark background to match the post's theme */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  /* Subtle shadow for depth */
  padding: 15px;
  color: #ffffff;
  /* Text color for contrast on dark background */
  transition: all 0.3s ease-in-out;
  max-width: 600px;
  /* Restrict the card's width */
  margin: auto;
  /* Center align */
  font-family: Arial, sans-serif;
  border-bottom: 1px solid #cfab42;
}

.videocard:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
  /* Highlight on hover */
}

.videocard img {
  width: 100%;
  border-radius: 8px;
  /* Rounded corners for the thumbnail */
  position: relative;
}

.videocard .thumbnail-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.videocard .video-details {
  margin-top: 10px;
  width: 100%;
}

.videocard .card-title {
  font-size: 10px;
  font-weight: bold;
  margin: 0;
  color: #c5b7b7;
  overflow: hidden;
  text-overflow: ellipsis;
  /*white-space: nowrap;*/
}

.videocard .card-channel {
  font-size: 14px;
  color: #606060;
}

.videocard .card-stats {
  font-size: 12px;
  color: #606060;
}


.card {
  width: 250px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  /* Needed for pseudo-elements */
  color: #181313;
  text-align: center;
  background: linear-gradient(135deg, #9f98a7, #b5c0d2);
}

/* Abstract overlay */
.trendingcard::before .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.trendingcard::after .card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 30% 30%, #ff758c, transparent 40%),
    radial-gradient(circle at 70% 70%, #4d9de0, transparent 30%);
  opacity: 0.3;
  /* Subtle overlay effect */
  mix-blend-mode: overlay;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding: 0 10px;
  z-index: 1;
  /* Ensures title is above overlay */
}

.trendingcard {
  width: 220px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(40, 10, 10, 0.15);
  position: relative;
  /* Needed for pseudo-elements */
  color: #181313;
  text-align: center;
  background: linear-gradient(135deg, #180b26, #b5c0d2);
}

/*
.gamecard {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}*/

.gamecard {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid #473939;
  background-color: #0d0b11;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-image {
  width: 80px;
  /* Adjust for your design */
  height: 80px;
  /* Adjust for your design */
  object-fit: contain;
  /* Ensures the image scales without distortion */
  visibility: hidden;
  /* Initially hide images */
}

.pagination {
  display: flex;
  /* Arrange buttons in a row */
  justify-content: center;
  /* Center the buttons horizontally */
  align-items: center;
  /* Vertically align items */
  flex-wrap: wrap;
  /* Allow wrapping if buttons exceed container width */
  gap: 8px;
  /* Add spacing between buttons */
}

.pagination a {
  text-decoration: none;
  /* Remove underline from links */
  padding: 8px 12px;
  /* Adjust padding for buttons */
  border-radius: 4px;
  /* Add rounded corners */
  font-size: 14px;
  /* Set font size for better readability */
}

.pagination .btn {
  flex-shrink: 0;
  /* Prevent buttons from shrinking */
  white-space: nowrap;
  /* Keep text on one line */
}

/*.card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding: 0 10px;
}*/
#createPostModal {
  z-index: 1050;
  /* Ensure it's on top of other elements */
}

.modal-backdrop {
  z-index: 1040;
  /* Set the backdrop slightly below the modal */
}

/* Modal Background and Header Styling */
#createPostModal .modal-content {
  /*background-color: #261b65;
  color: #fff;
  border-radius: 8px;*/
  background: linear-gradient(to bottom, #2d1b65, #1a0f3e);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Form Control Styling */
#createPostModal .form-control {
  background-color: #444;
  color: #fff;
  border: none;
}

.form-error {
  color: red;
  font-size: 0.9em;
  margin-top: 0.25rem;
}

#colorPicker .color-option {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

#colorPicker .color-option:hover {
  border: 2px solid #fff;
  transform: scale(1.1);
}

#colorPicker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#videoUrlInput {
  margin-top: 5px;
}

label[for="videoFile"],
label[for="imageFile"] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 50%;
}

label[for="videoFile"]:hover,
label[for="imageFile"]:hover {
  background-color: #555;
}

.btn-primary {
  background-color: #5b7968;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #4b6658;
}

@media (max-width: 768px) {
  #videoCarousel {
    display: none;
  }

  body {
    font-size: 14px;
    margin-top: 2rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 1.2rem;
    margin-left: 10px;
  }

  .container-fluid {
    padding: 10px;
  }

  .content-section {
    padding: 15px;
  }

  .add-post-button {
    font-size: 1rem;
  }

  /*.chatgpt-query-section,
  .trending-news,
  .for-you-section,*/
  .post-container {
    max-height: 400px;
    overflow-y: scroll;
  }

  /*
  .post-container,
  #results-LifeStyle,
  #results-Art,
  #results-Food,
  #results-Books,
  #results-Innovation,
  #results-Other {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    /* Enable horizontal scrolling 
    flex-wrap: nowrap;
    /* Prevent posts from wrapping to the next line 
  }*/

  .videocard .post-card {
    min-width: 300px;
    /* Adjust to your preferred post width */
    margin-right: 10px;
    /* Space between posts */
  }

  .chatgpt-query-section,
  .trending-news,
  .for-you-section {
    display: none;
  }

  #createPostModal .modal-dialog {
    max-width: 90%;
  }

  #createPostModal .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  #videoUrlInput {
    margin-top: 10px;
    width: 100%;
  }

  .btn-outline-info {
    font-size: 0.9rem;
    padding: 8px;
  }

  .read-more {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

@media (max-width: 576px) {
  .row {
    display: flex;
    flex-direction: column;
  }

  .col-md-4 {
    padding: 10px 0;
    flex: 1;
  }

  .trending-news,
  .for-you-section,
  .post-container {
    max-height: auto;
    padding: 10px;
  }
}


/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: none;
  z-index: 99;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #343a40;
  color: #ffc107;
  /* Updated for better visibility */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: #ffc107;
  color: #ffffff;
  transform: scale(1.1);
}

/* Footer Styling */
footer {
  background-color: #333;
  color: #ffffff;
  padding: 20px 0;
  font-size: 0.9em;
  border-top: 2px solid #675e5e;
  text-align: center;
  /* Center-aligns content */
}

footer a {
  color: #ffc107;
  /* Lighter color for contrast */
  text-decoration: none;
}

footer a:hover {
  color: #f8f9fa;
}

footer h5 {
  color: #ffffff;
}

footer .btn {
  margin-bottom: 10px;
  /* Adds space below the button */
}

footer .copyright {
  margin-top: 10px;
  font-size: 0.8em;
  /* Slightly smaller font size for copyright text */
  color: #bbbbbb;
  /* Slightly lighter color for copyright text */
}

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .navbar {
  background-color: #1f1f1f;
}

.dark-mode .card {
  background-color: #1e1e1e;
  border-color: #333;
}

.dark-mode .btn-primary {
  background-color: #bb86fc;
  border-color: #bb86fc;
}

.dark-mode footer {
  background-color: #1f1f1f;
  color: #e0e0e0;
}

.dark-mode footer a:hover {
  color: #bb86fc;
}