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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #101828;
    background-color: #FFFFFF;
}

.app {
    width: 100%;
    min-width: 1200px;
}

/* ====== Header ====== */
.header {
    width: 100%;
    height: 65px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1562px;
    margin: 0 auto;
    padding: 18px 24px;
    height: 64px;
}

.logo-img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #101828;
}

/* ====== Hero Section ====== */
.hero {
    position: relative;
    width: 100%;
    height: 509.5px;
    overflow: hidden;
    background: url('assets/CodeBuddyAssets/1_2/15.jpg') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 48px 0;
}

.hero-heading {
    font-weight: 500;
    font-size: 48px;
    line-height: 48px;
    color: #FFFFFF;
    text-align: center;
}

.hero-paragraph {
    font-weight: 400;
    font-size: 18px;
    line-height: 29.25px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 24px;
}

.features-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 67px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 277.33px;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #CC141B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.feature-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-top: 16px;
}

.feature-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* ====== Category Tabs ====== */
.category-tabs {
    width: 100%;
    height: 89px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1562px;
    margin: 0 auto;
}

.tab-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    height: 40px;
    text-decoration: none;
}

.tab-link span {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #4A5565;
}

.tab-link.active span {
    color: #CC141B;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    width: 128px;
    height: 2px;
    background-color: #CC141B;
}

/* ====== Main Content ====== */
.main-content {
    width: 100%;
    background-color: #FFFFFF;
    padding: 64px 0;
}

.main-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-heading {
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #101828;
    margin-bottom: 32px;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* ====== Space Cards ====== */
.space-card {
    width: 480px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 192px;
    background-color: #E5E7EB;
    overflow: hidden;
}

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

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #101828;
}

.card-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 22.75px;
    color: #4A5565;
    margin-top: 12px;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 4px 12px;
    background-color: #F3F4F6;
    border-radius: 20px;
    font-size: 12px;
    line-height: 18px;
    color: #364153;
}

.tag-more {
    font-size: 12px;
    line-height: 18px;
    color: #6A7282;
}

/* Card Button */
.card-btn-wrapper {
    margin-top: 16px;
}

.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    background-color: #F3F4F6;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #364153;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.card-btn:hover {
    background-color: #E5E7EB;
    color: #1F2937;
}

.card-btn img {
    width: 16px;
    height: 16px;
}

/* Logo Link */
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Tab Link Hover */
.tab-link:hover span {
    color: #CC141B;
}

/* ====== Filter Section ====== */
.filter-section {
    margin-bottom: 32px;
}

.filter-card {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 25px;
    background-color: #FFFFFF;
}

.filter-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #101828;
    margin-bottom: 16px;
}

.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #F9FAFB;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    color: #364153;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-chip.active {
    background-color: #CC141B;
    color: #FFFFFF;
}

.filter-chip.active svg path {
    stroke: #FFFFFF;
}

.filter-chip:hover:not(.active) {
    background-color: #E5E7EB;
}

/* Filter Modal */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.filter-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 360px;
    max-width: 90vw;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    overflow: hidden;
}

.filter-modal.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #E5E7EB;
}

.modal-title {
    font-weight: 500;
    font-size: 18px;
    color: #101828;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.modal-close:hover {
    background-color: #F3F4F6;
}

.modal-body {
    padding: 12px 16px;
}

.modal-item {
    padding: 12px 16px;
    font-size: 16px;
    color: #364153;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 4px;
}

.modal-item:last-child {
    margin-bottom: 0;
}

.modal-item:hover {
    background-color: #F3F4F6;
    color: #CC141B;
}

/* ====== Detail Page ====== */
.detail-breadcrumb {
    width: 100%;
    background-color: #F9FAFB;
    padding: 30px 0;
}

.detail-breadcrumb-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-link {
    font-size: 16px;
    font-weight: 500;
    color: #6A7282;
    text-decoration: none;
}

.bc-link:hover {
    color: #CC141B;
}

.bc-sep {
    font-size: 14px;
    color: #6A7282;
}

.bc-current {
    font-size: 14px;
    color: #101828;
}

.detail-page {
    width: 100%;
    background-color: #F9FAFB;
    padding: 0 0 64px;
}

.detail-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}

.detail-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 1px 2px -1px rgba(0,0,0,0.10), 0px 1px 3px rgba(0,0,0,0.10);
}

.detail-gallery {
    position: relative;
    width: 100%;
    height: 384px;
    background-color: #E5E7EB;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nav-left,
.gallery-nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px -4px rgba(0,0,0,0.10), 0px 10px 15px -3px rgba(0,0,0,0.10);
    cursor: pointer;
}

.gallery-nav-left {
    left: 16px;
}

.gallery-nav-right {
    right: 16px;
}

.gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 44px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    font-size: 14px;
    color: #FFFFFF;
}

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: #CC141B;
}

.detail-body {
    padding: 48px;
}

.detail-title-text {
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    color: #101828;
}

.detail-area-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 24px 0;
    border-bottom: 1px solid #E5E7EB;
}

.area-label {
    font-size: 14px;
    color: #6A7282;
}

.area-value {
    font-size: 16px;
    color: #101828;
}

.detail-section {
    margin-top: 32px;
}

.detail-section-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #101828;
    margin-bottom: 16px;
}

.detail-section-text {
    font-size: 16px;
    line-height: 26px;
    color: #364153;
}

.advantage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.advantage-tag {
    padding: 7px 16px;
    background-color: #F3F4F6;
    border-radius: 20px;
    font-size: 16px;
    color: #364153;
}

.contact-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.contact-box {
    background-color: #F9FAFB;
    border-radius: 14px;
    padding: 24px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-label {
    font-size: 16px;
    color: #4A5565;
}

.contact-value {
    font-size: 16px;
    color: #101828;
}

.contact-highlight {
    color: #CC141B;
}

.detail-back-btn {
    margin-top: 32px;
}

.detail-back-btn a {
    display: inline-block;
    padding: 11px 24px;
    background-color: #F3F4F6;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    color: #364153;
    text-decoration: none;
    transition: background-color 0.2s;
}

.detail-back-btn a:hover {
    background-color: #E5E7EB;
}

/* ====== Detail Page Responsive ====== */
@media screen and (max-width: 768px) {
    .detail-gallery {
        height: 240px;
    }

    .detail-body {
        padding: 24px;
    }

    .gallery-nav-left,
    .gallery-nav-right {
        width: 32px;
        height: 32px;
    }

    .gallery-nav-left svg,
    .gallery-nav-right svg {
        width: 16px;
        height: 16px;
    }

    .gallery-slide img {
        object-position: center;
    }

    .advantage-tags {
        gap: 8px;
    }

    .advantage-tag {
        font-size: 14px;
        padding: 6px 12px;
    }

    .contact-box {
        padding: 16px;
    }
}

/* ====== Footer ====== */
.footer {
    width: 100%;
    background-color: #101828;
    padding: 48px 0;
}

.footer-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: flex;
    gap: 32px;
}

.footer-col {
    flex: 1;
    max-width: 348px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
}

.footer-brand-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
}

.footer-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 22.75px;
    color: #99A1AF;
    margin-top: 16px;
}

.footer-col h4 {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #D1D5DC;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #FFFFFF;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #D1D5DC;
    padding-top: 0;
}

.contact-item svg,
.contact-item img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-list li {
    height: 32px;
    display: flex;
    align-items: center;
}

.footer-divider {
    width: 100%;
    height: 0;
    border-top: 1px solid #1E2939;
    margin-top: 48px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

.footer-bottom p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6A7282;
}

/* ====== Responsive ====== */
@media screen and (max-width: 1562px) {
    .app {
        min-width: 0;
    }

    .cards-container {
        justify-content: center;
    }

    .space-card {
        width: calc(50% - 12px);
        min-width: 320px;
        max-width: 480px;
    }

    .footer-grid {
        flex-wrap: wrap;
    }

    .footer-col {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media screen and (max-width: 1024px) {
    .feature-card {
        width: 240px;
    }

    .features-container {
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 60px 24px 0;
    }

    .hero {
        height: auto;
        min-height: 420px;
    }

    .hero-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .hero-paragraph {
        font-size: 16px;
        line-height: 24px;
    }

    .features-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        margin-top: 40px;
    }

    .feature-card {
        width: 100%;
        max-width: 280px;
    }

    .space-card {
        width: 100%;
        max-width: 100%;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }

    .footer-col {
        flex: 1;
        max-width: 100%;
    }

    .nav-inner {
        gap: 24px;
    }

    .category-tabs {
        height: auto;
        min-height: 64px;
    }
}
