/* ==========================================================================
   YouAskingTo.com - Modern Responsive Styles 2026
   Clean, professional look — blue tech theme, cards, mobile-first
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: #2d3748;
    background-color: #f7fafc;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2.5rem 1rem 0.1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 {
    margin: 0;
    font-size: clamp(2.1rem, 6vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    margin: 0.6rem 0 1.8rem;
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    opacity: 0.92;
}

nav {
    margin-top: 0.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin: 0 1.3rem;
    transition: all 0.25s ease;
    font-size: 1.05rem;
}

nav a:hover,
nav a:focus {
    color: #dbeafe;
    transform: translateY(-2px);
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

h2 {
    color: #1e40af;
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    margin: 2.8rem 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 4px solid #bfdbfe;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #3b82f6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.28s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.14);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.4rem 1.5rem;
}

.card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.38rem;
    color: #1e40af;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.card p {
    margin: 0;
    color: #4a5568;
    font-size: 0.98rem;
}

.qa-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.qa-list li {
    background: white;
    border-radius: 12px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transition: all 0.2s;
}

.qa-list li:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.qa-list li a {
    font-size: 1.18rem;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
}

.qa-list li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.qa-list small {
    color: #718096;
    font-size: 0.92rem;
}

/*form {*/
/*    background: white;*/
/*    padding: 2.2rem;*/
/*    border-radius: 14px;*/
/*    box-shadow: 0 6px 24px rgba(0,0,0,0.09);*/
/*    max-width: 760px;*/
/*    margin: 2.5rem auto;*/
/*}*/

form {
    /*background: white;*/
    /*padding: 0 1rem 1rem 1rem;*/
    /*border-radius: 14px;*/
    /*box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);*/
    max-width: 760px;
    margin: 2.5rem auto;
    /*height: 5rem;*/
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1.02rem;
    transition: border-color 0.25s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

/*button {*/
/*    background: #2563eb;*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 1rem 2.2rem;*/
/*    font-size: 1.08rem;*/
/*    font-weight: 600;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s;*/
/*    margin-top: 1.2rem;*/
/*}*/

/*button:hover {*/
    /*background: #1d4ed8;*/
/*    color: #1d4ed8;;*/
/*    transform: translateY(-2px);*/
/*}*/

button:active {
    transform: translateY(0);
}

footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 3rem 1rem 2.5rem;
    margin-top: 4rem;
}

footer nav {
    margin: 1.2rem 0 1.8rem;
}

footer a {
    color: #93c5fd;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.98rem;
}

footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header { padding: 2rem 1rem 1.6rem; }
    nav a  { margin: 0 0.9rem; font-size: 0.98rem; }
    main   { padding: 0 1rem; }
    .grid  { gap: 1.4rem; }
    form   { padding: 1.8rem; }
}

/* Single Review Page Styles */
.single-review {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.review-header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 0.8rem;
    color: #1e40af;
}

.meta {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.meta span {
    margin-right: 1rem;
}

.category-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.category-link:hover {
    text-decoration: underline;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lead-excerpt {
    font-size: 1.18rem;
    font-weight: 500;
    color: #334155;
    margin: 0 0 2rem;
    line-height: 1.6;
    border-left: 5px solid #3b82f6;
    padding-left: 1.2rem;
}

.review-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
}

.review-body h2, .review-body h3 {
    color: #1e40af;
    margin: 2rem 0 1rem;
}

.review-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.review-body th, .review-body td {
    border: 1px solid #e2e8f0;
    padding: 0.9rem;
    text-align: left;
}

.review-body th {
    background: #f1f5f9;
    font-weight: 600;
}

.review-body ul, .review-body ol {
    padding-left: 1.8rem;
    margin: 1rem 0;
}

.review-body li {
    margin-bottom: 0.6rem;
}.review-footer {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.back-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s;
}

.back-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 768px) {
    .single-review { padding: 1.8rem 1.2rem; }
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 0 0 24px 24px;
    margin-bottom: 3rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 4rem);
}

.tagline {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin: 0.8rem 0 1.5rem;
    opacity: 0.95;
}

.subtitle {
    font-size: 1.15rem;
    margin: 0 0 2rem;
    opacity: 0.9;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    margin: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s;
}

.primary {
    background: white;
    color: #1e40af;
}

.primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    background: #f1f5f9;
    border-radius: 12px;
    color: #64748b;
}

/* Card image */
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Section footer links */
.section-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.more-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

/* Question item */
.qa-item {
    margin-bottom: 1.2rem;
}

.question-title {
    font-size: 1.15rem;
    color: #1d4ed8;
    font-weight: 600;
}

.meta {
    color: #64748b;
    font-size: 0.92rem;
}

.qa-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.qa-header {
    text-align: center;
    margin-bottom: 3rem;
}

.qa-header h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 0.8rem;
    color: #1e40af;
}

.subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 1.8rem;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.question-title:hover {
    color: #2563eb;
    text-decoration: underline;
}

.question-excerpt {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0.4rem 0 0.8rem;
}

.meta {
    font-size: 0.9rem;
    color: #64748b;
}

.meta span {
    margin-right: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e0;
}

.empty-state h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.pagination {
    font-size: 0.95rem;
    color: #64748b;
}

.hero {
    text-align: center;
    padding: 6rem 1.5rem 7rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 0 0 32px 32px;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0 0 1rem;
    font-weight: 800;
}

.tagline {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.button.primary {
    background: white;
    color: #1e40af;
}

.button.primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.button.secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: #f8fafc;
    border-radius: 16px;
    color: #64748b;
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.more-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin: 0 1rem;
}

.more-link:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title a {
    color: #1e40af;
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

.search-form {
    margin-left: auto;
}




/* === Compact Modern Search Box === */
.search-form {
    margin-left: auto;           /* pushes to right side */
    display: flex;
    align-items: center;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;        /* pill shape */
    padding: 0.35rem 0.6rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    width: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.5rem 0.9rem;
    font-size: 0.94rem;
    color: #1e293b;
    caret-color: #2563eb;
}

.search-input::placeholder {
    color: #9ca3af;
    opacity: 0.85;
    font-size: 0.92rem;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    /*padding: 0.4rem 0.7rem;*/
    padding: 1rem 1.7rem 0.7rem;
    color: #2563eb;
    transition: color 0.2s, transform 0.2s;
    max-height: 3rem;

}


.search-btn:hover,
.search-btn:focus {
    color: #000;
    transform: scale(1.15);
}

.search-btn svg {
    transition: transform 0.2s;
}

.search-btn:hover svg {
    transform: scale(1.15);
}


/* Focus effect */
.search-input:focus {
    outline: none;
}



.search-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    width: 100%;
}

/* Mobile - full width */
@media (max-width: 992px) {
    .search-form {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .search-wrapper {
        width: 100%;
        max-width: none;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.card .card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title a {
    color: #1e40af;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-title a:hover {
    text-decoration: underline;
}

.card-excerpt {
    margin: 0.8rem 0 1rem;
    color: #4b5563;
    line-height: 1.5;
}

.card-meta {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.qa-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
}

.question-title:hover {
    text-decoration: underline;
}

.question-excerpt {
    color: #4b5563;
    line-height: 1.5;
}