body {
    margin: 0;
    padding: 0;
    background: #f5f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    overflow-y: scroll;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #1d4ed8;
    text-decoration: none;
}

p {
    white-space: normal !important;
    word-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: #111827;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.site-logo:hover,
.site-logo:focus {
    color: #111827;
}

.header-links a {
    margin-left: 18px;
    font-size: 14px;
    color: #4b5563;
    transition: color 0.2s ease;
}

.header-links a:hover,
.header-links a:focus {
    color: #111827;
}

/* hero */
.hero-section {
    padding: 32px 0 20px;
}

.hero-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 42px 28px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.hero-layout {
    display: flex;
    align-items: center;
}

.hero-content {
    padding-right: 0;
}

.hero-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 auto 24px;
    max-width: 700px;
}

.hero-content .hero-title,
.hero-content .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.hero-search-form {
    margin-bottom: 0;
}

.hero-search {
    display: flex;
    align-items: stretch;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-content .hero-search {
    margin: 0;
    max-width: 100%;
}

.hero-search .form-control {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    box-shadow: none;
    font-size: 15px;
    padding: 0 16px;
}

.hero-search .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hero-search-btn {
    height: 56px;
    min-width: 126px;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 0 22px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-search-btn:hover,
.hero-search-btn:focus {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
}

.hero-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
    margin-bottom: 0;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 30px;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 18px;
}

/* common sections */
.features-section,
.search-types-section,
.search-tips-section,
.popular-section,
.faq-section {
    padding: 28px 0 18px;
}

.features-section .row::after,
.search-types-section .row::after,
.search-tips-section .row::after,
.faq-section .row::after {
    content: "";
    display: table;
    clear: both;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-head p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 0;
}

/* cards */
.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.feature-card h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-card p {
    margin-bottom: 0;
    color: #4b5563;
    line-height: 1.65;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: #2563eb;
    vertical-align: middle;
    flex-shrink: 0;
}

.feature-card svg {
    overflow: visible;
}

/* popular tags */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.popular-tag {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.popular-tag:hover,
.popular-tag:focus {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* result page */
#body {
    background: #f5f7fb;
}

legend {
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

legend a {
    color: #2563eb;
}

.col-xs-4 {
    height: auto;
    margin-bottom: 30px;
}

.thumbnail {
    display: block;
    padding: 12px;
    margin-bottom: 20px;
    line-height: 1.42857;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.thumbnail .caption {
    padding: 12px 4px 4px;
    color: #333;
    position: static;
    width: 100%;
}

.thumbnail img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.thumbnail h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.thumbnail p {
    color: #4b5563;
}

.caption .btn,
.thumbnail .btn {
    border-radius: 10px;
}
.site-footer {
    background: #1f2937;
    border-top: 1px solid #374151;
    margin-top: 32px;
    padding: 32px 0 20px;
    color: #e5e7eb;
}

.footer-top {
    margin-bottom: 18px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 420px;
    margin-bottom: 0;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
}

/* misc */
.modal-backdrop {
    position: fixed;
    z-index: 1;
}

.footer {
    position: static;
    width: 100%;
    left: auto;
}

/* tablet */
@media (max-width: 991px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-card {
        padding: 34px 22px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .hero-layout {
        display: block;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 24px;
    }

    .hero-content .hero-title,
    .hero-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 760px;
    }

    .hero-content .hero-search {
        margin: 0 auto;
        max-width: 700px;
    }

    .hero-visual {
        margin-top: 10px;
    }

    .hero-image {
        max-width: 560px;
    }
}

/* mobile */
@media (max-width: 767px) {
    .header-inner {
        min-height: 58px;
    }

    .site-logo {
        font-size: 20px;
    }

    .hero-section {
        padding-top: 20px;
    }

    .hero-card {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-search {
        flex-direction: column;
        gap: 10px;
    }

    .hero-search .form-control,
    .hero-search-btn {
        width: 100%;
        height: 52px;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .feature-card {
        padding: 20px;
    }

    .popular-tags {
        justify-content: flex-start;
    }

    .header-links {
        display: none;
    }

    .col-xs-4 {
        width: 100%;
    }

    .thumbnail img {
        max-height: 200px;
    }

    .hero-image {
        max-width: 100%;
    }

    legend {
        font-size: 22px;
    }
}