@charset "utf-8";
:root {
    --dt-primary: #008e3e;
    --dt-primary-light: #00a84d;
    --dt-primary-dark: #006b30;
    --dt-primary-bg: rgba(0, 142, 62, 0.06);
    --dt-primary-border: rgba(0, 142, 62, 0.15);
}

/* Utility */
.lineText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Override pub_top.css */
body { background: #fff; }
.fixedpane { border-bottom-color: var(--dt-primary); }
.wrap { width: auto; max-width: 96rem; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.w1200 .wrap { width: auto; max-width: 96rem; }
.footer-login { display: none; }

/* ========== Banner ========== */
.dt-banner {
    background: #fff;
    padding: 32px 0 28px;
}
.dt-banner .wrap,
.dt-filter-panel .wrap,
.w1200 .dt-search-bar {
    max-width: 96rem;
    width: auto;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.dt-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}
.dt-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color .15s;
}
.dt-breadcrumb a:hover { color: var(--dt-primary); text-decoration: none; }
.dt-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}
.dt-banner h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}
.dt-banner-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* ========== Search Bar ========== */
.dt-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    flex-wrap: wrap;
}
.dt-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}
.dt-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}
.dt-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 38px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.dt-search-input::placeholder { color: #aaa; }
.dt-search-input:focus {
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 2px var(--dt-primary-bg);
}
.dt-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.dt-filter-toggle-btn:hover,
.dt-filter-toggle-btn.active {
    border-color: var(--dt-primary);
    color: var(--dt-primary);
}
.dt-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    background: var(--dt-primary);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.dt-publish-btn:hover {
    background: var(--dt-primary-dark);
    text-decoration: none;
    color: #fff;
}

/* ========== Filter Panel ========== */
.dt-filter-panel {
    display: none;
    background: #fff;
    padding: 0;
}
.dt-filter-panel.show {
    display: block;
}
.dt-filter-inner {
    padding: 20px 0;
}
.dt-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.dt-filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.dt-filter-clear {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}
.dt-filter-clear:hover { color: var(--dt-primary); text-decoration: none; }

/* Filter rows */
.dt-filter-inner dl {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
    margin: 0;
}
.dt-filter-inner dl:last-child { border-bottom: none; }
.dt-filter-inner dt {
    width: 84px;
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    line-height: 26px;
    text-align: center;
    padding-top: 2px;
}
.dt-filter-inner dd {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.dt-filter-inner dd a {
    display: inline-block;
    float: left;
    padding: 0 10px;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
    color: #787878;
    margin: 0 12px 8px 0;
    text-decoration: none;
    border-radius: 3px;
    transition: all .15s;
}
.dt-filter-inner dd a:hover {
    color: #fff;
    background: var(--dt-primary);
    text-decoration: none;
}
.dt-filter-inner dd a.curr {
    color: #fff;
    background: var(--dt-primary);
}

/* ========== Date Card Row ========== */
.dt-date-row {
    background: #fff;
    padding: 20px 0 16px;
}
.dt-date-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.dt-date-scroll::-webkit-scrollbar {
    height: 4px;
}
.dt-date-scroll::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 2px;
}
.dt-date-card {
    flex-shrink: 0;
    width: 80px;
    height: 96px;
    background: #f8f5ee;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.dt-date-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}
.dt-date-weekday {
    font-size: 11px;
    color: #999;
    line-height: 1.2;
}
.dt-date-day {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
}
.dt-date-count {
    font-size: 11px;
    color: var(--dt-primary);
    line-height: 1.2;
}

/* ========== Category Pill Buttons ========== */
.dt-category-bar {
    background: #fff;
    padding: 16px 0 12px;
}
.dt-category-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dt-cat-pill {
    display: inline-block;
    padding: 6px 24px;
    border-radius: 21px;
    font-size: 14px;
    color: #555;
    background: #f5f5f5;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    border: 1px solid transparent;
}
.dt-cat-pill:hover {
    background: var(--dt-primary-bg);
    color: var(--dt-primary);
    border-color: var(--dt-primary-border);
    text-decoration: none;
}
.dt-cat-pill.active {
    background: var(--dt-primary);
    color: #fff;
    border-color: var(--dt-primary);
}

/* ========== Main Content Layout ========== */
.dt-main-content {
    max-width: 96rem;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

/* ========== Events Grid (same as homepage) ========== */
.dt-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.dt-event-card {
    min-width: 0;
    display: block;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    color: #303033;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
    transition: box-shadow .18s, transform .18s;
}
.dt-event-card:hover {
    box-shadow: 0 12px 28px rgba(15,23,42,.12);
    transform: translateY(-1px);
    text-decoration: none;
    color: #303033;
}
.dt-event-pic {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #E5E7EB;
}
.dt-event-pic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,0) 58%);
    pointer-events: none;
}
.dt-event-pic img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s;
}
.dt-event-card:hover .dt-event-pic img { transform: scale(1.05); }
.dt-event-badge, .dt-event-free {
    height: 24px;
    line-height: 24px;
    position: absolute;
    z-index: 1;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.dt-event-badge {
    left: 12px;
    top: 12px;
    background: var(--dt-primary);
    color: #fff;
}
.dt-event-free {
    right: 12px;
    bottom: 12px;
    background: #10B981;
    color: #fff;
}
.dt-event-info { padding: 16px; }
.dt-event-info h3 {
    font-weight: 600;
    font-size: 14px;
    color: #303033;
    line-height: 20px;
    -webkit-line-clamp: 2;
    margin: 0 0 12px;
}
.dt-event-card:hover h3 { color: var(--dt-primary); }
.dt-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #7A8599;
    font-size: 13px;
    line-height: 18px;
}
.dt-event-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.dt-event-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dt-event-meta em {
    min-width: 0;
    font-style: normal;
    white-space: nowrap;
}
.dt-event-meta em.lineText {
    white-space: normal;
    -webkit-line-clamp: 1;
}

/* ========== Pagination ========== */
.pagination { margin-top: 20px; padding: 10px 0 30px; text-align: center; line-height: 32px; font-size: 14px; color: #666; }
.pagination li { display: inline-block; margin-right: 7px; background-color: #fff; }
.pagination li a,
.pagination li span { display: block; padding: 0 10px; color: #797a82; border: 1px solid #D9D9D9; border-radius: 3px; box-sizing: border-box; text-decoration: none; }
.pagination li a:hover,
.pagination li.page_current span { background: var(--dt-primary); border-color: var(--dt-primary); color: #fff; }
.pagination li.page_current span { border: solid 1px var(--dt-primary); }
.pagination li.page_disabled { display: none; }
.pagination li.page_more span { background: #fff; color: #797a82; cursor: default; }
.pagination .page_info { display: none; }

/* ========== Empty State ========== */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* ========== Back to Top ========== */
.btntop a {
    height: 50px;
    width: 50px;
    border-radius: 4px;
    text-align: center;
    line-height: 50px;
}
.btntop .top {
    background: rgba(145, 145, 145, .569);
    filter: Alpha(Opacity=56);
    opacity: .569;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
.btntop .top:hover { background-color: rgb(145, 145, 145); }
.btntop .top img { margin-top: 13px; }

/* ========== Responsive ========== */
@media screen and (max-width: 1220px) {
    .dt-main-content { padding-left: 16px; padding-right: 16px; }
}
@media screen and (max-width: 900px) {
    .dt-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dt-search-bar { flex-direction: column; }
    .dt-search-input-wrap { width: 100%; }
    .dt-filter-toggle-btn,
    .dt-publish-btn { width: 100%; justify-content: center; }
    .dt-banner h1 { font-size: 24px; }
    .dt-date-card { width: 64px; height: 84px; }
    .dt-date-day { font-size: 14px; }
    .dt-category-bar .wrap { gap: 8px; }
    .dt-cat-pill { padding: 5px 16px; font-size: 13px; }
}
@media screen and (max-width: 600px) {
    .dt-events-grid { grid-template-columns: 1fr; }
    .dt-event-pic { height: 180px; }
    .dt-banner { padding: 24px 0 20px; }
    .dt-banner h1 { font-size: 22px; }
}
