.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumb styling */
.breadcrumb-nav {
    margin: 20px 0;
    font-size: 17px;
    color: #4a5568;
    font-family: "Samsung Sharp Sans Regular";
}

.breadcrumb-nav a {
    text-decoration: none;
    color: #3182ce;
}
.search-form {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

.search-box {
    text-align: left;
    margin-bottom: 30px;
}

.search-box input[type="text"] {
  width: 100%;
    padding: 9px 40px 9px 16px; /* padding-right for the icon */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.search-form .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.ui-autocomplete {
    z-index: 1051 !important;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
}

h1 {
    color: #2d3748;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.lab-tests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping on small screens */
    margin-bottom: 20px;
    gap: 8px;
}

.lab-tests-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
}

.results-count {
    font-size: 14px;
    color: #4a5568;
}

/* On smaller screens, align the results count to the right */
@media (max-width: 768px) {
    .lab-tests-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-count {
        align-self: flex-end;
        width: 100%;
        text-align: right;
    }
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.test-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    height: 60px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 40% 0, 35% 50%, 0 50%);
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
}

.card-body {
    padding: 20px;
}

.test-title {
    margin-top: -10px;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.test-code,
.test-duration {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.test-code-icon,
.duration-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 12px;
}

.test-code-icon {
    background: #edf2f7;
    color: #2d3748;
}

.duration-icon {
    background: #ebf8ff;
    color: #2b6cb0;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #2c5282;
    margin: 15px 0;
}

.book-button {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-button:hover {
    background: #f0f4f8;
    border-color: #3182ce;
    color: #3182ce;
}

.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin-top: 30px;
    gap: 6px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #2c5282;
    text-decoration: none;
}

.pagination li.active span {
    background-color: #2c5282;
    color: white;
    border-color: #2c5282;
}

.pagination li.disabled span {
    color: #a0aec0;
    background-color: #f7fafc;
    border-color: #e2e8f0;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: center;
    }
}
