/* Herbal Random Showcase */

/* Wrapper */
.hrs-wrap{
    width:100%;
    margin:0 auto 20px;
}

/* Search bar full-width */
.hrs-search{
    width:100%;
    display:flex;
    gap:8px;
    margin:0 0 14px;
}
.hrs-search input{
    flex:1;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid #ddd;
    font-size:14px;
}
.hrs-search button{
    padding:8px 16px;
    border-radius:999px;
    border:none;
    background:#3c2b7a;
    color:#fff;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}
.hrs-search button:hover{
    opacity:.9;
}

/* Grid */
.hrs-row{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
@media (max-width:1024px){
    .hrs-row{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
    .hrs-row{grid-template-columns:repeat(1,minmax(0,1fr));}
}

/* Card: image left, info right; image ~ 50% width */
.hrs-card{
    background:#fff;
    border-radius:18px;
    border:1px solid #eee;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    overflow:hidden;
    display:flex;
}
.hrs-card-link{
    display:flex;
    flex:1;
    color:inherit;
    text-decoration:none;
}
.hrs-card-link:hover .hrs-name{
    text-decoration:underline;
}

.hrs-photo{
    flex:0 0 48%;
    max-width:48%;
    background:#f3f3f8;
}
.hrs-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hrs-body{
    flex:1;
    padding:10px 14px 10px;
    color:#2b1b55;
    display:flex;
    flex-direction:column;
}
.hrs-name{
    margin:0 0 4px;
    font-size:16px;
    font-weight:700;
    text-transform:uppercase;
    color:#2b1b55;
}
.hrs-line{
    margin:2px 0;
    font-size:13px;
    line-height:1.3;
}
.hrs-line strong{
    font-weight:700;
}

/* footer with button aligned right */
.hrs-footer{
    margin-top:8px;
    display:flex;
    align-items:center;
}
.hrs-footer-spacer{
    flex:1;
}
.hrs-btn{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:#3c2b7a;
    color:#fff;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.03em;
}

/* fade animation when rotating */
.hrs-row.is-fading{
    opacity:0;
    transition:opacity .35s ease;
}
.hrs-row.is-visible{
    opacity:1;
}
