.almas-search-page-wrapper .almas-section-view-more .cssbuttons-io-button {
    background: rgba(var(--almas-s-highlight-rgb), 0.08) !important;
    color: var(--almas-s-highlight) !important;
    padding: 0.55em 2.4em !important;
    border: 2px dashed var(--almas-s-highlight) !important;
    border-radius: 15px !important;
    letter-spacing: 0 !important;
    box-shadow: 0 0 0 4px rgba(var(--almas-s-highlight-rgb), 0.08), 2px 2px 4px 2px rgba(0, 0, 0, 0.3) !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    outline: none;
    transition: .1s ease-in-out, .4s color !important;
}
.almas-search-page-wrapper .almas-section-view-more .cssbuttons-io-button .icon { display: none !important; }
@media (hover: hover){
.almas-search-page-wrapper .almas-section-view-more .cssbuttons-io-button:hover {
    color: var(--almas-s-highlight) !important;
    filter: brightness(1.05);
}
}
.almas-search-page-wrapper .almas-section-view-more .cssbuttons-io-button:active {
    transform: translateX(0.1em) translateY(0.1em);
    box-shadow: 0 0 0 4px rgba(var(--almas-s-highlight-rgb), 0.08), 1.5px 1.5px 2.5px 1.5px rgba(0, 0, 0, 0.3) !important;
}
.almas-typed-load-more {
    background: rgba(var(--almas-s-highlight-rgb), 0.08) !important;
    color: var(--almas-s-highlight) !important;
    border: 2px dashed var(--almas-s-highlight) !important;
    border-radius: 15px !important;
    box-shadow: 0 0 0 4px rgba(var(--almas-s-highlight-rgb), 0.08), 2px 2px 4px 2px rgba(0, 0, 0, 0.3) !important;
    padding: 0.55em 2.4em !important;
    margin-top: 0 !important;
    min-width: 220px;
    font-size: 14px;
    transition: .1s ease-in-out, .4s color !important;
}
.almas-typed-load-more:active {
    transform: translateX(0.1em) translateY(0.1em);
    box-shadow: 0 0 0 4px rgba(var(--almas-s-highlight-rgb), 0.08), 1.5px 1.5px 2.5px 1.5px rgba(0, 0, 0, 0.3) !important;
}

.almas-search-page-wrapper { max-width: 1200px; margin: 40px auto 60px; padding: 0 20px 40px; direction: rtl; min-height: 50vh; display: flex; flex-direction: column; align-items: center; }
.almas-search-page-wrapper.almas-empty-state { min-height: 72vh; padding-bottom: 40px; }
#almas-page-results-container .almas-search-page-wrapper.almas-empty-state { min-height: auto; padding-bottom: 0; margin-bottom: 0; }
.almas-search-header { margin-bottom: 10px; text-align: center; animation: almasSlideUpFade 0.6s ease; position: relative; z-index: 900; width: 100%; max-width: 600px; }
.almas-search-page-title { 
    font-size: 28px; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 20px; 
    background: var(--almas-s-dark-overlay);
    backdrop-filter: blur(var(--almas-glass-blur));
    padding: 15px 30px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.almas-search-page-title .almas-highlight-text { color: var(--almas-s-highlight); text-shadow: 0 0 10px rgba(var(--almas-s-highlight-rgb), 0.5); }

.almas-search-page-wrapper .almas-search-container { width: 100% !important; }

#almas-page-results-container { width: 100%; }

.almas-page-section-title { 
    font-size: 20px; 
    font-weight: 800; 
    color: var(--almas-s-text-main); 
    margin: 15px 0 10px; 
    padding: 10px 20px; 
    border-right: 4px solid var(--almas-s-highlight); 
    display: inline-flex; 
    width: fit-content;
    align-items: center; 
    animation: almasSlideUpFade 0.6s ease 0.2s backwards; 
    background: var(--almas-s-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.almas-section-items-page { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }

.almas-terms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.almas-term-card { 
    background: var(--almas-s-card-bg); padding: 20px; border-radius: var(--almas-radius-element, 15px); text-align: center; text-decoration: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid var(--almas-s-card-border); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    animation: almasPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
@media (hover: hover){
.almas-term-card:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 35px rgba(var(--almas-s-highlight-rgb), 0.2); border-color: var(--almas-s-highlight); background: var(--almas-s-card-bg); }
}
.almas-term-icon-large { color: var(--almas-s-highlight); width: 40px; height: 40px; transition: transform 0.3s; display: flex; align-items: center; justify-content: center; }
@media (hover: hover){
.almas-term-card:hover .almas-term-icon-large { transform: scale(1.2) rotate(10deg); }
}
.almas-term-name { font-weight: 700; color: var(--almas-s-text-main); font-size: 15px; }

.almas-section-view-more { display: flex; justify-content: center; margin-top: 25px; animation: almasFadeIn 0.6s ease 0.4s backwards; }

.custom-button-wrapper {
    text-decoration: none;
    display: inline-flex;
}
.custom-button-wrapper .cssbuttons-io-button {
    background: #2948CC;
    color: white;
    font-family: inherit;
    padding: 0.3em 1.2em;
    font-size: 17px;
    font-weight: 500;
    border-radius: var(--almas-radius-button, 0.9em);
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #1E3ABF;
    overflow: hidden;
    position: relative;
    height: 2.6em;
    padding-right: 3.3em;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
}
.custom-button-wrapper .cssbuttons-io-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    right: 0.3em;
    transition: all 0.3s;
}
@media (hover: hover){
.custom-button-wrapper .cssbuttons-io-button:hover .icon { width: calc(100% - 0.6em); }
}
.custom-button-wrapper .cssbuttons-io-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s, color 0.3s;
    color: #3F54D9;
}
@media (hover: hover){
.custom-button-wrapper .cssbuttons-io-button:hover .icon svg { transform: translateX(0.1em); }
}
.custom-button-wrapper .cssbuttons-io-button:active .icon { transform: scale(0.95); }

@media (max-width: 768px) {
    .custom-button-wrapper .cssbuttons-io-button {
        font-size: 14px;
        height: 2.4em;
        padding-left: 1em;
        padding-right: 2.8em;
        padding-top: 0.25em;
        padding-bottom: 0.25em;
    }
    .custom-button-wrapper .cssbuttons-io-button .icon {
        height: 2.1em;
        width: 2.1em;
        right: 0.2em;
    }
    .custom-button-wrapper .cssbuttons-io-button .icon svg { width: 0.9em; }
}

.almas-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.almas-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: var(--almas-radius-button, 14px); background: #fff; color: #333; font-weight: 700; transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s; border: 1px solid rgba(0,0,0,0.05); text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.almas-pagination .page-numbers.current { background: var(--almas-s-highlight); color: #fff; border-color: var(--almas-s-highlight); box-shadow: 0 10px 20px rgba(var(--almas-s-highlight-rgb), 0.3); transform: scale(1.1); }
@media (hover: hover){
.almas-pagination .page-numbers:hover:not(.current) { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.05); color: var(--almas-s-highlight); }
}
.almas-pagination .next, .almas-pagination .prev { font-size: 18px; }

body.dark-mode .almas-pagination .page-numbers { background: #1e293b; color: #f3f4f6; border-color: rgba(255,255,255,0.05); }

.almas-search-loader-container { display: flex; align-items: center; justify-content: center; width: 100%; margin: 60px 0 100px; }
.almas-loader-mini-wrapper { display: flex; align-items: center; justify-content: center; position: relative; width: 130px; height: fit-content; }
.almas-loader-bar-container { width: 100%; height: fit-content; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.almas-loader-bar { width: 100%; height: 8px; background: linear-gradient(90deg, rgb(161, 94, 255), rgb(217, 190, 255), rgb(161, 94, 255)); background-size: 200% 100%; border-radius: 10px; animation: almasBar 1.5s ease-in-out infinite alternate; will-change: background-position; }
.almas-loader-bar-two { width: 50%; }
@keyframes almasBar { 0% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
.almas-loader-svg { position: absolute; left: -25px; margin-top: 18px; z-index: 2; width: 70%; animation: almasSearch 1.5s ease-in-out infinite alternate; will-change: transform; transform: translateZ(0); }
@keyframes almasSearch { 0% { transform: translate3d(0, 0, 0) rotate(70deg); } 100% { transform: translate3d(100px, 0, 0) rotate(10deg); } }
.almas-loader-svg circle, .almas-loader-svg line { stroke: rgb(162, 55, 255); }
.almas-loader-svg circle { fill: rgba(98, 65, 142, 0.238); }

.almas-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
.almas-empty-content {
    background: var(--almas-s-glass-bg);
    backdrop-filter: blur(var(--almas-glass-blur)) saturate(var(--almas-glass-saturate));
    -webkit-backdrop-filter: blur(var(--almas-glass-blur)) saturate(var(--almas-glass-saturate));
    position: relative;
    z-index: 899;
    padding: 40px;
    border-radius: var(--almas-radius-element, 20px);
    border: 1px solid var(--almas-s-glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 550px;
    width: 100%;
    animation: almasPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}
.almas-empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--almas-s-highlight-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--almas-s-highlight);
    animation: almasFloat 4s ease-in-out infinite;
}
.almas-no-result-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.almas-empty-icon svg { width: 40px; height: 40px; }
.almas-empty-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--almas-s-text-main);
    margin: 0 0 8px;
}
.almas-empty-content p {
    color: var(--almas-s-text-muted);
    font-size: 14px;
    margin: 0 0 25px;
    line-height: 1.6;
}
@keyframes almasFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.almas-special-item .almas-special-icon { color: var(--almas-s-highlight) !important; }
.almas-terms-grid.almas-special-grid { margin-top: 25px; margin-bottom: 30px; }
.almas-special-card .almas-term-icon-large svg { width: 40px; height: 40px; }
.almas-search-results .almas-term-icon svg { width: 20px; height: 20px; }
.almas-special-card .almas-term-icon-large { color: var(--almas-s-highlight); }
.almas-special-card .almas-term-name { font-weight: 800; }
.almas-typed-more-area { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 25px; width: 100%; }
.almas-typed-load-more { width: 220px; margin-top: 0; }
.almas-typed-sentinel { width: 100%; height: 1px; }
.almas-typed-loading { display: flex; align-items: center; justify-content: center; width: 100%; }
.almas-typed-loading .almas-skeleton-item { width: 100%; }
@media (max-width: 768px) {
    .almas-search-page-title { font-size: 20px; padding: 10px 15px; }
    .almas-page-section-title { font-size: 15px; padding: 8px 12px; margin: 10px 0 8px; }
    
    .almas-terms-grid { grid-template-columns: 1fr; gap: 8px; }
    .almas-term-card { flex-direction: row; align-items: center; justify-content: flex-start; text-align: right; padding: 12px 15px; height: auto; min-height: unset; gap: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
    .almas-term-icon-large { width: 24px; height: 24px; margin: 0; display: flex; align-items: center; justify-content: center; }
    .almas-term-name { font-size: 13px; margin: 0; }
    .almas-search-page-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0 20px 40px;
    }
    .almas-search-header {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 15px;
    }
    .almas-empty-state {
        width: 100%;
        min-height: auto;
        padding: 0 20px 40px;
        display: flex;
        justify-content: center;
    }
    .almas-empty-content {
        width: 100%;
        max-width: 100%;
        padding: 25px 15px;
        border-radius: var(--almas-radius-element, 16px);
        box-sizing: border-box;
        margin: 0 auto;
    }
    .almas-empty-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .almas-empty-icon svg {
        width: 35px;
        height: 35px;
    }
    .almas-empty-content h2 {
        font-size: 18px;
    }
    .almas-empty-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}
@media (max-width: 1024px) {
    .almas-search-page-title,
    .almas-empty-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .almas-empty-content {
        background: #ffffff !important;
    }
    body.dark-mode .almas-empty-content { background: #131c2e !important; color: #f3f4f6 !important; border-color: rgba(255,255,255,0.15) !important; }
    body.dark-mode .almas-empty-content h2 { color: #f3f4f6 !important; }
    body.dark-mode .almas-empty-content p { color: #9ca3af !important; }
    
    .almas-search-page-title { background: var(--almas-s-dark-overlay) !important; }
}
