/* ==========================================================================
   AZ UI Kit — Postcard
   Marketing/presentation card component. AZ-native replacement for the
   legacy `postcard` plugin (no MDB dependency).
   Variants:  .az-postcard-dark  .az-postcard-light
   Elements:  .az-postcard__text  .az-postcard__bar  .az-postcard__title
              .az-postcard__preview-txt  .az-postcard__tagbox  .az-postcard__img
   ========================================================================== */

.az-postcard-dark,
.az-postcard-light {
    flex-wrap: wrap;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
    border-radius: 2rem;
    margin: 0 0 2rem 0;
    overflow: hidden;
    position: relative;
}

.az-postcard-dark {
    background-color: #182B4C;
    color: #f5f5f5;
}

.az-postcard-light {
    background-color: #f5f5f5;
    color: #182B4C;
}

.az-postcard-dark a,
.az-postcard-light a {
    color: inherit;
}

.az-postcard-dark h1, .az-postcard-dark .az-h1,
.az-postcard-light h1, .az-postcard-light .az-h1 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.az-postcard__title {
    font-size: 1.75rem;
}

.az-postcard__bar {
    width: 50px;
    height: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #FFC50D;
    transition: width 0.2s ease;
}

.az-postcard-dark:hover .az-postcard__bar,
.az-postcard-light:hover .az-postcard__bar {
    width: 100px;
}

.az-postcard__text {
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.az-postcard__preview-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    height: 100%;
}

.az-postcard__tagbox {
    display: flex;
    flex-flow: row wrap;
    font-size: 14px;
    margin: 20px 0 0 0;
    padding: 0;
    justify-content: center;
}

.az-postcard__tagbox .tag__item {
    display: inline-block;
    background: rgba(83, 83, 83, 0.4);
    border-radius: 3px;
    padding: 2.5px 10px;
    margin: 0 5px 5px 0;
    cursor: default;
    user-select: none;
    transition: background-color 0.3s;
}

.az-postcard__tagbox .tag__item:hover {
    background: rgba(83, 83, 83, 0.8);
}

.az-postcard__tagbox .play:hover {
    background: #FFC50D;
}

@media screen and (min-width: 769px) {
    .az-postcard-dark,
    .az-postcard-light {
        flex-wrap: inherit;
    }
    .az-postcard__title {
        font-size: 2rem;
    }
    .az-postcard__tagbox {
        justify-content: start;
    }
    .az-postcard__img {
        max-width: 300px;
        max-height: 100%;
        transition: transform 0.3s ease;
    }
    .az-postcard__text {
        padding: 3rem;
        width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    .az-postcard__text {
        padding: 2rem 3.5rem;
    }
}
