/* Style for content */
.content {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Title */
.content h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

/* Search box */
.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 10px 40px 10px 30px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    font-size: 1.1rem;
    color: #6c757d;
}

.clear-btn {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #009879;
    cursor: pointer;
}

.clear-btn:hover {
    color: #dc3545;
}

/* View toggle */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-toggle {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 16px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-toggle.active {
    background-color: #009879;
    color: #fff;
}

/* Card container */
#vaccine-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card style */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f2f2f2;
}

/* Card Body */
.card-body {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination button,
.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 6px;
    background-color: #009879;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination button:hover,
.pagination a:hover {
    background-color: #007f6b;
}

.pagination .active {
    background-color: #006f5f;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #searchInput {
        width: 100%;
    }

    .card-img-top {
        height: 150px;
    }

    .view-toggle {
        justify-content: center;
    }
}
