/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global body */
body {
    background-color: #cadbec;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #666;
}

/* Main content */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px;
}

/* Generic card */
.card {
    width: 100%;
    margin-top: 16px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 9px;
    padding: 12px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links */
a {
    text-decoration: none;
    font-weight: bold;
    color: #6666aa;
}

a:visited {
    color: #000088;
}

a:active {
    color: #863800;
}

/* Footer */
.footer-card {
    text-align: center;
    border-color: #cadbec;
    background-color: #cadbec;
    padding: 3px;
    margin-top: 12px;
}

.footer-card p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* Homepage Site Header */
.site-header {
    text-align: center;
    margin-top: 6px;
}

.site-header h1 {
    font-size: 28px;
    color: #333;
}

.site-header p {
    font-size: 14px;
    color: #888;
}

/* Search Card */
.search-card {
    margin-top: 12px;
}

.search-card form {
    display: flex;
    gap: 8px;
}

.search-card input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.search-card button {
    padding: 10px 16px;
    border: 1px solid DodgerBlue;
    border-radius: 6px;
    background-color: LightBlue;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.cover-photo {
    margin-top: 6px;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 9px;
}

.cover-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Main Categories */

.category-card {
    margin-top: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-item {
    display: block;
    background-color: LightBlue;
    border: 1px solid DodgerBlue;
    border-radius: 8px;
    text-align: center;
    padding: 8px 5px;
    color: #000;
    font-weight: bold;
    font-size: 18px;
}

.category-item {
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.category-item:hover {
    background-color: DodgerBlue;
    color: #ffffff;
}

.category-item.active,
.category-item.active:visited,
.category-item.active:hover {
    background-color: DodgerBlue;
    color: #ffffff;
    border-color: DodgerBlue;
}

.category-item:visited {
    color: #000;
}

/* Mobile layout */

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Hero Section */

.hero-card {
    margin-top: 12px;
}

.hero-card h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.hero-card p {
    font-size: 15px;
    margin-bottom: 10px;
}

.hero-card p:last-child {
    margin-bottom: 0;
}

/* Business Card */

.business-card {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 9px;
}

.business-image {
    width: 35%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.business-info {
    flex: 1;
    min-width: 0;
}

/* Card Action Buttons */

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.card-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #e8f1fa;
    border-radius: 8px;
    color: #3978ad;
    font-size: 20px;
}

.card-actions a:hover {
    background-color: #c5dcef;
    color: #245b87;
}


/* Business Signboard */

.signboard-card {
    padding: 12px;
}

.signboard-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.signboard-meta {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 0 0 18px;
}

.signboard-address {
    margin: 12px 0;
}

.signboard-address i {
    margin-right: 6px;
}

.signboard-remarks {
    margin: 12px 0;
}

.signboard-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 20px;
}

.signboard-actions a {
    font-size: 24px;
    color: DodgerBlue;
    text-decoration: none;
}

.back-to-main {
    margin: 0 0 0px;
    font-size: 13px;
}

.back-to-main a {
    color: #666;
    text-decoration: none;
}

/* Client Website Layout */

.back-to-main {
    margin: 0 0 6px;
}

.signboard-card {
    margin-top: 0;
}


/* Signboard Layout Adjustment */

.signboard-name {
    text-align: center;
    font-size: 24px;
    margin: 12px 0;
}

.signboard-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.signboard-type {
    font-size: 15px;
    flex: 1;
}

.signboard-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 0;
    flex-shrink: 0;
}

.signboard-actions a {
    font-size: 22px;
}

.signboard-address {
    margin: 12px 0;
}

.signboard-remarks {
    margin: 12px 0;
}

/* SEE Subcategory Filter */
.subcategory-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.subcategory-item {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.subcategory-item.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Story Hero */

.story-hero img {
    width: 100%;
    height: auto;
}

/* Story Thumbnail */
.story-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    display: block;
}

.bwpdhomes-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* BW PD Homes Signboard */
.bwpdhomes-banner {
    margin-top: 0;
}