/* Unified Design System for BusinessAds Platform */
/*:root {*/
/*    --primary-color: #c62828;*/
/*    --primary-hover: #b71c1c;*/
/*    --secondary-color: #ff1744;*/
/*    --accent-color: #d32f2f;*/
/*    --dark-bg: #000000;*/
/*    --dark-card: #121212;*/
/*    --dark-navbar: #0a0a0a;*/
/*    --text-primary: #ffffff;*/
/*    --text-secondary: #cccccc;*/
/*    --text-muted: #888888;*/
/*    --border-color: #333333;*/
/*    --shadow-color: rgba(198, 40, 40, 0.3);*/
/*    --gradient-primary: linear-gradient(135deg, #c62828 0%, #d32f2f 50%, #b71c1c 100%);*/
/*    --gradient-secondary: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);*/
/*    --success-color: #4caf50;*/
/*    --warning-color: #ff9800;*/
/*    --info-color: #2196f3;*/
/*}*/

:root {
    --primary-color: #C62626;
    --primary-hover: #a01f1f;
    --secondary-color: #000000;
    --accent-color: #C62626;
    --dark-bg: #f8f5f5;
    --dark-card: #6c757d3e;
    --dark-navbar: #ffffff;
    --text-primary: #000000;
    --text-secondary: #313131;
    --text-muted: #888888;
    --border-color: #333333;
    --shadow-color: rgba(198, 38, 38, 0.3);
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #E83535 38%, #C62626 68%, #8B1515 100%);
    --gradient-secondary: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Styles */
.navbar {
    background: var(--gradient-secondary) !important;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-brand span {
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.5);
}

.navbar-brand .bg-primary {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: var(--gradient-secondary);
    position: relative;
    z-index: -1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(198,40,40,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(198, 40, 40, 0.5);
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(198, 40, 40, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.hero-image img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(198, 40, 40, 0.2);
}

/* Features Section */
.bg-light {
    background: var(--gradient-secondary) !important;
}

.feature-card {
    background: var(--gradient-secondary) !important;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.15), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(198, 40, 40, 0.2);
    border-color: var(--primary-color);
}

.feature-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Business Ads Page Styles */
.business-ad-card {
    background: var(--gradient-secondary) !important;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.business-ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.15), transparent);
    transition: left 0.6s ease;
}

.business-ad-card:hover::before {
    left: 100%;
}

.business-ad-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(198, 40, 40, 0.2);
    border-color: var(--primary-color);
}

.business-ad-card .card-title {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.business-ad-card .card-text {
    color: var(--text-secondary) !important;
    line-height: 1.6;
}

.business-ad-card .badge {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    border-radius: 8px;
}

/* Form Controls */
.form-control,
.form-select {
    background: var(--gradient-secondary) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--gradient-secondary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2) !important;
    color: var(--text-primary) !important;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Statistics Cards */
.stat-card {
    background: var(--gradient-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.stat-card h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stat-card i {
    color: var(--primary-color) !important;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Icons Fix */
.feature-card i {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--gradient-secondary);
    border-top: 2px solid var(--primary-color);
    color: var(--text-secondary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 60px 0;
    }

    .navbar .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .business-ad-card {
        margin-bottom: 1rem;
    }

    /* Dashboard Mobile Styles */
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-content {
        padding: 20px 15px;
    }

    .sidebar-toggle {
        display: block;
    }

    .stats-card {
        margin-bottom: 20px;
    }

    .nav-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Enhanced Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow effect for interactive elements */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px var(--shadow-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

select#categoryFilter {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #222 !important;
    border-radius: 6px !important;
    padding: 10px 40px 10px 15px !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
   -webkit-appearance: none !important;
-moz-appearance: none !important;
position: relative !important;
background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
background-repeat: no-repeat !important;
background-position: right 8px center !important;
background-size: 16px 16px !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #b71c1c !important;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.navbar-brand {
    letter-spacing: 1px;
}

/* Custom dropdown for dark theme */
.dropdown-menu {
    background-color: #18191a !important;
    color: #fff;
    border: 1px solid #e53935;
    /* Red border */
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
}

.dropdown-menu .dropdown-item {
    color: #fff !important;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #e53935 !important;
    /* Red highlight */
    color: #fff !important;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--dark-bg);
}

.sidebar {
    width: 280px;
    background: var(--gradient-secondary);
    border-right: 2px solid var(--primary-color);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 15px 25px;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 5px 0;
    position: relative;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: translateX(10px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background-color: var(--dark-bg);
    transition: all 0.3s ease;
}

.dashboard-content {
    padding: 30px;
}

/* Ensure dashboard layout wins over any legacy sidebar rules */
.dashboard-container > .sidebar {
    width: 280px;
    background: var(--gradient-secondary);
    border-right: 2px solid var(--primary-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    padding-top: 0;
}

.dashboard-container > .main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    background-color: var(--dark-bg);
}

.dashboard-container .sidebar .sidebar-link {
    display: block;
    padding: 15px 25px;
    margin: 5px 0;
    border-radius: 0;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
}

.sidebar-toggle:hover {
    color: var(--primary-color);
}

.card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.card h5 {
    font-size: 16px;
    color: var(--text-secondary);
}

.card h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.card i {
    font-size: 24px;
}

.nav-top {
    background-color: var(--dark-navbar);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-top .user-info {
    color: var(--text-secondary);
}

.list-group-item {
    background-color: var(--dark-navbar) !important;
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--dark-card) !important;
    border-color: var(--primary-color);
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.1), transparent);
    transition: left 0.5s ease;
}

.stats-card:hover::before {
    left: 100%;
}

.table {
    color: var(--text-primary);
    background-color: var(--dark-card);
}

.table th {
    background-color: var(--dark-navbar);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    border-color: var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--dark-navbar);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.badge {
    background: var(--gradient-primary);
    font-weight: 500;
    padding: 0.5em 0.75em;
    font-size: 0.75rem;
}

.table {
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--dark-navbar);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.table tbody tr {
    border-color: var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--dark-navbar);
}

.badge {
    font-size: 0.75rem;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enhanced Business Ads Section Styles */
.business-ads-section {
    padding: 80px 0;
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

.business-ads-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(198, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(198, 40, 40, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Header Styles */
.section-header {
    position: relative;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    animation: pulse 2s infinite;
}

.header-badge i {
    font-size: 1rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title-line {
    color: var(--text-primary);
}

.title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(198, 40, 40, 0.5);
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(198, 40, 40, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(198, 40, 40, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(198, 40, 40, 0.15);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhanced Search and Filter Styles */
.search-filter-container {
    position: relative;
    z-index: 2;
}

.search-box {
    position: relative;
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 50px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.filter-box {
    position: relative;
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.filter-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.3);
    transform: translateY(-2px);
}

.filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.filter-select {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    appearance: none;
    cursor: pointer;
}

/* Enhanced Business Grid Styles */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.business-card-wrapper {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.business-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.business-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.business-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.business-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.business-card-wrapper:nth-child(5) { animation-delay: 0.5s; }
.business-card-wrapper:nth-child(6) { animation-delay: 0.6s; }

.business-card {
    
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    /* overflow: hidden; */
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.business-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.card-header {
    padding: 25px 25px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.business-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.business-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.business-details {
    flex: 1;
}

.business-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.business-category {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.posted-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-favorite,
.btn-share {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover,
.btn-share:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: scale(1.1);
}

.card-body {
    padding: 20px 25px;
}

.business-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.business-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.metric i {
    color: var(--primary-color);
    font-size: 1rem;
}

.card-footer {
    padding: 20px 25px 25px;
    border-top: 1px solid var(--border-color);
}

.visit-website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.visit-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
    color: var(--text-primary);
}

/* Hover Overlay Effects */
.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(198, 40, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.business-card:hover .card-hover-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--text-primary);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.business-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.overlay-content span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Enhanced No Results Styles */
.no-results-container {
    text-align: center;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.no-results-container h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-results-container p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.logo {
    width: 100px;   /* adjust size */
    height: auto;
}



/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design for Business Ads Section */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-card-wrapper {
        animation-delay: 0.1s !important;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .card-actions {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .business-metrics {
        flex-direction: column;
        gap: 10px;
    }
}


@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .search-box,
    .filter-box {
        border-radius: 12px;
    }
    
    .search-input,
    .filter-select {
        padding: 15px 50px 15px 45px;
    }
    
    .business-card {
        border-radius: 15px;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 20px;
    }
}

/* Site footer */
.site-footer {
    background: #fff;
    border-top: 2px solid rgba(198, 40, 40, 0.15);
    margin-top: 2rem;
}

.site-footer .footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer .footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-footer .footer-link:hover {
    text-decoration: underline;
}