/* Header */
.page-header {
    background: url('/Images/Products-header.webp') no-repeat center center/cover;
    text-align: center;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(100% 85% at center top);
    border-bottom: 10px solid #2b5b96;
    margin-top: 40px;
}

.page-header .overlay {
    width: 100%;
    height: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: rgba(43, 91, 150, 0.6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    line-height: 1.5;
}

/* Filter Section */
.filter-section {
    padding: 20px 0;
}

.filter-box {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.filter-box label {
    font-weight: 600;
    color: #2b5b96;
    margin-bottom: 5px;
    display: block;
}
.filter-box .form-select,
.filter-box input[type="text"] {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px;
    font-size: 1rem;
    color: #333;
    width: 100%;
}

.filter-box .form-select:focus,
.filter-box input[type="text"]:focus {
    border-color: #2b5b96;
    box-shadow: 0 0 5px rgba(43, 91, 150, 0.3);
}
.search-container {
    position: relative;
}

.search-container input[type="text"] {
    padding-right: 30px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2b5b96;
}

.search-icon i {
    font-size: 18px;
}
@media (max-width: 767px) {
    .filter-box {
        margin-bottom: 15px; 
    }

    .filter-box .form-select,
    .filter-box input[type="text"] {
        font-size: 0.9rem; 
    }

    .filter-section .container {
        padding: 0 10px;
    }

    .filter-section .row {
        display: block;
    }

    .filter-section .col-md-3 {
        width: 100%; 
        margin-bottom: 10px;
    }
}
.search-container {
    position: relative;
}

.search-container input[type="text"] {
    padding-right: 30px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2b5b96;
}

.search-icon i {
    font-size: 18px;
}

/* Product Card */
.Products-section {
    margin-top: 60px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #ffffff;
    max-height: 250px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: scale(1.05);
    
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 10px;
    text-align: center;
}

.product-card .card-body h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
    color: #2b5b96;
}

.product-card .card-body p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.product-card .btn {
    background-color: #2b5b96;
    font-size: 1rem;
    padding: 10px 20px;
    margin-top: auto; 
}
.product-card .btn:hover {
    background: #1e3c6d;
    color: white;
}

/* Pagination Container */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    opacity: 1; /* Always visible */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

/* Pagination Button Styles */
.pagination button {
    margin: 0 5px;
    padding: 8px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Active Button Style */
.pagination button.active {
    background-color: #2b5b96;
    color: white;
}

/* Disabled Button Style */
.pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Hover Effect */
.pagination button:hover:not(:disabled) {
    background-color: #2b5b96;
    color: white;
    transform: scale(1.1); /* Slightly scale up on hover */
}