<style>
/* Reset container layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header section */
.pheader {
    width: 100%;
    min-height: 45vh;
    background-image: url('https://msmavic.com/wp-content/uploads/2025/04/sss.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.pheader::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.pheader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.pheader h1 {
   
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow:
        0 0 4px rgba(0, 132, 255, 0.4),
        0 0 8px rgba(0, 132, 255, 0.3),
        0 0 12px rgba(0, 132, 255, 0.2);
}

.pheader p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Search form */
.pheader-content form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pheader-content select,
.pheader-content input[type="text"],
.pheader-content button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 200px;
    max-width: 100%;
}

.pheader-content button {
    background: #123456;
    color: white;
    font-weight: bold;
    border: 2px solid #123456;
    border-radius: 4px;
    cursor: pointer;
}

.pheader-content button:hover{
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
}


/* Search results container */
.presults {
    background-color: #f9f9f9;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
}

.presult-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.presults-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.presult-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.presult-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Keeps a consistent ratio, e.g. 4:3 */
    overflow: hidden;
    border-radius: 8px;
    background-color: #f2f2f2; /* fallback in case of no image */
}

.presult-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the space */
    display: block;
}


.presult-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.presult-meta {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.presult-btn {
    display: inline-block;
    background: #123456;
    color: white;
    padding: 8px 16px;
    border: 2px solid #123456;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.presult-btn:hover {
    
    background: transparent;
    color: #123456;
    text-decoration: none;
}

.presult-pagination {
    margin-top: 30px;
    text-align: center;
}


/* Responsive */
@media (max-width: 768px) {
    .pheader h1 {
        font-size: 24px;
    }

    .pheader-content form {
        flex-direction: column;
        align-items: center;
    }

    .pheader-content select,
    .pheader-content input[type="text"],
    .pheader-content button {
        width: 100%;
        max-width: 300px;
    }
}


@media (max-width: 1200px) {
    .presults-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .presults-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .presults-grid {
        grid-template-columns: 1fr;
    }
}

.presults-grid.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.presult-no-results {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.presult-no-results p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: blue;
}

</style>
