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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #232944 0%, #248aec 100%);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Main Layout with Sidebar Space */
.main-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
}

.sidebar-left, .sidebar-right {
    width: 160px;
    flex-shrink: 0;
}

.ad-sidebar {
    background: #e2e8f0;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 80px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar p {
    color: #718096;
    font-size: 0.75rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.main-content {
    flex: 1;
}

/* Hero Section - Compact */
.hero {
    background: linear-gradient(135deg, #232944 0%, #248aec 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Mobile Hero Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem !important;
    }
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
    .hero p {
        font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Professional Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-wrapper {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #2d3748;
    background: transparent;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #232944 0%, #248aec 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    opacity: 0.9;
}

.search-icon {
    font-size: 1.2rem;
}

/* Popular Searches */
.popular-searches {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.popular-searches span {
    margin-right: 0.5rem;
}

.search-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    margin: 0.2rem;
    cursor: pointer;
    transition: background 0.3s;
    color: white;
}

.search-tag:hover {
    background: rgba(255,255,255,0.3);
}

/* Section Titles - Compact */
.section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #2d3748;
    padding-left: 0.5rem;
    border-left: 4px solid #232944;
}

/* Tools Grid - Compact */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-card {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height:  340px !important;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Remove underlines from tool card links */
.tool-card-link {
    text-decoration: none !important;
}

.tool-card-link:hover {
    text-decoration: none !important;
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #2d3748;
    text-decoration: none !important;
    border-bottom: none !important;
}

.tool-card-link:hover .tool-card h3 {
    text-decoration: none !important;
    border-bottom: none !important;
}

.tool-desc {
    color: #718096;
    margin-bottom: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-decoration: none !important;
    border-bottom: none !important;
}

.tool-card-link:hover .tool-desc {
    text-decoration: none !important;
    border-bottom: none !important;
}

.tool-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #232944 0%, #248aec 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.3s;
    margin-top: auto;
}

.tool-btn:hover {
    opacity: 0.9;
}

/* Blog Section - Compact */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #232944 0%, #248aec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    object-fit: cover;
}

.blog-content {
    padding: 1rem;
}

.blog-date {
    color: #a0aec0;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    display: block;
}
 
.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.blog-card p {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

/* Mobile Blog Cards Responsive */
@media (max-width: 768px) {
    .blog-grid {
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .blog-image {
        height: 140px !important;
        font-size: 2.5rem !important;
    }
    .blog-content {
        padding: 0.875rem !important;
    }
    .blog-card h3 {
        font-size: clamp(1rem, 3vw, 1.2rem) !important;
        margin-bottom: 0.5rem !important;
    }
    .blog-card p {
        font-size: clamp(0.8rem, 2.5vw, 0.85rem) !important;
        margin-bottom: 0.5rem !important;
    }
    .blog-date {
        font-size: clamp(0.7rem, 2vw, 0.75rem) !important;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: 0.75rem !important;
    }
    .blog-image {
        height: 120px !important;
        font-size: 2rem !important;
    }
    .blog-content {
        padding: 0.75rem !important;
    }
}

.read-more {
    color: #232944;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.read-more:hover {
    color: #248aec;
}

/* Horizontal Ad Space */
.ad-horizontal {
    background: #e2e8f0;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 2px dashed #cbd5e0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-horizontal p {
    color: #718096;
    font-size: 0.9rem;
}

/* Features - Compact */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    margin-bottom: 0.3rem;
    color: #2d3748;
    font-size: 1rem;
}

.feature-item p {
    color: #718096;
    font-size: 0.85rem;
}

/* Required Pages Section */
.required-pages {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.page-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-link {
    color: #232944;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #232944;
    border-radius: 8px;
    transition: all 0.3s;
}

.page-link:hover {
    background: #232944;
    color: white;
}

/* Footer - Enhanced for AdSense */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

footer p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Container */
.container {                                                
    margin: 0 auto;
    padding: 1rem;                
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar-left, .sidebar-right {
        display: none;
    }
    
    .main-wrapper {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .tools-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-button {
        border-radius: 0 0 50px 50px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* Tool Types Section Styles */
.tool-types-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.tool-types-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tool-types-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.tool-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Tool Type Card */
.tool-type-card {
    position: relative;
    display: block;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;

    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tool-type-card:hover .card-background {
    opacity: 1;
}

.card-content {
    position: relative;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Icon Styling */
.tool-type-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tool-type-card:hover .tool-type-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-type-icon svg {
    width: 32px;
    height: 32px;
    color: #667eea;
}

/* Card Info */
.card-info {
    flex: 1;
}

.tool-type-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tool-count {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Arrow Icon */
.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-type-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.card-arrow svg {
    width: 18px;
    height: 18px;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-types-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tool-types-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .tool-types-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .card-content {
        padding: 24px 20px 20px;
        min-height: 180px;
    }
    
    .tool-type-icon {
        width: 56px;
        height: 56px;
    }
    
    .tool-type-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .tool-type-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tool-types-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
}
.toc-list{
    align-items: flex-start !important;
    padding-left: 0px !important;
}
/* Alternative Color Schemes for Different Categories */
.tool-type-card:nth-child(6n+1) .card-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-type-card:nth-child(6n+2) .card-background {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tool-type-card:nth-child(6n+3) .card-background {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tool-type-card:nth-child(6n+4) .card-background {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tool-type-card:nth-child(6n+5) .card-background {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tool-type-card:nth-child(6n+6) .card-background {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-type-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.tool-type-card:nth-child(1) { animation-delay: 0.1s; }
.tool-type-card:nth-child(2) { animation-delay: 0.2s; }
.tool-type-card:nth-child(3) { animation-delay: 0.3s; }
.tool-type-card:nth-child(4) { animation-delay: 0.4s; }
.tool-type-card:nth-child(5) { animation-delay: 0.5s; }
.tool-type-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   TOOL TYPES FILTER - Base Styles (Fallback)
   ============================================ */
.tool-types-filter-wrapper {
  margin: 2rem 0;
  padding: 0;
}

.tool-types-filter {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-header {
  margin-bottom: 1.25rem;
}

.filter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  text-align: center;
}

.tool-types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.tool-type-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none !important;
  color: #2d3748 !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tool-type-filter:hover {
  transform: translateY(-2px);
  border-color: #232944;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
}

.tool-type-filter.active {
  background: linear-gradient(135deg, #232944 0%, #248aec 100%);
  color: white !important;
  border-color: #232944;
  box-shadow: 0 4px 12px rgba(35, 41, 68, 0.3);
}

.filter-text,
.filter-count {
  position: relative;
  z-index: 1;
}

.filter-count {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

.tool-type-filter.active .filter-count {
    opacity: 0.95;
}

/* ============================================
   PAGINATION - Professional Design
   ============================================ */
.pagination-container {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    list-style: none;
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    color: #2d3748 !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background: linear-gradient(135deg, #232944 0%, #248aec 100%);
    color: white !important;
    border-color: #232944;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 41, 68, 0.25);
    text-decoration: none !important;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #232944 0%, #248aec 100%) !important;
    color: white !important;
    border-color: #232944 !important;
    box-shadow: 0 4px 12px rgba(35, 41, 68, 0.3);
    text-decoration: none !important;
}

.page-item.disabled .page-link {
    background: #f7fafc;
    color: #cbd5e0 !important;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    background: #f7fafc;
    color: #cbd5e0 !important;
    border-color: #e2e8f0;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination {
        gap: 0.4rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.3rem;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-types-filter {
    padding: 1.25rem 1rem;
  }

  .filter-title {
    font-size: 1.1rem;
  }

  .tool-types-list {
    gap: 0.6rem;
  }

  .tool-type-filter {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .tool-types-filter {
    padding: 1rem 0.75rem;
  }

  .filter-title {
    font-size: 1rem;
  }

  .tool-types-list {
    gap: 0.5rem;
  }

  .tool-type-filter {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Search Results Dropdown - Improved Design */
#searchResults, #heroSearchResults {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    margin-top: 0.75rem !important;
    max-height: 450px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1000 !important;
    padding: 0.5rem 0 !important;
}

/* Search Result Items */
.search-result-item {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #232944 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-result-item:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #f0f4ff 100%);
    padding-left: 1.5rem;
    transform: translateX(2px);
}

.search-result-item:hover::before {
    opacity: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: #1a202c;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View All Results Button */
.view-all-results-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    color: #232944;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.view-all-results-btn:hover {
    background: linear-gradient(135deg, #232944 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 41, 68, 0.2);
}

/* No Results & Error States */
.search-no-results, .search-error {
    padding: 2.5rem 2rem;
    text-align: center;
    color: #718096;
}

.search-no-results-icon, .search-error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.search-error {
    color: #ef4444;
}

/* Scrollbar Styling for Search Results */
#searchResults::-webkit-scrollbar,
#heroSearchResults::-webkit-scrollbar {
    width: 6px;
}

#searchResults::-webkit-scrollbar-track,
#heroSearchResults::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb,
#heroSearchResults::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #232944 0%, #764ba2 100%);
    border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb:hover,
#heroSearchResults::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a1f2e 0%, #5a3d6b 100%);
}

/* Responsive padding for tool-ui on mobile */
@media (max-width: 768px) {
    .tool-ui {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .tool-ui {
        padding: 0.75rem !important;
    }
}