/* ==========================================================================
   News Block & Single News Styling
   ========================================================================== */

.news-block {
    padding: 60px 0 80px;
}

.news-block-title {
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 700;
    color: #484E88;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.news-card__media {
    position: relative;
    width: 100%;
    height: 220px;
    background: #edf2f7;
    overflow: hidden;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.news-card:hover .news-card__media img {
    transform: scale(1.04);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.news-card__meta {
    margin-bottom: 12px;
}

.news-card__date {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card__title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #484E88;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a,
.news-card__title a:visited,
.news-card__title a:active {
    color: #484E88;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.news-card__title a:hover,
.news-card__title a:focus,
.news-card:hover .news-card__title a,
.news-card:hover .news-card__title {
    color: rgb(62, 171, 61);
    text-decoration: none !important;
}

.news-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.news-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #22A537;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.news-card:hover .news-card__btn {
    color: #1b872c;
    gap: 12px;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-card__media {
        height: 200px;
    }
}

/* Single News Article Styling */
.single-news-page {
    padding: 25px 0 80px;
    background: transparent;
}

/* Breadcrumbs Component */
.kondi-breadcrumbs-container {
    padding-top: 25px;
    padding-bottom: 5px;
}

.single-news-breadcrumbs-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 25px;
    padding: 0;
}

.kondi-breadcrumbs {
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #64748b !important;
}

.kondi-breadcrumbs__list {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
}

.kondi-breadcrumbs__item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-family: 'Barlow', Arial, sans-serif !important;
}

.kondi-breadcrumbs a,
.kondi-breadcrumbs a:visited,
.kondi-breadcrumbs a:link,
.kondi-breadcrumbs__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #484E88 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: 'Barlow', Arial, sans-serif !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
    outline: none !important;
    border: none !important;
}

.kondi-breadcrumbs a:hover,
.kondi-breadcrumbs a:focus,
.kondi-breadcrumbs__link:hover {
    color: #22A537 !important;
    text-decoration: none !important;
}

.kondi-breadcrumbs__home-icon {
    width: 13px !important;
    height: 13px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    position: relative !important;
    top: -1px !important;
}

.kondi-breadcrumbs__separator {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    user-select: none !important;
    margin: 0 1px !important;
    line-height: 1 !important;
}

.kondi-breadcrumbs__item--active {
    color: #1e293b !important;
    font-weight: 600 !important;
    max-width: 520px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.kondi-breadcrumbs__current {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: 'Barlow', Arial, sans-serif !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.single-news-article {
    width: 100%;
    max-width: 100%;
    margin: 0 0 50px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.single-news-meta {
    margin-bottom: 14px;
}

.single-news-date {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-news-title {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    color: #484E88;
    margin: 0 0 25px;
}

.single-news-featured-image {
    margin: 0 0 40px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.single-news-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
    width: 100%;
    max-width: 100%;
}

.single-news-content p {
    margin-bottom: 20px;
}

.single-news-content h2 {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #484E88;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.single-news-content h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    color: #484E88;
    margin: 30px 0 14px;
}

.single-news-content h4 {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    color: #3A4481;
    margin: 24px 0 10px;
}

.single-news-content blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    background: #f8fafc;
    border-left: 4px solid #22A537;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #475569;
}

.single-news-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-news-content ul,
.single-news-content ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.single-news-content li {
    margin-bottom: 8px;
}

.single-news-content a {
    color: #3A4481;
    text-decoration: underline;
}

.single-news-content a:hover {
    color: #22A537;
}

/* Related News (Latest 3 articles) */
.single-news-related {
    width: 100%;
    max-width: 100%;
    margin: 60px 0 0;
    padding-top: 45px;
    border-top: 1px solid #e2e8f0;
}

.single-news-related__inner {
    width: 100%;
}

.single-news-related__heading {
    font-size: 24px;
    font-weight: 700;
    color: #484E88;
    margin: 0 0 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-news-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

.single-news-related__card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.single-news-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.single-news-related__link,
.single-news-related__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.single-news-related__media {
    position: relative;
    width: 100%;
    height: 170px;
    background: #edf2f7;
    overflow: hidden;
}

.single-news-related__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.single-news-related__card:hover .single-news-related__media img {
    transform: scale(1.05);
}

.single-news-related__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.single-news-related__date {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.single-news-related__title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #484E88;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.single-news-related__card:hover .single-news-related__title {
    color: rgb(62, 171, 61);
}

@media (max-width: 900px) {
    .single-news-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .single-news-title {
        font-size: 26px;
    }
    .single-news-content {
        font-size: 16px;
    }
    .single-news-content h2 {
        font-size: 22px;
        margin: 30px 0 12px;
    }
    .single-news-content h3 {
        font-size: 19px;
        margin: 24px 0 10px;
    }
    .kondi-breadcrumbs__item--active {
        max-width: 220px;
    }
}
