
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Header Styles - White Navbar with Logo */
        header {
            background: white;
            color: #333;
            padding: 10px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
            animation: slideDown 0.8s ease;
        }
        
        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            z-index: 1001;
        }
        
        /* Navbar Logo Image - 200x50px */
        .logo-img {
            width: 200px;
            height: 50px;
            background: linear-gradient(135deg, #ffffffff, #ffffffff);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }
        
        .logo-img span {
            color: #f39c12;
        }
        
        /* Desktop Navigation */
        .desktop-nav {
            display: flex;
        }
        
        .desktop-nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }
        
        .desktop-nav a {
            color: #2c3e50;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s;
            position: relative;
            padding: 8px 0;
        }
        
        /* Red bottom line effect */
        .desktop-nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            background: #e74c3c;
            bottom: 0;
            left: 0;
            transition: width 0.3s;
        }
        
        .desktop-nav a:hover::after {
            width: 100%;
        }
        
        .desktop-nav a:hover {
            color: #2c3e50;
        }
        
        .desktop-nav a.active {
            color: #2c3e50;
        }
        
        .desktop-nav a.active::after {
            width: 100%;
            background: #e74c3c;
        }
        
        /* Mobile Navigation Toggle - ALWAYS VISIBLE ON MOBILE */
        .mobile-toggle {
            display: none; /* Hidden by default on desktop */
            background: none;
            border: none;
            font-size: 28px;
            color: #2c3e50;
            cursor: pointer;
            padding: 5px 10px;
            z-index: 1001;
            width: 40px;
            height: 40px;
            border-radius: 5px;
            transition: all 0.3s;
        }
        
        .mobile-toggle:hover {
            background: rgba(231, 76, 60, 0.1);
        }
        
        /* Mobile Navigation */
        .mobile-nav {
            position: fixed;
            top: 0;
            right: -300px; /* Hidden off-screen */
            width: 280px;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
            transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 999;
            padding-top: 80px;
            overflow-y: auto;
        }
        
        .mobile-nav.active {
            right: 0; /* Slides in from right */
        }
        
        .mobile-nav ul {
            list-style: none;
            padding: 0;
        }
        
        .mobile-nav li {
            border-bottom: 1px solid #eee;
        }
        
        .mobile-nav li:last-child {
            border-bottom: none;
        }
        
        .mobile-nav a {
            color: #2c3e50;
            text-decoration: none;
            font-weight: 600;
            font-size: 18px;
            padding: 18px 25px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s;
        }
        
        .mobile-nav a:hover,
        .mobile-nav a.active {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
            padding-left: 30px;
        }
        
        .mobile-nav a i {
            width: 25px;
            text-align: center;
            font-size: 20px;
        }
        
        /* Mobile Navigation Overlay */
        .mobile-nav-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .mobile-nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* Search Bar Styles */
        .search-section {
            padding: 60px 0 40px;
            text-align: center;
            background-color: white;
            margin-bottom: 40px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            animation: fadeIn 1s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .search-section h2 {
            margin-bottom: 20px;
            color: #2c3e50;
            font-size: 32px;
            animation: fadeInUp 1s ease 0.2s both;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .search-box {
            max-width: 700px;
            margin: 0 auto;
            display: flex;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 50px;
            overflow: hidden;
            animation: fadeInUp 1s ease 0.4s both;
            transition: all 0.3s;
            border: 2px solid #e74c3c;
        }
        
        .search-box:focus-within {
            transform: scale(1.02);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
        }
        
        .search-box input {
            flex-grow: 1;
            padding: 15px 25px;
            border: none;
            font-size: 16px;
            outline: none;
        }
        
        .search-box button {
            background-color: #e74c3c;
            color: white;
            border: none;
            padding: 0 30px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .search-box button:hover {
            background-color: #c0392b;
        }
        
        .search-results {
            max-width: 700px;
            margin: 15px auto 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 15px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            text-align: left;
            animation: fadeIn 0.3s ease;
            border-top: 3px solid #e74c3c;
        }
        
        .search-result-item {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 15px;
            border-left: 3px solid transparent;
        }
        
        .search-result-item:hover {
            background: rgba(231, 76, 60, 0.1);
            border-left-color: #e74c3c;
            transform: translateX(5px);
        }
        
        .result-icon {
            width: 40px;
            height: 40px;
            background: rgba(231, 76, 60, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #e74c3c;
            font-size: 18px;
        }
        
        .result-content h4 {
            font-weight: 600;
            margin-bottom: 4px;
            color: #2c3e50;
        }
        
        .result-content p {
            font-size: 14px;
            color: #7f8c8d;
        }
        
        /* Tools Grid Styles */
        .tools-section {
            padding: 0 0 80px 0;
            animation: fadeIn 1s ease 0.6s both;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
            color: #2c3e50;
            font-size: 32px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            width: 100px;
            height: 4px;
            background: #e74c3c;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            animation: widthGrow 1s ease 0.8s both;
        }
        
        @keyframes widthGrow {
            from { width: 0; }
            to { width: 100px; }
        }
        
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 25px;
        }
        
        /* Tool Box */
        .tool-box {
            background: white;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            height: 80px;
            display: flex;
            align-items: center;
            cursor: pointer;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(20px);
            animation: toolBoxAppear 0.6s ease forwards;
        }
        
        @keyframes toolBoxAppear {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* HOVER EFFECT: Only border color changes */
        .tool-box:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            border-color: #e74c3c;
        }
        
        /* Tool Image - Left Side */
        .tool-image {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(231, 76, 60, 0.1);
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .tool-image img {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }
        
        /* Tool Name */
        .tool-name {
            flex-grow: 1;
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            transition: all 0.3s;
        }
        
        .tool-box:hover .tool-name {
            color: #e74c3c;
        }
        
        /* Tool box animation delays */
        .tool-box:nth-child(1) { animation-delay: 0.1s; }
        .tool-box:nth-child(2) { animation-delay: 0.15s; }
        .tool-box:nth-child(3) { animation-delay: 0.2s; }
        .tool-box:nth-child(4) { animation-delay: 0.25s; }
        .tool-box:nth-child(5) { animation-delay: 0.3s; }
        .tool-box:nth-child(6) { animation-delay: 0.35s; }
        .tool-box:nth-child(7) { animation-delay: 0.4s; }
        .tool-box:nth-child(8) { animation-delay: 0.45s; }
        .tool-box:nth-child(9) { animation-delay: 0.5s; }
        .tool-box:nth-child(10) { animation-delay: 0.55s; }
        .tool-box:nth-child(11) { animation-delay: 0.6s; }
        .tool-box:nth-child(12) { animation-delay: 0.65s; }
        
        /* Footer Styles */
        footer {
            background-color: #000000;
            color: #ecf0f1;
            padding: 50px 0 20px;
            margin-top: 60px;
            animation: fadeIn 1s ease 1s both;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-section {
            padding: 0 15px;
        }
        
        .footer-section h3 {
            font-size: 20px;
            margin-bottom: 25px;
            color: #e74c3c;
            position: relative;
            padding-bottom: 12px;
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            width: 50px;
            height: 3px;
            background: #e74c3c;
            bottom: 0;
            left: 0;
        }
        
        /* Footer Logo */
        .footer-logo {
            margin-bottom: 20px;
        }
        
        .footer-logo-img {
            width: 180px;
            height: 45px;
            background: #2c3e50;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2c3e50;
            font-weight: bold;
            font-size: 18px;
            box-shadow: #2c3e50;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .footer-logo-img span {
            color: #f1c40f;
        }
        
        .footer-description {
            color: #bdc3c7;
            line-height: 1.8;
            margin-bottom: 25px;
            font-size: 14px;
        }
        
        .footer-social {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 18px;
        }
        
        .social-link:hover {
            background: #e74c3c;
            transform: translateY(-3px);
        }
        
        .footer-section ul {
            list-style: none;
        }
        
        .footer-section ul li {
            margin-bottom: 12px;
            transition: transform 0.3s;
        }
        
        .footer-section ul li:hover {
            transform: translateX(5px);
        }
        
        .footer-section ul li a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
        }
        
        .footer-section ul li a:hover {
            color: #e74c3c;
        }
        
        .contact-info li a i {
            width: 20px;
            text-align: center;
        }
        
        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid #34495e;
            color: #95a5a6;
            font-size: 14px;
        }
        
        .copyright a {
            color: #95a5a6;
            text-decoration: none;
            margin: 0 10px;
            transition: color 0.3s;
        }
        
        .copyright a:hover {
            color: #e74c3c;
        }
        
        /* Loading animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .logo-img {
                width: 180px;
                height: 45px;
                font-size: 18px;
            }
            
            .desktop-nav ul {
                gap: 20px;
            }
            
            .footer-logo-img {
                width: 160px;
                height: 40px;
                font-size: 16px;
            }
        }
        
        @media (max-width: 768px) {
            /* HIDE DESKTOP NAV ON MOBILE */
            .desktop-nav {
                display: none !important;
            }
            
            /* SHOW MOBILE TOGGLE ON MOBILE */
            .mobile-toggle {
                display: block !important;
            }
            
            .logo-img {
                width: 160px;
                height: 40px;
                font-size: 16px;
            }
            
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 20px;
            }
            
            .tool-box {
                padding: 12px;
                height: 75px;
            }
            
            .tool-name {
                font-size: 14px;
            }
            
            .tool-image {
                width: 40px;
                height: 40px;
                margin-right: 12px;
            }
            
            .tool-image img {
                width: 24px;
                height: 24px;
            }
            
            .search-section h2 {
                font-size: 28px;
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }
            
            .footer-logo-img {
                width: 140px;
                height: 35px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 576px) {
            .logo-img {
                width: 140px;
                height: 35px;
                font-size: 14px;
            }
            
            .search-box {
                flex-direction: column;
                border-radius: 10px;
            }
            
            .search-box input {
                padding: 12px 20px;
            }
            
            .search-box button {
                padding: 12px;
                justify-content: center;
            }
            
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .section-title {
                font-size: 26px;
                margin-bottom: 30px;
            }
            
            .tool-box {
                height: 70px;
                padding: 10px;
            }
            
            .tool-name {
                font-size: 13px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .footer-logo-img {
                width: 150px;
                height: 40px;
                font-size: 16px;
            }
        }
        
        @media (max-width: 400px) {
            .logo-img {
                width: 200px;
                height: 50px;
                font-size: 12px;
            }
            
            .mobile-nav {
                width: 250px;
            }
            
            .tools-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
        }
    

        /* Back to Top Button Styles - اسے footer section کے بعد شامل کریں */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.back-to-top:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Tool Description Styles */
.tool-description {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tool Badge Styles */
.tool-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: flex-end;
}

.featured-badge {
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-badge {
    background-color: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-badge i {
    font-size: 9px;
}

/* Search Highlight Style */
.highlight {
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 700;
}

/* Tool Link Styles */
.tool-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments for badges */
@media (max-width: 768px) {
    .tool-badge {
        top: 8px;
        right: 8px;
    }
    
    .featured-badge,
    .link-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .tool-description {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .tool-description {
        display: none; /* Hide description on very small screens */
    }
    
    .tool-badge {
        position: static;
        margin-top: 5px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 5px;
    }
}

/* موجودہ .tool-box میں یہ تبدیلی کریں */
.tool-box {
    height: auto; /* یا 100px */
    min-height: 80px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
}

.tool-link {
    flex-direction: column;
    align-items: flex-start;
}

.tool-image {
    margin-right: 0;
    margin-bottom: 10px;
}









/* Tool Box */
.tool-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: auto;
    min-height: 150px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: toolBoxAppear 0.6s ease forwards;
}

/* Tool Link - اب column layout ہوگا */
.tool-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

/* Tool Image - اب center میں ہوگا */
.tool-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.tool-image i {
    font-size: 28px;
    color: #e74c3c;
}

.tool-image img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Tool Name */
.tool-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: all 0.3s;
    width: 100%;
}

/* Tool Description */
.tool-description {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
    width: 100%;
}

/* Tool Badge - اب bottom میں ہوں گے */
.tool-badge {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.featured-badge {
    background-color: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-badge {
    background-color: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-badge i {
    font-size: 10px;
}

/* Hover Effect */
.tool-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e74c3c;
}

.tool-box:hover .tool-name {
    color: #e74c3c;
}

.tool-box:hover .tool-image {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-box {
        padding: 15px;
        min-height: 140px;
    }
    
    .tool-image {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .tool-image i {
        font-size: 24px;
    }
    
    .tool-name {
        font-size: 15px;
    }
    
    .tool-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .tool-box {
        min-height: 130px;
        padding: 12px;
    }
    
    .tool-image {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .tool-name {
        font-size: 14px;
    }
    
    .tool-description {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .tool-badge {
        bottom: 8px;
    }
    
    .featured-badge,
    .link-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}





/* Search Results Styling - NEW - index.php se copy karein */
.search-results {
    display: none;
    position: absolute;
    top: 35%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item .result-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-item .result-icon i {
    font-size: 20px;
    color: #e74c3c;
}

.search-result-item .result-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.search-result-item .result-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.search-result-item .result-content p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

.highlight {
    background-color: #ffeaa7;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

/* Responsive for search results */
@media (max-width: 768px) {
    .search-results {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-item .result-icon {
        width: 35px;
        height: 35px;
    }
    
    .search-result-item .result-content h4 {
        font-size: 14px;
    }
    
    .search-result-item .result-content p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .search-results {
        max-height: 250px;
    }
}

/* Search Results Styling - UPDATED HEIGHTS */
.search-section .search-results {
    max-width: 700px;
    margin: 15px auto 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    text-align: left;
    animation: fadeIn 0.3s ease;
    border-top: 3px solid #e74c3c;
    
    /* Desktop: 35% height */
    max-height: 35vh;
    overflow-y: auto;
}

/* Desktop specific */
@media (min-width: 769px) {
    .search-section .search-results {
        max-height: 35vh; /* Desktop: 35% of viewport height */
    }
}

/* Mobile specific */
@media (max-width: 768px) {
    .search-section .search-results {
        max-height: 30vh; /* Mobile: 30% of viewport height */
        position: fixed;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        z-index: 1000;
    }
    
    /* Adjust for mobile keyboard */
    .search-box input:focus + .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        transform: none;
        width: 100%;
        max-height: calc(30vh - 50px);
    }
}

/* Fix for smaller screens */
@media (max-width: 576px) {
    .search-section .search-results {
        max-height: 30vh;
        width: 95%;
        padding: 10px;
    }
}