.main-content {
    max-width: 1400px;
    padding-top: 5rem;
    /* Added to prevent content from hiding behind the fixed header */
}

.page-title {
    text-align: center;
    color: #081F5C;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(8, 31, 92, 0.1);
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #BAD6EB;
    border-radius: 10px;
    font-size: 1rem;
    font-family: Georgia, serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #7096D1;
    box-shadow: 0 0 0 3px rgba(112, 150, 209, 0.2);
}

.search-button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #334EAC, #7096D1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 78, 172, 0.3);
}

.clear-search {
    padding: 0.875rem 1.25rem;
    background: #EDF1F6;
    color: #334EAC;
    border: 2px solid #BAD6EB;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #D0E3FF;
    border-color: #7096D1;
}

/* Table Section */
.table-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(8, 31, 92, 0.1);
    overflow: hidden;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.category-header {
    background: linear-gradient(135deg, #334EAC, #7096D1);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 1.5rem;
    border: none;
}

.table-header {
    background: #EDF1F6;
    color: #081F5C;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #BAD6EB;
}

.contact-row {
    border-bottom: 1px solid #EDF1F6;
    transition: all 0.3s ease;
}

.contact-row:hover {
    background-color: #F7F2EB;
    transform: translateX(5px);
}

.contact-row.hidden {
    display: none;
}

.contact-cell {
    padding: 1rem;
    color: #334EAC;
    vertical-align: top;
}

.contact-name {
    font-weight: 600;
    color: #081F5C;
}

.contact-profession {
    color: #7096D1;
    font-style: italic;
}

.contact-number {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #334EAC;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #7096D1;
    font-size: 1.1rem;
    display: none;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #BAD6EB;
}

.no-results-subtext {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #BAD6EB;
}

/* Results Counter */
.results-counter {
    text-align: center;
    padding: 1rem;
    color: #334EAC;
    font-weight: 500;
    background: #F7F2EB;
    border-bottom: 2px solid #EDF1F6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input,
    .search-button,
    .clear-search {
        width: 100%;
    }

    .contact-table {
        font-size: 0.85rem;
    }

    .contact-cell {
        padding: 0.75rem;
    }

    .category-header {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-table {
        font-size: 0.8rem;
    }

    .contact-cell {
        padding: 0.5rem;
    }
}