/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f8fafc;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background: #f8fafc;
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   FORMS - GLOBAL IMPROVEMENTS
   ======================================== */

/* Form group container */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Inputs, selects, textareas - larger and consistent */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: white;
    transition: all 0.2s ease;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #0f172a;
}

.password-toggle i {
    width: 20px;
    height: 20px;
}

/* Wrap inputs that have a toggle */
.input-with-toggle {
    position: relative;
}

.input-with-toggle input {
    padding-right: 3rem;
}

/* Form card container (for login/register) */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    max-width: 560px;
    margin: 2rem auto;
    border: 1px solid #f1f5f9;
}

.form-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-display);
}

.form-card .subtitle {
    text-align: center;
    color: #64748b;
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
}

/* Alerts inside forms */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Submit button within form */
.btn-primary {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Role selector (register page) */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.role-option {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.role-option:hover {
    border-color: #94a3b8;
}

.role-option.active {
    border-color: var(--primary);
    background: #eff6ff;
}

.role-option input[type="radio"] {
    display: none;
}

.role-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.role-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.role-info {
    display: flex;
    flex-direction: column;
}

.role-info strong {
    font-size: 1rem;
    color: #0f172a;
}

.role-info small {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive forms */
@media (max-width: 640px) {
    .role-selector {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   HERO SECTION (Animated + Background Image)
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.90));
    color: white;
    padding: 5rem 2rem;
    margin: 0 0 3rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for faded effect */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(30, 41, 59, 0.75) 40%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
}

/* Animated background orbs */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #3b82f6;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.12;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(10px, -10px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-highlight {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Search */
/* Hero Search */
.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 4px; /* Reduced rounding */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-search .btn {
    padding: 0.7rem 2rem;
    border-radius: 6px; /* Reduced rounding */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-search .search-group {
    flex: 2;
    min-width: 200px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.hero-search .search-group input {
    flex: 1;
    padding: 0.7rem 0.5rem 0.7rem 2.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text);
}

.hero-search .search-icon {
    position: absolute;
    left: 0.5rem;
    color: var(--text-light);
    width: 20px;
    height: 20px;
}

.hero-search select {
    flex: 1;
    min-width: 140px;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    border-left: 1px solid var(--border);
    outline: none;
    color: var(--text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
/*
.hero-search .btn {
    padding: 0.7rem 2rem;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
*/
/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ========================================
   LARGE CATEGORY CARDS (10 icons)
   ======================================== */
.category-grid-large {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.category-card-large {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.category-card-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cat-color, #2563eb);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 20px;
}

.category-card-large:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--cat-color, #2563eb);
}

.category-card-large:hover::before {
    opacity: 0.05;
}

.category-icon-large {
    font-size: 3rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: transform var(--transition);
}

.category-card-large:hover .category-icon-large {
    transform: scale(1.1);
}

.category-name-large {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    position: relative;
    z-index: 1;
}

.category-count-large {
    font-size: 0.75rem;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}

.category-count-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   CONFERENCE CARDS
   ======================================== */
.conference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.conference-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.conference-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #fef08a;
    color: #854d0e;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.25rem;
}

.category-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.1rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-content h3, .card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-location, .card-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.card-location i, .card-date i {
    width: 16px;
    height: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.card-price {
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background: white;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
}

.nav-logo a i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a i {
    width: 18px;
    height: 18px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 210px;
    padding: 0.5rem 0;
    z-index: 10;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
    background: var(--accent);
    color: var(--primary);
}

.nav-dropdown-menu a i {
    width: 16px;
    height: 16px;
}

.nav-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.3rem 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--secondary);
    margin: 3px 0;
    border-radius: 4px;
    transition: 0.2s;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), #1e293b);
    color: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin: 3rem 0;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--secondary);
    color: #e2e8f0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column h3 i {
    color: var(--primary);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-column h4 i {
    width: 18px;
    height: 18px;
}

.footer-column p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-column a i {
    width: 16px;
    height: 16px;
}

.footer-column .social-links {
    display: flex;
    gap: 0.8rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.footer-column .social-links a {
    display: inline-flex;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}

.footer-column .social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-column .social-links a i {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom i {
    display: inline-block;
}

/* ========================================
   BROWSE PAGE - SEARCH FILTERS
   ======================================== */
.browse-header {
    margin: 2rem 0 1.5rem;
}

.browse-header .page-title {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.browse-header .page-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.search-filters-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-form .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem 1.5rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.filter-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.filter-item label i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border var(--transition);
    background: white;
    color: var(--text);
}

.filter-item input:focus,
.filter-item select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.8rem;
}

/* Results meta */
.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1.5rem 0;
    padding: 0 0.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-count {
    font-size: 1rem;
    color: var(--text-light);
}

.results-count strong {
    color: var(--text);
    font-weight: 600;
}

.results-sort {
    font-size: 0.9rem;
    color: var(--text-light);
}

.results-sort strong {
    color: var(--text);
    font-weight: 500;
}

/* Pagination with icons */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-current {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .category-grid-large {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0.8rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .hero-search .search-group {
        padding: 0;
        background: white;
        border-radius: 40px;
        margin-bottom: 0.5rem;
        padding-left: 1rem;
    }

    .hero-search select {
        border-left: none;
        background: white;
        border-radius: 40px;
        padding: 0.7rem 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-search .btn {
        width: 100%;
        justify-content: center;
    }

    .category-grid-large {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .category-icon-large {
        font-size: 2rem;
    }

    .category-name-large {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Form responsiveness */
    .search-filters-card {
        padding: 1.25rem;
    }
    .filter-form .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .filter-actions {
        flex-direction: column;
    }
    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .results-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .browse-header .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .category-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column .social-links {
        justify-content: center;
    }

    .footer-column h3, .footer-column h4 {
        justify-content: center;
    }

    .footer-column a {
        justify-content: center;
    }

    /* Form responsiveness */
    .role-selector {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }
}