/* =========================================================
   RD3 SEARCH PAGE
   ========================================================= */


.rd3-search-form {
    border: 0.5px solid #ffffff;
    border-radius: 6px;
}


/* =========================================================
   RD3 NAVIGATION — SEARCH
   ========================================================= */

.main-nav .main-menu li.rd3-nav-search {
    width: fit-content;
    flex: 0 0 auto;
}

.main-nav .main-menu li.rd3-nav-search .rd3-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    width: auto;
}

.main-nav .main-menu li.rd3-nav-search .form-control {
    width: 220px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #000000;
    border-radius: 6px 0 0 6px;
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;

}

.main-nav .main-menu li.rd3-nav-search .form-control::placeholder {
    color: #000000;
    opacity: 1;
}



/* =========================================================
   RD3 IMG — SEARCH (404)
   ========================================================= */

.img-404-search {
    max-width: 300px;
    width: 100%;
    height: auto;
    padding: 10px;
}

@media (max-width: 600px) {
    .img-404-search {
        max-width: 250px;
        padding: 5px;
    }
}


/* =========================================================
   SEARCH LAYOUT
   ========================================================= */

.rd3-search-layout {
    min-height: 70vh;
}


/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.rd3-search-results {
    margin: 0 auto;
}

.rd3-search-results-inner {
    width: 100%;
}


/* =========================================================
   RESULTS HEADING
   ========================================================= */
.rd3-search-results-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 35px;
    margin: 0 0 20px;
    padding: 8px 3%;
    background: #f8fafc;
    border-bottom: 2px solid #993333;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
}

.rd3-search-results-heading p {
    margin: 0;
    padding: 0;
}

.rd3-search-query {
    color: #64748b;
}



.rd3-search-query strong {
    color: #334155;
    font-weight: 900;
}

.rd3-search-query strong::before {
content: "🔎";

}





.rd3-search-count {
    color: #64748b;
}
.rd3-search-count::before {
    content: "🗂️";
}


/* =========================================================
   RESULT LIST
   ========================================================= */

.rd3-search-results-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rd3-search-results-list .breadcrumbs-logo {
    display: none;
}

.search .breadcrumbs p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #000000;
    border-radius: 7px;
    box-sizing: border-box;
}


/* =========================================================
   RESULT CARD
   ========================================================= */

.rd3-search-result {
    margin: 0;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}



/* =========================================================
   RESULT TYPE
   ========================================================= */

.rd3-search-result-type {
    margin: 0 0 0.5rem;
    color: #993333;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   RESULT TITLE
   ========================================================= */

.rd3-search-result-title {
    margin: 0 2%;
    font-size: 1.35rem;
    line-height: 1.4;
}

.rd3-search-result-title a {
    color: #1e293b;
    text-decoration: none;
}

.rd3-search-result-title a:hover {
    color: #993333;
}


/* =========================================================
   RESULT EXCERPT
   ========================================================= */

.rd3-search-result-excerpt {
    margin: 0.65rem 2% 0;
    color: #475569;
    line-height: 1.6;
}

.rd3-search-result-excerpt p {
    margin: 0;
}


/* =========================================================
   RESULT LINK
   ========================================================= */

.rd3-search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 2% 0;
    color: #993333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.rd3-search-result-link:hover {
    text-decoration: underline;
}

.rd3-search-result-link span {
    transition: transform 0.2s ease;
}

.rd3-search-result-link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   PAGINATION
   ========================================================= */


.rd3-search-results-inner .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.rd3-search-results-inner .page-numbers:hover {
    border-color: #993333;
    color: #993333;
}

.rd3-search-results-inner .page-numbers.current {
    background-color: #993333;
    border-color: #993333;
    color: #ffffff;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.rd3-search-no-results {
    max-width: 650px;
    margin: 2rem auto;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.rd3-search-no-results-code {
    margin-bottom: 1rem;
    color: #993333;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.2;
}

.rd3-search-no-results h2 {
    margin: 0;
    font-size: 2rem;
}

.rd3-search-no-results p {
    max-width: 500px;
    margin: 0.75rem auto 0;
    color: #475569;
    line-height: 1.6;
}

.rd3-search-no-results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}


/* =========================================================
   MOBILE
   ========================================================= */



@media (max-width: 750px) {
    .rd3-search-results {
        padding:1%;
      
    }

    .rd3-nav-search{
        padding:15px 0;
        border-top: 2px solid #000000;
 
    }
    .rd3-search-results-list{
        margin: 0;
         
    }

    .rd3-search-results-inner .nav-links{
        margin: 0;
         gap: 3%;
    }





    .rd3-search-result {
        padding: 1.25rem;
    }

    .rd3-search-no-results {
        padding: 3rem 1.25rem;
    }

    .rd3-search-no-results-actions {
        flex-direction: column;
        align-items: center;
    }

    .rd3-search-no-results-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}



/* ===== Search page pagination – mobile limit ===== */



/* =========================================================
   EASTER EGG
   ========================================================= */
.rd3-search-easter-egg .rd3-search-results-list {
    text-align: center;
}




.easter-egg {
    max-width: fit-content;
    margin: 0 auto;
}

.rd3-search-easter-egg .breadcrumbs, 
.rd3-search-easter-egg  nav.breadcrumbs,
.rd3-search-easter-egg .rd3-search-result-type {
display: none;
}
.rd3-search-easter-egg  .rd3-search-result-title{
    text-align: center;
}
img.easter-egg-img {
    height: auto;
    width: 65%;
    display: block;
    margin: 0 auto;
}


@media (max-width: 600px) {

    img.easter-egg-img {
    width: 95%;
    } 

}

@media (max-width: 900px) {
        img.easter-egg-img {
    width: 85%;
    } 

    
}