/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--avanzia-primary-hover) 0%, var(--bs-primary) 100%);
    color: white;
    padding: 4rem 0 6rem 0;
    margin-bottom: -3rem;
    /* Overlap effect */
    position: relative;
    z-index: 1;
}

.search-container {
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-input {
    border: none;
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
    outline: none;
    background: transparent;
}

.search-btn {
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: var(--bs-primary);
    transform: translateY(-1px);
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    padding-left: 0.5rem;
}

/* Category Pills */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.filter-pill {
    background: white;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-pill:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.filter-pill.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Resource Cards */
.resource-card {
    background: white;
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-blue {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.icon-green {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.icon-purple {
    background-color: rgba(102, 16, 242, 0.1);
    color: #6610f2;
}

.icon-orange {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--avanzia-primary-hover);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-visit {
    width: 100%;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-item h3 {
    font-weight: 800;
    color: var(--bs-primary);
    margin-bottom: 0;
}

/* Loading State */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}