/* ========== NEWS ARCHIVE ========== */

.news-archive {
    padding: 60px 0;
    background: #ffffff;
    border-bottom: solid 1px #F4F3F3;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    margin: 10px;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-image {
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Date badge */
.news-card-icon {
    background: url('../images/news-icon.svg') no-repeat center center;
    background-size: cover;
    position: absolute;
    bottom: -30px;
    right: 10px;
    width: 60px;
    height: 60px;
}
.news-card-date .day {
    display: block;
    font-size: 32px;
    font-weight: 600;
    font-family: 'SFUTole', sans-serif;
    line-height: 1;
}
.news-card-date .month {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: -2px;
}

.news-card-content {
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}
.news-card-title {
    font-size: 22px;
    color: #272727;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.4;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    font-family: 'SFUTole';
    font-weight: 500;
}

.news-card-title a:hover {
    color: #D8B43A;
}

.news-card-excerpt {
    flex-grow: 1;
    font-size: 16px;
    color: #484848;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card-link {
    font-size: 12px;
    font-weight: 600;
    color: #C5710F;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.news-card-link .arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: #C5710F;
    font-size: 25px;
}

.news-card-link:hover {
    color: #1A5F2A;
}

.news-card-link:hover .arrow {
    transform: translateX(3px);
}

.news-pagination {
    margin-top: 40px;
    text-align: center;
}
.legal_knowledge .news-card-content {
    padding: 15px 0px;
}
.news-card-category {
  font-size: 12px;
  margin-bottom: 6px;
}

.news-card-category .category-label {
  color: #D8B43A;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none;
}

.section-knowledge-home .legal-knowledge-slider {
    margin-top: 30px;
}

.legal-knowledge-slider .slick-slide {
    padding: 0 16px;
    height: auto;
}

.legal-knowledge-slider .slick-list {
    padding: 0 80px;
}

.legal-knowledge-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #EDEDED;
    border-bottom: 3px solid #1A5F2A;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.legal-knowledge-media {
    position: relative;
}

.legal-knowledge-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.legal-knowledge-date {
    position: absolute;
    left: 14px;
    bottom: -20px;
    background: #274C3D;
    color: #ffffff;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
    text-transform: uppercase;
    gap: 10px;
}

.legal-knowledge-date .day {
    font-size: 24px;
    font-weight: 700;
    font-family: 'SFUTole';
}

.legal-knowledge-date .month {
    font-size: 12px;
    font-weight: 600;
}

.legal-knowledge-content {
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.legal-knowledge-category {
    font-size: 14px;
    margin-bottom: 8px;
}

.legal-knowledge-category a {
    color: #274C3D;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.legal-knowledge-category a:hover {
    color: #D8B43A;
}

.legal-knowledge-title {
    font-size: 24px;
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #000000;
}

.legal-knowledge-title a {
    color: #000000;
    text-decoration: none;
    font-family: 'SFUTole';
    font-weight: 500;
}

.legal-knowledge-title a:hover {
    color: #D8B43A;
}

.legal-knowledge-excerpt {
    flex: 1 1 auto;
    font-size: 16px;
    color: #484848;
    line-height: 1.6;
}

.legal-knowledge-readmore {
    margin-top: 14px;
    align-self: flex-end;
    font-size: 12px;
    font-weight: 700;
    color: #C5710F;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-knowledge-readmore .arrow {
    font-size: 18px;
    color: #C5710F;
    transition: transform 0.25s ease;
}

.legal-knowledge-readmore:hover {
    color: #1A5F2A;
}

.legal-knowledge-readmore:hover .arrow {
    color: #1A5F2A;
    transform: translateX(3px);
}

.legal-knowledge-slider .slick-dots {
    position: static;
    margin: 18px 0 0;
}

.legal-knowledge-slider .slick-dots li {
    margin: 0 6px;
}

.legal-knowledge-slider .slick-dots li button:before {
    font-size: 10px;
    color: #BDBDBD;
    opacity: 1;
}

.legal-knowledge-slider .slick-dots li.slick-active button:before {
    color: #1A5F2A;
}
.other-news {
    padding: 60px 0px;
}
.other-news .title_decs .title {
    color: #D8B43A;
    text-decoration: none;
    font-family: 'SFUTole';
    font-weight: 500;
    font-size: 25px;
    margin-bottom: 60px;
    text-align: center;
}

.legal-knowledge-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.about-container {
    padding: 10px 0px 60px;
    position: relative;
}
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        padding: 10px 0px 15px;
        position: relative;
    }
    .legal-knowledge-slider .slick-list {
        padding: 0 30px;
    }
}

@media (max-width: 640px) {
    .other-news {
        padding: 15px 0px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .other-news .title_decs .title {
        margin-top: 10px;
        text-align: left;
    }
    .legal-knowledge-slider .slick-list {
        padding: 0;
    }
    .legal-knowledge-image img {
        height: 210px;
    }
}
