/* Page-specific styles for market-analysis.html */
.tmgm-header-wrapper {
    height: 330px !important;
}

@media only screen and (max-width: 768px) {
    .tmgm-header-wrapper {
        height: 260px !important;
    }
}

.tmgm-header-page-content {
    display: flex !important;
    align-items: flex-end !important;
    padding-bottom: 0 !important;
}

@media only screen and (max-width: 768px) {
    .tmgm-header-page-content {
        padding-bottom: 0 !important;
        transform: translateY(-50px);
    }
}

.tmgm-header-page-content .header-container,
.tmgm-header-page-content .wrapper {
    text-align: left !important;
    max-width: 100% !important;
    padding-left: 0 !important;
}

.tmgm-header-page-content .breadcrumb {
    font-size: 13px;
    margin-bottom: 8px;
}

.tmgm-header-page-content .breadcrumb-item a,
.tmgm-header-page-content .breadcrumb-item.pe-none {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px !important;
}

/* Fix breadcrumb separator (replace broken SVG with text >) */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    font-size: 12px !important;
}

.breadcrumb-item svg {
    display: none !important;
}

.search_input {
            padding: 0.25rem;
            display: flex;
            margin-bottom: 32px;
        }

        .search_input input {
            width: 100%;
            border: 1px solid #cccc;
            background: transparent;
            border-right: none;
            background-color: #fff;
            padding: 0.5rem;
        }

        .search_input input:focus,
        .search_input input:hover {
            outline: none;
        }

        strong {
            font-weight: 800 !important;
            font-family: 'NunitoSans-Bold' !important;
            color: #111111 !important;
        }

        .blue-button {
            width: 100px !important;
        }

        .card-list-wrapper {
            padding: 0 10px;
        }

        .slick-prev,
        .slick-next {
            top: 30% !important;
        }

        .slick-prev:before,
        .slick-next:before {
            color: black !important;
        }

        .slick-list {
            height: 400px;
        }

        #search-area {
            width: 50%;
        }

        @media only screen and (max-width: 500px) {
            #search-area {
                width: 100%;
            }
        }

/* ===== Article Card Grid Layout ===== */
.article-card-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media only screen and (max-width: 992px) {
    .article-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 576px) {
    .article-card-wrapper {
        grid-template-columns: 1fr;
    }
}

.article-card-wrapper > a {
    text-decoration: none;
    color: inherit;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.article-card .image-area {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-card .image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .image-area img {
    transform: scale(1.05);
}

.article-card .update-time {
    position: absolute;
    bottom: 8px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.article-card .update-time time {
    margin-left: 6px;
    opacity: 0.85;
}

.article-card .event-description {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card .event-description .primary-text {
    font-size: 17px;
    line-height: 1.5;
    color: #222;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.article-card .event-description .desc-area {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    word-break: break-all;
}

.article-card .event-description .desc-area h2 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

.article-card .event-description .desc-area p {
    margin: 4px 0 0;
}

.article-card .link {
    color: #1B79DE;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.article-card .link:hover {
    text-decoration: underline;
}

/* Pagination centered */
#pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-bottom: 8px;
}

#pagination ul,
#pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
}
