@use '../utilities' as *;

// WIDGET AREA WIDGETS
.widget-area .widget {
    margin-bottom: 20px;
    padding: 4px;
    border: 1px solid $grey;
}

.widget-area .widget p {
    font-size: .9rem;
    text-align: justify;
    padding: 0 5px;
}

.widget-area .widget .widget-title {
    color: $main_dark;
    line-height: 1;
}

.widget-area .widget .widget-title span {
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid $grey;
    background: $secondary_white;
    display: block;
}

.widget-area .widget ul,
.widget-area .widget ol {
    margin-left: 0;
    padding-left: 1.5rem;
}

.widget-area .widget ol li {
    font-size: .85rem;
    color: $secondary_black;
    text-align: justify;
    padding: 4px 0;
}

.widget-area .widget ul li {
    list-style: square;
    font-size: .85rem;
    color: $secondary_black;
    text-align: justify;
    padding: 2px 0;
}

.widget-area .widget ul li a,
.widget-area .widget ol li a {
    color: $secondary_black;
    text-decoration: none;
    font-size: .85rem;
}

.widget-area .tagcloud,
.wp-block-tag-cloud {
    display: inline-block;
    padding: 5px 0 10px 0;
}

.widget-area .tagcloud .tag-cloud-link,
.wp-block-tag-cloud a {
    padding: 2px 10px;
    margin: 0 0 5px 0;
    border: none;
    color: $secondary_white;
    background: $secondary_black;
    display: inline-block;
    text-decoration: none;
}

.widget-area .tagcloud .tag-cloud-link:hover,
.wp-block-tag-cloud a:hover {
    color: $secondary_white !important;
    text-decoration: underline;
}

// CONTENT AREA WIDGETS
.content-area .widget {
    margin-bottom: 40px;
}

.content-area .widget .widget-title span {
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid $grey;
    background: $secondary_white;
    display: block;
    line-height: 1;
}

// WIDGET CATEGORY ONE
.widget-category-one .category-one-content-top {
    padding: 8px;
    margin: 0 0 20px 0;
    border: 1px solid $grey;
}

.widget-category-one .category-one-content-top .text-container {
    padding: 0 !important;
}

.category-one-content-top .entry-meta {
    font-size: .75rem;
    color: $secondary_black;
    padding: 0 0 4px 0;
    margin: 0;
    border-bottom: 1px solid $grey;
}

.category-one-content-top .entry-meta a {
    font-size: .75rem;
    color: $secondary_black;
    text-decoration: none;
}

.category-one-content-top .entry-title {
    line-height: 1.1 !important;
    padding: 0;
    margin: 0 0 4px 0;
    border: none !important;
}

.category-one-content-top .entry-title a {
    text-decoration: none;
    color: $secondary_black;
    font-size: 1.2rem;
}

.category-one-content-top .bottom-container {
    @include gridColumnsGap(repeat(2, 1fr), 15px);
    margin-top: 5px;
}

.category-one-content-top .bottom-container .entry-summary {
    padding: 5px 0 !important;
    margin: 5px 0 0 0 !important;
    font-size: .8rem;
}

.category-one-content-top .bottom-container .entry-summary p {
    margin: 0 !important;
    margin-bottom: .5rem !important;
    padding: 0 !important;
}

.category-one-content-top .bottom-container .read-more-btn-container {
    margin-top: 0;
}

.category-one-content-bottom {
    @include gridColumnsGap(repeat(2, 1fr), 10px);
}

.category-one-content-bottom .category-one-content-bottom-item {
    @include gridColumnsGap(4fr 3fr, 4px);
    padding: 4px;
    border: 1px solid $grey;
}

.category-one-content-bottom .category-one-content-bottom-item .text-container {
    padding: 0 4px !important;
}

.category-one-content-bottom .category-one-content-bottom-item .entry-title {
    line-height: 14px;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    font-weight: 500 !important;
}

.category-one-content-bottom .category-one-content-bottom-item .entry-title a {
    text-decoration: none !important;
    font-size: .9rem !important;
    color: $secondary_black !important;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
}

.category-one-content-bottom .category-one-content-bottom-item .entry-meta {
    line-height: 1;
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
}

.category-one-content-bottom .category-one-content-bottom-item .entry-meta a {
    text-decoration: none;
    font-size: .7rem;
    color: $secondary_black;
}

@media(max-width: 992px) {
    .category-one-content-top .bottom-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .category-one-content-bottom {
        grid-template-columns: repeat(1, 1fr);
    }
}

// WIDGET CATEGORY TWO
.widget-category-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.widget-category-two .category-two-content {
    padding: 4px;
    border: 1px solid $grey;
}

.widget-category-two .category-two-content .text-container {
    padding: 8px 10px;
}

.widget-category-two .category-two-content .entry-meta {
    font-size: .7rem;
    color: $secondary_black;
    line-height: 1;
}

.widget-category-two .category-two-content .entry-meta a {
    font-size: .75rem;
    color: $secondary_black;
}

.widget-category-two .category-two-content .entry-title {
    line-height: 1;
    padding: 5px 0 !important;
    margin: 5px 0 !important;
    border-bottom: 1px solid $grey;
}

.widget-category-two .category-two-content .entry-title a {
    color: $secondary_black;
    font-size: 1rem;
    text-decoration: none;
}

.widget-category-two .category-two-content .entry-summary {
    font-size: .9rem;
    padding: 0 !important;
    margin: 0 !important;
}

@media(max-width: 768px) {
    .widget-category-two {
        grid-template-columns: repeat(1, 1fr);
    }
}

// WIDGET CATEGORY THREE
.widget-category-three {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.widget-category-three-left .text-container {
    padding: 8px 15px;
    border: 1px solid $grey;
    border-top: none;
}

.widget-category-three-left .entry-meta {
    font-size: .75rem;
    color: $secondary_black;
    line-height: 1;
    padding: 4px 0;
}

.widget-category-three-left .entry-meta a {
    font-size: .75rem;
    color: $secondary_black;
    text-decoration: none;
}

.widget-category-three-left .entry-title {
    line-height: 1;
    padding: 5px 0 !important;
    margin: 0 !important;
    border: none !important;
}

.widget-category-three-left .entry-title a {
    color: $secondary_black;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
}

.widget-category-three-left .entry-summary {
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
    font-size: .95rem;
}

.widget-category-three-right .category-three-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 5px;
    padding: 4px;
    border: 1px solid $grey;
    margin: 0 0 10px 0;
}

.widget-category-three-right .category-three-content .text-container {
    display: flex;
    flex-direction: column;
    // justify-content: space-between;
}

.widget-category-three-right .category-three-content .entry-meta {
    font-size: .7rem;
    color: $secondary_black;
    line-height: 1;
    padding: 4px 0;
}

.widget-category-three-right .category-three-content .entry-meta a {
    font-size: .7rem;
    color: $secondary_black;
    text-decoration: none;
}

.widget-category-three-right .category-three-content .entry-title {
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.widget-category-three-right .category-three-content .entry-title a {
    color: $secondary_black;
    font-weight: 500;
    font-size: .85rem;
    text-decoration: none;
}

@media(max-width: 992px) {
    .widget-category-three {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media(max-width: 500px) {
    .widget-area .widget img {
        width: 100%;
    }
}


// HOME BANNER
.widget-banner {
    position: relative;
    margin-bottom: 30px;
    padding: 4px;
    border: 1px solid $grey;
}

.widget-banner .img-container img {
    height: 450px;
    max-height: 450px;
    width: 100%;
    object-fit: cover;
}

.widget-banner .text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px;
    margin: 4px;
    background: rgba(0, 0, 0, .6);
}

.widget-banner .text-container .entry-meta,
.widget-banner .text-container .entry-meta a {
    color: $secondary_white;
    font-size: .75rem;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}

.widget-banner .text-container .entry-title {
    line-height: 1;
    padding: 8px 0 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.widget-banner .text-container .entry-title a {
    color: $secondary_white;
    font-size: 1.2rem;
    font-weight: 500;
}

.widget-banner .text-container .entry-summary {
    padding: 0 !important;
    margin: 0 !important;
    color: $secondary_white;
    font-size: .85rem;
    text-align: justify;
}

@media(max-width: 768px) {
    .widget-banner .text-container .entry-title {
        line-height: 18px;
        padding: 5px 0 !important;
    }

    .widget-banner .text-container .entry-title a {
        font-size: .95rem;
    }

    .widget-banner .text-container .entry-summary {
        font-size: .8rem;
    }
}

@media(max-width: 600px) {
    .widget-banner .text-container .entry-summary {
        display: none;
    }
}

// HOME GRID 2 COLUMNS
.home-grid-2-col-container {
    display: grid;
    gap: 5px;
    margin-bottom: 30px;
    padding: 4px;
    border: 1px solid $grey;
}

.home-grid-2-col-container .grid-2-col-content:first-child {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
}

.home-grid-2-col-container .grid-2-col-content:nth-child(2) {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
}

.home-grid-2-col-container .grid-2-col-content:last-child {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
}

.grid-2-col-content:nth-child(2) .text-container .entry-summary,
.grid-2-col-content:last-child .text-container .entry-summary {
    display: none;
}

.widget-grid-2-col {
    position: relative;
}

.widget-grid-2-col .text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px;
    background: rgba(0, 0, 0, .6);
}

.grid-2-col-content .img-container a {
    line-height: 0 !important;
}

.widget-grid-2-col .text-container .entry-meta,
.widget-grid-2-col .text-container .entry-meta a {
    color: $secondary_white;
    font-size: .75rem;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}

.grid-2-col-content:first-child .text-container .entry-title {
    line-height: 1;
    padding: 8px 0 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.grid-2-col-content:first-child .text-container .entry-title a {
    color: $secondary_white;
    font-size: 1.2rem;
    font-weight: 500;
}

.grid-2-col-content:nth-child(2) .text-container .entry-title,
.grid-2-col-content:last-child .text-container .entry-title {
    line-height: 15px;
    padding: 4px 0 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

.grid-2-col-content:nth-child(2) .text-container .entry-title a,
.grid-2-col-content:last-child .text-container .entry-title a {
    color: $secondary_white;
    font-size: .8rem;
    font-weight: 500;
}

.widget-grid-2-col .text-container .entry-summary {
    padding: 0 !important;
    margin: 0 !important;
    color: $secondary_white;
    font-size: .85rem;
    text-align: justify;
}

@media(max-width: 992px) {
    .home-grid-2-col-container .grid-2-col-content:first-child {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .home-grid-2-col-container .grid-2-col-content:nth-child(2) {
        grid-column-start: 1;
        grid-column-end: auto;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    .home-grid-2-col-container .grid-2-col-content:last-child {
        grid-column-start: auto;
        grid-column-end: 4;
        grid-row-start: 2;
        grid-row-end: 3;
    }
}

@media(max-width: 768px) {
    .home-grid-2-col-container {
        display: block !important;
    }

    .home-grid-2-col-container .grid-2-col-content {
        margin-bottom: 20px;
    }

    .home-grid-2-col-container .grid-2-col-content:last-child {
        margin-bottom: 0;
    }

    .widget-grid-2-col .text-container .entry-meta a {
        font-size: .7rem;
    }

    .widget-grid-2-col .text-container .entry-title {
        line-height: 16px !important;
        padding: 5px 0 !important;
    }

    .widget-grid-2-col .text-container .entry-title a {
        font-size: .9rem !important;
    }

    .widget-grid-2-col .text-container .entry-summary {
        font-size: .8rem;
    }
}

// HOME GRID 3 COL
.home-grid-3-col-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.widget-grid-3-col {
    position: relative;
    padding: 2px;
    border: 1px solid $grey;
}

.widget-grid-3-col .text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    margin: 2px;
    background: rgba(0, 0, 0, .6);
}

.widget-grid-3-col .text-container .entry-meta,
.widget-grid-3-col .text-container .entry-meta a {
    font-size: .68rem;
    padding: 0 !important;
    margin: 0 !important;
    color: $secondary_white;
}

.widget-grid-3-col .text-container .entry-title {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 16px;
}

.widget-grid-3-col .text-container .entry-title a {
    color: $secondary_white;
    font-size: 1rem;
}

@media(max-width: 992px) {
    .widget-grid-3-col .text-container .entry-title a {
        font-size: .85rem;
    }
}

@media(max-width: 768px) {
    .home-grid-3-col-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .widget-grid-3-col .text-container .entry-title {
        padding: 8px 0;
        line-height: 1;
    }

    .widget-grid-3-col .text-container .entry-title a {
        font-size: 1.2rem;
    }
}

@media(max-width: 600px) {
    .widget-banner .text-container .entry-summary {
        display: none;
    }

    .widget-grid-2-col .text-container .entry-summary {
        display: none;
    }

    .widget-grid-slider .text-container .entry-summary {
        display: none;
    }
}
