/* Custom Styling for Investy Theme */

/* Color Variables */
:root {
  --primary-color: #3772ff;
  --secondary-color: #45b26b;
  --tertiary-color: #1e50ff;
  --dark-color: #0a0b0e;
  --darker-color: #050507;
  --dark-bg: #0c0e16;
  --card-bg: #181b2b;
  --light-color: #f8f9fa;
  --gray-color: #777e90;
  --success-color: #58bd7d;
  --danger-color: #ff6838;
  --warning-color: #ffbe0b;
  --info-color: #5691fe;
  --text-color: #e8eaed;
  --muted-color: #b1b5c3;
  --bright-nav: #4a9fff;
}

/* Global Styles */
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--dark-bg);
}

.theme-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-btn:hover {
  background-color: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

/* Custom Hero Section */
.hero-area {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: linear-gradient(135deg, #050608 0%, #0a0d17 50%, #0f1428 100%);
}

.crypto-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.position-relative {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-content h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 30px;
}

/* Header Navigation */
.top-navigation {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 10;
  display: flex;
  gap: 15px;
}

.top-navigation a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: rgba(24, 27, 43, 0.7);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.top-navigation a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.top-navigation a i {
  margin-right: 5px;
}

/* Featured Section Spacing */
.featured-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Add vertical spacing between card rows */
.featured-section .row {
  row-gap: 40px;
}

/* Custom spacing for card grid */
.card-grid {
  margin-top: 20px;
}

.card-grid .col-md-6,
.card-grid .col-lg-4 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 25px !important;
  width: 33%;
}

.section-title.text-center {
  text-align: center;
}

.section-title.mb-50 {
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 50px;
  margin-top: 50px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

.featured-section .section-title p {
  max-width: 700px;
  margin: 0 auto;
}

/* Crypto Circles */
.crypto-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: radial-gradient(
    circle,
    rgba(55, 114, 255, 0.8) 0%,
    rgba(55, 114, 255, 0) 70%
  );
  animation: pulse 12s infinite alternate;
}

.crypto-circle.c1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(55, 114, 255, 0.8) 0%,
    rgba(55, 114, 255, 0) 70%
  );
  animation-delay: 0s;
}

.crypto-circle.c2 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  right: 300px;
  background: radial-gradient(
    circle,
    rgba(69, 178, 107, 0.8) 0%,
    rgba(69, 178, 107, 0) 70%
  );
  animation-delay: 2s;
}

.crypto-circle.c3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(255, 88, 88, 0.8) 0%,
    rgba(255, 88, 88, 0) 70%
  );
  animation-delay: 4s;
}

/* Crypto Shapes */
.crypto-shape {
  position: absolute;
  opacity: 0.1;
  animation: rotate 20s infinite linear;
}

.crypto-shape.s1 {
  top: 20%;
  right: 20%;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #3772ff, #45b26b);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation-duration: 30s;
}

.crypto-shape.s2 {
  bottom: 15%;
  left: 15%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #ff5858, #ffb65e);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation-duration: 25s;
  animation-direction: reverse;
}

/* Crypto Particles */
.crypto-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px 2px rgba(55, 114, 255, 0.5);
  animation: float 8s infinite ease-in-out;
}

.crypto-particle.p1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.crypto-particle.p2 {
  top: 40%;
  right: 25%;
  animation-delay: 1s;
}

.crypto-particle.p3 {
  bottom: 30%;
  left: 40%;
  animation-delay: 2s;
}

.crypto-particle.p4 {
  top: 15%;
  right: 10%;
  animation-delay: 3s;
}

.crypto-particle.p5 {
  bottom: 40%;
  right: 30%;
  animation-delay: 4s;
}

.crypto-particle.p6 {
  top: 60%;
  left: 15%;
  animation-delay: 5s;
}

.crypto-particle.p7 {
  top: 30%;
  left: 50%;
  animation-delay: 6s;
}

/* Crypto Grid */
.crypto-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      to right,
      rgba(55, 114, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(55, 114, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(500px) rotateX(60deg) scale(2.5);
  transform-origin: bottom;
  opacity: 0.2;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-10px) translateX(5px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(0) translateX(10px);
    opacity: 0.2;
  }
  75% {
    transform: translateY(10px) translateX(5px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }
}

/* Bitcoin Symbol Animation */
.hero-content::before {
  content: "₿";
  position: absolute;
  font-size: 220px;
  color: rgba(255, 255, 255, 0.03);
  z-index: -1;
  top: -80px;
  right: -100px;
  font-weight: bold;
  animation: rotateSlow 30s linear infinite;
  transform-origin: center;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Bitcoin Symbol */
.hero-content::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(247, 147, 26, 0.08) 0%,
    rgba(247, 147, 26, 0) 50%
  );
  border-radius: 50%;
  z-index: -1;
  top: 0;
  right: -50px;
  animation: glowPulse 8s infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }
  100% {
    opacity: 0.2;
    transform: scale(1.2);
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .crypto-shape.s1 {
    width: 150px;
    height: 150px;
  }

  .crypto-shape.s2 {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {
  .hero-area {
    padding: 80px 0;
  }

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

  .hero-content::before {
    font-size: 160px;
    top: -60px;
    right: -80px;
  }
}

/* Blog Cards */
.blog-item {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  background-color: var(--card-bg);
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Homepage specific card spacing */
.featured-section .blog-item {
  margin-bottom: 15px;
}

/* Same height cards */
.same-height {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 30px 25px;
  background: var(--card-bg);
}

.blog-item-description {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-color);
  margin-bottom: 20px;
  overflow: hidden;
  min-height: 72px;
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.blog-item-img {
  position: relative;
  overflow: hidden;
}

.blog-item-img img {
  transition: all 0.5s ease;
  width: 100%;
  height: 220px; /* Fixed height for images */
  object-fit: cover;
}

.blog-item:hover .blog-item-img img {
  transform: scale(1.1);
}

/* Redesigned date badge moved to top right */
.blog-item-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(55, 114, 255, 0.75);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.blog-item-date span {
  display: block;
}

.blog-item-date span:first-child {
  font-size: 18px;
  font-weight: 700;
}

.blog-item-date span:last-child {
  font-size: 14px;
  text-transform: uppercase;
}

.blog-item:hover .blog-item-date {
  background: rgba(55, 114, 255, 0.9);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.blog-item-meta {
  margin-bottom: 15px;
  color: var(--muted-color);
}

.blog-item-meta span {
  display: inline-block;
  margin-right: 15px;
  font-size: 0.9rem;
  color: var(--muted-color);
}

.blog-item-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

.blog-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  height: 54px; /* Fixed height for title (1.25rem * 1.4 * 2 lines + margin) */
  overflow: hidden;
}

.blog-item-title a {
  color: var(--light-color);
  text-decoration: none;
}

.blog-item-title a:hover {
  color: var(--primary-color);
}

.blog-item p {
  color: var(--text-color);
  margin-bottom: 15px;
}

.blog-area {
  background-color: var(--dark-bg);
  margin-top: 50px;
}

.blog-area .section-title h2 {
  color: var(--light-color);
}

.blog-area .section-title p {
  color: var(--muted-color);
}

/* Enhanced Categories Section */
.portfolio-area {
  background-color: var(--darker-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.portfolio-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(55, 114, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(69, 178, 107, 0.05) 0%,
      transparent 50%
    );
  z-index: 0;
}

.portfolio-area .section-title {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.portfolio-area .section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 15px;
  color: var(--light-color);
}

.portfolio-area .section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 2px;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

.portfolio-item {
  background-color: transparent;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  height: 100%;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.portfolio-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-img-overlay {
  opacity: 0.9;
  background: linear-gradient(
    to bottom,
    rgba(24, 27, 43, 0.4) 0%,
    rgba(24, 27, 43, 0.8) 100%
  );
}

.portfolio-img img {
  transition: all 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
  opacity: 1;
}

.portfolio-content {
  padding: 25px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.portfolio-icon {
  margin-bottom: 15px;
}

.portfolio-icon a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(55, 114, 255, 0.8);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-icon a:hover {
  background: var(--secondary-color);
  color: white;
  transform: scale(1.1);
}

.portfolio-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-info h4 a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-info h4 a:hover {
  color: var(--primary-color);
}

.portfolio-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.counter-area {
  background-color: var(--dark-bg);
}

/* List page specific styles */
.pagination-wrap {
  margin-top: 30px;
}

.pagination .page-link {
  color: var(--light-color);
  background-color: var(--card-bg);
  border-color: #333;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Sidebar Styling */
.sidebar .widget {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.sidebar .widget-title {
  color: var(--light-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.sidebar .widget ul li {
  margin-bottom: 10px;
}

.sidebar .widget ul li a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.sidebar .widget ul li a:hover {
  color: var(--primary-color);
}

.sidebar .widget-tags .tags a {
  display: inline-block;
  background: #333;
  color: var(--text-color);
  padding: 5px 15px;
  border-radius: 30px;
  margin: 0 5px 10px 0;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.sidebar .widget-tags .tags a:hover {
  background: var(--primary-color);
  color: white;
}

/* Single Post Styling */
.blog-single-wrap {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  color: var(--text-color);
}

.blog-single-thumb {
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
}

.blog-single-thumb img {
  transition: all 0.5s ease;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-color);
}

.blog-single-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
  color: var(--light-color);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-single-content h2 {
  font-size: 1.4rem;
}
.blog-single-content h3 {
  font-size: 1.2rem;
}
.blog-single-content h4 {
  font-spacing: 1.1rem;
}
.blog-single-content h5 {
  font-size: 1rem;
}
.blog-single-content h6 {
  font-size: 0.95rem;
}

.blog-single-content blockquote {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-color);
}

.blog-single-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-single-tag h4 {
  color: var(--light-color);
  margin-right: 15px;
  font-size: 1rem;
}

.blog-single-tag ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-single-tag ul li a {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-color);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0 6px 6px 0;
  transition: background 0.3s, color 0.3s;
}

.blog-single-tag ul li a:hover {
  background: rgba(74, 159, 255, 0.1);
  color: var(--bright-nav);
}

/* Header, Footer and Navigation styling */
.header-area {
  background-color: var(--darker-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Enhanced Footer Styling */
.footer-area {
  background-color: var(--darker-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 5% 10%,
      rgba(55, 114, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 95% 90%,
      rgba(69, 178, 107, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.footer-widget {
  padding: 80px 0 50px;
}

.footer-widget-item {
  margin-bottom: 30px;
}

.footer-widget-item h3 {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.footer-widget-item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.footer-widget-item p {
  color: var(--muted-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
}

/* Footer Stats */
.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.footer-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  min-width: 80px;
  transition: all 0.3s ease;
}

.footer-stat-item:hover {
  background: rgba(55, 114, 255, 0.1);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted-color);
  margin-top: 5px;
}

/* Footer Tags */
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-tags a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-color);
  border-radius: 30px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-tags a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Copyright */
.copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.copyright p {
  margin: 0;
  color: var(--muted-color);
}

.copyright a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copyright a:hover {
  color: var(--secondary-color);
}

/* Footer Responsive */
@media (max-width: 991px) {
  .footer-widget {
    padding: 60px 0 30px;
  }

  .footer-widget-item {
    margin-bottom: 40px;
  }

  .footer-stat-item {
    min-width: 70px;
    padding: 8px 12px;
  }
}

@media (max-width: 767px) {
  .footer-widget {
    padding: 50px 0 20px;
  }

  .footer-stats {
    justify-content: center;
  }

  .footer-widget-item h3 {
    text-align: center;
  }

  .footer-widget-item h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-tags {
    justify-content: center;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-widget-item p {
    text-align: center;
  }

  .footer-widget-item ul li a {
    justify-content: center;
  }
}

.main-menu ul li a {
  color: var(--bright-nav);
}

.main-menu ul li a:hover {
  color: var(--secondary-color);
}

.navbar-nav .nav-link {
  color: var(--bright-nav) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
}

.dropdown-menu {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item {
  color: var(--bright-nav);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(74, 159, 255, 0.1);
  color: white;
}

/* Enhanced Breadcrumb Area */
.breadcrumb-area {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(55, 114, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(69, 178, 107, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.breadcrumb-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.breadcrumb-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb-content ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-content ul li {
  color: var(--text-color);
  position: relative;
  font-size: 0.95rem;
}

.breadcrumb-content ul li:not(:first-child)::before {
  content: "/";
  margin-right: 10px;
  color: var(--gray-color);
}

.breadcrumb-content ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-content ul li a:hover {
  color: var(--secondary-color);
}

.breadcrumb-content ul li.active {
  color: var(--muted-color);
}

@media (max-width: 767px) {
  .breadcrumb-area {
    padding: 30px 0;
  }

  .breadcrumb-content h1 {
    font-size: 1.8rem;
  }
}

/* Dark Mode Overrides */
.dark-mode {
  background-color: var(--dark-bg);
  color: var(--light-color);
}

.dark-mode .blog-item,
.dark-mode .blog-single-wrap,
.dark-mode .blog-sidebar-widget,
.dark-mode .blog-item-info {
  background-color: var(--card-bg);
}

.dark-mode .blog-item-title a,
.dark-mode .blog-sidebar-widget h4,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
  color: var(--light-color);
}

.dark-mode .blog-sidebar-widget-search input {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: #353945;
  color: white;
}

.dark-mode .blog-single-tag ul li a {
  background-color: #353945;
  color: #b1b5c3;
}

/* Crypto-specific elements */
.crypto-price {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 15px;
  border-radius: 30px;
  margin-right: 10px;
}

.crypto-price.up {
  background-color: rgba(88, 189, 125, 0.1);
  color: var(--success-color);
}

.crypto-price.down {
  background-color: rgba(255, 104, 56, 0.1);
  color: var(--danger-color);
}

.crypto-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* Responsive Tweaks */
@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .blog-single-meta {
    flex-direction: column;
    gap: 15px;
  }

  .blog-item-date {
    padding: 6px 10px;
  }

  .blog-item-date span:first-child {
    font-size: 16px;
  }

  .blog-item-date span:last-child {
    font-size: 12px;
  }

  .featured-section {
    padding-top: 70px;
    padding-bottom: 50px;
  }

  .section-title.mb-50 {
    margin-bottom: 30px;
  }

  .top-navigation {
    top: 10px;
    right: 10px;
    gap: 5px;
  }

  .top-navigation a {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

table th {
  background-color: rgba(55, 114, 255, 0.1);
  color: var(--primary-color);
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
}

table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table tr {
  background-color: rgba(255, 255, 255, 0.01);
}

table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Code blocks */
pre,
code {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  color: #e83e8c;
  font-family: monospace;
  padding: 2px 4px;
}

pre {
  padding: 15px;
  overflow-x: auto;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Filter Area */
.filter-area {
  background-color: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-title h4 {
  margin: 0;
  color: var(--light-color);
  font-size: 1.1rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tags a {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-color);
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.filter-tags a:hover,
.filter-tags a.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Featured Item */
.featured-item {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(55, 114, 255, 0.1);
}

.featured-item .blog-item-img img {
  height: 240px;
}

.featured-item .blog-item-title {
  font-size: 1.35rem;
}

.featured-articles-area {
  background-color: var(--dark-bg);
  position: relative;
}

.featured-articles-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(55, 114, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(69, 178, 107, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

@media (max-width: 767px) {
  .filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-tags {
    justify-content: center;
    width: 100%;
  }

  .filter-title {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* More Subtle Recent Posts in Sidebar */
.blog-sidebar-widget-post-item {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-sidebar-widget-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.blog-sidebar-widget-post-img {
  flex: 0 0 50px;
  margin-right: 10px;
}

.blog-sidebar-widget-post-img img {
  border-radius: 6px;
  width: 50px;
  height: 35px;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.blog-sidebar-widget-post-img:hover img {
  opacity: 1;
}

.blog-sidebar-widget-post-content span {
  font-size: 0.7rem;
  color: var(--muted-color);
  margin-bottom: 2px;
  display: block;
  opacity: 0.7;
}

.blog-sidebar-widget-post-content h5 {
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.3;
}

.blog-sidebar-widget-post-content h5 a {
  color: var(--text-color);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.blog-sidebar-widget-post-content h5 a:hover {
  color: var(--bright-nav);
  opacity: 1;
}

/* Improved Categories Section in Sidebar */
.blog-sidebar-widget-categories ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-sidebar-widget-categories ul li {
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.blog-sidebar-widget-categories ul li:hover {
  background: rgba(74, 159, 255, 0.08);
  transform: translateX(5px);
}

.blog-sidebar-widget-categories ul li a {
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 8px;
}

.blog-sidebar-widget-categories ul li a i {
  color: var(--bright-nav);
  font-size: 0.7rem;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.blog-sidebar-widget-categories ul li:hover a {
  color: var(--bright-nav);
}

.blog-sidebar-widget-categories ul li:hover a i {
  transform: translateX(3px);
}

.blog-sidebar-widget-categories ul li a span {
  background-color: rgba(74, 159, 255, 0.1);
  color: var(--bright-nav);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.blog-sidebar-widget-categories ul li:hover a span {
  background-color: rgba(74, 159, 255, 0.2);
}

/* More Engaging Affiliate Banner */
.blog-sidebar-widget-banner {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.15) 0%,
    rgba(255, 187, 0, 0.2) 100%
  );
  padding: 15px;
  border: 1px solid rgba(255, 187, 0, 0.25);
  margin-top: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.blog-sidebar-widget-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 187, 0, 0.4);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-sidebar-widget-banner:before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: rgba(255, 187, 0, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.blog-sidebar-widget-banner:after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 50%;
  z-index: 0;
}

.blog-sidebar-widget-banner-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-sidebar-widget-banner-title {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.blog-sidebar-widget-banner-desc {
  font-size: 0.85rem;
  color: white;
  margin-bottom: 10px;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.blog-sidebar-widget-banner-badge {
  display: inline-block;
  background-color: #ff9800;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-sidebar-widget-banner-disclaimer {
  font-size: 0.65rem;
  color: var(--muted-color);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  opacity: 0.7;
}

/* Narrower Sidebar Layout */
@media (min-width: 992px) {
  .blog-area .col-lg-8 {
    flex: 0 0 auto;
    width: 66%;
  }
}

/* Blog Sidebar Styling */
.blog-sidebar {
  margin-top: 0;
  padding-left: 15px;
}

/* Full Screen Search */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 10, 22, 0.97);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  overflow-y: auto;
}

.search-overlay.active {
  display: flex;
}

.search-form-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.search-form {
  margin-bottom: 30px;
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px 20px;
  font-size: 1.3rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-results {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.search-result-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.search-result-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.search-result-title a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.search-result-title a:hover {
  color: var(--primary-color);
}

.search-result-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.search-result-meta span {
  color: var(--muted-color);
  font-size: 0.85rem;
}

.search-result-snippet {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

.search-result-highlight {
  background-color: rgba(255, 215, 0, 0.3);
  padding: 0 3px;
  border-radius: 3px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  z-index: 99;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(55, 114, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--tertiary-color);
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 30px;
}

/* Footer Links */
.footer-widget-item ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-widget-item ul li {
  margin-bottom: 12px;
}

.footer-widget-item ul li a {
  color: var(--muted-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-widget-item ul li a i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-widget-item ul li a:hover {
  color: var(--light-color);
  transform: translateX(5px);
}

.footer-widget-item ul li a:hover i {
  transform: rotate(90deg);
}
