:root {
  --primary: #008ffd;
  --primary-dark: #0070cc;
  --primary-light: #66b8ff;
  --dark: #111111;
  --light: #ffffff;
  --gray: #f5f5f5;
  --gray-dark: #333333;
  --gray-light: #e0e0e0;
  --gray-medium: #999999;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --gradient-blue: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
  transition: background-color 0.3s ease;
}

body.dark-mode {
  --light: #1a1a1a;
  --dark: #f5f5f5;
  --gray: #333333;
  --gray-dark: #e0e0e0;
  --gray-light: #444444;
  --gray-medium: #aaaaaa;
  background-color: var(--light);
  color: var(--dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* Animated Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.5;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 18s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 22s;
}

.particle:nth-child(4) {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 60%;
  animation-delay: 3s;
  animation-duration: 15s;
}

.particle:nth-child(5) {
  width: 70px;
  height: 70px;
  top: 80%;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 25s;
}

.particle:nth-child(6) {
  width: 40px;
  height: 40px;
  top: 30%;
  left: 30%;
  animation-delay: 5s;
  animation-duration: 17s;
}

.particle:nth-child(7) {
  width: 90px;
  height: 90px;
  top: 70%;
  left: 80%;
  animation-delay: 6s;
  animation-duration: 21s;
}

.particle:nth-child(8) {
  width: 45px;
  height: 45px;
  top: 50%;
  left: 10%;
  animation-delay: 7s;
  animation-duration: 19s;
}

.particle:nth-child(9) {
  width: 55px;
  height: 55px;
  top: 15%;
  left: 50%;
  animation-delay: 8s;
  animation-duration: 23s;
}

.particle:nth-child(10) {
  width: 75px;
  height: 75px;
  top: 85%;
  left: 15%;
  animation-delay: 9s;
  animation-duration: 16s;
}

.particle:nth-child(11) {
  width: 65px;
  height: 65px;
  top: 25%;
  left: 70%;
  animation-delay: 10s;
  animation-duration: 24s;
}

.particle:nth-child(12) {
  width: 85px;
  height: 85px;
  top: 75%;
  left: 40%;
  animation-delay: 11s;
  animation-duration: 20s;
}

.particle:nth-child(13) {
  width: 35px;
  height: 35px;
  top: 35%;
  left: 90%;
  animation-delay: 12s;
  animation-duration: 18s;
}

.particle:nth-child(14) {
  width: 95px;
  height: 95px;
  top: 65%;
  left: 5%;
  animation-delay: 13s;
  animation-duration: 22s;
}

.particle:nth-child(15) {
  width: 50px;
  height: 50px;
  top: 45%;
  left: 45%;
  animation-delay: 14s;
  animation-duration: 15s;
}

.particle:nth-child(16) {
  width: 70px;
  height: 70px;
  top: 5%;
  left: 25%;
  animation-delay: 15s;
  animation-duration: 25s;
}

.particle:nth-child(17) {
  width: 40px;
  height: 40px;
  top: 55%;
  left: 75%;
  animation-delay: 16s;
  animation-duration: 17s;
}

.particle:nth-child(18) {
  width: 90px;
  height: 90px;
  top: 95%;
  left: 65%;
  animation-delay: 17s;
  animation-duration: 21s;
}

.particle:nth-child(19) {
  width: 45px;
  height: 45px;
  top: 15%;
  left: 35%;
  animation-delay: 18s;
  animation-duration: 19s;
}

.particle:nth-child(20) {
  width: 55px;
  height: 55px;
  top: 85%;
  left: 85%;
  animation-delay: 19s;
  animation-duration: 23s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-50px) translateX(50px);
  }
  50% {
    transform: translateY(0) translateX(100px);
  }
  75% {
    transform: translateY(50px) translateX(50px);
  }
}

.dark-mode .particle {
  background: var(--primary-dark);
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-chart,
.floating-candle,
.floating-indicator {
  position: absolute;
  opacity: 0.1;
  filter: blur(2px);
}

.floating-chart {
  width: 300px;
  height: 200px;
  background: url("assets/chart-pattern.png") no-repeat;
  background-size: contain;
  top: 20%;
  left: 5%;
  animation: float-element 20s infinite ease-in-out;
}

.floating-candle {
  width: 150px;
  height: 250px;
  background: url("assets/candle-pattern.png") no-repeat;
  background-size: contain;
  top: 60%;
  right: 5%;
  animation: float-element 25s infinite ease-in-out reverse;
}

.floating-indicator {
  width: 200px;
  height: 200px;
  background: url("assets/indicator-pattern.png") no-repeat;
  background-size: contain;
  bottom: 10%;
  left: 40%;
  animation: float-element 22s infinite ease-in-out;
  animation-delay: 5s;
}

@keyframes float-element {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(30px) rotate(-5deg);
  }
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.dark-mode header {
  background-color: rgba(26, 26, 26, 0.95);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.has-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a.has-dropdown i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-links a.has-dropdown:hover i {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 300px;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-links li {
  position: relative;
}

.nav-links li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--gray);
}

.dropdown-item i {
  font-size: 1.2rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.dropdown-item h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.dropdown-item p {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.auth-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.login-btn {
  font-weight: 600;
  transition: var(--transition);
  padding: 8px 15px;
  border-radius: var(--border-radius);
}

.login-btn:hover {
  color: var(--primary);
  background-color: var(--gray);
}

.get-started-btn {
  background-color: var(--primary);
  color: var(--light);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.get-started-btn span {
  position: relative;
  z-index: 2;
}

.get-started-btn svg {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.get-started-btn:hover svg {
  transform: translateX(5px);
}

.get-started-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.get-started-btn:hover::after {
  transform: translateX(0);
}

.theme-toggle {
  width: 60px;
  height: 30px;
  background-color: var(--gray-light);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  position: relative;
  cursor: pointer;
  margin-left: 15px;
}

.theme-toggle i {
  font-size: 14px;
  color: var(--gray-dark);
  z-index: 1;
}

.theme-toggle .fa-sun {
  color: #f39c12;
}

.theme-toggle .fa-moon {
  color: #34495e;
}

.toggle-ball {
  position: absolute;
  left: 5px;
  width: 22px;
  height: 22px;
  background-color: var(--light);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-mode .toggle-ball {
  transform: translateX(30px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  transition: var(--transition);
  border-radius: 3px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light);
  z-index: 999;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s ease;
  padding: 100px 20px 20px;
  display: none;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  font-weight: 500;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-menu a.active {
  color: var(--primary);
}

.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-dropdown-toggle i {
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  display: none;
  padding: 10px 0 10px 20px;
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-dropdown-content a {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-dropdown-content a i {
  color: var(--primary);
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.mobile-auth .login-btn {
  text-align: center;
  padding: 12px;
  border: 1px solid var(--gray-light);
}

.mobile-auth .get-started-btn {
  text-align: center;
  justify-content: center;
  padding: 12px;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.dark-mode .hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 143, 253, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hero-badge span {
  background-color: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  margin-right: 8px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--dark) 0%, var(--gray-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 30px;
  max-width: 500px;
}

.highlight {
  color: var(--primary);
  position: relative;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(0, 143, 253, 0.2);
  z-index: -1;
  animation: highlight-pulse 2s infinite;
}

@keyframes highlight-pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-medium);
}

.cta-container {
  position: relative;
}

.explore-btn {
  background-color: var(--primary);
  color: var(--light);
  border: none;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.explore-btn span {
  position: relative;
  z-index: 2;
}

.explore-btn i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.explore-btn:hover i {
  transform: translateX(5px);
}

.explore-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.explore-btn:hover::after {
  transform: translateX(0);
}

.tools-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  width: 700px;
  background-color: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.cta-container:hover .tools-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 999;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 999;
}

.tool-card {
  background-color: var(--gray);
  padding: 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 999;
  height: 40px;
}

.tool-card:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-5px);
}

.tool-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.tool-card:hover i {
  color: var(--light);
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.tool-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--gray-medium);
}

.tool-card:hover p {
  color: rgba(255, 255, 255, 0.8);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.platform-mockup {
  width: 100%;
  max-width: 500px;
  background-color: var(--light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
}

.mockup-header {
  background-color: var(--gray);
  padding: 12px 15px;
  display: flex;
  align-items: center;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  margin-right: 15px;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
  background-color: #ff5f57;
}

.mockup-dots span:nth-child(2) {
  background-color: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
  background-color: #28ca41;
}

.mockup-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.mockup-content {
  padding: 0;
}

.mockup-content img {
  display: block;
  width: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.play-button i {
  color: var(--light);
  font-size: 1.5rem;
}

.play-button:hover {
  background-color: var(--primary-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button.pulse::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.6;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.floating-card {
  position: absolute;
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-lg);
  width: 250px;
}

.card-1 {
  top: 20px;
  right: -30px;
  animation: float-card 3s infinite ease-in-out;
}

.card-2 {
  bottom: 20px;
  left: -30px;
  animation: float-card 3s infinite ease-in-out reverse;
  animation-delay: 1.5s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 143, 253, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

.card-content h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.card-content p {
  font-size: 0.8rem;
  color: var(--gray-medium);
  margin: 0;
}

.hero-shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.hero-shape-divider .shape-fill {
  fill: var(--light);
}

/* Market Ticker */
.market-ticker {
  background-color: var(--gray);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
}

.dark-mode .market-ticker {
  background-color: var(--gray-dark);
}

.ticker-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 0 20px;
  white-space: nowrap;
  color: var(--primary);
}

.ticker-content {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ticker-symbol {
  font-weight: 600;
}

.ticker-change {
  font-size: 0.9rem;
  font-weight: 600;
}

.ticker-item.up .ticker-change {
  color: #28a745;
}

.ticker-item.down .ticker-change {
  color: #dc3545;
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background-color: rgba(0, 143, 253, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-medium);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: transparent;
  color: var(--light);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 143, 253, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.feature-card:hover .feature-icon i {
  color: var(--light);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  transition: var(--transition);
}

.feature-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover p {
  color: rgba(255, 255, 255, 0.8);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-link i {
  transition: transform 0.3s ease;
}

.feature-link:hover i {
  transform: translateX(5px);
}

.feature-card:hover .feature-link {
  color: var(--light);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--gray);
  position: relative;
}

.dark-mode .testimonials {
  background-color: var(--gray-light);
}

.testimonial-slider {
  padding-bottom: 50px;
}

.testimonial-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-rating {
  margin-bottom: 20px;
  color: #f39c12;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: var(--gray-medium);
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--gray-medium);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary);
  opacity: 1;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.cta-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--light);
  color: var(--primary);
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(5px);
}

.cta-image {
  position: relative;
}

.cta-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-stats {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  gap: 30px;
  box-shadow: var(--shadow-lg);
}

.cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.cta-stat .stat-label {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

.cta-shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.cta-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.cta-shape-divider .shape-fill {
  fill: var(--dark);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 80px 0 30px;
  position: relative;
  outline: 2px solid var(--dark) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.social-links i {
  font-size: 1.2rem;
}

.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  height: 45px;
}

.newsletter-form input {
  flex-grow: 1;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0 15px;
  color: var(--light);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  width: 45px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.footer-links h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }

  .floating-card {
    width: 200px;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-card.card-1 {
    top: 10px;
    right: -20px;
  }

  .floating-card.card-2 {
    bottom: 10px;
    left: -20px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .auth-buttons,
  .theme-toggle {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero .container,
  .cta-section .container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero p {
    margin: 0 auto 30px;
  }

  .hero-stats {
    justify-content: center;
  }

  .cta-container {
    display: flex;
    justify-content: center;
  }

  .tools-dropdown {
    width: 90vw;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }

  .cta-container:hover .tools-dropdown {
    transform: translateX(-50%) translateY(0);
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-stats {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
}

/* Ad Placeholder Styles */
.ad-placeholder {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 30px auto;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
  border-radius: var(--border-radius);
}
.ad-placeholder-banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
}
.ad-placeholder-box {
  width: 100%;
  max-width: 300px;
  height: 250px;
}
.ad-placeholder-article-top {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin-bottom: 30px;
}
.ad-placeholder-article-mid {
  width: 100%;
  max-width: 468px;
  height: 60px;
  margin: 30px auto;
}
.ad-placeholder-sidebar-box {
  width: 100%;
  max-width: 300px;
  height: 250px;
}

/* Blog Page Styles */
.blog-hero {
  padding: 100px 0 60px; /* Adjusted padding */
  background: var(--gradient-blue); /* Using existing gradient variable */
  color: var(--light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5; /* Soften the pattern */
}
.blog-hero .container {
  position: relative;
  z-index: 1;
}
.blog-hero h1 {
  font-size: 3.2rem; /* Slightly larger */
  font-weight: 800; /* Bolder */
  margin-bottom: 15px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.blog-hero p {
  font-size: 1.25rem; /* Slightly larger */
  opacity: 0.95;
  max-width: 700px; /* Wider text block */
  margin: 0 auto 30px auto;
}
.blog-hero .btn-light {
  /* Style for "View All Posts" button */
  color: var(--primary) !important; /* Ensure text color is primary */
  background-color: var(--light) !important;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.blog-hero .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.blog-content-area {
  padding: 80px 0; /* More padding */
  background-color: var(--gray-light); /* Subtle background for content area */
}
.dark-mode .blog-content-area {
  background-color: #222529; /* Darker background for dark mode */
}

.blog-post-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 35px; /* Increased margin */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light); /* Subtle border */
}
.dark-mode .blog-post-card {
  background-color: var(--gray-dark); /* Darker card for dark mode */
  border-color: #44484e;
}
.blog-post-card:hover {
  transform: translateY(-8px); /* More pronounced hover effect */
  box-shadow: 0 12px 24px rgba(0, 70, 128, 0.15); /* Primary color shadow */
}
.dark-mode .blog-post-card:hover {
  box-shadow: 0 12px 24px rgba(0, 143, 253, 0.2);
}

.blog-post-card .featured-image-link {
  display: block;
  overflow: hidden;
  height: 260px; /* Increased height */
  position: relative;
}
.blog-post-card .featured-image-link::after {
  /* Gradient overlay on image */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.blog-post-card:hover .featured-image-link::after {
  opacity: 0.5;
}
.blog-post-card .featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-post-card:hover .featured-image {
  transform: scale(1.08) rotate(1deg); /* Slight scale and rotate on hover */
}
.blog-post-card .card-content {
  padding: 30px; /* Increased padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-post-card .category-badge {
  display: inline-block;
  background-color: var(--primary-light); /* Lighter primary for badge */
  color: var(--primary-dark); /* Darker primary text */
  padding: 6px 15px; /* Adjusted padding */
  border-radius: 50px; /* Pill shape */
  font-size: 0.75rem; /* Smaller font */
  font-weight: 700; /* Bolder */
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.blog-post-card .category-badge:hover {
  background-color: var(--primary);
  color: var(--light);
}
.blog-post-card .post-title {
  font-size: 1.6rem; /* Larger title */
  font-weight: 700; /* Bolder */
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-post-card .post-title a {
  color: var(--dark);
  text-decoration: none;
}
.dark-mode .blog-post-card .post-title a {
  color: var(--light);
}
.blog-post-card .post-title a:hover {
  color: var(--primary);
}

.blog-post-card .post-meta {
  font-size: 0.8rem; /* Smaller meta */
  color: var(--gray-medium);
  margin-bottom: 18px;
  display: flex; /* Align items */
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping */
}
.blog-post-card .post-meta span {
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
}
.blog-post-card .post-meta i {
  margin-right: 6px;
  color: var(--primary);
} /* Icon color */

.blog-post-card .post-excerpt {
  font-size: 0.98rem; /* Slightly larger excerpt */
  color: var(--gray-dark);
  margin-bottom: 25px;
  line-height: 1.65;
  flex-grow: 1;
}
.dark-mode .blog-post-card .post-excerpt {
  color: var(--gray-medium);
}

.blog-post-card .read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700; /* Bolder */
  font-size: 0.95rem; /* Slightly larger */
  margin-top: auto;
  text-decoration: none;
  padding: 8px 0; /* Add some padding for easier click */
  position: relative;
}
.blog-post-card .read-more-btn::after {
  /* Underline effect */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.blog-post-card .read-more-btn:hover::after {
  width: 100%;
}
.blog-post-card .read-more-btn i {
  transition: transform 0.3s ease;
  margin-left: 5px;
}
.blog-post-card .read-more-btn:hover i {
  transform: translateX(5px);
}

.pagination-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pagination-container .page-link,
.pagination-container .page-item span {
  /* Target spans for disabled items too */
  color: var(--primary);
  padding: 12px 18px; /* Larger padding */
  margin: 0 5px;
  border: 1px solid var(--primary-light);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  text-decoration: none;
}
.pagination-container .page-link:hover,
.pagination-container .page-item.active .page-link /* Target active item's link */,
.pagination-container .page-item.active span {
  /* Target active item's span */
  background-color: var(--primary);
  color: var(--light);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 143, 253, 0.3);
}
.pagination-container .page-item.disabled .page-link /* Target disabled item's link */,
.pagination-container .page-item.disabled span {
  /* Target disabled item's span */
  color: var(--gray-medium);
  border-color: var(--gray-light);
  pointer-events: none;
  background-color: var(--gray);
}
.dark-mode .pagination-container .page-item.disabled .page-link,
.dark-mode .pagination-container .page-item.disabled span {
  background-color: var(--gray-dark);
  border-color: var(--gray-medium);
}

.no-posts {
  text-align: center;
  padding: 60px 30px; /* More padding */
  background-color: var(--light); /* Match card background */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}
.dark-mode .no-posts {
  background-color: var(--gray-dark);
  border-color: #44484e;
}
.no-posts h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
}
.no-posts p {
  color: var(--gray-dark);
  font-size: 1.1rem;
  margin-bottom: 25px;
}
.dark-mode .no-posts p {
  color: var(--gray-medium);
}
.no-posts .btn-primary {
  padding: 12px 30px;
  font-size: 1rem;
}

/* Sidebar Styles */
.blog-sidebar .widget {
  background-color: var(--light);
  padding: 25px; /* Increased padding */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow); /* Consistent shadow */
  margin-bottom: 35px; /* Increased margin */
  border: 1px solid var(--gray-light);
}
.dark-mode .blog-sidebar .widget {
  background-color: var(--gray-dark);
  border-color: #44484e;
}
.blog-sidebar .widget-title {
  font-size: 1.3rem; /* Larger title */
  font-weight: 700; /* Bolder */
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-light);
  position: relative;
  color: var(--dark);
}
.dark-mode .blog-sidebar .widget-title {
  color: var(--light);
  border-bottom-color: var(--gray-medium);
}
.blog-sidebar .widget-title::after {
  content: "";
  position: absolute;
  bottom: -1px; /* Sits on the border */
  left: 0;
  width: 60px; /* Longer accent */
  height: 3px; /* Thicker accent */
  background-color: var(--primary);
}
.blog-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar ul li a {
  display: block;
  padding: 10px 0; /* Increased padding */
  color: var(--gray-dark);
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 0.98rem; /* Slightly larger */
  text-decoration: none;
  position: relative;
}
.dark-mode .blog-sidebar ul li a {
  color: var(--gray-medium);
}
.blog-sidebar ul li a:hover {
  color: var(--primary);
  transform: translateX(8px); /* More pronounced hover */
}
.blog-sidebar ul li a small {
  display: block;
  font-size: 0.8em;
  color: var(--gray-medium);
  margin-top: 3px;
}
.blog-sidebar ul li:not(:last-child) a {
  border-bottom: 1px dashed var(--gray-light); /* Dashed border */
}
.dark-mode .blog-sidebar ul li:not(:last-child) a {
  border-bottom-color: var(--gray-dark);
}

.blog-sidebar .search-form {
  display: flex;
  margin-bottom: 0; /* Removed margin as widget has padding */
}
.blog-sidebar .search-form input[type="search"] {
  flex-grow: 1;
  padding: 12px 18px; /* Increased padding */
  border: 1px solid var(--gray-light);
  border-right: none; /* Remove right border to join with button */
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
  font-size: 0.95rem;
  background-color: var(--light);
  color: var(--dark);
}
.blog-sidebar .search-form button {
  padding: 12px 18px;
  background-color: var(--primary);
  color: var(--light);
  border: 1px solid var(--primary); /* Add border for consistency */
  border-left: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.blog-sidebar .search-form button:hover {
  background-color: var(--primary-dark);
}
.dark-mode .blog-sidebar .search-form input[type="search"] {
  background-color: var(--gray-dark);
  border-color: var(--gray-medium);
  color: var(--light);
}
.dark-mode .blog-sidebar .search-form button {
  border-color: var(--primary-dark);
}

/* Single Post Styles */
.single-post-hero {
  padding: 60px 0; /* Reduced top/bottom padding */
  background-color: var(--gray); /* Consistent with blog list bg */
  text-align: center;
}
.dark-mode .single-post-hero {
  background-color: var(--gray-dark);
}

.single-post-hero .category-link {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light) !important; /* Ensure text is light */
  padding: 8px 20px;
  border-radius: 50px; /* Pill shape */
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: var(--transition);
}
.single-post-hero .category-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.single-post-hero .post-title-main {
  font-size: 3rem; /* Slightly smaller than blog hero */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
  color: var(--dark);
}
.dark-mode .single-post-hero .post-title-main {
  color: var(--light);
}

.single-post-hero .post-meta-main {
  font-size: 0.95rem; /* Slightly larger */
  color: var(--gray-medium);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.single-post-hero .post-meta-main span {
  display: inline-flex;
  align-items: center;
  margin: 5px 10px; /* Add vertical margin for wrapping */
}
.single-post-hero .post-meta-main i {
  margin-right: 8px;
  color: var(--primary); /* Icon color */
  font-size: 1.1em; /* Slightly larger icons */
}

.single-post-featured-image {
  margin: -50px auto 50px auto; /* Adjusted overlap and bottom margin */
  max-width: 950px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 70, 128, 0.15); /* More prominent shadow */
  position: relative;
  z-index: 10;
}
.single-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 300px; /* Ensure a minimum height */
  max-height: 550px; /* Max height to prevent overly tall images */
  object-fit: cover;
}

.single-post-content-area {
  padding: 0 0 80px;
}

.article-content {
  font-size: 1.12rem; /* Optimal reading size */
  line-height: 1.85; /* Generous line height */
  color: var(--dark);
  background-color: var(--light); /* Content on light background */
  padding: 40px; /* Padding around content */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}
.dark-mode .article-content {
  color: var(--gray-light);
  background-color: var(--gray-dark);
  border-color: #44484e;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 1.8em;
  margin-bottom: 1em;
  font-weight: 700; /* Bolder headings */
  line-height: 1.4;
  color: var(--dark); /* Ensure headings are dark */
}
.dark-mode .article-content h1,
.dark-mode .article-content h2,
.dark-mode .article-content h3,
.dark-mode .article-content h4,
.dark-mode .article-content h5,
.dark-mode .article-content h6 {
  color: var(--light);
}
.article-content h1 {
  font-size: 2em;
} /* Relative to article-content font-size */
.article-content h2 {
  font-size: 1.7em;
}
.article-content h3 {
  font-size: 1.4em;
}
.article-content p {
  margin-bottom: 1.5em;
}
.article-content a {
  color: var(--primary);
  text-decoration: none; /* Remove default underline */
  border-bottom: 1px dotted var(--primary); /* Dotted underline */
  transition: var(--transition);
}
.article-content a:hover {
  color: var(--primary-dark);
  border-bottom-style: solid; /* Solid underline on hover */
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 25px 0;
  box-shadow: var(--shadow-sm);
}
.article-content blockquote {
  border-left: 5px solid var(--primary); /* Thicker border */
  padding: 20px 25px; /* More padding */
  margin: 25px 0;
  background-color: var(--gray);
  font-style: italic;
  font-size: 1.05em; /* Slightly larger blockquote text */
  color: var(--gray-dark);
}
.dark-mode .article-content blockquote {
  background-color: var(--gray-dark);
  color: var(--gray-medium);
}
.article-content ul,
.article-content ol {
  margin-left: 25px;
  margin-bottom: 1.5em;
  padding-left: 15px;
}
.article-content ul li::marker,
.article-content ol li::marker {
  color: var(--primary);
} /* Marker color */

.article-content code:not(pre code) {
  /* Target inline code */
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 6px;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9em;
}
.dark-mode .article-content code:not(pre code) {
  background-color: var(--gray-medium);
  color: var(--light);
}
.article-content pre {
  background-color: #2d3748; /* Darker background for code blocks */
  color: #e2e8f0; /* Light text */
  padding: 20px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9em;
  margin: 25px 0;
  border: 1px solid #4a5568;
}
.article-content pre code {
  background-color: transparent !important; /* Override inline code style */
  color: inherit !important;
  padding: 0 !important;
  font-size: inherit !important;
}

.post-tags-container {
  margin-top: 40px;
  margin-bottom: 40px;
}
.post-tags-container .tag-label {
  font-weight: 700;
  margin-right: 10px;
  font-size: 1.1rem;
  color: var(--dark);
}
.dark-mode .post-tags-container .tag-label {
  color: var(--light);
}
.post-tags-container .tag-link {
  display: inline-block;
  background-color: var(--gray);
  color: var(--gray-dark);
  padding: 6px 15px;
  border-radius: 50px; /* Pill shape */
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  border: 1px solid var(--gray-light);
}
.post-tags-container .tag-link:hover {
  background-color: var(--primary);
  color: var(--light) !important; /* Ensure light text on hover */
  border-color: var(--primary);
  transform: translateY(-2px);
}
.dark-mode .post-tags-container .tag-link {
  background-color: var(--gray-dark);
  color: var(--gray-light);
  border-color: var(--gray-medium);
}
.dark-mode .post-tags-container .tag-link:hover {
  background-color: var(--primary);
  color: var(--light) !important;
}

.social-share {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-light);
}
.dark-mode .social-share {
  border-top-color: var(--gray-dark);
}
.social-share-title {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--dark);
}
.dark-mode .social-share-title {
  color: var(--light);
}
.social-share-buttons a {
  display: inline-flex; /* Align icon and text */
  align-items: center;
  margin-right: 12px;
  margin-bottom: 10px; /* For wrapping */
  padding: 10px 18px; /* More padding */
  border-radius: var(--border-radius);
  color: var(--light) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.social-share-buttons a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.social-share-buttons .share-facebook {
  background-color: #3b5998;
}
.social-share-buttons .share-twitter {
  background-color: #1da1f2;
}
.social-share-buttons .share-linkedin {
  background-color: #0077b5;
}
.social-share-buttons .share-whatsapp {
  background-color: #25d366;
}
.social-share-buttons .share-email {
  background-color: #777;
}
.social-share-buttons i {
  margin-right: 10px;
  font-size: 1.1em;
}

.author-box {
  margin-top: 50px;
  padding: 35px; /* More padding */
  background-color: var(--gray);
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start; /* Align items to top */
  gap: 30px; /* More gap */
  border: 1px solid var(--gray-light);
}
.dark-mode .author-box {
  background-color: var(--gray-dark);
  border-color: var(--gray-medium);
}
.author-box .author-avatar img {
  width: 90px; /* Larger avatar */
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light); /* Border around avatar */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dark-mode .author-box .author-avatar img {
  border-color: var(--gray-dark);
}
.author-box .author-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.dark-mode .author-box .author-info h4 {
  color: var(--light);
}
.author-box .author-info p {
  font-size: 0.95rem;
  color: var(--gray-medium);
  margin-bottom: 0;
  line-height: 1.6;
}
.dark-mode .author-box .author-info p {
  color: var(--gray-light);
}

#comments-section {
  margin-top: 50px;
}
#comments-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}
.dark-mode #comments-section h3 {
  color: var(--light);
}

@media (max-width: 991px) {
  .blog-content-area .row > .col-lg-8 {
    order: 2;
  } /* Content below sidebar on mobile */
  .blog-content-area .row > .col-lg-4 {
    order: 1;
  }
  .blog-sidebar {
    margin-bottom: 50px;
  }
  .article-content {
    padding: 25px;
  }
}
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.5rem;
  }
  .blog-hero p {
    font-size: 1.1rem;
  }
  .blog-post-card .featured-image-link {
    height: 220px;
  }
  .blog-post-card .post-title {
    font-size: 1.4rem;
  }

  .single-post-hero .post-title-main {
    font-size: 2.2rem;
  }
  .single-post-featured-image {
    margin-top: -30px;
    margin-bottom: 30px;
    border-radius: 10px;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .article-content {
    padding: 20px;
  }
}
@media (max-width: 576px) {
  .blog-post-card .card-content {
    padding: 20px;
  }
  .blog-post-card .post-title {
    font-size: 1.25rem;
  }
  .single-post-hero .post-title-main {
    font-size: 1.8rem;
  }
  .single-post-hero .post-meta-main span {
    margin: 3px 8px;
    font-size: 0.85rem;
  }
  .social-share-buttons a {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin-right: 8px;
  }
  .social-share-buttons i {
    margin-right: 6px;
  }
  .article-content {
    font-size: 1rem;
    padding: 15px;
  }
}
