* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Theme Colors */
  --primary-dark: #0a0f2c;
  /* Deep Navy */
  --primary-medium: #3a5afe;
  /* Stripe Blue */
  --primary-light: #6c8cff;
  /* Soft Blue */
  --background-light: #f5f7fa;
  --primary-text: white;

  /* UI Elements */
  --light-bg: rgba(255, 255, 255, 0.4);
  --light-text: #1e293b;
  --light-accent: #3a5afe;
  --light-menu-bg: rgba(255, 255, 255, 0.95);
  --dark-bg: rgba(10, 15, 44, 0.7);
  --dark-text: #f1f5f9;
  --dark-accent: #3a5afe;
  --dark-menu-bg: rgba(10, 15, 44, 0.95);
  --input-disable-bg: #6b6868d2;

  /* Category Page Variables */
  --primary-color: #3a5afe;
  --primary-color-rgb: 58, 90, 254;
  --bg-color: rgba(255, 255, 255, 0.08);
  --text-color: #f1f5f9;
  --border-color: rgba(255, 255, 255, 0.14);

  /* Transitions */
  --transition: all 0.3s ease;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #3a5afe, #6c8cff);
  --secondary-gradient: linear-gradient(135deg, #2563eb, #3a5afe);
  --tool-gradient: linear-gradient(135deg, #0a0f2c, #3a5afe);
  --section-header-gradient: linear-gradient(to right, #6c8cff, #3a5afe);
  --hero-heading-gradient: linear-gradient(to right, #6c8cff, #3a5afe, #2563eb);

  /* Cards & Components */
  --tool-card-bg: rgba(15, 21, 52, 0.8);
  --tool-card-shadow: 0 4px 25px rgba(58, 90, 254, 0.15);
  --home-tool-card-bg: rgba(255, 255, 255, 0.05);
  --home-tool-card-border: 1px solid rgba(255, 255, 255, 0.1);
  --popular-card-bg: rgba(255, 255, 255, 0.05);
  --popular-card-border: 1px solid rgba(255, 255, 255, 0.1);
  --popular-tools-bg: var(--primary-gradient);
  --popular-tools-border: 1px solid rgba(255, 255, 255, 0.1);
  --benefit-card-bg: rgba(255, 255, 255, 0.08);
  --benefit-card-border: 1px solid rgba(255, 255, 255, 0.12);
  --faq-item-bg: rgba(255, 255, 255, 0.05);
  --faq-item-border: 1px solid rgba(255, 255, 255, 0.12);

  /* Backgrounds */
  --body-bg-gradient: radial-gradient(circle at top right, #0a0f2c, #111827);
  --benefits-bg: rgba(15, 21, 52, 0.4);
  --benefits-border: 1px solid rgba(255, 255, 255, 0.08);
  --footer-bg: rgba(15, 21, 52, 0.9);
  --background-dark: rgba(255, 255, 255, 0.06);

  /* Form Elements */
  --search-bar-bg: rgba(255, 255, 255, 0.15);
  --search-icon-color: #6c8cff;
  --contact-input-bg: rgba(255, 255, 255, 0.12);
  --newsletter-input-text: white;

  /* Text & Icons */
  --footer-heading-color: #6c8cff;
  --typewriter-color: var(--footer-heading-color);
  --popular-icon-color: white;
  --toggle-icon-color: #3a5afe;

  /* Borders & Dividers */
  --copyright-border: 1px solid rgba(255, 255, 255, 0.08);
  --dropdown-divider: rgba(255, 255, 255, 0.08);

  /* Interactive Elements */
  --mobile-dropdown-hover: rgba(255, 255, 255, 0.08);
  --social-icon-bg: rgba(255, 255, 255, 0.08);
  --site-title-gradient: linear-gradient(to right, #6c8cff, #3a5afe);

  --tooltip-bg-color: #1e1e1e;
  --tooltip-text-color: #f1f1f1;
  --tooltip-border-color: #333333;
  --tooltip-shadow-color: rgba(0, 0, 0, 0.5);
}

/* Light Mode Overrides */
.light-mode {
  /* Primary colors */
  --primary-dark: #3a5afe;
  --primary-medium: #6c8cff;
  --primary-light: #a5b8ff;

  /* Text & Backgrounds */
  --dark-text: var(--light-text);
  --page-bg: #f5f7fa;
  --text-color: #1e1e2a;
  --heading-color: #3a5afe;
  --card-bg: rgba(255, 255, 255, 0.5);
  --menu-bg: rgba(255, 255, 255, 0.95);
  --background-dark: #e8e8e9;
  --dark-bg: var(--card-bg);
  --dark-menu-bg: var(--menu-bg);
  --input-disable-bg: #d7d7d7;
  --primary-text: #111827;

  /* Category Page Variables - Light Mode */
  --primary-color: #3a5afe;
  --primary-color-rgb: 58, 90, 254;
  --bg-color: rgba(255, 255, 255, 0.85);
  --text-color: #1e1e2a;
  --border-color: rgba(0, 0, 0, 0.1);

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #3a5afe, #6c8cff);
  --secondary-gradient: linear-gradient(135deg, #2563eb, #3a5afe);
  --tool-gradient: linear-gradient(135deg, #6c8cff, #3a5afe);
  --section-header-gradient: linear-gradient(to right, #6c8cff, #3a5afe);
  --hero-heading-gradient: linear-gradient(to right, #3a5afe, #6c8cff);

  /* Cards & Components */
  --tool-card-bg: var(--card-bg);
  --tool-card-shadow: 0 4px 20px rgba(58, 90, 254, 0.18);
  --home-tool-card-bg: rgba(255, 255, 255, 0.8);
  --home-tool-card-border: 1px solid rgba(0, 0, 0, 0.05);
  --popular-card-bg: rgba(255, 255, 255, 0.75);
  --popular-card-border: 1px solid rgba(0, 0, 0, 0.05);
  --popular-tools-bg: linear-gradient(
    135deg,
    rgba(58, 90, 254, 0.08),
    rgba(255, 255, 255, 0.35)
  );
  --popular-tools-border: 1px solid rgba(255, 255, 255, 0.2);
  --benefit-card-bg: rgba(255, 255, 255, 0.85);
  --benefit-card-border: 1px solid rgba(0, 0, 0, 0.05);
  --faq-item-bg: rgba(255, 255, 255, 0.82);
  --faq-item-border: 1px solid rgba(0, 0, 0, 0.05);

  /* Backgrounds */
  --body-bg-gradient: radial-gradient(circle at top right, #f2f4ff, #eef1ff);
  --benefits-bg: rgba(255, 255, 255, 0.55);
  --benefits-border: 1px solid rgba(255, 255, 255, 0.2);
  --footer-bg: rgba(240, 240, 240, 0.9);

  /* Form Elements */
  --search-bar-bg: rgba(255, 255, 255, 0.8);
  --search-icon-color: #3a5afe;
  --contact-input-bg: rgba(255, 255, 255, 0.85);
  --newsletter-input-text: var(--light-text);

  /* Text & Icons */
  --footer-heading-color: #3a5afe;
  --typewriter-color: var(--footer-heading-color);
  --popular-icon-color: #3a5afe;
  --toggle-icon-color: #6c8cff;

  /* Borders & Dividers */
  --copyright-border: 1px solid rgba(0, 0, 0, 0.1);
  --dropdown-divider: rgba(0, 0, 0, 0.1);

  /* Interactive Elements */
  --mobile-dropdown-hover: rgba(58, 90, 254, 0.12);
  --social-icon-bg: rgba(58, 90, 254, 0.12);
  --site-title-gradient: linear-gradient(to right, #6c8cff, #3a5afe);

  --tooltip-bg-color: #ffffff;
  --tooltip-text-color: #1a1a1a;
  --tooltip-border-color: #d7d7d7;
  --tooltip-shadow-color: rgba(0, 0, 0, 0.08);
}

/* main.css */
body {
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  background: var(--body-bg-gradient);
  color: var(--dark-text);
  transition: var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Floating Navbar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1400px;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
  transition: var(--transition);
}

/* Consistent Width for Navbar and Hero */
.navbar,
.hero-content {
  max-width: 1400px;
  width: 90%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(22, 66, 60, 0.3);
}

.logo i {
  color: white;
  font-size: 1.4rem;
}

.logo-image {
  width: 85%;
  height: 85%;
  object-fit: contain;
  border-radius: 8px;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--site-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-text);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #4d6dfe;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.mode-toggle {
  width: 50px;
  height: 28px;
  background: var(--primary-gradient);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 3px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(22, 66, 60, 0.3);
}

.toggle-circle {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-circle i {
  font-size: 0.75rem;
  color: var(--toggle-icon-color);
}

.hamburger {
  display: none;
  cursor: pointer;

  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger i {
  font-size: 1.2rem;
  color: var(--dark-text);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  /* Changed from left:0 */
  width: 300px;
  /* Fixed width for sidebar */
  height: 100%;
  background: var(--dark-menu-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: transform 0.3s ease;
  transform: translateX(0);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
  transform: translateX(-300px);
  /* Slide in from right */
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.close-menu {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

.close-menu i {
  font-size: 1.5rem;
  color: var(--dark-text);
}

.mobile-links {
  display: flex;
  flex-direction: column;
}

.mobile-links a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.mobile-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.light-mode .mobile-links a:hover {
  background: var(--mobile-dropdown-hover);
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  backdrop-filter: blur(10px);
  padding: 5rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--footer-heading-color);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-links a i {
  color: #6a9c89;
}

.footer-links a:hover {
  color: #4d6dfe;
}

.copyright {
  text-align: center;
  padding: 1.8rem 1.8rem 0 1rem;
  opacity: 0.9;
  font-size: 0.9rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: var(--copyright-border);
  margin-top: 3rem;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top i {
  font-size: 1.5rem;
}

/* Footer enhancements */
.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--social-icon-bg);
  color: var(--dark-text);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--primary-medium);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  margin-top: 1.5rem;
}

.contact-input {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: none;
  background: var(--contact-input-bg);
  color: white;
}

.contact-btn {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(22, 66, 60, 0.4);
}

.language-switcher {
  margin-top: 1.5rem;
  position: relative;
}

.language-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--contact-input-bg);
  color: var(--dark-text);
  border: none;
  appearance: none;
  cursor: pointer;
}

.language-select option {
  background-color: #1e1e2a; /* Dark background for options */
  color: white;
}

.light-mode .language-select option {
  background-color: white;
  color: #333;
}

.language-switcher i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Animation classes */
.aos-fade-up {
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.6s ease;
}

.aos-fade-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.aos-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.aos-slide-up.animate {
  opacity: 1;
  transform: translateX(0);
}

.aos-fade-in {
  opacity: 0;
  transition: all 0.6s ease;
}

.aos-fade-in.animate {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tool-hero-card {
    padding: 30px 20px;
  }

  .upload-area {
    padding: 40px 15px;
  }

  .image-comparison-wrapper {
    flex-direction: column;
  }

  .image-card {
    max-width: 100%;
  }

  .icon-divider {
    transform: rotate(90deg);
    margin: 20px 0;
    font-size: 2rem;
  }

  .btn-download-large {
    font-size: 1rem;
    padding: 15px;
  }

  .tool-header-centered h1 {
    font-size: 1.8rem;
  }
}

/* --- Redesigned Background Remover (TinyWow Style) --- */

.tool-layout-container {
  max-width: 1000px;
  /* Wider for the card */
  margin: 50px auto;
  padding: 0 20px;
}

.tool-hero-card {
  background: var(--tool-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  /* For overlays */
}

.light-mode .tool-hero-card {
  background: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.tool-header-centered h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--hero-heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tool-subtitle {
  font-size: 1.1rem;
  color: var(--dark-text);
  opacity: 0.8;
  margin-bottom: 40px;
}

/* Upload Section */
.upload-area {
  border: 3px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 60px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.light-mode .upload-area {
  border-color: #e0e0e0;
  background: #f9f9f9;
}

.upload-area:hover {
  border-color: var(--primary-medium);
  background: rgba(58, 90, 254, 0.05);
}

.upload-icon-circle {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(58, 90, 254, 0.3);
}

.upload-icon-circle i {
  font-size: 2rem;
  color: white;
}

.upload-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.drag-text {
  color: var(--dark-text);
  opacity: 0.6;
  margin-bottom: 30px;
}

.btn-upload {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: var(--primary-medium);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(58, 90, 254, 0.4);
  transition: transform 0.2s ease;
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 90, 254, 0.5);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-text);
  opacity: 0.8;
  font-size: 0.9rem;
}

.badge i {
  color: #4ade80;
  /* Green for trust */
}

/* Results Section */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.light-mode .results-header {
  border-bottom-color: #eee;
}

.results-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #4ade80;
}

.btn-text {
  background: none;
  border: none;
  color: var(--dark-text);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-text:hover {
  opacity: 1;
}

.image-comparison-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.image-card {
  position: relative;
  max-width: 45%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-card .label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 10;
}

.icon-divider {
  font-size: 1.5rem;
  color: var(--dark-text);
  opacity: 0.5;
}

.transparency-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #eee;
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
  z-index: -1;
}

.btn-download-large {
  width: 100%;
  max-width: 400px;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: #4ade80;
  /* Green download button */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

.btn-download-large:hover {
  transform: translateY(-2px);
  background: #22c55e;
}

.terms-text {
  margin-top: 15px;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Loading Overlay Card Style */
.loading-overlay-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 44, 0.95);
  /* Matches dark theme */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(5px);
}

.light-mode .loading-overlay-card {
  background: rgba(255, 255, 255, 0.95);
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(58, 90, 254, 0.2);
  border-top-color: var(--primary-medium);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

/* New dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-text);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.dropdown-toggle:hover {
  color: #4d6dfe;
}

.dropdown-toggle:hover::after {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--dark-menu-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.7rem 1.5rem !important;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 1rem;
}

.dropdown-item:hover {
  background: rgba(106, 156, 137, 0.15);
  color: #4d6dfe;
  padding-left: 1.7rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--dropdown-divider);
  margin: 0.5rem 0;
}

/* Mobile dropdown styles */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition);
}

.mobile-dropdown-toggle:hover {
  background: var(--mobile-dropdown-hover);
}

.mobile-dropdown-toggle i {
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 500px;
}

.mobile-dropdown-item {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--dark-text);
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-dropdown-item:hover {
  background: rgba(106, 156, 137, 0.15);
  color: #4d6dfe;
  padding-left: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .dropdown-menu {
    display: none;
  }
}

/* Add this to your existing CSS */
.mobile-menu {
  overflow-y: auto;
}

.mobile-menu-header {
  position: sticky;
  top: 0;
  background: var(--dark-menu-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
}

.mobile-links {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

@media (max-width: 992px) {
  .mobile-menu {
    width: 100%;
    right: -100%;
  }

  .mobile-menu.active {
    transform: translateX(-100%);
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    width: 90%;
    right: -90%;
  }

  .mobile-menu.active {
    transform: translateX(-90%);
  }
}

/* Responsive styles */
@media (max-width: 1100px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .search-container {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    margin: 1rem 0 0 0;
  }

  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-buttons .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .search-icon {
    left: 1rem;
    /* Adjust icon position */
    top: 22% !important;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 1.1rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-container {
    flex-direction: column-reverse;
    /* Reverse order */
    gap: 2rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section {
    padding: 2rem 1.5rem;
  }

  .section-header h2 {
    font-size: 2.3rem;
  }

  .tool-card {
    padding: 2rem 1.5rem;
  }

  .benefits,
  .popular-tools {
    padding: 0.5rem;
  }

  .benefits-grid {
    margin-top: 0;
  }

  .hero-image {
    max-width: 90%;
  }

  .search-container {
    width: 100%;
  }

  .search-bar {
    padding-left: 3rem;
    /* Ensure icon stays inside */
  }

  .search-icon {
    left: 1rem;
    /* Adjust icon position */
    top: 22% !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  .faq-list {
    width: 100%;
    margin: 0 auto;
  }

  .search-bar {
    padding: 1rem 1.2rem;
    padding-left: 3rem;
    font-size: 1rem;
  }

  .search-icon {
    left: 1.2rem;
  }

  .site-title {
    font-size: 1.2rem;
    background-clip: text;
  }

  .logo {
    width: 36px;
    height: 36px;
  }

  .logo-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 6px;
  }
}

/* --- ABOUT PAGE STYLES --- */

.about-hero-section {
  padding: 80px 0;
  text-align: center;
}

.about-hero-section .section-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: var(--primary-medium);
  margin-top: 5rem;
}

.about-hero-section .section-header p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.about-hero-image {
  max-width: 700px;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--tool-card-shadow);
  transition: transform 0.3s ease;
}

.about-hero-image:hover {
  transform: translateY(-5px);
}

.about-hero-section .lead {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 20px auto 0;
}

/* Sections for Our Mission, Our Story, Why Choose Us */
.our-mission-section,
.our-story-section,
.why-choose-us-section {
  padding: 60px 0;
}

.our-mission-section.bg-light,
.why-choose-us-section.bg-light {
  background-color: var(--tool-card-bg);
}

/* Generic .row and .col-md-X (Bootstrap-like grid system) */
.row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 25px;
}

.col-md-6,
.col-md-4 {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Image styles within sections */
.our-mission-section img,
.our-story-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--tool-card-shadow);
}

.our-mission-section .text-left {
  text-align: left;
}

.our-mission-section h2 {
  color: var(--primary-dark);
}

/* Features Grid (Why Choose Us) */
.features-grid {
  margin-top: 40px;
  justify-content: center;
}

.feature-card {
  background-color: var(--tool-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--tool-card-shadow);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark mode specific for feature-card border to ensure visibility */
.dark-mode .feature-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tool-card-shadow);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-medium);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--footer-heading-color);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Call to Action Section */
.call-to-action-section {
  padding: 70px 0;
  text-align: center;
  background: var(--primary-gradient);
  color: white;
  border-radius: 15px;
  margin: 50px auto;
  max-width: 1200px;
  box-shadow: var(--tool-card-shadow);
}

.call-to-action-section h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 2.8rem;
}

.call-to-action-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-size: 1.15rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary.btn-lg {
  padding: 15px 35px;
  font-size: 1.2rem;
  border-radius: 50px;
  background-color: var(--primary-medium);
  color: var(--dark-text);
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary.btn-lg:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-primary.btn-lg i {
  margin-left: 10px;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.rounded {
  border-radius: 8px !important;
}

/* --- END ABOUT PAGE STYLES --- */

/* Contact Page Specific Styles */
.contact-hero-section {
  padding: 220px 20px 80px;
  background: var(--secondary-gradient);
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 40px;
}

.contact-hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  margin-top: 3rem;
}

.contact-hero-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.contact-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
}

.contact-form-section,
.contact-info-section {
  background-color: var(--tool-card-bg);
  padding: 35px;
  border-radius: 12px;
  box-shadow: var(--tool-card-shadow);
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  color: var(--dark-text);
}

.contact-form-section h2,
.contact-info-section h2,
.contact-map-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--dark-text);
  text-align: center;
  font-weight: 600;
}

/* Contact Form Styles */
.contact-form .contact-form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: var(--benefit-card-border);
  border-radius: 8px;
  background-color: var(--background-dark);
  color: var(--dark-text);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--primary-medium);
  outline: none;
  box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form button i {
  margin-left: 10px;
  font-size: 1rem;
}

/* Contact Info Styles */
.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

.contact-info-item i {
  font-size: 1.8rem;
  color: var(--primary-medium);
  min-width: 35px;
  text-align: center;
}

.contact-info-item h3 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--primary-light);
}

.contact-info-item p {
  font-size: 1rem;
  color: var(--dark-text);
}

.contact-info-item a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Contact Map Section */
.contact-map-section {
  background-color: var(--tool-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--tool-card-shadow);
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-section,
  .contact-info-section {
    width: 100%;
    max-width: 500px;
  }

  .contact-hero-section h1 {
    font-size: 2.8rem;
  }

  .contact-form-section h2,
  .contact-info-section h2 {
    font-size: 1.8rem;
  }
  .call-to-action-section h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .contact-hero-section h1 {
    font-size: 2.2rem;
  }

  .contact-hero-section p {
    font-size: 1rem;
  }

  .contact-form-section,
  .contact-info-section {
    padding: 25px;
  }
}

/* Policy Pages (Privacy Policy, Terms of Use) Specific Styles */

.policy-page-main {
  padding-bottom: 60px;
  /* Add some space at the bottom for consistency */
}

.policy-hero-section {
  padding: 80px 20px;
  background: var(--secondary-gradient);
  /* Use a different gradient for variety */
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 40px;
}

.policy-hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  margin-top: 50px;
}

.policy-hero-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.policy-content-section {
  padding: 20px 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--tool-card-bg);
  /* Use existing card background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--tool-card-shadow);
  /* Use existing shadow */
  color: var(--dark-text);
  /* Ensure text is visible */
  line-height: 1.7;
}

.policy-last-updated {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 30px;
  color: var(--dark-text);
  /* Ensure date is visible */
}

.policy-container h2 {
  font-size: 2rem;
  color: var(--primary-light);
  /* Highlight main headings */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.policy-container h2:first-of-type {
  margin-top: 0;
  /* No top margin for the first h2 */
}

.policy-container h3 {
  font-size: 1.5rem;
  color: var(--primary-medium);
  /* Sub-headings */
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 500;
}

.policy-container p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.policy-container ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--dark-text);
  /* Ensure list items are visible */
}

.policy-container ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.policy-container a {
  color: var(--primary-medium);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.policy-container a:hover {
  color: var(--primary-light);
}

/* Responsive adjustments for policy pages */
@media (max-width: 768px) {
  .policy-hero-section h1 {
    font-size: 2.8rem;
  }

  .policy-hero-section p {
    font-size: 1.1rem;
  }

  .policy-container {
    padding: 30px 20px;
    margin: 0 15px;
    /* Add some side margin */
  }

  .policy-container h2 {
    font-size: 1.8rem;
  }

  .policy-container h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .policy-hero-section h1 {
    font-size: 2.2rem;
  }

  .policy-hero-section p {
    font-size: 1rem;
  }

  .policy-container {
    padding: 20px 15px;
  }

  .policy-container ul {
    margin-left: 20px;
  }
}

/* Custom Confirmation Modal Styles */
.modal-overlay {
  display: flex;
  /* Use flexbox for easy centering */
  justify-content: center;
  align-items: center;
  position: fixed;
  /* Stay in place even when scrolling */
  z-index: 1000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6);
  /* Black w/ opacity */
  backdrop-filter: blur(5px);
  /* Optional: Frosted glass effect */
}

.modal-content {
  background-color: var(--benefits-bg);
  margin: auto;
  /* Centered automatically by flexbox */
  padding: 25px;
  border: var(--benefit-card-border);
  border-radius: 12px;
  /* Rounded corners */
  width: 90%;
  /* Responsive width */
  max-width: 500px;
  /* Max width for desktop */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
  /* Simple fade-in animation */
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-medium);
  font-size: 1.5em;
}

.close-button {
  color: var(--dark-text);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
  color: #333;
  text-decoration: none;
}

.modal-body {
  padding: 10px 0;
  color: #555;
  font-size: 1.1em;
  line-height: 1.6;
}

.modal-body p {
  margin: 0;
  /* Remove default paragraph margin */
  color: var(--dark-text);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  /* Align buttons to the right */
  gap: 10px;
  /* Space between buttons */
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 15px;
}

/* Base button styles (ensure these are consistent with your existing btn classes) */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--secondary-gradient);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

/* Responsive adjustments for modal */
@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
  }

  .modal-header h3 {
    font-size: 1.3em;
  }

  .modal-body {
    font-size: 1em;
  }

  .modal-footer {
    flex-direction: column-reverse;
    /* Stack buttons on small screens */
    gap: 8px;
  }

  .btn {
    width: 100%;
    /* Full width buttons when stacked */
  }
}

/* Toggle: default (light mode) */
.mode-toggle .toggle-circle {
  left: 3px;
  /* ...existing styles... */
}

/* Toggle: dark mode (knob moves right, icon changes color) */
.mode-toggle.dark .toggle-circle {
  transform: translateX(22px);
  /* Adjust this value if needed for your toggle width */
}

.mode-toggle .toggle-circle i.fa-solid.fa-sun {
  display: inline;
}

.mode-toggle .toggle-circle i.fa-solid.fa-moon {
  display: none;
}

.mode-toggle.dark .toggle-circle i.fa-solid.fa-sun {
  display: none;
}

.mode-toggle.dark .toggle-circle i.fa-solid.fa-moon {
  display: inline;
}

#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  /* Change color to match theme */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Tooltip popup */
.wc-tooltip-popup {
  position: fixed;
  z-index: 99999;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.95em;
  white-space: pre-line;
  min-width: 180px;
  max-width: 300px;
  word-wrap: break-word;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px var(--tooltip-shadow-color);
  border: 2px solid var(--tooltip-border-color);
  background-color: var(--tooltip-bg-color);
  color: var(--tooltip-text-color);
}

/* ===== FAVORITE HEART ICONS ===== */

/* Favorite button container */
.favorite-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 14px;
  color: #ccc;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
.dark-mode .favorite-btn {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  color: #666;
}

/* Hover state */
.favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--primary-medium);
}

/* Favorited state (filled heart) */
.favorite-btn.favorited {
  color: var(--primary-medium);
  background: rgba(106, 156, 137, 0.1);
  border-color: var(--primary-medium);
}

.favorite-btn.favorited:hover {
  color: var(--primary-dark);
  background: rgba(106, 156, 137, 0.2);
}

/* Loading state */
.favorite-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.favorite-btn.loading i {
  animation: spin 1s linear infinite;
}

/* Animation for adding/removing favorites */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.favorite-btn.heart-beat {
  animation: heartBeat 0.6s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .favorite-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 8px;
    left: 8px;
  }
}

/* Ensure tool cards have relative positioning for absolute positioning of hearts */
.tool-card {
  position: relative;
}

.popular-card {
  position: relative;
}

/* User Menu Styles */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.user-menu-toggle:hover {
  background: var(--border-color);
}

.user-menu-toggle .fa-user,
.user-menu-toggle .fa-solid,
.user-menu-toggle .fa-regular {
  font-size: 24px;
  color: var(--text-primary);
}

.user-menu-toggle .fa-chevron-down {
  display: none;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--border-color);
}

.dropdown-item i {
  font-size: 14px;
  width: 16px;
}

/* Dropdown User Info Styles */
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--card-bg);
}

.dropdown-user-info i {
  font-size: 18px;
  color: var(--primary-color);
}

.dropdown-username {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

/* Mobile Auth Styles */
.mobile-user-section,
.mobile-auth-section {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 600;
}

.mobile-user-info i {
  font-size: 18px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--primary-color);
}

.mobile-link i {
  font-size: 16px;
  width: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Hide user menu on mobile completely - sidebar handles all auth */
  .user-menu {
    display: none;
  }
}

/* CAPTCHA Modal Styles */
.captcha-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background-color: var(--footer-bg);
  border: 1px solid var(--benefit-card-border);
  color: var(--dark-text);
  padding: 25px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
}

/* Backdrop styling */
#captcha-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  z-index: 9998 !important;
  /* Ensure backdrop covers entire viewport */
  margin: 0 !important;
  padding: 0 !important;
}

.captcha-header {
  text-align: center;
  margin-bottom: 20px;
}

.captcha-header h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.captcha-header p {
  opacity: 0.8;
}

/* Captcha error styling */
.captcha-error {
  text-align: center;
  padding: 20px;
}

.captcha-error .text-danger {
  color: #dc3545 !important;
  font-weight: 500;
}

/* Responsive captcha adjustments */
@media (max-width: 480px) {
  .captcha-modal {
    width: 95%;
    padding: 20px;
    max-width: none;
  }

  .captcha-header h3 {
    font-size: 1.3rem;
  }

  .captcha-header p {
    font-size: 0.9rem;
  }

  .section-header p {
    font-size: 1.1rem !important;
  }
}

/* Additional captcha positioning fixes */
@media (max-height: 600px) {
  .captcha-modal {
    max-height: 90vh !important;
    top: 45% !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* Ensure captcha works with different body styles */
body {
  /* Prevent body scroll when captcha is active */
  .captcha-active {
    overflow: hidden !important;
  }
}

/* Ensure reCAPTCHA widget is properly styled */
.g-recaptcha {
  display: flex !important;
  justify-content: center !important;
  margin: 20px 0 !important;
}

.nasaj-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nasaj {
  min-width: 260px;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nasaj-success {
  border-left: 3px solid #22c55e;
}

.nasaj-error {
  border-left: 3px solid #ef4444;
}

.nasaj-warning {
  border-left: 3px solid #facc15;
}

.nasaj-info {
  border-left: 3px solid #3b82f6;
}

.nasaj-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ====================================================
   BLOG PAGE — GLOBAL LAYOUT
==================================================== */

.blog-layout {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  justify-content: center;
}

/* ARTICLE COLUMN (75%) */
.blog-article {
  width: 75%;
  max-width: 900px;
}

/* SIDEBAR (25%) */
.blog-sidebar {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ====================================================
   HERO SECTION
==================================================== */

.blog-hero {
  padding-top: 150px;
  padding-bottom: 30px;
  text-align: center;
}

.blog-category {
  display: inline-block;
  background: var(--primary-gradient);
  padding: 7px 16px;
  border-radius: 40px;
  color: #fff;
  font-size: 0.85rem;
}

.blog-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 12px 0;
  color: var(--dark-text);
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  opacity: 0.85;
}

.author-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

/* ====================================================
   ARTICLE CONTENT
==================================================== */

.blog-feature-image img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: var(--tool-card-shadow);
}

.blog-article h2 {
  font-size: 1.9rem;
  margin: 45px 0 15px;
  color: var(--primary-light);
}

.blog-article h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: var(--primary-medium);
}

.blog-article p,
.blog-article ul,
.blog-article blockquote {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.blog-article ul {
  margin-left: 20px;
}

.blog-quote {
  background: var(--tool-card-bg);
  padding: 20px 25px;
  border-left: 4px solid var(--primary-medium);
  border-radius: 10px;
  box-shadow: var(--tool-card-shadow);
  font-style: italic;
  margin: 30px 0;
}

/* ----------------------------------------------------
   INLINE IMAGES INSIDE ARTICLE
---------------------------------------------------- */

.blog-image-box {
  margin: 30px 0;
  text-align: center;
}

.blog-image-box img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--tool-card-shadow);
}

.img-caption {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 6px;
}

/* ====================================================
   SIDEBAR ELEMENTS
==================================================== */

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar List (Popular Posts & Categories) */
.sidebar-section {
  background: transparent;
  padding: 0;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
}

.sidebar-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.sidebar-list a {
  color: var(--dark-text);
  opacity: 0.85;
  text-decoration: none;
  transition: 0.2s ease;
}

.sidebar-list a:hover {
  opacity: 1;
  color: var(--primary-light);
  text-decoration: underline;
}

/* Search Box (Card) */
.sidebar-card {
  background: var(--tool-card-bg);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: var(--tool-card-shadow);
  border: 1px solid var(--border-color);
}

.sidebar-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--background-secondary);
  color: var(--dark-text);
  outline: none;
}

.sidebar-search:focus {
  border-color: var(--primary-light);
}

/* CTA CARD */
.cta-card {
  text-align: center;
}

.cta-card h3 {
  color: var(--primary-light);
}

.cta-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cta-card .cta-button {
  margin-top: 12px;
  display: inline-block;
}

/* ====================================================
   CTA BUTTON STYLE
==================================================== */

.cta-button {
  background: var(--primary-gradient);
  padding: 12px 22px;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s ease;
}

.cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ====================================================
   RESPONSIVE STYLES
==================================================== */

@media (max-width: 1150px) {
  .blog-layout {
    flex-direction: column;
  }

  .blog-article {
    width: 100%;
  }

  .blog-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 2.1rem;
  }

  .blog-article h2 {
    font-size: 1.6rem;
  }

  .blog-article h3 {
    font-size: 1.25rem;
  }

  .blog-article p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 1.7rem;
  }
}

/* ====================================================
   BLOG INDEX — HEADER SECTION
==================================================== */

.blog-list-hero {
  padding-top: 150px;
  padding-bottom: 30px;
  text-align: center;
}

.blog-list-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dark-text);
}

.blog-list-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 6px;
}

/* SEARCH INPUT */
.blog-search-input {
  margin-top: 20px;
  padding: 14px 20px;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--background-secondary);
  color: var(--dark-text);
  font-size: 1rem;
  outline: none;
  transition: 0.2s ease;
}

.blog-search-input:focus {
  border-color: var(--primary-light);
}

/* ====================================================
   CATEGORY FILTER BUTTONS
==================================================== */

.blog-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cat-btn {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--dark-text);
  transition: 0.25s ease;
}

.cat-btn:hover {
  background: var(--tool-card-bg);
}

.cat-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

/* ====================================================
   FEATURED POST
==================================================== */

.featured-post {
  display: flex;
  gap: 25px;
  align-items: center;
  background: var(--tool-card-bg);
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 50px;
  box-shadow: var(--tool-card-shadow);
  border: 1px solid var(--border-color);
}

.featured-img {
  width: 40%;
  border-radius: 14px;
  object-fit: cover;
}

.featured-content {
  width: 60%;
}

.featured-content h2 {
  color: var(--primary-light);
  margin-bottom: 8px;
}

.featured-badge {
  display: inline-block;
  background: var(--primary-gradient);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ====================================================
   BLOG GRID (CARDS)
==================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* BLOG CARD */
.blog-card {
  background: var(--tool-card-bg);
  border-radius: 16px;
  box-shadow: var(--tool-card-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
}

/* IMAGE */
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* BODY */
.blog-card-body {
  padding: 18px;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-light);
}

.blog-card-body p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

.blog-read-btn {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.blog-read-btn:hover {
  text-decoration: underline;
}

/* ====================================================
   RESPONSIVE STYLES
==================================================== */

@media (max-width: 1000px) {
  .featured-post {
    flex-direction: column;
    text-align: center;
  }

  .featured-img {
    width: 100%;
  }

  .featured-content {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .blog-list-title {
    font-size: 2rem;
  }

  .blog-card-img {
    height: 160px;
  }
}

.nt-stats-table {
  margin: 25px 0;
  background: #111416;
  /* Matches your dark blog background */
  border: 1px solid #1d2124;
  border-radius: 10px;
  padding: 10px 20px;
}

.nt-stats-table table {
  width: 100%;
  border-collapse: collapse;
  color: #e4e7eb;
  font-family: "Inter", sans-serif;
  font-size: 15px;
}

.nt-stats-table th {
  text-align: left;
  padding: 16px 0;
  color: #bfc5cc;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #222;
}

.nt-stats-table td {
  padding: 14px 0;
  border-bottom: 1px solid #1a1d20;
}

.nt-stats-table tr:last-child td {
  border-bottom: none;
}

/* Highlight % increase like your blog accent color */
.nt-stats-table .increase {
  color: #4db8ff;
  /* Your accent blue */
  font-weight: 600;
}

/* Internal SEO text links (below Related Tools section) */

/* Dark mode text color fix */
body.dark .internal-links {
  color: var(--dark-text);
}

.internal-links {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

/* Links */
.internal-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

/* Hover state */
.internal-links a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Light mode override */
.light-mode .internal-links {
  color: var(--text-color);
}

.step-image {
  margin-top: 20px;
  width: 100%;

  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.step-description {
  font-size: 1rem;
  color: var(--dark-text);
  line-height: 1.6;
  max-width: 800px;
  text-align: center;
  margin: 10px auto;
}

@media (max-width: 600px) {
  .step-image {
    max-width: 100%;
  }
}

.main-tool-area {
  width: 100%;
}

/* Trust Section (NasajTools theme variables) */
.trust-section {
  margin: 1.5rem 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;

  background: var(--benefit-card-bg);
  border: var(--benefit-card-border);
  border-radius: 14px;

  color: var(--text-color);
  box-shadow: var(--tool-card-shadow);

  font-size: 0.95rem;
  line-height: 1.2;

  transition: var(--transition);
}

.trust-item i {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-color-rgb), 0.35);
}

/* Small screens */
@media (max-width: 480px) {
  .trust-items {
    justify-content: stretch;
  }

  .trust-item {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
} /* ===============================
   NEWSLETTER SECTION STYLES
================================ */
.newsletter-section {
  
  /* Match the lavender/light blue from the image */
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

/* Dark Mode support using variable if available, or direct override */


.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  color: #5865f2;
  /* Primary blue color */
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Dark mode adjustment for h2 if needed - though primary color usually stands out */
body.dark .newsletter-content h2 {
  color: #8ea1ff;
}

.newsletter-content p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark .newsletter-content p {
  color: #cbd5e1;
}

.newsletter-form {
  max-width: 600px;
  /* Limit form width */
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 8px;
  border-radius: 50px;
  /* Pill shape container */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.dark .input-group {
  background: #1e293b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.input-group input[type="email"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 1rem;
  color: #333;
  outline: none;
}

body.dark .input-group input[type="email"] {
  color: #fff;
}

.input-group input[type="email"]::placeholder {
  color: #9ca3af;
}

.btn-subscribe {
  background: #4f46e5;
  /* Bold blue/purple for button */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .newsletter-section {
    padding: 3rem 1rem;
  }

  .newsletter-content h2 {
    font-size: 2rem;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 15px;
    padding: 0;
  }

  .input-group input[type="email"] {
    background: #fff;
    width: 100%;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  body.dark .input-group input[type="email"] {
    background: #1e293b;
  }

  .btn-subscribe {
    width: 100%;
    padding: 15px;
  }
}

.form-message {
  margin-top: 1rem;
  font-weight: 500;
  min-height: 24px;
  transition: all 0.3s ease;
}

.form-message.success {
  color: #10b981;
}

.form-message.error {
  color: #ef4444;
}
