/* Custom Modern CSS for Business Directory */

:root {
    --primary-color: #0061f2;
    --primary-hover: #004bb5;
    --secondary-color: #6c757d;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #f4f6f9;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-radius: 0.5rem;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header and Nav */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Business Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Business Card */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: #555;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
select {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 97, 242, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Utilities */
.text-center {
    text-align: center;
}
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }


.hero-section {
    /*background: url('businessdir/assets/images/hero-bg.jpg') no-repeat center center / cover;*/
    background: url('https://helpaseller.com/assets/img/hero-bg12.jpg') no-repeat center / cover;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 300;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6); /* dark overlay */
    background: url('https://helpaseller.com/assets/img/hero-bg1.jpg') no-repeat center / cover;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .hero-section {
        display: none !important;
    }
}

/*.hero-text-bg {
    background-color: rgba(0, 0, 0, 0.3); /* semi-transparent black */
/*  display: inline-block;
    max-width: 1000px;
    margin: 0 auto;
}*/

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* darker overlay */
    z-index: 1;
}

.hero-overlay .container {
    position: relative;
    z-index: 2;
}
