/* ===========================================
   HEADER & FOOTER ENHANCEMENTS - FIXED WITH THEME TOGGLE
   CSS khusus untuk memperbaiki header dan footer
   Semua warna menggunakan variabel CSS dari style.css
=========================================== */

/* ========== ENHANCED HEADER ========== */
/* Override untuk header yang sudah ada - Gunakan warna dari :root */
body > header {
    background: var(--card, #ffffff) !important;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08)) !important;
    padding: 25px 0 !important;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Tambahkan padding atas untuk header agar tidak tertutup theme toggle */
@media (min-width: 769px) {
    body > header {
        padding-top: 35px !important;
    }
}

/* Header content wrapper */
body > header .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Logo di header */
body > header img {
    width: 140px !important;
    height: auto !important;
    margin: 0 auto 20px !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

body > header img:hover {
    transform: scale(1.05) !important;
}

/* Judul H1 di header - gunakan warna tema */
body > header h1 {
    font-size: 2rem !important;
    margin: 0 0 15px 0 !important;
    font-weight: 700 !important;
    color: var(--text, #111111) !important;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

body > header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--blue, #4a90e2);
    border-radius: 2px;
}

/* Subtitle/Paragraf di header */
body > header p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
    max-width: 800px !important;
    color: var(--muted, #6b7280) !important;
    font-weight: 400;
}

/* ========== ENHANCED BREADCRUMBS ========== */
/* Breadcrumbs container - gunakan warna dari tema */
nav.breadcrumbs {
    background: var(--card, #ffffff) !important;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.05)) !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    margin: 25px auto 30px !important;
    max-width: 1400px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    position: relative;
}

/* Breadcrumbs content */
nav.breadcrumbs .wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Breadcrumb items */
.breadcrumbs a {
    color: var(--blue, #4a90e2) !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.breadcrumbs a:hover {
    background: rgba(74, 144, 226, 0.1) !important;
    text-decoration: none !important;
}

.breadcrumbs span {
    color: var(--text, #111111) !important;
}

.breadcrumbs span:last-child {
    font-weight: 600 !important;
}

.breadcrumbs-separator {
    margin: 0 10px !important;
    color: var(--muted, #6b7280) !important;
    opacity: 0.6;
}

/* ========== PROFESSIONAL FOOTER ========== */

.footer-pro {
    background: var(--bg, #f5f7fb) !important;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    padding: 50px 0 30px !important;
    margin-top: 50px !important;
}

.footer-pro .footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Logo & Brand */
.footer-brand {
    margin-bottom: 25px;
    text-align: center;
}

.footer-logo {
    color: var(--text, #111111) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--muted, #6b7280) !important;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* Links Grid */
.footer-links-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

.footer-section h4 {
    color: var(--text, #111111) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.footer-link {
    color: var(--muted, #6b7280) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
    padding: 3px 0;
}

.footer-link:hover {
    color: var(--blue, #4a90e2) !important;
    transform: translateX(3px);
}

/* Contact Info */
.footer-contact {
    color: var(--muted, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact i {
    width: 16px;
    margin-right: 8px;
    color: var(--blue, #4a90e2);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1)) !important;
    padding-top: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px;
}

.copyright {
    color: var(--muted, #6b7280) !important;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex !important;
    gap: 20px !important;
}

.footer-legal a {
    color: var(--muted, #6b7280) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--blue, #4a90e2) !important;
}

/* Social Links */
.social-links {
    display: flex !important;
    gap: 12px !important;
    margin-top: 15px;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--card, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted, #6b7280);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--blue, #4a90e2);
    color: white;
    border-color: var(--blue, #4a90e2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-pro {
        padding: 40px 0 25px !important;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .footer-legal {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

/* Dark Mode */
[data-theme="dark"] .footer-pro {
    background: var(--bg, #111111) !important;
    border-top-color: var(--border, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .social-link {
    background: var(--card, #1a1a1a);
    border-color: var(--border, rgba(255, 255, 255, 0.1));
}

/* ========== UTILITY CLASSES ========== */
/* Info badges untuk stats - gunakan warna tema */
.info-badges {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin: 40px 0 !important;
}

.info-badge {
    background: rgba(74, 144, 226, 0.1) !important;
    color: var(--blue, #4a90e2) !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .info-badge {
    background: rgba(96, 165, 250, 0.15) !important;
    border-color: rgba(96, 165, 250, 0.3);
}

.info-badge:hover {
    background: rgba(74, 144, 226, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.info-badge i {
    font-size: 0.9em;
}

/* Enhanced back tools link */
.back-tools {
    margin: 30px 0 !important;
    text-align: center;
}

.back-tools a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    background: var(--blue, #4a90e2) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

.back-tools a:hover {
    background: var(--blue-dark, #3a7bc8) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4) !important;
}

.back-tools a i {
    font-size: 0.9em;
}

/* Social icons */
.footer-social {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px;
}

.social-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(74, 144, 226, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--blue, #4a90e2) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--blue, #4a90e2) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .site-footer-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

  body > header {
        padding: 20px 0 !important;
        margin-bottom: 15px;
    }
    
    body > header img {
        width: 120px !important;
        margin-bottom: 15px !important;
    }
    
    body > header h1 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px;
    }
    
    body > header h1::after {
        width: 50px;
        height: 2px;
    }
    
    body > header p {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    nav.breadcrumbs {
        padding: 12px 20px !important;
        margin: 20px auto 25px !important;
        font-size: 0.95rem;
    }
    
    .site-footer {
        padding: 40px 0 25px !important;
        margin-top: 50px !important;
    }
    
    .site-footer-main {
        gap: 25px !important;
    }
    
    .info-badges {
        gap: 12px !important;
        margin: 30px 0 !important;
    }
    
    .info-badge {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .back-tools a {
        padding: 10px 20px !important;
    }
}

    
    .site-footer-main {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    body > header h1 {
        font-size: 1.4rem !important;
    }
    
    .site-footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .info-badges {
        gap: 8px !important;
    }
    
    .info-badge {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body > header {
    animation: fadeIn 0.5s ease-out;
}

nav.breadcrumbs {
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.site-footer {
    animation: fadeIn 0.5s ease-out 0.2s both;
}
/* ========== NAVIGASI UTAMA ========== */
.main-nav {
  background: var(--card, #ffffff);
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--logo-color); /* Dynamic text color */
  font-family: 'Arial', sans-serif;
  background-color: var(--logo-bg); /* Dynamic background color */
  padding: 5px;
  border-radius: 5px;
}

/* Menu Tengah + Search */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  justify-content: center;
}

.nav-item {
  color: var(--text, #111111);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--blue, #4a90e2);
}

/* Search Bar - Dipindahkan ke dalam nav-menu */
.header-search {
  margin-left: auto;
  margin-right: 15px;
  flex-shrink: 0;
}

.header-search-form {
  position: relative;
  display: flex;
}

.header-search-input {
  width: 200px;
  padding: 8px 12px;
  padding-right: 35px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.header-search-input:focus {
  width: 250px;
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
  background: var(--card);
}

.header-search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-search-button:hover {
  color: var(--blue);
}

/* Actions Kanan */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text, #111111);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle-btn {
  color: #fbbf24;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text, #111111);
  cursor: pointer;
  padding: 8px;
}

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

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--card, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--muted, #6b7280);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: rgba(74, 144, 226, 0.08);
  color: var(--blue, #4a90e2);
  border-left-color: var(--blue, #4a90e2);
}

.dropdown-link i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 15px;
  }
  
  .header-search-input {
    width: 180px;
  }
  
  .header-search-input:focus {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .header-search {
    display: none; /* Sembunyikan search di mobile, gunakan menu mobile */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-container {
    padding: 0 15px;
    height: 56px;
    gap: 10px;
  }
  
  .nav-logo img {
    height: 28px;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--card, #ffffff);
  border-left: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.1));
}

.mobile-logo img {
  height: 28px;
  width: auto;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text, #111111);
  cursor: pointer;
  padding: 5px;
}

.mobile-nav {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--text, #111111);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.05));
}

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

.mobile-nav-item i {
  width: 20px;
  color: var(--blue, #4a90e2);
}

/* Mobile Search di dalam mobile menu */
.mobile-search {
  padding: 0 20px 20px;
}

.mobile-search-form {
  position: relative;
}

.mobile-search-input {
  width: 100%;
  padding: 12px 15px;
  padding-right: 45px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.mobile-search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 15px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
}

.mobile-dropdown {
  margin: 10px 0;
}

.mobile-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.05));
  color: var(--text, #111111);
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown-content {
  padding-left: 20px;
  display: none;
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: block;
}

.mobile-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted, #6b7280);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.03));
}

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

.mobile-dropdown-link i {
  width: 16px;
  font-size: 0.9rem;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
  
  .mobile-overlay {
    display: none;
  }
}

/* DARK MODE */
[data-theme="dark"] .main-nav {
  background: var(--card, #1e293b);
  border-bottom-color: var(--border, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .dropdown-content {
  background: var(--card, #1e293b);
  border-color: var(--border, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .mobile-menu {
  background: var(--card, #1e293b);
  border-left-color: var(--border, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .header-search-input {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

/* Adjust header untuk navbar baru */
body > header {
  margin-top: 0;
  padding-top: 30px;
}

/* Breadcrumbs margin */
nav.breadcrumbs {
  margin-top: 20px;
}
/* Modern Professional Styles */
.site-footer.modern-pro {
    background: var(--bg) !important;
    border-top: 1px solid var(--border);
    padding: 40px 0 30px !important;
    margin-top: 60px !important;
}

.site-footer.modern-pro .footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.site-footer.modern-pro a {
    transition: color 0.2s ease;
}

.site-footer.modern-pro a:hover {
    color: var(--blue) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer.modern-pro .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: var(--blue-dark);
}

/* RELATED TOOLS SECTION */
.related-tools-section {
    margin: 60px 0 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.related-tools-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--blue);
}

.related-tools-title i {
    font-size: 20px;
    color: var(--blue);
}

.related-tools-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.related-tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--blue);
    background: var(--category-bg);
}

.related-tool-content {
    flex: 1;
}

.related-tool-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.related-tool-category {
    font-size: 13px;
    color: var(--blue);
    background: var(--category-count-bg);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.related-tool-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.related-tool-card:hover .related-tool-arrow {
    transform: translateX(4px);
    background: var(--blue-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .related-tools-section {
        padding: 20px;
        margin: 40px 0 30px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .related-tools-title {
        font-size: 20px;
    }
}
