/* --------------------------------------------------
   ESNAFBUL - MODERN DESIGN SYSTEM & GLOBAL STYLES
-------------------------------------------------- */

:root {
    /* Color Palette (HSL & Hex) */
    --primary: hsl(243, 75%, 59%);
    --primary-hover: hsl(243, 75%, 50%);
    --primary-light: hsl(243, 75%, 96%);

    --emerald: hsl(160, 84%, 39%);
    --emerald-hover: hsl(160, 84%, 32%);
    --emerald-light: hsl(160, 84%, 96%);

    --amber: hsl(35, 92%, 50%);
    --amber-light: hsl(35, 92%, 96%);

    --danger: hsl(0, 84%, 60%);
    --danger-light: hsl(0, 84%, 96%);

    --dark: hsl(222, 47%, 11%);
    --dark-light: hsl(222, 47%, 18%);
    --bg-gray: hsl(210, 40%, 98%);
    --border: hsl(214, 32%, 91%);
    --text: hsl(215, 25%, 27%);
    --text-muted: hsl(215, 16%, 47%);

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Outfit', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-gray);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--dark);
    font-weight: 700;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper spacing */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.flex-grow {
    flex-grow: 1;
}

/* 2. Global Layout (Header, Footer) */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.main-navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--dark);
}

.nav-logo i {
    color: var(--primary);
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--dark);
}

.main-layout {
    min-height: calc(100vh - 75px - 300px);
    padding-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-indigo {
    background-color: var(--primary);
    color: white;
}

.btn-indigo:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-emerald {
    background-color: var(--emerald);
    color: white;
}

.btn-emerald:hover {
    background-color: var(--emerald-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background-color: var(--border);
    color: var(--dark);
}

.btn-outline-danger {
    background-color: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

.btn-outline-success {
    background-color: transparent;
    border-color: var(--emerald);
    color: var(--emerald);
}

.btn-outline-success:hover {
    background-color: var(--emerald);
    color: white;
}

.btn-outline-warning {
    background-color: transparent;
    border-color: var(--amber);
    color: var(--amber);
}

.btn-outline-warning:hover {
    background-color: var(--amber);
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Alerts */
.notifications-container {
    max-width: 1200px;
    margin: 0 auto 0;
    padding: 0 1.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    position: relative;
}

.alert-success {
    background-color: var(--emerald-light);
    color: var(--emerald-hover);
    border-left: 4px solid var(--emerald);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-content {
    flex-grow: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    line-height: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 3. Hero Section */
.hero-section {
    background: linear-gradient(135deg, hsl(222, 47%, 15%) 0%, hsl(243, 75%, 25%) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 80%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* Hero Search Box */
.hero-search-form {
    display: flex;
    background-color: white;
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    gap: 0.5rem;
}

.search-input-group i {
    color: var(--text-muted);
}

.search-input-group input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--dark);
}

.divider-left {
    border-left: 1px solid var(--border);
}

/* 4. Section & Cards Grid */
.section-container {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.section-gray {
    background-color: white;
    max-width: 100%;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-gray .esnaf-grid {
    max-width: 1200px;
    margin: 2rem auto 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card-link:hover .category-card {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.category-card-link:hover .category-icon-wrapper {
    background-color: var(--primary);
    color: white;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-card .view-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.category-card-link:hover .view-btn {
    color: var(--primary);
}

/* Esnaf Cards */
.esnaf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.esnaf-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.esnaf-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.esnaf-card-cover {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.esnaf-card-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.esnaf-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin: -55px auto 0.75rem;
    box-shadow: var(--shadow-sm);
}

.esnaf-card-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    align-self: center;
}

.esnaf-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.esnaf-card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.esnaf-card-desc {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.esnaf-card-footer {
    margin-top: auto;
}

/* 5. Dual Grid Home List */
.dual-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.dual-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.col-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}

.col-header-row h2 {
    font-size: 1.4rem;
}

.home-request-list,
.home-job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-request-card,
.home-job-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: var(--transition);
}

.home-request-card:hover,
.home-job-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border);
}

.h-req-header,
.h-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.h-req-header h3,
.h-job-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.h-job-business {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.h-req-desc,
.h-job-desc {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.h-req-footer,
.h-job-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.h-req-footer span i,
.h-job-footer span i {
    margin-right: 0.2rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}

.badge-indigo {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-emerald {
    background-color: var(--emerald-light);
    color: var(--emerald);
}

.badge-secondary {
    background-color: var(--border);
    color: var(--text-muted);
}

.badge-success {
    background-color: var(--emerald-light);
    color: var(--emerald-hover);
}

.empty-state-card {
    background-color: white;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 4.5rem 0;
    text-align: center;
    margin-top: 5rem;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-container h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-light-large {
    background-color: white;
    color: var(--primary);
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-light-large:hover {
    background-color: var(--bg-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-emerald-large {
    background-color: var(--emerald);
    color: white;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-emerald-large:hover {
    background-color: var(--emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Footer layout */
.main-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--dark-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: white;
    margin-bottom: 1.25rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--dark-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
}

.footer-col h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* 6. Authentication Pages styling */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem;
    min-height: calc(100vh - 75px - 300px);
}

.auth-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow);
}

.max-w-600 {
    max-width: 650px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-light);
}

.form-group label i {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-half {
    width: 50%;
}

.col-third {
    width: 33.333%;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.form-section-title {
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.form-section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Radio Account Type Selector */
.role-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    align-items: center;
    height: 100%;
}

.role-card i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.role-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.role-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.role-option input[type="radio"]:checked+.role-card {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.role-option input[type="radio"]:checked+.role-card i {
    color: var(--primary);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 7. Search Results view styling */
.search-page-header {
    text-align: left;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.search-page-header h1 {
    font-size: 2rem;
}

.search-page-header p {
    color: var(--text-muted);
}

.search-results-info {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Esnaf Cards in Search Results */
.esnaf-grid-search {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.esnaf-search-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.esnaf-search-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.search-card-img {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.search-card-body {
    padding: 1.25rem;
    position: relative;
    flex-grow: 1;
}

.search-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-top: -45px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.search-card-info h3 {
    font-size: 1.15rem;
    margin: 0.25rem 0;
}

.search-card-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.search-card-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.search-card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.service-tag {
    font-size: 0.75rem;
    background-color: var(--bg-gray);
    color: var(--text);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.service-tag-more {
    font-size: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.search-card-footer {
    padding: 0 1.25rem 1.25rem;
}

/* Horizontal Filters */
.horizontal-filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 8. Dashboard Layout */
.dashboard-body {
    background-color: var(--bg-gray);
    margin: 0;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    background-color: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-light);
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: white;
}

.sidebar-user {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--dark-light);
}

.sidebar-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.sidebar-user-info h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.badge-role {
    font-size: 0.7rem;
    background-color: var(--primary);
    color: white;
    padding: 0.1rem 0.5rem;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    flex-grow: 1;
}

.sidebar-nav ul li {
    margin-bottom: 0.35rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.925rem;
    border-radius: var(--radius-sm);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: white;
    background-color: var(--dark-light);
}

.sidebar-nav a.active {
    background-color: var(--primary);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--dark-light);
    margin: 1rem 0;
}

.nav-website-btn {
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.nav-website-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary) !important;
}

.logout-link:hover {
    background-color: var(--danger) !important;
}

/* Dashboard main column */
.dashboard-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevents overflow */
}

.dashboard-top-navbar {
    height: 65px;
    background-color: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--dark);
    display: none;
}

.top-nav-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dashboard-inner-container {
    padding: 2rem;
    flex-grow: 1;
    max-width: 1400px;
    width: 100%;
}

.dashboard-header-block {
    margin-bottom: 2rem;
}

.dashboard-header-block h1 {
    font-size: 1.85rem;
}

.dashboard-header-block p {
    color: var(--text-muted);
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.card-indigo .stat-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.card-emerald .stat-icon {
    background-color: var(--emerald-light);
    color: var(--emerald);
}

.card-amber .stat-icon {
    background-color: var(--amber-light);
    color: var(--amber);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-secondary);
    line-height: 1.2;
}

/* Panel Card */
.panel-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.15rem;
}

.panel-body {
    padding: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Matching Requests compact list */
.request-list-compact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.request-item-compact {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.request-item-compact:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.req-details {
    flex-grow: 1;
}

.req-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.req-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.785rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.req-meta span i {
    margin-right: 0.2rem;
}

.req-desc {
    font-size: 0.85rem;
    color: var(--text);
}

.req-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border);
}

.personal-web-card {
    background: linear-gradient(135deg, hsl(243, 75%, 20%) 0%, var(--primary-hover) 100%);
    color: white;
    text-align: center;
}

.personal-web-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.personal-web-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.web-card-icon {
    font-size: 2.5rem;
    color: var(--emerald);
    margin-bottom: 1rem;
}

.url-badge {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.flex-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Image Upload Previews in Edit Profile */
.media-upload-row {
    margin-bottom: 1.5rem;
}

.image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.image-upload-preview {
    border: 1px solid var(--border);
    background-color: var(--bg-gray);
    object-fit: cover;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.banner-preview {
    width: 180px;
    height: 90px;
    border-radius: var(--radius-sm);
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* Portfolio View Panel Layout */
.portfolio-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.portfolio-item-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-gray);
}

.portfolio-card-img-wrapper {
    height: 130px;
    overflow: hidden;
}

.portfolio-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item-card:hover .portfolio-card-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-card-details {
    padding: 0.75rem;
    flex-grow: 1;
}

.portfolio-card-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.portfolio-card-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.portfolio-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.portfolio-card-actions {
    padding: 0 0.75rem 0.75rem;
}

/* Tables in Dashboard */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table th {
    font-weight: 700;
    color: var(--dark-light);
    background-color: var(--bg-gray);
    font-family: var(--font-secondary);
}

.data-table tbody tr:hover {
    background-color: var(--bg-gray);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Dynamic Requests Board Layout */
.requests-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.request-panel-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    background-color: var(--bg-gray);
}

.req-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.req-header-row h3 {
    font-size: 1.2rem;
}

.req-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.req-meta-row span i {
    margin-right: 0.2rem;
}

.req-description-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.req-image-showcase {
    margin-top: 1rem;
    display: inline-block;
}

.req-preview-img {
    height: 120px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.req-preview-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.req-contact-action-box {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.req-contact-action-box h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.action-buttons-row {
    display: flex;
    gap: 1rem;
}

/* 9. Standalone Tradesperson Landing Page View Styling */
.esnaf-site-body {
    background-color: white;
    scroll-behavior: smooth;
    font-family: var(--font-primary);
}

.esnaf-site-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.esnaf-nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.esnaf-site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.esnaf-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
}

.esnaf-site-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.esnaf-site-menu ul {
    display: flex;
    gap: 1.5rem;
}

.esnaf-site-menu a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.925rem;
}

.esnaf-site-menu a:hover {
    color: var(--primary);
}

.esnaf-hero-banner {
    background-size: cover;
    background-position: center;
    padding: 6rem 1.5rem;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esnaf-hero-container {
    width: 100%;
    max-width: 650px;
    text-align: center;
}

.esnaf-profile-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.esnaf-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.esnaf-cat-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.esnaf-profile-card h1 {
    font-size: 2.15rem;
    margin-bottom: 0.25rem;
}

.esnaf-location-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.esnaf-quick-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn-emerald-large,
.btn-whatsapp-large {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.btn-whatsapp-large {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp-large:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.esnaf-section {
    padding: 5rem 1.5rem;
}

.esnaf-section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-bg-gray {
    background-color: var(--bg-gray);
}

.section-title-left {
    font-size: 1.85rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--primary);
}

.section-title-center {
    font-size: 1.85rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle-center {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}

.details-panel {
    background-color: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.details-panel h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.details-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1rem;
}

.details-list li:last-child {
    margin-bottom: 0;
}

.d-label {
    font-size: 0.785rem;
    font-weight: 700;
    color: var(--text-muted);
}

.d-label i {
    margin-right: 0.25rem;
}

.d-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* Services section tags bubbles */
.services-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-bubble {
    background-color: white;
    border: 1px solid var(--border);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.925rem;
    box-shadow: var(--shadow-sm);
}

/* Portfolio Masonry Grid on public detail page */
.esnaf-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.esnaf-portfolio-item {
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.esnaf-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 70%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
    color: white;
}

.portfolio-item-overlay h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.portfolio-item-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
}

.esnaf-portfolio-item:hover img {
    transform: scale(1.06);
}

.esnaf-portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

/* Job cards list */
.jobs-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.job-list-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.job-card-header h3 {
    font-size: 1.25rem;
}

.job-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.job-card-meta span i {
    margin-right: 0.2rem;
}

.job-card-desc {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.job-card-reqs {
    background-color: var(--bg-gray);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.job-card-reqs strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

/* Contact grid and footer site */
.contact-footer-section {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid var(--dark-light);
}

.contact-footer-section h2,
.contact-footer-section h3 {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.contact-links-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-links-list li {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-links-list li i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-links-list h4 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-links-list a {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.social-box h4 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--dark-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
}

.contact-map-panel h3 {
    margin-bottom: 1rem;
}

.address-paragraph {
    font-size: 1.05rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.esnaf-site-footer-bottom {
    border-top: 1px solid var(--dark-light);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 10. Lightbox Modal styling */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: zoom 0.3s ease;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: white;
    text-align: center;
    max-width: 600px;
    padding: 0 1rem;
}

.lightbox-caption h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--danger);
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 11. Jobs board & Requests board elements styling */
.jobs-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.job-board-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.job-board-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.j-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.j-title-block h2 {
    font-size: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.j-business-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.j-business-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.j-card-body {
    flex-grow: 1;
}

.j-description {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.j-requirements-box {
    background-color: var(--bg-gray);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.j-requirements-box strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.j-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.j-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.j-meta-info span i {
    margin-right: 0.25rem;
}

.j-contact-actions {
    display: flex;
    gap: 0.5rem;
}

.j-contact-actions a {
    flex: 1;
}

/* Public requests card styling */
.requests-board-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.request-board-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 2rem;
    transition: var(--transition);
}

.request-board-card:hover {
    box-shadow: var(--shadow);
}

.req-board-left {
    flex-grow: 1;
}

.req-board-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.req-board-header h2 {
    font-size: 1.35rem;
}

.req-board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.req-board-meta span i {
    margin-right: 0.25rem;
}

.req-board-desc {
    font-size: 0.925rem;
    color: var(--text);
}

.req-board-right {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.req-board-photo {
    height: 120px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.req-board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.req-board-contact-actions {
    margin-top: auto;
}

/* 12. Responsive Design Styles */
@media (max-width: 992px) {
    .dual-sections-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Responsive navbar */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background-color: white;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        gap: 1.5rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-actions a {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.15rem;
    }

    .hero-search-form {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: var(--radius-sm);
    }

    .search-input-group {
        width: 100%;
    }

    .divider-left {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .hero-search-form button {
        width: 100%;
        padding: 0.75rem;
    }

    /* Dashboard responsive sidebar */
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-toggle {
        display: block;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-sidebar.active {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .col-half,
    .col-third {
        width: 100%;
    }

    .request-board-card {
        flex-direction: column;
        gap: 1rem;
    }

    .req-board-right {
        width: 100%;
    }

    /* Esnaf Custom Site Nav */
    .esnaf-menu-toggle {
        display: block;
    }

    .esnaf-site-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .esnaf-site-menu.active {
        display: flex;
    }

    .esnaf-site-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .esnaf-nav-cta {
        width: 100%;
        margin-top: 1rem;
    }

    .esnaf-nav-cta a {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .esnaf-quick-actions {
        flex-direction: column;
    }
}

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