/* menu */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #f8f9fa;
    padding: 10px;
}

/* 菜单按钮默认隐藏，只在小屏显示 */
.menu-toggle {
    margin: 0px;
    padding: 0px 5px;
    height: 52px;
    width: 62px;
    display: none;
    font-size: 28px;
    background: none;
    border: 0.15rem solid #ba9657;
    background-color: #ba9657;
    border-color: #ba9657;
    border-radius: 0.3rem;
}
.menu-toggle .bi{
    margin: 0px;
}

/* 菜单链接区域 */
.top-nav-links {
    display: flex;
    gap: 15px;
}

/* 小屏幕下菜单变为悬浮层 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .top-nav-links {
        display: none;
        position: absolute;
        top: 80px; /* 顶部导航高度+一些间距 */
        right: 10px;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        min-width: 150px;
        border-radius: 8px;
        overflow: hidden;
        z-index: 1500;
        gap: 0px;
    }
    .top-nav-links.show {
        display: flex;
    }
    .top-nav-links a {
        margin: 0px;
        padding: 10px 15px;
        text-align: left;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }
    .top-nav-links a:last-child {
        border-bottom: none;
    }
    .top-nav-links a:hover {
        background-color: #f1f1f1;
    }
}

/* HERO */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), #000000),
    url("../img/homepage_hero.jpg") center center / cover no-repeat;
    color: white;
    padding: 150px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    min-height: 50vh;
    width: 100vw;
    margin: 0;
    position: relative;
    /* center the section */
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

#hero-header {
    font-size: 9rem;
    color: white;
    font-weight: bold;
}

/* CONTACT HOMEPAGE */
.section-padding-contact{
    padding-top: 100px;
    padding-bottom: 150px;
}

.inquiry-display {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.view-display {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Style for status dropdowns based on closed status */
.status-dropdown.status-closed {
    background-color: #e9ecef;
    color: #495057;
}

.status-dropdown.status-active {
    background-color: #fff;
    color: #212529;
}

/* CONTACT VIEW */
/* Style for status badges */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.status-badge.closed {
    background-color: #b0e397;
    color: #479c47;
    font-size: 1.25rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.status-badge.active {
    background-color: #fff5cf;
    color: #986f08;
    font-size: 1.25rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

/* 居中修改 rxin */
.album.py-5.bg-body-tertiary .container{
    display: flex;
    flex-direction: column;
    align-items: center;
}


#contactus-header, #service-management-header, #service-public-header, #photo-gallery-header, #login-header, #reset-header {
    font-size: 5rem;
    color: #ba9657;
    font-weight: bold;
    text-align: center;
}

#forgot-password-header{
    font-size: 4rem;
    color: #ba9657;
    font-weight: bold;
    text-align: center;
}

th.col-name { width: 12%; }
th.col-email { width: 10%; }
th.col-message { width: 40%; }
th.col-date { width: 15%; }
th.col-status { width: 30%; }
th.col-actions { width: 13%; }

.button-beige {
    border: 0.1rem solid #ba9657;
    background-color: #ba9657;
    border-color: #ba9657;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 4rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.button-beige:hover {
    border-color: rgba(202, 164, 96, 0.84);
    background-color: rgba(202, 164, 96, 0.84);
    color: #fff;
}

.button-save {
    border: 0.1rem solid #57ba5c;
    background-color: #57ba5c;
    border-color: #57ba5c;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 4rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.button-save:hover {
    border-color: rgba(96, 202, 110, 0.84);
    background-color:  rgba(96, 202, 110, 0.84);
    color: #fff;
}

.button-update {
    border: 0.1rem solid #4679ac;
    background-color: #4679ac;
    border-color: #4679ac;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 3rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.button-update:hover {
    border-color: rgba(96, 158, 202, 0.84);
    background-color: rgba(96, 158, 202, 0.84);
    color: #fff;
}

.button-remove {
    border: 0.1rem solid #ba5757;
    background-color: #ba5757;
    border-color: #ba5757;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 3rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.button-remove:hover {
    border-color: rgba(202, 96, 96, 0.84);
    background-color: rgba(202, 96, 96, 0.84);
    color: #fff;
}

.button-grey {
    border: 0.1rem solid #686868;
    background-color: #686868;
    border-color: #686868;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 4rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.button-grey:hover {
    border-color: rgba(120, 120, 120, 0.84);
    background-color: rgba(120, 120, 120, 0.84);
    color: #fff;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-view {
    color: #fafafa !important;
    background-color: rgba(179, 137, 64, 0.89) !important;
    border-color: rgba(179, 137, 64, 0.89) !important;

    font-size: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-view:hover {
    color: #000 !important;
    background-color: rgba(216, 180, 116, 0.89) !important;
    border-color: rgba(216, 180, 116, 0.89) !important;
}

.btn-email {
    color: #ffffff !important;
    background-color: #003975 !important;
    border-color: #003975 !important;

    font-size: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-email:hover {
    color: #171717 !important;
    background-color: #3b7cbf !important;
    border-color: #3b7cbf !important;
}

.btn-remove {
    color: #fafafa !important;
    background-color: rgba(179, 64, 64, 0.89) !important;
    border-color: rgba(179, 64, 64, 0.89) !important;

    font-size: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-remove:hover {
    color: #000 !important;
    background-color: rgba(216, 116, 116, 0.89) !important;
    border-color: rgba(216, 116, 116, 0.89) !important;
}

.btn-archive {
    color: #fafafa !important;
    background-color: rgba(182, 31, 31, 0.89) !important;
    border-color: rgba(182, 31, 31, 0.89) !important;

    font-size: 1.25rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-archive:hover {
    color: #bcbcbc !important;
    background-color: rgba(213, 56, 56, 0.89) !important;
    border-color: rgba(213, 56, 56, 0.89) !important;
}

.btn-cancel {
    color: #fafafa !important;
    background-color: rgba(120, 120, 120, 0.89) !important;
    border-color: rgba(120, 120, 120, 0.89) !important;

    font-size: 1.25rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-cancel:hover {
    color: #bcbcbc !important;
    background-color: rgba(50, 49, 49, 0.89) !important;
    border-color: rgba(50, 49, 49, 0.89) !important;
}

.btn-restore {
    color: #fafafa !important;
    background-color: #0083b1 !important;
    border-color: #0083b1 !important;

    font-size: 1.2rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-restore:hover {
    color: #171717 !important;
    background-color: #0093c6 !important;
    border-color: #0093c6 !important;
}

.btn-restore-inquiries {
    color: #fafafa !important;
    background-color: #0083b1 !important;
    border-color: #0083b1 !important;

    font-size: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-restore-inquiries:hover {
    color: #171717 !important;
    background-color: #0093c6 !important;
    border-color: #0093c6 !important;
}

.btn-restore-faq {
    color: #fafafa !important;
    background-color: #0083b1 !important;
    border-color: #0083b1 !important;

    font-size: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-restore-faq:hover {
    color: #171717 !important;
    background-color: #0093c6 !important;
    border-color: #0093c6 !important;
}

.btn-set-default {
    color: #000000 !important;
    /*background-color: #057c00 !important;*/
    border-color: #aaaaaa !important;

    font-size: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-set-default:hover {
    color: #171717 !important;
    background-color: #aaaaaa !important;
    border-color: #aaaaaa !important;
}

.btn-remove-sub-service {
    color: #ffffff !important;
    background-color: rgba(179, 64, 64, 0.89) !important;
    border-color: rgba(179, 64, 64, 0.89) !important;

    font-size: 1.2rem !important;
    padding: 0.2rem 1.0rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-remove-sub-service:hover {
    color: #ffffff !important;
    background-color: rgba(216, 116, 116, 0.89) !important;
    border-color: rgba(216, 116, 116, 0.89) !important;
}

.btn-add-sub-service {
    color: #ffffff !important;
    background-color: #555555 !important;
    border-color: #555555 !important;

    font-size: 1.0rem !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.btn-add-sub-service:hover {
    color: #d8d8d8 !important;
    background-color: #323232 !important;
    border-color: #323232 !important;
}

.bg-default {
    color: #000000 !important;
    background-color: #aaaaaa !important;
    border-color: #aaaaaa !important;

    font-size: 1.5rem !important;
    padding: 1rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.bg-red {
    color: #fafafa !important;
    background-color: #950101 !important;
    border-color: #950101 !important;

    font-size: 1.5rem !important;
    padding: 1rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.bg-green {
    color: #fafafa !important;
    background-color: #149e01 !important;
    border-color: #149e01 !important;

    font-size: 1.5rem !important;
    padding: 1rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.bg-grey {
    color: #fafafa !important;
    background-color: #737373 !important;
    border-color: #737373 !important;

    font-size: 1.5rem !important;
    padding: 1rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.bg-gold {
    color: #fafafa !important;
    background-color: #ba9657 !important;
    border-color: #ba9657 !important;

    font-size: 1.5rem !important;
    padding: 1rem 1.2rem !important;
    border-radius: 0.4rem !important;
    font-weight: 600 !important;
}

.status-dropdown {
    border: 2px solid #ccc;
    background-color: #fff;
    color: #000;
}

.status-pending {
    background-color: #fffae5;
    color: #d87a00;
}

.status-responded {
    background-color: #e5ffe5;
    color: #006400;
}


/* SERVICES HOMEPAGE */


#image-alterations {
    width: 100%;
    height: 225px;
    background-image: url('../img/alterations.jpg');
    background-size: cover;
    background-position: center;
}

#image-tailoring {
    width: 100%;
    height: 225px;
    background-image: url('../img/tailoring.jpg');
    background-size: cover;
    background-position: center;
}

#image-repair {
    width: 100%;
    height: 225px;
    background-image: url('../img/repair.jpg');
    background-size: cover;
    background-position: center;
}

.section-padding-service-management{
    padding-top: 50px;
    padding-bottom: 50px;
}

.services-page {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.services-page .container {
    max-width: 1400px;
    padding: 0 2rem;
}

.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-20px);
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
}

.card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 4.25rem;
}

.img-fluid {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
}

.pricing-list {
    text-align: left;
    margin-top: auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.service-name {
    color: #495057;
    font-size: 1.2rem;
    flex: 1;
    margin-right: 1.5rem;
    line-height: 1.5;
}

.price-range {
    color: #ba9657;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1.2rem;
}

.card-text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}
/* 居中修改 rxin */
.row {
    margin: 0 0rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.service-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: #ccc;
}

.change-photo-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.change-photo-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
}

.service-details {
    padding: 20px;
    text-align: center;
}

.service-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.price {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.description {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.55rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* FEATURETTE */
.featurette-divider {
    margin: 5rem 0;
    height: 0.5px;
    background-color: #84909a;
    opacity: 0.8;
}

#image-featurette-one {
    width: 100%;
    height: 500px;
    background-image: url('../img/featurette one.jpeg');
    background-size: cover;
    background-position: center;
}

#image-featurette-two {
    width: 100%;
    height: 500px;
    background-image: url('../img/featurette two.jpg');
    background-size: cover;
    background-position: center;
}

#featurette-heading {
    color: #ba9657;
    font-weight: bold;
}

/* FOOTER */
footer {
    background-color: rgba(147, 147, 147, 0.2);
    color: #333;
    width: 99.25vw;
    margin: 0;
    position: relative;
    /* center the section */
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}
/* BUTTONS */
.button-beige {
    border: 0.1rem solid #ba9657;
    background-color: #ba9657;
    border-color: #ba9657;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 4rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

#image-expert {
    width: 100%;
    height: 350px;
    background-image: url('../img/old_man.png');
    background-size: cover;
    background-position: center;
}

.button-beige:hover {
    border-color: rgba(202, 164, 96, 0.84);
    background-color: rgba(202, 164, 96, 0.84);
    color: #fff;
}

.button-beige-transparent{
    border: 0.15rem solid #ba9657;
    background-color: #ba9657;
    border-color: #ba9657;
    border-radius: 0.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 4.5rem;
    letter-spacing: 0.12rem;
    line-height: 4.5rem;
    padding: 0 4rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.button-beige-transparent:hover {
    background-color: transparent;
    border-color: rgba(186, 150, 87, 0.8);
    color: #ffffff;
}

.button-wrapper {
    margin-bottom: 10px;
}


/* NAV BAR */
.top-nav-links a {
    text-decoration: none;
}

.top-nav-links a:hover {
    color: #ba9657;
}

.top-nav-links a.active {
    font-weight: bold;
    color: #ba9657;
}

/* LOGIN */
#heading-bold{
    font-weight: bold;
    color: #5f6b75;
}

.section-padding-login{
    padding-top: 50px;
    padding-bottom: 50px;
}

/* RESET PASSWORD */
.section-padding-forgot-password{
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-padding-reset-password{
    padding-top: 50px;
    padding-bottom: 50px;
}

/* TIMELINE 样式 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ccc;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ba9657;
    border: 4px solid #ba9657;
    z-index: 1;
}
.timeline-title {
    color: #ba9657;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.left::before {
    right: -10px;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item.right::before {
    left: -10px;
}
.timeline-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.timeline-item.left .timeline-content {
    text-align: right;
}
.timeline-item.right .timeline-content {
    text-align: left;
}
.expert-section {
    max-width: 800px;
    margin: 60px auto;
    background-color: #fdfcfb;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.expert-title {
    color: #ba9657;
    font-weight: bold;
    margin-bottom: 30px;
}
.expert-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ba9657;
    box-shadow: 0 0 10px rgba(186, 150, 87, 0.4);
}
.expert-desc {
    margin-top: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
    font-size: 1.5rem;
    line-height: 1.6;
}

 .accordion-item {
     border: none !important;
     box-shadow: none !important;
 }


.accordion-button {
    border: none !important;
    box-shadow: none !important;
}


.accord {

}
.category-header {
    text-align: center;
    color: black;
}
.services-header {
    text-align: center;
    color: black;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
    font-size: 2rem !important;

}










/* IMAGE CARD 图片卡片布局相关样式 */
.card-section {
    margin-bottom: 60px; /* increase spacing 增加区块间距 */
    position: relative;
    padding: 0 20px;
}

.card-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1d1d1f;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* increase card size 稍微增加卡片大小 */
    gap: 30px;
    max-width: 1200px; /* limit maximum width 限制最大宽度 */
    margin: 0 auto;
    padding: 10px 0;
}

.card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 240px; /* taller picture 更高的图片 */
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card h3 {
    margin: 20px 0;
    padding: 0 15px;
    color: #1d1d1f;
    font-size: 1.1rem;
    font-weight: 500;
}

/* GALLERY 图片库介绍部分样式更新 */
.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 4rem;
    padding: 0 2rem;
}

.gallery-intro h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.gallery-intro p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #515154;
    max-width: 700px;
    margin: 0 auto;
}

#photo-thumbail-name{
    text-align: center;
    width: 250px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    margin: 0 auto;
}

/* RESPONSIVE ADJUSTMENT 响应式调整 */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .gallery-intro h1 {
        font-size: 2.2rem;
    }

    .gallery-intro p {
        font-size: 1.1rem;
    }

    .card-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-info-notice {
    background-color: #e7f3fe;
    border-left: 4px solid #2196F3;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.category-filter {
    margin-bottom: 20px;
}

.button-filter {
    display: inline-block;
    padding: 5px 15px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.button-filter.active {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.category-header {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.gallery-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.gallery-details {
    padding: 15px;
    text-align: center;
}

.gallery-details h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.date-added {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 10px;
}

.empty-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #ccc;
    border: 2px dashed #ddd;
}

.empty-slot i {
    font-size: 3rem;
    color: #aaa;
}

.empty-image-placeholder {
    padding: 10px;
    background-color: #f0f0f0;
    color: #888;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-outline {
    margin: 5px;
}

.empty-gallery {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* DASHBOARD */
.admin-dashboard-hero {
    background: #ba9657;
    color: white;
    width: 100vw;
    padding: 100px 0;
    margin: 0;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

#admin-header {
    font-size: 6rem;
    font-weight: bold;
}

#inquiry-card-header {
    font-size: 3rem;
    margin-bottom: 3px;
    margin-left: 10px;
}

#photo-card-header {
    font-size: 2.5rem;
    margin-bottom: 3px;
    margin-left: 4px;
    text-align: left;
}

#service-card-header {
    font-size: 2.5rem;
    margin-bottom: 3px;
    margin-left: 9px;
    text-align: left;
}

.mt-n15 {
    margin-top: -5rem;
}

#dashboard-icon {
    font-size: 3rem;
    color: #ba9657;
    margin-bottom: 2px;
    margin-top: 10px;
    margin-left: 10px;
}

.dashboard-description {
    text-align: left;
    margin-left: 10px;
    margin-bottom: 15px;
}

#accordion-header {
    font-size: 16px;
}

@media (max-width: 523px) {
    #accordion-header {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

@media (min-width: 523px) and (max-width: 1023px) {
    #accordion-header{
        font-size: 1.25rem;
    }
}

@media (min-width: 1023px) {
    #accordion-header {
        font-size: 1.5rem;
    }
}

/* SERVICE EDIT */
#heading-service-bold{
    font-weight: bold;
    color: #ba9657;
}

.edit-section {
    margin-bottom: 25px;
}

.edit-section h4 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.current-image {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.current-image h5 {
    margin-top: 0;
    margin-bottom: 10px;
}

.file-upload-info {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.9em;
}

.file-upload-info p {
    margin: 5px 0;
}

.bi {
    margin-right: 8px;
}

.img-thumbnail {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    max-width: 100%;
}

.button-outline {
    margin-top: 10px;
}

.file-upload-info {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.9em;
}

.file-upload-info p {
    margin: 5px 0;
}

.bi {
    margin-right: 8px;
}

/* FAQ */
.accordion-button.header {
    font-size: 1.75rem;
    text-transform: capitalize;
    font-weight: 500;
}

.accordion-button.header.collapsed {
    background-color: #f8f9fa;
    border: #ba9657;
    color: #333;
}

.accordion-button.header {
    background-color: #ba9657;
    border: #ba9657;
    color: white;
}

.accordion-button.header:hover {
    background-color: rgba(186, 150, 87, 0.8);
    color: #fff;
    border-color: rgba(186, 150, 87, 0.8);
}

.faq-divider {
    margin: 5rem 0;
    height: 0.5px;
    background-color: #84909a;
    opacity: 0.8;
}

@media only screen and (max-width: 500px) {
    .g-recaptcha {
        transform:scale(0.77);
        transform-origin:0 0;
    }
}

.answer-display {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}


/* INQUIRY PAGES */
.drag-handle {
    cursor: move;
    margin-right: 10px;
    color: #999;
}

.drag-handle:hover {
    color: #333;
}

.status-table tr {
    transition: background-color 0.2s ease;
}

.status-table tr:hover {
    background-color: #f8f9fa;
}

.ui-sortable-helper {
    display: table;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ARCHIVED */
.gallery-info-notice {
    background-color: #e7f3fe;
    border-left: 4px solid #2196F3;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.category-filter {
    margin-bottom: 20px;
}

.button-filter {
    display: inline-block;
    padding: 5px 15px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.button-filter.active {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.category-header {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.gallery-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.date-added {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 10px;
}

.empty-image-placeholder {
    padding: 10px;
    background-color: #f0f0f0;
    color: #888;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-outline {
    margin: 5px;
}

.empty-gallery {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* SUB SERVICE */
#sub-service-name{
    color: #000000;
    font-size: 15px;
}

#sub-service-min-price{
    color: #000000;
    font-size: 15px;
}

#sub-service-max-price{
    color: #000000;
    font-size: 15px;
}
.question-edit,
.answer-edit {
    color: inherit;
    font: inherit;
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 0;
    margin: 0;
}
.qa-edit {
    color: inherit;
    font: inherit;
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 0;
    margin: 0;
    resize: vertical;
    min-height: 180px;
    white-space: pre-wrap;
}

     /* Dropdown styling to match the site's aesthetic */
 .dropdown-menu {
     border-radius: 0;
     box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 }

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Button styles for archive/restore actions */
.button-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.button-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

     /* Modal styling */
 .modal-content {
     border-radius: 0.25rem;
     border: none;
     box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
 }

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #212529;
}

#confirmActionBtn {
    background-color: #dc3545;
    border-color: #dc3545;
}

#confirmActionBtn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Make modals responsive on smaller screens */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-content {
        padding: 0.5rem;
    }
}
.top-nav {
    background-color: #fefefe !important;
    padding-left: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 1000;
}
.top-nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.top-nav-title {
    margin: 0 !important;
    padding: 0 !important;
}

.modal {
    z-index: 1100 !important;
}
.modal-backdrop {
    z-index: 1090 !important;
}

     /* Style for status badges */
 .status-badge {
     display: inline-block;
     padding: 0.25em 0.6em;
     border-radius: 0.25rem;
     font-size: 0.875rem;
 }

.status-badge.closed {
    background-color: #e9ecef;
    color: #495057;
}

.status-badge.active {
    background-color: #cfe2ff;
    color: #084298;
}

.top-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 10px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1500;
}


.top-nav-links.show {
    display: flex !important;
}


@media (min-width: 769px) {
    .top-nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        box-shadow: none;
        background: none;
        padding: 0;
    }

    .menu-toggle {
        display: none;
    }
}
.services-page .container {
    background-color: transparent !important;
}
.services-page {
    background-color: transparent !important;
}


