p.nrows-poweredby, p.nrows-poweredby a {
	text-align: right;
	font-size: 14px;
	color: lightgray;
	text-decoration: none;
}
.nrows-input-form {
    text-align: center;
    border-bottom: solid 1px #ddd;
    padding: 30px 15px;
    background: white;
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
}

.nrows-input-form > label {
    display: inline;
    font-weight: bold;
}

.nrows-input-form > .input {
    border: 0;
    border-bottom: solid 1px #ccc;
    padding: 8px;
    width: 128px;
	display:inline-block;
}

.nrows-input-form > .input:focus {
    border-bottom-color: #333;
}

.nrows-input-form > .submit {
    background: #17DA8E;
    color: #fff;
    border: none;
    padding: 0 10px;
    border-radius: 30px;
    margin-left: 16px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 5px 20px;
    font-weight: 600;
    font-family: 'Montserrat';
}

.nrows-results-list {
    max-width: 960px;
    padding: 16px;
    margin: 40px auto 150px auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.nrows-result-item {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    font-size: 18px;
    color: #0c293f;
    text-decoration: none;
}
.nrows-form-main form .nrows-input:focus {
    outline: none;
    border-bottom-color:#ccc;
}
.nrows-form-main form.nrows-input-form label {
    color: #0c293f;
}
@media screen and (max-width:767px){
    .nrows-form-main form#form {
        display: flex;
        flex-direction: column;
    }
    .nrows-form-main .nrows-input-form > .nrows-input {
        width: auto;
        margin-bottom: 20px;
    }
    .nrows-form-main .nrows-input-form > .nrows-input{
        width:auto;
        margin:0 auto 20px auto;
    }
    .nrows-form-main .nrows-input-form > .nrows-submit {
        width: auto;
        margin: 0 auto;
    }
    .nrows-mobile-show{
        display:block;
    }
    .nrows-desktop-ftr{
        display:none;
    }
    .nrows-results-list {
        display: flex;
        flex-direction: column;
        flex-wrap:wrap;
        margin: 0 auto 100px auto;
    }
}

@media (min-width: 768px) {
    .nrows-result-item {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33%;
        flex: 0 0 33%;
    }

    .nrows-result-item:nth-child(3n+1) {
        -webkit-transform: translate3d(0, -48px, 0);
        transform: translate3d(0, -48px, 0);
    }

    .nrows-result-item:nth-child(3n+3) {
        -webkit-transform: translate3d(0, 48px, 0);
        transform: translate3d(0, 48px, 0);
    }
}

.nrows-result-item > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: white;
    height: 160px;
    line-height: inherit;
    word-break:break-word;
    margin: 8px;
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
    box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
    text-align: center;
    -webkit-animation: pop-in 300ms ease-out;
    animation: pop-in 300ms ease-out;
    transition: transform 150ms ease; /* UPDATED: Added transition for hover */
}

@media (min-width: 768px) {
    .nrows-result-item > span {
        margin: 16px;
    }
}

.nrows-result-item > span {
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.1em;
}

/* FIX #1: This block is corrected to provide a simple, working hover effect */
.nrows-result-item:hover > span {
    transform: scale(1.05);
}

.nrows-result-item:nth-child(3n+2) > span {
    text-transform: none;
    font-weight: 200;
    letter-spacing: 0;
    font-size: 1.9em;
}


.result-item:nth-child(7n+3) > span {
    text-transform: none;
    font-weight: 700;
    letter-spacing: -0.05em;
    font-size: 1.7em;
}

.nrows-result-item:nth-child(5n+0) > span {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.2em;
    font-size: 1.1em;
}

@media (min-width: 768px) {
    /* FIX #2: Added !important to ensure dark theme is applied */
    .nrows-result-item:hover > span,
    .nrows-result-item:nth-child(9n+5) > span {
        background: #0D293F !important;
        color: white !important;
        -webkit-transform: scale(1.05) translate3d(0, 0, 0);
        transform: scale(1.05) translate3d(0, 0, 0);
    }

    .nrows-result-item:nth-child(9n+5) > span {
        -webkit-transform: scale(1.1) translate3d(0, 0, 0);
        transform: scale(1.1) translate3d(0, 0, 0);
    }

    .nrows-result-item:nth-child(9n+3) > span {
        font-family: 'Playfair Display', serif !important;
    }

    .nrows-result-item:nth-child(9n+1) > span {
        font-family: 'Berkshire Swash', cursive !important;
    }
}

.nrows-results-list > hr {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    background: #888;
    height: 1px;
    margin: 16px 32px;
}

@-webkit-keyframes pop-in {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }
}

@keyframes pop-in {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }
}