/* DreamCode Thành Vinh News v1.8.8 — Stable icon/date alignment across all widgets.
   Loaded AFTER each widget stylesheet; no icon sizes or typography are hardcoded,
   therefore existing responsive Elementor controls remain authoritative. */
:is(.dc-hhn--tv .dc-tv-news__date,
    .dc-tv-legal .dc-tv-legal__date,
    .dc-tv-related .dc-tv-related-card__date-line,
    .dc-hhn .dc-hhn-card__date,
    .dc-hhn .dc-hhn-list-card__date,
    .dc-hhn .dc-hhn-grid-card__date,
    .dc-hhn .dc-hhn-related-card__date,
    .dc-tv-article .dc-tv-article__date) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
}
:is(.dc-hhn--tv .dc-tv-news__date,
    .dc-tv-legal .dc-tv-legal__date,
    .dc-tv-related .dc-tv-related-card__date-line,
    .dc-hhn .dc-hhn-card__date,
    .dc-hhn .dc-hhn-list-card__date,
    .dc-hhn .dc-hhn-grid-card__date,
    .dc-hhn .dc-hhn-related-card__date,
    .dc-tv-article .dc-tv-article__date) > time {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: inherit;
}
:is(.dc-hhn--tv .dc-tv-news__date-icon,
    .dc-tv-legal .dc-tv-legal__date-icon,
    .dc-tv-related .dc-tv-related-card__date-icon,
    .dc-hhn .dc-hhn-card__date-icon,
    .dc-hhn .dc-hhn-list-card__date-icon,
    .dc-hhn .dc-hhn-grid-card__date-icon,
    .dc-hhn .dc-hhn-related-card__date-icon,
    .dc-tv-article .dc-hhn-single__date-icon) {
    align-self: center;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
    margin-block: 0;
}
/* Normal + hover icons share precisely the same square without affecting the date baseline. */
.dc-tv-calendar-stack {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    position: relative;
    padding: 0;
    text-align: center;
    line-height: 1;
}
.dc-tv-calendar-stack > .dc-tv-calendar-state {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    line-height: 1;
}
.dc-tv-calendar-stack .dc-tv-calendar-glyph,
.dc-tv-calendar-stack .dc-tv-calendar-glyph > :is(i, svg, img) {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
}
.dc-tv-calendar-stack .dc-tv-calendar-glyph {
    width: 100%;
    height: 100%;
}
.dc-tv-calendar-stack .dc-tv-calendar-glyph > :is(svg, img) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Elementor's broad img height:auto must not shrink actual card photos. */
.elementor .dc-hhn--tv .dc-tv-news__media > img.dc-tv-news__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}
@media (prefers-reduced-motion: reduce) {
    .dc-tv-calendar-stack > .dc-tv-calendar-state { transition: none; }
}

/* v1.8.9: Same date-row and hover behavior as "Thành Vinh - Tất cả tin tức".
   The normal divider color is read from a CSS variable controlled by Elementor.
   Hover is a card state, not a link-only hover. No fixed content heights. */
:is(.dc-hhn.dc-hhn--tv .dc-tv-news__date,
    .dc-tv-related .dc-tv-related-card__date) {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-bottom-style: solid;
    border-bottom-color: var(--dc-tv-date-divider-normal, rgba(0,0,0,.08));
    transition: color .24s ease, border-bottom-color .24s ease;
}
.dc-tv-related .dc-tv-related-card__date-line {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}
:is(.dc-hhn.dc-hhn--tv .dc-tv-news__date,
    .dc-tv-related .dc-tv-related-card__date-line) > time {
    display: block;
    min-width: 0;
    flex: 0 1 auto;
    line-height: inherit;
    overflow-wrap: anywhere;
}
:is(.dc-hhn.dc-hhn--tv .dc-tv-news__date-icon,
    .dc-tv-related .dc-tv-related-card__date-icon) {
    align-self: center;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
}
:is(.dc-hhn.dc-hhn--tv .dc-tv-news__date-icon,
    .dc-tv-related .dc-tv-related-card__date-icon) :is(.dc-tv-calendar-state,.dc-tv-calendar-glyph,i,svg,img) {
    line-height: 1;
    vertical-align: middle;
}
/* Specificity deliberately exceeds Elementor normal-state generated selectors. */
.dc-hhn.dc-hhn--tv .dc-tv-news__card:is(:hover,:focus-within) .dc-tv-news__date,
.dc-tv-related .dc-tv-related-card:is(:hover,:focus-within) .dc-tv-related-card__date {
    color: var(--dc-tv-card-hover-accent, #c8010a);
    border-bottom-color: var(--dc-tv-card-hover-accent, #c8010a);
}
.dc-hhn.dc-hhn--tv .dc-tv-news__card:is(:hover,:focus-within) .dc-tv-news__date-icon,
.dc-tv-related .dc-tv-related-card:is(:hover,:focus-within) .dc-tv-related-card__date-icon {
    color: var(--dc-tv-card-hover-accent, #c8010a);
}
.dc-hhn.dc-hhn--tv .dc-tv-news__card:is(:hover,:focus-within) .dc-tv-news__card-title a,
.dc-hhn.dc-hhn--tv .dc-tv-news__card:is(:hover,:focus-within) .dc-tv-news__card-title a:visited,
.dc-tv-related .dc-tv-related-card:is(:hover,:focus-within) .dc-tv-related-card__title a,
.dc-tv-related .dc-tv-related-card:is(:hover,:focus-within) .dc-tv-related-card__title a:visited {
    color: var(--dc-tv-card-hover-title, #c8010a);
}
/* Image effect uses the same scale and overlay as the All News card. */
.dc-hhn.dc-hhn--tv .dc-tv-news__card:is(:hover,:focus-within) .dc-tv-news__image,
.dc-tv-related .dc-tv-related-card:is(:hover,:focus-within) .dc-tv-related-card__image {
    transform: scale(var(--dc-tv-card-zoom, 1.065));
}
@media (prefers-reduced-motion: reduce) {
    .dc-hhn.dc-hhn--tv .dc-tv-news__date,
    .dc-tv-related .dc-tv-related-card__date { transition: none; }
}
