/* SEARCH BUTTON FIX */
.search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.search-btn:hover {
    color: var(--accent-blue);
}

.hero-search input {
    padding-right: 20px;
    padding-left: 50px;
    /* Space for the button on left */
    text-align: right;
}

/* SINGLE PAGE CONTAINER FIX */
.single-container {
    padding-top: 20px;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.single-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

/* RTL CHEVRON FIX */
.view-all i {
    transform: rotate(180deg);
    /* Flip chevron */
    display: inline-block;
    margin-right: 5px;
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    width: 100%;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.overlay-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-blue);
    font-size: 2rem;
    color: var(--text-primary);
    padding: 10px;
    text-align: center;
    font-family: inherit;
}

.overlay-input:focus {
    outline: none;
}

.close-overlay {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.result-prompt {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* GENERIC PAGE */
.generic-page {
    max-width: 800px;
    margin: 40px auto;
    padding: var(--space-lg);
}

.generic-page h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}