/**
 * Rumah Jurnal Nagari Sastra – Main Stylesheet
 *
 * Copyright (c) 2026 Fajri Rinaldi Chan - PT NAGARI SASTRA GROUP
 * All rights reserved.
 *
 * Extracted from temp/indexSite.tpl inline styles
 */

/* ================================================================
   Enhanced Journal Cards
   ================================================================ */
.journal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 74, 162, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 74, 162, 0.1);
    display: flex;
    flex-direction: column;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 74, 162, 0.15);
}

.journal-image-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.journal-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.journal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.journal-image-link:hover .journal-image {
    transform: scale(1.05);
}

.journal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 74, 162, 0.6) 0%, rgba(42, 76, 93, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.journal-image-link:hover .journal-overlay {
    opacity: 1;
}

.journal-overlay i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.journal-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journal-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.journal-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    flex-grow: 1;
    min-height: 2.8em;
}

.journal-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-title a:hover {
    color: #0f4aa2;
    text-decoration: none;
}

.journal-badges {
    margin-bottom: 15px;
    min-height: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.journal-badges .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    background: linear-gradient(90deg, #F38120, #0394D7);
    color: white;
    border: none;
}

.journal-badges .badge.scopus {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.journal-badges .badge.sinta {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.journal-badges .badge.doaj {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.journal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.btn-journal-visit,
.btn-journal-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 38px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-journal-visit {
    background: linear-gradient(90deg, #B8860B, #FFD700);
    color: white;
    box-shadow: 0 2px 8px rgba(15, 74, 162, 0.2);
}

.btn-journal-visit:hover {
    background: linear-gradient(90deg, #A67C00, #FFD700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 74, 162, 0.3);
    text-decoration: none;
}

.btn-journal-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #0f4aa2;
    border: 1px solid rgba(15, 74, 162, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-journal-info:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #0f4aa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-journal-visit i,
.btn-journal-info i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.btn-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Button ripple effect */
.btn-journal-visit::before,
.btn-journal-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-journal-visit:active::before {
    width: 100%;
    height: 100%;
}

.btn-journal-info::before {
    background: rgba(15, 74, 162, 0.1);
}

.btn-journal-info:active::before {
    width: 100%;
    height: 100%;
}


/* ================================================================
   Gallery Grid & Section Titles
   ================================================================ */
.ltn__gallery-active.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.section-title-area .section-subtitle {
    color: #0f4aa2 !important;
}

.section-title-area .section-title {
    color: #2c3e50;
}


/* ================================================================
   Filter Buttons
   ================================================================ */
.ltn__gallery-filter-menu button {
    background: rgba(15, 74, 162, 0.1);
    color: #0f4aa2;
    border: 1px solid rgba(15, 74, 162, 0.2);
    padding: 8px 16px;
    margin: 0 5px 10px 0;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.ltn__gallery-filter-menu button:hover,
.ltn__gallery-filter-menu button.active {
    background: linear-gradient(90deg, #F38120, #0394D7);
    color: white;
    border-color: #0f4aa2;
    transform: translateY(-2px);
}


/* ================================================================
   Enhanced Footer
   ================================================================ */
.enhanced-footer {
    background: linear-gradient(90deg, #F38120, #0394D7);
    color: #ffffff;
    margin-top: 60px;
}

.footer-main {
    padding: 60px 0 40px;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
}

.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.3));
    border-radius: 2px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
}

.footer-menu li a:hover {
    color: #ffffff;
    text-decoration: none;
    padding-left: 5px;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-icon i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-text {
    flex: 1;
}

.contact-text p,
.contact-text a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-text a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
    text-decoration: none;
}


/* ================================================================
   Enhanced Search Area
   ================================================================ */
.enhanced-search-area {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(90deg, #F38120, #0394D7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.enhanced-search-area.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 2;
}

.search-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 30px 20px;
}

.search-content {
    animation: slideUp 0.5s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-header {
    margin-bottom: 30px;
}

.search-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.search-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.2;
}

.search-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-weight: 400;
}

.search-form-wrapper {
    margin-bottom: 30px;
}

.enhanced-search-form {
    max-width: 100%;
}

.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 74, 162, 0.6);
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    height: 60px;
    padding: 0 60px 0 55px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    color: #2c3e50;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: rgba(15, 74, 162, 0.6);
    font-weight: 400;
}

.search-btn {
    height: 60px;
    padding: 0 30px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #F38120, #0394D7);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(90deg, #0e4291, #0e925a);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 74, 162, 0.3);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.search-stats .stat-item {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.search-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.search-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}


/* ================================================================
   Enhanced Tab System
   ================================================================ */
.journal-tabs-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.main-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.main-tab {
    padding: 15px 30px;
    border: 2px solid rgba(15, 74, 162, 0.1);
    background: rgba(15, 74, 162, 0.1);
    color: #0f4aa2;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.main-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.main-tab:hover::before {
    left: 100%;
}

.main-tab:hover {
    background: linear-gradient(135deg, rgba(15, 74, 162, 0.15) 0%, rgba(15, 163, 107, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 74, 162, 0.2);
}

.main-tab.active {
    background: linear-gradient(90deg, #F38120, #0394D7);
    color: white;
    box-shadow: 0 8px 25px rgba(15, 74, 162, 0.3);
    transform: translateY(-3px);
}

.main-tab.active::before {
    display: none;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.sub-filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-filter-btn {
    padding: 10px 20px;
    border: 1px solid rgba(15, 74, 162, 0.2);
    background: rgba(15, 74, 162, 0.05);
    color: #0f4aa2;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.sub-filter-btn:hover {
    background: rgba(15, 74, 162, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 74, 162, 0.15);
}

.sub-filter-btn.active {
    background: linear-gradient(90deg, #F38120, #0394D7);
    color: white;
    border-color: #0f4aa2;
    box-shadow: 0 4px 15px rgba(15, 74, 162, 0.25);
}


/* ================================================================
   Filter Select (Subject & Faculty)
   ================================================================ */
.filter-select-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-select-label {
    font-weight: 600;
    color: #0f4aa2;
    font-size: 1rem;
    margin-bottom: 0;
}

.filter-select {
    min-width: 300px;
    height: 50px;
    padding: 0 20px;
    border: 2px solid rgba(15, 74, 162, 0.2);
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(15, 74, 162, 0.1);
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%230f4aa2" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
}

.filter-select:focus {
    outline: none;
    border-color: #0f4aa2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    box-shadow: 0 6px 20px rgba(15, 74, 162, 0.2);
    transform: translateY(-2px);
    z-index: 12;
}

.filter-select option {
    padding: 10px;
    background: white;
    color: #2c3e50;
    font-weight: 500;
}

.select-icon {
    font-size: 1.5rem;
    color: #0f4aa2;
    margin-right: 10px;
}


/* ================================================================
   Responsive Design
   ================================================================ */

/* Journal Cards */
@media (max-width: 1199px) {
    .journal-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 991px) {
    .journal-image-wrapper {
        height: 220px;
    }

    .journal-content {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .journal-image-wrapper {
        height: 280px;
    }

    .journal-title {
        font-size: 0.95rem;
    }

    .journal-actions {
        gap: 6px;
        flex-direction: column;
    }

    .btn-journal-visit,
    .btn-journal-info {
        width: 100%;
        height: 36px;
        font-size: 0.8rem;
    }

    .btn-journal-visit i,
    .btn-journal-info i {
        margin-right: 5px;
        font-size: 0.75rem;
    }

    .btn-text {
        font-size: 0.75rem;
    }
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 25px;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .footer-social {
        justify-content: flex-start;
        margin-bottom: 30px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .contact-item {
        margin-bottom: 15px;
    }
}

/* Search Responsive */
@media (max-width: 991px) {
    .enhanced-search-area {
        min-height: 50vh;
        padding: 40px 0;
    }

    .search-title {
        font-size: 1.8rem;
    }

    .search-icon {
        font-size: 2.5rem;
    }

    .search-input-group {
        flex-direction: column;
        gap: 15px;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .search-stats {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .enhanced-search-area {
        min-height: 45vh;
        padding: 30px 0;
    }

    .search-title {
        font-size: 1.6rem;
    }

    .search-subtitle {
        font-size: 0.95rem;
    }

    .search-input-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .search-input-wrapper {
        width: 100%;
        flex: none;
    }

    .search-input {
        width: 100%;
        height: 50px;
        font-size: 1rem;
        padding: 0 50px 0 50px;
        box-sizing: border-box;
    }

    .input-icon {
        left: 18px;
        font-size: 1rem;
    }

    .search-btn {
        height: 50px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .filter-group {
        gap: 15px;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    .search-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .search-header {
        margin-bottom: 20px;
    }

    .search-form-wrapper {
        margin-bottom: 20px;
    }
}

/* Tab Responsive */
@media (max-width: 991px) {
    .journal-tabs-container {
        padding: 20px;
        margin-bottom: 30px;
    }

    .main-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .journal-tabs-container {
        padding: 15px;
        margin-bottom: 25px;
    }

    .main-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .main-tab {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 250px;
    }

    .sub-filter-menu {
        gap: 8px;
    }

    .sub-filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .filter-select-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .filter-select {
        min-width: 100%;
        max-width: 100%;
    }

    .filter-select-label {
        text-align: center;
        margin-bottom: 8px;
    }
}

/* ================================================================
   Search Page Styles – scoped .rj-search-page
   Overrides style2.css (height:65px, margin-bottom:30px, border-radius:0)
   ================================================================ */

/* Page layout */
.rj-search-page {
    padding: 60px 0 80px;
    background: #f5f6fa;
    min-height: 60vh;
}
.rj-search-page .rj-search-header { text-align: center; margin-bottom: 35px; }
.rj-search-page .rj-search-title { font-size: 2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.3; }
.rj-search-page .rj-search-title i { margin-right: 10px; color: var(--rj-gradient-start, #F38120); }
.rj-search-page .rj-search-subtitle { color: #888; font-size: 14px; margin: 0; }

/* Form card */
.rj-search-page .rj-search-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid #eaeaea;
}

/* Search bar */
.rj-search-page .rj-search-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.rj-search-page .rj-search-input-wrap { flex: 1; position: relative; }
.rj-search-page .rj-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 14px; pointer-events: none; }

/* CRITICAL: override style2.css input[type=text] { height:65px; margin-bottom:30px; border-radius:0 } */
.rj-search-page .rj-search-input {
    width: 100% !important;
    height: auto !important;
    padding: 13px 18px 13px 42px !important;
    border-radius: 10px !important;
    border: 2px solid #e5e5e5 !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #333 !important;
    transition: border-color 0.25s !important;
    box-sizing: border-box !important;
}
.rj-search-page .rj-search-input:focus {
    border-color: var(--rj-gradient-start, #F38120) !important;
}

/* Submit button */
.rj-search-page .rj-search-submit {
    padding: 13px 26px !important;
    border-radius: 10px !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    background: var(--rj-gradient, linear-gradient(90deg, #F38120, #0394D7)) !important;
    transition: opacity 0.2s !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.rj-search-page .rj-search-submit:hover { opacity: 0.88; }
.rj-search-page .rj-search-submit i { margin-right: 5px; }
.rj-search-page .rj-search-submit-sm { padding: 10px 24px !important; font-size: 14px !important; }

/* Filter toggle */
.rj-search-page .rj-filter-toggle-wrap { text-align: center; margin-bottom: 5px; }
.rj-search-page #rjFilterToggle {
    background: none !important; border: 1px solid #ddd !important; border-radius: 8px !important;
    padding: 8px 20px !important; color: #777 !important; font-size: 13px !important;
    cursor: pointer !important; height: auto !important; margin: 0 !important; line-height: 1.5 !important;
    transition: all 0.2s;
}
.rj-search-page #rjFilterToggle i { font-size: 12px; }
.rj-search-page #rjFilterToggle i:first-child { margin-right: 6px; }
.rj-search-page .rj-filter-arrow { margin-left: 6px; font-size: 10px !important; transition: transform 0.3s; display: inline-block; }
.rj-search-page #rjFilterToggle:hover { border-color: var(--rj-gradient-start, #F38120) !important; color: var(--rj-gradient-start, #F38120) !important; }
.rj-search-page #rjFilterToggle.rj-active { border-color: var(--rj-gradient-start, #F38120) !important; color: var(--rj-gradient-start, #F38120) !important; background: rgba(243,129,32,0.06) !important; }
.rj-search-page #rjFilterToggle.rj-active .rj-filter-arrow { transform: rotate(180deg); }

/* Advanced filters panel */
.rj-search-page .rj-advanced-filters { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.rj-search-page .rj-advanced-filters.rj-open { max-height: 700px; }
.rj-search-page .rj-filters-inner { background: #f8f9fa; border-radius: 12px; padding: 25px; margin-top: 15px; border: 1px solid #eee; }

/* Filter fields */
.rj-search-page .rj-filter-group { margin-bottom: 16px; }
.rj-search-page .rj-filter-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #888; display: block; margin-bottom: 6px; }

/* Override style2.css for filter inputs */
.rj-search-page .rj-filter-input {
    width: 100% !important; height: auto !important; padding: 10px 14px !important;
    border-radius: 8px !important; border: 1px solid #ddd !important; font-size: 14px !important;
    outline: none !important; box-shadow: none !important; margin: 0 !important; margin-bottom: 0 !important;
    background: #fff !important; color: #333 !important; box-sizing: border-box !important;
}
.rj-search-page .rj-filter-input:focus { border-color: var(--rj-gradient-start, #F38120) !important; }

/* Override style2.css for select */
.rj-search-page .rj-filter-select {
    width: 100% !important; height: auto !important; padding: 10px 14px !important;
    border-radius: 8px !important; border: 1px solid #ddd !important; font-size: 14px !important;
    outline: none !important; box-shadow: none !important; margin: 0 !important;
    background: #fff !important; color: #333 !important; cursor: pointer !important;
    box-sizing: border-box !important;
}
.rj-search-page .rj-filter-select:focus { border-color: var(--rj-gradient-start, #F38120) !important; }

/* Kill Nice Select inside search page — show native selects */
.rj-search-page .nice-select { display: none !important; }
.rj-search-page select { display: inline-block !important; visibility: visible !important; opacity: 1 !important; position: static !important; }

/* Date selects */
.rj-search-page .rj-date-wrap { background: #fff; border-radius: 8px; padding: 8px 10px; border: 1px solid #ddd; }
.rj-search-page .rj-date-wrap fieldset { border: none !important; padding: 0 !important; margin: 0 !important; }
.rj-search-page .rj-date-wrap legend { display: none !important; }
.rj-search-page .rj-date-wrap select {
    background: #f8f9fa !important; color: #333 !important; border: 1px solid #ddd !important;
    border-radius: 6px !important; padding: 6px 8px !important; font-size: 13px !important;
    margin: 2px !important; outline: none !important; cursor: pointer !important;
    height: auto !important; width: auto !important; display: inline-block !important;
}
.rj-search-page .rj-date-wrap select:focus { border-color: var(--rj-gradient-start, #F38120) !important; }

/* Apply filters btn */
.rj-search-page .rj-filter-apply { text-align: center; margin-top: 15px; }

/* Result count */
.rj-search-page .rj-result-count {
    margin-bottom: 20px; padding: 14px 20px; background: #fff; border-radius: 10px;
    border-left: 4px solid var(--rj-gradient-start, #F38120); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; font-weight: 500;
}
.rj-search-page .rj-result-count i { color: var(--rj-gradient-start, #F38120); font-size: 18px; }

/* Result items */
.rj-search-page .rj-result-item {
    margin-bottom: 14px; padding: 20px 25px; background: #fff; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rj-search-page .rj-result-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: var(--rj-gradient-start, #F38120); }
.rj-search-page .rj-result-item h3 { margin-top: 0; margin-bottom: 8px; }
.rj-search-page .rj-result-item h3 a { color: #1a1a2e !important; text-decoration: none !important; font-weight: 600; font-size: 16px; transition: color 0.2s; }
.rj-search-page .rj-result-item h3 a:hover { color: var(--rj-gradient-start, #F38120) !important; }

/* No results */
.rj-search-page .rj-no-results { text-align: center; padding: 60px 30px; background: #fff; border-radius: 16px; border: 2px dashed #ddd; }
.rj-search-page .rj-no-results > i { font-size: 48px; color: #ddd; margin-bottom: 18px; display: block; }
.rj-search-page .rj-no-results h3 { color: #666; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.rj-search-page .rj-no-results p { color: #999; font-size: 14px; margin: 0; }
.rj-search-page .rj-no-results .rj-error-text { color: #dc3545; font-weight: 600; }

/* Pagination */
.rj-search-page .rj-search-pagination { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e8e8e8; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.rj-search-page .rj-page-info { font-size: 13px; color: #888; }
.rj-search-page .rj-pagination a,
.rj-search-page .rj-pagination span { display: inline-block; padding: 6px 14px; margin: 0 3px; border-radius: 8px; font-size: 13px; text-decoration: none; transition: all 0.2s; }
.rj-search-page .rj-pagination a { color: #555; background: #f5f5f5; border: 1px solid #e0e0e0; }
.rj-search-page .rj-pagination a:hover { background: var(--rj-gradient-start, #F38120); color: #fff; border-color: var(--rj-gradient-start, #F38120); }
.rj-search-page .rj-pagination .current { background: var(--rj-gradient-start, #F38120); color: #fff; border: 1px solid var(--rj-gradient-start, #F38120); font-weight: 600; }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 767px) {
    .rj-search-page { padding: 40px 0 60px; }
    .rj-search-page .rj-search-card { padding: 20px; }
    .rj-search-page .rj-search-bar { flex-direction: column; }
    .rj-search-page .rj-search-submit { width: 100% !important; }
    .rj-search-page .rj-result-item { padding: 16px 18px; }
    .rj-search-page .rj-search-pagination { flex-direction: column; align-items: flex-start; }
}
